@quidgest/ui 0.16.65 → 0.16.67

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 (63) hide show
  1. package/dist/json/api.json +226 -1
  2. package/dist/ui.css +14 -0
  3. package/dist/ui.esm.js +35 -10
  4. package/dist/ui.js +5 -5
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +154 -154
  7. package/dist/ui.scss +15 -1
  8. package/esm/components/QCheckbox/QCheckbox.vue.js +4 -3
  9. package/esm/components/QCheckbox/QCheckboxLabel.vue.js +7 -6
  10. package/esm/components/QCheckbox/index.d.ts +3 -0
  11. package/esm/components/QCheckbox/index.d.ts.map +1 -1
  12. package/esm/components/QCombobox/QCombobox.d.ts +28 -4
  13. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  14. package/esm/components/QCombobox/QCombobox.vue.js +6 -5
  15. package/esm/components/QCombobox/index.d.ts +49 -7
  16. package/esm/components/QCombobox/index.d.ts.map +1 -1
  17. package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -1
  18. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +23 -21
  19. package/esm/components/QDateTimePicker/index.d.ts +3 -0
  20. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  21. package/esm/components/QField/QField.d.ts +1 -0
  22. package/esm/components/QField/QField.d.ts.map +1 -1
  23. package/esm/components/QField/QField.vue.js +23 -20
  24. package/esm/components/QField/index.d.ts +3 -0
  25. package/esm/components/QField/index.d.ts.map +1 -1
  26. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  27. package/esm/components/QFileUpload/QFileUpload.vue.js +18 -16
  28. package/esm/components/QFileUpload/index.d.ts +3 -0
  29. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  30. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  31. package/esm/components/QInputGroup/QInputGroup.vue.js +27 -25
  32. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  33. package/esm/components/QLabel/QLabel.vue.js +15 -13
  34. package/esm/components/QLabel/types.d.ts +12 -0
  35. package/esm/components/QLabel/types.d.ts.map +1 -1
  36. package/esm/components/QMeter/QMeter.vue.js +8 -7
  37. package/esm/components/QMeter/index.d.ts +2 -0
  38. package/esm/components/QMeter/index.d.ts.map +1 -1
  39. package/esm/components/QPasswordField/QPasswordField.d.ts +14 -2
  40. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  41. package/esm/components/QPasswordField/QPasswordField.vue.js +5 -4
  42. package/esm/components/QPasswordField/index.d.ts +7 -1
  43. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  44. package/esm/components/QRadioGroup/QRadioButton.vue.js +13 -12
  45. package/esm/components/QRadioGroup/QRadioGroup.vue.js +8 -7
  46. package/esm/components/QRadioGroup/index.d.ts +3 -0
  47. package/esm/components/QRadioGroup/index.d.ts.map +1 -1
  48. package/esm/components/QSelect/QSelect.d.ts +8 -2
  49. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  50. package/esm/components/QSelect/QSelect.vue.js +9 -7
  51. package/esm/components/QSelect/index.d.ts +7 -1
  52. package/esm/components/QSelect/index.d.ts.map +1 -1
  53. package/esm/components/QSwitch/QSwitch.vue.js +15 -14
  54. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  55. package/esm/components/QTextArea/QTextArea.vue.js +21 -19
  56. package/esm/components/QTextArea/index.d.ts +3 -0
  57. package/esm/components/QTextArea/index.d.ts.map +1 -1
  58. package/esm/components/QTextField/QTextField.d.ts +8 -2
  59. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  60. package/esm/components/QTextField/QTextField.vue.js +28 -26
  61. package/esm/components/QTextField/index.d.ts +7 -1
  62. package/esm/components/QTextField/index.d.ts.map +1 -1
  63. package/package.json +1 -1
