renusify 2.4.3 → 2.4.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.
@@ -26,6 +26,8 @@
26
26
  overflow: auto;
27
27
  position: absolute;
28
28
  transition: .5s all map.get(base.$transition, 'swing');
29
+ background-color: var(--color-sheet);
30
+ color: var(--color-on-sheet);
29
31
  @include mixins.rtl() {
30
32
  right: -300px;
31
33
  }
@@ -94,7 +96,6 @@
94
96
  &:before {
95
97
  content: '-';
96
98
  position: absolute;
97
- color: #9e9e9e;
98
99
  @include mixins.rtl() {
99
100
  right: -8px;
100
101
  }
@@ -110,10 +111,10 @@
110
111
  max-height: 500px;
111
112
  overflow-y: auto;
112
113
  @include mixins.rtl() {
113
- border-right: 1px solid #9e9e9e;
114
+ border-right: 1px solid;
114
115
  }
115
116
  @include mixins.ltr() {
116
- border-left: 1px solid #9e9e9e;
117
+ border-left: 1px solid;
117
118
  }
118
119
  }
119
120
 
@@ -3,34 +3,59 @@
3
3
  </template>
4
4
 
5
5
  <script>
6
-
7
6
  export default {
8
- name: "r-chart",
7
+ name: 'r-chart',
9
8
  props: {
9
+ url: {type: String, default: 'https://codenus.com/storage/chart/apexcharts.js'},
10
+ dark: Boolean,
10
11
  options: Object
11
12
  },
12
13
  data() {
13
14
  return {
14
15
  chartShape: null,
15
- Chart: null
16
- };
16
+ timeout_id: null
17
+ }
17
18
  },
18
- mounted(){
19
- import('./apexcharts.js').then((d) => {
20
- this.Chart=d.default;
19
+ mounted() {
20
+ let children = document.querySelectorAll('[name=\'apexcharts\']')
21
+ if (children.length === 0) {
22
+ let el = document.createElement('script')
23
+ el.setAttribute('src', this.url)
24
+ el.setAttribute('name', 'apexcharts')
25
+ document.head.append(el)
26
+ }
27
+ if (this.dark) {
28
+ if (!this.options['theme']) {
29
+ this.options['theme'] = {}
30
+ }
31
+ this.options['theme']['mode'] = 'dark'
32
+ }
33
+
34
+ this.timeout_id = setTimeout(() => {
21
35
  this.build()
22
- })
36
+ }, 10)
37
+
23
38
  },
24
39
  methods: {
25
- build() {
26
- this.chartShape = new this.Chart(this.$refs.chart, this.options);
27
- this.chartShape.render()
40
+ build(n = 0) {
41
+ try {
42
+ this.chartShape = new ApexCharts(this.$refs.chart, this.options)
43
+ this.chartShape.render()
44
+ } catch (e) {
45
+ this.timeout_id = setTimeout(() => {
46
+ this.build(n + 1)
47
+ }, 100)
48
+ if (n > 30) {
49
+ console.error(e)
50
+ }
51
+ }
28
52
  }
29
53
  },
30
54
  beforeUnmount() {
31
- this.chartShape.destroy();
55
+ clearTimeout(this.timeout_id)
56
+ this.chartShape.destroy()
32
57
  }
33
- };
58
+ }
34
59
  </script>
35
60
  <style lang="scss">
36
61
  @use "../../style/variables/base";
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <r-input v-bind="$attrs" :readonly="readonly" :model-value="modelValue" @click.prevent="show=true">
3
- <input
4
- :value="modelValue?$d(modelValueDate,withTime?'long':'medium',locale):null"
5
- />
3
+ <div :class="`${$r.prefix}date-color-input`">
4
+ {{ modelValue ? $d(modelValueDate, withTime ? 'long' : 'medium', locale) : null }}
5
+ </div>
6
6
  </r-input>
7
7
  <r-modal :model-value="show" @update:model-value="close()" :closebtn="false" closable class="text-center">
8
8
  <div v-if="!showTime" :class="`${$r.prefix}date-input`">
