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.
Files changed (68) 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 +5 -5
  4. package/components/bar/scss/bottomNav.scss +4 -5
  5. package/components/bar/scss/toolbar.scss +5 -3
  6. package/components/breadcrumb/style.scss +1 -1
  7. package/components/button/index.vue +4 -4
  8. package/components/button/style.scss +19 -29
  9. package/components/calendar/index.vue +21 -20
  10. package/components/card/style.scss +3 -5
  11. package/components/chat/chatInput.vue +3 -2
  12. package/components/chat/chatMsg.vue +3 -3
  13. package/components/chat/index.vue +2 -1
  14. package/components/chip/index.vue +1 -1
  15. package/components/chip/style.scss +24 -10
  16. package/components/codeEditor/index.vue +5 -4
  17. package/components/confirm/index.vue +3 -3
  18. package/components/container/style.scss +1 -1
  19. package/components/form/checkbox.vue +3 -2
  20. package/components/form/colorPicker/index.vue +8 -3
  21. package/components/form/colorPicker/picker.vue +2 -6
  22. package/components/form/datePicker/index.vue +7 -9
  23. package/components/form/form.vue +7 -4
  24. package/components/form/group-input.vue +1 -1
  25. package/components/form/input.vue +29 -18
  26. package/components/form/inputTel/index.vue +2 -32
  27. package/components/form/json/JsonView.vue +2 -2
  28. package/components/form/json/index.vue +5 -5
  29. package/components/form/radioInput.vue +2 -2
  30. package/components/form/range.vue +2 -2
  31. package/components/form/rating.vue +4 -1
  32. package/components/form/select.vue +1 -1
  33. package/components/form/switch.vue +1 -7
  34. package/components/form/text-editor/index.vue +15 -15
  35. package/components/form/text-editor/style.scss +6 -6
  36. package/components/form/timepicker/index.vue +2 -0
  37. package/components/form/timepicker/timepicker.vue +3 -4
  38. package/components/form/unit-input.vue +3 -3
  39. package/components/formCreator/index.vue +1 -1
  40. package/components/icon/style.scss +1 -4
  41. package/components/img/index.vue +1 -1
  42. package/components/img/svgImg.vue +5 -3
  43. package/components/infinite/div.vue +2 -2
  44. package/components/infinite/index.vue +1 -1
  45. package/components/infinite/page.vue +2 -2
  46. package/components/list/index.vue +2 -2
  47. package/components/list/style.scss +5 -11
  48. package/components/map/index.vue +2 -2
  49. package/components/map/route.vue +3 -3
  50. package/components/menu/index.vue +1 -1
  51. package/components/modal/style.scss +1 -1
  52. package/components/notify/notification.vue +2 -2
  53. package/components/progress/line.vue +26 -27
  54. package/components/progress/style.scss +5 -5
  55. package/components/searchBox/index.vue +4 -4
  56. package/components/table/crud/header.vue +1 -1
  57. package/components/table/index.vue +4 -3
  58. package/components/table/style.scss +19 -16
  59. package/components/timeline/index.vue +1 -1
  60. package/components/tour/index.vue +5 -5
  61. package/components/tree/index.vue +0 -1
  62. package/package.json +1 -1
  63. package/style/app.scss +40 -34
  64. package/style/base.scss +45 -51
  65. package/style/colors.scss +48 -39
  66. package/style/mixins/index.scss +17 -6
  67. package/style/variables/base.scss +84 -69
  68. package/style/variables/color.scss +1 -2
@@ -8,7 +8,7 @@
8
8
  <r-col :style="'height: '+height" class="overflow-y-auto col-12 sm-3">
9
9
  <div class="pa-2">
10
10
  <slot :distance="distance" :time="time" name="header">
11
- <div class="title">{{ $helper.ifHas(modelValue, '------', 'summary', 'name') }}</div>
11
+ <div class="bodey-1">{{ $helper.ifHas(modelValue, '------', 'summary', 'name') }}</div>
12
12
  <r-divider class="my-3"></r-divider>
13
13
  <div>{{ time || '---' }}</div>
14
14
  <div>{{ distance || '0 km' }}</div>
@@ -18,7 +18,7 @@
18
18
  <div v-for="(point,i) in points"
19
19
  :key="i" class="route-point px-2 py-1 my-2 br-lg text-end">
20
20
  <div class="d-flex">
21
- <span class="mt-1 title">{{ pos(points_keys.indexOf(i)) }}</span>
21
+ <span class="mt-1 bodey-3">{{ pos(points_keys.indexOf(i)) }}</span>
22
22
  <r-spacer></r-spacer>
