@volverjs/ui-vue 0.0.2 → 0.0.3-beta.3

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 (171) hide show
  1. package/auto-imports.d.ts +289 -0
  2. package/dist/components/VvAccordion/VvAccordion.es.js +63 -131
  3. package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
  4. package/dist/components/VvAccordion/VvAccordion.vue.d.ts +2 -2
  5. package/dist/components/VvAccordion/index.d.ts +2 -2
  6. package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +97 -176
  7. package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
  8. package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +4 -4
  9. package/dist/components/VvAccordionGroup/index.d.ts +2 -2
  10. package/dist/components/VvBadge/VvBadge.es.js +16 -50
  11. package/dist/components/VvBadge/VvBadge.umd.js +1 -1
  12. package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +38 -45
  13. package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
  14. package/dist/components/VvButton/VvButton.es.js +170 -306
  15. package/dist/components/VvButton/VvButton.umd.js +1 -1
  16. package/dist/components/VvButton/VvButton.vue.d.ts +4 -4
  17. package/dist/components/VvButton/index.d.ts +3 -3
  18. package/dist/components/VvButtonGroup/VvButtonGroup.es.js +39 -84
  19. package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
  20. package/dist/components/VvCard/VvCard.es.js +26 -60
  21. package/dist/components/VvCard/VvCard.umd.js +1 -1
  22. package/dist/components/VvCard/VvCard.vue.d.ts +2 -2
  23. package/dist/components/VvCard/index.d.ts +1 -1
  24. package/dist/components/VvCheckbox/VvCheckbox.es.js +144 -282
  25. package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
  26. package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +6 -6
  27. package/dist/components/VvCheckbox/index.d.ts +10 -4
  28. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +190 -346
  29. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
  30. package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +7 -7
  31. package/dist/components/VvCheckboxGroup/index.d.ts +3 -3
  32. package/dist/components/VvCombobox/VvCombobox.es.js +330 -487
  33. package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
  34. package/dist/components/VvCombobox/VvCombobox.vue.d.ts +8 -8
  35. package/dist/components/VvCombobox/index.d.ts +4 -4
  36. package/dist/components/VvDialog/VvDialog.es.js +66 -102
  37. package/dist/components/VvDialog/VvDialog.umd.js +1 -1
  38. package/dist/components/VvDropdown/VvDropdown.es.js +61 -185
  39. package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
  40. package/dist/components/VvDropdown/VvDropdown.vue.d.ts +2 -2
  41. package/dist/components/VvDropdown/index.d.ts +1 -1
  42. package/dist/components/VvIcon/VvIcon.es.js +30 -65
  43. package/dist/components/VvIcon/VvIcon.umd.js +1 -1
  44. package/dist/components/VvInputText/VvInputText.es.js +304 -407
  45. package/dist/components/VvInputText/VvInputText.umd.js +1 -1
  46. package/dist/components/VvInputText/VvInputText.vue.d.ts +10 -10
  47. package/dist/components/VvInputText/VvInputTextActions.d.ts +1 -1
  48. package/dist/components/VvInputText/index.d.ts +5 -5
  49. package/dist/components/VvProgress/VvProgress.es.js +17 -51
  50. package/dist/components/VvProgress/VvProgress.umd.js +1 -1
  51. package/dist/components/VvRadio/VvRadio.es.js +110 -249
  52. package/dist/components/VvRadio/VvRadio.umd.js +1 -1
  53. package/dist/components/VvRadio/VvRadio.vue.d.ts +6 -6
  54. package/dist/components/VvRadio/index.d.ts +3 -3
  55. package/dist/components/VvRadioGroup/VvRadioGroup.es.js +161 -318
  56. package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
  57. package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +7 -7
  58. package/dist/components/VvRadioGroup/index.d.ts +3 -3
  59. package/dist/components/VvSelect/VvSelect.es.js +200 -292
  60. package/dist/components/VvSelect/VvSelect.umd.js +1 -1
  61. package/dist/components/VvSelect/VvSelect.vue.d.ts +8 -8
  62. package/dist/components/VvSelect/index.d.ts +4 -4
  63. package/dist/components/VvTextarea/VvTextarea.es.js +196 -299
  64. package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
  65. package/dist/components/VvTextarea/VvTextarea.vue.d.ts +6 -6
  66. package/dist/components/VvTextarea/index.d.ts +3 -3
  67. package/dist/components/VvTooltip/VvTooltip.es.js +28 -0
  68. package/dist/components/VvTooltip/VvTooltip.umd.js +1 -0
  69. package/dist/components/VvTooltip/VvTooltip.vue.d.ts +23 -0
  70. package/dist/components/VvTooltip/index.d.ts +18 -0
  71. package/dist/components/common/HintSlot.d.ts +1 -1
  72. package/dist/components/index.es.js +1179 -1371
  73. package/dist/components/index.umd.js +1 -1
  74. package/dist/composables/group/useInjectedGroupState.d.ts +1 -1
  75. package/dist/composables/useComponentFocus.d.ts +1 -1
  76. package/dist/composables/useComponentIcons.d.ts +1 -1
  77. package/dist/composables/useDebouncedInput.d.ts +1 -1
  78. package/dist/composables/useModifiers.d.ts +1 -1
  79. package/dist/composables/useTextCount.d.ts +1 -1
  80. package/dist/icons.es.js +3 -3
  81. package/dist/icons.umd.js +1 -1
  82. package/dist/index.es.js +1211 -1404
  83. package/dist/index.umd.js +1 -1
  84. package/dist/props/index.d.ts +12 -12
  85. package/dist/stories/Tooltip/Tooltip.settings.d.ts +42 -0
  86. package/dist/stories/Tooltip/Tooltip.test.d.ts +2 -0
  87. package/dist/utils/ObjectUtilities.d.ts +1 -1
  88. package/package.json +27 -20
  89. package/src/assets/icons/detailed.json +1 -1
  90. package/src/assets/icons/normal.json +1 -1
  91. package/src/assets/icons/simple.json +1 -1
  92. package/src/components/VvAccordion/VvAccordion.vue +0 -3
  93. package/src/components/VvAccordion/index.ts +1 -2
  94. package/src/components/VvAccordionGroup/VvAccordionGroup.vue +1 -3
  95. package/src/components/VvBadge/VvBadge.vue +0 -1
  96. package/src/components/VvButton/VvButton.vue +0 -3
  97. package/src/components/VvButton/index.ts +2 -10
  98. package/src/components/VvButtonGroup/VvButtonGroup.vue +0 -3
  99. package/src/components/VvCard/VvCard.vue +0 -1
  100. package/src/components/VvCheckbox/VvCheckbox.vue +0 -3
  101. package/src/components/VvCheckbox/index.ts +1 -2
  102. package/src/components/VvCheckboxGroup/VvCheckboxGroup.vue +0 -5
  103. package/src/components/VvCombobox/VvCombobox.vue +0 -7
  104. package/src/components/VvDialog/VvDialog.vue +1 -2
  105. package/src/components/VvDropdown/VvDropdown.vue +0 -4
  106. package/src/components/VvIcon/VvIcon.vue +0 -2
  107. package/src/components/VvInputText/VvInputClearAction.ts +0 -1
  108. package/src/components/VvInputText/VvInputPasswordAction.ts +0 -1
  109. package/src/components/VvInputText/VvInputStepAction.ts +0 -1
  110. package/src/components/VvInputText/VvInputText.vue +1 -16
  111. package/src/components/VvInputText/VvInputTextActions.ts +1 -1
  112. package/src/components/VvProgress/VvProgress.vue +0 -2
  113. package/src/components/VvRadio/VvRadio.vue +0 -3
  114. package/src/components/VvRadio/index.ts +0 -1
  115. package/src/components/VvRadioGroup/VvRadioGroup.vue +0 -5
  116. package/src/components/VvSelect/VvSelect.vue +1 -14
  117. package/src/components/VvTextarea/VvTextarea.vue +1 -15
  118. package/src/components/VvTooltip/VvTooltip.vue +17 -0
  119. package/src/components/VvTooltip/index.ts +21 -0
  120. package/src/components/common/HintSlot.ts +1 -11
  121. package/src/composables/group/types/IAccordionGroupState.ts +0 -1
  122. package/src/composables/group/types/IButtonGroupState.ts +0 -1
  123. package/src/composables/group/types/IInputGroup.ts +0 -1
  124. package/src/composables/group/useInjectedGroupState.ts +1 -2
  125. package/src/composables/group/useProvideGroupState.ts +0 -1
  126. package/src/composables/useComponentFocus.ts +1 -2
  127. package/src/composables/useComponentIcons.ts +1 -1
  128. package/src/composables/useDebouncedInput.ts +1 -1
  129. package/src/composables/useModifiers.ts +1 -2
  130. package/src/composables/useOptions.ts +0 -1
  131. package/src/composables/useTextCount.ts +1 -1
  132. package/src/stories/Accordion/Accordion.stories.mdx +1 -1
  133. package/src/stories/AccordionGroup/AccordionGroup.stories.mdx +1 -1
  134. package/src/stories/AccordionGroup/AccordionGroupSlots.stories.mdx +1 -1
  135. package/src/stories/Badge/Badge.stories.mdx +1 -1
  136. package/src/stories/Breadcrumb/Breadcrumb.settings.ts +0 -1
  137. package/src/stories/Breadcrumb/Breadcrumb.stories.mdx +1 -1
  138. package/src/stories/Breadcrumb/BreadcrumbSlots.stories.mdx +1 -1
  139. package/src/stories/Button/Button.stories.mdx +1 -1
  140. package/src/stories/Button/ButtonModifiers.stories.mdx +2 -2
  141. package/src/stories/Button/ButtonSlots.stories.mdx +3 -3
  142. package/src/stories/ButtonGroup/ButtonGroup.settings.ts +0 -1
  143. package/src/stories/ButtonGroup/ButtonGroup.stories.mdx +1 -1
  144. package/src/stories/ButtonGroup/ButtonGroupSlots.stories.mdx +1 -1
  145. package/src/stories/Card/Card.stories.mdx +1 -1
  146. package/src/stories/Card/CardSlots.stories.mdx +1 -1
  147. package/src/stories/Checkbox/Checkbox.stories.mdx +1 -1
  148. package/src/stories/CheckboxGroup/CheckboxGroup.stories.mdx +1 -1
  149. package/src/stories/CheckboxGroup/CheckboxGroupSlots.stories.mdx +1 -1
  150. package/src/stories/Combobox/Combobox.settings.ts +0 -1
  151. package/src/stories/Combobox/Combobox.stories.mdx +1 -1
  152. package/src/stories/Dialog/Dialog.stories.mdx +1 -1
  153. package/src/stories/Dropdown/Dropdown.settings.ts +0 -1
  154. package/src/stories/Dropdown/Dropdown.stories.mdx +1 -1
  155. package/src/stories/Icon/Icon.settings.ts +0 -1
  156. package/src/stories/Icon/Icon.stories.mdx +1 -1
  157. package/src/stories/Icon/IconsCollection.stories.mdx +1 -1
  158. package/src/stories/InputText/InputText.settings.ts +0 -1
  159. package/src/stories/InputText/InputText.stories.mdx +1 -1
  160. package/src/stories/Progress/Progress.stories.mdx +1 -1
  161. package/src/stories/Radio/Radio.stories.mdx +1 -1
  162. package/src/stories/RadioGroup/RadioGroup.stories.mdx +1 -1
  163. package/src/stories/RadioGroup/RadioGroupSlots.stories.mdx +1 -1
  164. package/src/stories/Select/Select.settings.ts +0 -1
  165. package/src/stories/Select/Select.stories.mdx +1 -1
  166. package/src/stories/Textarea/Textarea.settings.ts +0 -1
  167. package/src/stories/Textarea/Textarea.stories.mdx +1 -1
  168. package/src/stories/Tooltip/Tooltip.settings.ts +25 -0
  169. package/src/stories/Tooltip/Tooltip.stories.mdx +98 -0
  170. package/src/stories/Tooltip/Tooltip.test.ts +49 -0
  171. package/src/utils/ObjectUtilities.ts +1 -1
