vueless 0.0.105 → 0.0.107
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/adatper.locale/locales/en.js +1 -1
- package/index.js +1 -1
- package/package.json +4 -4
- package/ui.button-toggle/configs/default.config.js +1 -0
- package/ui.button-toggle/index.vue +34 -27
- package/ui.button-toggle-item/composables/attrs.composable.js +2 -2
- package/ui.button-toggle-item/index.vue +11 -18
- package/ui.form-input-file/index.vue +15 -11
- package/ui.loader/index.stories.js +1 -1
- package/ui.loader-rendering/index.stories.js +3 -3
- package/ui.loader-top/composables/attrs.composable.js +2 -2
- package/ui.loader-top/index.stories.js +3 -3
- package/ui.navigation-pagination/index.stories.js +1 -1
- package/{ui.progress → ui.navigation-progress}/index.stories.js +2 -2
- package/ui.other-dot/index.stories.js +1 -1
- package/ui.text-money/index.stories.js +0 -1
- package/{ui.notify → ui.text-notify}/index.stories.js +4 -3
- package/web-types.json +41 -39
- /package/{ui.progress → ui.navigation-progress}/composables/attrs.composable.js +0 -0
- /package/{ui.progress → ui.navigation-progress}/configs/default.config.js +0 -0
- /package/{ui.progress → ui.navigation-progress}/constants/index.js +0 -0
- /package/{ui.progress → ui.navigation-progress}/index.vue +0 -0
- /package/{ui.notify → ui.text-notify}/Docs.mdx +0 -0
- /package/{ui.notify → ui.text-notify}/composables/attrs.composable.js +0 -0
- /package/{ui.notify → ui.text-notify}/configs/default.config.js +0 -0
- /package/{ui.notify → ui.text-notify}/constants/index.js +0 -0
- /package/{ui.notify → ui.text-notify}/index.vue +0 -0
- /package/{ui.notify → ui.text-notify}/services/index.js +0 -0
|
@@ -8,7 +8,7 @@ import calendarConfig from "../../ui.form-calendar/configs/default.config";
|
|
|
8
8
|
import datepickerConfig from "../../ui.form-date-picker/configs/default.config";
|
|
9
9
|
import datepickerRangeConfig from "../../ui.form-date-picker-range/configs/default.config";
|
|
10
10
|
import dataListConfig from "../../ui.data-list/configs/default.config";
|
|
11
|
-
import notifyDefaultConfig from "../../ui.notify/configs/default.config";
|
|
11
|
+
import notifyDefaultConfig from "../../ui.text-notify/configs/default.config";
|
|
12
12
|
|
|
13
13
|
export default {
|
|
14
14
|
USelect: selectConfig.i18n,
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vueless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.107",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Vue Styleless Component Framework.",
|
|
6
6
|
"homepage": "https://vueless.com",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"release:patch": "release-it patch --ci --npm.publish",
|
|
18
18
|
"release:minor": "release-it minor --ci --npm.publish --git.tag --github.release",
|
|
19
19
|
"release:major": "release-it major --ci --npm.publish --git.tag --github.release",
|
|
20
|
-
"sb:dev-full": "STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
|
|
21
|
-
"sb:dev": "storybook dev -p 6006 --docs --no-open",
|
|
22
|
-
"sb:build": "storybook build --docs",
|
|
20
|
+
"sb:dev-full": "npx @vueless/web-types && node prepare.icons && STORYBOOK_FULL=1 storybook dev -p 6006 --no-open",
|
|
21
|
+
"sb:dev": "npx @vueless/web-types && node prepare.icons && storybook dev -p 6006 --docs --no-open",
|
|
22
|
+
"sb:build": "npx @vueless/web-types && node prepare.icons && storybook build --docs",
|
|
23
23
|
"sb:preview": "vite preview --host --outDir=storybook-static",
|
|
24
24
|
"package:prepare": "npx @vueless/web-types && node prepare.icons && rm -rf dist && mkdir -p dist && cp -r src/. package.json LICENSE web-types.json README.md dist/ && node prepare.dist"
|
|
25
25
|
},
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
2
|
+
<div :data-cy="dataCy" v-bind="wrapperAttrs">
|
|
3
|
+
<!-- @slot Use it to add UToggleItem directly. -->
|
|
3
4
|
<slot>
|
|
4
5
|
<UToggleItem
|
|
5
6
|
v-for="(item, index) in options"
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
</template>
|
|
17
18
|
|
|
18
19
|
<script setup>
|
|
19
|
-
import { computed, provide, readonly
|
|
20
|
+
import { computed, provide, readonly } from "vue";
|
|
20
21
|
|
|
21
22
|
import UToggleItem from "../ui.button-toggle-item";
|
|
22
23
|
import UIService from "../service.ui";
|
|
@@ -30,39 +31,40 @@ defineOptions({ name: "UToggle", inheritAttrs: false });
|
|
|
30
31
|
|
|
31
32
|
const props = defineProps({
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
+
* Selected value.
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
-
type: String,
|
|
37
|
-
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: [String, Number, Array],
|
|
38
|
+
default: () => (!this.multiple ? "" : []),
|
|
38
39
|
},
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
|
-
*
|
|
42
|
+
* Toggle variants.
|
|
43
|
+
* @values primary, secondary, thirdary
|
|
42
44
|
*/
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
default: ()
|
|
45
|
+
variant: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: UIService.get(defaultConfig, UToggle).default.variant,
|
|
46
48
|
},
|
|
47
49
|
|
|
48
50
|
/**
|
|
49
|
-
*
|
|
51
|
+
* Toggle item options.
|
|
50
52
|
*/
|
|
51
|
-
|
|
52
|
-
type:
|
|
53
|
-
default: () =>
|
|
53
|
+
options: {
|
|
54
|
+
type: Array,
|
|
55
|
+
default: () => [],
|
|
54
56
|
},
|
|
55
57
|
|
|
56
58
|
/**
|
|
57
|
-
*
|
|
59
|
+
* Toggle name.
|
|
58
60
|
*/
|
|
59
|
-
|
|
60
|
-
type:
|
|
61
|
-
|
|
61
|
+
name: {
|
|
62
|
+
type: String,
|
|
63
|
+
required: true,
|
|
62
64
|
},
|
|
63
65
|
|
|
64
66
|
/**
|
|
65
|
-
*
|
|
67
|
+
* Toggle size.
|
|
66
68
|
* @values xs, sm, md, lg
|
|
67
69
|
*/
|
|
68
70
|
size: {
|
|
@@ -78,6 +80,14 @@ const props = defineProps({
|
|
|
78
80
|
default: UIService.get(defaultConfig, UToggle).default.block,
|
|
79
81
|
},
|
|
80
82
|
|
|
83
|
+
/**
|
|
84
|
+
* Allow selecting a few options and return them as an array.
|
|
85
|
+
*/
|
|
86
|
+
multiple: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: UIService.get(defaultConfig, UToggle).default.multiple,
|
|
89
|
+
},
|
|
90
|
+
|
|
81
91
|
/**
|
|
82
92
|
* Sets data-cy attribute for automated testing.
|
|
83
93
|
*/
|
|
@@ -91,14 +101,14 @@ const emit = defineEmits(["update:modelValue"]);
|
|
|
91
101
|
|
|
92
102
|
const { wrapperAttrs, toggleItemAttrs } = useAttrs(props);
|
|
93
103
|
|
|
94
|
-
const wrapperRef = ref();
|
|
95
|
-
|
|
96
104
|
const selectedValue = computed({
|
|
97
105
|
get: () => props.modelValue,
|
|
98
106
|
set: (value) => emit("update:modelValue", value),
|
|
99
107
|
});
|
|
100
108
|
|
|
101
|
-
const type = computed(() =>
|
|
109
|
+
const type = computed(() => {
|
|
110
|
+
return props.multiple ? TYPE_CHECKBOX : TYPE_RADIO;
|
|
111
|
+
});
|
|
102
112
|
|
|
103
113
|
function updateSelectedValue(value, checked) {
|
|
104
114
|
if (type.value === TYPE_RADIO) {
|
|
@@ -114,14 +124,11 @@ function updateSelectedValue(value, checked) {
|
|
|
114
124
|
}
|
|
115
125
|
}
|
|
116
126
|
|
|
127
|
+
provide("toggleType", readonly(type));
|
|
117
128
|
provide("toggleName", () => props.name);
|
|
118
|
-
|
|
119
129
|
provide("toggleSize", () => props.size);
|
|
120
|
-
|
|
121
130
|
provide("toggleBlock", () => props.block);
|
|
122
|
-
|
|
123
|
-
provide("toggleType", readonly(type));
|
|
124
|
-
|
|
131
|
+
provide("toggleVariant", () => props.variant);
|
|
125
132
|
provide("toggleSelectedValue", {
|
|
126
133
|
selectedValue: readonly(selectedValue),
|
|
127
134
|
updateSelectedValue,
|
|
@@ -4,7 +4,7 @@ import { cva } from "../../service.ui";
|
|
|
4
4
|
|
|
5
5
|
import defaultConfig from "../configs/default.config";
|
|
6
6
|
|
|
7
|
-
export function useAttrs(props, { size, block }) {
|
|
7
|
+
export function useAttrs(props, { size, block, variant }) {
|
|
8
8
|
const { config, getAttrs, hasSlotContent } = useUI(defaultConfig, () => props.config);
|
|
9
9
|
const { label, labelText, wrapper } = config.value;
|
|
10
10
|
|
|
@@ -33,7 +33,7 @@ export function useAttrs(props, { size, block }) {
|
|
|
33
33
|
const labelClasses = computed(() =>
|
|
34
34
|
cvaLabel({
|
|
35
35
|
size: toValue(size),
|
|
36
|
-
variant:
|
|
36
|
+
variant: toValue(variant),
|
|
37
37
|
disabled: props.disabled,
|
|
38
38
|
}),
|
|
39
39
|
);
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
<input
|
|
4
4
|
:id="id"
|
|
5
5
|
v-model="selectedItem"
|
|
6
|
-
:disabled="disabled"
|
|
7
|
-
:value="value"
|
|
8
6
|
:name="name"
|
|
9
7
|
:type="type"
|
|
8
|
+
:value="value"
|
|
9
|
+
:disabled="disabled"
|
|
10
10
|
v-bind="inputAttrs"
|
|
11
11
|
/>
|
|
12
12
|
<label tabindex="0" :for="id" v-bind="labelAttrs" @click="onClickSetValue">
|
|
@@ -42,7 +42,7 @@ defineOptions({ name: "UToggleItem", inheritAttrs: false });
|
|
|
42
42
|
|
|
43
43
|
const props = defineProps({
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Selected value.
|
|
46
46
|
*/
|
|
47
47
|
modelValue: {
|
|
48
48
|
type: [String, Number, Array],
|
|
@@ -50,7 +50,7 @@ const props = defineProps({
|
|
|
50
50
|
},
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Value for checkbox state.
|
|
54
54
|
*/
|
|
55
55
|
value: {
|
|
56
56
|
type: [String, Number],
|
|
@@ -58,7 +58,7 @@ const props = defineProps({
|
|
|
58
58
|
},
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* Toggle item label.
|
|
62
62
|
*/
|
|
63
63
|
label: {
|
|
64
64
|
type: String,
|
|
@@ -66,22 +66,13 @@ const props = defineProps({
|
|
|
66
66
|
},
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Make item disabled.
|
|
69
|
+
* Make toggle item disabled.
|
|
70
70
|
*/
|
|
71
71
|
disabled: {
|
|
72
72
|
type: Boolean,
|
|
73
73
|
default: UIService.get(defaultConfig, UToggleItem).default.disabled,
|
|
74
74
|
},
|
|
75
75
|
|
|
76
|
-
/**
|
|
77
|
-
* The variant of the button.
|
|
78
|
-
* @values primary, secondary, thirdary
|
|
79
|
-
*/
|
|
80
|
-
variant: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: UIService.get(defaultConfig, UToggleItem).default.variant,
|
|
83
|
-
},
|
|
84
|
-
|
|
85
76
|
/**
|
|
86
77
|
* Generates unique element id.
|
|
87
78
|
* @ignore
|
|
@@ -92,7 +83,7 @@ const props = defineProps({
|
|
|
92
83
|
},
|
|
93
84
|
|
|
94
85
|
/**
|
|
95
|
-
*
|
|
86
|
+
* Component ui config object.
|
|
96
87
|
*/
|
|
97
88
|
config: {
|
|
98
89
|
type: Object,
|
|
@@ -100,7 +91,7 @@ const props = defineProps({
|
|
|
100
91
|
},
|
|
101
92
|
|
|
102
93
|
/**
|
|
103
|
-
*
|
|
94
|
+
* Data-cy attribute for automated testing.
|
|
104
95
|
*/
|
|
105
96
|
dataCy: {
|
|
106
97
|
type: String,
|
|
@@ -110,15 +101,17 @@ const props = defineProps({
|
|
|
110
101
|
|
|
111
102
|
const emit = defineEmits(["update:modelValue"]);
|
|
112
103
|
|
|
104
|
+
const name = inject("toggleName", () => "toggle");
|
|
113
105
|
const type = inject("toggleType", UIService.get(defaultConfig, UToggleItem).default.type);
|
|
114
|
-
const name = inject("toggleName", "toggle");
|
|
115
106
|
const size = inject("toggleSize", UIService.get(defaultConfig, UToggleItem).default.size);
|
|
116
107
|
const block = inject("toggleBlock", UIService.get(defaultConfig, UToggleItem).default.block);
|
|
108
|
+
const variant = inject("toggleVariant", UIService.get(defaultConfig, UToggleItem).default.variant);
|
|
117
109
|
const { selectedValue, updateSelectedValue } = inject("toggleSelectedValue", {});
|
|
118
110
|
|
|
119
111
|
const { wrapperAttrs, labelTextAttrs, labelAttrs, inputAttrs, hasSlotContent } = useAttrs(props, {
|
|
120
112
|
size,
|
|
121
113
|
block,
|
|
114
|
+
variant,
|
|
122
115
|
});
|
|
123
116
|
|
|
124
117
|
const selectedItem = ref("");
|
|
@@ -1,34 +1,37 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<ULabel :
|
|
2
|
+
<ULabel :label="label" :align="labelAlign" :error="error" :size="size" v-bind="labelAttrs">
|
|
3
3
|
<div ref="dropZoneRef" :ondrop="onDrop" v-bind="dropzoneWrapperAttrs">
|
|
4
|
-
<UText :size="nestedComponentSize" v-bind="descriptionAttrs"
|
|
4
|
+
<UText :size="nestedComponentSize" :html="description" v-bind="descriptionAttrs" />
|
|
5
5
|
|
|
6
6
|
<div v-bind="contentWrapperAttrs">
|
|
7
|
+
<!-- @slot Use it to add something before placeholder. -->
|
|
7
8
|
<slot name="left" />
|
|
9
|
+
|
|
8
10
|
<span v-if="!isValue" v-bind="placeholderAttrs" v-text="currentLocale.noFile" />
|
|
11
|
+
|
|
9
12
|
<div v-else v-bind="fileListAttrs">
|
|
10
13
|
<template v-if="props.multiple">
|
|
11
14
|
<span
|
|
12
15
|
v-for="(file, idx) in currentFiles"
|
|
13
|
-
v-bind="selectedItemAttrs"
|
|
14
16
|
:key="idx"
|
|
17
|
+
v-bind="selectedItemAttrs"
|
|
15
18
|
v-text="file.name"
|
|
16
19
|
/>
|
|
17
20
|
</template>
|
|
21
|
+
|
|
18
22
|
<span v-else v-bind="selectedItemAttrs" v-text="currentFiles.name" />
|
|
19
23
|
</div>
|
|
20
24
|
|
|
21
25
|
<div v-bind="buttonWrapperAttrs">
|
|
22
26
|
<template v-if="Array.isArray(currentFiles) || !currentFiles">
|
|
23
27
|
<UButton
|
|
24
|
-
class="hover:cursor-pointer"
|
|
25
|
-
:label="currentLocale.uploadFile"
|
|
26
|
-
variant="thirdary"
|
|
27
28
|
filled
|
|
28
|
-
:size="nestedComponentSize"
|
|
29
|
-
v-bind="buttonAttrs"
|
|
30
29
|
tag="label"
|
|
31
30
|
:for="id"
|
|
31
|
+
variant="thirdary"
|
|
32
|
+
:size="nestedComponentSize"
|
|
33
|
+
:label="currentLocale.uploadFile"
|
|
34
|
+
v-bind="buttonAttrs"
|
|
32
35
|
>
|
|
33
36
|
<template #right>
|
|
34
37
|
<UIcon
|
|
@@ -43,20 +46,21 @@
|
|
|
43
46
|
<input
|
|
44
47
|
:id="id"
|
|
45
48
|
ref="fileInputRef"
|
|
46
|
-
:multiple="multiple"
|
|
47
49
|
type="file"
|
|
48
50
|
:accept="accept"
|
|
51
|
+
:multiple="multiple"
|
|
49
52
|
v-bind="inputAttrs"
|
|
50
53
|
@change="onChangeFile"
|
|
51
54
|
/>
|
|
52
55
|
</template>
|
|
56
|
+
|
|
53
57
|
<UIcon
|
|
54
58
|
v-if="isValue"
|
|
55
|
-
|
|
59
|
+
pill
|
|
56
60
|
internal
|
|
61
|
+
interactive
|
|
57
62
|
:size="nestedComponentSize"
|
|
58
63
|
:name="config.clearIconName"
|
|
59
|
-
pill
|
|
60
64
|
v-bind="clearIconAttrs"
|
|
61
65
|
@click="onClickResetFiles"
|
|
62
66
|
/>
|
|
@@ -6,7 +6,7 @@ import { useLoaderRendering } from "./composables/useLoaderRendering";
|
|
|
6
6
|
import { getArgTypes } from "../service.storybook";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
id: "
|
|
9
|
+
id: "9030",
|
|
10
10
|
title: "Loaders and Skeletons / Loader rendering",
|
|
11
11
|
component: ULoaderRendering,
|
|
12
12
|
argTypes: {
|
|
@@ -21,7 +21,7 @@ const DefaultTemplate = (args) => ({
|
|
|
21
21
|
},
|
|
22
22
|
template: `
|
|
23
23
|
<div>
|
|
24
|
-
|
|
24
|
+
<ULoaderRendering v-bind="args" class="!static !w-full" />
|
|
25
25
|
</div>
|
|
26
26
|
`,
|
|
27
27
|
});
|
|
@@ -43,7 +43,7 @@ const LoadingTemplate = (args) => ({
|
|
|
43
43
|
<UButton label="Toggle loading" @click="toggleLoading"/>
|
|
44
44
|
</div>
|
|
45
45
|
<div>
|
|
46
|
-
|
|
46
|
+
<ULoaderRendering v-bind="args" class="!static !w-full" />
|
|
47
47
|
</div>
|
|
48
48
|
`,
|
|
49
49
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import ULoaderTop from "../ui.loader-top";
|
|
2
2
|
import UButton from "../ui.button";
|
|
3
3
|
|
|
4
|
-
import { useLoaderTop } from "
|
|
5
|
-
import { loaderTopOff, loaderTopOn } from "
|
|
4
|
+
import { useLoaderTop } from "./composables/useLoaderTop";
|
|
5
|
+
import { loaderTopOff, loaderTopOn } from "./services/loaderTop.service";
|
|
6
6
|
|
|
7
7
|
import { getArgTypes } from "../service.storybook";
|
|
8
8
|
|
|
9
9
|
export default {
|
|
10
|
-
id: "
|
|
10
|
+
id: "9020",
|
|
11
11
|
title: "Loaders and Skeletons / Loader top",
|
|
12
12
|
component: ULoaderTop,
|
|
13
13
|
argTypes: {
|
|
@@ -4,8 +4,8 @@ import UButton from "../ui.button/index.vue";
|
|
|
4
4
|
import { getArgTypes } from "../service.storybook";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
id: "
|
|
8
|
-
title: "
|
|
7
|
+
id: "8040",
|
|
8
|
+
title: "Navigation / Progress",
|
|
9
9
|
component: UProgress,
|
|
10
10
|
argTypes: {
|
|
11
11
|
...getArgTypes(UProgress.name),
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { notify } from "
|
|
1
|
+
import { notify } from "./services";
|
|
2
2
|
|
|
3
|
-
import UNotify from "../ui.notify";
|
|
3
|
+
import UNotify from "../ui.text-notify";
|
|
4
4
|
import UButton from "../ui.button";
|
|
5
5
|
|
|
6
6
|
import { getArgTypes } from "../service.storybook";
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
|
-
|
|
9
|
+
id: "4035",
|
|
10
|
+
title: "Text & Content / Notify",
|
|
10
11
|
component: UNotify,
|
|
11
12
|
args: {
|
|
12
13
|
type: "success",
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.107",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -3550,7 +3550,8 @@
|
|
|
3550
3550
|
],
|
|
3551
3551
|
"slots": [
|
|
3552
3552
|
{
|
|
3553
|
-
"name": "left"
|
|
3553
|
+
"name": "left",
|
|
3554
|
+
"description": "Use it to add something before placeholder."
|
|
3554
3555
|
}
|
|
3555
3556
|
],
|
|
3556
3557
|
"source": {
|
|
@@ -5128,7 +5129,7 @@
|
|
|
5128
5129
|
}
|
|
5129
5130
|
],
|
|
5130
5131
|
"source": {
|
|
5131
|
-
"module": "vueless/ui.notify/index.vue",
|
|
5132
|
+
"module": "vueless/ui.text-notify/index.vue",
|
|
5132
5133
|
"symbol": "default"
|
|
5133
5134
|
}
|
|
5134
5135
|
},
|
|
@@ -5472,7 +5473,7 @@
|
|
|
5472
5473
|
}
|
|
5473
5474
|
],
|
|
5474
5475
|
"source": {
|
|
5475
|
-
"module": "vueless/ui.progress/index.vue",
|
|
5476
|
+
"module": "vueless/ui.navigation-progress/index.vue",
|
|
5476
5477
|
"symbol": "default"
|
|
5477
5478
|
}
|
|
5478
5479
|
},
|
|
@@ -6952,44 +6953,44 @@
|
|
|
6952
6953
|
"description": "",
|
|
6953
6954
|
"attributes": [
|
|
6954
6955
|
{
|
|
6955
|
-
"name": "
|
|
6956
|
-
"
|
|
6957
|
-
"description": "Set buttons name.",
|
|
6956
|
+
"name": "modelValue",
|
|
6957
|
+
"description": "Selected value.",
|
|
6958
6958
|
"value": {
|
|
6959
6959
|
"kind": "expression",
|
|
6960
|
-
"type": "string"
|
|
6961
|
-
}
|
|
6960
|
+
"type": "string|number|array"
|
|
6961
|
+
},
|
|
6962
|
+
"default": "() => (!this.multiple ? \"\" : [])"
|
|
6962
6963
|
},
|
|
6963
6964
|
{
|
|
6964
|
-
"name": "
|
|
6965
|
-
"description": "
|
|
6965
|
+
"name": "variant",
|
|
6966
|
+
"description": "Toggle variants.",
|
|
6966
6967
|
"value": {
|
|
6967
6968
|
"kind": "expression",
|
|
6968
|
-
"type": "
|
|
6969
|
+
"type": "'primary' | 'secondary' | 'thirdary'"
|
|
6969
6970
|
},
|
|
6970
|
-
"default": "
|
|
6971
|
+
"default": "primary"
|
|
6971
6972
|
},
|
|
6972
6973
|
{
|
|
6973
|
-
"name": "
|
|
6974
|
-
"description": "
|
|
6974
|
+
"name": "options",
|
|
6975
|
+
"description": "Toggle item options.",
|
|
6975
6976
|
"value": {
|
|
6976
6977
|
"kind": "expression",
|
|
6977
|
-
"type": "
|
|
6978
|
+
"type": "array"
|
|
6978
6979
|
},
|
|
6979
|
-
"default": "
|
|
6980
|
+
"default": "[]"
|
|
6980
6981
|
},
|
|
6981
6982
|
{
|
|
6982
|
-
"name": "
|
|
6983
|
-
"
|
|
6983
|
+
"name": "name",
|
|
6984
|
+
"required": true,
|
|
6985
|
+
"description": "Toggle name.",
|
|
6984
6986
|
"value": {
|
|
6985
6987
|
"kind": "expression",
|
|
6986
|
-
"type": "
|
|
6987
|
-
}
|
|
6988
|
-
"default": "false"
|
|
6988
|
+
"type": "string"
|
|
6989
|
+
}
|
|
6989
6990
|
},
|
|
6990
6991
|
{
|
|
6991
6992
|
"name": "size",
|
|
6992
|
-
"description": "
|
|
6993
|
+
"description": "Toggle size.",
|
|
6993
6994
|
"value": {
|
|
6994
6995
|
"kind": "expression",
|
|
6995
6996
|
"type": "'xs' | 'sm' | 'md' | 'lg'"
|
|
@@ -7005,6 +7006,15 @@
|
|
|
7005
7006
|
},
|
|
7006
7007
|
"default": "false"
|
|
7007
7008
|
},
|
|
7009
|
+
{
|
|
7010
|
+
"name": "multiple",
|
|
7011
|
+
"description": "Allow selecting a few options and return them as an array.",
|
|
7012
|
+
"value": {
|
|
7013
|
+
"kind": "expression",
|
|
7014
|
+
"type": "boolean"
|
|
7015
|
+
},
|
|
7016
|
+
"default": "false"
|
|
7017
|
+
},
|
|
7008
7018
|
{
|
|
7009
7019
|
"name": "dataCy",
|
|
7010
7020
|
"description": "Sets data-cy attribute for automated testing.",
|
|
@@ -7022,7 +7032,8 @@
|
|
|
7022
7032
|
],
|
|
7023
7033
|
"slots": [
|
|
7024
7034
|
{
|
|
7025
|
-
"name": "default"
|
|
7035
|
+
"name": "default",
|
|
7036
|
+
"description": "Use it to add UToggleItem directly."
|
|
7026
7037
|
}
|
|
7027
7038
|
],
|
|
7028
7039
|
"source": {
|
|
@@ -7036,7 +7047,7 @@
|
|
|
7036
7047
|
"attributes": [
|
|
7037
7048
|
{
|
|
7038
7049
|
"name": "modelValue",
|
|
7039
|
-
"description": "
|
|
7050
|
+
"description": "Selected value.",
|
|
7040
7051
|
"value": {
|
|
7041
7052
|
"kind": "expression",
|
|
7042
7053
|
"type": "string|number|array"
|
|
@@ -7045,7 +7056,7 @@
|
|
|
7045
7056
|
},
|
|
7046
7057
|
{
|
|
7047
7058
|
"name": "value",
|
|
7048
|
-
"description": "
|
|
7059
|
+
"description": "Value for checkbox state.",
|
|
7049
7060
|
"value": {
|
|
7050
7061
|
"kind": "expression",
|
|
7051
7062
|
"type": "string|number"
|
|
@@ -7054,7 +7065,7 @@
|
|
|
7054
7065
|
},
|
|
7055
7066
|
{
|
|
7056
7067
|
"name": "label",
|
|
7057
|
-
"description": "
|
|
7068
|
+
"description": "Toggle item label.",
|
|
7058
7069
|
"value": {
|
|
7059
7070
|
"kind": "expression",
|
|
7060
7071
|
"type": "string"
|
|
@@ -7063,22 +7074,13 @@
|
|
|
7063
7074
|
},
|
|
7064
7075
|
{
|
|
7065
7076
|
"name": "disabled",
|
|
7066
|
-
"description": "Make item disabled.",
|
|
7077
|
+
"description": "Make toggle item disabled.",
|
|
7067
7078
|
"value": {
|
|
7068
7079
|
"kind": "expression",
|
|
7069
7080
|
"type": "boolean"
|
|
7070
7081
|
},
|
|
7071
7082
|
"default": "false"
|
|
7072
7083
|
},
|
|
7073
|
-
{
|
|
7074
|
-
"name": "variant",
|
|
7075
|
-
"description": "The variant of the button.",
|
|
7076
|
-
"value": {
|
|
7077
|
-
"kind": "expression",
|
|
7078
|
-
"type": "'primary' | 'secondary' | 'thirdary'"
|
|
7079
|
-
},
|
|
7080
|
-
"default": "primary"
|
|
7081
|
-
},
|
|
7082
7084
|
{
|
|
7083
7085
|
"name": "id",
|
|
7084
7086
|
"description": "@ignore: Generates unique element id.",
|
|
@@ -7090,7 +7092,7 @@
|
|
|
7090
7092
|
},
|
|
7091
7093
|
{
|
|
7092
7094
|
"name": "config",
|
|
7093
|
-
"description": "
|
|
7095
|
+
"description": "Component ui config object.",
|
|
7094
7096
|
"value": {
|
|
7095
7097
|
"kind": "expression",
|
|
7096
7098
|
"type": "object"
|
|
@@ -7099,7 +7101,7 @@
|
|
|
7099
7101
|
},
|
|
7100
7102
|
{
|
|
7101
7103
|
"name": "dataCy",
|
|
7102
|
-
"description": "
|
|
7104
|
+
"description": "Data-cy attribute for automated testing.",
|
|
7103
7105
|
"value": {
|
|
7104
7106
|
"kind": "expression",
|
|
7105
7107
|
"type": "string"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|