renusify 1.1.2 → 1.1.4

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 (33) hide show
  1. package/components/button/index.vue +1 -1
  2. package/components/button/style.scss +0 -1
  3. package/components/chat/chatInput.vue +2 -2
  4. package/components/form/address.vue +27 -25
  5. package/components/form/address_ir.vue +4 -4
  6. package/components/form/checkbox.vue +1 -1
  7. package/components/form/datePicker/index.vue +20 -20
  8. package/components/form/fileUploader/single.vue +2 -2
  9. package/components/form/group-input.vue +13 -6
  10. package/components/form/input.vue +5 -4
  11. package/components/form/inputTel/index.vue +166 -161
  12. package/components/form/json/JsonView.vue +15 -15
  13. package/components/form/json/index.vue +13 -13
  14. package/components/form/mask-input.vue +12 -11
  15. package/components/form/select.vue +12 -10
  16. package/components/form/text-editor/index.vue +40 -40
  17. package/components/form/unit-input.vue +4 -4
  18. package/components/formCreator/index.vue +57 -4
  19. package/components/index.js +37 -38
  20. package/components/infinite/div.vue +2 -2
  21. package/components/infinite/index.vue +4 -4
  22. package/components/infinite/page.vue +3 -3
  23. package/components/progress/{circular.vue → circle.vue} +6 -6
  24. package/components/progress/{liner.vue → line.vue} +12 -12
  25. package/components/progress/style.scss +29 -26
  26. package/components/searchBox/index.vue +1 -1
  27. package/components/slider/index.vue +1 -1
  28. package/components/table/crud/footer.vue +5 -4
  29. package/components/table/crud/header.vue +38 -38
  30. package/components/table/crud/index.vue +30 -29
  31. package/components/table/index.vue +4 -4
  32. package/package.json +1 -1
  33. /package/components/form/{uniqueFeild → unique}/index.vue +0 -0
@@ -13,26 +13,26 @@
13
13
  </template>
14
14
  </div>
15
15
  <div v-if="typeof value==='object'" class="flex-grow-1 w-full ps-10">
16
- <r-json :tile="tile"
17
- :model-value="value"
18
- @update:model-value="emit(key,$event)"
19
- :disableAdd="disableAdd||template!==undefined"
20
- :disableDel="disableDel||template!==undefined"
21
- :disableEditKey="disableEditKey"
22
- :keyWidth="keyWidth"
23
- :valueWidth="valueWidth"
24
- ></r-json>
16
+ <r-json-input :tile="tile"
17
+ :model-value="value"
18
+ @update:model-value="emit(key,$event)"
19
+ :disableAdd="disableAdd||template!==undefined"
20
+ :disableDel="disableDel||template!==undefined"
21
+ :disableEditKey="disableEditKey"
22
+ :keyWidth="keyWidth"
23
+ :valueWidth="valueWidth"
24
+ ></r-json-input>
25
25
  </div>
26
26
  <div v-else class="mb-1" :style="{'max-width': valueWidth}">
27
27
  <r-text-input v-if="typeof value==='string'"
28
28
  :tile="tile"
29
29
  :model-value="value" @update:model-value="emit(key,$event)"></r-text-input>
30
- <r-number v-else-if="typeof value==='number'"
31
- :tile="tile"
32
- :model-value="value" @update:model-value="emit(key,$event)"></r-number>
33
- <r-switch v-else-if="typeof value==='boolean'"
34
- :tile="tile"
35
- :model-value="value" @update:model-value="emit(key,$event)"></r-switch>
30
+ <r-number-input v-else-if="typeof value==='number'"
31
+ :tile="tile"
32
+ :model-value="value" @update:model-value="emit(key,$event)"></r-number-input>
33
+ <r-switch-input v-else-if="typeof value==='boolean'"
34
+ :tile="tile"
35
+ :model-value="value" @update:model-value="emit(key,$event)"></r-switch-input>
36
36
 
37
37
  </div>
38
38
 
@@ -37,24 +37,24 @@
37
37
  class="w-30 pe-1"
38
38
  :label="keyLabel"></r-text-input>
39
39
  <div class="w-20" v-if="!valueType">
