renusify 2.0.4 → 2.1.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 (174) hide show
  1. package/components/app/index.js +5 -0
  2. package/components/app/index.vue +0 -2
  3. package/components/avatar/index.js +3 -0
  4. package/components/bar/bottomNav.js +1 -0
  5. package/components/bar/bottomNavigationCircle.js +2 -0
  6. package/components/bar/bottomNavigationCircle.vue +1 -1
  7. package/components/bar/toolbar/index.js +8 -0
  8. package/components/bar/toolbar/laptop.vue +2 -2
  9. package/components/bar/toolbar/menuLaptop.vue +2 -2
  10. package/components/bar/toolbar/menuMob.vue +28 -28
  11. package/components/bar/toolbar/mobile.vue +2 -2
  12. package/components/breadcrumb/index.js +3 -0
  13. package/components/breadcrumb/index.vue +0 -2
  14. package/components/button/buttonConfirm.js +3 -0
  15. package/components/button/buttonConfirm.vue +1 -1
  16. package/components/button/buttonGroup.js +7 -0
  17. package/components/button/index.js +3 -0
  18. package/components/calendar/index.js +10 -0
  19. package/components/calendar/index.vue +4 -7
  20. package/components/card/index.js +3 -0
  21. package/components/card/style.scss +2 -3
  22. package/components/chart/chart.js +1 -0
  23. package/components/chart/chart.vue +8 -5
  24. package/components/chart/worldMap.js +2 -0
  25. package/components/chart/worldMap.vue +1 -1
  26. package/components/chat/MessageList.vue +2 -6
  27. package/components/chat/chatInput.vue +1 -1
  28. package/components/chat/index.js +11 -0
  29. package/components/chat/index.vue +2 -5
  30. package/components/chip/index.js +3 -0
  31. package/components/codeEditor/highlightCss.vue +1 -1
  32. package/components/codeEditor/highlightHtml.vue +1 -1
  33. package/components/codeEditor/highlightJs.vue +1 -1
  34. package/components/codeEditor/index.js +3 -0
  35. package/components/codeEditor/index.vue +206 -199
  36. package/components/confirm/index.js +10 -0
  37. package/components/container/col.js +1 -0
  38. package/components/container/divider.js +1 -0
  39. package/components/container/index.js +1 -0
  40. package/components/container/row.js +1 -0
  41. package/components/container/spacer.js +1 -0
  42. package/components/content/index.js +1 -0
  43. package/components/countdown/index.js +1 -0
  44. package/components/cropper/index.js +3 -0
  45. package/components/cropper/index.vue +1 -1
  46. package/components/float/index.js +1 -0
  47. package/components/form/addressInput/index.js +4 -0
  48. package/components/form/camInput/index.js +4 -0
  49. package/components/form/{camInput.vue → camInput/index.vue} +1 -1
  50. package/components/form/checkInput/index.js +4 -0
  51. package/components/form/{check-input.vue → checkInput/index.vue} +1 -1
  52. package/components/form/checkboxInput/index.js +3 -0
  53. package/components/form/{checkbox.vue → checkboxInput/index.vue} +1 -1
  54. package/components/form/colorInput/index.js +7 -0
  55. package/components/form/{colorPicker → colorInput}/index.vue +2 -2
  56. package/components/form/{colorPicker → colorInput}/picker.vue +5 -9
  57. package/components/form/dateInput/index.js +8 -0
  58. package/components/form/dateInput/index.vue +475 -0
  59. package/components/form/fileInput/index.js +8 -0
  60. package/components/form/{fileUploader → fileInput}/index.vue +2 -2
  61. package/components/form/groupInput/index.js +4 -0
  62. package/components/form/{group-input.vue → groupInput/index.vue} +1 -1
  63. package/components/form/index.js +1 -0
  64. package/components/form/input/index.js +3 -0
  65. package/components/form/{input.vue → input/index.vue} +1 -1
  66. package/components/form/{json → jsonInput}/JsonView.vue +1 -1
  67. package/components/form/jsonInput/index.js +7 -0
  68. package/components/form/{json → jsonInput}/index.vue +7 -7
  69. package/components/form/maskInput/index.js +3 -0
  70. package/components/form/numberInput/index.js +4 -0
  71. package/components/form/{number.vue → numberInput/index.vue} +1 -1
  72. package/components/form/passwordInput/index.js +3 -0
  73. package/components/form/radioInput/index.js +3 -0
  74. package/components/form/{radioInput.vue → radioInput/index.vue} +1 -1
  75. package/components/form/rangeInput/index.js +3 -0
  76. package/components/form/{range.vue → rangeInput/index.vue} +1 -1
  77. package/components/form/ratingInput/index.js +4 -0
  78. package/components/form/{rating.vue → ratingInput/index.vue} +1 -1
  79. package/components/form/selectInput/index.js +8 -0
  80. package/components/form/{select.vue → selectInput/index.vue} +34 -2
  81. package/components/form/switchInput/index.js +2 -0
  82. package/components/form/{switch.vue → switchInput/index.vue} +1 -1
  83. package/components/form/telInput/index.js +7 -0
  84. package/components/form/{inputTel → telInput}/index.vue +5 -5
  85. package/components/form/text-editor/index.js +15 -0
  86. package/components/form/text-editor/preview.js +1 -0
  87. package/components/form/text-editor/preview.vue +14 -13
  88. package/components/form/text-editor/style.scss +4 -2
  89. package/components/form/textArea/index.js +2 -0
  90. package/components/form/{text-area.vue → textArea/index.vue} +1 -1
  91. package/components/form/textInput/index.js +2 -0
  92. package/components/form/timeInput/index.js +5 -0
  93. package/components/form/{timepicker → timeInput}/index.vue +2 -2
  94. package/components/form/timeInput/range.js +5 -0
  95. package/components/form/{timepicker → timeInput}/range.vue +2 -2
  96. package/components/form/uniqueInput/index.js +2 -0
  97. package/components/form/unitInput/index.js +3 -0
  98. package/components/form/{unit-input.vue → unitInput/index.vue} +1 -1
  99. package/components/formCreator/index.js +8 -0
  100. package/components/html2pdf/index.js +4 -0
  101. package/components/html2pdf/pageBreak.js +1 -0
  102. package/components/icon/index.js +1 -0
  103. package/components/img/index.js +2 -0
  104. package/components/img/index.vue +2 -2
  105. package/components/img/svgImg.vue +1 -1
  106. package/components/index.js +100 -191
  107. package/components/infinite/div.js +6 -0
  108. package/components/infinite/index.js +7 -0
  109. package/components/infinite/page.js +3 -0
  110. package/components/list/index.js +3 -0
  111. package/components/map/index.js +5 -0
  112. package/components/map/index.vue +8 -7
  113. package/components/map/route.js +9 -0
  114. package/components/map/route.vue +1 -1
  115. package/components/map/select.js +2 -0
  116. package/components/menu/index.js +5 -0
  117. package/components/message/index.js +4 -0
  118. package/components/meta/index.js +1 -1
  119. package/components/modal/index.js +3 -0
  120. package/components/modal/index.vue +6 -2
  121. package/components/modal/style.scss +1 -0
  122. package/components/nestable/NestableItem.vue +163 -0
  123. package/components/nestable/editable.js +44 -0
  124. package/components/nestable/index.js +1 -0
  125. package/components/nestable/index.vue +109 -0
  126. package/components/nestable/methods.js +397 -0
  127. package/components/notify/index.js +3 -0
  128. package/components/notify/index.vue +2 -2
  129. package/components/progress/circle.js +1 -0
  130. package/components/progress/line.js +1 -0
  131. package/components/searchBox/index.js +8 -0
  132. package/components/searchBox/index.vue +1 -1
  133. package/components/skeleton/index.js +1 -0
  134. package/components/skeleton/index.vue +1 -1
  135. package/components/slider/index.js +6 -0
  136. package/components/swiper/index.js +2 -0
  137. package/components/table/crud/index.js +20 -0
  138. package/components/table/crud/index.vue +459 -453
  139. package/components/table/index.js +11 -0
  140. package/components/table/index.vue +10 -17
  141. package/components/tabs/index.js +3 -0
  142. package/components/timeAgo/index.js +1 -0
  143. package/components/timeline/index.js +6 -0
  144. package/components/timeline/index.vue +1 -1
  145. package/components/tour/index.js +4 -0
  146. package/components/tour/index.vue +225 -221
  147. package/components/tree/index.js +9 -0
  148. package/components/tree/index.vue +120 -120
  149. package/components/tree/tree-element.vue +5 -18
  150. package/directive/index.js +17 -18
  151. package/package.json +1 -1
  152. package/components/form/address_ir.vue +0 -106
  153. package/components/form/datePicker/index.vue +0 -473
  154. package/components/iframe/index.vue +0 -67
  155. /package/components/form/{address.vue → addressInput/index.vue} +0 -0
  156. /package/components/form/{colorPicker → colorInput}/Alpha.vue +0 -0
  157. /package/components/form/{colorPicker → colorInput}/Hue.vue +0 -0
  158. /package/components/form/{colorPicker → colorInput}/Preview.vue +0 -0
  159. /package/components/form/{colorPicker → colorInput}/Saturation.vue +0 -0
  160. /package/components/form/{colorPicker → colorInput}/mixin.js +0 -0
  161. /package/components/form/{datePicker → dateInput}/month.vue +0 -0
  162. /package/components/form/{datePicker → dateInput}/year.vue +0 -0
  163. /package/components/form/{fileUploader → fileInput}/file.js +0 -0
  164. /package/components/form/{fileUploader → fileInput}/single.vue +0 -0
  165. /package/components/form/{form.vue → index.vue} +0 -0
  166. /package/components/form/{mask-input.vue → maskInput/index.vue} +0 -0
  167. /package/components/form/{password.vue → passwordInput/index.vue} +0 -0
  168. /package/components/form/{inputTel → telInput}/assets/all-countries.js +0 -0
  169. /package/components/form/{inputTel → telInput}/assets/flags.png +0 -0
  170. /package/components/form/{inputTel → telInput}/assets/flags@2x.png +0 -0
  171. /package/components/form/{inputTel → telInput}/assets/sprite.css +0 -0
  172. /package/components/form/{text-input.vue → textInput/index.vue} +0 -0
  173. /package/components/form/{timepicker → timeInput}/timepicker.vue +0 -0
  174. /package/components/form/{unique → uniqueInput}/index.vue +0 -0
