@quidgest/ui 0.14.18 → 0.14.20

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 (120) hide show
  1. package/dist/manifest/components.json +3 -0
  2. package/dist/ui.css +76 -26
  3. package/dist/ui.esm.js +5925 -5571
  4. package/dist/ui.js +16 -16
  5. package/dist/ui.min.css +1 -1
  6. package/dist/ui.min.js +691 -666
  7. package/dist/ui.scss +80 -27
  8. package/esm/components/QBadge/QBadge.d.ts +1 -1
  9. package/esm/components/QBadge/QBadge.d.ts.map +1 -1
  10. package/esm/components/QBadge/QBadge.vue.js +42 -48
  11. package/esm/components/QBadge/index.d.ts +3 -3
  12. package/esm/components/QCombobox/QCombobox.d.ts +26 -0
  13. package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
  14. package/esm/components/QCombobox/QCombobox.vue.js +1 -0
  15. package/esm/components/QCombobox/index.d.ts +46 -3
  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 +12 -10
  19. package/esm/components/QDateTimePicker/index.d.ts +6 -0
  20. package/esm/components/QDateTimePicker/index.d.ts.map +1 -1
  21. package/esm/components/QDialog/QDialog.d.ts +1 -1
  22. package/esm/components/QDialog/index.d.ts +3 -3
  23. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts +2 -0
  24. package/esm/components/QDropdownMenu/QDropdownMenuContent.d.ts.map +1 -1
  25. package/esm/components/QDropdownMenu/QDropdownMenuContent.vue.js +13 -13
  26. package/esm/components/QField/QField.d.ts.map +1 -1
  27. package/esm/components/QField/QField.vue.js +47 -39
  28. package/esm/components/QField/types.d.ts +6 -10
  29. package/esm/components/QField/types.d.ts.map +1 -1
  30. package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -1
  31. package/esm/components/QFileUpload/QFileUpload.vue.js +15 -13
  32. package/esm/components/QFileUpload/index.d.ts +6 -0
  33. package/esm/components/QFileUpload/index.d.ts.map +1 -1
  34. package/esm/components/QIcon/QIcon.d.ts.map +1 -1
  35. package/esm/components/QIcon/QIcon.vue.js +25 -17
  36. package/esm/components/QIcon/QIconFont.d.ts.map +1 -1
  37. package/esm/components/QIcon/QIconFont.vue.js +9 -13
  38. package/esm/components/QIcon/QIconImg.d.ts.map +1 -1
  39. package/esm/components/QIcon/QIconImg.vue.js +11 -15
  40. package/esm/components/QIcon/QIconSvg.d.ts.map +1 -1
  41. package/esm/components/QIcon/QIconSvg.vue.js +15 -19
  42. package/esm/components/QIcon/types.d.ts +8 -4
  43. package/esm/components/QIcon/types.d.ts.map +1 -1
  44. package/esm/components/QInputGroup/QInputGroup.d.ts +2 -0
  45. package/esm/components/QInputGroup/QInputGroup.d.ts.map +1 -1
  46. package/esm/components/QInputGroup/QInputGroup.vue.js +40 -32
  47. package/esm/components/QInputGroup/index.d.ts +2 -0
  48. package/esm/components/QInputGroup/index.d.ts.map +1 -1
  49. package/esm/components/QLabel/QLabel.d.ts +20 -0
  50. package/esm/components/QLabel/QLabel.d.ts.map +1 -0
  51. package/esm/components/QLabel/QLabel.vue.js +27 -0
  52. package/esm/components/QLabel/QLabel.vue2.js +4 -0
  53. package/esm/components/QLabel/index.d.ts +22 -0
  54. package/esm/components/QLabel/index.d.ts.map +1 -0
  55. package/esm/components/QLabel/index.js +6 -0
  56. package/esm/components/QLabel/types.d.ts +12 -0
  57. package/esm/components/QLabel/types.d.ts.map +1 -0
  58. package/esm/components/QList/QList.d.ts +2 -0
  59. package/esm/components/QList/QList.d.ts.map +1 -1
  60. package/esm/components/QList/QList.vue.js +22 -21
  61. package/esm/components/QList/QListItem.d.ts.map +1 -1
  62. package/esm/components/QList/QListItem.vue.js +22 -18
  63. package/esm/components/QList/index.d.ts +1 -0
  64. package/esm/components/QList/index.d.ts.map +1 -1
  65. package/esm/components/QList/types.d.ts +4 -0
  66. package/esm/components/QList/types.d.ts.map +1 -1
  67. package/esm/components/QMeter/QMeter.d.ts +14 -0
  68. package/esm/components/QMeter/QMeter.d.ts.map +1 -0
  69. package/esm/components/QMeter/QMeter.vue.js +60 -0
  70. package/esm/components/QMeter/QMeter.vue2.js +4 -0
  71. package/esm/components/QMeter/index.d.ts +29 -0
  72. package/esm/components/QMeter/index.d.ts.map +1 -0
  73. package/esm/components/QMeter/index.js +6 -0
  74. package/esm/components/QMeter/types.d.ts +20 -0
  75. package/esm/components/QMeter/types.d.ts.map +1 -0
  76. package/esm/components/QOverlay/index.d.ts +2 -0
  77. package/esm/components/QOverlay/index.d.ts.map +1 -1
  78. package/esm/components/QPasswordField/QPasswordField.d.ts +413 -0
  79. package/esm/components/QPasswordField/QPasswordField.d.ts.map +1 -0
  80. package/esm/components/QPasswordField/QPasswordField.vue.js +162 -0
  81. package/esm/components/QPasswordField/QPasswordField.vue2.js +4 -0
  82. package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts +4 -0
  83. package/esm/components/QPasswordField/QPasswordFieldMessages.d.ts.map +1 -0
  84. package/esm/components/QPasswordField/QPasswordFieldMessages.vue.js +28 -0
  85. package/esm/components/QPasswordField/QPasswordFieldMessages.vue2.js +4 -0
  86. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts +12 -0
  87. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.d.ts.map +1 -0
  88. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue.js +97 -0
  89. package/esm/components/QPasswordField/QPasswordFieldMeterOverlay.vue2.js +4 -0
  90. package/esm/components/QPasswordField/constants.d.ts +9 -0
  91. package/esm/components/QPasswordField/constants.d.ts.map +1 -0
  92. package/esm/components/QPasswordField/constants.js +11 -0
  93. package/esm/components/QPasswordField/index.d.ts +264 -0
  94. package/esm/components/QPasswordField/index.d.ts.map +1 -0
  95. package/esm/components/QPasswordField/index.js +6 -0
  96. package/esm/components/QPasswordField/types.d.ts +100 -0
  97. package/esm/components/QPasswordField/types.d.ts.map +1 -0
  98. package/esm/components/QSelect/QSelect.d.ts +4 -0
  99. package/esm/components/QSelect/QSelect.d.ts.map +1 -1
  100. package/esm/components/QSelect/QSelect.vue.js +31 -29
  101. package/esm/components/QSelect/index.d.ts +8 -0
  102. package/esm/components/QSelect/index.d.ts.map +1 -1
  103. package/esm/components/QTextArea/QTextArea.vue.js +10 -9
  104. package/esm/components/QTextArea/index.d.ts +6 -0
  105. package/esm/components/QTextArea/index.d.ts.map +1 -1
  106. package/esm/components/QTextField/QTextField.d.ts +2 -0
  107. package/esm/components/QTextField/QTextField.d.ts.map +1 -1
  108. package/esm/components/QTextField/QTextField.vue.js +8 -6
  109. package/esm/components/QTextField/index.d.ts +9 -0
  110. package/esm/components/QTextField/index.d.ts.map +1 -1
  111. package/esm/components/index.d.ts +3 -0
  112. package/esm/components/index.d.ts.map +1 -1
  113. package/esm/components/index.js +51 -45
  114. package/esm/composables/useColorStyle/index.d.ts +11 -0
  115. package/esm/composables/useColorStyle/index.d.ts.map +1 -0
  116. package/esm/composables/useColorStyle/index.js +33 -0
  117. package/esm/composables/useColorStyle/types.d.ts +36 -0
  118. package/esm/composables/useColorStyle/types.d.ts.map +1 -0
  119. package/esm/index.d.ts +3 -0
  120. package/package.json +1 -1
