@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
@@ -0,0 +1,79 @@
1
+ import { defineComponent as b, mergeModels as y, useModel as g, watch as B, computed as d, toRef as r, createElementBlock as n, openBlock as a, normalizeClass as q, createBlock as _, createCommentVNode as u, createElementVNode as h, unref as l, mergeProps as z, renderSlot as m } from "vue";
2
+ import { QLabel as k } from "../QLabel/index.js";
3
+ import { provideDefaults as V } from "../../composables/defaults.js";
4
+ import { useGroup as $ } from "../../composables/group.js";
5
+ import { useId as c } from "../../composables/uid.js";
6
+ const C = ["id"], M = {
7
+ key: 1,
8
+ class: "q-field__extras"
9
+ }, w = /* @__PURE__ */ b({
10
+ inheritAttrs: !1,
11
+ __name: "QRadioGroup",
12
+ props: /* @__PURE__ */ y({
13
+ id: {},
14
+ class: {},
15
+ label: {},
16
+ for: {},
17
+ required: { type: Boolean },
18
+ orientation: { default: "vertical" },
19
+ disabled: { type: Boolean },
20
+ readonly: { type: Boolean },
21
+ size: { default: "regular" },
22
+ invalid: { type: Boolean },
23
+ name: {}
24
+ }, {
25
+ modelValue: { type: [String, Number, Boolean, Symbol] },
26
+ modelModifiers: {}
27
+ }),
28
+ emits: ["update:modelValue"],
29
+ setup(t) {
30
+ const e = t, i = g(t, "modelValue"), { active: p } = $({ active: i });
31
+ B(p, (o) => {
32
+ i.value = o;
33
+ });
34
+ const s = c(e.id), f = d(() => c(e.name)), v = d(() => [
35
+ "q-radio-group",
36
+ {
37
+ "q-radio-group--horizontal": e.orientation === "horizontal"
38
+ },
39
+ e.class
40
+ ]);
41
+ return V({
42
+ QRadioButton: {
43
+ size: r(e, "size"),
44
+ disabled: r(e, "disabled"),
45
+ readonly: r(e, "readonly"),
46
+ invalid: r(e, "invalid"),
47
+ name: f
48
+ }
49
+ }), (o, N) => (a(), n(
50
+ "div",
51
+ {
52
+ class: q(v.value)
53
+ },
54
+ [
55
+ e.label ? (a(), _(l(k), {
56
+ key: 0,
57
+ for: l(s),
58
+ label: e.label,
59
+ required: e.required
60
+ }, null, 8, ["for", "label", "required"])) : u("v-if", !0),
61
+ h("div", z({
62
+ id: l(s),
63
+ class: "q-radio-group__group",
64
+ role: "radiogroup"
65
+ }, o.$attrs), [
66
+ m(o.$slots, "default")
67
+ ], 16, C),
68
+ o.$slots.extras ? (a(), n("div", M, [
69
+ m(o.$slots, "extras")
70
+ ])) : u("v-if", !0)
71
+ ],
72
+ 2
73
+ /* CLASS */
74
+ ));
75
+ }
76
+ });
77
+ export {
78
+ w as default
79
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./QRadioGroup.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,108 @@
1
+ declare const QRadioButton: {
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types').QRadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
3
+ size: import('./types').QRadioButtonSize;
4
+ color: string;
5
+ labelPlacement: import('./types').QRadioButtonLabelPlacement;
6
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
7
+ P: {};
8
+ B: {};
9
+ D: {};
10
+ C: {};
11
+ M: {};
12
+ Defaults: {};
13
+ }, Readonly<import('./types').QRadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, {
14
+ size: import('./types').QRadioButtonSize;
15
+ color: string;
16
+ labelPlacement: import('./types').QRadioButtonLabelPlacement;
17
+ }>;
18
+ __isFragment?: never;
19
+ __isTeleport?: never;
20
+ __isSuspense?: never;
21
+ } & import('vue').ComponentOptionsBase<Readonly<import('./types').QRadioButtonProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
22
+ size: import('./types').QRadioButtonSize;
23
+ color: string;
24
+ labelPlacement: import('./types').QRadioButtonLabelPlacement;
25
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
26
+ $slots: {
27
+ default?(_: {}): any;
28
+ default?(_: {}): any;
29
+ };
30
+ });
31
+ declare const QRadioGroup: {
32
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
33
+ modelValue?: import('../../types/primitive').Primitive;
34
+ } & import('../../types/component').QBaseComponentProps & {
35
+ label?: string;
36
+ for?: string;
37
+ required?: boolean;
38
+ } & {
39
+ orientation?: import('./types').QRadioButtonOrientation;
40
+ disabled?: boolean;
41
+ readonly?: boolean;
42
+ size?: import('./types').QRadioButtonSize;
43
+ invalid?: boolean;
44
+ name?: string;
45
+ }> & Readonly<{
46
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
47
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
+ "update:modelValue": (value: import('../../types/primitive').Primitive) => any;
49
+ }, import('vue').PublicProps, {
50
+ size: import('./types').QRadioButtonSize;
51
+ orientation: import('./types').QRadioButtonOrientation;
52
+ }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
53
+ P: {};
54
+ B: {};
55
+ D: {};
56
+ C: {};
57
+ M: {};
58
+ Defaults: {};
59
+ }, Readonly<{
60
+ modelValue?: import('../../types/primitive').Primitive;
61
+ } & import('../../types/component').QBaseComponentProps & {
62
+ label?: string;
63
+ for?: string;
64
+ required?: boolean;
65
+ } & {
66
+ orientation?: import('./types').QRadioButtonOrientation;
67
+ disabled?: boolean;
68
+ readonly?: boolean;
69
+ size?: import('./types').QRadioButtonSize;
70
+ invalid?: boolean;
71
+ name?: string;
72
+ }> & Readonly<{
73
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
74
+ }>, {}, {}, {}, {}, {
75
+ size: import('./types').QRadioButtonSize;
76
+ orientation: import('./types').QRadioButtonOrientation;
77
+ }>;
78
+ __isFragment?: never;
79
+ __isTeleport?: never;
80
+ __isSuspense?: never;
81
+ } & import('vue').ComponentOptionsBase<Readonly<{
82
+ modelValue?: import('../../types/primitive').Primitive;
83
+ } & import('../../types/component').QBaseComponentProps & {
84
+ label?: string;
85
+ for?: string;
86
+ required?: boolean;
87
+ } & {
88
+ orientation?: import('./types').QRadioButtonOrientation;
89
+ disabled?: boolean;
90
+ readonly?: boolean;
91
+ size?: import('./types').QRadioButtonSize;
92
+ invalid?: boolean;
93
+ name?: string;
94
+ }> & Readonly<{
95
+ "onUpdate:modelValue"?: ((value: import('../../types/primitive').Primitive) => any) | undefined;
96
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
97
+ "update:modelValue": (value: import('../../types/primitive').Primitive) => any;
98
+ }, string, {
99
+ size: import('./types').QRadioButtonSize;
100
+ orientation: import('./types').QRadioButtonOrientation;
101
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
102
+ $slots: {
103
+ default?(_: {}): any;
104
+ extras?(_: {}): any;
105
+ };
106
+ });
107
+ export { QRadioButton, QRadioGroup };
108
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAiC,CAAA;AACnD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,CAAA"}
@@ -0,0 +1,8 @@
1
+ import r from "./QRadioButton.vue.js";
2
+ import t from "./QRadioGroup.vue.js";
3
+ import { setupPropsProxy as o } from "../../utils/setupPropsProxy.js";
4
+ const s = o(r), f = o(t);
5
+ export {
6
+ s as QRadioButton,
7
+ f as QRadioGroup
8
+ };
@@ -0,0 +1,65 @@
1
+ import { QLabelProps } from '../QLabel';
2
+ export type QRadioButtonOrientation = 'vertical' | 'horizontal';
3
+ export type QRadioButtonSize = 'small' | 'regular' | 'large';
4
+ export type QRadioGroupProps = QLabelProps & {
5
+ /**
6
+ * The orientation of the radio button group shown.
7
+ */
8
+ orientation?: QRadioButtonOrientation;
9
+ /**
10
+ * If true, the radio button is disabled and cannot be interacted with.
11
+ */
12
+ disabled?: boolean;
13
+ /**
14
+ * If set to true, the radio button is read-only.
15
+ */
16
+ readonly?: boolean;
17
+ /**
18
+ * The size of the checkbox, either 'regular', 'small' or 'large'.
19
+ */
20
+ size?: QRadioButtonSize;
21
+ /**
22
+ * Indicates whether the provided value fails the validation criteria.
23
+ */
24
+ invalid?: boolean;
25
+ /**
26
+ * The name for each radio buttons in radio group.
27
+ */
28
+ name?: string;
29
+ };
30
+ export type QRadioButtonLabelPlacement = 'start' | 'end';
31
+ export type QRadioButtonProps = QLabelProps & {
32
+ /**
33
+ * The placement of the label shown.
34
+ */
35
+ labelPlacement?: QRadioButtonLabelPlacement;
36
+ /**
37
+ * If true, the radio button is disabled and cannot be interacted with.
38
+ */
39
+ disabled?: boolean;
40
+ /**
41
+ * If set to true, the radio button is read-only.
42
+ */
43
+ readonly?: boolean;
44
+ /**
45
+ * Applies specified color to the control
46
+ */
47
+ color?: string;
48
+ /**
49
+ * Defined the value for the radio button.
50
+ */
51
+ value: string;
52
+ /**
53
+ * The size of the checkbox, either 'regular', 'small' or 'large'.
54
+ */
55
+ size?: QRadioButtonSize;
56
+ /**
57
+ * Indicates whether the provided value fails the validation criteria.
58
+ */
59
+ invalid?: boolean;
60
+ /**
61
+ * The name for each radio buttons in radio group.
62
+ */
63
+ name?: string;
64
+ };
65
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QRadioGroup/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,uBAAuB,GAAG,UAAU,GAAG,YAAY,CAAA;AAE/D,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAA;AAE5D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,uBAAuB,CAAA;IAErC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG,OAAO,GAAG,KAAK,CAAA;AAExD,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG;IAC7C;;OAEG;IACH,cAAc,CAAC,EAAE,0BAA0B,CAAA;IAE3C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,CAAA;IAEvB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IAEjB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA"}
@@ -26,10 +26,10 @@ declare function __VLS_template(): {
26
26
  readonly class?: string | unknown[] | undefined;
27
27
  readonly label?: string | undefined;
28
28
  readonly for?: string | undefined;
29
+ readonly required?: boolean | undefined;
29
30
  readonly size?: import('../QField').QFieldSize | undefined;
30
31
  readonly readonly?: boolean | undefined;
31
32
  readonly disabled?: boolean | undefined;
32
- readonly required?: boolean | undefined;
33
33
  readonly invalid?: boolean | undefined;
34
34
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
35
35
  $attrs: {
@@ -298,10 +298,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
298
298
  readonly class?: string | unknown[] | undefined;
299
299
  readonly label?: string | undefined;
300
300
  readonly for?: string | undefined;
301
+ readonly required?: boolean | undefined;
301
302
  readonly size?: import('../QField').QFieldSize | undefined;
302
303
  readonly readonly?: boolean | undefined;
303
304
  readonly disabled?: boolean | undefined;
304
- readonly required?: boolean | undefined;
305
305
  readonly invalid?: boolean | undefined;
306
306
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
307
307
  $attrs: {
@@ -25,10 +25,10 @@ const fe = {
25
25
  class: {},
26
26
  label: {},
27
27
  for: {},
28
+ required: { type: Boolean },
28
29
  size: {},
29
30
  readonly: { type: Boolean },
30
31
  disabled: { type: Boolean },
31
- required: { type: Boolean },
32
32
  invalid: { type: Boolean },
33
33
  items: {},
34
34
  groups: { default: () => [] },
@@ -4,6 +4,7 @@ declare const QSelect: {
4
4
  } & import('../../types/component').QBaseComponentProps & {
5
5
  label?: string;
6
6
  for?: string;
7
+ required?: boolean;
7
8
  } & {
8
9
  size?: import('..').QFieldSize;
9
10
  readonly?: boolean;
@@ -54,10 +55,10 @@ declare const QSelect: {
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: {
@@ -304,6 +305,7 @@ declare const QSelect: {
304
305
  } & import('../../types/component').QBaseComponentProps & {
305
306
  label?: string;
306
307
  for?: string;
308
+ required?: boolean;
307
309
  } & {
308
310
  size?: import('..').QFieldSize;
309
311
  readonly?: boolean;
@@ -347,6 +349,7 @@ declare const QSelect: {
347
349
  } & import('../../types/component').QBaseComponentProps & {
348
350
  label?: string;
349
351
  for?: string;
352
+ required?: boolean;
350
353
  } & {
351
354
  size?: import('..').QFieldSize;
352
355
  readonly?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAI2wzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJr2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAI2wzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAJr2zB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA"}
@@ -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({
@@ -10,10 +10,10 @@ const H = ["id", "required", "placeholder", "readonly", "disabled", "maxlength",
10
10
  class: {},
11
11
  label: {},
12
12
  for: {},
13
+ required: { type: Boolean },
13
14
  size: {},
14
15
  readonly: { type: Boolean },
15
16
  disabled: { type: Boolean },
16
- required: { type: Boolean },
17
17
  invalid: { type: Boolean },
18
18
  placeholder: {},
19
19
  maxLength: {},
@@ -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
  };
@@ -4,6 +4,7 @@ declare const QTextArea: {
4
4
  } & import('../../types/component').QBaseComponentProps & {
5
5
  label?: string;
6
6
  for?: string;
7
+ required?: boolean;
7
8
  } & {
8
9
  size?: import('..').QFieldSize;
9
10
  readonly?: boolean;
@@ -40,6 +41,7 @@ declare const QTextArea: {
40
41
  } & import('../../types/component').QBaseComponentProps & {
41
42
  label?: string;
42
43
  for?: string;
44
+ required?: boolean;
43
45
  } & {
44
46
  size?: import('..').QFieldSize;
45
47
  readonly?: boolean;
@@ -69,6 +71,7 @@ declare const QTextArea: {
69
71
  } & import('../../types/component').QBaseComponentProps & {
70
72
  label?: string;
71
73
  for?: string;
74
+ required?: boolean;
72
75
  } & {
73
76
  size?: import('..').QFieldSize;
74
77
  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"}
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"}
@@ -21,10 +21,10 @@ declare function __VLS_template(): {
21
21
  readonly class?: string | unknown[] | undefined;
22
22
  readonly label?: string | undefined;
23
23
  readonly for?: string | undefined;
24
+ readonly required?: boolean | undefined;
24
25
  readonly size?: import('../QField').QFieldSize | undefined;
25
26
  readonly readonly?: boolean | undefined;
26
27
  readonly disabled?: boolean | undefined;
27
- readonly required?: boolean | undefined;
28
28
  readonly invalid?: boolean | undefined;
29
29
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
30
30
  $attrs: {
@@ -108,10 +108,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
108
108
  readonly class?: string | unknown[] | undefined;
109
109
  readonly label?: string | undefined;
110
110
  readonly for?: string | undefined;
111
+ readonly required?: boolean | undefined;
111
112
  readonly size?: import('../QField').QFieldSize | undefined;
112
113
  readonly readonly?: boolean | undefined;
113
114
  readonly disabled?: boolean | undefined;
114
- readonly required?: boolean | undefined;
115
115
  readonly invalid?: boolean | undefined;
116
116
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
117
117
  $attrs: {
@@ -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"}