renusify 1.0.6 → 1.0.9

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 (55) 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/index.vue +4 -1
  21. package/components/form/fileUploader/single.vue +197 -197
  22. package/components/form/inputTel/index.vue +3 -7
  23. package/components/form/radioInput.vue +3 -9
  24. package/components/form/scss/input.scss +4 -29
  25. package/components/form/scss/rating.scss +1 -6
  26. package/components/form/scss/switch.scss +1 -6
  27. package/components/form/text-editor/style.scss +4 -22
  28. package/components/form/timepicker/timepicker.vue +11 -16
  29. package/components/form/unit-input.vue +98 -101
  30. package/components/icon/style.scss +2 -6
  31. package/components/img/index.vue +192 -175
  32. package/components/index.js +3 -1
  33. package/components/infinite/index.vue +1 -1
  34. package/components/list/style.scss +2 -16
  35. package/components/map/route.vue +1 -1
  36. package/components/menu/index.vue +4 -15
  37. package/components/modal/style.scss +3 -12
  38. package/components/progress/circular.vue +1 -1
  39. package/components/progress/style.scss +5 -21
  40. package/components/skeleton/index.vue +77 -0
  41. package/components/swiper/index.vue +8 -4
  42. package/components/table/style.scss +19 -111
  43. package/components/tabs/index.vue +116 -130
  44. package/components/timeline/index.vue +13 -18
  45. package/components/tree/index.vue +11 -15
  46. package/directive/intersect/index.js +23 -20
  47. package/index.js +0 -1
  48. package/package.json +1 -1
  49. package/plugins/trans/Translate.js +1 -0
  50. package/style/app.scss +7 -71
  51. package/style/colors.scss +49 -73
  52. package/style/mixins/index.scss +0 -12
  53. package/style/variables/color.scss +8 -9
  54. package/tools/helper.js +15 -1
  55. package/components/skeletonLoader/index.vue +0 -42
