renusify 1.2.7 → 1.3.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/bar/toolbar/menuMob.vue +13 -13
- package/components/breadcrumb/style.scss +1 -1
- package/components/calendar/month.vue +2 -2
- package/components/calendar/year.vue +2 -2
- package/components/chat/chatInput.vue +3 -3
- package/components/codeEditor/highlightCss.vue +29 -1
- package/components/codeEditor/highlightHtml.vue +44 -1
- package/components/codeEditor/highlightJs.vue +29 -1
- package/components/form/address_ir.vue +1 -1
- package/components/form/colorPicker/index.vue +3 -3
- package/components/form/datePicker/month.vue +1 -1
- package/components/form/datePicker/year.vue +1 -1
- package/components/form/group-input.vue +1 -1
- package/components/form/input.vue +2 -2
- package/components/form/json/JsonView.vue +4 -21
- package/components/form/json/index.vue +26 -5
- package/components/form/rating.vue +1 -1
- package/components/form/unit-input.vue +1 -1
- package/components/list/style.scss +2 -2
- package/components/menu/index.vue +1 -1
- package/components/table/style.scss +4 -4
- package/components/tabs/index.vue +1 -1
- package/package.json +1 -1
- package/style/colors.scss +3 -4
- package/tools/helper.js +0 -4
|
@@ -15,24 +15,24 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
17
17
|
<script>
|
|
18
|
-
|
|
18
|
+
import MenuChilds from "./menuChilds";
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
export default {
|
|
21
|
+
name: 'menu-mobile',
|
|
22
|
+
components: {MenuChilds},
|
|
23
|
+
props: {
|
|
24
|
+
logo: String,
|
|
25
|
+
logoW: Number,
|
|
26
|
+
logoH: Number,
|
|
27
|
+
menu: Array,
|
|
28
|
+
modelValue: Boolean
|
|
29
|
+
},
|
|
30
|
+
data() {
|
|
31
31
|
return {}
|
|
32
32
|
},
|
|
33
33
|
methods: {
|
|
34
34
|
close() {
|
|
35
|
-
|
|
35
|
+
this.$emit('update:modelValue', false)
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
locale: String,
|
|
22
22
|
year: Number
|
|
23
23
|
},
|
|
24
|
-
emits:['update:
|
|
24
|
+
emits: ['update:modelValue'],
|
|
25
25
|
data() {
|
|
26
26
|
return {
|
|
27
27
|
p: 0
|
|
@@ -35,7 +35,7 @@ export default {
|
|
|
35
35
|
},
|
|
36
36
|
methods: {
|
|
37
37
|
emit(n) {
|
|
38
|
-
this.$emit('update:
|
|
38
|
+
this.$emit('update:modelValue', n)
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -62,7 +62,7 @@ export default {
|
|
|
62
62
|
uploadLink: String,
|
|
63
63
|
canFile: Boolean,
|
|
64
64
|
},
|
|
65
|
-
emits:['update:
|
|
65
|
+
emits: ['update:modelValue'],
|
|
66
66
|
data() {
|
|
67
67
|
return {
|
|
68
68
|
text: '',
|
|
@@ -97,14 +97,14 @@ export default {
|
|
|
97
97
|
},
|
|
98
98
|
send() {
|
|
99
99
|
if (this.text) {
|
|
100
|
-
this.$emit('update:
|
|
100
|
+
this.$emit('update:modelValue', {type: "text", content: this.text})
|
|
101
101
|
this.$refs.input.innerText = ''
|
|
102
102
|
this.text = ''
|
|
103
103
|
this.$refs.input.focus()
|
|
104
104
|
}
|
|
105
105
|
},
|
|
106
106
|
emit() {
|
|
107
|
-
this.$emit('update:
|
|
107
|
+
this.$emit('update:modelValue', {type: "file", content: this.text, link: this.fileLink})
|
|
108
108
|
this.$refs.input.innerText = ''
|
|
109
109
|
this.text = ''
|
|
110
110
|
}
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
this.d = this.modelValue;
|
|
31
31
|
},
|
|
32
32
|
d: function () {
|
|
33
|
-
this.$emit("update:
|
|
33
|
+
this.$emit("update:modelValue", this.d);
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
computed: {
|
|
@@ -68,6 +68,34 @@ export default {
|
|
|
68
68
|
},
|
|
69
69
|
methods: {
|
|
70
70
|
setTab(event) {
|
|
71
|
+
if (event.key === "'" || event.key === '"') {
|
|
72
|
+
const end = event.target.selectionEnd;
|
|
73
|
+
event.preventDefault()
|
|
74
|
+
document.execCommand('insertText', false, event.key.repeat(2));
|
|
75
|
+
event.target.selectionEnd = end + 1;
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
if (event.key === "{") {
|
|
79
|
+
const end = event.target.selectionEnd;
|
|
80
|
+
event.preventDefault()
|
|
81
|
+
document.execCommand('insertText', false, '{}');
|
|
82
|
+
event.target.selectionEnd = end + 1;
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
if (event.key === "(") {
|
|
86
|
+
const end = event.target.selectionEnd;
|
|
87
|
+
event.preventDefault()
|
|
88
|
+
document.execCommand('insertText', false, '()');
|
|
89
|
+
event.target.selectionEnd = end + 1;
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
if (event.key === "[") {
|
|
93
|
+
const end = event.target.selectionEnd;
|
|
94
|
+
event.preventDefault()
|
|
95
|
+
document.execCommand('insertText', false, '[]');
|
|
96
|
+
event.target.selectionEnd = end + 1;
|
|
97
|
+
return false;
|
|
98
|
+
}
|
|
71
99
|
if (event.keyCode === 9) {
|
|
72
100
|
event.preventDefault()
|
|
73
101
|
document.execCommand('insertText', false, ' '.repeat(4));
|
|
@@ -23,6 +23,7 @@ export default {
|
|
|
23
23
|
d: this.modelValue,
|
|
24
24
|
runnable: false,
|
|
25
25
|
code: "",
|
|
26
|
+
openTag: null
|
|
26
27
|
};
|
|
27
28
|
},
|
|
28
29
|
watch: {
|
|
@@ -30,7 +31,7 @@ export default {
|
|
|
30
31
|
this.d = this.modelValue;
|
|
31
32
|
},
|
|
32
33
|
d: function () {
|
|
33
|
-
this.$emit("update:
|
|
34
|
+
this.$emit("update:modelValue", this.d);
|
|
34
35
|
},
|
|
35
36
|
},
|
|
36
37
|
computed: {
|
|
@@ -88,6 +89,48 @@ export default {
|
|
|
88
89
|
},
|
|
89
90
|
methods: {
|
|
90
91
|
setTab(event) {
|
|
92
|
+
if (event.key === "<") {
|
|
93
|
+
this.openTag = event.target.selectionEnd
|
|
94
|
+
return false
|
|
95
|
+
} else if (event.key === ">" && this.openTag !== null) {
|
|
96
|
+
const end = event.target.selectionEnd;
|
|
97
|
+
const sel = event.target.value.substring(this.openTag + 1, end).trim().split(' ')[0];
|
|
98
|
+
const t = `></${sel}>`
|
|
99
|
+
event.preventDefault()
|
|
100
|
+
document.execCommand('insertText', false, t);
|
|
101
|
+
event.target.selectionEnd = end + 1;
|
|
102
|
+
this.openTag = null
|
|
103
|
+
return false
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (event.key === "'" || event.key === '"' || event.key === '`') {
|
|
107
|
+
const end = event.target.selectionEnd;
|
|
108
|
+
event.preventDefault()
|
|
109
|
+
document.execCommand('insertText', false, event.key.repeat(2));
|
|
110
|
+
event.target.selectionEnd = end + 1;
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
if (event.key === "{") {
|
|
114
|
+
const end = event.target.selectionEnd;
|
|
115
|
+
event.preventDefault()
|
|
116
|
+
document.execCommand('insertText', false, '{}');
|
|
117
|
+
event.target.selectionEnd = end + 1;
|
|
118
|
+
return false;
|
|
119
|
+
}
|
|
120
|
+
if (event.key === "(") {
|
|
121
|
+
const end = event.target.selectionEnd;
|
|
122
|
+
event.preventDefault()
|
|
123
|
+
document.execCommand('insertText', false, '()');
|
|
124
|
+
event.target.selectionEnd = end + 1;
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
if (event.key === "[") {
|
|
128
|
+
const end = event.target.selectionEnd;
|
|
129
|
+
event.preventDefault()
|
|
130
|
+
document.execCommand('insertText', false, '[]');
|
|
131
|
+
event.target.selectionEnd = end + 1;
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
91
134
|
if (event.keyCode === 9) {
|
|
92
135
|
event.preventDefault()
|
|
93
136
|
document.execCommand('insertText', false, ' '.repeat(4));
|
|
@@ -30,7 +30,7 @@ export default {
|
|
|
30
30
|
this.d = this.modelValue;
|
|
31
31
|
},
|
|
32
32
|
d: function () {
|
|
33
|
-
this.$emit("update:
|
|
33
|
+
this.$emit("update:modelValue", this.d);
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
computed: {
|
|
@@ -85,6 +85,34 @@ export default {
|
|
|
85
85
|
},
|
|
86
86
|
methods: {
|
|
87
87
|
setTab(event) {
|
|
88
|
+
if (event.key === "'" || event.key === '"' || event.key === '`') {
|
|
89
|
+
const end = event.target.selectionEnd;
|
|
90
|
+
event.preventDefault()
|
|
91
|
+
document.execCommand('insertText', false, event.key.repeat(2));
|
|
92
|
+
event.target.selectionEnd = end + 1;
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (event.key === "{") {
|
|
96
|
+
const end = event.target.selectionEnd;
|
|
97
|
+
event.preventDefault()
|
|
98
|
+
document.execCommand('insertText', false, '{}');
|
|
99
|
+
event.target.selectionEnd = end + 1;
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
if (event.key === "(") {
|
|
103
|
+
const end = event.target.selectionEnd;
|
|
104
|
+
event.preventDefault()
|
|
105
|
+
document.execCommand('insertText', false, '()');
|
|
106
|
+
event.target.selectionEnd = end + 1;
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
if (event.key === "[") {
|
|
110
|
+
const end = event.target.selectionEnd;
|
|
111
|
+
event.preventDefault()
|
|
112
|
+
document.execCommand('insertText', false, '[]');
|
|
113
|
+
event.target.selectionEnd = end + 1;
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
88
116
|
if (event.keyCode === 9) {
|
|
89
117
|
event.preventDefault()
|
|
90
118
|
document.execCommand('insertText', false, ' '.repeat(4));
|
|
@@ -25,7 +25,7 @@ export default {
|
|
|
25
25
|
modelValue: String,
|
|
26
26
|
format: {type: String, default: 'rgba'}
|
|
27
27
|
},
|
|
28
|
-
emits:['update:
|
|
28
|
+
emits: ['update:modelValue', 'close'],
|
|
29
29
|
data() {
|
|
30
30
|
return {
|
|
31
31
|
open: false
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
methods: {
|
|
35
35
|
clear() {
|
|
36
36
|
this.open = false
|
|
37
|
-
this.$emit('update:
|
|
37
|
+
this.$emit('update:modelValue', null)
|
|
38
38
|
this.$emit('close', true)
|
|
39
39
|
},
|
|
40
40
|
close() {
|
|
@@ -46,7 +46,7 @@ export default {
|
|
|
46
46
|
if (this.format === 'rgba') {
|
|
47
47
|
r = e.rgba
|
|
48
48
|
}
|
|
49
|
-
this.$emit('update:
|
|
49
|
+
this.$emit('update:modelValue', r)
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
let b = {}
|
|
86
86
|
if (this.template) {
|
|
87
87
|
for (let k in this.template) {
|
|
88
|
-
let d =
|
|
88
|
+
let d = this.template[k]['default'] !== undefined ? this.template[k]['default'] : null
|
|
89
89
|
if (typeof d === 'object') {
|
|
90
90
|
d = this.$helper.clearProxy(d)
|
|
91
91
|
}
|
|
@@ -313,12 +313,12 @@ export default {
|
|
|
313
313
|
|
|
314
314
|
input::placeholder,
|
|
315
315
|
textarea::placeholder {
|
|
316
|
-
color: var(--color-
|
|
316
|
+
color: var(--color-disabled)
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
&.input-disabled {
|
|
320
320
|
* {
|
|
321
|
-
color: var(--color-
|
|
321
|
+
color: var(--color-disabled)
|
|
322
322
|
}
|
|
323
323
|
}
|
|
324
324
|
|
|
@@ -45,7 +45,7 @@ export default {
|
|
|
45
45
|
disableDel: Boolean,
|
|
46
46
|
tile: Boolean
|
|
47
47
|
},
|
|
48
|
-
emits: ['update:
|
|
48
|
+
emits: ['update:modelValue'],
|
|
49
49
|
data() {
|
|
50
50
|
return {
|
|
51
51
|
time_id: null
|
|
@@ -64,35 +64,18 @@ export default {
|
|
|
64
64
|
} else {
|
|
65
65
|
delete o[key]
|
|
66
66
|
}
|
|
67
|
-
this.$emit('update:
|
|
68
|
-
},
|
|
69
|
-
emitkey(oldKey, newKey) {
|
|
70
|
-
clearTimeout(this.time_id)
|
|
71
|
-
let o = this.modelValue
|
|
72
|
-
let n = {};
|
|
73
|
-
|
|
74
|
-
Object.keys(o).forEach(key => {
|
|
75
|
-
if (key === oldKey) {
|
|
76
|
-
let newPair = {[newKey]: o[oldKey]};
|
|
77
|
-
n = {...n, ...newPair}
|
|
78
|
-
} else {
|
|
79
|
-
n = {...n, [key]: o[key]}
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
this.time_id = setTimeout(() => {
|
|
83
|
-
this.$emit('update:model-value', n)
|
|
84
|
-
}, 1000)
|
|
67
|
+
this.$emit('update:modelValue', o)
|
|
85
68
|
},
|
|
86
69
|
emit(k, v) {
|
|
87
70
|
let d = this.modelValue
|
|
88
71
|
d[k] = v
|
|
89
|
-
this.$emit('update:
|
|
72
|
+
this.$emit('update:modelValue', d)
|
|
90
73
|
}
|
|
91
74
|
}
|
|
92
75
|
}
|
|
93
76
|
</script>
|
|
94
77
|
<style lang="scss">
|
|
95
|
-
@import "
|
|
78
|
+
@import "~renusify/style/include";
|
|
96
79
|
|
|
97
80
|
.#{$prefix}json-view {
|
|
98
81
|
@include rtl() {
|
|
@@ -87,7 +87,7 @@ export default {
|
|
|
87
87
|
disableEditKey: Boolean,
|
|
88
88
|
disableDel: Boolean
|
|
89
89
|
},
|
|
90
|
-
emits: ['update:
|
|
90
|
+
emits: ['update:modelValue'],
|
|
91
91
|
data() {
|
|
92
92
|
return {
|
|
93
93
|
modeForm: true,
|
|
@@ -113,6 +113,27 @@ export default {
|
|
|
113
113
|
},
|
|
114
114
|
methods: {
|
|
115
115
|
setTab(event) {
|
|
116
|
+
if (event.key === '"') {
|
|
117
|
+
const end = event.target.selectionEnd;
|
|
118
|
+
event.preventDefault()
|
|
119
|
+
document.execCommand('insertText', false, event.key.repeat(2));
|
|
120
|
+
event.target.selectionEnd = end + 1;
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
if (event.key === "{") {
|
|
124
|
+
const end = event.target.selectionEnd;
|
|
125
|
+
event.preventDefault()
|
|
126
|
+
document.execCommand('insertText', false, '{}');
|
|
127
|
+
event.target.selectionEnd = end + 1;
|
|
128
|
+
return false;
|
|
129
|
+
}
|
|
130
|
+
if (event.key === "[") {
|
|
131
|
+
const end = event.target.selectionEnd;
|
|
132
|
+
event.preventDefault()
|
|
133
|
+
document.execCommand('insertText', false, '[]');
|
|
134
|
+
event.target.selectionEnd = end + 1;
|
|
135
|
+
return false;
|
|
136
|
+
}
|
|
116
137
|
if (event.keyCode === 9) {
|
|
117
138
|
event.preventDefault()
|
|
118
139
|
document.execCommand('insertText', false, ' '.repeat(4));
|
|
@@ -143,7 +164,7 @@ export default {
|
|
|
143
164
|
d = []
|
|
144
165
|
}
|
|
145
166
|
d.push(Object.assign({}, {}, this.template))
|
|
146
|
-
this.$emit('update:
|
|
167
|
+
this.$emit('update:modelValue', d)
|
|
147
168
|
} else {
|
|
148
169
|
this.show = true
|
|
149
170
|
}
|
|
@@ -152,13 +173,13 @@ export default {
|
|
|
152
173
|
try {
|
|
153
174
|
this.error = false
|
|
154
175
|
e = JSON.parse(e.target.value)
|
|
155
|
-
this.$emit('update:
|
|
176
|
+
this.$emit('update:modelValue', e)
|
|
156
177
|
} catch (er) {
|
|
157
178
|
this.error = true
|
|
158
179
|
}
|
|
159
180
|
},
|
|
160
181
|
emit(e) {
|
|
161
|
-
this.$emit('update:
|
|
182
|
+
this.$emit('update:modelValue', e)
|
|
162
183
|
},
|
|
163
184
|
add() {
|
|
164
185
|
let d = this.modelValue
|
|
@@ -190,7 +211,7 @@ export default {
|
|
|
190
211
|
}
|
|
191
212
|
this.show = false
|
|
192
213
|
this.info = {}
|
|
193
|
-
this.$emit('update:
|
|
214
|
+
this.$emit('update:modelValue', d)
|
|
194
215
|
}
|
|
195
216
|
}
|
|
196
217
|
}
|
|
@@ -13,11 +13,11 @@ $item-height: 48px;
|
|
|
13
13
|
|
|
14
14
|
.list-item {
|
|
15
15
|
&.list-item-active {
|
|
16
|
-
background-color: var(--color-
|
|
16
|
+
background-color: var(--color-sheet-active)
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
&:hover {
|
|
20
|
-
background-color: var(--color-
|
|
20
|
+
background-color: var(--color-sheet-hover)
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -50,7 +50,7 @@ $data-table-regular-header-height: 38px !default;
|
|
|
50
50
|
|
|
51
51
|
&:hover {
|
|
52
52
|
td:first-child {
|
|
53
|
-
background: var(--color-
|
|
53
|
+
background: var(--color-sheet-hover)
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -60,7 +60,7 @@ $data-table-regular-header-height: 38px !default;
|
|
|
60
60
|
tbody {
|
|
61
61
|
tr:nth-child(2n):not(:hover) {
|
|
62
62
|
td {
|
|
63
|
-
background: var(--color-
|
|
63
|
+
background: var(--color-sheet-active)
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -69,11 +69,11 @@ $data-table-regular-header-height: 38px !default;
|
|
|
69
69
|
tbody {
|
|
70
70
|
tr {
|
|
71
71
|
&:active {
|
|
72
|
-
background: var(--color-
|
|
72
|
+
background: var(--color-sheet-active)
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&:hover {
|
|
76
|
-
background: var(--color-
|
|
76
|
+
background: var(--color-sheet-hover)
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
package/package.json
CHANGED
package/style/colors.scss
CHANGED
|
@@ -15,14 +15,13 @@ $colorsList: (
|
|
|
15
15
|
'divider':rgba(#444, 0.2),
|
|
16
16
|
'text-primary':#515151,
|
|
17
17
|
'text-secondary':#888,
|
|
18
|
-
'text-disabled':rgba(#000, 0.26),
|
|
19
18
|
'disabled':rgba(#000, 0.26),
|
|
20
19
|
'focused':rgba(#000, 0.12),
|
|
21
20
|
'pressed':rgba(#999, 0.4),
|
|
22
21
|
'border': rgba(#000, 0.24),
|
|
23
22
|
'sheet': #fff,
|
|
24
|
-
'
|
|
25
|
-
'
|
|
23
|
+
'sheet-active': #f5f5f5,
|
|
24
|
+
'sheet-hover': #eeeeee,
|
|
26
25
|
'overlay': rgba(225, 225, 225, 0.5)
|
|
27
26
|
) !default;
|
|
28
27
|
|
|
@@ -105,7 +104,7 @@ $colorsList: (
|
|
|
105
104
|
}
|
|
106
105
|
|
|
107
106
|
.color-disabled-text {
|
|
108
|
-
@include text-color(var(--color-
|
|
107
|
+
@include text-color(var(--color-disabled), true);
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
|
package/tools/helper.js
CHANGED
|
@@ -173,10 +173,6 @@ export function limiter(string, length) {
|
|
|
173
173
|
: string;
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
export function url() {
|
|
177
|
-
return process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_production_URL : process.env.VUE_APP_API_URL;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
176
|
export function cleanArray(actual) {
|
|
181
177
|
const newArray = [];
|
|
182
178
|
const lng = actual.length
|