@@ -1,17 +1,15 @@
1
- import { defineComponent as u, ref as _, computed as r, createElementBlock as o, openBlock as d, normalizeClass as m, createCommentVNode as i, renderSlot as l, createElementVNode as a, toDisplayString as q, mergeProps as y } from "vue";
2
- const v = ["id"], $ = {
3
- key: 0,
4
- class: "q-field__label"
5
- }, b = ["for"], h = {
1
+ import { defineComponent as u, ref as m, computed as r, createElementBlock as o, openBlock as d, normalizeClass as q, createBlock as _, createCommentVNode as a, renderSlot as s, unref as v, withCtx as t, createElementVNode as b, mergeProps as y } from "vue";
2
+ import { QLabel as $ } from "../QLabel/index.js";
3
+ const k = ["id"], h = {
6
4
  key: 0,
7
5
  class: "q-field__prepend"
8
- }, k = {
6
+ }, B = {
9
7
  key: 1,
10
8
  class: "q-field__append"
11
- }, B = {
9
+ }, C = {
12
10
  key: 1,
13
11
  class: "q-field__extras"
14
- }, R = /* @__PURE__ */ u({
12
+ }, N = /* @__PURE__ */ u({
15
13
  inheritAttrs: !1,
16
14
  __name: "QField",
17
15
  props: {
@@ -22,59 +20,69 @@ const v = ["id"], $ = {
22
20
  size: { default: "medium" },
23
21
  readonly: { type: Boolean },
24
22
  disabled: { type: Boolean },
25
- required: { type: Boolean }
23
+ required: { type: Boolean },
24
+ invalid: { type: Boolean }
26
25
  },
27
- setup(n, { expose: f }) {
28
- const e = n, t = _(null), p = r(() => e.required && !e.readonly && !e.disabled), c = r(() => [
26
+ setup(n, { expose: p }) {
27
+ const e = n, i = m(null), f = r(() => e.required && !e.readonly && !e.disabled), c = r(() => [
29
28
  "q-field",
30
29
  `q-field--${e.size}`,
31
30
  {
32
31
  "q-field--readonly": e.readonly,
33
32
  "q-field--disabled": e.disabled,
34
- "q-field--required": p.value
33
+ "q-field--required": f.value,
34
+ "q-field--invalid": e.invalid
35
35
  },
36
36
  e.class
37
37
  ]);
38
- return f({
39
- fieldRef: t
40
- }), (s, z) => (d(), o("div", {
38
+ return p({
39
+ fieldRef: i
40
+ }), (l, z) => (d(), o("div", {
41
41
  id: e.id,
42
- class: m(c.value)
42
+ class: q(c.value)
43
43
  }, [
44
- e.label ? (d(), o("div", $, [
45
- l(s.$slots, "label.prepend"),
46
- a("label", {
47
- for: e.for
48
- }, q(e.label), 9, b),
49
- l(s.$slots, "label.append")
50
- ])) : i("v-if", !0),
51
- l(s.$slots, "control", {}, () => [
52
- a(
44
+ e.label ? (d(), _(v($), {
45
+ key: 0,
46
+ class: "q-field__label",
47
+ label: e.label,
48
+ for: e.for
49
+ }, {
50
+ prepend: t(() => [
51
+ s(l.$slots, "label.prepend")
52
+ ]),
53
+ append: t(() => [
54
+ s(l.$slots, "label.append")
55
+ ]),
56
+ _: 3
57
+ /* FORWARDED */
58
+ }, 8, ["label", "for"])) : a("v-if", !0),
59
+ s(l.$slots, "control", {}, () => [
60
+ b(
53
61
  "div",
54
62
  y({
55
63
  ref_key: "fieldRef",
56
- ref: t,
64
+ ref: i,
57
65
  class: "q-field__control"
58
- }, s.$attrs),
66
+ }, l.$attrs),
59
67
  [
60
- s.$slots.prepend ? (d(), o("div", h, [
61
- l(s.$slots, "prepend")
62
- ])) : i("v-if", !0),
63
- l(s.$slots, "default"),
64
- s.$slots.append ? (d(), o("div", k, [
65
- l(s.$slots, "append")
66
- ])) : i("v-if", !0)
68
+ l.$slots.prepend ? (d(), o("div", h, [
69
+ s(l.$slots, "prepend")
70
+ ])) : a("v-if", !0),
71
+ s(l.$slots, "default"),
72
+ l.$slots.append ? (d(), o("div", B, [
73
+ s(l.$slots, "append")
74
+ ])) : a("v-if", !0)
67
75
  ],
68
76
  16
69
77
  /* FULL_PROPS */
70
78
  )
71
79
  ]),
72
- s.$slots.extras ? (d(), o("div", B, [
73
- l(s.$slots, "extras")
74
- ])) : i("v-if", !0)
75
- ], 10, v));
80
+ l.$slots.extras ? (d(), o("div", C, [
81
+ s(l.$slots, "extras")
82
+ ])) : a("v-if", !0)
83
+ ], 10, k));
76
84
  }
77
85
  });
78
86
  export {
79
- R as default
87
+ N as default
80
88
  };
@@ -1,14 +1,6 @@
1
- import { QBaseComponentProps } from '../../types/component';
1
+ import { QLabelProps } from '../QLabel';
2
2
  export type QFieldSize = 'mini' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'block';
3
- export type QFieldProps = QBaseComponentProps & {
4
- /**
5
- * The label of the input.
6
- */
7
- label?: string;
8
- /**
9
- * The form field associated with the label.
10
- */
11
- for?: string;
3
+ export type QFieldProps = QLabelProps & {
12
4
  /**
13
5
  * The size category of the field.
14
6
  */
@@ -26,5 +18,9 @@ export type QFieldProps = QBaseComponentProps & {
26
18
  * to indicate that the field is required.
27
19
  */
28
20
  required?: boolean;
21
+ /**
22
+ * Whether the input is invalid.
23
+ */
24
+ invalid?: boolean;
29
25
  };
30
26
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG,mBAAmB,GAAG;IAC/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QField/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAE5C,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,CAAA;AAE/F,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,CAAA;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;CACjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"AAwFA;AAkOC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAYtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAM/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA2HrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC;CACjB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAoOT,OAAO,IAA6B;;wBAbrB,GAAG;;;;;;;EAkB/B;AAyBD,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":"QFileUpload.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/QFileUpload.vue"],"names":[],"mappings":"AAyFA;AAmOC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAYtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAM/C,KAAK,WAAW,GAAG,gBAAgB,CAAC;AA2HrC,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,IAAI,CAAC;CACjB,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAsOT,OAAO,IAA6B;;wBAbrB,GAAG;;;;;;;EAkB/B;AAyBD,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,4 +1,4 @@
1
- import { defineComponent as L, mergeModels as N, useModel as O, computed as d, ref as h, watch as T, createBlock as w, openBlock as n, unref as i, createSlots as Z, withCtx as _, createElementVNode as a, normalizeClass as Q, createElementBlock as c, mergeProps as F, createVNode as s, normalizeProps as m, guardReactiveProps as v, toDisplayString as y, createCommentVNode as j, createTextVNode as M, renderSlot as P } from "vue";
1
+ import { defineComponent as L, mergeModels as N, useModel as O, computed as d, ref as h, watch as T, createBlock as w, openBlock as n, unref as i, createSlots as Z, withCtx as _, createElementVNode as a, normalizeClass as Q, createElementBlock as c, mergeProps as F, createVNode as s, normalizeProps as v, guardReactiveProps as m, toDisplayString as y, createCommentVNode as j, createTextVNode as M, renderSlot as P } from "vue";
2
2
  import { DEFAULT_TEXTS as $, DEFAULT_ICONS as H } from "./types.js";
3
3
  import { QButton as b } from "../QButton/index.js";
4
4
  import { QField as W } from "../QField/index.js";
@@ -33,6 +33,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
33
33
  readonly: { type: Boolean },
34
34
  disabled: { type: Boolean },
35
35
  required: { type: Boolean },
36
+ invalid: { type: Boolean },
36
37
  accept: {},
37
38
  icons: { default: () => H },
38
39
  texts: { default: () => $ }
@@ -49,16 +50,16 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
49
50
  r.value = o ? URL.createObjectURL(l) : null;
50
51
  });
51
52
  const f = h(null);
52
- function U() {
53
+ function B() {
53
54
  var l;
54
55
  (l = f.value) == null || l.click();
55
56
  }
56
- function V(l) {
57
+ function U(l) {
57
58
  var C;
58
59
  const o = l.target;
59
60
  (C = o == null ? void 0 : o.files) != null && C[0] && (t.value = o.files[0]);
60
61
  }
61
- function B() {
62
+ function V() {
62
63
  t.value && J(t.value);
63
64
  }
64
65
  function D() {
@@ -90,7 +91,8 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
90
91
  size: e.size,
91
92
  readonly: e.readonly,
92
93
  disabled: e.disabled,
93
- required: e.required
94
+ required: e.required,
95
+ invalid: e.invalid
94
96
  }, Z({
95
97
  control: _(() => [
96
98
  a(
@@ -111,11 +113,11 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
111
113
  required: e.required,
112
114
  readonly: e.readonly,
113
115
  disabled: e.disabled
114
- }, l.$attrs, { onChange: V }), null, 16, K),
116
+ }, l.$attrs, { onChange: U }), null, 16, K),
115
117
  !t.value && p.value ? (n(), c("div", Y, [
116
118
  s(
117
119
  i(u),
118
- m(v(e.icons.upload)),
120
+ v(m(e.icons.upload)),
119
121
  null,
120
122
  16
121
123
  /* FULL_PROPS */
@@ -129,7 +131,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
129
131
  ),
130
132
  s(i(b), {
131
133
  label: e.texts.chooseFile,
132
- onClick: U
134
+ onClick: B
133
135
  }, null, 8, ["label"])
134
136
  ])) : t.value ? (n(), c("div", ee, [
135
137
  a("div", le, [
@@ -169,12 +171,12 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
169
171
  s(i(b), {
170
172
  title: e.texts.download,
171
173
  borderless: "",
172
- onClick: B
174
+ onClick: V
173
175
  }, {
174
176
  default: _(() => [
175
177
  s(
176
178
  i(u),
177
- m(v(e.icons.download)),
179
+ v(m(e.icons.download)),
178
180
  null,
179
181
  16
180
182
  /* FULL_PROPS */
@@ -191,7 +193,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
191
193
  default: _(() => [
192
194
  s(
193
195
  i(u),
194
- m(v(e.icons.remove)),
196
+ v(m(e.icons.remove)),
195
197
  null,
196
198
  16
197
199
  /* FULL_PROPS */
@@ -204,7 +206,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
204
206
  ])) : (n(), c("div", re, [
205
207
  s(
206
208
  i(u),
207
- m(v(e.icons.empty)),
209
+ v(m(e.icons.empty)),
208
210
  null,
209
211
  16
210
212
  /* FULL_PROPS */
@@ -230,7 +232,7 @@ const K = ["id", "accept", "required", "readonly", "disabled"], Y = {
230
232
  ]),
231
233
  key: "0"
232
234
  } : void 0
233
- ]), 1032, ["for", "label", "size", "readonly", "disabled", "required"]));
235
+ ]), 1032, ["for", "label", "size", "readonly", "disabled", "required", "invalid"]));
234
236
  }
235
237
  });
236
238
  export {
@@ -5,10 +5,12 @@ declare const QFileUpload: {
5
5
  } & import('../../types/component').QBaseComponentProps & {
6
6
  label?: string;
7
7
  for?: string;
8
+ } & {
8
9
  size?: import('..').QFieldSize;
9
10
  readonly?: boolean;
10
11
  disabled?: boolean;
11
12
  required?: boolean;
13
+ invalid?: boolean;
12
14
  } & {
13
15
  accept?: string | string[];
14
16
  icons?: typeof import('./types').DEFAULT_ICONS;
@@ -36,10 +38,12 @@ declare const QFileUpload: {
36
38
  } & import('../../types/component').QBaseComponentProps & {
37
39
  label?: string;
38
40
  for?: string;
41
+ } & {
39
42
  size?: import('..').QFieldSize;
40
43
  readonly?: boolean;
41
44
  disabled?: boolean;
42
45
  required?: boolean;
46
+ invalid?: boolean;
43
47
  } & {
44
48
  accept?: string | string[];
45
49
  icons?: typeof import('./types').DEFAULT_ICONS;
@@ -59,10 +63,12 @@ declare const QFileUpload: {
59
63
  } & import('../../types/component').QBaseComponentProps & {
60
64
  label?: string;
61
65
  for?: string;
66
+ } & {
62
67
  size?: import('..').QFieldSize;
63
68
  readonly?: boolean;
64
69
  disabled?: boolean;
65
70
  required?: boolean;
71
+ invalid?: boolean;
66
72
  } & {
67
73
  accept?: string | string[];
68
74
  icons?: typeof import('./types').DEFAULT_ICONS;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QFileUpload/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAK/C,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAGjD,OAAO,EAAE,WAAW,EAAE,CAAA;AAGtB,YAAY,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAQA;AA0CC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;;;;AA6E1C,wBAQG"}
1
+ {"version":3,"file":"QIcon.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIcon.vue"],"names":[],"mappings":"AAQA;AAwDC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;;;;AA4F1C,wBAQG"}
@@ -1,35 +1,43 @@
1
- import { defineComponent as c, computed as s, createBlock as t, openBlock as r, resolveDynamicComponent as i, normalizeClass as a } from "vue";
2
- import { QIconImg as l, QIconFont as p, QIconSvg as m } from "./index.js";
3
- const g = /* @__PURE__ */ c({
1
+ import { defineComponent as s, computed as n, toRef as i, createBlock as a, openBlock as u, resolveDynamicComponent as d, normalizeStyle as m, normalizeClass as p } from "vue";
2
+ import { QIconImg as f, QIconFont as y, QIconSvg as v } from "./index.js";
3
+ import { useColorStyle as g } from "../../composables/useColorStyle/index.js";
4
+ const S = /* @__PURE__ */ s({
4
5
  __name: "QIcon",
5
6
  props: {
6
7
  id: {},
7
8
  class: {},
8
9
  icon: {},
10
+ type: { default: "svg" },
9
11
  size: {},
10
- type: { default: "svg" }
12
+ color: {}
11
13
  },
12
- setup(n) {
13
- const e = n, o = s(() => {
14
- switch (e.type) {
14
+ setup(c) {
15
+ const o = c, t = n(() => {
16
+ switch (o.type) {
15
17
  case "svg":
16
- return m;
18
+ return v;
17
19
  case "font":
18
- return p;
20
+ return y;
19
21
  case "img":
20
- return l;
22
+ return f;
21
23
  default:
22
24
  return;
23
25
  }
26
+ }), l = g(i(o, "color"), "bold"), r = n(() => {
27
+ var e;
28
+ return {
29
+ "font-size": o.size !== void 0 ? `${o.size}px` : void 0,
30
+ color: o.color !== void 0 && o.color !== "primary" ? (e = l.style.value) == null ? void 0 : e.backgroundColor : void 0
31
+ };
24
32
  });
25
- return (u, d) => (r(), t(i(o.value), {
26
- id: e.id,
27
- class: a(e.class),
28
- icon: e.icon,
29
- size: e.size
30
- }, null, 8, ["id", "class", "icon", "size"]));
33
+ return (e, z) => (u(), a(d(t.value), {
34
+ id: o.id,
35
+ class: p(o.class),
36
+ icon: o.icon,
37
+ style: m(r.value)
38
+ }, null, 8, ["id", "class", "icon", "style"]));
31
39
  }
32
40
  });
33
41
  export {
34
- g as default
42
+ S as default
35
43
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAOA;AAoCC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;;;AAsE9C,wBAQG"}
1
+ {"version":3,"file":"QIconFont.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconFont.vue"],"names":[],"mappings":"AAMA;AA+BC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;;;AAgE9C,wBAQG"}
@@ -1,25 +1,21 @@
1
- import { defineComponent as a, computed as e, createElementBlock as s, openBlock as c, normalizeStyle as l, normalizeClass as u } from "vue";
2
- const d = ["id"], m = /* @__PURE__ */ a({
1
+ import { defineComponent as t, computed as n, createElementBlock as e, openBlock as c, normalizeClass as l } from "vue";
2
+ const s = ["id"], d = /* @__PURE__ */ t({
3
3
  __name: "QIconFont",
4
4
  props: {
5
5
  id: {},
6
6
  class: {},
7
7
  icon: {},
8
- size: {},
9
8
  library: { default: "" },
10
9
  variant: {}
11
10
  },
12
- setup(i) {
13
- const n = i, r = e(() => n.variant ? `${n.library}-${n.variant}` : n.library), t = e(() => n.library && n.icon ? `${n.library}-${n.icon}` : n.icon), o = e(() => ({
14
- "font-size": n.size !== void 0 ? `${n.size}px` : void 0
15
- }));
16
- return (f, p) => (c(), s("i", {
17
- id: n.id,
18
- class: u(["q-icon", "q-icon__font", r.value, t.value, n.class]),
19
- style: l(o.value)
20
- }, null, 14, d));
11
+ setup(a) {
12
+ const r = a, i = n(() => r.variant ? `${r.library}-${r.variant}` : r.library), o = n(() => r.library && r.icon ? `${r.library}-${r.icon}` : r.icon);
13
+ return (u, p) => (c(), e("i", {
14
+ id: r.id,
15
+ class: l(["q-icon", "q-icon__font", i.value, o.value, r.class])
16
+ }, null, 10, s));
21
17
  }
22
18
  });
23
19
  export {
24
- m as default
20
+ d as default
25
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAOA;AAwBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;AAqD9C,wBAOG"}
1
+ {"version":3,"file":"QIconImg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconImg.vue"],"names":[],"mappings":"AAMA;AAgBC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;;AA4C9C,wBAOG"}
@@ -1,24 +1,20 @@
1
- import { defineComponent as s, computed as c, createElementBlock as i, openBlock as t, normalizeStyle as l, normalizeClass as r } from "vue";
2
- const a = ["id", "src"], _ = /* @__PURE__ */ s({
1
+ import { defineComponent as n, createElementBlock as s, openBlock as e, normalizeClass as i } from "vue";
2
+ const t = ["id", "src"], m = /* @__PURE__ */ n({
3
3
  __name: "QIconImg",
4
4
  props: {
5
5
  id: {},
6
6
  class: {},
7
- icon: {},
8
- size: {}
7
+ icon: {}
9
8
  },
10
- setup(n) {
11
- const e = n, o = c(() => ({
12
- "font-size": e.size !== void 0 ? `${e.size}px` : void 0
13
- }));
14
- return (d, m) => (t(), i("img", {
15
- id: e.id,
16
- src: e.icon,
17
- class: r(["q-icon", "q-icon__img", e.class]),
18
- style: l(o.value)
19
- }, null, 14, a));
9
+ setup(o) {
10
+ const c = o;
11
+ return (r, a) => (e(), s("img", {
12
+ id: c.id,
13
+ src: c.icon,
14
+ class: i(["q-icon", "q-icon__img", c.class])
15
+ }, null, 10, t));
20
16
  }
21
17
  });
22
18
  export {
23
- _ as default
19
+ m as default
24
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AAUA;AAgDC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;AAqG7C,wBASG"}
1
+ {"version":3,"file":"QIconSvg.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/QIconSvg.vue"],"names":[],"mappings":"AASA;AAwCC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;;;;;;;;;;AA2F7C,wBASG"}
@@ -1,36 +1,32 @@
1
- import { defineComponent as t, computed as a, createBlock as r, openBlock as u, unref as m, normalizeStyle as f, normalizeClass as p } from "vue";
2
- import _ from "./InlineSvg.js";
3
- const v = /* @__PURE__ */ t({
1
+ import { defineComponent as a, createBlock as i, openBlock as t, unref as r, normalizeClass as m } from "vue";
2
+ import u from "./InlineSvg.js";
3
+ const b = /* @__PURE__ */ a({
4
4
  __name: "QIconSvg",
5
5
  props: {
6
6
  id: {},
7
7
  class: {},
8
8
  icon: {},
9
- size: {},
10
9
  bundle: { default: "" }
11
10
  },
12
11
  emits: ["loaded", "unloaded"],
13
- setup(s, { emit: l }) {
14
- const e = s, n = l, i = a(() => ({
15
- "font-size": e.size !== void 0 ? `${e.size}px` : void 0
16
- }));
17
- function c(o) {
18
- n("loaded", o);
12
+ setup(s, { emit: c }) {
13
+ const o = s, n = c;
14
+ function l(e) {
15
+ n("loaded", e);
19
16
  }
20
17
  function d() {
21
18
  n("unloaded");
22
19
  }
23
- return (o, y) => (u(), r(m(_), {
24
- id: e.id,
25
- class: p(["q-icon", "q-icon__svg", e.class]),
26
- src: e.bundle,
27
- symbol: e.icon,
28
- style: f(i.value),
29
- onLoaded: c,
20
+ return (e, p) => (t(), i(r(u), {
21
+ id: o.id,
22
+ class: m(["q-icon", "q-icon__svg", o.class]),
23
+ src: o.bundle,
24
+ symbol: o.icon,
25
+ onLoaded: l,
30
26
  onUnloaded: d
31
- }, null, 8, ["id", "class", "src", "symbol", "style"]));
27
+ }, null, 8, ["id", "class", "src", "symbol"]));
32
28
  }
33
29
  });
34
30
  export {
35
- v as default
31
+ b as default
36
32
  };
@@ -7,16 +7,20 @@ export type QIconBaseProps = QBaseComponentProps & {
7
7
  * - The identifier of the SVG.
8
8
  */
9
9
  icon: string;
10
- /**
11
- * The size of the icon, in pixels.
12
- */
13
- size?: number;
14
10
  };
15
11
  export type QIconProps = QIconBaseProps & {
16
12
  /**
17
13
  * The type of resource.
18
14
  */
19
15
  type?: 'svg' | 'font' | 'img';
16
+ /**
17
+ * The size of the icon, in pixels.
18
+ */
19
+ size?: number;
20
+ /**
21
+ * Color value to control the icon's fill color.
22
+ */
23
+ color?: string;
20
24
  };
21
25
  export type QIconFontProps = QIconBaseProps & {
22
26
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/QIcon/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAE5D,MAAM,MAAM,cAAc,GAAG,mBAAmB,GAAG;IAClD;;;;;OAKG;IACH,IAAI,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAE7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAA;AAE1C,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CACf,CAAA"}
@@ -2,6 +2,8 @@ import { QInputGroupProps } from './types';
2
2
  declare function __VLS_template(): {
3
3
  attrs: Partial<{}>;
4
4
  slots: {
5
+ 'label.prepend'?(_: {}): any;
6
+ 'label.append'?(_: {}): any;
5
7
  prepend?(_: {}): any;
6
8
  default?(_: {}): any;
7
9
  append?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AA+BA;AA4DC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAqBhD,iBAAS,cAAc;WA4FT,OAAO,IAA6B;;yBAbpB,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;EAe/B;AAWD,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"}
1
+ {"version":3,"file":"QInputGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/QInputGroup/QInputGroup.vue"],"names":[],"mappings":"AAsCA;AAmEC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAqBhD,iBAAS,cAAc;WA8GT,OAAO,IAA6B;;iCAfb,GAAG;gCACJ,GAAG;yBACT,GAAG;yBACH,GAAG;wBACJ,GAAG;wBACH,GAAG;;;;EAe/B;AAWD,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"}