renusify 1.4.7 → 2.0.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/style.scss +2 -10
- package/components/app/toast/toast.vue +4 -3
- package/components/bar/bottomNavigationCircle.vue +1 -1
- package/components/bar/scss/bottomNav.scss +2 -2
- package/components/breadcrumb/style.scss +1 -1
- package/components/button/index.vue +4 -4
- package/components/button/style.scss +17 -27
- package/components/calendar/index.vue +3 -4
- package/components/card/style.scss +1 -3
- package/components/chat/chatInput.vue +2 -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 +20 -10
- package/components/codeEditor/index.vue +5 -4
- package/components/codeEditor/mixin.js +5 -5
- package/components/confirm/index.vue +3 -3
- package/components/container/style.scss +1 -1
- package/components/form/address.vue +6 -0
- package/components/form/address_ir.vue +17 -17
- package/components/form/checkbox.vue +1 -1
- package/components/form/colorPicker/picker.vue +6 -5
- package/components/form/datePicker/index.vue +2 -4
- package/components/form/form.vue +7 -4
- package/components/form/group-input.vue +1 -1
- package/components/form/input.vue +21 -20
- package/components/form/inputTel/index.vue +1 -31
- package/components/form/json/index.vue +1 -1
- package/components/form/radioInput.vue +1 -1
- package/components/form/rating.vue +13 -6
- package/components/form/select.vue +17 -11
- 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 +3 -3
- package/components/form/timepicker/timepicker.vue +142 -112
- package/components/form/unit-input.vue +2 -2
- package/components/formCreator/index.vue +3 -3
- package/components/icon/style.scss +1 -4
- package/components/img/index.vue +3 -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 +10 -6
- package/components/map/index.vue +1 -1
- package/components/map/route.vue +2 -2
- package/components/menu/index.vue +1 -1
- package/components/notify/notification.vue +2 -2
- package/components/progress/style.scss +4 -4
- package/components/searchBox/index.vue +2 -2
- package/components/table/crud/header.vue +1 -1
- package/components/table/index.vue +4 -3
- package/components/table/style.scss +19 -16
- package/components/tabs/index.vue +4 -65
- 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/plugins/request/Request.js +3 -3
- package/style/app.scss +52 -41
- 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
|
@@ -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,31 @@ export default {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
}
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
input::placeholder,
|
|
315
|
-
textarea::placeholder {
|
|
316
|
-
color: var(--color-disabled)
|
|
307
|
+
&:not(.input-disabled) {
|
|
308
|
+
input,
|
|
309
|
+
textarea, .label, .#{$prefix}icon, .#{$prefix}btn {
|
|
310
|
+
color: var(--color-on-sheet)
|
|
317
311
|
}
|
|
312
|
+
}
|
|
318
313
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
314
|
+
input::placeholder,
|
|
315
|
+
textarea::placeholder {
|
|
316
|
+
color: var(--color-on-three-container)
|
|
317
|
+
}
|
|
324
318
|
|
|
325
|
-
|
|
326
|
-
|
|
319
|
+
&.input-disabled {
|
|
320
|
+
* {
|
|
321
|
+
color: var(--color-border)
|
|
327
322
|
}
|
|
328
323
|
|
|
329
|
-
&.input-disabled {
|
|
330
324
|
pointer-events: none;
|
|
331
325
|
}
|
|
332
326
|
|
|
327
|
+
.input-control {
|
|
328
|
+
border: solid 1px var(--color-border)
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
|
|
333
332
|
input {
|
|
334
333
|
max-height: 32px
|
|
335
334
|
}
|
|
@@ -369,6 +368,7 @@ export default {
|
|
|
369
368
|
align-items: flex-start;
|
|
370
369
|
justify-content: center;
|
|
371
370
|
position: relative;
|
|
371
|
+
|
|
372
372
|
.after-icon {
|
|
373
373
|
position: absolute;
|
|
374
374
|
cursor: pointer;
|
|
@@ -380,6 +380,7 @@ export default {
|
|
|
380
380
|
}
|
|
381
381
|
|
|
382
382
|
}
|
|
383
|
+
|
|
383
384
|
.pre-icon {
|
|
384
385
|
position: absolute;
|
|
385
386
|
cursor: pointer;
|
|
@@ -534,4 +535,4 @@ export default {
|
|
|
534
535
|
}
|
|
535
536
|
|
|
536
537
|
|
|
537
|
-
</style>
|
|
538
|
+
</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
|
}
|
|
@@ -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">
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="`${$r.prefix}rating size-${size} ms-n1`">
|
|
3
|
-
<r-btn :class="`${Math.round(modelValue)>=i?'color-
|
|
3
|
+
<r-btn :key="i" :class="`${Math.round(modelValue)>=i?'color-rating':''}`"
|
|
4
4
|
:readonly="readonly"
|
|
5
5
|
@click="select(i)"
|
|
6
6
|
icon
|
|
@@ -30,14 +30,14 @@ export default {
|
|
|
30
30
|
modelValue: Number,
|
|
31
31
|
readonly: Boolean
|
|
32
32
|
},
|
|
33
|
-
emits:['update:modelValue'],
|
|
34
|
-
created(){
|
|
35
|
-
if(!this.$r.icons.star) {
|
|
33
|
+
emits: ['update:modelValue'],
|
|
34
|
+
created() {
|
|
35
|
+
if (!this.$r.icons.star) {
|
|
36
36
|
this.$r.icons.star = '<svg xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27Z"/></svg>'
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
methods: {
|
|
40
|
-
select
|
|
40
|
+
select(n) {
|
|
41
41
|
this.$emit('update:modelValue', n)
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -57,7 +57,14 @@ $btn-sizes: (
|
|
|
57
57
|
max-width: 100%;
|
|
58
58
|
white-space: nowrap;
|
|
59
59
|
transition: 1s $primary-transition;
|
|
60
|
-
|
|
60
|
+
|
|
61
|
+
* {
|
|
62
|
+
color: var(--color-border);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.color-rating * {
|
|
66
|
+
color: #fbc02d !important;
|
|
67
|
+
}
|
|
61
68
|
|
|
62
69
|
@each $name, $size in $btn-sizes {
|
|
63
70
|
&.size-#{$name} {
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
'flex-nowrap':!multiple
|
|
12
12
|
}">
|
|
13
13
|
<r-chip
|
|
14
|
-
|
|
15
|
-
:close="multiple&&!textChip"
|
|
14
|
+
v-for="(item,key) in chips"
|
|
16
15
|
:key="key"
|
|
17
|
-
:text="textChip || !multiple"
|
|
18
16
|
:class="{'px-0':!multiple}"
|
|
19
|
-
|
|
17
|
+
:close="multiple&&!textChip"
|
|
18
|
+
:text="textChip || !multiple"
|
|
19
|
+
class="my-0 ms-0"
|
|
20
20
|
selectable
|
|
21
|
-
|
|
21
|
+
@update:modelValue="handleChip($event,key)">
|
|
22
22
|
{{ item ? item[text] : '' }}
|
|
23
23
|
</r-chip>
|
|
24
24
|
<span>
|
|
@@ -103,7 +103,7 @@ export default {
|
|
|
103
103
|
firstSelect: Boolean,
|
|
104
104
|
headers: Object
|
|
105
105
|
},
|
|
106
|
-
emits:['update:modelValue','del'],
|
|
106
|
+
emits: ['update:modelValue', 'del'],
|
|
107
107
|
data() {
|
|
108
108
|
return {
|
|
109
109
|
apiData: [],
|
|
@@ -220,12 +220,14 @@ export default {
|
|
|
220
220
|
} else {
|
|
221
221
|
this.handleClick()
|
|
222
222
|
}
|
|
223
|
-
|
|
224
223
|
},
|
|
225
224
|
handleClick() {
|
|
226
225
|
if (this.$refs.input) {
|
|
227
226
|
this.$refs.input.focus()
|
|
228
|
-
this.$refs.
|
|
227
|
+
this.$refs.select.scrollIntoView({
|
|
228
|
+
block: "start",
|
|
229
|
+
behavior: "smooth"
|
|
230
|
+
})
|
|
229
231
|
} else {
|
|
230
232
|
this.focusInput(true)
|
|
231
233
|
}
|
|
@@ -309,9 +311,12 @@ export default {
|
|
|
309
311
|
</script>
|
|
310
312
|
<style lang="scss">
|
|
311
313
|
@import "../../style/include";
|
|
312
|
-
|
|
314
|
+
|
|
315
|
+
$min-height: 40px;
|
|
313
316
|
.#{$prefix}select-container {
|
|
314
317
|
position: relative;
|
|
318
|
+
scroll-margin: $min-height;
|
|
319
|
+
|
|
315
320
|
.input-control {
|
|
316
321
|
min-height: $min-height;
|
|
317
322
|
height: auto;
|
|
@@ -353,7 +358,8 @@ $min-height:40px;
|
|
|
353
358
|
left: 0;
|
|
354
359
|
z-index: map_get($z-index, 'default');
|
|
355
360
|
}
|
|
356
|
-
|
|
361
|
+
|
|
362
|
+
.to-top {
|
|
357
363
|
bottom: $min-height+2px;
|
|
358
364
|
}
|
|
359
365
|
|
|
@@ -364,4 +370,4 @@ $min-height:40px;
|
|
|
364
370
|
}
|
|
365
371
|
}
|
|
366
372
|
|
|
367
|
-
</style>
|
|
373
|
+
</style>
|
|
@@ -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-border);
|
|
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;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:closebtn="false"
|
|
23
23
|
:no-overlay="noOverlay"
|
|
24
24
|
>
|
|
25
|
-
<r-card class="pt-3">
|
|
25
|
+
<r-card class="pt-3 pb-1">
|
|
26
26
|
<timepicker
|
|
27
27
|
class="mb-2 mx-3"
|
|
28
28
|
:disableTime="disableTime"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
:withSec="withSec"
|
|
31
31
|
v-model="lazyValue"
|
|
32
32
|
></timepicker>
|
|
33
|
-
<div class="my-3 d-flex h-space-between">
|
|
33
|
+
<div class="my-3 d-flex h-space-between px-3">
|
|
34
34
|
<r-btn
|
|
35
35
|
class="color-success-text"
|
|
36
36
|
outlined
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
70
70
|
noOverlay: Boolean,
|
|
71
71
|
modelValue: String
|
|
72
72
|
},
|
|
73
|
-
emits:['update:modelValue'],
|
|
73
|
+
emits: ['update:modelValue'],
|
|
74
74
|
data() {
|
|
75
75
|
return {
|
|
76
76
|
active: false,
|