@quidgest/ui 0.14.21 → 0.14.23

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 (70) hide show
  1. package/dist/manifest/components.json +2 -0
  2. package/dist/ui.css +110 -5
  3. package/dist/ui.esm.js +3449 -3286
  4. package/dist/ui.js +9 -9
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +714 -702
  7. package/dist/ui.scss +118 -8
  8. package/esm/components/QColorPicker/QColorPicker.vue.js +1 -1
  9. package/esm/components/QCombobox/QCombobox.d.ts +28 -8
  10. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  11. package/esm/components/QCombobox/QCombobox.vue.js +31 -30
  12. package/esm/components/QCombobox/index.d.ts +49 -14
  13. package/esm/components/QCombobox/index.d.ts.map +1 -1
  14. package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +1 -1
  15. package/esm/components/QDateTimePicker/index.d.ts +3 -0
  16. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  17. package/esm/components/QField/QField.d.ts.map +1 -1
  18. package/esm/components/QField/QField.vue.js +11 -10
  19. package/esm/components/QFileUpload/QFileUpload.vue.js +1 -1
  20. package/esm/components/QFileUpload/index.d.ts +3 -0
  21. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  22. package/esm/components/QInputGroup/QInputGroup.vue.js +1 -1
  23. package/esm/components/QLabel/QLabel.d.ts +1 -0
  24. package/esm/components/QLabel/QLabel.d.ts.map +1 -1
  25. package/esm/components/QLabel/QLabel.vue.js +28 -13
  26. package/esm/components/QLabel/index.d.ts +1 -0
  27. package/esm/components/QLabel/index.d.ts.map +1 -1
  28. package/esm/components/QLabel/types.d.ts +5 -0
  29. package/esm/components/QLabel/types.d.ts.map +1 -1
  30. package/esm/components/QMeter/QMeter.vue.js +14 -13
  31. package/esm/components/QMeter/index.d.ts +2 -0
  32. package/esm/components/QMeter/index.d.ts.map +1 -1
  33. package/esm/components/QPasswordField/QPasswordField.d.ts +14 -4
  34. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -1
  35. package/esm/components/QPasswordField/QPasswordField.vue.js +22 -21
  36. package/esm/components/QPasswordField/index.d.ts +7 -2
  37. package/esm/components/QPasswordField/index.d.ts.map +1 -1
  38. package/esm/components/QRadioGroup/QRadioButton.d.ts +24 -0
  39. package/esm/components/QRadioGroup/QRadioButton.d.ts.map +1 -0
  40. package/esm/components/QRadioGroup/QRadioButton.vue.js +78 -0
  41. package/esm/components/QRadioGroup/QRadioButton.vue2.js +4 -0
  42. package/esm/components/QRadioGroup/QRadioGroup.d.ts +32 -0
  43. package/esm/components/QRadioGroup/QRadioGroup.d.ts.map +1 -0
  44. package/esm/components/QRadioGroup/QRadioGroup.vue.js +79 -0
  45. package/esm/components/QRadioGroup/QRadioGroup.vue2.js +4 -0
  46. package/esm/components/QRadioGroup/index.d.ts +108 -0
  47. package/esm/components/QRadioGroup/index.d.ts.map +1 -0
  48. package/esm/components/QRadioGroup/index.js +8 -0
  49. package/esm/components/QRadioGroup/types.d.ts +65 -0
  50. package/esm/components/QRadioGroup/types.d.ts.map +1 -0
  51. package/esm/components/QSelect/QSelect.d.ts +2 -2
  52. package/esm/components/QSelect/QSelect.vue.js +1 -1
  53. package/esm/components/QSelect/index.d.ts +4 -1
  54. package/esm/components/QSelect/index.d.ts.map +1 -1
  55. package/esm/components/QTextArea/QTextArea.d.ts.map +1 -1
  56. package/esm/components/QTextArea/QTextArea.vue.js +34 -31
  57. package/esm/components/QTextArea/index.d.ts +3 -0
  58. package/esm/components/QTextArea/index.d.ts.map +1 -1
  59. package/esm/components/QTextField/QTextField.d.ts +2 -2
  60. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  61. package/esm/components/QTextField/QTextField.vue.js +49 -39
  62. package/esm/components/QTextField/index.d.ts +7 -1
  63. package/esm/components/QTextField/index.d.ts.map +1 -1
  64. package/esm/components/QTextField/types.d.ts +5 -0
  65. package/esm/components/QTextField/types.d.ts.map +1 -1
  66. package/esm/components/index.d.ts +1 -0
  67. package/esm/components/index.d.ts.map +1 -1
  68. package/esm/components/index.js +34 -31
  69. package/esm/index.d.ts +2 -0
  70. package/package.json +1 -1
