renusify 1.1.5 → 1.2.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 (79) hide show
  1. package/components/app/notify/notification.vue +2 -1
  2. package/components/app/toast/index.vue +7 -2
  3. package/components/app/toast/toast.vue +2 -0
  4. package/components/bar/bottomNavigationCircle.vue +1 -0
  5. package/components/bar/scss/bottomNav.scss +1 -1
  6. package/components/bar/toolbar/laptop.vue +4 -4
  7. package/components/bar/toolbar/mixin.js +1 -2
  8. package/components/bar/toolbar/mobile.vue +5 -4
  9. package/components/breadcrumb/index.vue +1 -0
  10. package/components/button/buttonConfirm.vue +1 -1
  11. package/components/button/buttonGroup.vue +1 -0
  12. package/components/button/style.scss +1 -0
  13. package/components/calendar/index.vue +1 -0
  14. package/components/calendar/month.vue +1 -0
  15. package/components/calendar/year.vue +1 -0
  16. package/components/chat/chatInput.vue +1 -0
  17. package/components/chat/chatMsg.vue +1 -0
  18. package/components/chat/index.vue +1 -0
  19. package/components/chip/index.vue +1 -0
  20. package/components/codeEditor/index.vue +0 -2
  21. package/components/codeEditor/run.vue +1 -58
  22. package/components/confirm/index.vue +1 -0
  23. package/components/countdown/index.vue +1 -0
  24. package/components/float/index.vue +1 -0
  25. package/components/form/address.vue +2 -1
  26. package/components/form/camInput.vue +2 -1
  27. package/components/form/check-input.vue +1 -1
  28. package/components/form/checkbox.vue +1 -1
  29. package/components/form/colorPicker/index.vue +1 -0
  30. package/components/form/colorPicker/picker.vue +1 -0
  31. package/components/form/datePicker/index.vue +349 -348
  32. package/components/form/datePicker/month.vue +1 -0
  33. package/components/form/datePicker/year.vue +1 -0
  34. package/components/form/fileUploader/index.vue +1 -0
  35. package/components/form/fileUploader/single.vue +1 -0
  36. package/components/form/form.vue +1 -0
  37. package/components/form/group-input.vue +5 -4
  38. package/components/form/input.vue +253 -1
  39. package/components/form/inputTel/index.vue +1 -0
  40. package/components/form/json/JsonView.vue +95 -94
  41. package/components/form/json/index.vue +2 -0
  42. package/components/form/mask-input.vue +1 -0
  43. package/components/form/number.vue +1 -0
  44. package/components/form/password.vue +121 -121
  45. package/components/form/radioInput.vue +1 -0
  46. package/components/form/range.vue +1 -0
  47. package/components/form/rating.vue +13 -1
  48. package/components/form/select.vue +61 -2
  49. package/components/form/switch.vue +64 -2
  50. package/components/form/text-area.vue +1 -1
  51. package/components/form/text-editor/index.vue +5 -2
  52. package/components/form/text-input.vue +1 -1
  53. package/components/form/timepicker/index.vue +2 -1
  54. package/components/form/timepicker/range.vue +2 -1
  55. package/components/form/timepicker/timepicker.vue +2 -1
  56. package/components/form/unique/index.vue +1 -0
  57. package/components/form/unit-input.vue +2 -1
  58. package/components/formCreator/index.vue +5 -4
  59. package/components/html2pdf/index.vue +1 -0
  60. package/components/list/index.vue +3 -2
  61. package/components/map/index.vue +1 -0
  62. package/components/map/route.vue +1 -0
  63. package/components/map/select.vue +1 -0
  64. package/components/menu/index.vue +1 -0
  65. package/components/modal/index.vue +1 -0
  66. package/components/searchBox/index.vue +1 -1
  67. package/components/slider/index.vue +1 -0
  68. package/components/table/crud/footer.vue +1 -1
  69. package/components/table/crud/header.vue +10 -4
  70. package/components/table/crud/index.vue +1 -0
  71. package/components/tabs/index.vue +1 -0
  72. package/components/tree/index.vue +2 -1
  73. package/components/tree/tree-element.vue +3 -2
  74. package/package.json +1 -1
  75. package/style/colors.scss +1 -1
  76. package/components/form/scss/input.scss +0 -249
  77. package/components/form/scss/rating.scss +0 -9
  78. package/components/form/scss/select.scss +0 -55
  79. package/components/form/scss/switch.scss +0 -68