@@ -1,222 +1,84 @@
1
- import { unref as v, computed as i, inject as D, toRef as H, toRefs as R, h as N, defineComponent as $, useSlots as M, ref as T, watchEffect as Z, watch as q, onMounted as z, openBlock as U, createElementBlock as F, normalizeClass as K, withDirectives as J, createElementVNode as Q, isRef as W, vModelCheckbox as X, renderSlot as Y, createTextVNode as L, toDisplayString as ee, createVNode as te } from "vue";
2
- import { nanoid as re } from "nanoid";
3
- import { toReactive as ne } from "@vueuse/core";
4
- function E(t, e, r) {
5
- return r ? B(t, r) === B(e, r) : O(t, e);
6
- }
7
- function O(t, e) {
8
- if (t === e)
9
- return !0;
10
- if (t && e && typeof t == "object" && typeof e == "object") {
11
- const r = Array.isArray(t), c = Array.isArray(e);
12
- let n, a, u;
13
- if (r && c) {
14
- if (a = t.length, a != e.length)
15
- return !1;
16
- for (n = a; n-- !== 0; )
17
- if (!O(t[n], e[n]))
18
- return !1;
19
- return !0;
20
- }
21
- if (r != c)
22
- return !1;
23
- const d = t instanceof Date, l = e instanceof Date;
24
- if (d != l)
25
- return !1;
26
- if (d && l)
27
- return t.getTime() == e.getTime();
28
- const s = t instanceof RegExp, f = e instanceof RegExp;
29
- if (s != f)
30
- return !1;
31
- if (s && f)
32
- return t.toString() == e.toString();
33
- const o = Object.keys(t);
34
- if (a = o.length, a !== Object.keys(e).length)
35
- return !1;
36
- for (n = a; n-- !== 0; )
37
- if (!Object.prototype.hasOwnProperty.call(e, o[n]))
38
- return !1;
39
- for (n = a; n-- !== 0; )
40
- if (u = o[n], !O(t[u], e[u]))
41
- return !1;
42
- return !0;
43
- }
44
- return t !== t && e !== e;
45
- }
46
- function B(t, e) {
47
- if (t && Object.keys(t).length && e) {
48
- if (e.indexOf(".") === -1)
49
- return t[e];
50
- {
51
- const r = e.split(".");
52
- let c = t;
53
- for (let n = 0, a = r.length; n < a; ++n) {
54
- if (t == null)
55
- return null;
56
- c = c[r[n]];
57
- }
58
- return c;
59
- }
60
- } else
61
- return null;
62
- }
63
- function ue(t, e) {
64
- if (t != null && e && e.length) {
65
- for (const r of e)
66
- if (E(t, r))
67
- return !0;
68
- }
69
- return !1;
70
- }
71
- function I(t) {
72
- return ((e) => e == null || e === "" || Array.isArray(e) && e.length === 0 || !(e instanceof Date) && typeof e == "object" && Object.keys(e).length === 0)(v(t));
73
- }
74
- function se(t) {
75
- return typeof t == "string" || t instanceof String;
76
- }
77
- function P(t) {
78
- var e, r;
79
- if (t)
80
- return (r = (e = t.match(
81
- /[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g
82
- )) == null ? void 0 : e.join("-")) == null ? void 0 : r.toLowerCase();
83
- }
84
- function ae(t, e) {
85
- const r = { [`${t}`]: !0 };
86
- return {
87
- bemCssClasses: i(() => Object.keys(e).reduce((n, a) => {
88
- const u = v(e[a]) || !1;
89
- if (!u)
90
- return n;
91
- if (a === "modifiers") {
92
- const d = Array.isArray(u) ? u : u.split(" ");
93
- return {
94
- ...n,
95
- ...d.reduce(
96
- (l, s) => ({
97
- ...l,
98
- [`${t}--${P(s)}`]: !0
99
- }),
100
- {}
101
- )
102
- };
103
- } else
104
- return {
105
- ...n,
106
- [`${t}--${P(a)}`]: u
107
- };
108
- }, r) || {})
109
- };
110
- }
111
- function oe(t) {
112
- const e = D(t, void 0), r = i(() => !I(e));
113
- function c(n, a, u) {
114
- if (e != null && e.value) {
115
- const l = v(e.value)[n];
116
- return i({
117
- get() {
118
- return l == null ? void 0 : l.value;
119
- },
120
- set(s) {
121
- l.value = s;
122
- }
123
- });
124
- }
125
- const d = H(a, n);
126
- return i({
127
- get() {
128
- return d.value;
129
- },
130
- set(l) {
131
- u && u(`update:${n}`, l);
132
- }
133
- });
134
- }
135
- return {
136
- group: e,
137
- isInGroup: r,
138
- getGroupOrLocalRef: c
139
- };
140
- }
141
- const le = {
1
+ import { defineComponent as I, openBlock as N, createElementBlock as H, normalizeClass as w, unref as i, withDirectives as E, createElementVNode as G, isRef as D, vModelCheckbox as j, renderSlot as O, createTextVNode as M, toDisplayString as F, createVNode as T } from "vue";
2
+ import { nanoid as U } from "nanoid";
3
+ const q = {
142
4
  valid: Boolean,
143
5
  validLabel: [String, Array]
144
- }, ie = {
6
+ }, K = {
145
7
  invalid: Boolean,
146
8
  invalidLabel: [String, Array]
147
- }, ce = {
9
+ }, z = {
148
10
  disabled: Boolean
149
- }, fe = {
11
+ }, $ = {
150
12
  readonly: Boolean
151
- }, ve = {
13
+ }, J = {
152
14
  hintLabel: { type: String, default: "" }
153
- }, de = {
15
+ }, Q = {
154
16
  tabindex: { type: [String, Number], default: 0 }
155
- }, pe = {
17
+ }, W = {
156
18
  id: [String, Number],
157
19
  name: { type: String, required: !0 }
158
- }, ye = {
159
- ...pe,
160
- ...de,
161
- ...le,
162
- ...ie,
163
- ...ve,
164
- ...ce,
165
- ...fe,
20
+ }, X = {
21
+ ...W,
22
+ ...Q,
23
+ ...q,
24
+ ...K,
25
+ ...J,
26
+ ...z,
27
+ ...$,
166
28
  value: [String, Number, Boolean],
167
29
  modelValue: [Object, Number, Boolean, String],
168
30
  label: String
169
- }, me = "VV_CHECK_GROUP", he = {
170
- ...ye,
31
+ }, Y = "VV_CHECK_GROUP", Z = {
32
+ ...X,
171
33
  indeterminate: Boolean,
172
34
  uncheckedValue: [String, Number, Boolean],
173
35
  switch: Boolean
174
- }, ge = ["click", "update:modelValue", "change", "blur"];
175
- function Ae(t, e) {
176
- const { group: r, isInGroup: c, getGroupOrLocalRef: n } = oe(me), { switch: a, indeterminate: u } = R(t), d = n("modelValue", t, e), l = n("readonly", t), s = n("disabled", t), f = n("valid", t), o = n("invalid", t);
36
+ }, L = ["click", "update:modelValue", "change", "blur"];
37
+ function ee(u, m) {
38
+ const { group: t, isInGroup: p, getGroupOrLocalRef: r } = useInjectedGroupState(Y), { switch: d, indeterminate: a } = toRefs(u), y = r("modelValue", u, m), f = r("readonly", u), e = r("disabled", u), s = r("valid", u), n = r("invalid", u);
177
39
  return {
178
- propsSwitch: a,
179
- indeterminate: u,
180
- group: r,
181
- isInGroup: c,
182
- modelValue: d,
183
- readonly: l,
184
- disabled: s,
185
- valid: f,
186
- invalid: o
40
+ propsSwitch: d,
41
+ indeterminate: a,
42
+ group: t,
43
+ isInGroup: p,
44
+ modelValue: y,
45
+ readonly: f,
46
+ disabled: e,
47
+ valid: s,
48
+ invalid: n
187
49
  };
188
50
  }
189
- function _(t) {
190
- return Array.isArray(t) ? t.filter((e) => se(e)).join(" ") : t;
51
+ function A(u) {
52
+ return Array.isArray(u) ? u.filter((m) => isString(m)).join(" ") : u;
191
53
  }
192
- function be(t, e) {
54
+ function te(u, m) {
193
55
  const {
194
- invalid: r,
195
- valid: c,
196
- hint: n,
197
- loading: a
198
- } = e, {
199
- hintLabel: u,
200
- modelValue: d,
201
- valid: l,
202
- validLabel: s,
203
- invalid: f,
204
- invalidLabel: o,
205
- ...b
206
- } = R(t), p = B(b, "loading"), y = B(b, "loadingLabel"), h = i(() => f.value ? !!(f.value && r || o != null && o.value && Array.isArray(o.value) && o.value.length > 0 || o != null && o.value && !I(o)) : !1), k = i(
207
- () => !!(u && u.value || n)
208
- ), C = i(
209
- () => !!(s && s.value || c)
210
- ), V = i(
211
- () => !!(p != null && p.value && a || p != null && p.value && (y != null && y.value))
212
- ), x = i(
213
- () => k.value || C.value || h.value || V.value
56
+ invalid: t,
57
+ valid: p,
58
+ hint: r,
59
+ loading: d
60
+ } = m, {
61
+ hintLabel: a,
62
+ modelValue: y,
63
+ valid: f,
64
+ validLabel: e,
65
+ invalid: s,
66
+ invalidLabel: n,
67
+ ...k
68
+ } = toRefs(u), o = resolveFieldData(k, "loading"), l = resolveFieldData(k, "loadingLabel"), v = computed(() => s.value ? !!(s.value && t || n != null && n.value && Array.isArray(n.value) && n.value.length > 0 || n != null && n.value && !isEmpty(n)) : !1), S = computed(
69
+ () => !!(a && a.value || r)
70
+ ), C = computed(
71
+ () => !!(e && e.value || p)
72
+ ), x = computed(
73
+ () => !!(o != null && o.value && d || o != null && o.value && (l != null && l.value))
74
+ ), g = computed(
75
+ () => S.value || C.value || v.value || x.value
214
76
  );
215
77
  return {
216
- hasInvalid: h,
217
- hasHint: k,
78
+ hasInvalid: v,
79
+ hasHint: S,
218
80
  hasValid: C,
219
- hasLoading: V,
81
+ hasLoading: x,
220
82
  HintSlot: {
221
83
  name: "HintSlot",
222
84
  props: {
@@ -225,31 +87,31 @@ function be(t, e) {
225
87
  default: () => ({})
226
88
  }
227
89
  },
228
- setup(j) {
229
- const S = i(() => {
230
- const g = ne({
231
- hintLabel: u,
232
- modelValue: d,
233
- valid: l,
234
- validLabel: s,
235
- invalid: f,
236
- invalidLabel: o,
237
- loading: p,
238
- loadingLabel: y,
239
- ...j.params
90
+ setup(P) {
91
+ const _ = computed(() => {
92
+ const b = toReactive({
93
+ hintLabel: a,
94
+ modelValue: y,
95
+ valid: f,
96
+ validLabel: e,
97
+ invalid: s,
98
+ invalidLabel: n,
99
+ loading: o,
100
+ loadingLabel: l,
101
+ ...P.params
240
102
  });
241
- return f != null && f.value ? (r == null ? void 0 : r(g)) || _(o == null ? void 0 : o.value) || (u == null ? void 0 : u.value) : l != null && l.value ? (c == null ? void 0 : c(g)) || _(s == null ? void 0 : s.value) || (u == null ? void 0 : u.value) : p != null && p.value ? (a == null ? void 0 : a(g)) || _(y == null ? void 0 : y.value) || (u == null ? void 0 : u.value) : (n == null ? void 0 : n(g)) || _(u == null ? void 0 : u.value) || (u == null ? void 0 : u.value);
103
+ return s != null && s.value ? (t == null ? void 0 : t(b)) || A(n == null ? void 0 : n.value) || (a == null ? void 0 : a.value) : f != null && f.value ? (p == null ? void 0 : p(b)) || A(e == null ? void 0 : e.value) || (a == null ? void 0 : a.value) : o != null && o.value ? (d == null ? void 0 : d(b)) || A(l == null ? void 0 : l.value) || (a == null ? void 0 : a.value) : (r == null ? void 0 : r(b)) || A(a == null ? void 0 : a.value) || (a == null ? void 0 : a.value);
242
104
  });
243
105
  return {
244
- isVisible: x,
245
- hasInvalid: h,
106
+ isVisible: g,
107
+ hasInvalid: v,
246
108
  hasValid: C,
247
- hintContent: S
109
+ hintContent: _
248
110
  };
249
111
  },
250
112
  render() {
251
113
  if (this.isVisible)
252
- return N(
114
+ return h(
253
115
  "small",
254
116
  {
255
117
  role: this.hasInvalid || this.hasValid ? "alert" : void 0
@@ -260,98 +122,98 @@ function be(t, e) {
260
122
  }
261
123
  };
262
124
  }
263
- const ke = ["for"], Ce = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], Ve = {
125
+ const ae = ["for"], ne = ["id", "name", "disabled", "value", "tabindex", "aria-invalid"], ue = {
264
126
  name: "VvCheckbox"
265
- }, Be = /* @__PURE__ */ $({
266
- ...Ve,
267
- props: he,
268
- emits: ge,
269
- setup(t, { emit: e }) {
270
- const r = t, c = M(), {
271
- disabled: n,
272
- readonly: a,
273
- valid: u,
274
- invalid: d,
275
- propsSwitch: l,
276
- modelValue: s,
277
- indeterminate: f,
278
- isInGroup: o
279
- } = Ae(r, e), b = i(() => String(r.id || re())), p = i(() => k.value ? -1 : r.tabindex), y = T(), h = i(
280
- () => r.uncheckedValue !== void 0 && !o.value
281
- ), k = i(() => n.value || a.value), C = i(() => {
282
- if (d.value === !0)
127
+ }, le = /* @__PURE__ */ I({
128
+ ...ue,
129
+ props: Z,
130
+ emits: L,
131
+ setup(u, { emit: m }) {
132
+ const t = u, p = useSlots(), {
133
+ disabled: r,
134
+ readonly: d,
135
+ valid: a,
136
+ invalid: y,
137
+ propsSwitch: f,
138
+ modelValue: e,
139
+ indeterminate: s,
140
+ isInGroup: n
141
+ } = ee(t, m), k = computed(() => String(t.id || U())), o = computed(() => S.value ? -1 : t.tabindex), l = ref(), v = computed(
142
+ () => t.uncheckedValue !== void 0 && !n.value
143
+ ), S = computed(() => r.value || d.value), C = computed(() => {
144
+ if (y.value === !0)
283
145
  return !0;
284
- if (u.value === !0)
146
+ if (a.value === !0)
285
147
  return !1;
286
- }), V = i(() => h.value ? s.value === r.value : Array.isArray(s.value) ? ue(r.value, s.value) : E(r.value, s.value)), x = i(() => !!(f.value || !V.value && h.value && r.uncheckedValue !== s.value)), j = i(() => {
287
- if (!h.value)
288
- return ["string", "number", "boolean"].includes(typeof r.value) ? r.value : !0;
289
- }), S = i({
148
+ }), x = computed(() => v.value ? e.value === t.value : Array.isArray(e.value) ? contains(t.value, e.value) : equals(t.value, e.value)), g = computed(() => !!(s.value || !x.value && v.value && t.uncheckedValue !== e.value)), P = computed(() => {
149
+ if (!v.value)
150
+ return ["string", "number", "boolean"].includes(typeof t.value) ? t.value : !0;
151
+ }), _ = computed({
290
152
  get() {
291
- return V.value;
153
+ return x.value;
292
154
  },
293
- set(m) {
294
- if (h.value)
295
- s.value = m ? r.value : r.uncheckedValue;
296
- else if (Array.isArray(s.value) || o.value) {
297
- const A = new Set(
298
- Array.isArray(s.value) ? s.value : s.value !== void 0 ? [s.value] : []
155
+ set(c) {
156
+ if (v.value)
157
+ e.value = c ? t.value : t.uncheckedValue;
158
+ else if (Array.isArray(e.value) || n.value) {
159
+ const V = new Set(
160
+ Array.isArray(e.value) ? e.value : e.value !== void 0 ? [e.value] : []
299
161
  );
300
- m ? A.add(r.value) : A.delete(r.value), s.value = [...A];
162
+ c ? V.add(t.value) : V.delete(t.value), e.value = [...V];
301
163
  } else
302
- s.value = m ? r.value : void 0;
303
- e("change", m);
164
+ e.value = c ? t.value : void 0;
165
+ m("change", c);
304
166
  }
305
- }), { bemCssClasses: g } = ae("vv-checkbox", {
306
- switch: l,
307
- valid: u,
308
- invalid: d,
309
- disabled: n,
310
- readonly: a,
311
- indeterminate: f
167
+ }), { bemCssClasses: b } = useBemModifiers("vv-checkbox", {
168
+ switch: f,
169
+ valid: a,
170
+ invalid: y,
171
+ disabled: r,
172
+ readonly: d,
173
+ indeterminate: s
312
174
  });
313
- Z(() => {
314
- h.value && Array.isArray(s.value) && console.warn(
175
+ watchEffect(() => {
176
+ v.value && Array.isArray(e.value) && console.warn(
315
177
  "[VvCheckbox] The model value is an array but the component is in binary mode."
316
178
  );
317
- }), q(
318
- () => x.value,
319
- (m) => {
320
- m ? y.value.indeterminate = !0 : y.value.indeterminate = !1;
179
+ }), watch(
180
+ () => g.value,
181
+ (c) => {
182
+ c ? l.value.indeterminate = !0 : l.value.indeterminate = !1;
321
183
  }
322
- ), z(() => {
323
- x.value && (y.value.indeterminate = !0);
184
+ ), onMounted(() => {
185
+ g.value && (l.value.indeterminate = !0);
324
186
  });
325
- const { HintSlot: w } = be(r, c);
326
- return (m, A) => (U(), F("label", {
327
- class: K(v(g)),
328
- for: v(b)
187
+ const { HintSlot: B } = te(t, p);
188
+ return (c, V) => (N(), H("label", {
189
+ class: w(i(b)),
190
+ for: i(k)
329
191
  }, [
330
- J(Q("input", {
331
- id: v(b),
192
+ E(G("input", {
193
+ id: i(k),
332
194
  ref_key: "input",
333
- ref: y,
334
- "onUpdate:modelValue": A[0] || (A[0] = (G) => W(S) ? S.value = G : null),
195
+ ref: l,
196
+ "onUpdate:modelValue": V[0] || (V[0] = (R) => D(_) ? _.value = R : null),
335
197
  type: "checkbox",
336
198
  class: "vv-checkbox__input",
337
- name: m.name,
338
- disabled: v(k),
339
- value: v(j),
340
- tabindex: v(p),
341
- "aria-invalid": v(C)
342
- }, null, 8, Ce), [
343
- [X, v(S)]
199
+ name: c.name,
200
+ disabled: i(S),
201
+ value: i(P),
202
+ tabindex: i(o),
203
+ "aria-invalid": i(C)
204
+ }, null, 8, ne), [
205
+ [j, i(_)]
344
206
  ]),
345
- Y(m.$slots, "default", { value: v(s) }, () => [
346
- L(ee(m.label), 1)
207
+ O(c.$slots, "default", { value: i(e) }, () => [
208
+ M(F(c.label), 1)
347
209
  ]),
348
- te(v(w), {
210
+ T(i(B), {
349
211
  class: "vv-checkbox__hint",
350
- params: { value: v(s) }
212
+ params: { value: i(e) }
351
213
  }, null, 8, ["params"])
352
- ], 10, ke));
214
+ ], 10, ae));
353
215
  }
354
216
  });
355
217
  export {
356
- Be as default
218
+ le as default
357
219
  };
@@ -1 +1 @@
1
- (function(e,A){typeof exports=="object"&&typeof module<"u"?module.exports=A(require("vue"),require("nanoid"),require("@vueuse/core")):typeof define=="function"&&define.amd?define(["vue","nanoid","@vueuse/core"],A):(e=typeof globalThis<"u"?globalThis:e||self,e.VvCheckbox=A(e.vue,e.nanoid,e.core))})(this,function(e,A,E){"use strict";function j(n,t,r){return r?S(n,r)===S(t,r):B(n,t)}function B(n,t){if(n===t)return!0;if(n&&t&&typeof n=="object"&&typeof t=="object"){const r=Array.isArray(n),c=Array.isArray(t);let o,i,s;if(r&&c){if(i=n.length,i!=t.length)return!1;for(o=i;o--!==0;)if(!B(n[o],t[o]))return!1;return!0}if(r!=c)return!1;const d=n instanceof Date,l=t instanceof Date;if(d!=l)return!1;if(d&&l)return n.getTime()==t.getTime();const a=n instanceof RegExp,f=t instanceof RegExp;if(a!=f)return!1;if(a&&f)return n.toString()==t.toString();const u=Object.keys(n);if(i=u.length,i!==Object.keys(t).length)return!1;for(o=i;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,u[o]))return!1;for(o=i;o--!==0;)if(s=u[o],!B(n[s],t[s]))return!1;return!0}return n!==n&&t!==t}function S(n,t){if(n&&Object.keys(n).length&&t){if(t.indexOf(".")===-1)return n[t];{const r=t.split(".");let c=n;for(let o=0,i=r.length;o<i;++o){if(n==null)return null;c=c[r[o]]}return c}}else return null}function w(n,t){if(n!=null&&t&&t.length){for(const r of t)if(j(n,r))return!0}return!1}function O(n){return(t=>t==null||t===""||Array.isArray(t)&&t.length===0||!(t instanceof Date)&&typeof t=="object"&&Object.keys(t).length===0)(e.unref(n))}function D(n){return typeof n=="string"||n instanceof String}function I(n){var t,r;if(n)return(r=(t=n.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))==null?void 0:t.join("-"))==null?void 0:r.toLowerCase()}function G(n,t){const r={[`${n}`]:!0};return{bemCssClasses:e.computed(()=>Object.keys(t).reduce((o,i)=>{const s=e.unref(t[i])||!1;if(!s)return o;if(i==="modifiers"){const d=Array.isArray(s)?s:s.split(" ");return{...o,...d.reduce((l,a)=>({...l,[`${n}--${I(a)}`]:!0}),{})}}else return{...o,[`${n}--${I(i)}`]:s}},r)||{})}}function H(n){const t=e.inject(n,void 0),r=e.computed(()=>!O(t));function c(o,i,s){if(t!=null&&t.value){const l=e.unref(t.value)[o];return e.computed({get(){return l==null?void 0:l.value},set(a){l.value=a}})}const d=e.toRef(i,o);return e.computed({get(){return d.value},set(l){s&&s(`update:${o}`,l)}})}return{group:t,isInGroup:r,getGroupOrLocalRef:c}}const N={...{id:[String,Number],name:{type:String,required:!0}},...{tabindex:{type:[String,Number],default:0}},...{valid:Boolean,validLabel:[String,Array]},...{invalid:Boolean,invalidLabel:[String,Array]},...{hintLabel:{type:String,default:""}},...{disabled:Boolean},...{readonly:Boolean},value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String],label:String},T="VV_CHECK_GROUP",$={...N,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean},q=["click","update:modelValue","change","blur"];function M(n,t){const{group:r,isInGroup:c,getGroupOrLocalRef:o}=H(T),{switch:i,indeterminate:s}=e.toRefs(n),d=o("modelValue",n,t),l=o("readonly",n),a=o("disabled",n),f=o("valid",n),u=o("invalid",n);return{propsSwitch:i,indeterminate:s,group:r,isInGroup:c,modelValue:d,readonly:l,disabled:a,valid:f,invalid:u}}function P(n){return Array.isArray(n)?n.filter(t=>D(t)).join(" "):n}function Z(n,t){const{invalid:r,valid:c,hint:o,loading:i}=t,{hintLabel:s,modelValue:d,valid:l,validLabel:a,invalid:f,invalidLabel:u,...b}=e.toRefs(n),p=S(b,"loading"),m=S(b,"loadingLabel"),y=e.computed(()=>f.value?!!(f.value&&r||u!=null&&u.value&&Array.isArray(u.value)&&u.value.length>0||u!=null&&u.value&&!O(u)):!1),k=e.computed(()=>!!(s&&s.value||o)),V=e.computed(()=>!!(a&&a.value||c)),C=e.computed(()=>!!(p!=null&&p.value&&i||p!=null&&p.value&&(m!=null&&m.value))),_=e.computed(()=>k.value||V.value||y.value||C.value);return{hasInvalid:y,hasHint:k,hasValid:V,hasLoading:C,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(R){const x=e.computed(()=>{const h=E.toReactive({hintLabel:s,modelValue:d,valid:l,validLabel:a,invalid:f,invalidLabel:u,loading:p,loadingLabel:m,...R.params});return f!=null&&f.value?(r==null?void 0:r(h))||P(u==null?void 0:u.value)||(s==null?void 0:s.value):l!=null&&l.value?(c==null?void 0:c(h))||P(a==null?void 0:a.value)||(s==null?void 0:s.value):p!=null&&p.value?(i==null?void 0:i(h))||P(m==null?void 0:m.value)||(s==null?void 0:s.value):(o==null?void 0:o(h))||P(s==null?void 0:s.value)||(s==null?void 0:s.value)});return{isVisible:_,hasInvalid:y,hasValid:V,hintContent:x}},render(){if(this.isVisible)return e.h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}const z=["for"],U=["id","name","disabled","value","tabindex","aria-invalid"],F={name:"VvCheckbox"};return e.defineComponent({...F,props:$,emits:q,setup(n,{emit:t}){const r=n,c=e.useSlots(),{disabled:o,readonly:i,valid:s,invalid:d,propsSwitch:l,modelValue:a,indeterminate:f,isInGroup:u}=M(r,t),b=e.computed(()=>String(r.id||A.nanoid())),p=e.computed(()=>k.value?-1:r.tabindex),m=e.ref(),y=e.computed(()=>r.uncheckedValue!==void 0&&!u.value),k=e.computed(()=>o.value||i.value),V=e.computed(()=>{if(d.value===!0)return!0;if(s.value===!0)return!1}),C=e.computed(()=>y.value?a.value===r.value:Array.isArray(a.value)?w(r.value,a.value):j(r.value,a.value)),_=e.computed(()=>!!(f.value||!C.value&&y.value&&r.uncheckedValue!==a.value)),R=e.computed(()=>{if(!y.value)return["string","number","boolean"].includes(typeof r.value)?r.value:!0}),x=e.computed({get(){return C.value},set(v){if(y.value)a.value=v?r.value:r.uncheckedValue;else if(Array.isArray(a.value)||u.value){const g=new Set(Array.isArray(a.value)?a.value:a.value!==void 0?[a.value]:[]);v?g.add(r.value):g.delete(r.value),a.value=[...g]}else a.value=v?r.value:void 0;t("change",v)}}),{bemCssClasses:h}=G("vv-checkbox",{switch:l,valid:s,invalid:d,disabled:o,readonly:i,indeterminate:f});e.watchEffect(()=>{y.value&&Array.isArray(a.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")}),e.watch(()=>_.value,v=>{v?m.value.indeterminate=!0:m.value.indeterminate=!1}),e.onMounted(()=>{_.value&&(m.value.indeterminate=!0)});const{HintSlot:K}=Z(r,c);return(v,g)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(h)),for:e.unref(b)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(b),ref_key:"input",ref:m,"onUpdate:modelValue":g[0]||(g[0]=J=>e.isRef(x)?x.value=J:null),type:"checkbox",class:"vv-checkbox__input",name:v.name,disabled:e.unref(k),value:e.unref(R),tabindex:e.unref(p),"aria-invalid":e.unref(V)},null,8,U),[[e.vModelCheckbox,e.unref(x)]]),e.renderSlot(v.$slots,"default",{value:e.unref(a)},()=>[e.createTextVNode(e.toDisplayString(v.label),1)]),e.createVNode(e.unref(K),{class:"vv-checkbox__hint",params:{value:e.unref(a)}},null,8,["params"])],10,z))}})});
1
+ (function(e,P){typeof exports=="object"&&typeof module<"u"?module.exports=P(require("vue"),require("nanoid")):typeof define=="function"&&define.amd?define(["vue","nanoid"],P):(e=typeof globalThis<"u"?globalThis:e||self,e.VvCheckbox=P(e.vue,e.nanoid))})(this,function(e,P){"use strict";const I={...{id:[String,Number],name:{type:String,required:!0}},...{tabindex:{type:[String,Number],default:0}},...{valid:Boolean,validLabel:[String,Array]},...{invalid:Boolean,invalidLabel:[String,Array]},...{hintLabel:{type:String,default:""}},...{disabled:Boolean},...{readonly:Boolean},value:[String,Number,Boolean],modelValue:[Object,Number,Boolean,String],label:String},R="VV_CHECK_GROUP",N={...I,indeterminate:Boolean,uncheckedValue:[String,Number,Boolean],switch:Boolean},H=["click","update:modelValue","change","blur"];function w(o,f){const{group:n,isInGroup:p,getGroupOrLocalRef:u}=useInjectedGroupState(R),{switch:c,indeterminate:a}=toRefs(o),y=u("modelValue",o,f),m=u("readonly",o),t=u("disabled",o),i=u("valid",o),r=u("invalid",o);return{propsSwitch:c,indeterminate:a,group:n,isInGroup:p,modelValue:y,readonly:m,disabled:t,valid:i,invalid:r}}function A(o){return Array.isArray(o)?o.filter(f=>isString(f)).join(" "):o}function D(o,f){const{invalid:n,valid:p,hint:u,loading:c}=f,{hintLabel:a,modelValue:y,valid:m,validLabel:t,invalid:i,invalidLabel:r,...k}=toRefs(o),s=resolveFieldData(k,"loading"),l=resolveFieldData(k,"loadingLabel"),v=computed(()=>i.value?!!(i.value&&n||r!=null&&r.value&&Array.isArray(r.value)&&r.value.length>0||r!=null&&r.value&&!isEmpty(r)):!1),x=computed(()=>!!(a&&a.value||u)),S=computed(()=>!!(t&&t.value||p)),C=computed(()=>!!(s!=null&&s.value&&c||s!=null&&s.value&&(l!=null&&l.value))),g=computed(()=>x.value||S.value||v.value||C.value);return{hasInvalid:v,hasHint:x,hasValid:S,hasLoading:C,HintSlot:{name:"HintSlot",props:{params:{type:Object,default:()=>({})}},setup(B){const _=computed(()=>{const b=toReactive({hintLabel:a,modelValue:y,valid:m,validLabel:t,invalid:i,invalidLabel:r,loading:s,loadingLabel:l,...B.params});return i!=null&&i.value?(n==null?void 0:n(b))||A(r==null?void 0:r.value)||(a==null?void 0:a.value):m!=null&&m.value?(p==null?void 0:p(b))||A(t==null?void 0:t.value)||(a==null?void 0:a.value):s!=null&&s.value?(c==null?void 0:c(b))||A(l==null?void 0:l.value)||(a==null?void 0:a.value):(u==null?void 0:u(b))||A(a==null?void 0:a.value)||(a==null?void 0:a.value)});return{isVisible:g,hasInvalid:v,hasValid:S,hintContent:_}},render(){if(this.isVisible)return h("small",{role:this.hasInvalid||this.hasValid?"alert":void 0},this.hintContent)}}}}const E=["for"],G=["id","name","disabled","value","tabindex","aria-invalid"],j={name:"VvCheckbox"};return e.defineComponent({...j,props:N,emits:H,setup(o,{emit:f}){const n=o,p=useSlots(),{disabled:u,readonly:c,valid:a,invalid:y,propsSwitch:m,modelValue:t,indeterminate:i,isInGroup:r}=w(n,f),k=computed(()=>String(n.id||P.nanoid())),s=computed(()=>x.value?-1:n.tabindex),l=ref(),v=computed(()=>n.uncheckedValue!==void 0&&!r.value),x=computed(()=>u.value||c.value),S=computed(()=>{if(y.value===!0)return!0;if(a.value===!0)return!1}),C=computed(()=>v.value?t.value===n.value:Array.isArray(t.value)?contains(n.value,t.value):equals(n.value,t.value)),g=computed(()=>!!(i.value||!C.value&&v.value&&n.uncheckedValue!==t.value)),B=computed(()=>{if(!v.value)return["string","number","boolean"].includes(typeof n.value)?n.value:!0}),_=computed({get(){return C.value},set(d){if(v.value)t.value=d?n.value:n.uncheckedValue;else if(Array.isArray(t.value)||r.value){const V=new Set(Array.isArray(t.value)?t.value:t.value!==void 0?[t.value]:[]);d?V.add(n.value):V.delete(n.value),t.value=[...V]}else t.value=d?n.value:void 0;f("change",d)}}),{bemCssClasses:b}=useBemModifiers("vv-checkbox",{switch:m,valid:a,invalid:y,disabled:u,readonly:c,indeterminate:i});watchEffect(()=>{v.value&&Array.isArray(t.value)&&console.warn("[VvCheckbox] The model value is an array but the component is in binary mode.")}),watch(()=>g.value,d=>{d?l.value.indeterminate=!0:l.value.indeterminate=!1}),onMounted(()=>{g.value&&(l.value.indeterminate=!0)});const{HintSlot:T}=D(n,p);return(d,V)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(e.unref(b)),for:e.unref(k)},[e.withDirectives(e.createElementVNode("input",{id:e.unref(k),ref_key:"input",ref:l,"onUpdate:modelValue":V[0]||(V[0]=O=>e.isRef(_)?_.value=O:null),type:"checkbox",class:"vv-checkbox__input",name:d.name,disabled:e.unref(x),value:e.unref(B),tabindex:e.unref(s),"aria-invalid":e.unref(S)},null,8,G),[[e.vModelCheckbox,e.unref(_)]]),e.renderSlot(d.$slots,"default",{value:e.unref(t)},()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),e.createVNode(e.unref(T),{class:"vv-checkbox__hint",params:{value:e.unref(t)}},null,8,["params"])],10,E))}})});
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
4
4
  switch: BooleanConstructor;
5
5
  value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
6
- modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
6
+ modelValue: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
7
7
  label: StringConstructor;
8
8
  readonly: BooleanConstructor;
9
9
  disabled: BooleanConstructor;
@@ -12,9 +12,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
12
12
  default: string;
13
13
  };
14
14
  invalid: BooleanConstructor;
15
- invalidLabel: (ArrayConstructor | StringConstructor)[];
15
+ invalidLabel: (StringConstructor | ArrayConstructor)[];
16
16
  valid: BooleanConstructor;
17
- validLabel: (ArrayConstructor | StringConstructor)[];
17
+ validLabel: (StringConstructor | ArrayConstructor)[];
18
18
  tabindex: {
19
19
  type: (StringConstructor | NumberConstructor)[];
20
20
  default: number;
@@ -29,7 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
29
29
  uncheckedValue: (StringConstructor | BooleanConstructor | NumberConstructor)[];
30
30
  switch: BooleanConstructor;
31
31
  value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
32
- modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
32
+ modelValue: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
33
33
  label: StringConstructor;
34
34
  readonly: BooleanConstructor;
35
35
  disabled: BooleanConstructor;
@@ -38,9 +38,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
38
38
  default: string;
39
39
  };
40
40
  invalid: BooleanConstructor;
41
- invalidLabel: (ArrayConstructor | StringConstructor)[];
41
+ invalidLabel: (StringConstructor | ArrayConstructor)[];
42
42
  valid: BooleanConstructor;
43
- validLabel: (ArrayConstructor | StringConstructor)[];
43
+ validLabel: (StringConstructor | ArrayConstructor)[];
44
44
  tabindex: {
45
45
  type: (StringConstructor | NumberConstructor)[];
46
46
  default: number;
@@ -1,4 +1,4 @@
1
- import { type ExtractPropTypes, type Ref } from 'vue';
1
+ import type { ExtractPropTypes, Ref } from 'vue';
2
2
  import type { IInputGroupState } from '@/composables/group/types/IInputGroup';
3
3
  export declare const VvCheckboxProps: {
4
4
  /**
@@ -14,18 +14,24 @@ export declare const VvCheckboxProps: {
14
14
  */
15
15
  switch: BooleanConstructor;
16
16
  value: (StringConstructor | BooleanConstructor | NumberConstructor)[];
17
- modelValue: (ObjectConstructor | StringConstructor | BooleanConstructor | NumberConstructor)[];
17
+ modelValue: (StringConstructor | BooleanConstructor | ObjectConstructor | NumberConstructor)[];
18
18
  label: StringConstructor;
19
+ /**
20
+ * If true, the input will be displayed as a switch
21
+ */
19
22
  readonly: BooleanConstructor;
20
23
  disabled: BooleanConstructor;
21
24
  hintLabel: {
25
+ /**
26
+ * Merges local and group props
27
+ */
22
28
  type: StringConstructor;
23
29
  default: string;
24
30
  };
25
31
  invalid: BooleanConstructor;
26
- invalidLabel: (ArrayConstructor | StringConstructor)[];
32
+ invalidLabel: (StringConstructor | ArrayConstructor)[];
27
33
  valid: BooleanConstructor;
28
- validLabel: (ArrayConstructor | StringConstructor)[];
34
+ validLabel: (StringConstructor | ArrayConstructor)[];
29
35
  tabindex: {
30
36
  type: (StringConstructor | NumberConstructor)[];
31
37
  default: number;