renusify 1.0.4 → 1.0.6
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 +14 -14
- package/components/{notify → app/notify}/index.vue +1 -1
- package/components/{notify → app/notify}/notification.vue +0 -0
- package/components/{notify → app/notify}/notify.js +0 -0
- package/components/app/style.scss +0 -1
- package/components/{toast → app/toast}/index.vue +0 -0
- package/components/{toast → app/toast}/style.scss +1 -1
- package/components/{toast → app/toast}/toast.js +0 -0
- package/components/{toast → app/toast}/toast.vue +0 -0
- package/components/breadcrumb/bredcrumbItem.vue +11 -11
- package/components/breadcrumb/index.vue +6 -5
- package/components/chart/chart.vue +3 -0
- package/components/chat/chatInput.vue +139 -135
- package/components/codeEditor/index.vue +432 -449
- package/components/codeEditor/run.vue +76 -80
- package/components/content/style.scss +0 -1
- package/components/form/address.vue +109 -109
- package/components/form/address_ir.vue +106 -0
- package/components/form/colorPicker/Alpha.vue +3 -0
- package/components/form/colorPicker/Preview.vue +3 -0
- package/components/form/group-input.vue +2 -1
- package/components/form/number.vue +1 -1
- package/components/iframe/index.vue +1 -1
- package/components/index.js +178 -88
- package/components/infinite/index.vue +0 -2
- package/components/menu/index.vue +173 -125
- package/components/modal/index.vue +85 -90
- package/components/modal/style.scss +0 -1
- package/components/table/crud/index.vue +12 -13
- package/directive/clickOutSide/index.js +2 -3
- package/directive/drag/index.js +1 -2
- package/directive/intersect/index.js +3 -3
- package/directive/resize/index.js +3 -4
- package/directive/ripple/index.js +4 -6
- package/directive/scroll/index.js +3 -4
- package/directive/sortable/index.js +1 -2
- package/directive/title/index.js +2 -3
- package/directive/touch/index.js +1 -2
- package/index.js +4 -5
- package/package.json +1 -1
- package/plugins/trans/Translate.js +12 -14
package/components/app/index.vue
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
'app-dark': isDark,
|
|
7
7
|
'app-light': !isDark
|
|
8
8
|
}" :id="id">
|
|
9
|
-
<div class="app-wrap">
|
|
10
|
-
|
|
9
|
+
<div class="app-wrap" :style="{'min-height':$r.breakpoint.height+'px'}">
|
|
10
|
+
<slot></slot>
|
|
11
11
|
</div>
|
|
12
12
|
<r-toast></r-toast>
|
|
13
13
|
<r-notify v-if="notify" :left="notifyLeft" :top="notifyTop">
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
|
|
21
21
|
<script>
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
import './style.scss'
|
|
23
|
+
import RToast from './toast/index.vue'
|
|
24
|
+
import RNotify from './notify/index.vue'
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
export default {
|
|
27
|
+
name: 'r-app',
|
|
28
|
+
components: {RToast, RNotify},
|
|
29
|
+
props: {
|
|
30
|
+
id: {
|
|
31
|
+
type: [String, Number],
|
|
32
|
+
default: 'renusify'
|
|
33
|
+
},
|
|
34
|
+
notify: Boolean,
|
|
35
35
|
notifyLeft: Boolean,
|
|
36
36
|
notifyTop: Boolean,
|
|
37
37
|
rtl: {type:Boolean,default: undefined},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
import {roots} from '../../tools/rootable'
|
|
14
14
|
|
|
15
15
|
export default {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
name: 'rBreadcrumbItem',
|
|
17
|
+
mixins: [roots],
|
|
18
|
+
props: {
|
|
19
|
+
item: Object
|
|
20
|
+
},
|
|
21
|
+
computed: {
|
|
22
|
+
att() {
|
|
23
|
+
let res = {}
|
|
24
|
+
if (this.href) {
|
|
25
|
+
res['href'] = this.route.data.attrs.href
|
|
26
|
+
}
|
|
27
27
|
|
|
28
28
|
if (this.target) {
|
|
29
29
|
res['rel'] = 'noreferrer'
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
:key="key"
|
|
6
6
|
v-for="(item,key) in genItems">
|
|
7
7
|
|
|
8
|
-
<r-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
<r-breadcrumb-item :href="item.href"
|
|
9
|
+
:item="item"
|
|
10
|
+
:to="item.to"
|
|
11
|
+
@click="go(item)"></r-breadcrumb-item>
|
|
12
12
|
</li>
|
|
13
13
|
</ul>
|
|
14
14
|
</transition>
|
|
@@ -16,10 +16,11 @@
|
|
|
16
16
|
|
|
17
17
|
<script>
|
|
18
18
|
import './style.scss'
|
|
19
|
-
import
|
|
19
|
+
import RBreadcrumbItem from "./bredcrumbItem";
|
|
20
20
|
|
|
21
21
|
export default {
|
|
22
22
|
name: 'r-breadcrumbs',
|
|
23
|
+
components: {RBreadcrumbItem},
|
|
23
24
|
props: {
|
|
24
25
|
sheet: {
|
|
25
26
|
type: Boolean,
|
|
@@ -1,150 +1,154 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<div :class="{[$r.prefix+'chat-input']:true,'with-file':canFile}">
|
|
3
|
+
<r-btn text icon>
|
|
4
|
+
<r-icon v-html="$r.icons.sticker"></r-icon>
|
|
5
|
+
</r-btn>
|
|
6
|
+
<div class="chat-input"
|
|
7
|
+
ref="input"
|
|
8
|
+
contenteditable="true"
|
|
9
|
+
@input="updateText"
|
|
10
|
+
@keydown="updateKey"
|
|
11
|
+
@paste.prevent="updatePaste"
|
|
12
|
+
>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="action-section d-flex h-end">
|
|
15
|
+
<template v-if="canFile">
|
|
16
|
+
<r-btn v-if="uploadPercentage===0||uploadPercentage===100" @click.prevent.stop="pickFile"
|
|
17
|
+
icon
|
|
18
|
+
text>
|
|
19
|
+
<r-icon v-html="$r.icons.attachment"></r-icon>
|
|
5
20
|
</r-btn>
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</div>
|
|
14
|
-
<div class="action-section d-flex h-end">
|
|
15
|
-
<template v-if="canFile">
|
|
16
|
-
<r-btn v-if="uploadPercentage===0||uploadPercentage===100" @click.prevent.stop="pickFile"
|
|
17
|
-
icon
|
|
18
|
-
text>
|
|
19
|
-
<r-icon v-html="$r.icons.attachment"></r-icon>
|
|
20
|
-
</r-btn>
|
|
21
|
-
<r-progress-circular
|
|
22
|
-
v-else
|
|
23
|
-
@click.prevent="fileDelete()"
|
|
24
|
-
:indeterminate=false
|
|
25
|
-
:modelValue="uploadPercentage"
|
|
26
|
-
:width="2"
|
|
27
|
-
size="30"
|
|
28
|
-
>
|
|
29
|
-
<r-icon v-html="$r.icons.close"></r-icon>
|
|
30
|
-
</r-progress-circular>
|
|
31
|
-
</template>
|
|
32
|
-
<r-btn class="color-success-text"
|
|
33
|
-
:disabled="!text"
|
|
34
|
-
@click="send"
|
|
35
|
-
icon
|
|
36
|
-
text>
|
|
37
|
-
<r-icon v-html="$r.icons.send"></r-icon>
|
|
38
|
-
</r-btn>
|
|
39
|
-
<br>
|
|
40
|
-
<span class="caption color-error-text" v-if="remain<30">{{remain}}</span>
|
|
41
|
-
</div>
|
|
42
|
-
<input accept="*"
|
|
43
|
-
@change="addFile()"
|
|
44
|
-
ref="file"
|
|
45
|
-
style="display: none"
|
|
46
|
-
type="file"
|
|
47
|
-
v-if="showFile"
|
|
21
|
+
<r-progress-circular
|
|
22
|
+
v-else
|
|
23
|
+
@click.prevent="fileDelete()"
|
|
24
|
+
:indeterminate=false
|
|
25
|
+
:modelValue="uploadPercentage"
|
|
26
|
+
:width="2"
|
|
27
|
+
size="30"
|
|
48
28
|
>
|
|
29
|
+
<r-icon v-html="$r.icons.close"></r-icon>
|
|
30
|
+
</r-progress-circular>
|
|
31
|
+
</template>
|
|
32
|
+
<r-btn class="color-success-text"
|
|
33
|
+
:disabled="!text"
|
|
34
|
+
@click.prevent="send"
|
|
35
|
+
icon
|
|
36
|
+
text>
|
|
37
|
+
<r-icon v-html="$r.icons.send"></r-icon>
|
|
38
|
+
</r-btn>
|
|
39
|
+
<br>
|
|
40
|
+
<span class="caption color-error-text" v-if="remain<30">{{ remain }}</span>
|
|
49
41
|
</div>
|
|
42
|
+
<input accept="*"
|
|
43
|
+
@change="addFile()"
|
|
44
|
+
ref="file"
|
|
45
|
+
style="display: none"
|
|
46
|
+
type="file"
|
|
47
|
+
v-if="showFile"
|
|
48
|
+
>
|
|
49
|
+
</div>
|
|
50
50
|
</template>
|
|
51
51
|
<script>
|
|
52
|
-
|
|
52
|
+
import file from "../form/fileUploader/file";
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
54
|
+
export default {
|
|
55
|
+
name: 'r-chat-input',
|
|
56
|
+
mixins: [file],
|
|
57
|
+
props: {
|
|
58
|
+
maxLenMsg: {type: Number, default: 200},
|
|
59
|
+
sendByEnter: Boolean,
|
|
60
|
+
placeholder: {type: String, default: 'type here'},
|
|
61
|
+
maxFileSize: Number,
|
|
62
|
+
uploadLink: String,
|
|
63
|
+
canFile: Boolean,
|
|
64
|
+
},
|
|
65
|
+
data() {
|
|
66
|
+
return {
|
|
67
|
+
text: '',
|
|
68
|
+
showFile: true,
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
computed: {
|
|
72
|
+
remain() {
|
|
73
|
+
return this.maxLenMsg - this.text.length
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
methods: {
|
|
77
|
+
updatePaste(e) {
|
|
78
|
+
let text = this.$refs.input.innerText
|
|
79
|
+
this.$refs.input.innerText = this.$helper.limiter(text + e.clipboardData.getData('Text'), this.maxLenMsg)
|
|
80
|
+
this.updateText()
|
|
81
|
+
},
|
|
82
|
+
updateKey(e) {
|
|
83
|
+
let text = this.$refs.input.innerText
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
}
|
|
85
|
+
if (e.keyCode === 13 && this.sendByEnter) {
|
|
86
|
+
this.send()
|
|
87
|
+
return
|
|
88
|
+
}
|
|
89
|
+
if (text.length >= this.maxLenMsg && e.keyCode !== 8 && e.keyCode !== 46) {
|
|
90
|
+
e.preventDefault();
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
updateText() {
|
|
94
|
+
this.text = this.$refs.input.innerText
|
|
95
|
+
this.$refs.input.scrollTop = this.$refs.input.scrollHeight
|
|
96
|
+
},
|
|
97
|
+
send() {
|
|
98
|
+
if (this.text) {
|
|
99
|
+
this.$emit('update:model-value', {type: "text", content: this.text})
|
|
100
|
+
this.$refs.input.innerText = ''
|
|
101
|
+
this.text = ''
|
|
102
|
+
this.$refs.input.focus()
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
emit() {
|
|
106
|
+
this.$emit('update:model-value', {type: "file", content: this.text, link: this.fileLink})
|
|
107
|
+
this.$refs.input.innerText = ''
|
|
108
|
+
this.text = ''
|
|
110
109
|
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
111
112
|
</script>
|
|
112
113
|
<style lang="scss">
|
|
113
|
-
|
|
114
|
+
@import "../../style/include";
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
116
|
+
.#{$prefix}chat-input {
|
|
117
|
+
display: flex;
|
|
118
|
+
@include light() {
|
|
119
|
+
box-shadow: black 0px 8px 15px;
|
|
120
|
+
background: var(--color-background-two-light);
|
|
121
|
+
border-top: 1px solid var(--color-border-light);
|
|
122
|
+
}
|
|
123
|
+
@include dark() {
|
|
124
|
+
box-shadow: white 0px 8px 15px;
|
|
125
|
+
background: var(--color-background-two-dark);
|
|
126
|
+
border-top: 1px solid var(--color-border-dark);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.chat-input {
|
|
130
|
+
margin: 5px 0;
|
|
131
|
+
resize: none;
|
|
132
|
+
outline: none;
|
|
133
|
+
line-height: 25px;
|
|
134
|
+
font-size: 14px;
|
|
135
|
+
max-height: 80px;
|
|
136
|
+
overflow-y: auto;
|
|
137
|
+
width: calc(100% - 40px);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.action-section {
|
|
141
|
+
width: 40px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&.with-file {
|
|
145
|
+
.action-section {
|
|
146
|
+
width: 80px;
|
|
147
|
+
}
|
|
127
148
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
resize: none;
|
|
131
|
-
outline: none;
|
|
132
|
-
line-height: 25px;
|
|
133
|
-
font-size: 14px;
|
|
134
|
-
max-height: 80px;
|
|
135
|
-
overflow-y: auto;
|
|
136
|
-
width: calc(100% - 40px);
|
|
137
|
-
}
|
|
138
|
-
.action-section {
|
|
139
|
-
width: 40px;
|
|
140
|
-
}
|
|
141
|
-
&.with-file{
|
|
142
|
-
.action-section {
|
|
143
|
-
width: 80px;
|
|
144
|
-
}
|
|
145
|
-
.chat-input{
|
|
146
|
-
width: calc(100% - 80px);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
+
.chat-input {
|
|
150
|
+
width: calc(100% - 80px);
|
|
149
151
|
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
150
154
|
</style>
|