renusify 2.0.4 → 2.1.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/components/app/index.js +5 -0
- package/components/app/index.vue +0 -2
- package/components/avatar/index.js +3 -0
- package/components/bar/bottomNav.js +1 -0
- package/components/bar/bottomNavigationCircle.js +2 -0
- package/components/bar/bottomNavigationCircle.vue +1 -1
- package/components/bar/toolbar/index.js +8 -0
- package/components/bar/toolbar/laptop.vue +2 -2
- package/components/bar/toolbar/menuLaptop.vue +2 -2
- package/components/bar/toolbar/menuMob.vue +28 -28
- package/components/bar/toolbar/mobile.vue +2 -2
- package/components/breadcrumb/index.js +3 -0
- package/components/breadcrumb/index.vue +0 -2
- package/components/button/buttonConfirm.js +3 -0
- package/components/button/buttonConfirm.vue +1 -1
- package/components/button/buttonGroup.js +7 -0
- package/components/button/index.js +3 -0
- package/components/calendar/index.js +10 -0
- package/components/calendar/index.vue +4 -7
- package/components/card/index.js +3 -0
- package/components/card/style.scss +2 -3
- package/components/chart/chart.js +1 -0
- package/components/chart/chart.vue +8 -5
- package/components/chart/worldMap.js +2 -0
- package/components/chart/worldMap.vue +1 -1
- package/components/chat/MessageList.vue +2 -6
- package/components/chat/chatInput.vue +1 -1
- package/components/chat/index.js +11 -0
- package/components/chat/index.vue +2 -5
- package/components/chip/index.js +3 -0
- package/components/codeEditor/highlightCss.vue +1 -1
- package/components/codeEditor/highlightHtml.vue +1 -1
- package/components/codeEditor/highlightJs.vue +1 -1
- package/components/codeEditor/index.js +3 -0
- package/components/codeEditor/index.vue +206 -199
- package/components/confirm/index.js +10 -0
- package/components/container/col.js +1 -0
- package/components/container/divider.js +1 -0
- package/components/container/index.js +1 -0
- package/components/container/row.js +1 -0
- package/components/container/spacer.js +1 -0
- package/components/content/index.js +1 -0
- package/components/countdown/index.js +1 -0
- package/components/cropper/index.js +3 -0
- package/components/cropper/index.vue +1 -1
- package/components/float/index.js +1 -0
- package/components/form/addressInput/index.js +4 -0
- package/components/form/camInput/index.js +4 -0
- package/components/form/{camInput.vue → camInput/index.vue} +1 -1
- package/components/form/checkInput/index.js +4 -0
- package/components/form/{check-input.vue → checkInput/index.vue} +1 -1
- package/components/form/checkboxInput/index.js +3 -0
- package/components/form/{checkbox.vue → checkboxInput/index.vue} +1 -1
- package/components/form/colorInput/index.js +7 -0
- package/components/form/{colorPicker → colorInput}/index.vue +2 -2
- package/components/form/{colorPicker → colorInput}/picker.vue +5 -9
- package/components/form/dateInput/index.js +8 -0
- package/components/form/dateInput/index.vue +475 -0
- package/components/form/fileInput/index.js +8 -0
- package/components/form/{fileUploader → fileInput}/index.vue +2 -2
- package/components/form/groupInput/index.js +4 -0
- package/components/form/{group-input.vue → groupInput/index.vue} +1 -1
- package/components/form/index.js +1 -0
- package/components/form/input/index.js +3 -0
- package/components/form/{input.vue → input/index.vue} +1 -1
- package/components/form/{json → jsonInput}/JsonView.vue +1 -1
- package/components/form/jsonInput/index.js +7 -0
- package/components/form/{json → jsonInput}/index.vue +7 -7
- package/components/form/maskInput/index.js +3 -0
- package/components/form/numberInput/index.js +4 -0
- package/components/form/{number.vue → numberInput/index.vue} +1 -1
- package/components/form/passwordInput/index.js +3 -0
- package/components/form/radioInput/index.js +3 -0
- package/components/form/{radioInput.vue → radioInput/index.vue} +1 -1
- package/components/form/rangeInput/index.js +3 -0
- package/components/form/{range.vue → rangeInput/index.vue} +1 -1
- package/components/form/ratingInput/index.js +4 -0
- package/components/form/{rating.vue → ratingInput/index.vue} +1 -1
- package/components/form/selectInput/index.js +8 -0
- package/components/form/{select.vue → selectInput/index.vue} +34 -2
- package/components/form/switchInput/index.js +2 -0
- package/components/form/{switch.vue → switchInput/index.vue} +1 -1
- package/components/form/telInput/index.js +7 -0
- package/components/form/{inputTel → telInput}/index.vue +5 -5
- package/components/form/text-editor/index.js +15 -0
- package/components/form/text-editor/preview.js +1 -0
- package/components/form/text-editor/preview.vue +14 -13
- package/components/form/text-editor/style.scss +4 -2
- package/components/form/textArea/index.js +2 -0
- package/components/form/{text-area.vue → textArea/index.vue} +1 -1
- package/components/form/textInput/index.js +2 -0
- package/components/form/timeInput/index.js +5 -0
- package/components/form/{timepicker → timeInput}/index.vue +2 -2
- package/components/form/timeInput/range.js +5 -0
- package/components/form/{timepicker → timeInput}/range.vue +2 -2
- package/components/form/uniqueInput/index.js +2 -0
- package/components/form/unitInput/index.js +3 -0
- package/components/form/{unit-input.vue → unitInput/index.vue} +1 -1
- package/components/formCreator/index.js +8 -0
- package/components/html2pdf/index.js +4 -0
- package/components/html2pdf/pageBreak.js +1 -0
- package/components/icon/index.js +1 -0
- package/components/img/index.js +2 -0
- package/components/img/index.vue +2 -2
- package/components/img/svgImg.vue +1 -1
- package/components/index.js +100 -191
- package/components/infinite/div.js +6 -0
- package/components/infinite/index.js +7 -0
- package/components/infinite/page.js +3 -0
- package/components/list/index.js +3 -0
- package/components/map/index.js +5 -0
- package/components/map/index.vue +8 -7
- package/components/map/route.js +9 -0
- package/components/map/route.vue +1 -1
- package/components/map/select.js +2 -0
- package/components/menu/index.js +5 -0
- package/components/message/index.js +4 -0
- package/components/meta/index.js +1 -1
- package/components/modal/index.js +3 -0
- package/components/modal/index.vue +6 -2
- package/components/modal/style.scss +1 -0
- package/components/nestable/NestableItem.vue +163 -0
- package/components/nestable/editable.js +44 -0
- package/components/nestable/index.js +1 -0
- package/components/nestable/index.vue +109 -0
- package/components/nestable/methods.js +397 -0
- package/components/notify/index.js +3 -0
- package/components/notify/index.vue +2 -2
- package/components/progress/circle.js +1 -0
- package/components/progress/line.js +1 -0
- package/components/searchBox/index.js +8 -0
- package/components/searchBox/index.vue +1 -1
- package/components/skeleton/index.js +1 -0
- package/components/skeleton/index.vue +1 -1
- package/components/slider/index.js +6 -0
- package/components/swiper/index.js +2 -0
- package/components/table/crud/index.js +20 -0
- package/components/table/crud/index.vue +459 -453
- package/components/table/index.js +11 -0
- package/components/table/index.vue +10 -17
- package/components/tabs/index.js +3 -0
- package/components/timeAgo/index.js +1 -0
- package/components/timeline/index.js +6 -0
- package/components/timeline/index.vue +1 -1
- package/components/tour/index.js +4 -0
- package/components/tour/index.vue +225 -221
- package/components/tree/index.js +9 -0
- package/components/tree/index.vue +120 -120
- package/components/tree/tree-element.vue +5 -18
- package/directive/index.js +17 -18
- package/package.json +1 -1
- package/components/form/address_ir.vue +0 -106
- package/components/form/datePicker/index.vue +0 -473
- package/components/iframe/index.vue +0 -67
- /package/components/form/{address.vue → addressInput/index.vue} +0 -0
- /package/components/form/{colorPicker → colorInput}/Alpha.vue +0 -0
- /package/components/form/{colorPicker → colorInput}/Hue.vue +0 -0
- /package/components/form/{colorPicker → colorInput}/Preview.vue +0 -0
- /package/components/form/{colorPicker → colorInput}/Saturation.vue +0 -0
- /package/components/form/{colorPicker → colorInput}/mixin.js +0 -0
- /package/components/form/{datePicker → dateInput}/month.vue +0 -0
- /package/components/form/{datePicker → dateInput}/year.vue +0 -0
- /package/components/form/{fileUploader → fileInput}/file.js +0 -0
- /package/components/form/{fileUploader → fileInput}/single.vue +0 -0
- /package/components/form/{form.vue → index.vue} +0 -0
- /package/components/form/{mask-input.vue → maskInput/index.vue} +0 -0
- /package/components/form/{password.vue → passwordInput/index.vue} +0 -0
- /package/components/form/{inputTel → telInput}/assets/all-countries.js +0 -0
- /package/components/form/{inputTel → telInput}/assets/flags.png +0 -0
- /package/components/form/{inputTel → telInput}/assets/flags@2x.png +0 -0
- /package/components/form/{inputTel → telInput}/assets/sprite.css +0 -0
- /package/components/form/{text-input.vue → textInput/index.vue} +0 -0
- /package/components/form/{timepicker → timeInput}/timepicker.vue +0 -0
- /package/components/form/{unique → uniqueInput}/index.vue +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as rSelectInput from './index.vue'
|
|
2
|
+
export * as l_Input from '../input/index.js'
|
|
3
|
+
export * as l_icon from '../../icon/index.js'
|
|
4
|
+
export * as l_chip from '../../chip/index.js'
|
|
5
|
+
export * as l_line from '../../progress/line.js'
|
|
6
|
+
export * as l_card from '../../card/index.js'
|
|
7
|
+
export * as l_list from '../../list/index.js'
|
|
8
|
+
export * as d_clickOutside from '../../../directive/clickOutSide/index.js'
|
|
@@ -111,7 +111,7 @@ export default {
|
|
|
111
111
|
active: false,
|
|
112
112
|
openList: false,
|
|
113
113
|
inputVal: null,
|
|
114
|
-
chips:
|
|
114
|
+
chips: []
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
mounted() {
|
|
@@ -183,6 +183,37 @@ export default {
|
|
|
183
183
|
})
|
|
184
184
|
},
|
|
185
185
|
getValue() {
|
|
186
|
+
if (!this.searchLink && this.modelValue !== undefined && this.modelValue !== null) {
|
|
187
|
+
if (typeof this.modelValue === 'string' || typeof this.modelValue === 'number') {
|
|
188
|
+
const index = this.$helper.searchArray(this.genItems, this.value, this.modelValue)
|
|
189
|
+
if (index === false) {
|
|
190
|
+
this.$emit('update:modelValue', null)
|
|
191
|
+
return []
|
|
192
|
+
}
|
|
193
|
+
} else if (this.$helper.isArray(this.modelValue)) {
|
|
194
|
+
this.modelValue.forEach((item) => {
|
|
195
|
+
if (typeof item === 'string' || typeof item === 'number') {
|
|
196
|
+
const index = this.$helper.searchArray(this.genItems, this.value, item)
|
|
197
|
+
if (index === false) {
|
|
198
|
+
this.$emit('update:modelValue', null)
|
|
199
|
+
return []
|
|
200
|
+
}
|
|
201
|
+
} else {
|
|
202
|
+
const index = this.$helper.searchArray(this.genItems, this.value, item[this.value])
|
|
203
|
+
if (index === false) {
|
|
204
|
+
this.$emit('update:modelValue', null)
|
|
205
|
+
return []
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
})
|
|
209
|
+
} else {
|
|
210
|
+
const index = this.$helper.searchArray(this.genItems, this.value, this.modelValue[this.value])
|
|
211
|
+
if (index === false) {
|
|
212
|
+
this.$emit('update:modelValue', null)
|
|
213
|
+
return []
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
186
217
|
if (this.modelValue !== undefined && this.modelValue !== null) {
|
|
187
218
|
if (this.$helper.ifHas(this.modelValue, false, this.text)) {
|
|
188
219
|
return [this.modelValue]
|
|
@@ -210,6 +241,7 @@ export default {
|
|
|
210
241
|
return this.modelValue
|
|
211
242
|
}
|
|
212
243
|
}
|
|
244
|
+
this.$emit('update:modelValue', null)
|
|
213
245
|
return []
|
|
214
246
|
},
|
|
215
247
|
handleChip(e, key) {
|
|
@@ -310,7 +342,7 @@ export default {
|
|
|
310
342
|
|
|
311
343
|
</script>
|
|
312
344
|
<style lang="scss">
|
|
313
|
-
@import "
|
|
345
|
+
@import "../../../style/include";
|
|
314
346
|
|
|
315
347
|
$min-height: 40px;
|
|
316
348
|
.#{$prefix}select-container {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * as rTelInput from './index.vue'
|
|
2
|
+
export * as l_textInput from '../textInput/index.js'
|
|
3
|
+
export * as l_modal from '../../modal/index.js'
|
|
4
|
+
export * as l_card from '../../card/index.js'
|
|
5
|
+
export * as l_list from '../../list/index.js'
|
|
6
|
+
export * as l_spacer from '../../container/spacer.js'
|
|
7
|
+
export * as l_btn from '../../button/index.js'
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script>
|
|
42
|
-
import allCountries from './assets/all-countries.js'
|
|
43
42
|
|
|
44
43
|
export default {
|
|
45
44
|
name: 'inputTel',
|
|
@@ -77,8 +76,10 @@ export default {
|
|
|
77
76
|
}
|
|
78
77
|
},
|
|
79
78
|
mounted() {
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
import('./assets/all-countries.js').then((d)=>{
|
|
80
|
+
this.countries = d.default;
|
|
81
|
+
this.initializeCountry()
|
|
82
|
+
})
|
|
82
83
|
},
|
|
83
84
|
created() {
|
|
84
85
|
if (this.modelValue) {
|
|
@@ -106,7 +107,7 @@ export default {
|
|
|
106
107
|
}
|
|
107
108
|
},
|
|
108
109
|
findCountry(iso = '') {
|
|
109
|
-
return
|
|
110
|
+
return this.countries.find(country => country.iso2 === iso)
|
|
110
111
|
},
|
|
111
112
|
|
|
112
113
|
choose(country) {
|
|
@@ -116,7 +117,6 @@ export default {
|
|
|
116
117
|
},
|
|
117
118
|
reset() {
|
|
118
119
|
this.search = ''
|
|
119
|
-
this.countries = allCountries
|
|
120
120
|
this.open = false
|
|
121
121
|
},
|
|
122
122
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * as rTextEditor from './index.vue'
|
|
2
|
+
export * as l_textInput from '../textInput/index.js'
|
|
3
|
+
export * as l_selectInput from '../selectInput/index.js'
|
|
4
|
+
export * as l_fileInput from '../fileInput/index.js'
|
|
5
|
+
export * as l_switchInput from '../switchInput/index.js'
|
|
6
|
+
export * as l_numberInput from '../numberInput/index.js'
|
|
7
|
+
export * as l_form from '../index.js'
|
|
8
|
+
export * as l_modal from '../../modal/index.js'
|
|
9
|
+
export * as l_img from '../../img/index.js'
|
|
10
|
+
export * as l_btn from '../../button/index.js'
|
|
11
|
+
export * as l_btn_group from '../../button/buttonGroup.js'
|
|
12
|
+
export * as l_icon from '../../icon/index.js'
|
|
13
|
+
export * as l_container from '../../container/index.js'
|
|
14
|
+
export * as l_row from '../../container/row.js'
|
|
15
|
+
export * as l_col from '../../container/col.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as rTextEditorPreview from './preview.vue'
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div ref="editorPreview" :class="`${$r.prefix}text-editor
|
|
2
|
+
<div ref="editorPreview" :class="`${$r.prefix}text-editor text-editor-preview`"
|
|
3
|
+
v-html="$helper.cleanXss(text)"></div>
|
|
3
4
|
</template>
|
|
4
5
|
|
|
5
6
|
<script>
|
|
6
|
-
|
|
7
|
+
import './style.scss'
|
|
7
8
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
export default {
|
|
10
|
+
name: "law",
|
|
11
|
+
props: {
|
|
12
|
+
text: String
|
|
13
|
+
},
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
id: null,
|
|
17
|
+
imgs: []
|
|
18
|
+
}
|
|
19
|
+
},
|
|
19
20
|
mounted() {
|
|
20
21
|
this.id=setTimeout(() => {
|
|
21
22
|
this.imgs = this.$refs.editorPreview.querySelectorAll('img')
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
@import '../../../style/include';
|
|
2
2
|
|
|
3
3
|
.#{$prefix}text-editor {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
&:not(.text-editor-preview) {
|
|
5
|
+
background-color: var(--color-sheet-container);
|
|
6
|
+
margin-top: 20px;
|
|
7
|
+
}
|
|
6
8
|
|
|
7
9
|
&.input-tile {
|
|
8
10
|
border-radius: map-get($borders, 'sm');
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
56
|
<script>
|
|
57
|
-
import
|
|
57
|
+
import {defineAsyncComponent} from 'vue'
|
|
58
58
|
|
|
59
59
|
export default {
|
|
60
60
|
name: "r-time-picker",
|
|
61
|
-
components: {Timepicker},
|
|
61
|
+
components: {Timepicker:defineAsyncComponent(()=>import('./timepicker.vue'))},
|
|
62
62
|
props: {
|
|
63
63
|
disableTime: {
|
|
64
64
|
type: Function, default: () => {
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
</template>
|
|
66
66
|
|
|
67
67
|
<script>
|
|
68
|
-
import
|
|
68
|
+
import {defineAsyncComponent} from 'vue'
|
|
69
69
|
|
|
70
70
|
export default {
|
|
71
71
|
name: "r-time-picker-range",
|
|
72
|
-
components: {Timepicker},
|
|
72
|
+
components: {Timepicker:defineAsyncComponent(()=>import('./timepicker.vue'))},
|
|
73
73
|
props: {
|
|
74
74
|
withSec: Boolean,
|
|
75
75
|
noOverlay: Boolean,
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * as rFormCreator from './index.vue'
|
|
2
|
+
export * as l_btn from '../button/index.js'
|
|
3
|
+
export * as l_card from '../card/index.js'
|
|
4
|
+
export * as l_container from '../container/index.js'
|
|
5
|
+
export * as l_row from '../container/row.js'
|
|
6
|
+
export * as l_col from '../container/col.js'
|
|
7
|
+
export * as l_message from '../message/index.js'
|
|
8
|
+
export * as l_form from '../form/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as rHtml2pdfPageBreak from './pageBreak.vue'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as rIcon from './index.vue'
|
package/components/img/index.vue
CHANGED
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
</div>
|
|
25
25
|
</template>
|
|
26
26
|
<script>
|
|
27
|
-
import
|
|
27
|
+
import {defineAsyncComponent} from 'vue'
|
|
28
28
|
|
|
29
29
|
export default {
|
|
30
30
|
name: 'r-img',
|
|
31
|
-
components: {SvgImg},
|
|
31
|
+
components: {SvgImg:defineAsyncComponent(()=>import('./svgImg.vue'))},
|
|
32
32
|
props: {
|
|
33
33
|
src: {
|
|
34
34
|
type: String,
|