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
@@ -86,19 +86,19 @@ $progress-circle-overlay-transition: all .6s ease-in-out !default;
86
86
  text-align: center;
87
87
 
88
88
  &.progress-outlined {
89
- color: var(--color-divider)
89
+ color: var(--color-border)
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);
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 {
@@ -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-container-lowest);
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-container)
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
 
@@ -1,17 +1,6 @@
1
1
  <template>
2
- <nav :class="$r.prefix+'tabs'">
3
- <div class="btn-tabs d-flex h-end v-center">
4
- <r-btn @click.stop="isRtl?scroll_right():scroll_left()"
5
- icon
6
- text
7
- v-if="isRtl?!disableRight:!disableLeft">
8
- <r-icon v-html="$r.icons.chevron_left"></r-icon>
9
- </r-btn>
10
- </div>
11
-
12
- <div :class="[wrapperClass,{
13
- 'tabs-hidden':$r.breakpoint.width>960
14
- }]" class="tabs-wrap" ref="tabs">
2
+ <div :class="$r.prefix+'tabs'">
3
+ <div ref="tabs" :class="[wrapperClass]" class="tabs-wrap">
15
4
  <button
16
5
  v-for="tab in items"
17
6
  :key="tab.title"
@@ -33,16 +22,7 @@
33
22
  :style="{ width: `${activeLineWidth}px`, transform: `translateX(${activeLineOffset}px)` }"
34
23
  class="tabs__active-line"></div>
35
24
  </div>
36
- <div class="btn-tabs d-flex h-start v-center">
37
- <r-btn @click.stop="isRtl?scroll_left():scroll_right()"
38
- icon
39
- text
40
- v-if="isRtl?!disableLeft:!disableRight">
41
- <r-icon v-html="$r.icons.chevron_right"></r-icon>
42
- </r-btn>
43
- </div>
44
-
45
- </nav>
25
+ </div>
46
26
  </template>
47
27
 
48
28
  <script>
@@ -77,15 +57,12 @@ export default {
77
57
  emits: ['update:modelValue'],
78
58
  data() {
79
59
  return {
80
- disableLeft: true,
81
- disableRight: true,
82
60
  activeLineWidth: 0,
83
61
  activeLineOffset: 0
84
62
  }
85
63
  },
86
64
  mounted() {
87
65
  setTimeout(() => {
88
- this.offset()
89
66
  if (this.modelValue) {
90
67
  this.moveActiveLine(this.modelValue.toString())
91
68
  }
@@ -95,46 +72,12 @@ export default {
95
72
  modelValue(newCurrentTab, o) {
96
73
  if (o === newCurrentTab) return
97
74
  setTimeout(() => {
98
- this.offset()
99
75
  this.moveActiveLine(newCurrentTab)
100
76
  }, 100)
101
77
  }
102
78
  },
103
- computed: {
104
- isRtl() {
105
- return this.$r.rtl
106
- }
107
- },
108
- methods: {
109
- scroll_left() {
110
- this.$refs.tabs.scrollLeft -= this.$refs.tabs.clientWidth * 3 / 4
111
- this.offset()
112
- },
113
- scroll_right() {
114
- this.$refs.tabs.scrollLeft += this.$refs.tabs.clientWidth * 3 / 4
115
- this.offset()
116
- },
117
- offset() {
118
- const div = this.$refs.tabs
119
- this.disableLeft = true
120
- this.disableRight = true
121
- if (!div) {
122
- return false
123
- }
124
79
 
125
- setTimeout(() => {
126
- if (div.clientWidth === div.scrollWidth) {
127
- this.disableLeft = true
128
- this.disableRight = true
129
- } else if (div.scrollLeft === 0) {
130
- this.disableLeft = true
131
- this.disableRight = false
132
- } else if (div.scrollLeft + div.clientWidth === div.scrollWidth) {
133
- this.disableRight = true
134
- this.disableLeft = false
135
- }
136
- }, 100)
137
- },
80
+ methods: {
138
81
  handleClick(value) {
139
82
  this.$emit('update:modelValue', value)
140
83
  this.moveActiveLine(value.toString())
@@ -169,10 +112,6 @@ $btnTabsWidth: 50px;
169
112
  width: calc(100% - #{$btnTabsWidth*2});
170
113
  overflow: auto;
171
114
 
172
- &.tabs-hidden {
173
- overflow: hidden;
174
- }
175
-
176
115
  scroll-behavior: smooth;
177
116
  }
178
117
 
@@ -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.7",
3
+ "version": "2.0.0",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",
@@ -3,8 +3,8 @@ class Request {
3
3
  this._baseURL = '/';
4
4
  this._headers={
5
5
  common:{
6
- 'Accept': 'application/json, text/plain, */*',
7
- 'X-Requested-With':'XMLHttpRequest'
6
+ 'Accept': '*/*',
7
+ 'X-Requested-With': 'XMLHttpRequest'
8
8
  },
9
9
  get:{
10
10
  'Content-Type':'application/x-www-form-urlencoded;charset=utf-8'
@@ -49,7 +49,7 @@ class Request {
49
49
  xhr.setRequestHeader(key, opts.headers[key]);
50
50
  });
51
51
  }
52
- var params = opts.params;
52
+ let params = opts.params;
53
53
  // We'll need to stringify if we've been given an object
54
54
  // If we have a string, this is skipped.
55
55
  if (params && typeof params === "object") {
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 {
@@ -250,13 +258,17 @@ $color-text: var(--color-two-text);
250
258
  }
251
259
 
252
260
  .#{$prefix}app {
261
+ * {
262
+ scroll-margin: 100px;
263
+ }
264
+
253
265
  ol, ul {
254
266
  margin: 0 15px;
255
267
  }
256
268
 
257
- pre {
258
- border-left: 5px solid var(--color-one);
259
- }
269
+ pre {
270
+ border-left: 5px solid var(--color-one);
271
+ }
260
272
 
261
273
  pre {
262
274
  direction: ltr;
@@ -286,19 +298,18 @@ $color-text: var(--color-two-text);
286
298
  color: white;
287
299
  }
288
300
 
289
- $background: #e2ece2;
290
- blockquote {
291
- background-color: $background;
292
- border: 5px solid var(--color-one);
301
+ blockquote {
302
+ background-color: var(--color-one-container);
303
+ border: 5px solid var(--color-border);
293
304
 
294
- &::before {
295
- background-color: $background;
296
- }
305
+ &::before {
306
+ background-color: var(--color-one-container);
307
+ }
297
308
 
298
- &::after {
299
- color: var(--color-one);
300
- }
309
+ &::after {
310
+ color: var(--color-on-one-container);
301
311
  }
312
+ }
302
313
 
303
314
  blockquote {
304
315
  font-family: Georgia, Times, "Times New Roman", serif;