23
23
  <r-btn v-if="editable && i!==points_keys[0]" icon text
24
24
  @click.prevent="to(points_keys.indexOf(i),points_keys.indexOf(i)-1)">
@@ -578,7 +578,7 @@ export default {
578
578
  cursor: pointer;
579
579
 
580
580
  &:hover {
581
- color: var(--color-link);
581
+ color: var(--color-one);
582
582
  }
583
583
  }
584
584
  }
@@ -157,7 +157,7 @@ export default {
157
157
  border: 1px solid var(--color-border);
158
158
 
159
159
  &-item:hover {
160
- background-color: var(--color-sheet-hover);
160
+ background-color: var(--color-sheet-container-high);
161
161
  }
162
162
  }
163
163
 
@@ -25,7 +25,7 @@
25
25
  outline: none;
26
26
 
27
27
  .modal-content {
28
- border: 1px solid var(--color-border);
28
+ border: 1px solid var(--color-sheet-container-low);
29
29
  }
30
30
 
31
31
 
@@ -5,8 +5,8 @@
5
5
  <div v-if="show" :class="[status, 'notify-msg']" :style="{ width: width }">
6
6
  <slot>
7
7
  <div>
8
- <h3 class="title"><b>{{ content.title }}</b></h3>
9
- <p class="subtitle-1 ma-0">{{ content.text }}</p>
8
+ <h3 class="title-1"><b>{{ content.title }}</b></h3>
9
+ <p class="title-2 ma-0">{{ content.text }}</p>
10
10
  </div>
11
11
  </slot>
12
12
  <r-btn class="h-end" icon text @click.prevent.stop="hideMe">
@@ -1,41 +1,40 @@
1
1
  <template>
2
2
  <div :class="{
3
3
  [`${$r.prefix}progress`]:true,
4
- 'progress-outlined':outlined,
5
4
  'progress-rounded':rounded,
6
5
  [`size-${size}`]:true
7
6
  }">
8
- <span class="label" v-if="showPercent">{{ modelValue }} %</span>
9
- <div class="progress-container" :class="{'progress-background':showBackground}">
10
- <div :class="classes" :style="[styles,progressStyle]"></div>
11
- </div>
7
+ <span class="label" v-if="showPercent">{{ modelValue }} %</span>
8
+ <div :class="{'progress-background':showBackground,'progress-outlined':outlined}" class="progress-container">
9
+ <div :class="classes" :style="[styles,progressStyle]"></div>
10
+ </div>
12
11
  </div>
13
12
  </template>
14
13
 
15
14
  <script>
16
- import './style.scss'
15
+ import './style.scss'
17
16
 
