renusify 1.0.6 → 1.0.8

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 (51) hide show
  1. package/components/app/index.vue +23 -32
  2. package/components/app/style.scss +7 -18
  3. package/components/bar/bottomNavigationCircle.vue +75 -81
  4. package/components/bar/scss/bottomNav.scss +4 -13
  5. package/components/bar/scss/toolbar.scss +4 -9
  6. package/components/breadcrumb/style.scss +3 -9
  7. package/components/button/buttonConfirm.vue +44 -0
  8. package/components/button/style.scss +13 -38
  9. package/components/calendar/index.vue +5 -35
  10. package/components/card/style.scss +8 -17
  11. package/components/chat/chatInput.vue +4 -10
  12. package/components/chat/chatMsg.vue +222 -225
  13. package/components/chat/index.vue +104 -109
  14. package/components/chip/style.scss +27 -33
  15. package/components/container/style.scss +9 -11
  16. package/components/form/camInput.vue +1 -1
  17. package/components/form/checkbox.vue +115 -121
  18. package/components/form/colorPicker/picker.vue +9 -24
  19. package/components/form/datePicker/index.vue +9 -42
  20. package/components/form/fileUploader/single.vue +196 -197
  21. package/components/form/inputTel/index.vue +3 -7
  22. package/components/form/radioInput.vue +3 -9
  23. package/components/form/scss/input.scss +4 -29
  24. package/components/form/scss/rating.scss +1 -6
  25. package/components/form/scss/switch.scss +1 -6
  26. package/components/form/text-editor/style.scss +4 -22
  27. package/components/form/timepicker/timepicker.vue +11 -16
  28. package/components/form/unit-input.vue +98 -101
  29. package/components/icon/style.scss +2 -6
  30. package/components/index.js +2 -0
  31. package/components/infinite/index.vue +1 -1
  32. package/components/list/style.scss +2 -16
  33. package/components/map/route.vue +1 -1
  34. package/components/menu/index.vue +4 -15
  35. package/components/modal/style.scss +3 -12
  36. package/components/progress/style.scss +5 -21
  37. package/components/skeleton/index.vue +77 -0
  38. package/components/swiper/index.vue +8 -4
  39. package/components/table/style.scss +19 -111
  40. package/components/tabs/index.vue +116 -130
  41. package/components/timeline/index.vue +13 -18
  42. package/components/tree/index.vue +11 -15
  43. package/index.js +0 -1
  44. package/package.json +1 -1
  45. package/plugins/trans/Translate.js +1 -0
  46. package/style/app.scss +7 -71
  47. package/style/colors.scss +49 -73
  48. package/style/mixins/index.scss +0 -12
  49. package/style/variables/color.scss +8 -9
  50. package/tools/helper.js +15 -1
  51. package/components/skeletonLoader/index.vue +0 -42
package/style/app.scss CHANGED
@@ -41,8 +41,8 @@ body {
41
41
  background: rgba(100, 100, 100, 0.6);
42
42
  }
43
43
 
44
- $color: var(--color-two-light);
45
- $color-text: var(--color-two-text-light);
44
+ $color: var(--color-two);
45
+ $color-text: var(--color-two-text);
46
46
 
47
47
  ::-moz-selection {
48
48
  color: $color-text;
@@ -54,33 +54,6 @@ $color-text: var(--color-two-text-light);
54
54
  background: $color;
55
55
  }
56
56
 
57
- .app-dark {
58
- ::-webkit-scrollbar-track:hover {
59
- border: 1px solid rgba(255, 255, 255, 0.4);
60
- }
61
-
62
- ::-webkit-scrollbar-thumb {
63
- background: rgba(255, 255, 255, 0.4);
64
- }
65
-
66
- ::-webkit-scrollbar-thumb:hover {
67
- background: rgba(255, 255, 255, 0.8);
68
- }
69
-
70
- $color: var(--color-two-dark);
71
- $color-text: var(--color-two-text-dark);
72
-
73
- ::-moz-selection {
74
- color: $color-text;
75
- background: $color;
76
- }
77
-
78
- ::selection {
79
- color: $color-text;
80
- background: $color;
81
- }
82
- }
83
-
84
57
  .#{$prefix}app {
85
58
  font-family: $body-font-family;
86
59
  line-height: $line-height-root;
@@ -109,12 +82,7 @@ $color-text: var(--color-two-text-light);
109
82
  }
110
83
 
111
84
  .router-link-exact-active {
112
- @include dark() {
113
- color: var(--color-link-dark);
114
- }
115
- @include light() {
116
- color: var(--color-link-light)
117
- }
85
+ color: var(--color-link)
118
86
  }