@@ -26,7 +26,7 @@
26
26
  import './style.scss'
27
27
  import Ripple from '../../directive/ripple/index'
28
28
 
29
- export default {
29
+ export default {
30
30
  name: 'r-list',
31
31
  directives: {ripple: Ripple},
32
32
  props: {
@@ -43,6 +43,7 @@ import Ripple from '../../directive/ripple/index'
43
43
  items: Array,
44
44
  modelValue: {type: [Array, Object]}
45
45
  },
46
+ emits:['update:modelValue'],
46
47
  computed: {
47
48
  list() {
48
49
  if (this.modelValue) {
@@ -112,7 +113,7 @@ import Ripple from '../../directive/ripple/index'
112
113
  val.push(item)
113
114
  }
114
115
 
115
- this.$emit('update:model-value', this.multiple?val:val[0])
116
+ this.$emit('update:modelValue', this.multiple?val:val[0])
116
117
  }
117
118
  }
118
119
 
@@ -84,6 +84,7 @@ export default {
84
84
  license: '&copy; | <a href="https://leafletjs.com" target="_blank">Leaflet</a> | <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors | Renusify'
85
85
  };
86
86
  },
87
+ emits:['update:modelValue','leaflet','map'],
87
88
  created() {
88
89
  if (!this.$r.icons.crosshairs_gps) {
89
90
  this.$r.icons.crosshairs_gps = '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m-8.95 5H1v-2h2.05C3.5 6.83 6.83 3.5 11 3.05V1h2v2.05c4.17.45 7.5 3.78 7.95 7.95H23v2h-2.05c-.45 4.17-3.78 7.5-7.95 7.95V23h-2v-2.05C6.83 20.5 3.5 17.17 3.05 13M12 5a7 7 0 0 0-7 7a7 7 0 0 0 7 7a7 7 0 0 0 7-7a7 7 0 0 0-7-7Z"/></svg>'
@@ -71,6 +71,7 @@
71
71
  darkMode: Boolean,
72
72
  editable: Boolean
73
73
  },
74
+ emits:['update:modelValue'],
74
75
  data() {
75
76
  return {
76
77
  loading: false,
@@ -16,6 +16,7 @@
16
16
  height: {type: String, default: "500px"},
17
17
  zoom: {type: Number, default: 13},
18
18
  },
19
+ emits:['update:modelValue'],
19
20
  data() {
20
21
  return {
21
22
  map: null,
@@ -56,6 +56,7 @@ export default {
56
56
  overlay: Boolean,
57
57
  items: Array
58
58
  },
59
+ emits:['update:modelValue'],
59
60
  data() {
60
61
  return {
61
62
  show: false,
@@ -62,6 +62,7 @@ export default {
62
62
  }
63
63
 
64
64
  },
65
+ emits:['update:modelValue'],
65
66
  data() {
66
67
  return {
67
68
  state: null,
@@ -69,7 +69,7 @@ export default {
69
69
  openToTop: Boolean,
70
70
  headers: Object
71
71
  },
72
-
72
+ emits:['update:modelValue','select'],
73
73
  data() {
74
74
  return {
75
75
  show: false,
@@ -75,6 +75,7 @@ export default {
75
75
  default: true
76
76
  }
77
77
  },
78
+ emits:['index'],
78
79
  data() {
79
80
  return {
80
81
  direction: 'slider-right',
@@ -3,7 +3,7 @@
3
3
  <r-container class="container-fluid">
4
4
  <r-row class="v-baseline h-end">
5
5
  <r-col class="col-auto">
6
- <r-select-input class="per-page" open-to-top :items="[
6
+ <r-select-input class="per-page" open-to-top disableSearch :items="[
7
7
  {name: '10', value: 10},
8
8
  {name: '20', value: 20},
9
9
  {name: '50', value: 50},
@@ -30,12 +30,12 @@
30
30
  </r-col>
31
31
  <r-col v-if="!show" class="col-12">
32
32
  <r-text-input :label="$t('search','renusify')"
33
- @update:modelValue="$emit('update:model-value',$event)"
33
+ @update:modelValue="$emit('update:modelValue',$event)"
34
34
  :model-value="search"></r-text-input>
35
35
  </r-col>
36
36
  <r-col v-else class="col-12">
37
37
  <r-container class="pa-0" full-width>
38
- <r-select-input :model-value="select" :items="header" text="text"
38
+ <r-select-input :model-value="select" :items="header" text="text" disableSearch
39
39
  :label="$t('add','renusify')" @update:model-value="add"></r-select-input>
40
40
  <r-divider class="my-3"></r-divider>
41
41
  <template v-for="(item,i) in inputs" :key="i">
@@ -50,6 +50,7 @@
50
50
  {name:$t('advance_search_id','renusify'),value:'_id'}
51
51
  ]"
52
52
  justValue
53
+ disableSearch
53
54
  firstSelect
54
55
  :label="$t('advance_search_operator','renusify')"></r-select-input>
55
56
  </r-col>
@@ -74,6 +75,7 @@
74
75
  {name:$t('advance_search_lte','renusify'),value:'lte'}]"
75
76
  firstSelect
76
77
  justValue
78
+ disableSearch
77
79
  :label="$t('advance_search_operator','renusify')"></r-select-input>
78
80
  </r-col>
79
81
  <r-col class="col-6 md-8">
@@ -93,6 +95,7 @@
93
95
  ]"
94
96
  justValue
95
97
  firstSelect
98
+ disableSearch
96
99
  :label="$t('advance_search_operator','renusify')"></r-select-input>
97
100
  </r-col>
98
101
  <r-col class="col-6 md-8">
@@ -113,11 +116,12 @@
113
116
  ]"
114
117
  justValue
115
118
  firstSelect
119
+ disableSearch
116
120
  :label="$t('advance_search_operator','renusify')"></r-select-input>
117
121
  </r-col>
118
122
  <r-col class="col-6 md-8">
119
123
  <r-select-input v-model="item.advance.search" :label="item.text" :items="item.option.items"
120
- multiple tags></r-select-input>
124
+ disableSearch multiple tags></r-select-input>
121
125
  </r-col>
122
126
  <r-col class="col-1">
123
127
  <r-btn class="color-error" icon @click.prevent="del(i)">
@@ -135,6 +139,7 @@
135
139
  {name:$t('advance_search_lte','renusify'),value:'lte'}
136
140
  ]"
137
141
  justValue
142
+ disableSearch
138
143
  firstSelect
139
144
  :label="$t('advance_search_operator','renusify')"></r-select-input>
140
145
  </r-col>
@@ -174,6 +179,7 @@
174
179
  newItem: Function,
175
180
  search: String
176
181
  },
182
+ emits:['update:modelValue','copy','edit','delete','a-search'],
177
183
  data() {
178
184
  return {
179
185
  show: false,
@@ -188,7 +194,7 @@
188
194
  this.showConfirm=false
189
195
  },
190
196
  send() {
191
- this.$emit('update:model-value', '')
197
+ this.$emit('update:modelValue', '')
192
198
  let r = []
193
199
  this.inputs.forEach((item) => {
194
200
  r.push({'name': item.value, 'advance': item.advance})
@@ -199,6 +199,7 @@ export default {
199
199
  mcud: String,
200
200
  headers: Object
201
201
  },
202
+ emits:['actions'],
202
203
  data() {
203
204
  return {
204
205
  time_out_id: null,
@@ -77,6 +77,7 @@ export default {
77
77
  default: true
78
78
  }
79
79
  },
80
+ emits:['update:modelValue'],
80
81
  data() {
81
82
  return {
82
83
  disableLeft: true,
@@ -17,7 +17,7 @@
17
17
  }">
18
18
  <slot
19
19
  :parent-node="nodeParent"
20
- @update:model-value="$emit('update:model-value',$event)"
20
+ @update:model-value="$emit('update:modelValue',$event)"
21
21
  :model-value="node"
22
22
  :link="link"
23
23
  @select-node="handleSelect"
@@ -56,6 +56,7 @@
56
56
  openAll: Boolean,
57
57
  headers: Object
58
58
  },
59
+ emits:['update:modelValue','select-node'],
59
60
  data() {
60
61
  return {
61
62
  show: false,
@@ -65,6 +65,7 @@ export default {
65
65
  componentName: Object,
66
66
  headers: Object
67
67
  },
68
+ emits:['update:modelValue','fire','select','expand'],
68
69
  data() {
69
70
  return {
70
71
  back: false,
@@ -129,7 +130,7 @@ export default {
129
130
  updateNode(e, key) {
130
131
  let res = Object.assign({}, this.modelValue)
131
132
  res[this.nodeKey][this.childsName][key] = e[key]
132
- this.$emit('update:model-value', this.modelValue)
133
+ this.$emit('update:modelValue', this.modelValue)
133
134
  },
134
135
  handleExpand(e, current) {
135
136
  if (current) {
@@ -137,7 +138,7 @@ export default {
137
138
  this.loading = true
138
139
  this.$axios.get(this.link + e, {headers: this.headers})
139
140
  .then(({data}) => {
140
- this.$emit('update:model-value', data)
141
+ this.$emit('update:modelValue', data)
141
142
  this.open = !this.open
142
143
  setTimeout(() => {
143
144
  this.$emit('expand', [this.open, this.$refs.tree.$el])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "1.1.5",
3
+ "version": "1.2.1",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",
package/style/colors.scss CHANGED
@@ -73,7 +73,7 @@ $colorsList: (
73
73
  @each $color_name, $color_value in $colorMain {
74
74
  .color-#{$color_name} {
75
75
  @include background-color(var(--color-#{$color_name}), true);
76
- @include text-color(var(--color-#{$color_name}-text));
76
+ @include text-color(var(--color-#{$color_name}-text),true);
77
77
  }
78
78
  .color-#{$color_name}-text {
79
79
  @include text-color(var(--color-#{$color_name}), true);
@@ -1,249 +0,0 @@
1
- @import '../../../style/include';
2
-
3
-
4
- .#{$prefix}input-container {
5
- position: relative;
6
- align-items: flex-start;
7
- display: flex;
8
- flex: 1 1 auto;
9
- flex-direction: column;
10
- line-height: 24px;
11
- font-size: 1rem;
12
- letter-spacing: normal;
13
- margin-top: 20px;
14
-
15
- &.input-ltr {
16
- input {
17
- direction: ltr;
18
- }
19
- }
20
-
21
- &:not(.input-disabled) {
22
- input,
23
- textarea, .label, .#{$prefix}icon, .#{$prefix}btn {
24
- color: var(--color-text-primary)
25
- }
26
- }
27
-
28
- input::placeholder,
29
- textarea::placeholder {
30
- color: var(--color-text-disabled)
31
- }
32
-
33
- &.input-disabled {
34
- * {
35
- color: var(--color-text-disabled)
36
- }
37
- }
38
-
39
- .input-control {
40
- border: solid 1px var(--color-border)
41
- }
42
-
43
- &.input-disabled {
44
- pointer-events: none;
45
- }
46
-
47
- input {
48
- max-height: 32px
49
- }
50
-
51
- input,
52
- textarea {
53
- flex: 1 1 auto;
54
- line-height: 20px;
55
- padding: 8px 0 8px;
56
- max-width: 100%;
57
- min-width: 0px;
58
- width: 100%;
59
- outline: none;
60
- position: relative;
61
-
62
- &[type=text ]::-ms-clear {
63
- display: none
64
- }
65
-
66
- &:invalid {
67
- box-shadow: none
68
- }
69
-
70
- &:focus,
71
- &:active {
72
- outline: none
73
- }
74
- }
75
-
76
- .input-control {
77
- display: flex;
78
- flex-direction: column;
79
- height: 40px;
80
- flex-grow: 1;
81
- flex-wrap: wrap;
82
- width: 100%;
83
- align-items: flex-start;
84
- justify-content: center;
85
- position: relative;
86
- .after-icon {
87
- position: absolute;
88
- cursor: pointer;
89
- @include ltr() {
90
- right: 5px;
91
- }
92
- @include rtl() {
93
- left: 5px;
94
- }
95
-
96
- }
97
- .pre-icon {
98
- position: absolute;
99
- cursor: pointer;
100
- @include ltr() {
101
- left: 5px;
102
- }
103
- @include rtl() {
104
- right: 5px;
105
- }
106
-
107
- }
108
-
109
- &:not(.input-tile) {
110
- padding: 0 16px;
111
- border-radius: 20px;
112
- }
113
-
114
- &.input-tile {
115
- padding: 0 8px;
116
- border-radius: 4px;
117
- }
118
- }
119
-
120
- &.hide-detail {
121
-
122
- > .input-control {
123
- border: unset !important;
124
- height: auto;
125
- padding: 0;
126
- }
127
- }
128
-
129
- .label {
130
- white-space: nowrap;
131
- position: absolute;
132
- z-index: 0;
133
- top: 8px;
134
- transition: $primary-transition;
135
-
136
- @include ltr() {
137
- left: 15px;
138
- transform-origin: top left;
139
- }
140
-
141
- @include rtl() {
142
- right: 15px;
143
- transform-origin: top right;
144
- }
145
- }
146
-
147
- :not(.input-tile) {
148
- .label-active {
149
- @include ltr() {
150
- transform: translateY(-27px) translateX(5px) scale(.9);
151
- }
152
- @include rtl() {
153
- transform: translateY(-27px) translateX(-5px) scale(.9);
154
- }
155
- transition: $primary-transition
156
- }
157
- }
158
-
159
- .label-fixed {
160
- transform: none !important;
161
- top: -20px !important;
162
- @include ltr() {
163
- left: 0 !important;
164
- }
165
- @include rtl() {
166
- right: 0 !important;
167
- }
168
- }
169
-
170
- .input-tile {
171
- .label-active {
172
- @include ltr() {
173
- transform: translateY(-27px) translateX(-8px) scale(.9);
174
- }
175
- @include rtl() {
176
- transform: translateY(-27px) translateX(8px) scale(.9);
177
- }
178
- transition: $primary-transition
179
- }
180
- }
181
-
182
- &.input-focused {
183
- .input-control {
184
- border: solid 1px currentColor;
185
- }
186
-
187
- .#{$prefix}icon, .#{$prefix}btn {
188
- color: currentColor !important;
189
- }
190
-
191
- :not(.input-tile) {
192
- .label {
193
- color: currentColor !important;
194
- @include ltr() {
195
- transform: translateY(-27px) translateX(5px) scale(.9);
196
- }
197
- @include rtl() {
198
- transform: translateY(-27px) translateX(-5px) scale(.9);
199
- }
200
- transition: $primary-transition
201
- }
202
- }
203
-
204
- .input-tile {
205
- .label {
206
- color: currentColor !important;
207
- @include ltr() {
208
- transform: translateY(-27px) translateX(-8px) scale(.9);
209
- }
210
- @include rtl() {
211
- transform: translateY(-27px) translateX(8px) scale(.9);
212
- }
213
- transition: $primary-transition
214
- }
215
- }
216
- }
217
-
218
- .massage {
219
- display: none;
220
- margin-left: 10px;
221
-
222
- &-active {
223
- display: block;
224
- }
225
- }
226
-
227
-
228
- &.color-error-text {
229
- .label {
230
- color: currentColor;
231
- }
232
-
233
- .input-control {
234
- border: solid 1px currentColor;
235
- }
236
- }
237
-
238
- &.text-area {
239
- .input-control {
240
- height: auto;
241
-
242
- &:not(.input-tile) {
243
- border-radius: 15px;
244
- }
245
- }
246
-
247
- }
248
- }
249
-
@@ -1,9 +0,0 @@
1
- @import "../../../style/include";
2
-
3
-
4
- .#{$prefix}rating {
5
- max-width: 100%;
6
- white-space: nowrap;
7
- transition: 1s $primary-transition;
8
- color: var(--color-text-disabled);
9
- }
@@ -1,55 +0,0 @@
1
- @import "../../../style/include";
2
- $min-height:40px;
3
- .#{$prefix}select-container {
4
- position: relative;
5
- .input-control {
6
- min-height: $min-height;
7
- height: auto;
8
- flex-direction: row;
9
- align-items: center;
10
- display: flex;
11
- flex: 1 1;
12
- flex-wrap: wrap;
13
- line-height: 24px;
14
- max-width: 100%;
15
- min-width: 0;
16
- }
17
-
18
- .select-wrap {
19
- max-width: 100%;
20
- display: flex;
21
- flex: 1 1 auto;
22
- flex-wrap: wrap;
23
- }
24
-
25
- input {
26
- flex: 1 1;
27
- margin-top: 0;
28
- min-width: 140px;
29
- position: relative;
30
- }
31
-
32
- .#{$prefix}chip {
33
- flex: 0 1 auto;
34
- margin: 4px;
35
- }
36
-
37
- .card-select {
38
- max-height: 0;
39
- overflow: auto;
40
- opacity: .5;
41
- transition: all .3s $primary-transition;
42
- position: absolute;
43
- left: 0;
44
- z-index: map_get($z-index, 'default');
45
- }
46
- .to-top{
47
- bottom: $min-height+2px;
48
- }
49
-
50
- .card-select-active {
51
- transition: all 0.3s $primary-transition;
52
- max-height: 300px;
53
- opacity: 1;
54
- }
55
- }
@@ -1,68 +0,0 @@
1
- @import "renusify/style/_include.scss";
2
-
3
- .#{$prefix}switch {
4
-
5
- .switch-container {
6
- display: flex;
7
- flex-direction: row;
8
- align-items: center;
9
- height: 30px;
10
- }
11
-
12
- .switch-holder {
13
- width: 45px;
14
- height: 13px;
15
- position: relative;
16
- display: flex;
17
- flex-direction: row;
18
- align-items: center;
19
- cursor: pointer;
20
- }
21
-
22
- .switch-line {
23
- width: 100%;
24
- height: 100%;
25
- border-radius: 10px;
26
- background-color: var(--color-disabled);
27
- }
28
-
29
- .switch-dot {
30
- position: absolute;
31
- width: 20px;
32
- height: 20px;
33
- border-radius: 50%;
34
- background-color: #cdcbcb;
35
- transition: .3s map_get($transition,'fast-in-fast-out');
36
- @include rtl() {
37
- right: 0;
38
- }
39
- @include ltr() {
40
- left: 0;
41
- }
42
- }
43
-
44
- .switch-active {
45
- .switch-line {
46
- background-color: currentColor;
47
- opacity: 0.5;
48
- }
49
-
50
- .switch-dot {
51
- background-color: currentColor;
52
- @include rtl() {
53
- right: 25px;
54
- }
55
- @include ltr() {
56
- left: 25px;
57
- }
58
- }
59
- }
60
-
61
- }
62
-
63
-
64
-
65
-
66
-
67
-
68
-