renusify 1.4.4 → 1.4.7

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.
@@ -521,7 +521,7 @@ export default {
521
521
  }
522
522
  }
523
523
 
524
- &.text-area {
524
+ &.#{$prefix}text-area {
525
525
  .input-control {
526
526
  height: auto;
527
527
 
@@ -11,7 +11,7 @@
11
11
  'flex-nowrap':!multiple
12
12
  }">
13
13
  <r-chip
14
- class="my-0 ms-0"
14
+ class="my-0 ms-0 color-primary-text"
15
15
  :close="multiple&&!textChip"
16
16
  :key="key"
17
17
  :text="textChip || !multiple"
@@ -3,8 +3,7 @@
3
3
  v-model="lazyValue"
4
4
  @click.stop="handleClick()"
5
5
  @update:model-value="emit"
6
- :class="`${$r.prefix}text-area`"
7
- :class="{'no-resize':noResize}"
6
+ :class="[`${$r.prefix}text-area`,{'no-resize':noResize}]"
8
7
  >
9
8
  <template v-slot="{uid}">
10
9
  <textarea @focusin="active=true"
Binary file
Binary file
Binary file
@@ -39,7 +39,7 @@
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">
42
- <r-row class="v-baseline" v-if="['text-input','text-area'].includes(item.option.type)">
42
+ <r-row v-if="['r-text-input','r-text-area'].includes(item.option.type)" class="v-baseline">
43
43
  <r-col class="col-5 md-3">
44
44
  <r-select-input v-model="item.advance.action"
45
45
  :items="[
@@ -63,17 +63,17 @@
63
63
  </r-btn>
64
64
  </r-col>
65
65
  </r-row>
66
- <r-row class="v-baseline" v-else-if="'number'===item.option.type">
67
- <r-col class="col-6 md-3">
68
- <r-select-input v-model="item.advance.action"
69
- :items="[
66
+ <r-row v-else-if="'r-number-input'===item.option.type" class="v-baseline">
67
+ <r-col class="col-6 md-3">
68
+ <r-select-input v-model="item.advance.action"
69
+ :items="[
70
70
  {name:$t('advance_search_equal','renusify'),value:'e'},
71
71
  {name:$t('advance_search_not_equal','renusify'),value:'ne'},
72
72
  {name:$t('advance_search_gt','renusify'),value:'gt'},
73
73
  {name:$t('advance_search_gte','renusify'),value:'gte'},
74
74
  {name:$t('advance_search_lt','renusify'),value:'lt'},
75
75
  {name:$t('advance_search_lte','renusify'),value:'lte'}]"
76
- firstSelect
76
+ firstSelect
77
77
  justValue
78
78
  disableSearch
79
79
  :label="$t('advance_search_operator','renusify')"></r-select-input>
@@ -87,17 +87,17 @@
87
87
  </r-btn>
88
88
  </r-col>
89
89
  </r-row>
90
- <r-row class="v-baseline" v-else-if="'switch'===item.option.type">
91
- <r-col class="col-5 md-3">
92
- <r-select-input v-model="item.advance.action"
93
- :items="[
90
+ <r-row v-else-if="'r-switch-input'===item.option.type" class="v-baseline">
91
+ <r-col class="col-5 md-3">
92
+ <r-select-input v-model="item.advance.action"
93
+ :items="[
94
94
  {name:$t('advance_search_equal','renusify'),value:'e'}
95
95
  ]"
96
- justValue
97
- firstSelect
98
- disableSearch
99
- :label="$t('advance_search_operator','renusify')"></r-select-input>
100
- </r-col>
96
+ justValue
97
+ firstSelect
98
+ disableSearch
99
+ :label="$t('advance_search_operator','renusify')"></r-select-input>
100
+ </r-col>
101
101
  <r-col class="col-6 md-8">
102
102
  <r-switch-input v-model="item.advance.search" :label="item.text"></r-switch-input>
103
103
  </r-col>
@@ -107,17 +107,17 @@
107
107
  </r-btn>
108
108
  </r-col>
109
109
  </r-row>
110
- <r-row class="v-baseline" v-else-if="'select'===item.option.type">
111
- <r-col class="col-5 md-3">
112
- <r-select-input v-model="item.advance.action"
113
- :items="[
110
+ <r-row v-else-if="'r-select-input'===item.option.type" class="v-baseline">
111
+ <r-col class="col-5 md-3">
112
+ <r-select-input v-model="item.advance.action"
113
+ :items="[
114
114
  {name:$t('advance_search_in','renusify'),value:'in'},
115
115
  {name:$t('advance_search_not_in','renusify'),value:'nin'}
116
116
  ]"
117
- justValue
118
- firstSelect
119
- disableSearch
120
- :label="$t('advance_search_operator','renusify')"></r-select-input>
117
+ justValue
118
+ firstSelect
119
+ disableSearch
120
+ :label="$t('advance_search_operator','renusify')"></r-select-input>
121
121
  </r-col>
122
122
  <r-col class="col-6 md-8">
123
123
  <r-select-input v-model="item.advance.search" :label="item.text" :items="item.option.items"
