renusify 2.2.4 → 2.2.5
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.
- package/components/app/style.scss +0 -6
- package/components/button/style.scss +1 -1
- package/components/form/dateInput/index.vue +1 -0
- package/components/form/dateInput/month.vue +2 -1
- package/components/form/dateInput/year.vue +1 -1
- package/components/index.js +1 -1
- package/components/table/crud/header.vue +5 -3
- package/components/tabs/index.vue +1 -0
- package/package.json +1 -1
- package/plugins/trans/DateTime.js +20 -20
- package/plugins/trans/Translate.js +0 -47
|
@@ -57,7 +57,7 @@ $btn-transition: opacity 0.2s map-get($transition, 'ease-in-out') !default;
|
|
|
57
57
|
user-select: none;
|
|
58
58
|
vertical-align: middle;
|
|
59
59
|
white-space: nowrap;
|
|
60
|
-
|
|
60
|
+
color: inherit;
|
|
61
61
|
&:not(.btn-text):not(.btn-outlined) {
|
|
62
62
|
background-color: var(--color-sheet-container-low);
|
|
63
63
|
color: var(--color-on-sheet);
|
|
@@ -19,6 +19,7 @@ export default {
|
|
|
19
19
|
modelValue: Number,
|
|
20
20
|
timezoneOffset: Number,
|
|
21
21
|
locale: String,
|
|
22
|
+
month: Number,
|
|
22
23
|
year: Number
|
|
23
24
|
},
|
|
24
25
|
emits:['update:modelValue'],
|
|
@@ -30,7 +31,7 @@ export default {
|
|
|
30
31
|
beforeMount() {
|
|
31
32
|
const c = this.$d(new Date(this.year, 1, 1, 0, this.timezoneOffset), 'me', this.locale)
|
|
32
33
|
if (c > 1) {
|
|
33
|
-
this.p = (
|
|
34
|
+
this.p = (1 - c)
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
methods: {
|
package/components/index.js
CHANGED
|
@@ -42,7 +42,7 @@ export * as rGroupInput from './form/groupInput/index.js'
|
|
|
42
42
|
export * as rInput from './form/input/index.js'
|
|
43
43
|
export * as rMaskInput from './form/maskInput/index.js'
|
|
44
44
|
export * as rNumberInput from './form/numberInput/index.js'
|
|
45
|
-
export * as
|
|
45
|
+
export * as rPasswordInput from './form/passwordInput/index.js'
|
|
46
46
|
export * as rRadioInput from './form/radioInput/index.js'
|
|
47
47
|
export * as rRangeInput from './form/rangeInput/index.js'
|
|
48
48
|
export * as rRatingInput from './form/ratingInput/index.js'
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
:label="$t('name','renusify')"
|
|
44
44
|
just-value></r-select-input>
|
|
45
45
|
|
|
46
|
-
<r-select-input v-if="info.key" :key="info.key" v-model="info.action"
|
|
46
|
+
<r-select-input v-if="info.key" :key="info.key" v-model="info.action" style="min-width: 30px"
|
|
47
47
|
:items="[
|
|
48
48
|
{name:$t('advance_search_equal','renusify'),value:'e'},
|
|
49
49
|
{name:$t('advance_search_not_equal','renusify'),value:'ne'},
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
</template>
|
|
67
67
|
</r-json-input>
|
|
68
68
|
|
|
69
|
-
<r-btn :loading="loading" block class="color-info mt-2" rounded @click.prevent="send">
|
|
69
|
+
<r-btn :disabled="!advance" :loading="loading" block class="color-info mt-2" rounded @click.prevent="send">
|
|
70
70
|
{{ $t('search', 'renusify') }}
|
|
71
71
|
</r-btn>
|
|
72
72
|
</r-container>
|
|
@@ -119,8 +119,10 @@ export default {
|
|
|
119
119
|
methods: {
|
|
120
120
|
added(info, add) {
|
|
121
121
|
let item = this.headers[1][info.key]
|
|
122
|
-
if (info.key === '_id' || item.is_object_id) {
|
|
122
|
+
if (info.key === '_id' || item.is_object_id === true) {
|
|
123
123
|
info.value = {'$oid': info.value}
|
|
124
|
+
} else if (item.is_object_id) {
|
|
125
|
+
info.value[item.is_object_id] = {'$oid': info.value[item.is_object_id]}
|
|
124
126
|
} else if (item.type === 'r-date-input' || item.type === 'r-time-ago') {
|
|
125
127
|
if (info.action === 'eq') {
|
|
126
128
|
info.value = {'$date': info.value}
|
package/package.json
CHANGED
|
@@ -12,26 +12,26 @@ export default class DateTime {
|
|
|
12
12
|
month: 'short'
|
|
13
13
|
},
|
|
14
14
|
year: {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
15
|
+
year: 'numeric'
|
|
16
|
+
},
|
|
17
|
+
short: {
|
|
18
|
+
year: 'numeric', month: 'short', day: 'numeric'
|
|
19
|
+
},
|
|
20
|
+
medium: {
|
|
21
|
+
year: 'numeric', month: 'numeric', day: 'numeric'
|
|
22
|
+
},
|
|
23
|
+
weekday: {
|
|
24
|
+
weekday: 'short'
|
|
25
|
+
},
|
|
26
|
+
long: {
|
|
27
|
+
year: 'numeric',
|
|
28
|
+
month: 'numeric',
|
|
29
|
+
day: 'numeric',
|
|
30
|
+
weekday: 'short',
|
|
31
|
+
hour: 'numeric',
|
|
32
|
+
minute: 'numeric',
|
|
33
|
+
second: 'numeric'
|
|
34
|
+
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
this.langs = langs;
|
|
@@ -117,51 +117,4 @@ export default class Translate {
|
|
|
117
117
|
return key;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
|
|
121
|
-
loads(packages = []) {
|
|
122
|
-
packages.forEach((p) => {
|
|
123
|
-
this.load(p)
|
|
124
|
-
})
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
load(p) {
|
|
128
|
-
const pack = p || this.$r.package;
|
|
129
|
-
if (!p) {
|
|
130
|
-
this.package = pack;
|
|
131
|
-
}
|
|
132
|
-
if (!this.$r.store['langs_loaded']) {
|
|
133
|
-
this.$r.store['langs_loaded'] = {}
|
|
134
|
-
}
|
|
135
|
-
this.$r.store['langs_loaded'][pack] = false;
|
|
136
|
-
let locale = this.$r.lang;
|
|
137
|
-
if (this.$storage.get("lang")) {
|
|
138
|
-
locale = this.$storage.get("lang");
|
|
139
|
-
}
|
|
140
|
-
fetch(`/api/translate/${pack}/${locale}`, {
|
|
141
|
-
method: 'GET',
|
|
142
|
-
}).then(
|
|
143
|
-
res => {
|
|
144
|
-
if (res.ok) {
|
|
145
|
-
let data = res.json()
|
|
146
|
-
if (data.length !== 0) {
|
|
147
|
-
const lang = {};
|
|
148
|
-
const lng = data.length
|
|
149
|
-
for (let i = 0; i < lng; i++) {
|
|
150
|
-
lang[data[i].key] = data[i][locale];
|
|
151
|
-
}
|
|
152
|
-
this.local = locale;
|
|
153
|
-
this.setMessages(lang);
|
|
154
|
-
} else {
|
|
155
|
-
this.local = locale;
|
|
156
|
-
this.setMessages({});
|
|
157
|
-
}
|
|
158
|
-
setTimeout(() => {
|
|
159
|
-
this.$r.store['langs_loaded'][pack] = true;
|
|
160
|
-
}, 50)
|
|
161
|
-
} else {
|
|
162
|
-
this.$r.store['langs_loaded'][pack] = true;
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
120
|
}
|