@@ -364,6 +364,9 @@ export default {
364
364
  <style lang="scss">
365
365
  @use "../../../style/variables/base";
366
366
 
367
+ .#{base.$prefix}date-color-input {
368
+ color: var(--color-on-sheet);
369
+ }
367
370
  .#{base.$prefix}date-input {
368
371
  position: relative;
369
372
  display: inline-block;
@@ -51,23 +51,12 @@ export default {
51
51
  },
52
52
  watch: {
53
53
  'modelValue': function (newVal) {
54
- this.number = newVal
54
+ if (newVal !== undefined) {
55
+ this.number = newVal
56
+ }
55
57
  }
56
58
  },
57
59
  methods: {
58
- setSplit(n) {
59
- if (n && this.split > 0) {
60
- const x = this.split
61
- n = n.toString()
62
- const step = n.indexOf('.')
63
- const re = '\\d(?=(\\d{' + (x) + '})+' + (step > -1 ? '\\.' : '$') + ')';
64
- return n.replace(new RegExp(re, 'g'), '$&,');
65
- }
66
- return n
67
- },
68
- set_step(number) {
69
-
70
- },
71
60
  emit() {
72
61
  if (this.number === '' || this.number === null) {
73
62
  this.number = undefined
@@ -79,7 +68,8 @@ export default {
79
68
  d = this.max
80
69
  }
81
70
  if (this.min !== undefined && d < this.min) {
82
- d = this.min
71
+ this.$emit('update:modelValue', undefined)
72
+ return
83
73
  }
84
74
 
85
75
  this.number = d
@@ -95,7 +85,7 @@ export default {
95
85
  this.number = n - this.step
96
86
  this.emit()
97
87
  }
98
- },
88
+ }
99
89
  }
100
90
  </script>
101
91
 
@@ -15,7 +15,7 @@
15
15
  @focusin="active=true"
16
16
  @focusout="active=false"
17
17
  @input="emit"
18
- autocomplete="no"
18
+ :autocomplete="autocomplete"
19
19
  ref="input"
20
20
  v-model="lazyValue"
21
21
  />
@@ -61,6 +61,7 @@ export default {
61
61
  specialChar: Boolean,
62
62
  number: Boolean,
63
63
  minLength: {type: Number, default: 8},
64
+ autocomplete: {type: String, default: "no"},
64
65
  },
65
66
  emits: ['update:modelValue'],
66
67
  data() {
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div :class="`${$r.prefix}table-manage`">
3
3
  <r-modal v-model="showForm" bottom full-width>
4
- <slot :autoSend="autoSend" :method="method"
4
+ <slot :autoSend="autoSend"
5
+ :method="method"
5
6
  :modelValue="editedItem"
6
7
  :ok="ok"
7
8
  :options="table.option"
@@ -444,9 +445,13 @@ export default {
444
445
  this.refresh()
445
446
  },
446
447
  ok() {
447
- this.refresh()
448
+ this.table.startTime = false
449
+ this.page = 1;
450
+ this.sortBy = null;
451
+ this.sortType = 0;
448
452
  this.autoSend = false
449
453
  this.showForm = false
454
+ this.refresh()
450
455
  },
451
456
  refresh(e) {
452
457
  this.loading = true
@@ -98,8 +98,6 @@ export default {
98
98
  <style lang="scss">
99
99
  @use "../../style/variables/base";
100
100
 
101
- $btnTabsWidth: 50px;
102
-
103
101
  .#{base.$prefix}tabs {
104
102
  max-width: 100%;
105
103
  display: flex;
@@ -109,7 +107,7 @@ $btnTabsWidth: 50px;
109
107
  position: relative;
110
108
  margin: 0 auto;
111
109
  white-space: nowrap;
112
- width: calc(100% - #{$btnTabsWidth*2});
110
+ width: 100%;
113
111
  overflow: auto;
114
112
 
115
113
  scroll-behavior: smooth;
@@ -149,9 +147,5 @@ $btnTabsWidth: 50px;
149
147
  margin-right: 0;
150
148
  }
151
149
  }
152
-
153
- .btn-tabs {
154
- width: $btnTabsWidth;
155
- }
156
150
  }
157
151
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",