40
- <r-select v-model="info.type"
41
- :tile="tile"
42
- class="me-1"
43
- :items="['text','number','boolean','json','array']"
44
- just-value
45
- @update:model-value="info.value=null"
46
- firstSelect></r-select>
40
+ <r-select-input v-model="info.type"
41
+ :tile="tile"
42
+ class="me-1"
43
+ :items="['text','number','boolean','json','array']"
44
+ just-value
45
+ @update:model-value="info.value=null"
46
+ firstSelect></r-select-input>
47
47
  </div>
48
48
  <r-text-input v-if="val_type==='text'"
49
49
  :tile="tile"
50
50
  :label="valueLabel"
51
51
  v-model="info.value"></r-text-input>
52
- <r-number v-else-if="val_type==='number'"
53
- :tile="tile"
54
- :label="$t('value','renusify')" v-model="info.value"></r-number>
55
- <r-switch v-else-if="val_type==='boolean'"
56
- :tile="tile"
57
- :label="$t('value','renusify')" v-model="info.value"></r-switch>
52
+ <r-number-input v-else-if="val_type==='number'"
53
+ :tile="tile"
54
+ :label="$t('value','renusify')" v-model="info.value"></r-number-input>
55
+ <r-switch-input v-else-if="val_type==='boolean'"
56
+ :tile="tile"
57
+ :label="$t('value','renusify')" v-model="info.value"></r-switch-input>
58
58
  <r-btn @click.prevent="add" class="ms-1 color-success" rounded>{{ $t('add', 'renusify') }}</r-btn>
59
59
  </div>
60
60
  </div>
@@ -1,15 +1,16 @@
1
1
  <template>
2
- <r-input :error="error?true:false" :rules="required?['required']:[]" :msg="error?error:undefined" :modelValue="lazyVal" :active="active" class="ltr">
3
- <input
4
- v-model="lazyVal"
5
- @complete="onComplete"
6
- @accept="onAccept"
7
- @backspace="onBackspace"
8
- autocomplete="no"
9
- @paste.prevent="onPaste"
10
- @focusin="active=true"
11
- @focusout="active=false"
12
- v-mask="mask"
2
+ <r-input :error="error?true:false" ltr :rules="required?['required']:[]" :msg="error?error:undefined"
3
+ :modelValue="lazyVal" :active="active">
4
+ <input
5
+ v-model="lazyVal"
6
+ @complete="onComplete"
7
+ @accept="onAccept"
8
+ @backspace="onBackspace"
9
+ autocomplete="no"
10
+ @paste.prevent="onPaste"
11
+ @focusin="active=true"
12
+ @focusout="active=false"
13
+ v-mask="mask"
13
14
  />
14
15
 
15
16
  </r-input>
@@ -6,7 +6,10 @@
6
6
  :modelValue="$helper.ifHas(chips,null,0,value)"
7
7
  @click.prevent="handleClick()">
8
8
  <div class="select-wrap v-center"
9
- :class="{'flex-nowrap':!multiple}">
9
+ :class="{
10
+ 'h-center':disableSearch,
11
+ 'flex-nowrap':!multiple
12
+ }">
10
13
  <r-chip
11
14
  class="my-0 ms-0"
12
15
  :close="multiple&&!textChip"
@@ -20,6 +23,7 @@
20
23
  </r-chip>
21
24
  <span>
22
25
  <input :type="type"
26
+ v-if="!disableSearch"
23
27
  @focusin="focusInput(true)"
24
28
  @focusout="focusInput(false)"
25
29
  @keydown.enter="add"
@@ -32,7 +36,7 @@
32
36
  />
33
37
  </span>
34
38
  </div>
35
- <r-progress-liner v-if="loading" color="color-two"></r-progress-liner>
39
+ <r-progress-line v-if="loading" color="color-two"></r-progress-line>
36
40
  </r-input>
37
41
  <r-card class="card-select" :class="{
38
42
  'card-select-active':genItems.length>0 && openList,
@@ -85,7 +89,7 @@ export default {
85
89
  type: String,
86
90
  default: 'value'
87
91
  },
88
- combo: Boolean,
92
+ disableSearch: Boolean,
89
93
  readonly: Boolean,
90
94
  textChip: Boolean,
91
95
  items: Array,