@@ -10,6 +10,7 @@ const list = {
10
10
  'r-bottom-navigation-circle': {'p': 'bar/bottomNavigationCircle.vue', 'c': ['r-icon'], 'd': []},
11
11
  'r-breadcrumbs': {'p': 'breadcrumb/index.vue', 'c': ['r-icon'], 'd': []},
12
12
  'r-btn': {'p': 'button/index.vue', 'c': ['r-progress-circular'], 'd': ['ripple']},
13
+ 'r-btn-confirm': {'p': 'button/buttonConfirm.vue', 'c': ['r-btn', 'r-confirm'], 'd': []},
13
14
  'r-btn-group': {
14
15
  'p': 'button/buttonGroup.vue',
15
16
  'c': ['r-btn', 'r-icon', 'r-card', 'r-list'],
@@ -111,7 +112,7 @@ const list = {
111
112
  'r-html2pdf': {'p': 'html2pdf/index.vue', 'c': ['r-btn', 'r-icon', 'r-html2pdf-page-break'], 'd': []},
112
113
  'r-html2pdf-page-break': {'p': 'html2pdf/pageBreak.vue', 'c': [], 'd': []},
113
114
  'r-icon': {'p': 'icon/index.vue', 'c': [], 'd': []},
114
- 'r-img': {'p': 'img/index.vue', 'c': [], 'd': []},
115
+ 'r-img': {'p': 'img/index.vue', 'c': [], 'd': ['intersect']},
115
116
  'r-infinite-div': {
116
117
  'p': 'infinite/div.vue',
117
118
  'c': ['r-container', 'r-row', 'r-col', 'r-progress-liner'],
@@ -142,6 +143,7 @@ const list = {
142
143
  'c': ['r-input', 'r-progress-liner', 'r-card', 'r-list', 'r-btn', 'r-icon'],
143
144
  'd': ['click-outside']
144
145
  },
146
+ 'r-skeleton': {'p': 'skeleton/index.vue', 'c': [], 'd': []},
145
147
  'r-slider': {'p': 'slider/index.vue', 'c': ['r-progress-liner', 'r-btn', 'r-icon'], 'd': ['touch']},
146
148
  'r-swiper': {'p': 'swiper/index.vue', 'c': [], 'd': ['touch']},
147
149
  'r-table': {
@@ -36,7 +36,7 @@
36
36
  props: {
37
37
  color:{
38
38
  type:String,
39
- default:'color-one'
39
+ default: 'color-two'
40
40
  },
41
41
  isChat:Boolean,
42
42
  title: {
@@ -11,29 +11,15 @@ $item-height: 48px;
11
11
  position: relative;
12
12
  max-width: 100%;
13
13
 
14
- @include light() {
15
14
  .list-item {
16
15
  &.list-item-active {
17
- background-color: var(--color-table-active-light)
16
+ background-color: var(--color-table-active)
18
17
  }
19
18
 
20
19
  &:hover {
21
- background-color: var(--color-table-hover-light)
20
+ background-color: var(--color-table-hover)
22
21
  }
23
22
  }
24
- }
25
-
26
- @include dark() {
27
- .list-item {
28
- &.list-item-active {
29
- background-color: var(--color-table-active-dark)
30
- }
31
-
32
- &:hover {
33
- background-color: var(--color-table-hover-dark)
34
- }
35
- }
36
- }
37
23
 
38
24
  &.list-subheader {
39
25
  align-items: center;
@@ -567,7 +567,7 @@
567
567
  cursor: pointer;
568
568
 
569
569
  &:hover {
570
- color: var(--color-link-light);
570
+ color: var(--color-link);
571
571
  }
572
572
  }
573
573
  }
@@ -138,38 +138,27 @@ export default {
138
138
 
139
139
  .menu-selected {
140
140
  position: relative;
141
- color: var(--color-one-light);
141
+ color: var(--color-one);
142
142
 
143
143
  &:before {
144
144
  content: '';
145
145
  position: absolute;
146
146
  left: 0;
147
147
  top: 0;
148
- background-color: var(--color-one-light);
148
+ background-color: var(--color-one);
149
149
  opacity: .1;
150
150
  width: 100%;
151
151
  height: 100%;
152
152
  }
153
153
  }
154
154
 
155
- @include light() {
156
155
  .dropdown-menu {
157
- border: 1px solid var(--color-border-light);
156
+ border: 1px solid var(--color-border);
158
157
 
159
158
  &-item:hover {
160
- background-color: var(--color-table-hover-light);
159
+ background-color: var(--color-table-hover);
161
160
  }
162
161
  }
163
- }
164
- @include dark() {
165
- .dropdown-menu {
166
- border: 1px solid var(--color-border-dark);
167
-
168
- &-item:hover {
169
- background-color: var(--color-table-hover-dark);
170
- }
171
- }
172
- }
173
162
 
174
163
  .menu-label {
175
164
  cursor: pointer;
@@ -12,22 +12,13 @@
12
12
  outline: none;
13
13
  bottom: 0;
14
14
 
15
- @include light() {
16
- &:not(.modal-no-overlay) {
17
- background-color: var(--color-overlay-light);
18
- }
19
- .modal-content {
20
- border: 1px solid var(--color-border-light);
21
- }
22
- }
23
- @include dark() {
15
+
24
16
  &:not(.modal-no-overlay) {
25
- background-color: var(--color-overlay-dark);
17
+ background-color: var(--color-overlay);
26
18
  }
27
19
  .modal-content {
28
- border: 1px solid var(--color-border-dark);
20
+ border: 1px solid var(--color-border);
29
21
  }
30
- }
31
22
 
32
23
  &:not(.modal-no-overlay) {
33
24
  backdrop-filter: blur(3px) grayscale(30%);
@@ -48,7 +48,7 @@ export default {
48
48
  default: 0
49
49
  },
50
50
  size: {
51
- type: String,
51
+ type: [Number, String],
52
52
  default: '32'
53
53
  },
54
54
  width: {
@@ -84,35 +84,19 @@ $progress-circular-overlay-transition: all .6s ease-in-out !default;
84
84
 
85
85
  .#{$prefix}progress {
86
86
  text-align: center;
87
- @include light() {
88
87
  &.progress-outlined {
89
- color: var(--color-divider-light)
88
+ color: var(--color-divider)
90
89
  }
91
90
  .liner-determinate {
92
- background-color: var(--color-text-primary-light);
91
+ background-color: var(--color-text-primary);
93
92
  }
94
93
  .liner-indeterminate {
95
- background-color: var(--color-text-primary-light);
94
+ background-color: var(--color-text-primary);
96
95
  }
97
96
 
98
- .progress-background{
99
- background-color: var(--color-divider-light);
97
+ .progress-background {
98
+ background-color: var(--color-divider);
100
99
  }
101
- }
102
- @include dark() {
103
- &.progress-outlined {
104
- color: var(--color-divider-dark)
105
- }
106
- .liner-determinate {
107
- background-color: var(--color-text-primary-dark);
108
- }
109
- .liner-indeterminate {
110
- background-color: var(--color-text-primary-dark);
111
- }
112
- .progress-background{
113
- background-color: var(--color-divider-dark);
114
- }
115
- }
116
100
 
117
101
  &.progress-outlined {
118
102
  border: 1px solid;
@@ -0,0 +1,77 @@
1
+ <template>
2
+ <div :class="[$r.prefix+'skeleton']">
3
+ <slot v-if="loading||showPreData"></slot>
4
+ <slot v-if="!loading" name="case">
5
+ <div :class="['sk-'+type]" :style="{width:width,height:height}"></div>
6
+ </slot>
7
+ </div>
8
+ </template>
9
+
10
+ <script>
11
+ export default {
12
+ name: "r-skeleton",
13
+ props: {
14
+ showPreData: Boolean,
15
+ loading: Boolean,
16
+ width: String,
17
+ height: String,
18
+ type: {
19
+ type: String,
20
+ default: 'card',
21
+ validator: function (value) {
22
+ return ['line', 'avatar', 'card'].indexOf(value) !== -1
23
+ }
24
+ },
25
+ }
26
+ };
27
+ </script>
28
+
29
+ <style lang="scss">
30
+ @import "~renusify/style/include";
31
+
32
+ .#{$prefix}skeleton {
33
+ .sk-card, .sk-line, .sk-avatar {
34
+ background: rgba(0, 0, 0, 0.12);
35
+ overflow: hidden;
36
+ position: relative;
37
+
38
+ &:after {
39
+ animation: skeletonloading 1.5s infinite;
40
+ content: "";
41
+ height: 100%;
42
+ left: 0;
43
+ position: absolute;
44
+ right: 0;
45
+ top: 0;
46
+ transform: translateX(-100%);
47
+ z-index: 1;
48
+ background: linear-gradient(
49
+ 90deg,
50
+ hsla(0, 0%, 100%, 0),
51
+ hsla(0, 0%, 100%, 0.3),
52
+ hsla(0, 0%, 100%, 0)
53
+ );
54
+ }
55
+ }
56
+
57
+ .sk-card {
58
+ border-radius: 4px;
59
+ }
60
+
61
+ .sk-line {
62
+ height: 20px !important;
63
+ border-radius: 10px;
64
+ margin-bottom: 8px;
65
+ }
66
+
67
+ .sk-avatar {
68
+ border-radius: 50%;
69
+ }
70
+
71
+ @keyframes skeletonloading {
72
+ 100% {
73
+ transform: translateX(100%);
74
+ }
75
+ }
76
+ }
77
+ </style>
@@ -72,7 +72,7 @@ export default {
72
72
  }
73
73
  setTimeout(() => {
74
74
  this.slides = Math.ceil(this.$refs.container.scrollWidth / this.$refs.swiper.offsetWidth)
75
- }, 500)
75
+ }, 1000)
76
76
  },
77
77
  computed: {
78
78
  itemWidth() {
@@ -89,7 +89,11 @@ export default {
89
89
  methods: {
90
90
  goToSlide(n) {
91
91
  this.inMove = false
92
- this.x = this.$refs.swiper.offsetWidth * (n - 1)
92
+ let s = -1
93
+ if (this.$r.rtl) {
94
+ s = 1
95
+ }
96
+ this.x = this.$refs.swiper.offsetWidth * (n - 1) * s
93
97
  this.end()
94
98
  },
95
99
  right(x = null) {
@@ -137,7 +141,7 @@ export default {
137
141
  }
138
142
  this.prePosition = this.x
139
143
 
140
- this.currentSlide = Math.ceil(this.x / this.$refs.swiper.offsetWidth) + 1
144
+ this.currentSlide = Math.ceil(this.x / this.$refs.swiper.offsetWidth * r) + 1
141
145
  }, 60)
142
146
 
143
147
  }
@@ -227,4 +231,4 @@ export default {
227
231
  }
228
232
 
229
233
  }
230
- </style>
234
+ </style>
@@ -8,33 +8,32 @@ $data-table-regular-header-height: 38px !default;
8
8
  .#{$prefix}table {
9
9
  position: relative;
10
10
 
11
- @include light {
12
11
  .table-wrapper {
13
- background-color: var(--color-cards-light);
14
- color: var(--color-text-primary-light);
12
+ background-color: var(--color-sheet);
13
+ color: var(--color-text-primary);
15
14
  }
16
15
  .table-svg-path {
17
- fill: var(--color-cards-light);
16
+ fill: var(--color-sheet);
18
17
  }
19
18
  .table-editable-icon {
20
- background-color: var(--color-cards-light) !important;
21
- color: var(--color-text-primary-light) !important;
19
+ background-color: var(--color-sheet) !important;
20
+ color: var(--color-text-primary) !important;
22
21
  }
23
22
  &.table-fixed-header {
24
23
  thead th {
25
- background: var(--color-cards-light);
26
- box-shadow: inset 0 -2px var(--color-divider-light)
24
+ background: var(--color-sheet);
25
+ box-shadow: inset 0 -2px var(--color-divider)
27
26
  }
28
27
  }
29
28
 
30
29
  thead {
31
30
  tr {
32
31
  &:last-child th {
33
- border-bottom: 1px solid var(--color-divider-light)
32
+ border-bottom: 1px solid var(--color-divider)
34
33
  }
35
34
 
36
35
  th {
37
- color: var(--color-text-secondary-light)
36
+ color: var(--color-text-secondary)
38
37
  }
39
38
  }
40
39
  }
@@ -42,16 +41,16 @@ $data-table-regular-header-height: 38px !default;
42
41
  &.table-fixed-first-columns {
43
42
  tr {
44
43
  th:first-child {
45
- background: var(--color-cards-light)
44
+ background: var(--color-sheet)
46
45
  }
47
46
 
48
47
  td:first-child {
49
- background: var(--color-cards-light)
48
+ background: var(--color-sheet)
50
49
  }
51
50
 
52
51
  &:hover {
53
52
  td:first-child {
54
- background: var(--color-table-hover-light)
53
+ background: var(--color-table-hover)
55
54
  }
56
55
  }
57
56
  }
@@ -61,7 +60,7 @@ $data-table-regular-header-height: 38px !default;
61
60
  tbody {
62
61
  tr:nth-child(2n):not(:hover) {
63
62
  td {
64
- background: var(--color-table-active-light)
63
+ background: var(--color-table-active)
65
64
  }
66
65
  }
67
66
  }
@@ -70,108 +69,25 @@ $data-table-regular-header-height: 38px !default;
70
69
  tbody {
71
70
  tr {
72
71
  &:active {
73
- background: var(--color-table-active-light)
72
+ background: var(--color-table-active)
74
73
  }
75
74
 
76
75
  &:hover {
77
- background: var(--color-table-hover-light)
76
+ background: var(--color-table-hover)
78
77
  }
79
78
  }
80
79
 
81
80
  tr:not(:last-child) {
82
81
  td {
83
- border-bottom: 1px solid var(--color-divider-light)
82
+ border-bottom: 1px solid var(--color-divider)
84
83
  }
85
84
  }
86
85
  }
87
86
 
88
87
  &.table-bordered .table-wrapper {
89
- border: 1px solid var(--color-divider-light);
88
+ border: 1px solid var(--color-divider);
90
89
  border-collapse: collapse;
91
90
  }
92
- }
93
- @include dark {
94
- .table-wrapper {
95
- background-color: var(--color-cards-dark);
96
- color: var(--color-text-primary-dark);
97
- }
98
- .table-svg-path {
99
- fill: var(--color-cards-dark);
100
- }
101
- .table-editable-icon {
102
- background-color: var(--color-cards-dark) !important;
103
- color: var(--color-text-primary-dark) !important;
104
- }
105
- &.table-fixed-header {
106
- thead th {
107
- background: var(--color-cards-dark);
108
- box-shadow: inset 0 -2px var(--color-divider-dark)
109
- }
110
- }
111
-
112
- thead {
113
- tr {
114
- &:last-child th {
115
- border-bottom: 1px solid var(--color-divider-dark)
116
- }
117
-
118
- th {
119
- color: var(--color-text-secondary-dark)
120
- }
121
- }
122
- }
123
-
124
- &.table-fixed-first-columns {
125
- tr {
126
- th:first-child {
127
- background: var(--color-cards-dark)
128
- }
129
-
130
- td:first-child {
131
- background: var(--color-cards-dark)
132
- }
133
-
134
- &:hover {
135
- td:first-child {
136
- background: var(--color-table-hover-dark)
137
- }
138
- }
139
- }
140
- }
141
-
142
- &.table-stripped {
143
- tbody {
144
- tr:nth-child(2n):not(:hover) {
145
- td {
146
- background: var(--color-table-active-dark)
147
- }
148
- }
149
- }
150
- }
151
-
152
- tbody {
153
- tr {
154
- &:active {
155
- background: var(--color-table-active-dark)
156
- }
157
-
158
- &:hover {
159
- background: var(--color-table-hover-dark)
160
- }
161
- }
162
-
163
- tr:not(:last-child) {
164
- td {
165
- border-bottom: 1px solid var(--color-divider-dark)
166
- }
167
- }
168
- }
169
-
170
- &.table-bordered .table-wrapper {
171
- border: 1px solid var(--color-divider-dark);
172
- border-collapse: collapse;
173
- }
174
- }
175
91
 
176
92
  .table-wrapper {
177
93
  border-radius: map_get($borders, 'lg');
@@ -367,20 +283,12 @@ $data-table-regular-header-height: 38px !default;
367
283
  width: 17px;
368
284
  height: 17px;
369
285
  }
370
- @include light() {
371
- .manage-footer {
372
- .btn-page {
373
- border: solid 1px var(--color-border-light);
374
- }
375
- }
376
- }
377
- @include dark() {
286
+
378
287
  .manage-footer {
379
288
  .btn-page {
380
- border: solid 1px var(--color-border-dark);
289
+ border: solid 1px var(--color-border);
381
290
  }
382
291
  }
383
- }
384
292
 
385
293
  th {
386
294
  position: relative;