119
87
 
120
88
  //curser
@@ -214,13 +182,7 @@ $color-text: var(--color-two-text-light);
214
182
  }
215
183
 
216
184
  .subtitle-1, .subtitle-2, .body-2, .caption, .overline {
217
- @include light() {
218
- @include text-color(var(--color-text-secondary-light));
219
- }
220
-
221
- @include dark() {
222
- @include text-color(var(--color-text-secondary-dark));
223
- }
185
+ @include text-color(var(--color-text-secondary));
224
186
  }
225
187
 
226
188
  //width
@@ -292,18 +254,9 @@ $color-text: var(--color-two-text-light);
292
254
  margin: 0 15px;
293
255
  }
294
256
 
295
- @include light() {
296
- $color: var(--color-one-light);
297
257
  pre {
298
- border-left: 5px solid $color;
258
+ border-left: 5px solid var(--color-one);
299
259
  }
300
- }
301
- @include dark() {
302
- $color: var(--color-one-dark);
303
- pre {
304
- border-left: 5px solid $color;
305
- }
306
- }
307
260
 
308
261
  pre {
309
262
  direction: ltr;
@@ -333,36 +286,19 @@ $color-text: var(--color-two-text-light);
333
286
  color: white;
334
287
  }
335
288
 
336
- @include light() {
337
289
  $background: #e2ece2;
338
290
  blockquote {
339
291
  background-color: $background;
340
- border: 5px solid var(--color-one-light);
341
-
342
- &::before {
343
- background-color: $background;
344
- }
345
-
346
- &::after {
347
- color: var(--color-one-light);
348
- }
349
- }
350
- }
351
- @include dark() {
352
- $background: #3a3e3a;
353
- blockquote {
354
- background-color: $background;
355
- border: 5px solid var(--color-one-dark);
292
+ border: 5px solid var(--color-one);
356
293
 
357
294
  &::before {
358
295
  background-color: $background;
359
296
  }
360
297
 
361
298
  &::after {
362
- color: var(--color-one-dark);
299
+ color: var(--color-one);
363
300
  }
364
301
  }
365
- }
366
302
 