@@ -1,27 +1,42 @@
1
- import { defineComponent as t, createElementBlock as l, openBlock as a, normalizeClass as n, renderSlot as o, createElementVNode as i, mergeProps as p, toDisplayString as d } from "vue";
2
- const c = ["id"], f = ["for"], b = /* @__PURE__ */ t({
1
+ import { defineComponent as l, computed as a, createElementBlock as n, openBlock as d, normalizeClass as i, renderSlot as s, createElementVNode as p, mergeProps as c, createTextVNode as u, toDisplayString as f } from "vue";
2
+ const m = ["id"], b = ["for"], h = /* @__PURE__ */ l({
3
3
  inheritAttrs: !1,
4
4
  __name: "QLabel",
5
5
  props: {
6
6
  id: {},
7
7
  class: {},
8
8
  label: {},
9
- for: {}
9
+ for: {},
10
+ required: { type: Boolean }
10
11
  },
11
- setup(r) {
12
- const e = r;
13
- return (s, m) => (a(), l("div", {
12
+ setup(o) {
13
+ const e = o, t = a(() => [
14
+ "q-label",
15
+ {
16
+ "q-label--required": e.required
17
+ },
18
+ e.class
19
+ ]);
20
+ return (r, _) => (d(), n("div", {
14
21
  id: e.id,
15
- class: n(["q-label", e.class])
22
+ class: i(t.value)
16
23
  }, [
17
- o(s.$slots, "prepend"),
18
- i("label", p({
24
+ s(r.$slots, "prepend"),
25
+ p("label", c({
19
26
  for: e.for
20
- }, s.$attrs), d(e.label), 17, f),
21
- o(s.$slots, "append")
22
- ], 10, c));
27
+ }, r.$attrs), [
28
+ s(r.$slots, "default", {}, () => [
29
+ u(
30
+ f(e.label),
31
+ 1
32
+ /* TEXT */
33
+ )
34
+ ])
35
+ ], 16, b),
36
+ s(r.$slots, "append")
37
+ ], 10, m));
23
38
  }
24
39
  });
25
40
  export {
26
- b as default
41
+ h as default
27
42
  };
@@ -14,6 +14,7 @@ declare const QLabel: {
14
14
  } & import('vue').ComponentOptionsBase<Readonly<QLabelProps> & 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 () => {
15
15
  $slots: {
16
16
  prepend?(_: {}): any;
17
+ default?(_: {}): any;
17
18
  append?(_: {}): any;
18
19
  };
19
20
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;EAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -8,5 +8,10 @@ export type QLabelProps = QBaseComponentProps & {
8
8
  * The form field associated with the label.
9
9
  */
10
10
  for?: string;
11
+ /**
12
+ * If set to true, an asterisk (*) is displayed
13
+ * to indicate that the associated field is required.
14
+ */
15
+ required?: boolean;
11
16
  };
12
17
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QLabel/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
@@ -1,13 +1,14 @@
1
- import { defineComponent as b, mergeModels as v, useModel as f, computed as a, toRef as h, createElementBlock as p, openBlock as y, normalizeClass as x, createElementVNode as o, createVNode as n, unref as c, normalizeStyle as C } from "vue";
2
- import { QLabel as u } from "../QLabel/index.js";
3
- import { useColorStyle as L } from "../../composables/useColorStyle/index.js";
4
- const M = ["id"], g = { class: "q-meter__labels" }, k = { class: "q-meter__track" }, w = /* @__PURE__ */ b({
1
+ import { defineComponent as b, mergeModels as v, useModel as f, computed as a, toRef as p, createElementBlock as h, openBlock as y, normalizeClass as q, createElementVNode as o, createVNode as n, unref as u, normalizeStyle as x } from "vue";
2
+ import { QLabel as c } from "../QLabel/index.js";
3
+ import { useColorStyle as C } from "../../composables/useColorStyle/index.js";
4
+ const L = ["id"], M = { class: "q-meter__labels" }, g = { class: "q-meter__track" }, w = /* @__PURE__ */ b({
5
5
  __name: "QMeter",
6
6
  props: /* @__PURE__ */ v({
7
7
  id: {},
8
8
  class: {},
9
9
  label: {},
10
10
  for: {},
11
+ required: { type: Boolean },
11
12
  max: { default: 100 },
12
13
  valueLabel: {},
13
14
  color: {}
@@ -17,7 +18,7 @@ const M = ["id"], g = { class: "q-meter__labels" }, k = { class: "q-meter__track
17
18
  }),
18
19
  emits: ["update:modelValue"],
19
20
  setup(r) {
20
- const e = r, s = f(r, "modelValue"), d = a(() => s.value / e.max * 100), m = L(h(e, "color"), "bold"), i = a(() => {
21
+ const e = r, s = f(r, "modelValue"), d = a(() => s.value / e.max * 100), m = C(p(e, "color"), "bold"), i = a(() => {
21
22
  var t;
22
23
  return {
23
24
  width: `${Math.max(0, Math.min(d.value, 100))}%`,
@@ -27,32 +28,32 @@ const M = ["id"], g = { class: "q-meter__labels" }, k = { class: "q-meter__track
27
28
  var l;
28
29
  return typeof e.valueLabel == "string" ? e.valueLabel : (l = e.valueLabel) == null ? void 0 : l.call(e, s.value, e.max);
29
30
  });
30
- return (l, t) => (y(), p("div", {
31
+ return (l, t) => (y(), h("div", {
31
32
  id: e.id,
32
- class: x(["q-meter", e.class])
33
+ class: q(["q-meter", e.class])
33
34
  }, [
34
- o("div", g, [
35
- n(c(u), {
35
+ o("div", M, [
36
+ n(u(c), {
36
37
  label: e.label
37
38
  }, null, 8, ["label"]),
38
- n(c(u), {
39
+ n(u(c), {
39
40
  label: _.value,
40
41
  class: "q-meter__value-label"
41
42
  }, null, 8, ["label"])
42
43
  ]),
43
- o("div", k, [
44
+ o("div", g, [
44
45
  o(
45
46
  "div",
46
47
  {
47
48
  class: "q-meter__fill",
48
- style: C(i.value)
49
+ style: x(i.value)
49
50
  },
50
51
  null,
51
52
  4
52
53
  /* STYLE */
53
54
  )
54
55
  ])
55
- ], 10, M));
56
+ ], 10, L));
56
57
  }
57
58
  });
58
59
  export {
@@ -4,6 +4,7 @@ declare const QMeter: import('vue').DefineComponent<{
4
4
  } & import('../../types/component').QBaseComponentProps & {
5
5
  label?: string;
6
6
  for?: string;
7
+ required?: boolean;
7
8
  } & {
8
9
  max?: number;
9
10
  valueLabel?: string | ((value: number, max: number) => string);
@@ -15,6 +16,7 @@ declare const QMeter: import('vue').DefineComponent<{
15
16
  } & import('../../types/component').QBaseComponentProps & {
16
17
  label?: string;
17
18
  for?: string;
19
+ required?: boolean;
18
20
  } & {
19
21
  max?: number;
20
22
  valueLabel?: string | ((value: number, max: number) => string);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QMeter/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAK1C,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;wFAA2B,CAAA;AAGvC,OAAO,EAAE,MAAM,EAAE,CAAA;AAGjB,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -23,12 +23,13 @@ declare function __VLS_template(): {
23
23
  readonly class?: string | unknown[] | undefined;
24
24
  readonly label?: string | undefined;
25
25
  readonly for?: string | undefined;
26
+ readonly required?: boolean | undefined;
26
27
  readonly size?: import('..').QFieldSize | undefined;
27
28
  readonly readonly?: boolean | undefined;
28
29
  readonly disabled?: boolean | undefined;
29
- readonly required?: boolean | undefined;
30
30
  readonly invalid?: boolean | undefined;
31
31
  readonly placeholder?: string | undefined;
32
+ readonly maxLength?: number | undefined;
32
33
  readonly clearable?: boolean | undefined;
33
34
  readonly type?: string | undefined;
34
35
  readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
@@ -49,10 +50,10 @@ declare function __VLS_template(): {
49
50
  readonly class?: string | unknown[] | undefined;
50
51
  readonly label?: string | undefined;
51
52
  readonly for?: string | undefined;
53
+ readonly required?: boolean | undefined;
52
54
  readonly size?: import('..').QFieldSize | undefined;
53
55
  readonly readonly?: boolean | undefined;
54
56
  readonly disabled?: boolean | undefined;
55
- readonly required?: boolean | undefined;
56
57
  readonly invalid?: boolean | undefined;
57
58
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
58
59
  $attrs: {
@@ -125,6 +126,7 @@ declare function __VLS_template(): {
125
126
  } & import('../../types/component').QBaseComponentProps & {
126
127
  label?: string;
127
128
  for?: string;
129
+ required?: boolean;
128
130
  } & {
129
131
  size?: import('..').QFieldSize;
130
132
  readonly?: boolean;
@@ -133,6 +135,7 @@ declare function __VLS_template(): {
133
135
  invalid?: boolean;
134
136
  } & {
135
137
  placeholder?: string;
138
+ maxLength?: number;
136
139
  clearable?: boolean;
137
140
  type?: string;
138
141
  texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
@@ -175,6 +178,7 @@ declare function __VLS_template(): {
175
178
  } & import('../../types/component').QBaseComponentProps & {
176
179
  label?: string;
177
180
  for?: string;
181
+ required?: boolean;
178
182
  } & {
179
183
  size?: import('..').QFieldSize;
180
184
  readonly?: boolean;
@@ -183,6 +187,7 @@ declare function __VLS_template(): {
183
187
  invalid?: boolean;
184
188
  } & {
185
189
  placeholder?: string;
190
+ maxLength?: number;
186
191
  clearable?: boolean;
187
192
  type?: string;
188
193
  texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
@@ -224,12 +229,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
224
229
  readonly class?: string | unknown[] | undefined;
225
230
  readonly label?: string | undefined;
226
231
  readonly for?: string | undefined;
232
+ readonly required?: boolean | undefined;
227
233
  readonly size?: import('..').QFieldSize | undefined;
228
234
  readonly readonly?: boolean | undefined;
229
235
  readonly disabled?: boolean | undefined;
230
- readonly required?: boolean | undefined;
231
236
  readonly invalid?: boolean | undefined;
232
237
  readonly placeholder?: string | undefined;
238
+ readonly maxLength?: number | undefined;
233
239
  readonly clearable?: boolean | undefined;
234
240
  readonly type?: string | undefined;
235
241
  readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
@@ -250,10 +256,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
250
256
  readonly class?: string | unknown[] | undefined;
251
257
  readonly label?: string | undefined;
252
258
  readonly for?: string | undefined;
259
+ readonly required?: boolean | undefined;
253
260
  readonly size?: import('..').QFieldSize | undefined;
254
261
  readonly readonly?: boolean | undefined;
255
262
  readonly disabled?: boolean | undefined;
256
- readonly required?: boolean | undefined;
257
263
  readonly invalid?: boolean | undefined;
258
264
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
259
265
  $attrs: {
@@ -326,6 +332,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
326
332
  } & import('../../types/component').QBaseComponentProps & {
327
333
  label?: string;
328
334
  for?: string;
335
+ required?: boolean;
329
336
  } & {
330
337
  size?: import('..').QFieldSize;
331
338
  readonly?: boolean;
@@ -334,6 +341,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
334
341
  invalid?: boolean;
335
342
  } & {
336
343
  placeholder?: string;
344
+ maxLength?: number;
337
345
  clearable?: boolean;
338
346
  type?: string;
339
347
  texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
@@ -376,6 +384,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
376
384
  } & import('../../types/component').QBaseComponentProps & {
377
385
  label?: string;
378
386
  for?: string;
387
+ required?: boolean;
379
388
  } & {
380
389
  size?: import('..').QFieldSize;
381
390
  readonly?: boolean;
@@ -384,6 +393,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
384
393
  invalid?: boolean;
385
394
  } & {
386
395
  placeholder?: string;
396
+ maxLength?: number;
387
397
  clearable?: boolean;
388
398
  type?: string;
389
399
  texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
@@ -1 +1 @@
1
- {"version":3,"file":"QPasswordField.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/QPasswordField.vue"],"names":[],"mappings":"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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OArBh4T,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,29 +1,30 @@
1
- import { defineComponent as S, mergeModels as E, useModel as V, ref as B, computed as v, createElementBlock as L, openBlock as g, Fragment as P, createVNode as y, createBlock as $, createCommentVNode as w, unref as b, mergeProps as Q, createSlots as R, withCtx as r, renderSlot as d, normalizeProps as N, guardReactiveProps as O } from "vue";
2
- import { DEFAULT_ICONS as U } from "./constants.js";
3
- import { QButton as x } from "../QButton/index.js";
1
+ import { defineComponent as L, mergeModels as S, useModel as V, ref as B, computed as v, createElementBlock as E, openBlock as g, Fragment as P, createVNode as y, createBlock as $, createCommentVNode as w, unref as b, mergeProps as Q, createSlots as R, withCtx as n, renderSlot as d, normalizeProps as x, guardReactiveProps as N } from "vue";
2
+ import { DEFAULT_ICONS as O } from "./constants.js";
3
+ import { QButton as U } from "../QButton/index.js";
4
4
  import { QIcon as A } from "../QIcon/index.js";
5
5
  import { QTextField as I } from "../QTextField/index.js";
6
6
  import T from "./QPasswordFieldMessages.vue.js";
7
7
  import D from "./QPasswordFieldMeterOverlay.vue.js";
8
- const Y = /* @__PURE__ */ S({
8
+ const Y = /* @__PURE__ */ L({
9
9
  inheritAttrs: !1,
10
10
  __name: "QPasswordField",
11
- props: /* @__PURE__ */ E({
11
+ props: /* @__PURE__ */ S({
12
12
  id: {},
13
13
  class: {},
14
14
  label: {},
15
15
  for: {},
16
+ required: { type: Boolean },
16
17
  size: { default: "medium" },
17
18
  readonly: { type: Boolean },
18
19
  disabled: { type: Boolean },
19
- required: { type: Boolean },
20
20
  invalid: { type: Boolean },
21
21
  placeholder: {},
22
+ maxLength: {},
22
23
  toggle: { type: Boolean },
23
24
  meter: { type: Boolean },
24
25
  meterLevels: {},
25
26
  rules: {},
26
- icons: { default: () => U }
27
+ icons: { default: () => O }
27
28
  }, {
28
29
  modelValue: {},
29
30
  modelModifiers: {},
@@ -39,13 +40,13 @@ const Y = /* @__PURE__ */ S({
39
40
  function q(l, s) {
40
41
  if (!l || !s) return;
41
42
  let a = 0;
42
- const n = [];
43
+ const r = [];
43
44
  return s.forEach((m) => {
44
45
  const c = m.test instanceof RegExp ? m.test.test(l) : m.test(l);
45
- c === !0 ? a += m.weight : typeof c == "string" && n.push(c);
46
+ c === !0 ? a += m.weight : typeof c == "string" && r.push(c);
46
47
  }), {
47
48
  score: k.value ? a / k.value : 0,
48
- messages: n
49
+ messages: r
49
50
  };
50
51
  }
51
52
  function z() {
@@ -58,8 +59,8 @@ const Y = /* @__PURE__ */ S({
58
59
  u.value = !1;
59
60
  }
60
61
  return (l, s) => {
61
- var a, n;
62
- return g(), L(
62
+ var a, r;
63
+ return g(), E(
63
64
  P,
64
65
  null,
65
66
  [
@@ -82,10 +83,10 @@ const Y = /* @__PURE__ */ S({
82
83
  onFocusin: F,
83
84
  onFocusout: C
84
85
  }), R({
85
- "label.prepend": r(() => [
86
+ "label.prepend": n(() => [
86
87
  d(l.$slots, "label.prepend")
87
88
  ]),
88
- "label.append": r(() => [
89
+ "label.append": n(() => [
89
90
  d(l.$slots, "label.append")
90
91
  ]),
91
92
  _: 2
@@ -93,26 +94,26 @@ const Y = /* @__PURE__ */ S({
93
94
  }, [
94
95
  l.$slots.prepend ? {
95
96
  name: "prepend",
96
- fn: r(() => [
97
+ fn: n(() => [
97
98
  d(l.$slots, "prepend")
98
99
  ]),
99
100
  key: "0"
100
101
  } : void 0,
101
102
  e.toggle ? {
102
103
  name: "append",
103
- fn: r(() => [
104
+ fn: n(() => [
104
105
  d(l.$slots, "append"),
105
- y(b(x), {
106
+ y(b(U), {
106
107
  size: "small",
107
108
  borderless: "",
108
109
  "data-testid": "q-password-toggle",
109
110
  disabled: e.disabled,
110
111
  onClick: z
111
112
  }, {
112
- default: r(() => [
113
+ default: n(() => [
113
114
  y(
114
115
  b(A),
115
- N(O(i.value ? e.icons.show : e.icons.hide)),
116
+ x(N(i.value ? e.icons.show : e.icons.hide)),
116
117
  null,
117
118
  16
118
119
  /* FULL_PROPS */
@@ -126,7 +127,7 @@ const Y = /* @__PURE__ */ S({
126
127
  } : void 0,
127
128
  l.$slots.extras || e.rules && !e.meter ? {
128
129
  name: "extras",
129
- fn: r(() => [
130
+ fn: n(() => [
130
131
  d(l.$slots, "extras", {}, () => {
131
132
  var o;
132
133
  return [
@@ -148,7 +149,7 @@ const Y = /* @__PURE__ */ S({
148
149
  score: t.value.score,
149
150
  levels: e.meterLevels,
150
151
  messages: t.value.messages,
151
- anchor: (n = h.value) == null ? void 0 : n.$el
152
+ anchor: (r = h.value) == null ? void 0 : r.$el
152
153
  }, null, 8, ["modelValue", "score", "levels", "messages", "anchor"])) : w("v-if", !0)
153
154
  ],
154
155
  64
@@ -28,12 +28,13 @@ declare const QPasswordField: {
28
28
  readonly class?: string | unknown[] | undefined;
29
29
  readonly label?: string | undefined;
30
30
  readonly for?: string | undefined;
31
+ readonly required?: boolean | undefined;
31
32
  readonly size?: import('..').QFieldSize | undefined;
32
33
  readonly readonly?: boolean | undefined;
33
34
  readonly disabled?: boolean | undefined;
34
- readonly required?: boolean | undefined;
35
35
  readonly invalid?: boolean | undefined;
36
36
  readonly placeholder?: string | undefined;
37
+ readonly maxLength?: number | undefined;
37
38
  readonly clearable?: boolean | undefined;
38
39
  readonly type?: string | undefined;
39
40
  readonly texts?: typeof import('../QTextField/types').DEFAULT_TEXTS | undefined;
@@ -54,10 +55,10 @@ declare const QPasswordField: {
54
55
  readonly class?: string | unknown[] | undefined;
55
56
  readonly label?: string | undefined;
56
57
  readonly for?: string | undefined;
58
+ readonly required?: boolean | undefined;
57
59
  readonly size?: import('..').QFieldSize | undefined;
58
60
  readonly readonly?: boolean | undefined;
59
61
  readonly disabled?: boolean | undefined;
60
- readonly required?: boolean | undefined;
61
62
  readonly invalid?: boolean | undefined;
62
63
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
63
64
  $attrs: {
@@ -130,6 +131,7 @@ declare const QPasswordField: {
130
131
  } & import('../../types/component').QBaseComponentProps & {
131
132
  label?: string;
132
133
  for?: string;
134
+ required?: boolean;
133
135
  } & {
134
136
  size?: import('..').QFieldSize;
135
137
  readonly?: boolean;
@@ -138,6 +140,7 @@ declare const QPasswordField: {
138
140
  invalid?: boolean;
139
141
  } & {
140
142
  placeholder?: string;
143
+ maxLength?: number;
141
144
  clearable?: boolean;
142
145
  type?: string;
143
146
  texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
@@ -180,6 +183,7 @@ declare const QPasswordField: {
180
183
  } & import('../../types/component').QBaseComponentProps & {
181
184
  label?: string;
182
185
  for?: string;
186
+ required?: boolean;
183
187
  } & {
184
188
  size?: import('..').QFieldSize;
185
189
  readonly?: boolean;
@@ -188,6 +192,7 @@ declare const QPasswordField: {
188
192
  invalid?: boolean;
189
193
  } & {
190
194
  placeholder?: string;
195
+ maxLength?: number;
191
196
  clearable?: boolean;
192
197
  type?: string;
193
198
  texts?: typeof import('../QTextField/types').DEFAULT_TEXTS;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAO+mzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPlszB,CAAA;AAGvD,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,YAAY,EAAE,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QPasswordField/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAKlD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAO+mzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPlszB,CAAA;AAGvD,OAAO,EAAE,cAAc,EAAE,CAAA;AAGzB,YAAY,EAAE,mBAAmB,EAAE,CAAA"}
@@ -0,0 +1,24 @@
1
+ import { QRadioButtonProps } from './types';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ default?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<QRadioButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<QRadioButtonProps> & Readonly<{}>, {
13
+ size: import('./types').QRadioButtonSize;
14
+ color: string;
15
+ labelPlacement: import('./types').QRadioButtonLabelPlacement;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
24
+ //# sourceMappingURL=QRadioButton.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QRadioButton.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioButton.vue"],"names":[],"mappings":"AA2BA;AA0FC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAmDjD,iBAAS,cAAc;WAiET,OAAO,IAA6B;;yBAZrB,GAAG;yBACH,GAAG;;;;EAgB/B;AAcD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;6EAOnB,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"}
@@ -0,0 +1,78 @@
1
+ import { defineComponent as m, computed as r, createBlock as b, openBlock as f, unref as o, normalizeClass as v, createSlots as y, withCtx as d, createElementVNode as g, renderSlot as i, createCommentVNode as q, mergeProps as B } from "vue";
2
+ import { QLabel as h } from "../QLabel/index.js";
3
+ import { useGroupItem as C } from "../../composables/group.js";
4
+ import { useId as k } from "../../composables/uid.js";
5
+ const z = ["id", "checked", "name", "value", "disabled"], w = /* @__PURE__ */ m({
6
+ inheritAttrs: !1,
7
+ __name: "QRadioButton",
8
+ props: {
9
+ id: {},
10
+ class: {},
11
+ label: {},
12
+ for: {},
13
+ required: { type: Boolean },
14
+ labelPlacement: { default: "end" },
15
+ disabled: { type: Boolean },
16
+ readonly: { type: Boolean },
17
+ color: { default: "primary" },
18
+ value: {},
19
+ size: { default: "regular" },
20
+ invalid: { type: Boolean },
21
+ name: {}
22
+ },
23
+ setup(s) {
24
+ const e = s, n = k(e.id), t = C(e.value);
25
+ if (!t)
26
+ throw new Error("QRadioButton must be used inside a QRadioGroup");
27
+ const u = r(() => e.labelPlacement === "start" ? "append" : "prepend"), p = r(() => {
28
+ const a = e.size !== "regular" ? `q-radio-button--${e.size}` : void 0, l = e.color !== "primary" ? `q-radio-button--${e.color}` : void 0;
29
+ return [
30
+ "q-radio-button",
31
+ a,
32
+ l,
33
+ {
34
+ "q-radio-button--readonly": e.readonly,
35
+ "q-radio-button--disabled": e.disabled,
36
+ "q-radio-button--invalid": e.invalid
37
+ },
38
+ e.class
39
+ ];
40
+ });
41
+ return (a, l) => (f(), b(o(h), {
42
+ for: o(n),
43
+ class: v(p.value),
44
+ label: e.label
45
+ }, y({
46
+ [u.value]: d(() => [
47
+ g("input", B({
48
+ id: o(n),
49
+ checked: o(t).isActive.value,
50
+ tabindex: "0",
51
+ type: "radio",
52
+ "aria-hidden": "true",
53
+ class: "q-radio-button__input",
54
+ name: e.name,
55
+ value: a.value,
56
+ disabled: e.readonly || e.disabled
57
+ }, a.$attrs, {
58
+ onChange: l[0] || (l[0] = //@ts-ignore
59
+ (...c) => o(t).toggle && o(t).toggle(...c))
60
+ }), null, 16, z),
61
+ e.labelPlacement === "end" ? i(a.$slots, "default", { key: 0 }) : q("v-if", !0)
62
+ ]),
63
+ _: 2
64
+ /* DYNAMIC */
65
+ }, [
66
+ e.labelPlacement === "start" ? {
67
+ name: "prepend",
68
+ fn: d(() => [
69
+ i(a.$slots, "default")
70
+ ]),
71
+ key: "0"
72
+ } : void 0
73
+ ]), 1032, ["for", "class", "label"]));
74
+ }
75
+ });
76
+ export {
77
+ w as default
78
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QRadioButton.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,32 @@
1
+ import { Primitive } from '../../types/primitive';
2
+ import { QRadioGroupProps } from './types';
3
+ type __VLS_Props = QRadioGroupProps;
4
+ type __VLS_PublicProps = {
5
+ modelValue?: Primitive;
6
+ } & __VLS_Props;
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ default?(_: {}): any;
11
+ extras?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ "update:modelValue": (value: Primitive) => any;
19
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
20
+ "onUpdate:modelValue"?: ((value: Primitive) => any) | undefined;
21
+ }>, {
22
+ size: import('./types').QRadioButtonSize;
23
+ orientation: import('./types').QRadioButtonOrientation;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
32
+ //# sourceMappingURL=QRadioGroup.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QRadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/QRadioGroup.vue"],"names":[],"mappings":"AAsBA;AA8FC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AAoDrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;CACtB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAqDT,OAAO,IAA6B;;yBAZrB,GAAG;wBACJ,GAAG;;;;EAgB9B;AAaD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}