renusify 1.4.8 → 2.0.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/app/style.scss +2 -10
- package/components/app/toast/toast.vue +4 -3
- package/components/bar/bottomNavigationCircle.vue +5 -5
- package/components/bar/scss/bottomNav.scss +4 -5
- package/components/bar/scss/toolbar.scss +5 -3
- package/components/breadcrumb/style.scss +1 -1
- package/components/button/index.vue +4 -4
- package/components/button/style.scss +19 -29
- package/components/calendar/index.vue +21 -20
- package/components/card/style.scss +3 -5
- package/components/chat/chatInput.vue +3 -2
- package/components/chat/chatMsg.vue +3 -3
- package/components/chat/index.vue +2 -1
- package/components/chip/index.vue +1 -1
- package/components/chip/style.scss +24 -10
- package/components/codeEditor/index.vue +5 -4
- package/components/confirm/index.vue +3 -3
- package/components/container/style.scss +1 -1
- package/components/form/checkbox.vue +3 -2
- package/components/form/colorPicker/index.vue +8 -3
- package/components/form/colorPicker/picker.vue +2 -6
- package/components/form/datePicker/index.vue +7 -9
- package/components/form/form.vue +7 -4
- package/components/form/group-input.vue +1 -1
- package/components/form/input.vue +29 -18
- package/components/form/inputTel/index.vue +2 -32
- package/components/form/json/JsonView.vue +2 -2
- package/components/form/json/index.vue +5 -5
- package/components/form/radioInput.vue +2 -2
- package/components/form/range.vue +2 -2
- package/components/form/rating.vue +4 -1
- package/components/form/select.vue +1 -1
- package/components/form/switch.vue +1 -7
- package/components/form/text-editor/index.vue +15 -15
- package/components/form/text-editor/style.scss +6 -6
- package/components/form/timepicker/index.vue +2 -0
- package/components/form/timepicker/timepicker.vue +3 -4
- package/components/form/unit-input.vue +3 -3
- package/components/formCreator/index.vue +1 -1
- package/components/icon/style.scss +1 -4
- package/components/img/index.vue +1 -1
- package/components/img/svgImg.vue +5 -3
- package/components/infinite/div.vue +2 -2
- package/components/infinite/index.vue +1 -1
- package/components/infinite/page.vue +2 -2
- package/components/list/index.vue +2 -2
- package/components/list/style.scss +5 -11
- package/components/map/index.vue +2 -2
- package/components/map/route.vue +3 -3
- package/components/menu/index.vue +1 -1
- package/components/modal/style.scss +1 -1
- package/components/notify/notification.vue +2 -2
- package/components/progress/line.vue +26 -27
- package/components/progress/style.scss +5 -5
- package/components/searchBox/index.vue +4 -4
- package/components/table/crud/header.vue +1 -1
- package/components/table/index.vue +4 -3
- package/components/table/style.scss +19 -16
- package/components/timeline/index.vue +1 -1
- package/components/tour/index.vue +5 -5
- package/components/tree/index.vue +0 -1
- package/package.json +1 -1
- package/style/app.scss +40 -34
- package/style/base.scss +45 -51
- package/style/colors.scss +48 -39
- package/style/mixins/index.scss +17 -6
- package/style/variables/base.scss +84 -69
- package/style/variables/color.scss +1 -2
package/components/form/form.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<form :class="`${$r.prefix}form`">
|
|
2
|
+
<form :class="`${$r.prefix}form`" @submit.prevent="submit">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
</form>
|
|
5
5
|
</template>
|
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
props: {
|
|
19
19
|
modelValue: Boolean
|
|
20
20
|
},
|
|
21
|
-
emits:['update:modelValue'],
|
|
21
|
+
emits: ['update:modelValue', 'submit'],
|
|
22
22
|
data: () => ({
|
|
23
23
|
inputs: [],
|
|
24
24
|
watchers: [],
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
}),
|
|
27
27
|
watch: {
|
|
28
28
|
errorBag: {
|
|
29
|
-
handler
|
|
29
|
+
handler(val) {
|
|
30
30
|
const errors = Object.values(val).includes(true)
|
|
31
31
|
this.$emit('update:modelValue', !errors)
|
|
32
32
|
},
|
|
@@ -36,7 +36,10 @@ export default {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
methods: {
|
|
39
|
-
|
|
39
|
+
submit() {
|
|
40
|
+
this.$emit('submit', true)
|
|
41
|
+
},
|
|
42
|
+
watchInput(input) {
|
|
40
43
|
const watcher = input => {
|
|
41
44
|
return input.$watch('hasError', val => {
|
|
42
45
|
this.errorBag[input.uid] = val
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:model-value="modelValue"
|
|
4
4
|
hide>
|
|
5
5
|
<div class="w-full">
|
|
6
|
-
<span v-if="label"
|
|
6
|
+
<span v-if="label">{{ label }}</span>
|
|
7
7
|
<div class="group-holder" v-for="(item,i) in modelValue" :key="i">
|
|
8
8
|
<div class="group-slot">
|
|
9
9
|
<slot :item="item" :index="i" :disableDel="disDel">
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
66
66
|
},
|
|
67
67
|
validateOnBlur: {type: Boolean, default: undefined}
|
|
68
68
|
},
|
|
69
|
-
emits:['pre-icon','icon','update:modelValue'],
|
|
69
|
+
emits: ['pre-icon', 'icon', 'update:modelValue'],
|
|
70
70
|
data() {
|
|
71
71
|
return {
|
|
72
72
|
uid: 'input_' + this.$helper.uniqueId(),
|
|
@@ -304,32 +304,38 @@ export default {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
307
|
+
&:not(.input-disabled) {
|
|
308
|
+
input,
|
|
309
|
+
textarea {
|
|
310
|
+
color: var(--color-on-sheet)
|
|
312
311
|
}
|
|
312
|
+
}
|
|
313
313
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
color: var(--color-
|
|
314
|
+
&:not(.input-disabled) {
|
|
315
|
+
.label, .#{$prefix}icon, .#{$prefix}btn {
|
|
316
|
+
color: var(--color-on-sheet-low)
|
|
317
317
|
}
|
|
318
|
+
}
|
|
318
319
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
input::placeholder,
|
|
321
|
+
textarea::placeholder {
|
|
322
|
+
color: var(--color-on-sheet-low)
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&.input-disabled {
|
|
326
|
+
opacity: 0.38;
|
|
327
|
+
pointer-events: none;
|
|
328
|
+
|
|
329
|
+
* {
|
|
330
|
+
color: var(--color-on-sheet)
|
|
323
331
|
}
|
|
324
332
|
|
|
325
333
|
.input-control {
|
|
326
|
-
|
|
334
|
+
background-color: var(--color-sheet-container);
|
|
327
335
|
}
|
|
328
|
-
|
|
329
|
-
&.input-disabled {
|
|
330
|
-
pointer-events: none;
|
|
331
336
|
}
|
|
332
337
|
|
|
338
|
+
|
|
333
339
|
input {
|
|
334
340
|
max-height: 32px
|
|
335
341
|
}
|
|
@@ -369,6 +375,9 @@ export default {
|
|
|
369
375
|
align-items: flex-start;
|
|
370
376
|
justify-content: center;
|
|
371
377
|
position: relative;
|
|
378
|
+
border: solid 1px var(--color-sheet-low);
|
|
379
|
+
background-color: var(--color-sheet-container-highest);
|
|
380
|
+
|
|
372
381
|
.after-icon {
|
|
373
382
|
position: absolute;
|
|
374
383
|
cursor: pointer;
|
|
@@ -380,6 +389,7 @@ export default {
|
|
|
380
389
|
}
|
|
381
390
|
|
|
382
391
|
}
|
|
392
|
+
|
|
383
393
|
.pre-icon {
|
|
384
394
|
position: absolute;
|
|
385
395
|
cursor: pointer;
|
|
@@ -409,6 +419,7 @@ export default {
|
|
|
409
419
|
border: unset !important;
|
|
410
420
|
height: auto;
|
|
411
421
|
padding: 0;
|
|
422
|
+
background-color: unset !important;
|
|
412
423
|
}
|
|
413
424
|
}
|
|
414
425
|
|
|
@@ -534,4 +545,4 @@ export default {
|
|
|
534
545
|
}
|
|
535
546
|
|
|
536
547
|
|
|
537
|
-
</style>
|
|
548
|
+
</style>
|
|
@@ -51,10 +51,8 @@ export default {
|
|
|
51
51
|
type: String
|
|
52
52
|
},
|
|
53
53
|
defaultCountry: {
|
|
54
|
-
// Default country code, ie: 'AU'
|
|
55
|
-
// Will override the current country of user
|
|
56
54
|
type: String,
|
|
57
|
-
default: ''
|
|
55
|
+
default: 'US'
|
|
58
56
|
},
|
|
59
57
|
tile: {type: Boolean, default: undefined},
|
|
60
58
|
required: Boolean,
|
|
@@ -100,37 +98,12 @@ export default {
|
|
|
100
98
|
},
|
|
101
99
|
methods: {
|
|
102
100
|
initializeCountry() {
|
|
103
|
-
/**
|
|
104
|
-
* 1. Use default country if passed from parent
|
|
105
|
-
*/
|
|
106
101
|
if (this.defaultCountry) {
|
|
107
102
|
const defaultCountry = this.findCountry(this.defaultCountry)
|
|
108
103
|
if (defaultCountry) {
|
|
109
104
|
this.activeCountry = defaultCountry
|
|
110
|
-
return
|
|
111
105
|
}
|
|
112
106
|
}
|
|
113
|
-
/**
|
|
114
|
-
* 2. Check if fetching country based on user's IP is allowed, set it as the default country
|
|
115
|
-
*/
|
|
116
|
-
fetch('http://ip-api.com/json/', {
|
|
117
|
-
method: 'get'
|
|
118
|
-
}).then((response) => {
|
|
119
|
-
const that = this
|
|
120
|
-
response.json().then(function (data) {
|
|
121
|
-
that.activeCountry = that.findCountry(data.countryCode) || that.activeCountry
|
|
122
|
-
})
|
|
123
|
-
}).catch((error) => {
|
|
124
|
-
return Promise.reject(error)
|
|
125
|
-
})
|
|
126
|
-
},
|
|
127
|
-
/**
|
|
128
|
-
* Get the list of countries from the list of iso2 code
|
|
129
|
-
*/
|
|
130
|
-
getCountries(list = []) {
|
|
131
|
-
return list
|
|
132
|
-
.map(countryCode => this.findCountry(countryCode))
|
|
133
|
-
.filter(Boolean)
|
|
134
107
|
},
|
|
135
108
|
findCountry(iso = '') {
|
|
136
109
|
return allCountries.find(country => country.iso2 === iso)
|
|
@@ -166,9 +139,6 @@ export default {
|
|
|
166
139
|
},
|
|
167
140
|
toggleDropdown() {
|
|
168
141
|
this.open = !this.open
|
|
169
|
-
},
|
|
170
|
-
clickedOutside() {
|
|
171
|
-
this.open = false
|
|
172
142
|
}
|
|
173
143
|
}
|
|
174
144
|
}
|
|
@@ -185,7 +155,7 @@ export default {
|
|
|
185
155
|
|
|
186
156
|
.btn-country {
|
|
187
157
|
width: 120px;
|
|
188
|
-
border-color: var(--color-
|
|
158
|
+
border-color: var(--color-sheet-low)
|
|
189
159
|
|
|
190
160
|
}
|
|
191
161
|
|
|
@@ -87,10 +87,10 @@ export default {
|
|
|
87
87
|
|
|
88
88
|
.#{$prefix}json-view {
|
|
89
89
|
@include rtl() {
|
|
90
|
-
border-right: 1px solid var(--color-
|
|
90
|
+
border-right: 1px solid var(--color-sheet-low);
|
|
91
91
|
}
|
|
92
92
|
@include ltr() {
|
|
93
|
-
border-left: 1px solid var(--color-
|
|
93
|
+
border-left: 1px solid var(--color-sheet-low);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
</style>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="`${$r.prefix}json-input`">
|
|
3
3
|
<div class="d-flex v-center">
|
|
4
|
-
<r-btn v-if="!disableEditKey" class="me-1 mb-1" icon @click="modeForm=!modeForm">{}</r-btn>
|
|
4
|
+
<r-btn v-if="!disableEditKey" class="me-1 mb-1" icon @click.prevent="modeForm=!modeForm">{}</r-btn>
|
|
5
5
|
<div v-if="label">{{ label }}</div>
|
|
6
6
|
</div>
|
|
7
7
|
<div v-if="modeForm">
|
|
@@ -210,7 +210,7 @@ export default {
|
|
|
210
210
|
.#{$prefix}json-input {
|
|
211
211
|
textarea {
|
|
212
212
|
outline: none;
|
|
213
|
-
border: 1px solid var(--color-
|
|
213
|
+
border: 1px solid var(--color-sheet-low);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
.state-error {
|
|
@@ -236,9 +236,9 @@ export default {
|
|
|
236
236
|
|
|
237
237
|
textarea {
|
|
238
238
|
&::selection {
|
|
239
|
-
background-color: var(--color-
|
|
240
|
-
-webkit-text-fill-color: var(--color-
|
|
241
|
-
color: var(--color-
|
|
239
|
+
background-color: var(--color-one);
|
|
240
|
+
-webkit-text-fill-color: var(--color-one-text);
|
|
241
|
+
color: var(--color-one-text);
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
padding: 12px;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
v-html="$r.icons.check" exact></r-icon>
|
|
13
13
|
</transition>
|
|
14
14
|
</span>
|
|
15
|
-
<span class="ms-2
|
|
15
|
+
<span class="ms-2" @click="emit(item)">
|
|
16
16
|
{{ item[text] }}
|
|
17
17
|
</span>
|
|
18
18
|
</div>
|
|
@@ -74,7 +74,7 @@ export default {
|
|
|
74
74
|
cursor: pointer;
|
|
75
75
|
|
|
76
76
|
.radio-input-item {
|
|
77
|
-
border: 1px solid var(--color-
|
|
77
|
+
border: 1px solid var(--color-on-sheet-low)
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.#{$prefix}icon {
|
|
@@ -252,7 +252,7 @@ export default {
|
|
|
252
252
|
@include ltr() {
|
|
253
253
|
transform: translate(-2px, -2px);
|
|
254
254
|
}
|
|
255
|
-
border: 3px solid var(--color-
|
|
255
|
+
border: 3px solid var(--color-one) !important;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
|
|
@@ -315,7 +315,7 @@ export default {
|
|
|
315
315
|
@include ltr {
|
|
316
316
|
transform: translate(-2px, -2px);
|
|
317
317
|
}
|
|
318
|
-
border: 3px solid var(--color-
|
|
318
|
+
border: 3px solid var(--color-one) !important;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
<r-input :class="`${$r.prefix}switch`" :modelValue="lazyValue" hide>
|
|
3
3
|
<div class="switch-container" :class="{'switch-active':modelValue}">
|
|
4
4
|
<div class="switch-label me-1 mt-1"
|
|
5
|
-
:class="{
|
|
6
|
-
'color-primary-text':label2?modelValue:!modelValue
|
|
7
|
-
}"
|
|
8
5
|
>{{label}}
|
|
9
6
|
</div>
|
|
10
7
|
<div class="switch-holder" @click="toggle()">
|
|
@@ -12,9 +9,6 @@
|
|
|
12
9
|
<div class="switch-dot"></div>
|
|
13
10
|
</div>
|
|
14
11
|
<div class="switch-label ms-1 mt-1"
|
|
15
|
-
:class="{
|
|
16
|
-
'color-primary-text':label2?!modelValue:modelValue
|
|
17
|
-
}"
|
|
18
12
|
v-if="label2">{{label2}}</div>
|
|
19
13
|
</div>
|
|
20
14
|
</r-input>
|
|
@@ -87,7 +81,7 @@ emits:['update:modelValue','change'],
|
|
|
87
81
|
width: 100%;
|
|
88
82
|
height: 100%;
|
|
89
83
|
border-radius: 10px;
|
|
90
|
-
background-color: var(--color-
|
|
84
|
+
background-color: var(--color-sheet-container);
|
|
91
85
|
}
|
|
92
86
|
|
|
93
87
|
.switch-dot {
|
|
@@ -41,9 +41,8 @@
|
|
|
41
41
|
@update:model-value="addClass"></r-select-input>
|
|
42
42
|
</r-col>
|
|
43
43
|
<r-col class="col-12 ltr">
|
|
44
|
-
<span
|
|
45
|
-
<span class="color-
|
|
46
|
-
<span :class="{'color-error-text':selectElm===item}" v-else>{{item.nodeName}} > </span>
|
|
44
|
+
<span v-for="(item,i) in currentPath" :key="i" class="cursor-pointer" @click.prevent="borderd(item)">
|
|
45
|
+
<span :class="{'color-one-text':selectElm===item}">{{ item.nodeName }} > </span>
|
|
47
46
|
</span>
|
|
48
47
|
</r-col>
|
|
49
48
|
<r-col class="col-12">
|
|
@@ -259,16 +258,19 @@ export default {
|
|
|
259
258
|
items: [{text: 'HI', value: 'display-1'},
|
|
260
259
|
{text: 'HI', value: 'display-2'},
|
|
261
260
|
{text: 'HI', value: 'display-3'},
|
|
262
|
-
{text: 'HI', value: '
|
|
263
|
-
{text: 'HI', value: '
|
|
264
|
-
{text: 'HI', value: '
|
|
265
|
-
{text: 'HI', value: '
|
|
266
|
-
{text: 'HI', value: '
|
|
267
|
-
{text: 'HI', value: '
|
|
261
|
+
{text: 'HI', value: 'headline-1'},
|
|
262
|
+
{text: 'HI', value: 'headline-2'},
|
|
263
|
+
{text: 'HI', value: 'headline-3'},
|
|
264
|
+
{text: 'HI', value: 'title-1'},
|
|
265
|
+
{text: 'HI', value: 'title-2'},
|
|
266
|
+
{text: 'HI', value: 'title-3'},
|
|
267
|
+
{text: 'HI', value: 'body-1'},
|
|
268
268
|
{text: 'HI', value: 'body-2'},
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
269
|
+
{text: 'HI', value: 'body-3'},
|
|
270
|
+
{text: 'HI', value: 'label-1'},
|
|
271
|
+
{text: 'HI', value: 'label-2'},
|
|
272
|
+
{text: 'HI', value: 'label-3'},
|
|
273
|
+
]
|
|
272
274
|
},
|
|
273
275
|
'header': {
|
|
274
276
|
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M3 4h2v6h4V4h2v14H9v-6H5v6H3V4m10 4h2.31l.32-3h2l-.32 3h2l.32-3h2l-.32 3H23v2h-1.9l-.2 2H23v2h-2.31l-.32 3h-2l.32-3h-2l-.32 3h-2l.32-3H13v-2h1.9l.2-2H13V8m4.1 2l-.2 2h2l.2-2h-2Z"/></svg>',
|
|
@@ -284,8 +286,6 @@ export default {
|
|
|
284
286
|
'color': {
|
|
285
287
|
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M19 11.5s-2 2.17-2 3.5a2 2 0 0 0 2 2a2 2 0 0 0 2-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21L14.79 10m1.77-1.06L7.62 0L6.21 1.41l2.38 2.38l-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12Z"/></svg>',
|
|
286
288
|
items: [
|
|
287
|
-
{text: 'color', value: 'color-primary-text'},
|
|
288
|
-
{text: 'color', value: 'color-secondary-text'},
|
|
289
289
|
{text: 'color', value: 'color-disabled-text'},
|
|
290
290
|
{text: 'color', value: 'color-one-text'},
|
|
291
291
|
{text: 'color', value: 'color-two-text'},
|
|
@@ -370,7 +370,7 @@ export default {
|
|
|
370
370
|
return
|
|
371
371
|
}
|
|
372
372
|
this.selectElm = el
|
|
373
|
-
|
|
373
|
+
el.style.border = '1px solid var(--color-one)'
|
|
374
374
|
},
|
|
375
375
|
bordered() {
|
|
376
376
|
const a = this.getSelection()
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
.#{$prefix}text-editor {
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
.editor-content {
|
|
7
|
+
border: 1px solid var(--color-sheet-low);
|
|
8
|
+
}
|
|
9
9
|
|
|
10
|
-
@include typography($headings, 'body-
|
|
10
|
+
@include typography($headings, 'body-2');
|
|
11
11
|
|
|
12
12
|
a {
|
|
13
|
-
color: var(--color-
|
|
13
|
+
color: var(--color-one)
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
img {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.editor-content {
|
|
21
|
-
color: var(--color-
|
|
21
|
+
color: var(--color-on-sheet);
|
|
22
22
|
transition: all .3s ease;
|
|
23
23
|
min-height: 200px;
|
|
24
24
|
max-height: 60vh;
|
|
@@ -554,8 +554,8 @@ export default {
|
|
|
554
554
|
}
|
|
555
555
|
|
|
556
556
|
.meridiem-active {
|
|
557
|
-
background-color: var(--color-
|
|
558
|
-
color:
|
|
557
|
+
background-color: var(--color-three-container);
|
|
558
|
+
color: var(--color-on-three-container);
|
|
559
559
|
}
|
|
560
560
|
|
|
561
561
|
.text-meridiem > .time-meridiem {
|
|
@@ -683,8 +683,7 @@ export default {
|
|
|
683
683
|
|
|
684
684
|
|
|
685
685
|
.number-disabled {
|
|
686
|
-
|
|
687
|
-
color: var(--color-disabled)
|
|
686
|
+
@include disable-states()
|
|
688
687
|
}
|
|
689
688
|
}
|
|
690
689
|
</style>
|
|
@@ -78,7 +78,7 @@ emits:['update:modelValue'],
|
|
|
78
78
|
|
|
79
79
|
.#{$prefix}unit-input {
|
|
80
80
|
.input-shadow, .input-shadow * {
|
|
81
|
-
|
|
81
|
+
@include disable-states()
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
input {
|
|
@@ -86,7 +86,7 @@ emits:['update:modelValue'],
|
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
|
|
89
|
-
--c-unit: var(--color-
|
|
89
|
+
--c-unit: var(--color-sheet-low);
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
.select-unit {
|
|
@@ -94,7 +94,7 @@ emits:['update:modelValue'],
|
|
|
94
94
|
overflow-x: clip;
|
|
95
95
|
|
|
96
96
|
* {
|
|
97
|
-
font-size: map-metro-get($headings, '
|
|
97
|
+
font-size: map-metro-get($headings, 'label-3', 'size') !important;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
.input-control {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<r-card v-if="!autoSend" :class="$r.prefix+'form-creator'" class="overflow-auto">
|
|
3
3
|
<r-container>
|
|
4
|
-
<h1 v-if="title" class="title">{{ title }}</h1>
|
|
4
|
+
<h1 v-if="title" class="title-1">{{ title }}</h1>
|
|
5
5
|
<r-form ref="form" v-model="valid" @submit.prevent="save">
|
|
6
6
|
<r-row>
|
|
7
7
|
<template :key="key" v-for="(item,key) in options">
|
package/components/img/index.vue
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
[$r.prefix+'img']:true,
|
|
4
4
|
'img-hoverZoom':hoverZoom,'img-hoverDark':hoverDark,'img-hoverTitle':hoverTitle}"
|
|
5
5
|
ref="rImg">
|
|
6
|
-
<div v-if="hoverTitle" class="title color-white-text img-title w-full"
|
|
6
|
+
<div v-if="hoverTitle" class="title-3 color-white-text img-title w-full"
|
|
7
7
|
:class="{
|
|
8
8
|
'title-hs':titleHs,
|
|
9
9
|
'title-hc':titleHc,
|
|
@@ -28,9 +28,11 @@ export default {
|
|
|
28
28
|
const el = document.createElement('div')
|
|
29
29
|
el.innerHTML = d
|
|
30
30
|
let svg = el.querySelector('svg')
|
|
31
|
-
svg
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
if (svg) {
|
|
32
|
+
svg.setAttribute('width', that.size.width + 'px')
|
|
33
|
+
svg.setAttribute('height', that.size.height + 'px')
|
|
34
|
+
that.replace(svg)
|
|
35
|
+
}
|
|
34
36
|
})
|
|
35
37
|
})
|
|
36
38
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<div :class="classes">
|
|
3
3
|
<div
|
|
4
4
|
class="list-item h-space-between"
|
|
5
|
-
:class="{'list-item-active
|
|
5
|
+
:class="{'list-item-active':$helper.searchArray(list,text,item_value[text])!==false}"
|
|
6
6
|
:key="item_key"
|
|
7
7
|
@click.prevent="handle(item_value)"
|
|
8
8
|
v-for="(item_value,item_key) in genItems"
|
|
@@ -52,7 +52,7 @@ export default {
|
|
|
52
52
|
return []
|
|
53
53
|
},
|
|
54
54
|
classes() {
|
|
55
|
-
let c = `${this.$r.prefix}list
|
|
55
|
+
let c = `${this.$r.prefix}list`
|
|
56
56
|
if (this.disabled) {
|
|
57
57
|
c += ' list-disabled'
|
|
58
58
|
}
|
|
@@ -11,16 +11,6 @@ $item-height: 48px;
|
|
|
11
11
|
position: relative;
|
|
12
12
|
max-width: 100%;
|
|
13
13
|
|
|
14
|
-
.list-item {
|
|
15
|
-
&.list-item-active {
|
|
16
|
-
background-color: var(--color-sheet-active)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:hover {
|
|
20
|
-
background-color: var(--color-sheet-hover)
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
14
|
&.list-subheader {
|
|
25
15
|
align-items: center;
|
|
26
16
|
display: flex;
|
|
@@ -45,12 +35,16 @@ $item-height: 48px;
|
|
|
45
35
|
position: relative;
|
|
46
36
|
text-decoration: none;
|
|
47
37
|
margin-bottom: 4px;
|
|
48
|
-
|
|
49
38
|
&:hover {
|
|
50
39
|
cursor: pointer;
|
|
40
|
+
background-color: var(--color-sheet-container);
|
|
41
|
+
color: var(--color-on-sheet);
|
|
51
42
|
}
|
|
52
43
|
|
|
53
44
|
&.list-item-active {
|
|
45
|
+
background-color: var(--color-one-container);
|
|
46
|
+
color: var(--color-on-one-container);
|
|
47
|
+
|
|
54
48
|
.#{$prefix}icon {
|
|
55
49
|
color: inherit;
|
|
56
50
|
}
|
package/components/map/index.vue
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<r-search-box
|
|
10
10
|
:label="$t('search','renusify')"
|
|
11
11
|
:notFoundMsg="$t('map_not_found','renusify')"
|
|
12
|
-
|
|
12
|
+
inputControlClass="sheet"
|
|
13
13
|
no-overlay
|
|
14
14
|
query="q"
|
|
15
15
|
url="https://nominatim.openstreetmap.org/search.php?polygon_geojson=0&accept-language=fa&countrycodes=IR&format=jsonv2"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<r-btn
|
|
26
26
|
v-if="meLocation"
|
|
27
27
|
:loading="loading"
|
|
28
|
-
class="map-location color-white color-
|
|
28
|
+
class="map-location color-white color-black-text"
|
|
29
29
|
icon
|
|
30
30
|
@click.prevent="showConfirm"
|
|
31
31
|
>
|