@@ -0,0 +1,8 @@
1
+ export * as rSelectInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_icon from '../../icon/index.js'
4
+ export * as l_chip from '../../chip/index.js'
5
+ export * as l_line from '../../progress/line.js'
6
+ export * as l_card from '../../card/index.js'
7
+ export * as l_list from '../../list/index.js'
8
+ export * as d_clickOutside from '../../../directive/clickOutSide/index.js'
@@ -111,7 +111,7 @@ export default {
111
111
  active: false,
112
112
  openList: false,
113
113
  inputVal: null,
114
- chips: this.getValue()
114
+ chips: []
115
115
  }
116
116
  },
117
117
  mounted() {
@@ -183,6 +183,37 @@ export default {
183
183
  })
184
184
  },
185
185
  getValue() {
186
+ if (!this.searchLink && this.modelValue !== undefined && this.modelValue !== null) {
187
+ if (typeof this.modelValue === 'string' || typeof this.modelValue === 'number') {
188
+ const index = this.$helper.searchArray(this.genItems, this.value, this.modelValue)
189
+ if (index === false) {
190
+ this.$emit('update:modelValue', null)
191
+ return []
192
+ }
193
+ } else if (this.$helper.isArray(this.modelValue)) {
194
+ this.modelValue.forEach((item) => {
195
+ if (typeof item === 'string' || typeof item === 'number') {
196
+ const index = this.$helper.searchArray(this.genItems, this.value, item)
197
+ if (index === false) {
198
+ this.$emit('update:modelValue', null)
199
+ return []
200
+ }
201
+ } else {
202
+ const index = this.$helper.searchArray(this.genItems, this.value, item[this.value])
203
+ if (index === false) {
204
+ this.$emit('update:modelValue', null)
205
+ return []
206
+ }
207
+ }
208
+ })
209
+ } else {
210
+ const index = this.$helper.searchArray(this.genItems, this.value, this.modelValue[this.value])
211
+ if (index === false) {
212
+ this.$emit('update:modelValue', null)
213
+ return []
214
+ }
215
+ }
216
+ }
186
217
  if (this.modelValue !== undefined && this.modelValue !== null) {
187
218
  if (this.$helper.ifHas(this.modelValue, false, this.text)) {
188
219
  return [this.modelValue]
@@ -210,6 +241,7 @@ export default {
210
241
  return this.modelValue
211
242
  }
212
243
  }
244
+ this.$emit('update:modelValue', null)
213
245
  return []
214
246
  },
215
247
  handleChip(e, key) {
@@ -310,7 +342,7 @@ export default {
310
342
 
311
343
  </script>
312
344
  <style lang="scss">
313
- @import "../../style/include";
345
+ @import "../../../style/include";
314
346
 
315
347
  $min-height: 40px;
316
348
  .#{$prefix}select-container {
@@ -0,0 +1,2 @@
1
+ export * as rSwitchInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
@@ -56,7 +56,7 @@ emits:['update:modelValue','change'],
56
56
 
57
57
  </script>
58
58
  <style lang="scss">
59
- @import "renusify/style/_include.scss";
59
+ @import "../../../style/include";
60
60
 
61
61
  .#{$prefix}switch {
62
62
 
@@ -0,0 +1,7 @@
1
+ export * as rTelInput from './index.vue'
2
+ export * as l_textInput from '../textInput/index.js'
3
+ export * as l_modal from '../../modal/index.js'
4
+ export * as l_card from '../../card/index.js'
5
+ export * as l_list from '../../list/index.js'
6
+ export * as l_spacer from '../../container/spacer.js'
7
+ export * as l_btn from '../../button/index.js'
@@ -39,7 +39,6 @@
39
39
  </template>
40
40
 
41
41
  <script>
42
- import allCountries from './assets/all-countries.js'
43
42
 
44
43
  export default {
45
44
  name: 'inputTel',
@@ -77,8 +76,10 @@ export default {
77
76
  }
78
77
  },
79
78
  mounted() {
80
- this.initializeCountry()
81
- this.countries = allCountries
79
+ import('./assets/all-countries.js').then((d)=>{
80
+ this.countries = d.default;
81
+ this.initializeCountry()
82
+ })
82
83
  },
83
84
  created() {
84
85
  if (this.modelValue) {
@@ -106,7 +107,7 @@ export default {
106
107
  }
107
108
  },
108
109
  findCountry(iso = '') {
109
- return allCountries.find(country => country.iso2 === iso)
110
+ return this.countries.find(country => country.iso2 === iso)
110
111
  },
111
112
 
112
113
  choose(country) {
@@ -116,7 +117,6 @@ export default {
116
117
  },
117
118
  reset() {
118
119
  this.search = ''
119
- this.countries = allCountries
120
120
  this.open = false
121
121
  },
122
122
 
@@ -0,0 +1,15 @@
1
+ export * as rTextEditor from './index.vue'
2
+ export * as l_textInput from '../textInput/index.js'
3
+ export * as l_selectInput from '../selectInput/index.js'
4
+ export * as l_fileInput from '../fileInput/index.js'
5
+ export * as l_switchInput from '../switchInput/index.js'
6
+ export * as l_numberInput from '../numberInput/index.js'
7
+ export * as l_form from '../index.js'
8
+ export * as l_modal from '../../modal/index.js'
9
+ export * as l_img from '../../img/index.js'
10
+ export * as l_btn from '../../button/index.js'
11
+ export * as l_btn_group from '../../button/buttonGroup.js'
12
+ export * as l_icon from '../../icon/index.js'
13
+ export * as l_container from '../../container/index.js'
14
+ export * as l_row from '../../container/row.js'
15
+ export * as l_col from '../../container/col.js'
@@ -0,0 +1 @@
1
+ export * as rTextEditorPreview from './preview.vue'
@@ -1,21 +1,22 @@
1
1
  <template>
2
- <div ref="editorPreview" :class="`${$r.prefix}text-editor`" v-html="$helper.cleanXss(text)"></div>
2
+ <div ref="editorPreview" :class="`${$r.prefix}text-editor text-editor-preview`"
3
+ v-html="$helper.cleanXss(text)"></div>
3
4
  </template>
4
5
 
5
6
  <script>
6
- import './style.scss'
7
+ import './style.scss'
7
8
 
8
- export default {
9
- name: "law",
10
- props: {
11
- text: String
12
- },
13
- data(){
14
- return{
15
- id:null,
16
- imgs:[]
17
- }
18
- },
9
+ export default {
10
+ name: "law",
11
+ props: {
12
+ text: String
13
+ },
14
+ data() {
15
+ return {
16
+ id: null,
17
+ imgs: []
18
+ }
19
+ },
19
20
  mounted() {
20
21
  this.id=setTimeout(() => {
21
22
  this.imgs = this.$refs.editorPreview.querySelectorAll('img')
@@ -1,8 +1,10 @@
1
1
  @import '../../../style/include';
2
2
 
3
3
  .#{$prefix}text-editor {
4
- background-color: var(--color-sheet-container);
5
- margin-top: 20px;
4
+ &:not(.text-editor-preview) {
5
+ background-color: var(--color-sheet-container);
6
+ margin-top: 20px;
7
+ }
6
8
 
7
9
  &.input-tile {
8
10
  border-radius: map-get($borders, 'sm');
@@ -0,0 +1,2 @@
1
+ export * as rTextArea from './index.vue'
2
+ export * as l_Input from '../input/index.js'
@@ -54,7 +54,7 @@ emits:['update:modelValue'],
54
54
 
55
55
  </script>
56
56
  <style lang="scss">
57
- @import "../../style/include";
57
+ @import "../../../style/include";
58
58
 
59
59
  .#{$prefix}text-area {
60
60
  .no-resize {
@@ -0,0 +1,2 @@
1
+ export * as rTextInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
@@ -0,0 +1,5 @@
1
+ export * as rTimeInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_modal from '../../modal/index.js'
4
+ export * as l_card from '../../card/index.js'
5
+ export * as l_btn from '../../button/index.js'
@@ -54,11 +54,11 @@
54
54
  </template>
55
55
 
56
56
  <script>
57
- import Timepicker from "./timepicker";
57
+ import {defineAsyncComponent} from 'vue'
58
58
 
59
59
  export default {
60
60
  name: "r-time-picker",
61
- components: {Timepicker},
61
+ components: {Timepicker:defineAsyncComponent(()=>import('./timepicker.vue'))},
62
62
  props: {
63
63
  disableTime: {
64
64
  type: Function, default: () => {
@@ -0,0 +1,5 @@
1
+ export * as rTimeRangeInput from './range.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_modal from '../../modal/index.js'
4
+ export * as l_card from '../../card/index.js'
5
+ export * as l_btn from '../../button/index.js'
@@ -65,11 +65,11 @@
65
65
  </template>
66
66
 
67
67
  <script>
68
- import Timepicker from "./timepicker";
68
+ import {defineAsyncComponent} from 'vue'
69
69
 
70
70
  export default {
71
71
  name: "r-time-picker-range",
72
- components: {Timepicker},
72
+ components: {Timepicker:defineAsyncComponent(()=>import('./timepicker.vue'))},
73
73
  props: {
74
74
  withSec: Boolean,
75
75
  noOverlay: Boolean,
@@ -0,0 +1,2 @@
1
+ export * as rUniqueInput from './index.vue'
2
+ export * as l_TextInput from '../textInput/index.js'
@@ -0,0 +1,3 @@
1
+ export * as rUnitInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_select from '../selectInput/index.js'
@@ -74,7 +74,7 @@ emits:['update:modelValue'],
74
74
 
75
75
  </script>
76
76
  <style lang="scss">
77
- @import "../../style/include";
77
+ @import "../../../style/include";
78
78
 
79
79
  .#{$prefix}unit-input {
80
80
  .input-shadow, .input-shadow * {
@@ -0,0 +1,8 @@
1
+ export * as rFormCreator from './index.vue'
2
+ export * as l_btn from '../button/index.js'
3
+ export * as l_card from '../card/index.js'
4
+ export * as l_container from '../container/index.js'
5
+ export * as l_row from '../container/row.js'
6
+ export * as l_col from '../container/col.js'
7
+ export * as l_message from '../message/index.js'
8
+ export * as l_form from '../form/index.js'
@@ -0,0 +1,4 @@
1
+ export * as rHtml2pdf from './index.vue'
2
+ export * as l_pageBreak from './pageBreak.js'
3
+ export * as l_btn from '../button/index.js'
4
+ export * as l_icon from '../icon/index.js'
@@ -0,0 +1 @@
1
+ export * as rHtml2pdfPageBreak from './pageBreak.vue'
@@ -0,0 +1 @@
1
+ export * as rIcon from './index.vue'
@@ -0,0 +1,2 @@
1
+ export * as rImg from './index.vue'
2
+ export * as d_intersect from '../../directive/intersect/index.js'
@@ -24,11 +24,11 @@
24
24
  </div>
25
25
  </template>
26
26
  <script>
27
- import SvgImg from "./svgImg";
27
+ import {defineAsyncComponent} from 'vue'
28
28
 
29
29
  export default {
30
30
  name: 'r-img',
31
- components: {SvgImg},
31
+ components: {SvgImg:defineAsyncComponent(()=>import('./svgImg.vue'))},
32
32
  props: {
33
33
  src: {
34
34
  type: String,
@@ -41,5 +41,5 @@ export default {
41
41
  </script>
42
42
 
43
43
  <style lang="scss">
44
- @import "~renusify/style/include";
44
+
45
45
  </style>