367
303
  blockquote {
368
304
  font-family: Georgia, Times, "Times New Roman", serif;
package/style/colors.scss CHANGED
@@ -1,42 +1,37 @@
1
1
  @import "./_include";
2
2
 
3
3
  $colorsList: (
4
- 'one': ( l: #00acc1, d: #028595 ),
5
- 'one_l': ( l: #5ddef4, d: #03a7c2 ),
6
- 'one_d': ( l: #007c91, d: #015866 ),
7
- 'two': ( l: #e8098f, d: #b80671 ),
8
- 'three':('l':#43cea2, 'd':#06553c),
9
- 'error':('l':#D50000, 'd':#9e0404),
10
- 'info':('l':#0878f6, 'd':#0a50a1),
11
- 'warning':('l':#fbc02d, 'd':#d29806),
12
- 'success':('l':#04c40d, 'd':#049e0b),
13
- 'link':('l':#4f98ec, 'd':#3773b8),
14
- 'background-one':('l':#fafafa, 'd':#303030),
15
- 'background-two':('l':#e0e0e0, 'd':#505050),
16
- 'divider':('l':rgba(#444, 0.2), 'd':rgba(#fff, 0.2)),
17
- 'text-primary':('l':#515151, 'd':#fff),
18
- 'text-secondary':('l':#888, 'd':#ddd),
19
- 'text-disabled':('l':rgba(#000, 0.26), 'd':rgba(#fff, 0.3)),
20
- 'disabled':('l':rgba(#000, 0.26), 'd':rgba(#fff, 0.3)),
21
- 'focused':('l':rgba(#000, 0.12), 'd':rgba(#fff, 0.12)),
22
- 'pressed':('l':rgba(#999, 0.4), 'd':rgba(#ccc, 0.25)),
23
- 'border': ('l':rgba(#000, 0.24), 'd':rgba(#fff, 0.3)),
24
- 'border-hover': ('l':rgba(#000, 0.86), 'd':rgba(#fff, 0.86)),
25
- 'cards': ('l':#fff, 'd':#424242),
26
- 'chips': ('l':#e0e0e0, 'd':#555),
27
- 'table-active': ('l':#f5f5f5, 'd':#505050),
28
- 'table-hover': ('l':#eeeeee, 'd':#616161),
29
- 'overlay': ('l':rgba(225, 225, 225, 0.5), 'd':rgba(80, 80, 80, 0.5)),
4
+ 'one': #00acc1,
5
+ 'one_l': #5ddef4,
6
+ 'one_d': #007c91,
7
+ 'two': #e8098f,
8
+ 'error':#D50000,
9
+ 'info':#0878f6,
10
+ 'warning':#fbc02d,
11
+ 'success':#04c40d,
12
+ 'link':#4f98ec,
13
+ 'background-one':#fafafa,
14
+ 'background-two':#e0e0e0,
15
+ 'divider':rgba(#444, 0.2),
16
+ 'text-primary':#515151,
17
+ 'text-secondary':#888,
18
+ 'text-disabled':rgba(#000, 0.26),
19
+ 'disabled':rgba(#000, 0.26),
20
+ 'focused':rgba(#000, 0.12),
21
+ 'pressed':rgba(#999, 0.4),
22
+ 'border': rgba(#000, 0.24),
23
+ 'sheet': #fff,
24
+ 'table-active': #f5f5f5,
25
+ 'table-hover': #eeeeee,
26
+ 'overlay': rgba(225, 225, 225, 0.5)
30
27
  ) !default;
31
28
 
32
29
  :root {
33
30
  @each $color_name, $color_value in $colorsList {
34
- --color-#{$color_name}-light: #{map_get($color_value, 'l')};
35
- --color-#{$color_name}-dark: #{map_get($color_value, 'd')}
31
+ --color-#{$color_name}: #{$color_value};
36
32
  }
37
33
  @each $color_name, $color_value in $colorMain {
38
- --color-#{$color_name}-text-light: #{map_get($color_value, 'l')};
39
- --color-#{$color_name}-text-dark: #{map_get($color_value, 'd')};
34
+ --color-#{$color_name}-text: #{$color_value};
40
35
  }
41
36
  }
42
37
 
@@ -76,60 +71,41 @@ $colorsList: (
76
71
  }
77
72
 
78
73
  @each $color_name, $color_value in $colorMain {
79
- .app-light .color-#{$color_name} {
80
- @include background-color(var(--color-#{$color_name}-light), true);
81
- @include text-color(var(--color-#{$color_name}-text-light));
74
+ .color-#{$color_name} {
75
+ @include background-color(var(--color-#{$color_name}), true);
76
+ @include text-color(var(--color-#{$color_name}-text));
82
77
  }
83
- .app-light .color-#{$color_name}-text {
84
- @include text-color(var(--color-#{$color_name}-light), true);
78
+ .color-#{$color_name}-text {
79
+ @include text-color(var(--color-#{$color_name}), true);
85
80
  }
86
- .app-dark .color-#{$color_name} {
87
- @include background-color(var(--color-#{$color_name}-dark), true);
88
- @include text-color(var(--color-#{$color_name}-text-dark));
89
- }
90
- .app-dark .color-#{$color_name}-text {
91
- @include text-color(var(--color-#{$color_name}-dark), true);
92
- }
93
- }
94
- .shadow-info{
95
- --box-shadow: rgba(10, 150, 250, 0.2)
96
- }
97
- .shadow-success{
98
- --box-shadow: rgba(50, 250, 10, 0.2)
99
81
  }
100
- .shadow-error{
101
- --box-shadow: rgba(255, 10, 30, 0.2)
102
- }
103
- .shadow-warning{
104
- --box-shadow: rgba(250, 150, 10, 0.2)
82
+
83
+ .shadow-info {
84
+ --box-shadow: rgba(10, 150, 250, 0.2)
105
85
  }
106
86
 
107
- .app-light {
108
- .color-primary-text {
109
- @include text-color(var(--color-text-primary-light), true);
110
- }
87
+ .shadow-success {
88
+ --box-shadow: rgba(50, 250, 10, 0.2)
89
+ }
111
90
 
112
- .color-secondary-text {
113
- @include text-color(var(--color-text-secondary-light), true);
114
- }
91
+ .shadow-error {
92
+ --box-shadow: rgba(255, 10, 30, 0.2)
93
+ }
115
94
 
116
- .color-disabled-text {
117
- @include text-color(var(--color-text-disabled-light), true);
118
- }
95
+ .shadow-warning {
96
+ --box-shadow: rgba(250, 150, 10, 0.2)
119
97
  }
120
98
 
121
- .app-dark {
122
- .color-primary-text {
123
- @include text-color(var(--color-text-primary-dark), true);
124
- }
99
+ .color-primary-text {
100
+ @include text-color(var(--color-text-primary), true);
101
+ }
125
102
 
126
- .color-secondary-text {
127
- @include text-color(var(--color-text-secondary-dark), true);
128
- }
103
+ .color-secondary-text {
104
+ @include text-color(var(--color-text-secondary), true);
105
+ }
129
106
 
130
- .color-disabled-text {
131
- @include text-color(var(--color-text-disabled-dark), true);
132
- }
107
+ .color-disabled-text {
108
+ @include text-color(var(--color-text-disabled), true);
133
109
  }
134
110
 
135
111
 
@@ -1,18 +1,6 @@
1
1
  @import "utilities";
2
2
  @import 'container';
3
3
 
4
- @mixin light() {
5
- .app-light & {
6
- @content
7
- }
8
- }
9
-
10
- @mixin dark() {
11
- .app-dark & {
12
- @content
13
- }
14
- }
15
-
16
4
  @mixin rtl() {
17
5
  .app-rtl & {
18
6
  @content
@@ -5,15 +5,14 @@ $gradient: (
5
5
  'three': ('0':#e91e63,'1':#ec743d)
6
6
  ) !default;
7
7
  $colorMain: (
8
- 'one':('l':#fff,'d':#fff),
9
- 'one_l':('l':#fff,'d':#fff),
10
- 'one_d':('l':#fff,'d':#fff),
11
- 'two':('l':#fff,'d':#fff),
12
- 'three':('l':#fff,'d':#fff),
13
- 'error':('l':#fff,'d':#fff),
14
- 'info':('l':#fff,'d':#fff),
15
- 'warning':('l':#fff,'d':#fff),
16
- 'success':('l':#fff,'d':#fff)
8
+ 'one':#fff,
9
+ 'one_l':#fff,
10
+ 'one_d':#fff,
11
+ 'two':#fff,
12
+ 'error':#fff,
13
+ 'info':#fff,
14
+ 'warning':#fff,
15
+ 'success':#fff
17
16
  ) !default;
18
17
 
19
18
  $shades: (
package/tools/helper.js CHANGED
@@ -345,14 +345,28 @@ export function trim(s, c) {
345
345
  return s.replace(new RegExp("^[" + c + "]+|[" + c + "]+$", "g"), "");
346
346
  }
347
347
 
348
- export function download(url, fileName = 'download') {
348
+ export function download(url, fileName = 'download', headers = null, percent = null) {
349
349
  const f = url.split(".");
350
350
  if (f[1]) {
351
351
  fileName += '.' + f[1]
352
352
  }
353
+
354
+ function updateProgress(evt) {
355
+ if (evt.lengthComputable) {
356
+ percent((evt.loaded / evt.total) * 100);
357
+ }
358
+ }
359
+
353
360
  let xhr = new XMLHttpRequest();
354
361
  xhr.open("GET", url, true);
362
+ xhr.onprogress = updateProgress;
355
363
  xhr.responseType = "blob";
364
+ if (headers) {
365
+ Object.keys(headers).forEach(function (key) {
366
+ xhr.setRequestHeader(key, headers[key]);
367
+ });
368
+ }
369
+
356
370
  xhr.onload = function () {
357
371
  const urlCreator = window.URL || window.webkitURL;
358
372
  const imageUrl = urlCreator.createObjectURL(this.response);
@@ -1,42 +0,0 @@
1
- <template>
2
- <div :class="$r.prefix + 'skeleton-loader'" :style="{width:width,height:height}"></div>
3
- </template>
4
-
5
- <script>
6
- export default {
7
- name: "r-skeletonLoader",
8
- props:{
9
- width:String,
10
- height:String,
11
- }
12
- };
13
- </script>
14
-
15
- <style lang="scss">
16
- @import "~renusify/style/include";
17
- .#{$prefix}skeleton-loader {
18
- background: rgba(0, 0, 0, 0.12);
19
- &:after {
20
- animation: loading 1.5s infinite;
21
- content: "";
22
- height: 100%;
23
- left: 0;
24
- position: absolute;
25
- right: 0;
26
- top: 0;
27
- transform: translateX(-100%);
28
- z-index: 1;
29
- background: linear-gradient(
30
- 90deg,
31
- hsla(0, 0%, 100%, 0),
32
- hsla(0, 0%, 100%, 0.3),
33
- hsla(0, 0%, 100%, 0)
34
- );
35
- }
36
- @keyframes loading {
37
- 100% {
38
- transform: translateX(100%);
39
- }
40
- }
41
- }
42
- </style>