@vue-interface/btn-activity 0.9.9 → 1.0.0
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/btn-activity.css +1 -0
- package/dist/btn-activity.es.js +528 -0
- package/dist/btn-activity.umd.js +2 -0
- package/index.js +5 -2
- package/package.json +28 -33
- package/src/BtnActivity.vue +4 -12
- package/.eslintrc.js +0 -53
- package/babel.config.js +0 -5
- package/dist/BtnActivity.common.js +0 -8819
- package/dist/BtnActivity.common.js.map +0 -1
- package/dist/BtnActivity.css +0 -1
- package/dist/BtnActivity.umd.js +0 -8829
- package/dist/BtnActivity.umd.js.map +0 -1
- package/dist/BtnActivity.umd.min.js +0 -2
- package/dist/BtnActivity.umd.min.js.map +0 -1
- package/dist/demo.html +0 -19
- package/docs/.vuepress/config.js +0 -44
- package/docs/.vuepress/dist/404.html +0 -19
- package/docs/.vuepress/dist/assets/css/0.styles.275ee968.css +0 -1
- package/docs/.vuepress/dist/assets/img/search.83621669.svg +0 -1
- package/docs/.vuepress/dist/assets/js/10.5d93d289.js +0 -1
- package/docs/.vuepress/dist/assets/js/11.97ab3884.js +0 -1
- package/docs/.vuepress/dist/assets/js/2.f3d148c3.js +0 -1
- package/docs/.vuepress/dist/assets/js/3.81681fff.js +0 -1
- package/docs/.vuepress/dist/assets/js/4.82fa7382.js +0 -1
- package/docs/.vuepress/dist/assets/js/5.3dae6ad4.js +0 -1
- package/docs/.vuepress/dist/assets/js/6.6a04f815.js +0 -1
- package/docs/.vuepress/dist/assets/js/7.c033cb49.js +0 -1
- package/docs/.vuepress/dist/assets/js/8.6d6eb599.js +0 -1
- package/docs/.vuepress/dist/assets/js/9.eaefe866.js +0 -1
- package/docs/.vuepress/dist/assets/js/app.7ed065d3.js +0 -13
- package/docs/.vuepress/dist/examples/index.html +0 -21
- package/docs/.vuepress/dist/examples/test.html +0 -17
- package/docs/.vuepress/dist/index.html +0 -53
- package/docs/.vuepress/dist/options.html +0 -41
- package/docs/.vuepress/dist/tailwindcss.html +0 -85
- package/docs/README.md +0 -17
- package/docs/examples/README.md +0 -3
- package/docs/options.md +0 -44
- package/index.html +0 -177
- package/main.vue +0 -5
- package/postcss.config.js +0 -1
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -17
- package/src/css/BtnActivity.css +0 -1
- package/tailwind.config.js +0 -19
- package/vue.config.js +0 -12
package/package.json
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-interface/btn-activity",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A Vue activity button component.",
|
|
5
|
-
"
|
|
5
|
+
"files": [
|
|
6
|
+
"index.js",
|
|
7
|
+
"dist",
|
|
8
|
+
"src"
|
|
9
|
+
],
|
|
10
|
+
"main": "./dist/activity-indicator.umd.js",
|
|
11
|
+
"module": "./index.js",
|
|
12
|
+
"browserslist": "last 2 versions, > 0.5%, ie >= 11",
|
|
6
13
|
"scripts": {
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"lint": "vue-cli-service lint",
|
|
11
|
-
"fix": "vue-cli-service lint --fix",
|
|
14
|
+
"dev": "vite",
|
|
15
|
+
"build": "vite build",
|
|
16
|
+
"preview": "vite preview",
|
|
12
17
|
"pre-release": "npm run build; git add . -A; git commit -m 'pre-release commit'",
|
|
13
18
|
"release-patch": "npm run pre-release && npm version patch -m \"%s\" && npm run release;",
|
|
14
19
|
"release-minor": "npm run pre-release && npm version minor -m \"%s\" && npm run release;",
|
|
15
20
|
"release-major": "npm run pre-release && npm version major -m \"%s\" && npm run release;",
|
|
16
|
-
"release": "git add . -A; git commit; git push --tags origin; npm publish;"
|
|
17
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
18
|
-
"docs:dev": "./node_modules/.bin/vuepress dev docs",
|
|
19
|
-
"docs:build": "./node_modules/.bin/vuepress build docs"
|
|
21
|
+
"release": "git add . -A; git commit; git push --tags origin; npm publish;"
|
|
20
22
|
},
|
|
21
23
|
"repository": {
|
|
22
24
|
"type": "git",
|
|
@@ -37,29 +39,22 @@
|
|
|
37
39
|
},
|
|
38
40
|
"homepage": "https://github.com/vue-interface/btn-activity/docs#readme",
|
|
39
41
|
"dependencies": {
|
|
40
|
-
"@vue-interface/activity-indicator": "^0.
|
|
41
|
-
"@vue-interface/btn": "^0.
|
|
42
|
-
"
|
|
43
|
-
"core-js": "^3.6.4",
|
|
44
|
-
"tailwindcss": "^1.8.12",
|
|
45
|
-
"vue": "^2.6.12"
|
|
42
|
+
"@vue-interface/activity-indicator": "^1.0.4",
|
|
43
|
+
"@vue-interface/btn": "^1.0.6",
|
|
44
|
+
"vue": "^2.6.14"
|
|
46
45
|
},
|
|
47
46
|
"devDependencies": {
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"@vuepress/plugin-register-components": "^1.6.0",
|
|
47
|
+
"@rollup/plugin-babel": "^5.3.0",
|
|
48
|
+
"autoprefixer": "^10.4.2",
|
|
51
49
|
"babel-eslint": "^10.1.0",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"last 2 versions",
|
|
63
|
-
"not dead"
|
|
64
|
-
]
|
|
50
|
+
"babel-preset-vue": "^2.0.2",
|
|
51
|
+
"change-case": "^4.1.2",
|
|
52
|
+
"eslint": "^6.7.2",
|
|
53
|
+
"eslint-plugin-vue": "^6.2.2",
|
|
54
|
+
"pascalcase": "^2.0.0",
|
|
55
|
+
"postcss": "^8.4.6",
|
|
56
|
+
"tailwindcss": "^3.0.18",
|
|
57
|
+
"vite": "^2.7.2",
|
|
58
|
+
"vite-plugin-vue2": "^1.9.3"
|
|
59
|
+
}
|
|
65
60
|
}
|
package/src/BtnActivity.vue
CHANGED
|
@@ -7,19 +7,11 @@
|
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script>
|
|
10
|
-
import {
|
|
11
|
-
import { ActivityIndicator, register } from '@vue-interface/activity-indicator';
|
|
12
|
-
import Dots from '@vue-interface/activity-indicator/src/types/Dots';
|
|
13
|
-
import Spinner from '@vue-interface/activity-indicator/src/types/Spinner';
|
|
14
|
-
|
|
15
|
-
register({
|
|
16
|
-
dots: Dots,
|
|
17
|
-
spinner: Spinner
|
|
18
|
-
});
|
|
10
|
+
import { ActivityIndicator } from '@vue-interface/activity-indicator';
|
|
19
11
|
|
|
20
12
|
const convertAnimationDelayToInt = function(delay) {
|
|
21
|
-
const num = parseFloat(delay, 10);
|
|
22
|
-
const matches = delay.match(/m?s/);
|
|
13
|
+
const num = parseFloat(delay || 0, 10);
|
|
14
|
+
const matches = delay && delay.match(/m?s/);
|
|
23
15
|
const unit = matches ? matches[0] : false;
|
|
24
16
|
|
|
25
17
|
let milliseconds;
|
|
@@ -172,7 +164,7 @@ export default {
|
|
|
172
164
|
indicatorProps() {
|
|
173
165
|
return Object.assign({
|
|
174
166
|
type: 'spinner'
|
|
175
|
-
}, (
|
|
167
|
+
}, (typeof this.indicator === 'string' ? {
|
|
176
168
|
type: this.indicator
|
|
177
169
|
} : this.indicator) || {});
|
|
178
170
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extends: [
|
|
3
|
-
'plugin:vue/recommended'
|
|
4
|
-
],
|
|
5
|
-
parserOptions: {
|
|
6
|
-
'parser': 'babel-eslint'
|
|
7
|
-
},
|
|
8
|
-
// add your custom rules here
|
|
9
|
-
rules: {
|
|
10
|
-
'vue/no-v-html': 0,
|
|
11
|
-
'vue/require-default-prop': 0,
|
|
12
|
-
"vue/max-attributes-per-line": ["error", {
|
|
13
|
-
"singleline": 5,
|
|
14
|
-
"multiline": {
|
|
15
|
-
"max": 1,
|
|
16
|
-
"allowFirstLine": true
|
|
17
|
-
}
|
|
18
|
-
}],
|
|
19
|
-
"vue/html-indent": ["error", 4, {
|
|
20
|
-
"attribute": 1,
|
|
21
|
-
"baseIndent": 1,
|
|
22
|
-
"closeBracket": 1,
|
|
23
|
-
"alignAttributesVertically": false,
|
|
24
|
-
"ignores": []
|
|
25
|
-
}],
|
|
26
|
-
"vue/html-closing-bracket-newline": ["error", {
|
|
27
|
-
"singleline": "never",
|
|
28
|
-
"multiline": "never"
|
|
29
|
-
}],
|
|
30
|
-
// Ensure no space after keywords like if.
|
|
31
|
-
'keyword-spacing': ["error", {
|
|
32
|
-
"overrides": {
|
|
33
|
-
"if": { "after": false },
|
|
34
|
-
"for": { "after": false },
|
|
35
|
-
"while": { "after": false }
|
|
36
|
-
}
|
|
37
|
-
}],
|
|
38
|
-
// Use alternative brace style
|
|
39
|
-
'brace-style': ['error', 'stroustrup'],
|
|
40
|
-
// No spaces before parens
|
|
41
|
-
'space-before-function-paren': ['error', 'never'],
|
|
42
|
-
// Indent for tabs because spaces suck
|
|
43
|
-
'indent': ['error', 4],
|
|
44
|
-
// Semi colons always where they need to be
|
|
45
|
-
'semi': [2,'always'],
|
|
46
|
-
// allow paren-less arrow functions
|
|
47
|
-
'arrow-parens': 0,
|
|
48
|
-
// allow async-await
|
|
49
|
-
'generator-star-spacing': 0,
|
|
50
|
-
// allow debugger during development
|
|
51
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0
|
|
52
|
-
}
|
|
53
|
-
};
|