renusify 1.4.3 → 1.4.7
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/chip/style.scss +0 -1
- package/components/codeEditor/highlightHtml.vue +8 -2
- package/components/codeEditor/index.vue +13 -55
- package/components/codeEditor/mixin.js +18 -4
- package/components/form/camInput.vue +6 -2
- package/components/form/input.vue +2 -2
- package/components/form/inputTel/assets/flags.png +0 -0
- package/components/form/inputTel/assets/flags@2x.png +0 -0
- package/components/form/mask-input.vue +2 -2
- package/components/form/select.vue +1 -1
- package/components/form/text-area.vue +1 -2
- 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/index.js +1 -1
- package/components/infinite/index.vue +9 -6
- package/components/map/images/destination.png +0 -0
- package/components/map/images/layers.png +0 -0
- package/components/map/images/marker-icon.png +0 -0
- package/components/map/images/origin.png +0 -0
- package/components/map/images/point.png +0 -0
- 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 +20 -7
- package/components/modal/style.scss +17 -14
- 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 +1 -0
- package/components/table/crud/header.vue +55 -34
- package/components/table/crud/index.vue +4 -4
- package/components/table/index.vue +366 -367
- 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/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/index.js +14 -9
- package/package.json +1 -1
- package/style/transitions.scss +6 -116
- package/tools/helper.js +20 -0
- package/components/app/notify/notify.js +0 -28
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
:label="$t('add','renusify')" @update:model-value="add"></r-select-input>
|
|
40
40
|
<r-divider class="my-3"></r-divider>
|
|
41
41
|
<template v-for="(item,i) in inputs" :key="i">
|
|
42
|
-
<r-row
|
|
42
|
+
<r-row v-if="['r-text-input','r-text-area'].includes(item.option.type)" class="v-baseline">
|
|
43
43
|
<r-col class="col-5 md-3">
|
|
44
44
|
<r-select-input v-model="item.advance.action"
|
|
45
45
|
:items="[
|
|
@@ -63,17 +63,17 @@
|
|
|
63
63
|
</r-btn>
|
|
64
64
|
</r-col>
|
|
65
65
|
</r-row>
|
|
66
|
-
<r-row
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
<r-row v-else-if="'r-number-input'===item.option.type" class="v-baseline">
|
|
67
|
+
<r-col class="col-6 md-3">
|
|
68
|
+
<r-select-input v-model="item.advance.action"
|
|
69
|
+
:items="[
|
|
70
70
|
{name:$t('advance_search_equal','renusify'),value:'e'},
|
|
71
71
|
{name:$t('advance_search_not_equal','renusify'),value:'ne'},
|
|
72
72
|
{name:$t('advance_search_gt','renusify'),value:'gt'},
|
|
73
73
|
{name:$t('advance_search_gte','renusify'),value:'gte'},
|
|
74
74
|
{name:$t('advance_search_lt','renusify'),value:'lt'},
|
|
75
75
|
{name:$t('advance_search_lte','renusify'),value:'lte'}]"
|
|
76
|
-
|
|
76
|
+
firstSelect
|
|
77
77
|
justValue
|
|
78
78
|
disableSearch
|
|
79
79
|
:label="$t('advance_search_operator','renusify')"></r-select-input>
|
|
@@ -87,17 +87,17 @@
|
|
|
87
87
|
</r-btn>
|
|
88
88
|
</r-col>
|
|
89
89
|
</r-row>
|
|
90
|
-
<r-row
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
90
|
+
<r-row v-else-if="'r-switch-input'===item.option.type" class="v-baseline">
|
|
91
|
+
<r-col class="col-5 md-3">
|
|
92
|
+
<r-select-input v-model="item.advance.action"
|
|
93
|
+
:items="[
|
|
94
94
|
{name:$t('advance_search_equal','renusify'),value:'e'}
|
|
95
95
|
]"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
justValue
|
|
97
|
+
firstSelect
|
|
98
|
+
disableSearch
|
|
99
|
+
:label="$t('advance_search_operator','renusify')"></r-select-input>
|
|
100
|
+
</r-col>
|
|
101
101
|
<r-col class="col-6 md-8">
|
|
102
102
|
<r-switch-input v-model="item.advance.search" :label="item.text"></r-switch-input>
|
|
103
103
|
</r-col>
|
|
@@ -107,17 +107,17 @@
|
|
|
107
107
|
</r-btn>
|
|
108
108
|
</r-col>
|
|
109
109
|
</r-row>
|
|
110
|
-
<r-row
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
<r-row v-else-if="'r-select-input'===item.option.type" class="v-baseline">
|
|
111
|
+
<r-col class="col-5 md-3">
|
|
112
|
+
<r-select-input v-model="item.advance.action"
|
|
113
|
+
:items="[
|
|
114
114
|
{name:$t('advance_search_in','renusify'),value:'in'},
|
|
115
115
|
{name:$t('advance_search_not_in','renusify'),value:'nin'}
|
|
116
116
|
]"
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
117
|
+
justValue
|
|
118
|
+
firstSelect
|
|
119
|
+
disableSearch
|
|
120
|
+
:label="$t('advance_search_operator','renusify')"></r-select-input>
|
|
121
121
|
</r-col>
|
|
122
122
|
<r-col class="col-6 md-8">
|
|
123
123
|
<r-select-input v-model="item.advance.search" :label="item.text" :items="item.option.items"
|
|
@@ -129,17 +129,38 @@
|
|
|
129
129
|
</r-btn>
|
|
130
130
|
</r-col>
|
|
131
131
|
</r-row>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
<r-row v-else-if="'r-json-input'===item.option.type" class="v-baseline">
|
|
133
|
+
<r-col class="col-5 md-3">
|
|
134
|
+
<r-select-input v-model="item.advance.action"
|
|
135
|
+
:items="[
|
|
136
|
+
{name:$t('advance_search_equal','renusify'),value:'e'},
|
|
137
|
+
{name:$t('advance_search_not_equal','renusify'),value:'ne'}
|
|
138
|
+
]"
|
|
139
|
+
:label="$t('advance_search_operator','renusify')"
|
|
140
|
+
disableSearch
|
|
141
|
+
firstSelect
|
|
142
|
+
justValue></r-select-input>
|
|
143
|
+
</r-col>
|
|
144
|
+
<r-col class="col-6 md-8">
|
|
145
|
+
<r-json-input v-model="item.advance.search" :label="item.text"></r-json-input>
|
|
146
|
+
</r-col>
|
|
147
|
+
<r-col class="col-1">
|
|
148
|
+
<r-btn class="color-error" icon @click.prevent="del(i)">
|
|
149
|
+
<r-icon v-html="$r.icons.delete"></r-icon>
|
|
150
|
+
</r-btn>
|
|
151
|
+
</r-col>
|
|
152
|
+
</r-row>
|
|
153
|
+
<r-row v-else-if="['r-date-input','r-time-ago'].includes(item.option.type)" class="v-baseline">
|
|
154
|
+
<r-col class="col-5 md-3" :a="item.advance.t='date'">
|
|
155
|
+
<r-select-input v-model="item.advance.action"
|
|
156
|
+
:items="[
|
|
136
157
|
{name:$t('advance_search_gt','renusify'),value:'gt'},
|
|
137
158
|
{name:$t('advance_search_gte','renusify'),value:'gte'},
|
|
138
159
|
{name:$t('advance_search_lt','renusify'),value:'lt'},
|
|
139
160
|
{name:$t('advance_search_lte','renusify'),value:'lte'}
|
|
140
161
|
]"
|
|
141
|
-
|
|
142
|
-
|
|
162
|
+
justValue
|
|
163
|
+
disableSearch
|
|
143
164
|
firstSelect
|
|
144
165
|
:label="$t('advance_search_operator','renusify')"></r-select-input>
|
|
145
166
|
</r-col>
|
|
@@ -210,9 +231,9 @@
|
|
|
210
231
|
add($event) {
|
|
211
232
|
this.inputs.push($event)
|
|
212
233
|
$event.advance = {}
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
234
|
+
if ($event.option.type === 'r-switch-input') {
|
|
235
|
+
$event.advance.search = false
|
|
236
|
+
}
|
|
216
237
|
this.select = []
|
|
217
238
|
}
|
|
218
239
|
},
|
|
@@ -220,7 +241,7 @@
|
|
|
220
241
|
header() {
|
|
221
242
|
let res = []
|
|
222
243
|
this.headerTable.forEach((item) => {
|
|
223
|
-
if (['text-input', 'text-area', 'number', 'switch', 'select', 'date-input', 'time-ago'].includes(item.option.type)) {
|
|
244
|
+
if (['r-text-input', 'r-text-area', 'r-number-input', 'r-switch-input', 'r-select-input', 'r-json-input', 'r-date-input', 'r-time-ago'].includes(item.option.type)) {
|
|
224
245
|
res.push(item)
|
|
225
246
|
}
|
|
226
247
|
})
|
|
@@ -228,4 +249,4 @@
|
|
|
228
249
|
}
|
|
229
250
|
}
|
|
230
251
|
}
|
|
231
|
-
</script>
|
|
252
|
+
</script>
|
|
@@ -102,14 +102,14 @@
|
|
|
102
102
|
<r-icon v-html="props.opened!==props.key?$r.icons.plus:$r.icons.minus"></r-icon>
|
|
103
103
|
</r-btn>
|
|
104
104
|
<slot name="cell" :value="value" :item="props.item" :editItem="editItem">
|
|
105
|
-
<div v-if="value['option']['type']==='date-input' && props.item[value['value']]!==undefined">
|
|
105
|
+
<div v-if="value['option']['type']==='r-date-input' && props.item[value['value']]!==undefined">
|
|
106
106
|
{{ $d(new Date(props.item[value['value']]), value['option']['format'] || 'short') }}
|
|
107
107
|
</div>
|
|
108
108
|
<div
|
|
109
|
-
v-else-if="value['option']['type']==='time-ago' && props.item[value['value']]!==undefined">
|
|
109
|
+
v-else-if="value['option']['type']==='r-time-ago' && props.item[value['value']]!==undefined">
|
|
110
110
|
<r-time-ago :time="props.item[value['value']]"></r-time-ago>
|
|
111
111
|
</div>
|
|
112
|
-
<div v-else-if="value['option']['type']==='switch-input'">
|
|
112
|
+
<div v-else-if="value['option']['type']==='r-switch-input'">
|
|
113
113
|
<r-switch-input
|
|
114
114
|
:readonly="value['option']['formInput']===false"
|
|
115
115
|
:modelValue="props.item[value['value']]"
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
class="mt-0"
|
|
118
118
|
></r-switch-input>
|
|
119
119
|
</div>
|
|
120
|
-
<div v-else-if="value['option']['type'] === 'number-input'">
|
|
120
|
+
<div v-else-if="value['option']['type'] === 'r-number-input'">
|
|
121
121
|
{{ $n(props.item[value["value"]]) }}
|
|
122
122
|
</div>
|
|
123
123
|
<div v-else-if="value['option']['type']!=='action'">
|