@@ -1,8 +1,8 @@
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
- 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 T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], D = /* @__PURE__ */ b({
1
+ import { defineComponent as y, 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 P, vModelText as R, renderSlot as r } from "vue";
2
+ import { QField as A } from "../QField/index.js";
3
+ import { useId as C } from "../../composables/uid.js";
4
+ import { useTextareaAutosize as H } from "../../vendors/@vueuse/core/index.js";
5
+ const L = ["id", "required", "placeholder", "readonly", "disabled", "maxlength", "rows", "cols", "resize", "wrap"], D = /* @__PURE__ */ y({
6
6
  inheritAttrs: !1,
7
7
  __name: "QTextArea",
8
8
  props: /* @__PURE__ */ h({
@@ -11,6 +11,7 @@ const T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
11
11
  label: {},
12
12
  required: { type: Boolean },
13
13
  for: {},
14
+ labelPosition: {},
14
15
  size: {},
15
16
  readonly: { type: Boolean },
16
17
  disabled: { type: Boolean },
@@ -31,38 +32,39 @@ const T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
31
32
  const e = i, s = z(i, "modelValue"), d = t({
32
33
  get: () => s.value,
33
34
  set: (l) => {
34
- const r = e.maxLength;
35
- s.value = r ? l == null ? void 0 : l.slice(0, r) : l;
35
+ const o = e.maxLength;
36
+ s.value = o ? l == null ? void 0 : l.slice(0, o) : l;
36
37
  }
37
38
  });
38
39
  x(s, (l) => d.value = l, { immediate: !0 });
39
- const p = H(g(e, "id")), m = t(
40
+ const p = C(g(e, "id")), m = t(
40
41
  () => e.readonly || e.disabled ? void 0 : e.placeholder
41
- ), f = t(() => ({ input: e.autosize ? c : null })), u = w(), { triggerResize: c } = L({
42
+ ), f = t(() => ({ input: e.autosize ? c : null })), u = w(), { triggerResize: c } = H({
42
43
  element: t(() => e.autosize ? u.value : void 0),
43
44
  styleProp: "minHeight"
44
45
  });
45
- return (l, r) => ($(), q(n(C), {
46
+ return (l, o) => ($(), q(n(A), {
46
47
  class: v(["q-text-area", e.class]),
47
48
  for: n(p),
48
49
  label: e.label,
50
+ "label-position": e.labelPosition,
49
51
  size: e.size,
50
52
  readonly: e.readonly,
51
53
  disabled: e.disabled,
52
54
  required: e.required
53
55
  }, B({
54
56
  "label.prepend": a(() => [
55
- o(l.$slots, "label.prepend")
57
+ r(l.$slots, "label.prepend")
56
58
  ]),
57
59
  "label.append": a(() => [
58
- o(l.$slots, "label.append")
60
+ r(l.$slots, "label.append")
59
61
  ]),
60
62
  default: a(() => [
61
63
  k(M("textarea", V({
62
64
  id: n(p),
63
65
  ref_key: "textareaRef",
64
66
  ref: u,
65
- "onUpdate:modelValue": r[0] || (r[0] = (y) => d.value = y),
67
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => d.value = b),
66
68
  class: "q-text-area__input",
67
69
  required: e.required,
68
70
  placeholder: m.value,
@@ -73,8 +75,8 @@ const T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
73
75
  cols: e.cols,
74
76
  resize: e.resize,
75
77
  wrap: e.wrap
76
- }, l.$attrs, R(f.value, !0)), null, 16, T), [
77
- [A, d.value]
78
+ }, l.$attrs, P(f.value, !0)), null, 16, L), [
79
+ [R, d.value]
78
80
  ])
79
81
  ]),
80
82
  _: 2
@@ -83,25 +85,25 @@ const T = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
83
85
  l.$slots.prepend ? {
84
86
  name: "prepend",
85
87
  fn: a(() => [
86
- o(l.$slots, "prepend")
88
+ r(l.$slots, "prepend")
87
89
  ]),
88
90
  key: "0"
89
91
  } : void 0,
90
92
  l.$slots.append ? {
91
93
  name: "append",
92
94
  fn: a(() => [
93
- o(l.$slots, "append")
95
+ r(l.$slots, "append")
94
96
  ]),
95
97
  key: "1"
96
98
  } : void 0,
97
99
  l.$slots.extras ? {
98
100
  name: "extras",
99
101
  fn: a(() => [
100
- o(l.$slots, "extras")
102
+ r(l.$slots, "extras")
101
103
  ]),
102
104
  key: "2"
103
105
  } : void 0
104
- ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
106
+ ]), 1032, ["class", "for", "label", "label-position", "size", "readonly", "disabled", "required"]));
105
107
  }
106
108
  });
107
109
  export {
@@ -5,6 +5,7 @@ declare const QTextArea: {
5
5
  label?: string;
6
6
  required?: boolean;
7
7
  for?: string;
8
+ labelPosition?: import('..').QLabelPosition;
8
9
  } & {
9
10
  size?: import('..').QFieldSize;
10
11
  readonly?: boolean;
@@ -42,6 +43,7 @@ declare const QTextArea: {
42
43
  label?: string;
43
44
  required?: boolean;
44
45
  for?: string;
46
+ labelPosition?: import('..').QLabelPosition;
45
47
  } & {
46
48
  size?: import('..').QFieldSize;
47
49
  readonly?: boolean;
@@ -72,6 +74,7 @@ declare const QTextArea: {
72
74
  label?: string;
73
75
  required?: boolean;
74
76
  for?: string;
77
+ labelPosition?: import('..').QLabelPosition;
75
78
  } & {
76
79
  size?: import('..').QFieldSize;
77
80
  readonly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA;AAGpB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextArea/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAA8B,CAAA;AAG7C,OAAO,EAAE,SAAS,EAAE,CAAA;AAGpB,cAAc,SAAS,CAAA"}
@@ -22,6 +22,7 @@ declare function __VLS_template(): {
22
22
  readonly label?: string | undefined;
23
23
  readonly required?: boolean | undefined;
24
24
  readonly for?: string | undefined;
25
+ readonly labelPosition?: import('..').QLabelPosition | undefined;
25
26
  readonly size?: import('..').QFieldSize | undefined;
26
27
  readonly readonly?: boolean | undefined;
27
28
  readonly disabled?: boolean | undefined;
@@ -47,6 +48,7 @@ declare function __VLS_template(): {
47
48
  fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
48
49
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
49
50
  size: import('..').QFieldSize;
51
+ labelPosition: import('..').QLabelPosition;
50
52
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
51
53
  beforeCreate?: (() => void) | (() => void)[];
52
54
  created?: (() => void) | (() => void)[];
@@ -69,7 +71,8 @@ declare function __VLS_template(): {
69
71
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
70
72
  } & Readonly<{
71
73
  size: import('..').QFieldSize;
72
- }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
74
+ labelPosition: import('..').QLabelPosition;
75
+ }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
73
76
  fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
74
77
  }> & {} & import('vue').ComponentCustomProperties & {} & {
75
78
  $slots: {
@@ -109,6 +112,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
109
112
  readonly label?: string | undefined;
110
113
  readonly required?: boolean | undefined;
111
114
  readonly for?: string | undefined;
115
+ readonly labelPosition?: import('..').QLabelPosition | undefined;
112
116
  readonly size?: import('..').QFieldSize | undefined;
113
117
  readonly readonly?: boolean | undefined;
114
118
  readonly disabled?: boolean | undefined;
@@ -134,6 +138,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
134
138
  fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
135
139
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
136
140
  size: import('..').QFieldSize;
141
+ labelPosition: import('..').QLabelPosition;
137
142
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
138
143
  beforeCreate?: (() => void) | (() => void)[];
139
144
  created?: (() => void) | (() => void)[];
@@ -156,7 +161,8 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
156
161
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
157
162
  } & Readonly<{
158
163
  size: import('..').QFieldSize;
159
- }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
164
+ labelPosition: import('..').QLabelPosition;
165
+ }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
160
166
  fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
161
167
  }> & {} & import('vue').ComponentCustomProperties & {} & {
162
168
  $slots: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
1
+ {"version":3,"file":"QTextField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/QTextField.vue"],"names":[],"mappings":"AAqDA;AAiIC,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;WAqIT,OAAO,IAA6B;;iCAjBb,GAAG;gCACJ,GAAG;yBACV,GAAG;wBACH,GAAG;wBACH,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAqE+jc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;EAnDptc;AAmBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA+B0kc,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;OArBntc,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 C, mergeModels as y, useModel as R, computed as n, watch as V, toRef as z, ref as b, createBlock as h, openBlock as v, unref as r, normalizeClass as M, createSlots as w, withCtx as a, withDirectives as L, createElementVNode as Q, mergeProps as D, vModelDynamic as F, renderSlot as o, createCommentVNode as N } from "vue";
2
- import { QField as S } from "../QField/index.js";
3
- import { QClearButton as _ } from "../__internal__/QClearButton/index.js";
4
- import { useId as A } from "../../composables/uid.js";
5
- const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "disabled"], j = /* @__PURE__ */ C({
1
+ import { defineComponent as C, mergeModels as y, useModel as R, computed as o, watch as V, toRef as z, ref as b, createBlock as h, openBlock as v, unref as i, normalizeClass as M, createSlots as w, withCtx as a, withDirectives as L, createElementVNode as P, mergeProps as Q, vModelDynamic as D, renderSlot as n, 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"], j = /* @__PURE__ */ C({
6
6
  inheritAttrs: !1,
7
7
  __name: "QTextField",
8
8
  props: /* @__PURE__ */ y({
@@ -11,6 +11,7 @@ const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
11
11
  label: {},
12
12
  required: { type: Boolean },
13
13
  for: {},
14
+ labelPosition: {},
14
15
  size: {},
15
16
  readonly: { type: Boolean },
16
17
  disabled: { type: Boolean },
@@ -25,33 +26,34 @@ const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
25
26
  modelModifiers: {}
26
27
  }),
27
28
  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({
29
+ setup(s, { expose: x, emit: k }) {
30
+ const e = s, q = k, t = R(s, "modelValue"), r = o({
30
31
  get: () => t.value,
31
32
  set: (l) => {
32
33
  const d = e.maxLength;
33
34
  t.value = d ? l == null ? void 0 : l.slice(0, d) : l;
34
35
  }
35
36
  });
36
- V(t, (l) => s.value = l, { immediate: !0 });
37
- const p = A(z(e, "id")), u = b(null), f = b(null), g = n(
37
+ V(t, (l) => r.value = l, { immediate: !0 });
38
+ const p = _(z(e, "id")), u = b(null), f = b(null), g = o(
38
39
  () => e.readonly || e.disabled ? void 0 : e.placeholder
39
- ), m = n(() => e.clearable && !e.readonly && !e.disabled), c = n(() => m.value && t.value);
40
+ ), m = o(() => e.clearable && !e.readonly && !e.disabled), c = o(() => m.value && t.value);
40
41
  function B(l) {
41
42
  m.value && (t.value = "", q("click:clear", l));
42
43
  }
43
44
  return x({
44
- fieldRef: n(() => {
45
+ fieldRef: o(() => {
45
46
  var l;
46
47
  return (l = u.value) == null ? void 0 : l.fieldRef;
47
48
  }),
48
49
  inputRef: f
49
- }), (l, d) => (v(), h(r(S), {
50
+ }), (l, d) => (v(), h(i(N), {
50
51
  ref_key: "fieldRef",
51
52
  ref: u,
52
53
  class: M(["q-text-field", e.class]),
53
- for: r(p),
54
+ for: i(p),
54
55
  label: e.label,
56
+ "label-position": e.labelPosition,
55
57
  size: e.size,
56
58
  readonly: e.readonly,
57
59
  disabled: e.disabled,
@@ -59,17 +61,17 @@ const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
59
61
  invalid: e.invalid
60
62
  }, w({
61
63
  "label.prepend": a(() => [
62
- o(l.$slots, "label.prepend")
64
+ n(l.$slots, "label.prepend")
63
65
  ]),
64
66
  "label.append": a(() => [
65
- o(l.$slots, "label.append")
67
+ n(l.$slots, "label.append")
66
68
  ]),
67
69
  default: a(() => [
68
- L(Q("input", D({
69
- id: r(p),
70
+ L(P("input", Q({
71
+ id: i(p),
70
72
  ref_key: "inputRef",
71
73
  ref: f,
72
- "onUpdate:modelValue": d[0] || (d[0] = ($) => s.value = $),
74
+ "onUpdate:modelValue": d[0] || (d[0] = ($) => r.value = $),
73
75
  class: "q-text-field__input",
74
76
  type: e.type,
75
77
  maxlength: e.maxLength,
@@ -77,8 +79,8 @@ const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
77
79
  placeholder: g.value,
78
80
  readonly: e.readonly,
79
81
  disabled: e.disabled
80
- }, l.$attrs), null, 16, E), [
81
- [F, s.value]
82
+ }, l.$attrs), null, 16, A), [
83
+ [D, r.value]
82
84
  ])
83
85
  ]),
84
86
  _: 2
@@ -87,31 +89,31 @@ const E = ["id", "type", "maxlength", "required", "placeholder", "readonly", "di
87
89
  l.$slots.prepend ? {
88
90
  name: "prepend",
89
91
  fn: a(() => [
90
- o(l.$slots, "prepend")
92
+ n(l.$slots, "prepend")
91
93
  ]),
92
94
  key: "0"
93
95
  } : void 0,
94
96
  l.$slots.append || c.value ? {
95
97
  name: "append",
96
98
  fn: a(() => [
97
- o(l.$slots, "append"),
98
- c.value ? (v(), h(r(_), {
99
+ n(l.$slots, "append"),
100
+ c.value ? (v(), h(i(S), {
99
101
  key: 0,
100
102
  "data-testid": "q-text-field__clear-button",
101
103
  texts: e.texts,
102
104
  onClick: B
103
- }, null, 8, ["texts"])) : N("v-if", !0)
105
+ }, null, 8, ["texts"])) : F("v-if", !0)
104
106
  ]),
105
107
  key: "1"
106
108
  } : void 0,
107
109
  l.$slots.extras ? {
108
110
  name: "extras",
109
111
  fn: a(() => [
110
- o(l.$slots, "extras")
112
+ n(l.$slots, "extras")
111
113
  ]),
112
114
  key: "2"
113
115
  } : void 0
114
- ]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required", "invalid"]));
116
+ ]), 1032, ["class", "for", "label", "label-position", "size", "readonly", "disabled", "required", "invalid"]));
115
117
  }
116
118
  });
117
119
  export {
@@ -5,6 +5,7 @@ declare const QTextField: {
5
5
  label?: string;
6
6
  required?: boolean;
7
7
  for?: string;
8
+ labelPosition?: import('..').QLabelPosition;
8
9
  } & {
9
10
  size?: import('..').QFieldSize;
10
11
  readonly?: boolean;
@@ -39,6 +40,7 @@ declare const QTextField: {
39
40
  readonly label?: string | undefined;
40
41
  readonly required?: boolean | undefined;
41
42
  readonly for?: string | undefined;
43
+ readonly labelPosition?: import('..').QLabelPosition | undefined;
42
44
  readonly size?: import('..').QFieldSize | undefined;
43
45
  readonly readonly?: boolean | undefined;
44
46
  readonly disabled?: boolean | undefined;
@@ -64,6 +66,7 @@ declare const QTextField: {
64
66
  fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
65
67
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
66
68
  size: import('..').QFieldSize;
69
+ labelPosition: import('..').QLabelPosition;
67
70
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
68
71
  beforeCreate?: (() => void) | (() => void)[];
69
72
  created?: (() => void) | (() => void)[];
@@ -86,7 +89,8 @@ declare const QTextField: {
86
89
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
87
90
  } & Readonly<{
88
91
  size: import('..').QFieldSize;
89
- }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "size" | "fieldRef"> & import('vue').ShallowUnwrapRef<{
92
+ labelPosition: import('..').QLabelPosition;
93
+ }> & Omit<Readonly<import('..').QFieldProps> & Readonly<{}>, "fieldRef" | ("size" | "labelPosition")> & import('vue').ShallowUnwrapRef<{
90
94
  fieldRef: Readonly<import('vue').ShallowRef<HTMLDivElement | null>>;
91
95
  }> & {} & import('vue').ComponentCustomProperties & {} & {
92
96
  $slots: {
@@ -113,6 +117,7 @@ declare const QTextField: {
113
117
  label?: string;
114
118
  required?: boolean;
115
119
  for?: string;
120
+ labelPosition?: import('..').QLabelPosition;
116
121
  } & {
117
122
  size?: import('..').QFieldSize;
118
123
  readonly?: boolean;
@@ -143,6 +148,7 @@ declare const QTextField: {
143
148
  label?: string;
144
149
  required?: boolean;
145
150
  for?: string;
151
+ labelPosition?: import('..').QLabelPosition;
146
152
  } & {
147
153
  size?: import('..').QFieldSize;
148
154
  readonly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO4szB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPnyzB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA;AAGrB,cAAc,SAAS,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QTextField/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO4szB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPnyzB,CAAA;AAG/C,OAAO,EAAE,UAAU,EAAE,CAAA;AAGrB,cAAc,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@quidgest/ui",
3
3
  "description": "Quidgest's UI framework",
4
- "version": "0.16.65",
4
+ "version": "0.16.67",
5
5
  "private": false,
6
6
  "type": "module",
7
7
  "author": "Quidgest",