@@ -217,6 +221,8 @@ export default {
217
221
  handleClick() {
218
222
  if (this.$refs.input) {
219
223
  this.$refs.input.focus()
224
+ } else {
225
+ this.focusInput(true)
220
226
  }
221
227
  },
222
228
  add() {
@@ -225,7 +231,7 @@ export default {
225
231
  if (!this.multiple) {
226
232
  this.chips = []
227
233
  }
228
- if (!this.combo && !this.tags) {
234
+ if (!this.tags) {
229
235
  const exist = this.$helper.searchArray(this.genItems, this.text, val[this.text])
230
236
  if (exist !== false) {
231
237
  this.chips.push(val)
@@ -242,8 +248,7 @@ export default {
242
248
  this.chips = this.$helper.uniqArray(this.chips)
243
249
 
244
250
  let val = this.chips
245
-
246
- if (this.tags) {
251
+ if (this.justValue) {
247
252
  val = []
248
253
  for (let i in this.chips) {
249
254
  if (this.$helper.hasKey(this.chips, i)) {
@@ -251,12 +256,9 @@ export default {
251
256
  }
252
257
  }
253
258
  }
254
- if (!this.multiple && !this.tags) {
259
+ if (!this.multiple) {
255
260
  val = val[0]
256
261
  if (val) {
257
- if (this.justValue) {
258
- val = val[this.value]
259
- }
260
262
  this.closeList()
261
263
  }
262
264
  }
@@ -34,10 +34,10 @@
34
34
  </r-row>
35
35
  <r-row>
36
36
  <r-col class="col-12" v-if="selectElm&&!selectElm.classList.contains('editor-content')">
37
- <r-select :label="$t('class','renusify')" :model-value="[...selectElm.classList]"
38
- multiple
39
- tags
40
- @update:model-value="addClass"></r-select>
37
+ <r-select-input :label="$t('class','renusify')" :model-value="[...selectElm.classList]"
38
+ multiple
39
+ tags
40
+ @update:model-value="addClass"></r-select-input>
41
41
  </r-col>
42
42
  <r-col class="col-12 ltr">
43
43
  <span class="cursor-pointer" v-for="(item,i) in currentPath" :key="i" @click="borderd(item)">
@@ -86,10 +86,10 @@
86
86
  :label="$t('link','renusify')"
87
87
  :rules="['required']"></r-text-input>
88
88
  </r-col>
89
- <r-col class="col-12">
90
- <r-switch :label="$t('open_new_tab','renusify')"
91
- v-model="target"></r-switch>
92
- </r-col>
89
+ <r-col class="col-12">
90
+ <r-switch-input :label="$t('open_new_tab','renusify')"
91
+ v-model="target"></r-switch-input>
92
+ </r-col>
93
93
  </r-row>
94
94
  <r-row class="h-end">
95
95
  <r-col class="col-auto">
@@ -113,29 +113,29 @@
113
113
  :closebtn="false"
114
114
  v-model="showImg">
115
115
  <r-form v-model="valid2">
116
- <r-container class="sheet">
117
- <r-file-uploader v-model="image"
118
- :label="$t('image','renusify')"
119
- :size="1"
120
- :upload-link="uploadLink"
121
- accept="image/*"></r-file-uploader>
122
- <r-text-input v-model="img_alt"
123
- :label="$t('img_alt','renusify')"
124
- :rules="['required']"></r-text-input>
125
- <r-number v-model="img_width" :label="$t('width','renusify')"
126
- :rules="['required']"></r-number>
127
- <r-number v-model="img_height" :label="$t('height','renusify')"
128
- :rules="['required']"></r-number>
129
- <r-row class="h-end">
130
- <r-col class="col-auto">
131
- <r-btn class="color-error-text"
132
- outlined
133
- @click.prevent="showImg=false">{{$t('cancel','renusify')}}
134
- </r-btn>
135
- </r-col>
136
- <r-col class="col-auto">
137
- <r-btn class="color-success-text"
138
- :disabled="!valid2"
116
+ <r-container class="sheet">
117
+ <r-file-input v-model="image"
118
+ :label="$t('image','renusify')"
119
+ :size="1"
120
+ :upload-link="uploadLink"
121
+ accept="image/*"></r-file-input>
122
+ <r-text-input v-model="img_alt"
123
+ :label="$t('img_alt','renusify')"
124
+ :rules="['required']"></r-text-input>
125
+ <r-number-input v-model="img_width" :label="$t('width','renusify')"
126
+ :rules="['required']"></r-number-input>
127
+ <r-number-input v-model="img_height" :label="$t('height','renusify')"
128
+ :rules="['required']"></r-number-input>
129
+ <r-row class="h-end">
130
+ <r-col class="col-auto">
131
+ <r-btn class="color-error-text"
132
+ outlined
133
+ @click.prevent="showImg=false">{{ $t('cancel', 'renusify') }}
134
+ </r-btn>
135
+ </r-col>
136
+ <r-col class="col-auto">
137
+ <r-btn class="color-success-text"
138
+ :disabled="!valid2"
139
139
  outlined
140
140
  @click.prevent="handleImageForm()">{{ $t('send', 'renusify') }}
141
141
  </r-btn>
@@ -149,15 +149,15 @@
149
149
  v-model="showVideo">
150
150
  <r-form v-model="valid2">
151
151
  <r-container class="sheet">
152
- <r-file-uploader v-model="video"
153
- :label="$t('video','renusify')"
154
- :size="1"
155
- :upload-link="uploadLink"
156
- accept="video/mp4,video/webm"></r-file-uploader>
157
- <r-number v-model="img_width" :label="$t('width','renusify')"
158
- :rules="['required']"></r-number>
159
- <r-number v-model="img_height" :label="$t('height','renusify')"
160
- :rules="['required']"></r-number>
152
+ <r-file-input v-model="video"
153
+ :label="$t('video','renusify')"
154
+ :size="1"
155
+ :upload-link="uploadLink"
156
+ accept="video/mp4,video/webm"></r-file-input>
157
+ <r-number-input v-model="img_width" :label="$t('width','renusify')"
158
+ :rules="['required']"></r-number-input>
159
+ <r-number-input v-model="img_height" :label="$t('height','renusify')"
160
+ :rules="['required']"></r-number-input>
161
161
  <r-row class="h-end">
162
162
  <r-col class="col-auto">
163
163
  <r-btn class="color-error-text"
@@ -15,10 +15,10 @@
15
15
  class="me-1"
16
16
  />
17
17
  <div class="select-unit" :class="{'input-shadow':disableUnit}">
18
- <r-select :readonly="disableUnit" :items="units" v-model="unit"
19
- @update:model-value="emit" hide justValue :translate="translate"
20
- class="mt-0"
21
- firstSelect></r-select>
18
+ <r-select-input :readonly="disableUnit" :items="units" v-model="unit"
19
+ @update:model-value="emit" hide justValue :translate="translate"
20
+ class="mt-0"
21
+ firstSelect></r-select-input>
22
22
  </div>
23
23
  </r-input>
24
24
  </template>
@@ -6,10 +6,10 @@
6
6
  <r-form ref="form" v-model="valid" @submit.prevent="save">
7
7
  <r-row>
8
8
  <template :key="key" v-for="(item,key) in options">
9
- <r-col class="col-12" v-if="item['formInput']!==false">
9
+ <r-col class="col-12" v-if="item['formInput']!==false&&iff(options[key])">
10
10
  <component
11
11
  :is="'r-'+item['type']"
12
- :label="$t(key,'renusify')"
12
+ :label="$t(key)"
13
13
  v-model="editedItem[key]"
14
14
  v-bind="getAttr(options[key])"
15
15
  ></component>
@@ -96,11 +96,64 @@ export default {
96
96
  }
97
97
  },
98
98
  methods: {
99
+ iff(data) {
100
+ const that = this
101
+
102
+ function get(item, key) {
103
+ if (key.toString().startsWith('$')) {
104
+ return that.$helper.ifHas(item, null, ...key.substring(1).split('.'))
105
+ }
106
+ return key
107
+ }
108
+
109
+ if ('$if' in data) {
110
+ for (let i = 0; i < data['$if'].length; i++) {
111
+ const item = data['$if'][i]
112
+ let can = true
113
+ const one = get(this.editedItem, item[0])
114
+ const op = item[1]
115
+ const two = get(this.editedItem, item[2])
116
+ if (op === '===' || op === '==') {
117
+ can = one === two
118
+ } else if (op === '>') {
119
+ can = one > two
120
+ } else if (op === '>=') {
121
+ can = one >= two
122
+ } else if (op === '<') {
123
+ can = one < two
124
+ } else if (op === '<=') {
125
+ can = one <= two
126
+ } else if (op === '!=') {
127
+ can = one !== two
128
+ } else if (op === 'in') {
129
+ if (two && typeof two === 'object') {
130
+ can = two.includes(one)
131
+ } else {
132
+ can = false
133
+ }
134
+ } else {
135
+ can = false
136
+ console.error(`operator '${op}' is not defined.(form creator)`)
137
+ }
138
+ if (can === false) {
139
+ return false
140
+ }
141
+ }
142
+ }
143
+ return true
144
+ },
99
145
  getAttr(data) {
100
146
  let res = {}
101
147
  for (let i in data) {
102
- if (this.$helper.hasKey(data, i) && !['formInput', 'sortable', 'type', 'tableShow', 'priority'].includes(i)) {
103
- res[i] = data[i]
148
+ if (this.$helper.hasKey(data, i) && !['formInput', 'sortable', 'type', 'tableShow', 'priority', '$if'].includes(i)) {
149
+ if (i === '$bind') {
150
+ data[i].forEach((item) => {
151
+ res[item[0]] = this.editedItem[item[1]]
152
+ })
153
+
154
+ } else {
155
+ res[i] = data[i]
156
+ }
104
157
  }
105
158
  }
106
159
  return res
@@ -9,7 +9,7 @@ const list = {
9
9
  'r-bottom-navigation': {'p': 'bar/bottomNav.vue', 'c': [], 'd': []},
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
- 'r-btn': {'p': 'button/index.vue', 'c': ['r-progress-circular'], 'd': ['ripple']},
12
+ 'r-btn': {'p': 'button/index.vue', 'c': ['r-progress-circle'], 'd': ['ripple']},
13
13
  'r-btn-confirm': {'p': 'button/buttonConfirm.vue', 'c': ['r-btn', 'r-confirm'], 'd': []},
14
14
  'r-btn-group': {
15
15
  'p': 'button/buttonGroup.vue',
@@ -25,7 +25,7 @@ const list = {
25
25
  'r-chart': {'p': 'chart/chart.vue', 'c': [], 'd': []},
26
26
  'r-chat': {
27
27
  'p': 'chat/index.vue',
28
- 'c': ['r-btn', 'r-icon', 'r-progress-circular', 'r-img'],
28
+ 'c': ['r-btn', 'r-icon', 'r-progress-circle', 'r-img'],
29
29
  'd': ['intersect', 'scroll']
30
30
  },
31
31
  'r-chip': {'p': 'chip/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
@@ -44,67 +44,67 @@ const list = {
44
44
  'r-count-down': {'p': 'countdown/index.vue', 'c': [], 'd': []},
45
45
  'r-float': {'p': 'float/index.vue', 'c': [], 'd': []},
46
46
  'r-form': {'p': 'form/form.vue', 'c': [], 'd': []},
47
- 'r-color-picker': {
47
+ 'r-color-input': {
48
48
  'p': 'form/colorPicker/index.vue',
49
49
  'c': ['r-input', 'r-modal', 'r-btn', 'r-icon'],
50
50
  'd': ['touch']
51
51
  },
52
- 'r-date-picker': {
52
+ 'r-date-input': {
53
53
  'p': 'form/datePicker/index.vue',
54
54
  'c': ['r-input', 'r-modal', 'r-container', 'r-row', 'r-col', 'r-btn', 'r-icon'],
55
55
  'd': []
56
56
  },
57
- 'r-file-uploader': {
57
+ 'r-file-input': {
58
58
  'p': 'form/fileUploader/index.vue',
59
- 'c': ['r-input', 'r-row', 'r-btn', 'r-icon', 'r-progress-circular', 'r-text-input'],
59
+ 'c': ['r-input', 'r-row', 'r-btn', 'r-icon', 'r-progress-circle', 'r-text-input'],
60
60
  'd': []
61
61
  },
62
- 'r-tel': {
62
+ 'r-tel-input': {
63
63
  'p': 'form/inputTel/index.vue',
64
64
  'c': ['r-modal', 'r-card', 'r-text-input', 'r-list', 'r-spacer', 'r-btn'],
65
65
  'd': []
66
66
  },
67
- 'r-json': {
67
+ 'r-json-input': {
68
68
  'p': 'form/json/index.vue',
69
- 'c': ['r-btn', 'r-icon', 'r-text-input', 'r-select', 'r-number', 'r-switch'],
69
+ 'c': ['r-btn', 'r-icon', 'r-text-input', 'r-select-input', 'r-number-input', 'r-switch-input'],
70
70
  'd': []
71
71
  },
72
72
  'r-text-editor': {
73
73
  'p': 'form/text-editor/index.vue',
74
74
  'c': ['r-container', 'r-row', 'r-col', 'r-btn-group', 'r-btn',
75
- 'r-icon', 'r-select', 'r-input', 'r-img', 'r-modal',
76
- 'r-form', 'r-file-uploader', 'r-text-input', 'r-switch', 'r-number'],
75
+ 'r-icon', 'r-select-input', 'r-input', 'r-img', 'r-modal',
76
+ 'r-form', 'r-file-input', 'r-text-input', 'r-switch-input', 'r-number-input'],
77
77
  'd': []
78
78
  },
79
79
  'r-text-editor-preview': {'p': 'form/text-editor/preview.vue', 'c': [], 'd': []},
80
- 'r-time-picker': {'p': 'form/timepicker/index.vue', 'c': ['r-input', 'r-modal', 'r-card', 'r-btn'], 'd': []},
81
- 'r-time-picker-range': {'p': 'form/timepicker/range.vue', 'c': ['r-input', 'r-modal', 'r-card', 'r-btn'], 'd': []},
82
- 'r-unique-feild': {'p': 'form/uniqueFeild/index.vue', 'c': ['r-text-input'], 'd': []},
83
- 'r-address': {'p': 'form/address.vue', 'c': ['r-select', 'r-text-area', 'r-text-input'], 'd': []},
80
+ 'r-time-input': {'p': 'form/timepicker/index.vue', 'c': ['r-input', 'r-modal', 'r-card', 'r-btn'], 'd': []},
81
+ 'r-time-range-input': {'p': 'form/timepicker/range.vue', 'c': ['r-input', 'r-modal', 'r-card', 'r-btn'], 'd': []},
82
+ 'r-unique-input': {'p': 'form/unique/index.vue', 'c': ['r-text-input'], 'd': []},
83
+ 'r-address-input': {'p': 'form/address.vue', 'c': ['r-select-input', 'r-text-area', 'r-text-input'], 'd': []},
84
84
  'r-cam-input': {'p': 'form/camInput', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
85
85
  'r-check-input': {'p': 'form/check-input.vue', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
86
- 'r-checkbox': {'p': 'form/checkbox.vue', 'c': ['r-input', 'r-icon'], 'd': []},
86
+ 'r-checkbox-input': {'p': 'form/checkbox.vue', 'c': ['r-input', 'r-icon'], 'd': []},
87
87
  'r-group-input': {
88
88
  'p': 'form/group-input.vue',
89
- 'c': ['r-text-input', 'r-number', 'r-switch', 'r-btn', 'r-icon'],
89
+ 'c': ['r-text-input', 'r-number-input', 'r-switch-input', 'r-btn', 'r-icon'],
90
90
  'd': []
91
91
  },
92
92
  'r-input': {'p': 'form/input.vue', 'c': ['r-icon'], 'd': []},
93
93
  'r-mask-input': {'p': 'form/mask-input.vue', 'c': ['r-input'], 'd': ['mask']},
94
- 'r-number': {'p': 'form/number.vue', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
95
- 'r-password': {'p': 'form/password.vue', 'c': ['r-input', 'r-icon'], 'd': []},
94
+ 'r-number-input': {'p': 'form/number.vue', 'c': ['r-input', 'r-btn', 'r-icon'], 'd': []},
95
+ 'r-password-input': {'p': 'form/password.vue', 'c': ['r-input', 'r-icon'], 'd': []},
96
96
  'r-radio-input': {'p': 'form/radioInput.vue', 'c': ['r-input', 'r-icon'], 'd': []},
97
- 'r-range': {'p': 'form/range.vue', 'c': ['r-input'], 'd': ['touch']},
98
- 'r-rating': {'p': 'form/rating.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
99
- 'r-select': {
97
+ 'r-range-input': {'p': 'form/range.vue', 'c': ['r-input'], 'd': ['touch']},
98
+ 'r-rating-input': {'p': 'form/rating.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
99
+ 'r-select-input': {
100
100
  'p': 'form/select.vue',
101
- 'c': ['r-input', 'r-chip', 'r-progress-liner', 'r-card', 'r-list', 'r-icon'],
101
+ 'c': ['r-input', 'r-chip', 'r-progress-line', 'r-card', 'r-list', 'r-icon'],
102
102
  'd': ['click-outside']
103
103
  },
104
- 'r-switch': {'p': 'form/switch.vue', 'c': ['r-input'], 'd': []},
104
+ 'r-switch-input': {'p': 'form/switch.vue', 'c': ['r-input'], 'd': []},
105
105
  'r-text-area': {'p': 'form/text-area.vue', 'c': ['r-input'], 'd': []},
106
106
  'r-text-input': {'p': 'form/text-input.vue', 'c': ['r-input'], 'd': []},
107
- 'r-unit-input': {'p': 'form/unit-input.vue', 'c': ['r-input', 'r-select'], 'd': []},
107
+ 'r-unit-input': {'p': 'form/unit-input.vue', 'c': ['r-input', 'r-select-input'], 'd': []},
108
108
  'r-form-creator': {
109
109
  'p': 'formCreator/index.vue',
110
110
  'c': ['r-card', 'r-container', 'r-message', 'r-form', 'r-row', 'r-col', 'r-btn'],
@@ -116,13 +116,13 @@ const list = {
116
116
  'r-img': {'p': 'img/index.vue', 'c': [], 'd': ['intersect']},
117
117
  'r-infinite-div': {
118
118
  'p': 'infinite/div.vue',
119
- 'c': ['r-container', 'r-row', 'r-col', 'r-progress-liner'],
119
+ 'c': ['r-container', 'r-row', 'r-col', 'r-progress-line'],
120
120
  'd': ['scroll']
121
121
  },
122
- 'r-infinite-page': {'p': 'infinite/page.vue', 'c': ['r-progress-liner'], 'd': ['scroll']},
122
+ 'r-infinite-page': {'p': 'infinite/page.vue', 'c': ['r-progress-line'], 'd': ['scroll']},
123
123
  'r-infinite-box': {
124
124
  'p': 'infinite/index.vue',
125
- 'c': ['r-card', 'r-container', 'r-row', 'r-col', 'r-switch', 'r-infinite-div'],
125
+ 'c': ['r-card', 'r-container', 'r-row', 'r-col', 'r-switch-input', 'r-infinite-div'],
126
126
  'd': []
127
127
  },
128
128
  'r-list': {'p': 'list/index.vue', 'c': ['r-icon'], 'd': ['ripple']},
@@ -137,36 +137,35 @@ const list = {
137
137
  'r-message': {'p': 'message/index.vue', 'c': ['r-container', 'r-row', 'r-col'], 'd': []},
138
138
  'r-meta': {'p': 'meta/index.js', 'c': [], 'd': []},
139
139
  'r-modal': {'p': 'modal/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
140
- 'r-progress-circular': {'p': 'progress/circular.vue', 'c': [], 'd': []},
141
- 'r-progress-liner': {'p': 'progress/liner.vue', 'c': [], 'd': []},
140
+ 'r-progress-circle': {'p': 'progress/circle.vue', 'c': [], 'd': []},
141
+ 'r-progress-line': {'p': 'progress/line.vue', 'c': [], 'd': []},
142
142
  'r-search-box': {
143
143
  'p': 'searchBox/index.vue',
144
- 'c': ['r-input', 'r-progress-liner', 'r-card', 'r-list', 'r-btn', 'r-icon'],
144
+ 'c': ['r-input', 'r-progress-line', 'r-card', 'r-list', 'r-btn', 'r-icon'],
145
145
  'd': ['click-outside']
146
146
  },
147
147
  'r-skeleton': {'p': 'skeleton/index.vue', 'c': [], 'd': []},
148
- 'r-slider': {'p': 'slider/index.vue', 'c': ['r-progress-liner', 'r-btn', 'r-icon'], 'd': ['touch']},
148
+ 'r-slider': {'p': 'slider/index.vue', 'c': ['r-progress-line', 'r-btn', 'r-icon'], 'd': ['touch']},
149
149
  'r-swiper': {'p': 'swiper/index.vue', 'c': [], 'd': ['touch']},
150
150
  'r-table': {
151
151
  'p': 'table/index.vue',
152
- 'c': ['r-btn', 'r-icon', 'r-switch', 'r-progress-liner', 'r-modal', 'r-card', 'r-container', 'r-row', 'r-col'],
152
+ 'c': ['r-btn', 'r-icon', 'r-switch-input', 'r-progress-line', 'r-modal', 'r-card', 'r-container', 'r-row', 'r-col'],
153
153
  'd': ['sortable']
154
154
  },
155
155
  'r-table-crud': {
156
156
  'p': 'table/crud/index.vue',
157
- 'c': ['r-card', 'r-modal', 'r-form-creator', 'r-json', 'r-divider', 'r-number', 'r-btn', 'r-table', 'r-icon',
158
- 'r-time-ago', 'r-switch', 'r-confirm', 'r-container', 'r-row', 'r-col', 'r-text-input', 'r-select', 'r-date-picker',
159
- 'r-progress-liner'],
157
+ 'c': ['r-card', 'r-modal', 'r-form-creator', 'r-json-input', 'r-divider', 'r-number-input', 'r-btn', 'r-table', 'r-icon',
158
+ 'r-time-ago', 'r-switch-input', 'r-confirm', 'r-container', 'r-row', 'r-col', 'r-text-input', 'r-select-input', 'r-date-input',
159
+ 'r-progress-line'],
160
160
  'd': []
161
161
  },
162
162
  'r-tabs': {'p': 'tabs/index.vue', 'c': ['r-btn', 'r-icon'], 'd': []},
163
163
  'r-time-ago': {'p': 'timeAgo/index.vue', 'c': [], 'd': []},
164
164
  'r-timeline': {'p': 'timeline/index.vue', 'c': ['r-container', 'r-row', 'r-col'], 'd': []},
165
165
  'r-tour': {'p': 'tour/index.vue', 'c': ['r-container', 'r-spacer', 'r-btn'], 'd': []},
166
-
167
166
  'r-tree': {
168
167
  'p': 'tree/index.vue',
169
- 'c': ['r-container', 'r-row', 'r-col', 'r-select', 'r-float', 'r-tree-element'],
168
+ 'c': ['r-container', 'r-row', 'r-col', 'r-select-input', 'r-float', 'r-tree-element'],
170
169
  'd': []
171
170
  },
172
171
  'r-tree-element': {'p': 'tree/tree-element.vue', 'c': ['r-container', 'r-row', 'r-col', 'r-btn', 'r-icon'], 'd': []}
@@ -13,8 +13,8 @@
13
13
  <slot v-bind:item="item">{{item}}</slot>
14
14
  </r-col>
15
15
  <r-col class="col-12" key="loading">
16
- <r-progress-liner color="color-two"
17
- v-show="loading"></r-progress-liner>
16
+ <r-progress-line color="color-two"
17
+ v-show="loading"></r-progress-line>
18
18
  </r-col>
19
19
  </transition-group>
20
20
  </div>
@@ -6,10 +6,10 @@
6
6
  <h3 class="title px-2">{{ title }}</h3>
7
7
  </r-col>
8
8
  <r-col class="col-auto">
9
- <r-switch
10
- label="live"
11
- v-model="live"
12
- ></r-switch>
9
+ <r-switch-input
10
+ label="live"
11
+ v-model="live"
12
+ ></r-switch-input>
13
13
  </r-col>
14
14
  </r-row>
15
15
  </r-container>
@@ -3,10 +3,10 @@
3
3
  <div class="infinite-page-container" v-scroll="onScroll">
4
4
  <slot :items="datacollection"></slot>
5
5
  </div>
6
- <r-progress-liner color="color-two"
7
- v-show="loading"
6
+ <r-progress-line color="color-two"
7
+ v-show="loading"
8
8
 
9
- ></r-progress-liner>
9
+ ></r-progress-line>
10
10
  <div class="text-center subtitle-1"
11
11
  v-if="noItem"
12
12
  >{{noItemMsg}}