18
- export default {
19
- name: 'pline',
20
- props: {
21
- modelValue: [Number, String],
22
- color: String,
23
- progressStyle: [String, Object, Array],
24
- showPercent: Boolean,
25
- outlined: Boolean,
26
- rounded: Boolean,
27
- showBackground: Boolean,
28
- size: {
29
- type: String,
30
- default: 'small',
31
- validator: function (value) {
32
- return ['small', 'medium', 'large', 'x-large'].indexOf(value) !== -1
33
- }
34
- }
35
- },
36
- computed: {
37
- isIndeterminate() {
38
- if (this.modelValue !== undefined) {
17
+ export default {
18
+ name: 'pline',
19
+ props: {
20
+ modelValue: [Number, String],
21
+ color: String,
22
+ progressStyle: [String, Object, Array],
23
+ showPercent: Boolean,
24
+ outlined: Boolean,
25
+ rounded: Boolean,
26
+ showBackground: Boolean,
27
+ size: {
28
+ type: String,
29
+ default: 'small',
30
+ validator: function (value) {
31
+ return ['small', 'medium', 'large', 'x-large'].indexOf(value) !== -1
32
+ }
33
+ }
34
+ },
35
+ computed: {
36
+ isIndeterminate() {
37
+ if (this.modelValue !== undefined) {
39
38
  return !(this.modelValue >= 0 && this.modelValue <= 100)
40
39
  } else {
41
40
  return true
@@ -85,20 +85,20 @@ $progress-circle-overlay-transition: all .6s ease-in-out !default;
85
85
  .#{$prefix}progress {
86
86
  text-align: center;
87
87
 
88
- &.progress-outlined {
89
- color: var(--color-divider)
88
+ .progress-outlined {
89
+ color: var(--color-sheet-container-highest)
90
90
  }
91
91
 
92
92
  .line-determinate {
93
- background-color: var(--color-text-primary);
93
+ background-color: var(--color-on-sheet);
94
94
  }
95
95
 
96
96
  .line-indeterminate {
97
- background-color: var(--color-text-primary);
97
+ background-color: var(--color-on-sheet);
98
98
  }
99
99
 
100
100
  .progress-background {
101
- background-color: var(--color-divider);
101
+ background-color: var(--color-sheet-container-highest);
102
102
  }
103
103
 
104
104
  &.progress-outlined {
@@ -191,7 +191,7 @@ export default {
191
191
  display: flex;
192
192
  align-items: center;
193
193
  border: solid 1px var(--color-border);
194
- color: var(--color-text-primary);
194
+ color: var(--color-on-sheet);
195
195
  position: relative;
196
196
  border-radius: map-get($borders, "md");
197
197
 
@@ -207,7 +207,7 @@ export default {
207
207
  padding: 12px;
208
208
  max-width: 100%;
209
209
  min-width: 0px;
210
- caret-color: var(--color-text-primary);
210
+ caret-color: var(--color-on-sheet);
211
211
  }
212
212
 
213
213
  .card-search {
@@ -234,11 +234,11 @@ export default {
234
234
  border-radius: 0;
235
235
  min-height: 30px;
236
236
  @include ltr() {
237
- border-right: 1px solid var(--color-border) !important;
237
+ border-right: 1px solid var(--color-sheet-container-low) !important;
238
238
  }
239
239
 
240
240
  @include rtl() {
241
- border-left: 1px solid var(--color-border) !important;
241
+ border-left: 1px solid var(--color-sheet-container-low) !important;
242
242
  }
243
243
  }
244
244
 
@@ -179,7 +179,7 @@
179
179
  </r-col>
180
180
  </r-row>
181
181
  </r-container>
182
- <r-progress-line color="color-two" v-if="loading"></r-progress-line>
182
+ <r-progress-line v-if="loading" color="color-one"></r-progress-line>
183
183
  <r-confirm
184
184
  hard
185
185
  v-model="showConfirm"
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <div
3
+ v-bind="$attrs"
3
4
  :class="{
4
5
  [`${$r.prefix}table`]:true,
5
6
  'table-editable':editable,
@@ -13,7 +14,7 @@
13
14
  <svg class="table-svg" height="18" width="18">
14
15
  <path class="table-svg-path" d="M 0 0 l 0 18 l 18 0 q -18 0 -18 -18"/>
15
16
  </svg>
16
- <span class="color-info-text table-editable-icon px-2"
17
+ <span class="table-editable-icon px-2"
17
18
  @click.prevent="open_modal()">
18
19
  <r-icon v-html="$r.icons.setting"></r-icon>
19
20
  </span>
@@ -57,7 +58,7 @@
57
58
  class="tr-hidden">
58
59
  <td :colspan="($helper.size(th)||th.length)">
59
60
  <div v-for="(v,h) in hidden" :key="key+h" class="pa-2">
60
- <span class="title">{{ getText(h) }}: </span>
61
+ <span class="title-1">{{ getText(h) }}: </span>
61
62
  <span>{{ item[h] }}</span>
62
63
  </div>
63
64
  </td>
@@ -85,7 +86,7 @@
85
86
  >
86
87
  <r-col>
87
88
  <r-card class="pa-4 ma-1 d-flex h-space-between" tile>
88
- <span class="title">
89
+ <span class="title-1">
89
90
  <r-btn class="drag-btn" icon text>
90
91
  <r-icon v-html="$r.icons.drag"></r-icon>
91
92
  </r-btn>
@@ -9,31 +9,31 @@ $data-table-regular-header-height: 38px !default;
9
9
  position: relative;
10
10
 
11
11
  .table-wrapper {
12
- background-color: var(--color-sheet);
13
- color: var(--color-text-primary);
12
+ background-color: var(--color-sheet-container-lowest);
13
+ color: var(--color-on-sheet);
14
14
  }
15
15
  .table-svg-path {
16
16
  fill: var(--color-sheet);
17
17
  }
18
18
  .table-editable-icon {
19
- background-color: var(--color-sheet) !important;
20
- color: var(--color-text-primary) !important;
19
+ background-color: var(--color-sheet);
20
+ color: var(--color-on-sheet);
21
21
  }
22
22
  &.table-fixed-header {
23
23
  thead th {
24
- background: var(--color-sheet);
25
- box-shadow: inset 0 -2px var(--color-divider)
24
+ box-shadow: inset 0 -2px var(--color-border)
26
25
  }
27
26
  }
28
27
 
29
28
  thead {
30
29
  tr {
31
30
  &:last-child th {
32
- border-bottom: 1px solid var(--color-divider)
31
+ border-bottom: 1px solid var(--color-border)
33
32
  }
34
33
 
35
34
  th {
36
- color: var(--color-text-secondary)
35
+ background-color: var(--color-sheet);
36
+ color: var(--color-on-sheet)
37
37
  }
38
38
  }
39
39
  }
@@ -41,16 +41,19 @@ $data-table-regular-header-height: 38px !default;
41
41
  &.table-fixed-first-columns {
42
42
  tr {
43
43
  th:first-child {
44
- background: var(--color-sheet)
44
+ background: var(--color-sheet);
45
+ color: var(--color-on-sheet)
45
46
  }
46
47
 
47
48
  td:first-child {
48
- background: var(--color-sheet)
49
+ background: var(--color-sheet);
50
+ color: var(--color-on-sheet)
49
51
  }
50
52
 
51
53
  &:hover {
52
54
  td:first-child {
53
- background: var(--color-sheet-hover)
55
+ background: var(--color-sheet-container);
56
+ color: var(--color-on-sheet)
54
57
  }
55
58
  }
56
59
  }
@@ -60,7 +63,7 @@ $data-table-regular-header-height: 38px !default;
60
63
  tbody {
61
64
  tr:nth-child(2n):not(:hover) {
62
65
  td {
63
- background: var(--color-sheet-active)
66
+ background: var(--color-sheet-container-low)
64
67
  }
65
68
  }
66
69
  }
@@ -69,23 +72,23 @@ $data-table-regular-header-height: 38px !default;
69
72
  tbody {
70
73
  tr {
71
74
  &:active {
72
- background: var(--color-sheet-active)
75
+ background: var(--color-sheet-container)
73
76
  }
74
77
 
75
78
  &:hover {
76
- background: var(--color-sheet-hover)
79
+ background: var(--color-sheet-container)
77
80
  }
78
81
  }
79
82
 
80
83
  tr:not(:last-child) {
81
84
  td {
82
- border-bottom: 1px solid var(--color-divider)
85
+ border-bottom: 1px solid var(--color-border)
83
86
  }
84
87
  }
85
88
  }
86
89
 
87
90
  &.table-bordered .table-wrapper {
88
- border: 1px solid var(--color-divider);
91
+ border: 1px solid var(--color-border);
89
92
  border-collapse: collapse;
90
93
  }
91
94
 
@@ -39,7 +39,7 @@
39
39
  content: '';
40
40
  width: 1px;
41
41
  height: 40%;
42
- border-right: 2px solid var(--color-divider);
42
+ border-right: 2px solid var(--color-border);
43
43
  position: absolute;
44
44
  bottom: -20%;
45
45
  z-index: 0;
@@ -2,23 +2,23 @@
2
2
  <teleport :to="`.${$r.prefix}app`">
3
3
  <div :style="style" class="tour-layer"></div>
4
4
  <transition name="slide-up" mode="out-in">
5
- <div v-if="msg" ref="tourMsg" :style="style_msg" class="tour-msg display-4">
5
+ <div v-if="msg" ref="tourMsg" :style="style_msg" class="tour-msg headline-1">
6
6
  <r-container>
7
7
  <div v-html="$helper.cleanXss(steps[run].msg)"></div>
8
8
  <div class="d-flex">
9
9
  <div><span
10
- class="subtitle-1 color-success br-lg py-1 px-2 ltr">{{ steps.length }} / {{ run + 1 }}</span>
10
+ class="title-2 color-success br-lg py-1 px-2 ltr">{{ steps.length }} / {{ run + 1 }}</span>
11
11
  </div>
12
12
  <r-spacer></r-spacer>
13
- <r-btn v-if="has_prev" :disabled="disable_prev" class="color-warning tour-clickable" @click.prevent="prev">
13
+ <r-btn v-if="has_prev" :disabled="disable_prev" class="color-info tour-clickable" @click.prevent="prev">
14
14
  {{ $t('prev', 'renusify') }}
15
15
  </r-btn>
16
- <r-btn v-if="has_next" :disabled="disable_next" class="color-warning mx-1 tour-clickable"
16
+ <r-btn v-if="has_next" :disabled="disable_next" class="color-info mx-1 tour-clickable"
17
17
  @click.prevent="next">
18
18
  {{ $t('next', 'renusify') }}
19
19
  </r-btn>
20
20
  <r-btn v-if="steps.length===run+1||canFinish" :disabled="disable_finish"
21
- class="color-warning mx-1 tour-clickable"
21
+ class="color-success mx-1 tour-clickable"
22
22
  @click.prevent="finish">{{ $t('finish', 'renusify') }}
23
23
  </r-btn>
24
24
  </div>
@@ -123,7 +123,6 @@ $distance: 20px;
123
123
  position: relative;
124
124
  width: 100%;
125
125
  height: 100%;
126
- background-color: var(--color-background-one);
127
126
 
128
127
  &.tree-searchable {
129
128
  .#{$prefix}float {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "1.4.8",
3
+ "version": "2.0.1",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",
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);
45
- $color-text: var(--color-two-text);
44
+ $color: var(--color-one);
45
+ $color-text: var(--color-on-one);
46
46
 
47
47
  ::-moz-selection {
48
48
  color: $color-text;
@@ -82,7 +82,7 @@ $color-text: var(--color-two-text);
82
82
  }
83
83
 
84
84
  .router-link-exact-active, a:hover {
85
- color: var(--color-link)
85
+ color: var(--color-one)
86
86
  }
87
87
 
88
88
  //curser
@@ -124,55 +124,67 @@ $color-text: var(--color-two-text);
124
124
 
125
125
  //typography
126
126
  .#{$prefix}app {
127
- @include typography($headings, 'body-1');
127
+ @include typography($headings, 'body-2');
128
128
 
129
129
  .display-1 {
130
- @include typography($headings, 'h1')
130
+ @include typography($headings, 'display-1')
131
131
  }
132
132
 
133
133
  .display-2 {
134
- @include typography($headings, 'h2')
134
+ @include typography($headings, 'display-2')
135
135
  }
136
136
 
137
137
  .display-3 {
138
- @include typography($headings, 'h3')
138
+ @include typography($headings, 'display-3')
139
139
  }
140
140
 
141
- .display-4 {
142
- @include typography($headings, 'h4')
141
+ .headline-1 {
142
+ @include typography($headings, 'headline-1')
143
143
  }
144
144
 
145
- .display-5 {
146
- @include typography($headings, 'h5')
145
+ .headline-2 {
146
+ @include typography($headings, 'headline-2')
147
147
  }
148
148
 
149
- .title {
150
- @include typography($headings, 'h6')
149
+ .headline-3 {
150
+ @include typography($headings, 'headline-3')
151
151
  }
152
152
 
153
- .subtitle-1 {
154
- @include typography($headings, 'subtitle-1');
153
+ .title-1 {
154
+ @include typography($headings, 'title-1')
155
155
  }
156
156
 
157
- .subtitle-2 {
158
- @include typography($headings, 'subtitle-2');
157
+ .title-2 {
158
+ @include typography($headings, 'title-2');
159
159
  }
160
160
 
161
- .body-2 {
162
- @include typography($headings, 'body-2');
161
+ .title-3 {
162
+ @include typography($headings, 'title-3');
163
163
  }
164
164
 
165
165
  .body-1 {
166
166
  @include typography($headings, 'body-1');
167
167
  }
168
168
 
169
- .caption {
170
- @include typography($headings, 'caption')
169
+ .body-2 {
170
+ @include typography($headings, 'body-2');
171
+ }
172
+
173
+ .body-3 {
174
+ @include typography($headings, 'body-3');
175
+ }
176
+
177
+
178
+ .label-1 {
179
+ @include typography($headings, 'label-1')
180
+ }
181
+
182
+ .label-2 {
183
+ @include typography($headings, 'label-2')
171
184
  }
172
185
 
173
- .overline {
174
- @include typography($headings, 'overline');
175
- text-transform: uppercase
186
+ .label-3 {
187
+ @include typography($headings, 'label-3')
176
188
  }
177
189
 
178
190
  p {
@@ -181,10 +193,6 @@ $color-text: var(--color-two-text);
181
193
 
182
194
  }
183
195
 
184
- .subtitle-1, .subtitle-2, .body-2, .caption, .overline {
185
- @include text-color(var(--color-text-secondary));
186
- }
187
-
188
196
  //width
189
197
  .#{$prefix}app {
190
198
  @each $name, $value in $widths {
@@ -290,18 +298,16 @@ $color-text: var(--color-two-text);
290
298
  color: white;
291
299
  }
292
300
 
293
- $background: #e2ece2;
294
-
295
301
  blockquote {
296
- background-color: $background;
297
- border: 5px solid var(--color-one);
302
+ background-color: var(--color-one-container);
303
+ border: 5px solid var(--color-border);
298
304
 
299
305
  &::before {
300
- background-color: $background;
306
+ background-color: var(--color-one-container);
301
307
  }
302
308
 
303
309
  &::after {
304
- color: var(--color-one);
310
+ color: var(--color-on-one-container);
305
311
  }
306
312
  }
307
313