@@ -129,17 +129,38 @@
129
129
  </r-btn>
130
130
  </r-col>
131
131
  </r-row>
132
- <r-row class="v-baseline" v-else-if="['date-input','time-ago'].includes(item.option.type)">
133
- <r-col class="col-5 md-3" :a="item.advance.t='date'">
134
- <r-select-input v-model="item.advance.action"
135
- :items="[
132
+ <r-row v-else-if="'r-json-input'===item.option.type" class="v-baseline">
133
+ <r-col class="col-5 md-3">
134
+ <r-select-input v-model="item.advance.action"
135
+ :items="[
136
+ {name:$t('advance_search_equal','renusify'),value:'e'},
137
+ {name:$t('advance_search_not_equal','renusify'),value:'ne'}
138
+ ]"
139
+ :label="$t('advance_search_operator','renusify')"
140
+ disableSearch
141
+ firstSelect
142
+ justValue></r-select-input>
143
+ </r-col>
144
+ <r-col class="col-6 md-8">
145
+ <r-json-input v-model="item.advance.search" :label="item.text"></r-json-input>
146
+ </r-col>
147
+ <r-col class="col-1">
148
+ <r-btn class="color-error" icon @click.prevent="del(i)">
149
+ <r-icon v-html="$r.icons.delete"></r-icon>
150
+ </r-btn>
151
+ </r-col>
152
+ </r-row>
153
+ <r-row v-else-if="['r-date-input','r-time-ago'].includes(item.option.type)" class="v-baseline">
154
+ <r-col class="col-5 md-3" :a="item.advance.t='date'">
155
+ <r-select-input v-model="item.advance.action"
156
+ :items="[
136
157
  {name:$t('advance_search_gt','renusify'),value:'gt'},
137
158
  {name:$t('advance_search_gte','renusify'),value:'gte'},
138
159
  {name:$t('advance_search_lt','renusify'),value:'lt'},
139
160
  {name:$t('advance_search_lte','renusify'),value:'lte'}
140
161
  ]"
141
- justValue
142
- disableSearch
162
+ justValue
163
+ disableSearch
143
164
  firstSelect
144
165
  :label="$t('advance_search_operator','renusify')"></r-select-input>
145
166
  </r-col>
@@ -210,9 +231,9 @@
210
231
  add($event) {
211
232
  this.inputs.push($event)
212
233
  $event.advance = {}
213
- if($event.option.type==='switch'){
214
- $event.advance.search = false
215
- }
234
+ if ($event.option.type === 'r-switch-input') {
235
+ $event.advance.search = false
236
+ }
216
237
  this.select = []
217
238
  }
218
239
  },
@@ -220,7 +241,7 @@
220
241
  header() {
221
242
  let res = []
222
243
  this.headerTable.forEach((item) => {
223
- if (['text-input', 'text-area', 'number', 'switch', 'select', 'date-input', 'time-ago'].includes(item.option.type)) {
244
+ if (['r-text-input', 'r-text-area', 'r-number-input', 'r-switch-input', 'r-select-input', 'r-json-input', 'r-date-input', 'r-time-ago'].includes(item.option.type)) {
224
245
  res.push(item)
225
246
  }
226
247
  })
@@ -228,4 +249,4 @@
228
249
  }
229
250
  }
230
251
  }
231
- </script>
252
+ </script>
@@ -102,14 +102,14 @@
102
102
  <r-icon v-html="props.opened!==props.key?$r.icons.plus:$r.icons.minus"></r-icon>
103
103
  </r-btn>
104
104
  <slot name="cell" :value="value" :item="props.item" :editItem="editItem">
105
- <div v-if="value['option']['type']==='date-input' && props.item[value['value']]!==undefined">
105
+ <div v-if="value['option']['type']==='r-date-input' && props.item[value['value']]!==undefined">
106
106
  {{ $d(new Date(props.item[value['value']]), value['option']['format'] || 'short') }}
107
107
  </div>
108
108
  <div
109
- v-else-if="value['option']['type']==='time-ago' && props.item[value['value']]!==undefined">
109
+ v-else-if="value['option']['type']==='r-time-ago' && props.item[value['value']]!==undefined">
110
110
  <r-time-ago :time="props.item[value['value']]"></r-time-ago>
111
111
  </div>
112
- <div v-else-if="value['option']['type']==='switch-input'">
112
+ <div v-else-if="value['option']['type']==='r-switch-input'">
113
113
  <r-switch-input
114
114
  :readonly="value['option']['formInput']===false"
115
115
  :modelValue="props.item[value['value']]"
@@ -117,7 +117,7 @@
117
117
  class="mt-0"
118
118
  ></r-switch-input>
119
119
  </div>
120
- <div v-else-if="value['option']['type'] === 'number-input'">
120
+ <div v-else-if="value['option']['type'] === 'r-number-input'">
121
121
  {{ $n(props.item[value["value"]]) }}
122
122
  </div>
123
123
  <div v-else-if="value['option']['type']!=='action'">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "1.4.4",
3
+ "version": "1.4.7",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",