renusify 2.5.2 → 3.0.1
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/components/app/index.vue +74 -22
- package/components/app/toast/index.vue +76 -71
- package/components/app/toast/toast.vue +62 -44
- package/components/avatar/index.vue +207 -84
- package/components/button/buttonConfirm.vue +53 -26
- package/components/button/buttonGroup.js +0 -2
- package/components/button/buttonGroup.vue +310 -62
- package/components/button/index.vue +584 -100
- package/components/calendar/index.js +0 -2
- package/components/calendar/index.vue +326 -262
- package/components/calendar/month.vue +64 -55
- package/components/calendar/year.vue +30 -25
- package/components/card/index.vue +139 -59
- package/components/codeEditor/highlightCss.vue +38 -39
- package/components/codeEditor/highlightHtml.vue +64 -64
- package/components/codeEditor/highlightJs.vue +37 -38
- package/components/codeEditor/index.vue +129 -79
- package/components/codeEditor/run.vue +225 -39
- package/components/codeEditor/useCodeFormatter.js +150 -0
- package/components/confirm/index.vue +139 -80
- package/components/container/col.vue +5 -4
- package/components/container/divider.vue +28 -19
- package/components/container/index.vue +34 -15
- package/components/container/row.vue +26 -9
- package/components/container/spacer.vue +2 -4
- package/components/container/style.scss +3 -0
- package/components/content/index.vue +49 -32
- package/components/cropper/index.vue +401 -244
- package/components/float/index.vue +542 -415
- package/components/form/addressInput/index.vue +184 -109
- package/components/form/camInput/index.vue +370 -244
- package/components/form/checkInput/index.vue +138 -71
- package/components/form/checkboxInput/index.vue +93 -49
- package/components/form/colorInput/Alpha.vue +81 -83
- package/components/form/colorInput/Hue.vue +91 -68
- package/components/form/colorInput/Preview.vue +43 -47
- package/components/form/colorInput/Saturation.vue +101 -86
- package/components/form/colorInput/index.vue +71 -39
- package/components/form/colorInput/picker.vue +111 -106
- package/components/form/colorInput/useColor.js +153 -0
- package/components/form/dateInput/index.vue +691 -356
- package/components/form/dateInput/month.vue +63 -54
- package/components/form/dateInput/year.vue +35 -25
- package/components/form/fileInput/index.js +0 -1
- package/components/form/fileInput/index.vue +263 -106
- package/components/form/fileInput/single.vue +332 -168
- package/components/form/groupInput/index.vue +199 -101
- package/components/form/index.vue +189 -83
- package/components/form/input/index.vue +416 -377
- package/components/form/jsonInput/JsonView.vue +54 -56
- package/components/form/jsonInput/index.vue +247 -165
- package/components/form/maskInput/index.vue +252 -132
- package/components/form/numberInput/index.js +0 -1
- package/components/form/numberInput/index.vue +226 -117
- package/components/form/passwordInput/index.js +2 -1
- package/components/form/passwordInput/index.vue +269 -102
- package/components/form/radioInput/index.vue +143 -72
- package/components/form/rangeInput/index.vue +280 -167
- package/components/form/ratingInput/index.vue +57 -57
- package/components/form/selectInput/index.js +1 -3
- package/components/form/selectInput/index.vue +584 -296
- package/components/form/switchInput/index.vue +73 -59
- package/components/form/telInput/index.js +0 -1
- package/components/form/telInput/index.vue +238 -135
- package/components/form/textArea/index.vue +72 -35
- package/components/form/textEditor/index.vue +739 -0
- package/components/form/{text-editor → textEditor}/style.scss +8 -16
- package/components/form/textInput/index.vue +54 -32
- package/components/form/timeInput/index.vue +82 -55
- package/components/form/timeInput/range.vue +115 -94
- package/components/form/timeInput/timepicker.vue +382 -449
- package/components/form/uniqueInput/index.vue +105 -48
- package/components/form/unitInput/index.vue +139 -84
- package/components/formCreator/index.js +0 -1
- package/components/formCreator/index.vue +314 -148
- package/components/highlight/index.vue +41 -25
- package/components/highlight/style.scss +2 -2
- package/components/highlight/{mixin.js → useHighlight.js} +181 -160
- package/components/icon/index.vue +79 -33
- package/components/img/index.vue +250 -147
- package/components/img/preview.vue +180 -198
- package/components/img/svgImg.vue +42 -39
- package/components/index.js +5 -20
- package/components/infinite/index.js +3 -3
- package/components/infinite/index.vue +290 -66
- package/components/map/index.vue +428 -261
- package/components/map/route.vue +794 -487
- package/components/map/select.vue +118 -58
- package/components/menu/index.vue +206 -94
- package/components/meta/meta.js +26 -3
- package/components/modal/index.vue +382 -156
- package/components/notify/index.vue +204 -86
- package/components/notify/notification.vue +38 -55
- package/components/progress/circle.vue +189 -70
- package/components/progress/line.vue +266 -46
- package/components/searchBox/index.js +1 -3
- package/components/searchBox/index.vue +194 -101
- package/components/skeleton/index.vue +45 -20
- package/components/slider/index.vue +319 -156
- package/components/swiper/index.vue +237 -108
- package/components/table/crud/footer.vue +77 -53
- package/components/table/crud/header.vue +71 -72
- package/components/table/crud/index.vue +629 -399
- package/components/table/index.vue +721 -278
- package/components/timeAgo/index.vue +145 -96
- package/components/tour/index.vue +338 -235
- package/components/tree/index.vue +235 -89
- package/components/tree/tree-element.vue +106 -106
- package/directive/animate/index.js +77 -0
- package/directive/clickOutSide/index.js +98 -0
- package/directive/drag/index.js +153 -0
- package/directive/index.js +11 -13
- package/directive/intersect/index.js +263 -0
- package/directive/mask/index.js +67 -0
- package/directive/parallax/index.js +78 -0
- package/directive/ripple/index.js +14 -0
- package/directive/scroll/index.js +272 -24
- package/directive/sortable/index.js +274 -0
- package/directive/title/index.js +75 -0
- package/directive/touch/index.js +268 -0
- package/index.js +11 -19
- package/package.json +5 -2
- package/plugins/validation/Validate.js +88 -79
- package/scripts/generate-docs.mjs +226 -0
- package/scripts/menu.mjs +240 -0
- package/scripts/parser.mjs +1086 -0
- package/style/_index.scss +7 -0
- package/style/app.scss +13 -65
- package/style/colors.scss +5 -22
- package/style/functions/index.scss +8 -0
- package/style/mixins/index.scss +17 -5
- package/style/variables/base.scss +155 -178
- package/style/variables/color.scss +0 -12
- package/style/variables/utilities.scss +0 -180
- package/tools/helper.js +0 -8
- package/tools/icons.js +7 -2
- package/tools/root.js +71 -0
- package/components/app/style.scss +0 -41
- package/components/app/toast/style.scss +0 -20
- package/components/avatar/style.scss +0 -32
- package/components/bar/bottomNav.js +0 -1
- package/components/bar/bottomNav.vue +0 -28
- package/components/bar/bottomNavigationCircle.js +0 -2
- package/components/bar/bottomNavigationCircle.vue +0 -99
- package/components/bar/scss/bottomNav.scss +0 -67
- package/components/bar/scss/toolbar.scss +0 -174
- package/components/bar/toolbar/index.js +0 -8
- package/components/bar/toolbar/index.vue +0 -35
- package/components/bar/toolbar/laptop.vue +0 -33
- package/components/bar/toolbar/menuChilds.vue +0 -41
- package/components/bar/toolbar/menuLaptop.vue +0 -41
- package/components/bar/toolbar/menuMob.vue +0 -39
- package/components/bar/toolbar/mixin.js +0 -43
- package/components/bar/toolbar/mobile.vue +0 -34
- package/components/breadcrumb/bredcrumbItem.vue +0 -39
- package/components/breadcrumb/index.js +0 -3
- package/components/breadcrumb/index.vue +0 -71
- package/components/breadcrumb/style.scss +0 -51
- package/components/button/style.scss +0 -411
- package/components/card/style.scss +0 -86
- package/components/chart/chart.js +0 -1
- package/components/chart/chart.vue +0 -69
- package/components/chart/worldMap.js +0 -2
- package/components/chart/worldMap.vue +0 -1112
- package/components/chat/MessageList.vue +0 -163
- package/components/chat/chatInput.vue +0 -150
- package/components/chat/chatMsg.vue +0 -276
- package/components/chat/index.js +0 -11
- package/components/chat/index.vue +0 -113
- package/components/chip/index.js +0 -3
- package/components/chip/index.vue +0 -77
- package/components/chip/style.scss +0 -199
- package/components/codeEditor/mixin.js +0 -145
- package/components/countdown/index.js +0 -1
- package/components/countdown/index.vue +0 -105
- package/components/form/colorInput/mixin.js +0 -132
- package/components/form/fileInput/file.js +0 -148
- package/components/form/telInput/assets/flags.png +0 -0
- package/components/form/telInput/assets/flags@2x.png +0 -0
- package/components/form/text-editor/index.vue +0 -705
- package/components/icon/style.scss +0 -17
- package/components/infinite/div.js +0 -6
- package/components/infinite/div.vue +0 -193
- package/components/infinite/page.js +0 -3
- package/components/infinite/page.vue +0 -105
- package/components/list/index.js +0 -3
- package/components/list/index.vue +0 -122
- package/components/list/style.scss +0 -66
- package/components/message/index.js +0 -4
- package/components/message/index.vue +0 -40
- package/components/modal/style.scss +0 -146
- package/components/nestable/NestableItem.vue +0 -307
- package/components/nestable/editable.js +0 -44
- package/components/nestable/index.js +0 -1
- package/components/nestable/index.vue +0 -226
- package/components/nestable/methods.js +0 -416
- package/components/progress/style.scss +0 -229
- package/components/table/style.scss +0 -338
- package/components/tabs/index.js +0 -3
- package/components/tabs/index.vue +0 -151
- package/components/timeline/index.js +0 -6
- package/components/timeline/index.vue +0 -76
- package/directive/resize/index.js +0 -30
- package/directive/skeleton/index.js +0 -27
- package/directive/skeleton/style.scss +0 -37
- package/plugins/request/Request.js +0 -68
- package/style/animation.scss +0 -94
- package/style/style.scss +0 -8
- package/tools/rootable.js +0 -75
- /package/components/form/{text-editor → textEditor}/index.js +0 -0
- /package/components/form/{text-editor → textEditor}/preview.js +0 -0
- /package/components/form/{text-editor → textEditor}/preview.vue +0 -0
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
//todo complete
|
|
2
|
-
class Request {
|
|
3
|
-
constructor() {
|
|
4
|
-
this._baseURL = '/';
|
|
5
|
-
this._headers={
|
|
6
|
-
common:{
|
|
7
|
-
'Accept': '*/*',
|
|
8
|
-
'X-Requested-With': 'XMLHttpRequest'
|
|
9
|
-
},
|
|
10
|
-
get:{
|
|
11
|
-
'Content-Type':'application/x-www-form-urlencoded;charset=utf-8'
|
|
12
|
-
},
|
|
13
|
-
delete:{
|
|
14
|
-
'Content-Type':'application/x-www-form-urlencoded;charset=utf-8'
|
|
15
|
-
},
|
|
16
|
-
head:{
|
|
17
|
-
'Content-Type':'application/x-www-form-urlencoded;charset=utf-8'
|
|
18
|
-
},
|
|
19
|
-
post:{'Content-Type':'application/x-www-form-urlencoded'},
|
|
20
|
-
put:{'Content-Type':'application/x-www-form-urlencoded'},
|
|
21
|
-
patch:{'Content-Type':'application/x-www-form-urlencoded'}
|
|
22
|
-
}
|
|
23
|
-
this._before=null
|
|
24
|
-
this._after=null
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
make(opts) {
|
|
28
|
-
return new Promise(function (resolve, reject) {
|
|
29
|
-
let xhr = new XMLHttpRequest();
|
|
30
|
-
xhr.open(opts.method, opts.url);
|
|
31
|
-
xhr.responseType = opts.responseType || "text";
|
|
32
|
-
xhr.onload = function () {
|
|
33
|
-
if (xhr.status >= 200 && xhr.status < 300) {
|
|
34
|
-
resolve(xhr.response);
|
|
35
|
-
} else {
|
|
36
|
-
reject({
|
|
37
|
-
status: xhr.status,
|
|
38
|
-
statusText: xhr.statusText
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
xhr.onerror = function () {
|
|
43
|
-
reject({
|
|
44
|
-
status: xhr.status,
|
|
45
|
-
statusText: xhr.statusText
|
|
46
|
-
});
|
|
47
|
-
};
|
|
48
|
-
if (opts.headers) {
|
|
49
|
-
Object.keys(opts.headers).forEach(function (key) {
|
|
50
|
-
xhr.setRequestHeader(key, opts.headers[key]);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
let params = opts.params;
|
|
54
|
-
// We'll need to stringify if we've been given an object
|
|
55
|
-
// If we have a string, this is skipped.
|
|
56
|
-
if (params && typeof params === "object") {
|
|
57
|
-
params = Object.keys(params)
|
|
58
|
-
.map(function (key) {
|
|
59
|
-
return (
|
|
60
|
-
encodeURIComponent(key) + "=" + encodeURIComponent(params[key])
|
|
61
|
-
);
|
|
62
|
-
})
|
|
63
|
-
.join("&");
|
|
64
|
-
}
|
|
65
|
-
xhr.send(params);
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
package/style/animation.scss
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
.animation-shake-1 {
|
|
2
|
-
animation: shake-1 0.9s;
|
|
3
|
-
animation-iteration-count: infinite;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@keyframes shake-1 {
|
|
7
|
-
0% {
|
|
8
|
-
transform: skewX(-15deg);
|
|
9
|
-
}
|
|
10
|
-
5% {
|
|
11
|
-
transform: skewX(15deg);
|
|
12
|
-
}
|
|
13
|
-
10% {
|
|
14
|
-
transform: skewX(-15deg);
|
|
15
|
-
}
|
|
16
|
-
15% {
|
|
17
|
-
transform: skewX(15deg);
|
|
18
|
-
}
|
|
19
|
-
20% {
|
|
20
|
-
transform: skewX(0deg);
|
|
21
|
-
}
|
|
22
|
-
100% {
|
|
23
|
-
transform: skewX(0deg);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.animation-shake-2 {
|
|
28
|
-
animation: shake-2 0.9s;
|
|
29
|
-
animation-iteration-count: infinite;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@keyframes shake-2 {
|
|
33
|
-
0% {
|
|
34
|
-
transform: translate(1px, 1px) rotate(0deg);
|
|
35
|
-
}
|
|
36
|
-
10% {
|
|
37
|
-
transform: translate(-1px, -2px) rotate(-1deg);
|
|
38
|
-
}
|
|
39
|
-
20% {
|
|
40
|
-
transform: translate(-3px, 0px) rotate(1deg);
|
|
41
|
-
}
|
|
42
|
-
30% {
|
|
43
|
-
transform: translate(3px, 2px) rotate(0deg);
|
|
44
|
-
}
|
|
45
|
-
40% {
|
|
46
|
-
transform: translate(1px, -1px) rotate(1deg);
|
|
47
|
-
}
|
|
48
|
-
50% {
|
|
49
|
-
transform: translate(-1px, 2px) rotate(-1deg);
|
|
50
|
-
}
|
|
51
|
-
60% {
|
|
52
|
-
transform: translate(-3px, 1px) rotate(0deg);
|
|
53
|
-
}
|
|
54
|
-
70% {
|
|
55
|
-
transform: translate(3px, 1px) rotate(-1deg);
|
|
56
|
-
}
|
|
57
|
-
80% {
|
|
58
|
-
transform: translate(-1px, -1px) rotate(1deg);
|
|
59
|
-
}
|
|
60
|
-
90% {
|
|
61
|
-
transform: translate(1px, 2px) rotate(0deg);
|
|
62
|
-
}
|
|
63
|
-
100% {
|
|
64
|
-
transform: translate(1px, -2px) rotate(-1deg);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.animation-shake-3 {
|
|
69
|
-
animation: shake-3 0.9s;
|
|
70
|
-
animation-iteration-count: infinite;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
@keyframes shake-3 {
|
|
74
|
-
0% {
|
|
75
|
-
transform: translate(5px, 0);
|
|
76
|
-
}
|
|
77
|
-
5% {
|
|
78
|
-
transform: translate(-5px, 0);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
10% {
|
|
82
|
-
transform: translate(5px, 0);
|
|
83
|
-
}
|
|
84
|
-
15% {
|
|
85
|
-
transform: translate(-5px, 0);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
20% {
|
|
89
|
-
transform: translate(-5px, 0);
|
|
90
|
-
}
|
|
91
|
-
100% {
|
|
92
|
-
transform: translate(5px, 0);
|
|
93
|
-
}
|
|
94
|
-
}
|
package/style/style.scss
DELETED
package/tools/rootable.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
export const roots = {
|
|
2
|
-
props: {
|
|
3
|
-
activeClass: String,
|
|
4
|
-
disabled: Boolean,
|
|
5
|
-
exactActiveClass: String,
|
|
6
|
-
link: Boolean,
|
|
7
|
-
href: [String, Object],
|
|
8
|
-
to: [String, Object],
|
|
9
|
-
tag: String,
|
|
10
|
-
target: String
|
|
11
|
-
},
|
|
12
|
-
data: () => ({
|
|
13
|
-
isActive: false
|
|
14
|
-
}),
|
|
15
|
-
computed: {
|
|
16
|
-
classes() {
|
|
17
|
-
const classes = {};
|
|
18
|
-
if (this.to) return classes;
|
|
19
|
-
if (this.activeClass) classes[this.activeClass] = this.isActive;
|
|
20
|
-
return classes;
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
isClickable() {
|
|
24
|
-
if (this.disabled) return false;
|
|
25
|
-
return Boolean(this.isLink || this.$attrs.tabindex);
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
isLink() {
|
|
29
|
-
return this.to || this.href || this.link;
|
|
30
|
-
},
|
|
31
|
-
|
|
32
|
-
route() {
|
|
33
|
-
return this.generateRouteLink()
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
generateRouteLink() {
|
|
38
|
-
let tag;
|
|
39
|
-
const data = {
|
|
40
|
-
attrs: {
|
|
41
|
-
tabindex: 'tabindex' in this.$attrs ? this.$attrs.tabindex : undefined
|
|
42
|
-
},
|
|
43
|
-
props: {},
|
|
44
|
-
class: this.classes,
|
|
45
|
-
ref: 'link'
|
|
46
|
-
};
|
|
47
|
-
if (this.isClickable) {
|
|
48
|
-
if (this.to) {
|
|
49
|
-
const activeClass = this.activeClass;
|
|
50
|
-
const exactActiveClass = this.exactActiveClass || activeClass;
|
|
51
|
-
|
|
52
|
-
tag = 'router-link';
|
|
53
|
-
Object.assign(data.props, {
|
|
54
|
-
to: this.to,
|
|
55
|
-
activeClass,
|
|
56
|
-
exactActiveClass
|
|
57
|
-
});
|
|
58
|
-
} else {
|
|
59
|
-
tag = (this.href && 'a') || this.tag || 'span';
|
|
60
|
-
if (tag === 'a' && this.href) data.attrs.href = this.href;
|
|
61
|
-
}
|
|
62
|
-
if (this.target) data.attrs.target = this.target;
|
|
63
|
-
} else {
|
|
64
|
-
tag = this.tag || 'span'
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return {
|
|
69
|
-
tag,
|
|
70
|
-
data
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|