renusify 2.2.4 → 2.2.6

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.
@@ -18,14 +18,8 @@
18
18
  }
19
19
 
20
20
  .app-wrap {
21
- flex: 1 1 auto;
22
- backface-visibility: hidden;
23
- display: flex;
24
- flex-direction: column;
25
21
  max-width: 100%;
26
22
  width: 100%;
27
- position: relative;
28
- overflow-x: hidden;
29
23
  }
30
24
 
31
25
  }
@@ -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);
@@ -51,6 +51,7 @@
51
51
  @update:model-value="(tab='day',setMonth($event))"
52
52
  :timezoneOffset="lang_zone_offset-timezoneOffset"
53
53
  :locale="locale"
54
+ :month="currentPeriod.month"
54
55
  :year="currentPeriod.year"></month-tab>
55
56
  <table v-if="tab==='day'" class="table">
56
57
  <thead>
@@ -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 = (13 - c)
34
+ this.p = (1 - c)
34
35
  }
35
36
  },
36
37
  methods: {
@@ -7,7 +7,7 @@
7
7
  outlined
8
8
  @click.prevent="emit(modelValue+i-6)">
9
9
  {{
10
- $d(new Date(modelValue + i - 6, month, 1, 0, timezoneOffset), 'year', locale)
10
+ $d(new Date(modelValue + i - 6, 1, 1, 0, timezoneOffset), 'year', locale)
11
11
  }}
12
12
  </r-btn>
13
13
  </div>
@@ -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 rPasswprdInput from './form/passwordInput/index.js'
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}
@@ -135,6 +135,7 @@ $btnTabsWidth: 50px;
135
135
  border-bottom: 2px solid transparent;
136
136
  cursor: pointer;
137
137
  transition: all 0.25s;
138
+ color: inherit;
138
139
 
139
140
  &:focus {
140
141
  outline: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "2.2.4",
3
+ "version": "2.2.6",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",
@@ -12,26 +12,26 @@ export default class DateTime {
12
12
  month: 'short'
13
13
  },
14
14
  year: {
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
- }
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
  }