@volverjs/ui-vue 0.0.5-beta.4 → 0.0.5-beta.5
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.
- package/dist/components/VvCheckbox/VvCheckbox.es.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +1 -1
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/index.es.js +2 -2
- package/dist/components/index.umd.js +1 -1
- package/dist/icons.es.js +3 -3
- package/dist/icons.umd.js +1 -1
- package/package.json +8 -7
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/components/VvCheckbox/index.ts +1 -1
- package/src/components/VvRadio/index.ts +1 -1
- package/src/stories/Combobox/Combobox.test.ts +14 -6
- package/src/stories/Select/Select.test.ts +4 -1
|
@@ -42,7 +42,7 @@ export function useGroupProps(
|
|
|
42
42
|
const valid = getGroupOrLocalRef('valid', props) as Ref<boolean>
|
|
43
43
|
const invalid = getGroupOrLocalRef('invalid', props) as Ref<boolean>
|
|
44
44
|
const readonly = computed(() =>
|
|
45
|
-
Boolean(props.readonly || group?.value?.
|
|
45
|
+
Boolean(props.readonly || group?.value?.readonly.value),
|
|
46
46
|
)
|
|
47
47
|
const disabled = computed(() =>
|
|
48
48
|
Boolean(props.disabled || group?.value?.disabled.value),
|
|
@@ -25,7 +25,7 @@ export function useGroupProps(
|
|
|
25
25
|
const valid = getGroupOrLocalRef('valid', props) as Ref<boolean>
|
|
26
26
|
const invalid = getGroupOrLocalRef('invalid', props) as Ref<boolean>
|
|
27
27
|
const readonly = computed(() =>
|
|
28
|
-
Boolean(props.readonly || group?.value?.
|
|
28
|
+
Boolean(props.readonly || group?.value?.readonly.value),
|
|
29
29
|
)
|
|
30
30
|
const disabled = computed(() =>
|
|
31
31
|
Boolean(props.disabled || group?.value?.disabled.value),
|
|
@@ -21,11 +21,11 @@ export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
|
21
21
|
const dropdown = element.getElementsByClassName(
|
|
22
22
|
'vv-dropdown',
|
|
23
23
|
)[0] as HTMLElement
|
|
24
|
-
const dropdownFirstItem = dropdown.
|
|
25
|
-
'li',
|
|
24
|
+
const dropdownFirstItem = dropdown.querySelectorAll(
|
|
25
|
+
'li[role="option"]',
|
|
26
26
|
)[0] as HTMLElement
|
|
27
|
-
const dropdownSecondItem = dropdown.
|
|
28
|
-
'li',
|
|
27
|
+
const dropdownSecondItem = dropdown.querySelectorAll(
|
|
28
|
+
'li[role="option"]',
|
|
29
29
|
)[1] as HTMLElement
|
|
30
30
|
const hint = element.getElementsByClassName('vv-select__hint')[0]
|
|
31
31
|
|
|
@@ -49,7 +49,12 @@ export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
|
49
49
|
// select first value
|
|
50
50
|
await expect(dropdownFirstItem).toBeClicked()
|
|
51
51
|
await sleep()
|
|
52
|
-
const firstValue = getOptionValue(
|
|
52
|
+
const firstValue = getOptionValue(
|
|
53
|
+
args.options[0].options ? args.options[0] : args,
|
|
54
|
+
0,
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
// in grouped options the first element is not selectable
|
|
53
58
|
if (args.multiple) {
|
|
54
59
|
await expect(JSON.parse(value.innerHTML)).toEqual([firstValue])
|
|
55
60
|
} else {
|
|
@@ -60,7 +65,10 @@ export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
|
60
65
|
if (args.options.length > 1) {
|
|
61
66
|
await expect(dropdownSecondItem).toBeClicked()
|
|
62
67
|
await sleep()
|
|
63
|
-
const secondValue = getOptionValue(
|
|
68
|
+
const secondValue = getOptionValue(
|
|
69
|
+
args.options[0].options ? args.options[0] : args,
|
|
70
|
+
1,
|
|
71
|
+
)
|
|
64
72
|
if (args.multiple) {
|
|
65
73
|
await expect(JSON.parse(value.innerHTML)).toEqual([
|
|
66
74
|
firstValue,
|
|
@@ -24,7 +24,10 @@ export async function defaultTest({ canvasElement, args }: PlayAttributes) {
|
|
|
24
24
|
args.options.length > 0
|
|
25
25
|
) {
|
|
26
26
|
// select first value
|
|
27
|
-
const firstValue = getOptionValue(
|
|
27
|
+
const firstValue = getOptionValue(
|
|
28
|
+
args.options[0].options ? args.options[0] : args,
|
|
29
|
+
0,
|
|
30
|
+
)
|
|
28
31
|
select.value = firstValue
|
|
29
32
|
select.dispatchEvent(new Event('change'))
|
|
30
33
|
await sleep()
|