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.
Files changed (67) hide show
  1. package/components/app/style.scss +2 -10
  2. package/components/app/toast/toast.vue +4 -3
  3. package/components/bar/bottomNavigationCircle.vue +1 -1
  4. package/components/bar/scss/bottomNav.scss +2 -2
  5. package/components/breadcrumb/style.scss +1 -1
  6. package/components/button/index.vue +4 -4
  7. package/components/button/style.scss +17 -27
  8. package/components/calendar/index.vue +3 -4
  9. package/components/card/style.scss +1 -3
  10. package/components/chat/chatInput.vue +2 -2
  11. package/components/chat/chatMsg.vue +3 -3
  12. package/components/chat/index.vue +2 -1
  13. package/components/chip/index.vue +1 -1
  14. package/components/chip/style.scss +20 -10
  15. package/components/codeEditor/index.vue +5 -4
  16. package/components/codeEditor/mixin.js +5 -5
  17. package/components/confirm/index.vue +3 -3
  18. package/components/container/style.scss +1 -1
  19. package/components/form/address.vue +6 -0
  20. package/components/form/address_ir.vue +17 -17
  21. package/components/form/checkbox.vue +1 -1
  22. package/components/form/colorPicker/picker.vue +6 -5
  23. package/components/form/datePicker/index.vue +2 -4
  24. package/components/form/form.vue +7 -4
  25. package/components/form/group-input.vue +1 -1
  26. package/components/form/input.vue +21 -20
  27. package/components/form/inputTel/index.vue +1 -31
  28. package/components/form/json/index.vue +1 -1
  29. package/components/form/radioInput.vue +1 -1
  30. package/components/form/rating.vue +13 -6
  31. package/components/form/select.vue +17 -11
  32. package/components/form/switch.vue +1 -7
  33. package/components/form/text-editor/index.vue +15 -15
  34. package/components/form/text-editor/style.scss +6 -6
  35. package/components/form/timepicker/index.vue +3 -3
  36. package/components/form/timepicker/timepicker.vue +142 -112
  37. package/components/form/unit-input.vue +2 -2
  38. package/components/formCreator/index.vue +3 -3
  39. package/components/icon/style.scss +1 -4
  40. package/components/img/index.vue +3 -1
  41. package/components/img/svgImg.vue +5 -3
  42. package/components/infinite/div.vue +2 -2
  43. package/components/infinite/index.vue +1 -1
  44. package/components/infinite/page.vue +2 -2
  45. package/components/list/index.vue +2 -2
  46. package/components/list/style.scss +10 -6
  47. package/components/map/index.vue +1 -1
  48. package/components/map/route.vue +2 -2
  49. package/components/menu/index.vue +1 -1
  50. package/components/notify/notification.vue +2 -2
  51. package/components/progress/style.scss +4 -4
  52. package/components/searchBox/index.vue +2 -2
  53. package/components/table/crud/header.vue +1 -1
  54. package/components/table/index.vue +4 -3
  55. package/components/table/style.scss +19 -16
  56. package/components/tabs/index.vue +4 -65
  57. package/components/timeline/index.vue +1 -1
  58. package/components/tour/index.vue +5 -5
  59. package/components/tree/index.vue +0 -1
  60. package/package.json +1 -1
  61. package/plugins/request/Request.js +3 -3
  62. package/style/app.scss +52 -41
  63. package/style/base.scss +45 -51
  64. package/style/colors.scss +48 -39
  65. package/style/mixins/index.scss +17 -6
  66. package/style/variables/base.scss +84 -69
  67. 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
- &:not(.input-disabled) {
308
- input,
309
- textarea, .label, .#{$prefix}icon, .#{$prefix}btn {
310
- color: var(--color-text-primary)
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
- &.input-disabled {
320
- * {
321
- color: var(--color-disabled)
322
- }
323
- }
314
+ input::placeholder,
315
+ textarea::placeholder {
316
+ color: var(--color-on-three-container)
317
+ }
324
318
 
325
- .input-control {
326
- border: solid 1px var(--color-border)
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">
@@ -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 color-primary-text" @click="emit(item)">
15
+ <span class="ms-2" @click="emit(item)">
16
16
  {{ item[text] }}
17
17
  </span>
18
18
  </div>
@@ -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-warning-text':''}`" :key="i"
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 (n) {
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
- color: var(--color-disabled);
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
- class="my-0 ms-0 color-primary-text"
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
- @update:modelValue="handleChip($event,key)"
17
+ :close="multiple&&!textChip"
18
+ :text="textChip || !multiple"
19
+ class="my-0 ms-0"
20
20
  selectable
21
- v-for="(item,key) in chips">
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.input.scrollIntoView()
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
- $min-height:40px;
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
- .to-top{
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-disabled);
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 class="cursor-pointer" v-for="(item,i) in currentPath" :key="i" @click="borderd(item)">
45
- <span class="color-disabled-text" v-if="i===currentPath.length-1">{{item.nodeName}} </span>
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: 'display-4'},
263
- {text: 'HI', value: 'display-5'},
264
- {text: 'HI', value: 'title'},
265
- {text: 'HI', value: 'subtitle-1'},
266
- {text: 'HI', value: 'subtitle-2'},
267
- {text: 'HI', value: 'overline'},
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
- {text: 'HI', value: 'body-1'},
270
- {text: 'HI', value: 'caption'},
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
- el.style.border = '1px solid red'
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
- .editor-content {
7
- border: 1px solid var(--color-border);
8
- }
6
+ .editor-content {
7
+ border: 1px solid var(--color-border);
8
+ }
9
9
 
10
- @include typography($headings, 'body-1');
10
+ @include typography($headings, 'body-2');
11
11
 
12
12
  a {
13
- color: var(--color-link)
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-text-primary);
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,