vueless 0.0.106 → 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/index.vue +1 -0
- 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 +7 -5
- /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,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
|
},
|
|
@@ -7031,7 +7032,8 @@
|
|
|
7031
7032
|
],
|
|
7032
7033
|
"slots": [
|
|
7033
7034
|
{
|
|
7034
|
-
"name": "default"
|
|
7035
|
+
"name": "default",
|
|
7036
|
+
"description": "Use it to add UToggleItem directly."
|
|
7035
7037
|
}
|
|
7036
7038
|
],
|
|
7037
7039
|
"source": {
|
|
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
|