renusify 1.4.2 → 1.4.4
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 +1 -10
- package/components/chart/worldMap.vue +293 -34
- package/components/chip/style.scss +0 -1
- package/components/codeEditor/highlightCss.vue +10 -112
- package/components/codeEditor/highlightHtml.vue +20 -159
- package/components/codeEditor/highlightJs.vue +14 -243
- package/components/codeEditor/index.vue +37 -57
- package/components/codeEditor/mixin.js +186 -0
- package/components/cropper/index.vue +2 -1
- package/components/form/camInput.vue +6 -2
- package/components/form/input.vue +1 -1
- package/components/form/json/index.vue +113 -65
- package/components/form/mask-input.vue +2 -2
- package/components/form/text-area.vue +1 -1
- package/components/form/text-editor/index.vue +0 -1
- package/components/form/timepicker/index.vue +18 -16
- package/components/form/unit-input.vue +1 -0
- package/components/formCreator/index.vue +7 -20
- package/components/img/index.vue +18 -18
- package/components/index.js +2 -2
- package/components/infinite/index.vue +9 -6
- package/components/map/index.vue +52 -20
- package/components/map/leaflet.css +511 -397
- package/components/map/route.vue +570 -560
- package/components/map/select.vue +64 -48
- package/components/message/index.vue +22 -21
- package/components/modal/index.vue +76 -17
- package/components/modal/style.scss +21 -16
- package/components/{app/notify → notify}/index.vue +21 -29
- package/components/{app/notify → notify}/notification.vue +10 -10
- package/components/notify/notify.js +27 -0
- package/components/searchBox/index.vue +30 -12
- package/components/slider/index.vue +16 -12
- package/components/table/index.vue +378 -379
- package/components/table/style.scss +1 -4
- package/components/tabs/index.vue +9 -23
- package/components/timeAgo/index.vue +4 -1
- package/components/tour/index.vue +237 -222
- package/components/tree/index.vue +135 -136
- package/components/tree/tree-element.vue +17 -3
- package/directive/drag/index.js +5 -5
- package/directive/index.js +1 -2
- package/directive/mask/index.js +1 -4
- package/directive/skeleton/index.js +27 -0
- package/directive/skeleton/style.scss +37 -0
- package/directive/sortable/index.js +3 -3
- package/directive/title/index.js +2 -3
- package/directive/touch/index.js +2 -4
- package/index.js +14 -9
- package/package.json +1 -1
- package/style/transitions.scss +6 -116
- package/tools/helper.js +1 -22
- package/components/app/notify/notify.js +0 -28
package/components/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const list = {
|
|
2
2
|
'r-app': {'p': 'app/index.vue', 'c': ['r-btn', 'r-icon', 'r-spacer'], 'd': []},
|
|
3
|
+
'r-notify': {'p': 'notify/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
|
|
3
4
|
'r-avatar': {'p': 'avatar/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
|
|
4
5
|
'r-toolbar': {
|
|
5
6
|
'p': 'bar/toolbar/index.vue',
|
|
@@ -23,7 +24,7 @@ const list = {
|
|
|
23
24
|
},
|
|
24
25
|
'r-card': {'p': 'card/index.vue', 'c': [], 'd': ['ripple']},
|
|
25
26
|
'r-chart': {'p': 'chart/chart.vue', 'c': [], 'd': []},
|
|
26
|
-
'r-world-map': {'p': 'chart/worldMap.vue', 'c': [], 'd': []},
|
|
27
|
+
'r-world-map': {'p': 'chart/worldMap.vue', 'c': ['r-float'], 'd': []},
|
|
27
28
|
'r-chat': {
|
|
28
29
|
'p': 'chat/index.vue',
|
|
29
30
|
'c': ['r-btn', 'r-icon', 'r-progress-circle', 'r-img'],
|
|
@@ -146,7 +147,6 @@ const list = {
|
|
|
146
147
|
'c': ['r-progress-line', 'r-card', 'r-list', 'r-btn', 'r-icon', 'r-select-input'],
|
|
147
148
|
'd': ['click-outside']
|
|
148
149
|
},
|
|
149
|
-
'r-skeleton': {'p': 'skeleton/index.vue', 'c': [], 'd': []},
|
|
150
150
|
'r-slider': {'p': 'slider/index.vue', 'c': ['r-progress-line', 'r-btn', 'r-icon'], 'd': ['touch']},
|
|
151
151
|
'r-swiper': {'p': 'swiper/index.vue', 'c': [], 'd': ['touch']},
|
|
152
152
|
'r-table': {
|
|
@@ -13,17 +13,19 @@
|
|
|
13
13
|
</r-col>
|
|
14
14
|
</r-row>
|
|
15
15
|
</r-container>
|
|
16
|
-
<r-infinite-div
|
|
16
|
+
<r-infinite-div class="pt-0"
|
|
17
17
|
:url="url"
|
|
18
18
|
:height="height"
|
|
19
19
|
:query="query"
|
|
20
20
|
:live-timer="liveTimer"
|
|
21
|
-
|
|
22
|
-
:
|
|
21
|
+
:is-chat="isChat"
|
|
22
|
+
:headers="headers"
|
|
23
|
+
:live="live"
|
|
24
|
+
>
|
|
23
25
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
<template v-slot="{item}">
|
|
27
|
+
<slot v-bind:item="item"></slot>
|
|
28
|
+
</template>
|
|
27
29
|
|
|
28
30
|
</r-infinite-div>
|
|
29
31
|
</r-card>
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
default: 10000,
|
|
60
62
|
type: Number
|
|
61
63
|
},
|
|
64
|
+
headers: Object
|
|
62
65
|
},
|
|
63
66
|
data() {
|
|
64
67
|
return {
|
package/components/map/index.vue
CHANGED
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div ref="map"
|
|
3
|
+
:style="{
|
|
4
|
+
'--map-image-layers':`url(${iconLayers})`
|
|
5
|
+
}"
|
|
3
6
|
:class="{[`${$r.prefix}map`]:true,'map-dark': dark, 'attribution-show': attribution }"
|
|
4
7
|
>
|
|
5
8
|
<div class="map-search" v-if="searchBox">
|
|
6
9
|
<r-search-box
|
|
7
10
|
:label="$t('search','renusify')"
|
|
8
|
-
@select="go"
|
|
9
|
-
url="https://nominatim.openstreetmap.org/search.php?polygon_geojson=0&accept-language=fa&countrycodes=IR&format=jsonv2"
|
|
10
|
-
query="q"
|
|
11
|
-
no-overlay
|
|
12
|
-
inputControlClass="sheet"
|
|
13
11
|
:notFoundMsg="$t('map_not_found','renusify')"
|
|
12
|
+
inputClass="sheet"
|
|
13
|
+
no-overlay
|
|
14
|
+
query="q"
|
|
15
|
+
url="https://nominatim.openstreetmap.org/search.php?polygon_geojson=0&accept-language=fa&countrycodes=IR&format=jsonv2"
|
|
16
|
+
@select="go"
|
|
14
17
|
>
|
|
15
18
|
<template v-slot="{ item }">
|
|
16
19
|
{{ item["display_name"] }}
|
|
@@ -21,20 +24,20 @@
|
|
|
21
24
|
|
|
22
25
|
<r-btn
|
|
23
26
|
v-if="meLocation"
|
|
27
|
+
:loading="loading"
|
|
24
28
|
class="map-location color-white color-primary-text"
|
|
25
29
|
icon
|
|
26
30
|
@click.prevent="showConfirm"
|
|
27
|
-
:loading="loading"
|
|
28
31
|
>
|
|
29
32
|
<r-icon v-html="$r.icons.crosshairs_gps"></r-icon>
|
|
30
33
|
</r-btn>
|
|
31
34
|
<r-btn
|
|
32
|
-
class="map-attribution color-white color-
|
|
33
|
-
@click.prevent="attribution = !attribution"
|
|
34
|
-
size="x-small"
|
|
35
|
+
class="map-attribution color-white color-black-text"
|
|
35
36
|
icon
|
|
37
|
+
size="x-small"
|
|
38
|
+
@click.prevent="attribution = !attribution"
|
|
36
39
|
>
|
|
37
|
-
|
|
40
|
+
C
|
|
38
41
|
</r-btn>
|
|
39
42
|
|
|
40
43
|
<r-confirm v-model="confirm"
|
|
@@ -54,7 +57,10 @@ export default {
|
|
|
54
57
|
center: {
|
|
55
58
|
type: Array,
|
|
56
59
|
default: () => {
|
|
57
|
-
return [
|
|
60
|
+
return [
|
|
61
|
+
35.69973857757377,
|
|
62
|
+
51.33806092139637
|
|
63
|
+
];
|
|
58
64
|
}
|
|
59
65
|
},
|
|
60
66
|
markers: {
|
|
@@ -68,10 +74,13 @@ export default {
|
|
|
68
74
|
layerControl: {type: Boolean, default: true},
|
|
69
75
|
meLocation: {type: Boolean, default: true},
|
|
70
76
|
disableMove: {type: Boolean, default: false},
|
|
71
|
-
darkMode: Boolean
|
|
77
|
+
darkMode: Boolean,
|
|
78
|
+
mapImageMarker: String,
|
|
79
|
+
mapImageLayers: String
|
|
72
80
|
},
|
|
73
81
|
data() {
|
|
74
82
|
return {
|
|
83
|
+
timeout_id: null,
|
|
75
84
|
dark: this.darkMode,
|
|
76
85
|
attribution: false,
|
|
77
86
|
confirm: false,
|
|
@@ -84,26 +93,37 @@ export default {
|
|
|
84
93
|
license: '© | <a href="https://leafletjs.com" target="_blank">Leaflet</a> | <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors | Renusify'
|
|
85
94
|
};
|
|
86
95
|
},
|
|
87
|
-
emits:['update:modelValue','leaflet','map'],
|
|
96
|
+
emits: ['update:modelValue', 'leaflet', 'map'],
|
|
88
97
|
created() {
|
|
89
98
|
if (!this.$r.icons.crosshairs_gps) {
|
|
90
99
|
this.$r.icons.crosshairs_gps = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m-8.95 5H1v-2h2.05C3.5 6.83 6.83 3.5 11 3.05V1h2v2.05c4.17.45 7.5 3.78 7.95 7.95H23v2h-2.05c-.45 4.17-3.78 7.5-7.95 7.95V23h-2v-2.05C6.83 20.5 3.5 17.17 3.05 13M12 5a7 7 0 0 0-7 7a7 7 0 0 0 7 7a7 7 0 0 0 7-7a7 7 0 0 0-7-7Z"/></svg>'
|
|
91
100
|
}
|
|
92
|
-
if (!this.$r.icons.copyright) {
|
|
93
|
-
this.$r.icons.copyright = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M10.08 10.86c.05-.33.16-.62.3-.86c.3-.56.81-.85 1.5-.86c.45 0 .86.2 1.15.49c.28.31.47.74.47 1.17h1.8c-.02-.47-.11-.9-.3-1.3c-.15-.38-.38-.72-.68-1c-1.45-1.34-4.14-1.15-5.37.37c-1.29 1.67-1.32 4.59-.01 6.26c1.21 1.49 3.86 1.7 5.3.37c.31-.25.56-.56.76-.92c.16-.36.27-.74.28-1.15H13.5c0 .21-.07.4-.16.57c-.09.19-.21.34-.34.47c-.33.26-.72.4-1.14.4c-.36-.01-.66-.08-.89-.23a1.41 1.41 0 0 1-.59-.64c-.5-.9-.42-2.15-.3-3.14M12 2C6.5 2 2 6.5 2 12c.53 13.27 19.5 13.26 20 0c0-5.5-4.5-10-10-10m0 18c-4.41 0-8-3.59-8-8c.44-10.61 15.56-10.61 16 0c0 4.41-3.59 8-8 8Z"/></svg>'
|
|
94
|
-
}
|
|
95
101
|
},
|
|
96
102
|
async beforeMount() {
|
|
97
103
|
await this.add();
|
|
98
104
|
},
|
|
99
105
|
watch: {
|
|
100
|
-
modelValue: function () {
|
|
106
|
+
modelValue: function (n, o) {
|
|
101
107
|
this.map.flyTo(this.modelValue);
|
|
102
108
|
},
|
|
103
109
|
markers: function () {
|
|
104
110
|
this.printMarkers()
|
|
105
111
|
}
|
|
106
112
|
},
|
|
113
|
+
computed: {
|
|
114
|
+
iconLayers() {
|
|
115
|
+
if (this.mapImageLayers) {
|
|
116
|
+
return this.mapImageLayers
|
|
117
|
+
}
|
|
118
|
+
return require('./images/layers.png')
|
|
119
|
+
},
|
|
120
|
+
iconMarker() {
|
|
121
|
+
if (this.mapImageMarker) {
|
|
122
|
+
return this.mapImageMarker
|
|
123
|
+
}
|
|
124
|
+
return require('./images/marker-icon.png')
|
|
125
|
+
}
|
|
126
|
+
},
|
|
107
127
|
methods: {
|
|
108
128
|
showConfirm() {
|
|
109
129
|
if (this.$storage.has('map_location_access')) {
|
|
@@ -114,7 +134,7 @@ export default {
|
|
|
114
134
|
},
|
|
115
135
|
go(e) {
|
|
116
136
|
if (e.lat) {
|
|
117
|
-
this
|
|
137
|
+
this.$emit("update:modelValue", [parseFloat(e.lat), parseFloat(e.lon)]);
|
|
118
138
|
}
|
|
119
139
|
},
|
|
120
140
|
initMap() {
|
|
@@ -186,8 +206,13 @@ export default {
|
|
|
186
206
|
that.dark = that.darkMode;
|
|
187
207
|
}
|
|
188
208
|
});
|
|
189
|
-
this.map.on("move", function () {
|
|
190
|
-
|
|
209
|
+
this.map.on("move", function (e) {
|
|
210
|
+
if (e.originalEvent) {
|
|
211
|
+
clearTimeout(that.timeout_id)
|
|
212
|
+
that.timeout_id = setTimeout(() => {
|
|
213
|
+
that.$emit("update:modelValue", Object.values(that.map.getCenter()));
|
|
214
|
+
}, 100)
|
|
215
|
+
}
|
|
191
216
|
});
|
|
192
217
|
},
|
|
193
218
|
run() {
|
|
@@ -219,6 +244,13 @@ export default {
|
|
|
219
244
|
let options = {riseOnHover: true, item: item}
|
|
220
245
|
if (item.icon) {
|
|
221
246
|
options.icon = new this.L.icon(item.icon);
|
|
247
|
+
} else {
|
|
248
|
+
options.icon = new this.L.icon({
|
|
249
|
+
iconUrl: this.iconMarker,
|
|
250
|
+
iconSize: [30, 30],
|
|
251
|
+
iconAnchor: [15, 30],
|
|
252
|
+
popupAnchor: [0, -30]
|
|
253
|
+
});
|
|
222
254
|
}
|
|
223
255
|
let marker = new this.L.Marker(item.loc, options);
|
|
224
256
|
marker.addTo(this.layerGroup)
|