renusify 2.0.4 → 2.1.0

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 (174) hide show
  1. package/components/app/index.js +5 -0
  2. package/components/app/index.vue +0 -2
  3. package/components/avatar/index.js +3 -0
  4. package/components/bar/bottomNav.js +1 -0
  5. package/components/bar/bottomNavigationCircle.js +2 -0
  6. package/components/bar/bottomNavigationCircle.vue +1 -1
  7. package/components/bar/toolbar/index.js +8 -0
  8. package/components/bar/toolbar/laptop.vue +2 -2
  9. package/components/bar/toolbar/menuLaptop.vue +2 -2
  10. package/components/bar/toolbar/menuMob.vue +28 -28
  11. package/components/bar/toolbar/mobile.vue +2 -2
  12. package/components/breadcrumb/index.js +3 -0
  13. package/components/breadcrumb/index.vue +0 -2
  14. package/components/button/buttonConfirm.js +3 -0
  15. package/components/button/buttonConfirm.vue +1 -1
  16. package/components/button/buttonGroup.js +7 -0
  17. package/components/button/index.js +3 -0
  18. package/components/calendar/index.js +10 -0
  19. package/components/calendar/index.vue +4 -7
  20. package/components/card/index.js +3 -0
  21. package/components/card/style.scss +2 -3
  22. package/components/chart/chart.js +1 -0
  23. package/components/chart/chart.vue +8 -5
  24. package/components/chart/worldMap.js +2 -0
  25. package/components/chart/worldMap.vue +1 -1
  26. package/components/chat/MessageList.vue +2 -6
  27. package/components/chat/chatInput.vue +1 -1
  28. package/components/chat/index.js +11 -0
  29. package/components/chat/index.vue +2 -5
  30. package/components/chip/index.js +3 -0
  31. package/components/codeEditor/highlightCss.vue +1 -1
  32. package/components/codeEditor/highlightHtml.vue +1 -1
  33. package/components/codeEditor/highlightJs.vue +1 -1
  34. package/components/codeEditor/index.js +3 -0
  35. package/components/codeEditor/index.vue +206 -199
  36. package/components/confirm/index.js +10 -0
  37. package/components/container/col.js +1 -0
  38. package/components/container/divider.js +1 -0
  39. package/components/container/index.js +1 -0
  40. package/components/container/row.js +1 -0
  41. package/components/container/spacer.js +1 -0
  42. package/components/content/index.js +1 -0
  43. package/components/countdown/index.js +1 -0
  44. package/components/cropper/index.js +3 -0
  45. package/components/cropper/index.vue +1 -1
  46. package/components/float/index.js +1 -0
  47. package/components/form/addressInput/index.js +4 -0
  48. package/components/form/camInput/index.js +4 -0
  49. package/components/form/{camInput.vue → camInput/index.vue} +1 -1
  50. package/components/form/checkInput/index.js +4 -0
  51. package/components/form/{check-input.vue → checkInput/index.vue} +1 -1
  52. package/components/form/checkboxInput/index.js +3 -0
  53. package/components/form/{checkbox.vue → checkboxInput/index.vue} +1 -1
  54. package/components/form/colorInput/index.js +7 -0
  55. package/components/form/{colorPicker → colorInput}/index.vue +2 -2
  56. package/components/form/{colorPicker → colorInput}/picker.vue +5 -9
  57. package/components/form/dateInput/index.js +8 -0
  58. package/components/form/dateInput/index.vue +475 -0
  59. package/components/form/fileInput/index.js +8 -0
  60. package/components/form/{fileUploader → fileInput}/index.vue +2 -2
  61. package/components/form/groupInput/index.js +4 -0
  62. package/components/form/{group-input.vue → groupInput/index.vue} +1 -1
  63. package/components/form/index.js +1 -0
  64. package/components/form/input/index.js +3 -0
  65. package/components/form/{input.vue → input/index.vue} +1 -1
  66. package/components/form/{json → jsonInput}/JsonView.vue +1 -1
  67. package/components/form/jsonInput/index.js +7 -0
  68. package/components/form/{json → jsonInput}/index.vue +7 -7
  69. package/components/form/maskInput/index.js +3 -0
  70. package/components/form/numberInput/index.js +4 -0
  71. package/components/form/{number.vue → numberInput/index.vue} +1 -1
  72. package/components/form/passwordInput/index.js +3 -0
  73. package/components/form/radioInput/index.js +3 -0
  74. package/components/form/{radioInput.vue → radioInput/index.vue} +1 -1
  75. package/components/form/rangeInput/index.js +3 -0
  76. package/components/form/{range.vue → rangeInput/index.vue} +1 -1
  77. package/components/form/ratingInput/index.js +4 -0
  78. package/components/form/{rating.vue → ratingInput/index.vue} +1 -1
  79. package/components/form/selectInput/index.js +8 -0
  80. package/components/form/{select.vue → selectInput/index.vue} +34 -2
  81. package/components/form/switchInput/index.js +2 -0
  82. package/components/form/{switch.vue → switchInput/index.vue} +1 -1
  83. package/components/form/telInput/index.js +7 -0
  84. package/components/form/{inputTel → telInput}/index.vue +5 -5
  85. package/components/form/text-editor/index.js +15 -0
  86. package/components/form/text-editor/preview.js +1 -0
  87. package/components/form/text-editor/preview.vue +14 -13
  88. package/components/form/text-editor/style.scss +4 -2
  89. package/components/form/textArea/index.js +2 -0
  90. package/components/form/{text-area.vue → textArea/index.vue} +1 -1
  91. package/components/form/textInput/index.js +2 -0
  92. package/components/form/timeInput/index.js +5 -0
  93. package/components/form/{timepicker → timeInput}/index.vue +2 -2
  94. package/components/form/timeInput/range.js +5 -0
  95. package/components/form/{timepicker → timeInput}/range.vue +2 -2
  96. package/components/form/uniqueInput/index.js +2 -0
  97. package/components/form/unitInput/index.js +3 -0
  98. package/components/form/{unit-input.vue → unitInput/index.vue} +1 -1
  99. package/components/formCreator/index.js +8 -0
  100. package/components/html2pdf/index.js +4 -0
  101. package/components/html2pdf/pageBreak.js +1 -0
  102. package/components/icon/index.js +1 -0
  103. package/components/img/index.js +2 -0
  104. package/components/img/index.vue +2 -2
  105. package/components/img/svgImg.vue +1 -1
  106. package/components/index.js +100 -191
  107. package/components/infinite/div.js +6 -0
  108. package/components/infinite/index.js +7 -0
  109. package/components/infinite/page.js +3 -0
  110. package/components/list/index.js +3 -0
  111. package/components/map/index.js +5 -0
  112. package/components/map/index.vue +8 -7
  113. package/components/map/route.js +9 -0
  114. package/components/map/route.vue +1 -1
  115. package/components/map/select.js +2 -0
  116. package/components/menu/index.js +5 -0
  117. package/components/message/index.js +4 -0
  118. package/components/meta/index.js +1 -1
  119. package/components/modal/index.js +3 -0
  120. package/components/modal/index.vue +6 -2
  121. package/components/modal/style.scss +1 -0
  122. package/components/nestable/NestableItem.vue +163 -0
  123. package/components/nestable/editable.js +44 -0
  124. package/components/nestable/index.js +1 -0
  125. package/components/nestable/index.vue +109 -0
  126. package/components/nestable/methods.js +397 -0
  127. package/components/notify/index.js +3 -0
  128. package/components/notify/index.vue +2 -2
  129. package/components/progress/circle.js +1 -0
  130. package/components/progress/line.js +1 -0
  131. package/components/searchBox/index.js +8 -0
  132. package/components/searchBox/index.vue +1 -1
  133. package/components/skeleton/index.js +1 -0
  134. package/components/skeleton/index.vue +1 -1
  135. package/components/slider/index.js +6 -0
  136. package/components/swiper/index.js +2 -0
  137. package/components/table/crud/index.js +20 -0
  138. package/components/table/crud/index.vue +459 -453
  139. package/components/table/index.js +11 -0
  140. package/components/table/index.vue +10 -17
  141. package/components/tabs/index.js +3 -0
  142. package/components/timeAgo/index.js +1 -0
  143. package/components/timeline/index.js +6 -0
  144. package/components/timeline/index.vue +1 -1
  145. package/components/tour/index.js +4 -0
  146. package/components/tour/index.vue +225 -221
  147. package/components/tree/index.js +9 -0
  148. package/components/tree/index.vue +120 -120
  149. package/components/tree/tree-element.vue +5 -18
  150. package/directive/index.js +17 -18
  151. package/package.json +1 -1
  152. package/components/form/address_ir.vue +0 -106
  153. package/components/form/datePicker/index.vue +0 -473
  154. package/components/iframe/index.vue +0 -67
  155. /package/components/form/{address.vue → addressInput/index.vue} +0 -0
  156. /package/components/form/{colorPicker → colorInput}/Alpha.vue +0 -0
  157. /package/components/form/{colorPicker → colorInput}/Hue.vue +0 -0
  158. /package/components/form/{colorPicker → colorInput}/Preview.vue +0 -0
  159. /package/components/form/{colorPicker → colorInput}/Saturation.vue +0 -0
  160. /package/components/form/{colorPicker → colorInput}/mixin.js +0 -0
  161. /package/components/form/{datePicker → dateInput}/month.vue +0 -0
  162. /package/components/form/{datePicker → dateInput}/year.vue +0 -0
  163. /package/components/form/{fileUploader → fileInput}/file.js +0 -0
  164. /package/components/form/{fileUploader → fileInput}/single.vue +0 -0
  165. /package/components/form/{form.vue → index.vue} +0 -0
  166. /package/components/form/{mask-input.vue → maskInput/index.vue} +0 -0
  167. /package/components/form/{password.vue → passwordInput/index.vue} +0 -0
  168. /package/components/form/{inputTel → telInput}/assets/all-countries.js +0 -0
  169. /package/components/form/{inputTel → telInput}/assets/flags.png +0 -0
  170. /package/components/form/{inputTel → telInput}/assets/flags@2x.png +0 -0
  171. /package/components/form/{inputTel → telInput}/assets/sprite.css +0 -0
  172. /package/components/form/{text-input.vue → textInput/index.vue} +0 -0
  173. /package/components/form/{timepicker → timeInput}/timepicker.vue +0 -0
  174. /package/components/form/{unique → uniqueInput}/index.vue +0 -0
@@ -0,0 +1,475 @@
1
+ <template>
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
+ />
6
+ </r-input>
7
+ <r-modal :model-value="show" @update:model-value="close()" :closebtn="false" closable class="text-center">
8
+ <div v-if="!showTime" :class="`${$r.prefix}date-input`">
9
+ <div>
10
+ <r-container>
11
+ <r-row>
12
+ <r-col class="col-auto">
13
+ <r-btn v-if="tab!=='month'" icon
14
+ @click.prevent="tab==='day'?incrementMonth(-1):incrementYear(-12)">
15
+ <r-icon v-html="$r.icons.arrow_left"></r-icon>
16
+ </r-btn>
17
+ </r-col>
18
+ <r-col class="text-center">
19
+ <r-btn class="me-2" text @click.prevent="tab==='month'?tab='day':tab='month'">
20
+ <r-icon v-html="tab==='month'?$r.icons.chevron_up:$r.icons.chevron_down"></r-icon>
21
+ {{
22
+ $d(new
23
+ Date(currentPeriod.year, currentPeriod.month, 1, 0, lang_zone_offset - timezoneOffset), 'month', locale)
24
+ }}
25
+ </r-btn>
26
+
27
+ <r-btn text @click.prevent="tab==='year'?tab='day':tab='year'">
28
+ <r-icon v-html="tab==='year'?$r.icons.chevron_up:$r.icons.chevron_down"></r-icon>
29
+ {{
30
+ $d(new
31
+ Date(currentPeriod.year, currentPeriod.month, 1, 0, lang_zone_offset - timezoneOffset), 'year', locale)
32
+ }}
33
+ </r-btn>
34
+ </r-col>
35
+ <r-col class="col-auto">
36
+ <r-btn v-if="tab!=='month'" icon
37
+ @click.prevent="tab==='day'?incrementMonth(1):incrementYear(12)">
38
+ <r-icon v-html="$r.icons.arrow_right"></r-icon>
39
+ </r-btn>
40
+ </r-col>
41
+ </r-row>
42
+ </r-container>
43
+ <year-tab v-if="tab==='year'"
44
+ :model-value='currentPeriod.year'
45
+ @update:model-value="(tab='month',setYear($event))"
46
+ :timezoneOffset="lang_zone_offset-timezoneOffset"
47
+ :locale="locale"
48
+ :month="currentPeriod.month"></year-tab>
49
+ <month-tab v-if="tab==='month'"
50
+ :model-value='currentPeriod.month'
51
+ @update:model-value="(tab='day',setMonth($event))"
52
+ :timezoneOffset="lang_zone_offset-timezoneOffset"
53
+ :locale="locale"
54
+ :year="currentPeriod.year"></month-tab>
55
+ <table v-if="tab==='day'" class="table">
56
+ <thead>
57
+ <tr>
58
+ <th class="headCell" v-for="(weekday, weekdayIndex) in weekDays" :key="weekdayIndex">
59
+ <span class="headCellContent">{{ weekday }}</span>
60
+ </th>
61
+ </tr>
62
+ </thead>
63
+ <transition :name="direction==='next'?'slide-start-to-end':'slide-end-to-start'" mode="out-in">
64
+ <tbody
65
+ :key="currentPeriod.year + '-' + currentPeriod.month"
66
+ >
67
+ <tr class="table-row" v-for="(week, weekIndex) in currentPeriodDates" :key="weekIndex">
68
+ <td
69
+ class="cell"
70
+ v-for="item in week"
71
+ :class="{
72
+ selectable: !readonly && !item.disabled,
73
+ selected: item.selected,
74
+ disabled: item.disabled,
75
+ today: item.today
76
+ }"
77
+ :key="item.date"
78
+ @click.prevent="item.date!==0 &&!readonly&& selectDateItem(item)"
79
+ >
80
+ <div
81
+ class="cellContent d-flex h-center v-center"
82
+ v-if="item.date!==0"
83
+ >
84
+ {{ $d(item.date, 'day', locale) }}
85
+ </div>
86
+ </td>
87
+ </tr>
88
+ </tbody>
89
+ </transition>
90
+ </table>
91
+ </div>
92
+ </div>
93
+ <div v-else class="d-flex flex-column h-center v-center pa-5">
94
+ <timepicker
95
+ is24-hour
96
+ withSec
97
+ v-model="time"
98
+ ></timepicker>
99
+ <div class="mt-5">
100
+ <r-btn class="color-success mx-5" @click.prevent="selectTime">{{ $t('ok', 'renusify') }}</r-btn>
101
+ <r-btn class="color-error mx-5" @click.prevent="close">{{ $t('cancel', 'renusify') }}</r-btn>
102
+ </div>
103
+
104
+ </div>
105
+
106
+ </r-modal>
107
+
108
+ </template>
109
+
110
+ <script>
111
+ import {defineAsyncComponent} from 'vue'
112
+
113
+ export default {
114
+ name: 'datePicker',
115
+ components: {
116
+ MonthTab: defineAsyncComponent(() => import('./month.vue')),
117
+ YearTab: defineAsyncComponent(() => import('./year.vue')),
118
+ Timepicker: defineAsyncComponent(() => import('../timeInput/timepicker.vue'))
119
+ },
120
+ inheritAttrs: false,
121
+ props: {
122
+ modelValue: {
123
+ type: String
124
+ },
125
+ lang: {
126
+ type: String
127
+ },
128
+ readonly: Boolean,
129
+ withTime: Boolean,
130
+ isDateDisabled: {
131
+ type: Function,
132
+ default: () => false
133
+ }
134
+ },
135
+ emits: ['update:modelValue'],
136
+ data() {
137
+ return {
138
+ tab: 'day',
139
+ show: false,
140
+ showTime: false,
141
+ time: null,
142
+ date: null,
143
+ direction: undefined,
144
+ currentPeriod: {
145
+ month: (new Date()).getMonth() + 1,
146
+ year: (new Date()).getFullYear()
147
+ }
148
+ }
149
+ },
150
+ created() {
151
+ this.$dateTime.set_format({
152
+ 'de': {
153
+ day: 'numeric',
154
+ numberingSystem: 'latn'
155
+ },
156
+ 'me': {
157
+ month: 'numeric',
158
+ numberingSystem: 'latn'
159
+ }
160
+ })
161
+ this.currentPeriod = {
162
+ month: this.modelValueDate.getMonth() + 1,
163
+ year: this.modelValueDate.getFullYear()
164
+ }
165
+ if (this.rangeLocalDate.start > this.modelValueDate) {
166
+ this.incrementMonth(-1)
167
+ }
168
+ if (this.rangeLocalDate.end < this.modelValueDate) {
169
+ this.incrementMonth(1)
170
+ }
171
+ },
172
+ computed: {
173
+ firstDayOfWeek() {
174
+ return this.$helper.ifHas(this.$dateTime.langs, 0, this.locale, 'first_day')
175
+ },
176
+ locale() {
177
+ return this.lang || this.$r.lang
178
+ },
179
+ today() {
180
+ return new Date()
181
+ },
182
+ timezoneOffset() {
183
+ return (new Date(this.currentPeriod.year, this.currentPeriod.month, 10)).getTimezoneOffset()
184
+ },
185
+ weekDays() {
186
+ const first = parseInt(this.firstDayOfWeek, 10)
187
+
188
+ return this.createRange(7).map(i => this.$d(new Date(2020, 2, first + i + 2, 0, this.timezoneOffset, 0), 'narrow', this.locale)) // 2017-02-02 is Sunday
189
+ },
190
+ modelValueDate() {
191
+ if (!this.modelValue || !new Date(this.modelValue)) {
192
+ return new Date()
193
+ }
194
+ return new Date(this.modelValue)
195
+ },
196
+ rangeLocalDate() {
197
+ const {year, month} = this.currentPeriod
198
+ let firstDay = 1
199
+ let firstmonth = month
200
+ let firstyear = year
201
+
202
+ let first = new Date(firstyear, firstmonth, firstDay, 0, this.lang_zone_offset - this.timezoneOffset, 0)
203
+ let lc = parseInt(this.$d(first, 'de', this.locale))
204
+ first = new Date(firstyear, firstmonth, firstDay - lc + 1, 0, this.lang_zone_offset - this.timezoneOffset, 0)
205
+
206
+ firstDay = 1
207
+ firstmonth = month + 1
208
+ firstyear = year
209
+ let last = new Date(firstyear, firstmonth, firstDay, 0, this.lang_zone_offset - this.timezoneOffset, 0)
210
+ lc = parseInt(this.$d(last, 'de', this.locale))
211
+ last = new Date(firstyear, firstmonth, firstDay - lc, 23, 59 + this.lang_zone_offset - this.timezoneOffset, 59)
212
+
213
+ return {start: first, end: last}
214
+ },
215
+ weekDaysBeforeFirstDayOfTheMonth() {
216
+ const {start} = this.rangeLocalDate
217
+ const weekDay = start.getDay()
218
+ return (weekDay - parseInt(this.firstDayOfWeek) + 7) % 7
219
+ },
220
+ currentPeriodDates() {
221
+ const {start, end} = this.rangeLocalDate
222
+ const children = []
223
+ let firstday = start.getDate()
224
+ let firstmonth = start.getMonth()
225
+ let firstyear = start.getFullYear()
226
+ let rows = []
227
+ let day = this.weekDaysBeforeFirstDayOfTheMonth
228
+
229
+ while (day--) {
230
+ rows.push({
231
+ date: 0,
232
+ disabled: true,
233
+ selected: false,
234
+ today: false
235
+ })
236
+ }
237
+ let doJob = true
238
+ while (doJob) {
239
+ const date = new Date(firstyear, firstmonth, 1, 24, this.lang_zone_offset - this.timezoneOffset, 0)
240
+ date.setDate(firstday)
241
+ firstmonth = date.getMonth()
242
+ firstyear = date.getFullYear()
243
+ firstday = date.getDate() + 1
244
+ if (date.getTime() > end.getTime()) {
245
+ doJob = false
246
+ } else {
247
+ rows.push({
248
+ date: date,
249
+ disabled: this.isDateDisabled(date),
250
+ selected: this.areSameDates(date, this.modelValueDate),
251
+ today: this.areSameDates(date, this.today)
252
+ })
253
+
254
+ if (rows.length % 7 === 0) {
255
+ children.push(rows)
256
+ rows = []
257
+ }
258
+ }
259
+ }
260
+
261
+ if (rows.length) {
262
+ children.push(rows)
263
+ }
264
+
265
+ return children
266
+ },
267
+ lang_zone_offset() {
268
+ let offset = this.$helper.ifHas(this.$dateTime.langs, 0, this.locale, 'time_zone_offset')
269
+ let dst = this.$helper.ifHas(this.$dateTime.langs, false, this.locale, 'daylight_saving_time')
270
+
271
+ const m = this.$d(new Date(this.currentPeriod.year, this.currentPeriod.month, 10), 'me', this.locale)
272
+ if (parseInt(m) < 7 && dst) {
273
+ offset += 60
274
+ }
275
+ return offset * -1
276
+ }
277
+ },
278
+ watch: {
279
+ modelValueDate(newVal) {
280
+ this.currentPeriod = {
281
+ month: newVal.getMonth() + 1,
282
+ year: newVal.getFullYear()
283
+ }
284
+ if (this.rangeLocalDate.start > this.modelValueDate) {
285
+ this.incrementMonth(-1)
286
+ }
287
+ if (this.rangeLocalDate.end < this.modelValueDate) {
288
+ this.incrementMonth(1)
289
+ }
290
+ },
291
+ currentPeriod(currentPeriod, oldPeriod) {
292
+ const currentDate = new Date(currentPeriod.year, currentPeriod.month).getTime()
293
+ const oldDate = new Date(oldPeriod.year, oldPeriod.month).getTime()
294
+ this.direction = currentDate !== oldDate
295
+ ? (currentDate > oldDate ? 'next' : 'prev')
296
+ : undefined
297
+ }
298
+ },
299
+ methods: {
300
+ close() {
301
+ this.show = false
302
+ this.showTime = false
303
+ },
304
+ createRange(number) {
305
+ const res = []
306
+ for (let i = 0; i < number; i++) {
307
+ res.push(i)
308
+ }
309
+ return res
310
+ },
311
+ incrementMonth(increment = 1) {
312
+ const incrementDate = new Date(this.currentPeriod.year, this.currentPeriod.month + increment)
313
+ this.currentPeriod = {
314
+ month: incrementDate.getMonth(),
315
+ year: incrementDate.getFullYear()
316
+ }
317
+ },
318
+ incrementYear(increment = 1) {
319
+ const incrementDate = new Date(this.currentPeriod.year + increment, this.currentPeriod.month)
320
+ this.currentPeriod = {
321
+ month: incrementDate.getMonth(),
322
+ year: incrementDate.getFullYear()
323
+ }
324
+ },
325
+ setMonth(increment) {
326
+ const incrementDate = new Date(this.currentPeriod.year, increment)
327
+ this.currentPeriod = {
328
+ month: incrementDate.getMonth(),
329
+ year: incrementDate.getFullYear()
330
+ }
331
+ },
332
+ setYear(increment) {
333
+ const incrementDate = new Date(increment, this.currentPeriod.month)
334
+ this.currentPeriod = {
335
+ month: incrementDate.getMonth(),
336
+ year: incrementDate.getFullYear()
337
+ }
338
+ },
339
+ selectTime() {
340
+ const times = (this.time ? this.time : '00:00:00').split(':')
341
+ let d = (new Date(this.date.getFullYear(), this.date.getMonth(), this.date.getDate(),
342
+ this.date.getHours() + parseInt(times[0]),
343
+ this.date.getMinutes() + parseInt(times[1]),
344
+ this.date.getSeconds() + parseInt(times[2])))
345
+
346
+ this.$emit('update:modelValue', d.toISOString())
347
+ this.close()
348
+ },
349
+ selectDateItem(item) {
350
+ if (!item.disabled) {
351
+ if (this.withTime) {
352
+ this.date = item.date
353
+ this.showTime = true
354
+ } else {
355
+ this.$emit('update:modelValue', item.date.toISOString())
356
+ this.close()
357
+ }
358
+ }
359
+ },
360
+ areSameDates(date1, date2) {
361
+ if (typeof date1.getDate === 'function' && typeof date2.getDate === 'function') {
362
+ return (date1.getDate() === date2.getDate()) &&
363
+ (date1.getMonth() === date2.getMonth()) &&
364
+ (date1.getFullYear() === date2.getFullYear())
365
+ }
366
+ return false
367
+ }
368
+ }
369
+ }
370
+
371
+ </script>
372
+
373
+ <style lang="scss">
374
+ @import "../../../style/include";
375
+
376
+ .#{$prefix}date-input {
377
+ position: relative;
378
+ display: inline-block;
379
+ font-size: 10px;
380
+ color: var(--color-on-sheet);
381
+ background-color: var(--color-sheet-container-high);
382
+
383
+ .cell {
384
+ &.today {
385
+ color: var(--color-one);
386
+
387
+ .cellContent {
388
+ border: solid 1px var(--color-one);
389
+ }
390
+ }
391
+
392
+ &.selected {
393
+ .cellContent {
394
+ color: var(--color-on-one);
395
+ background: var(--color-one);
396
+
397
+ }
398
+ }
399
+
400
+ &.selectable:hover {
401
+ .cellContent {
402
+
403
+ color: var(--color-on-one);
404
+ background: var(--color-one);
405
+
406
+ }
407
+ }
408
+
409
+ }
410
+
411
+
412
+ .table {
413
+
414
+ width: 100%;
415
+ table-layout: fixed;
416
+ position: relative;
417
+ z-index: 5;
418
+
419
+ }
420
+
421
+ .cell, .headCell {
422
+
423
+ text-align: center;
424
+ box-sizing: border-box;
425
+
426
+ }
427
+
428
+ .cell {
429
+
430
+ padding: 0.5em 0;
431
+
432
+ }
433
+
434
+ .headCell {
435
+
436
+ padding: 0.3em 0.5em 1.8em;
437
+
438
+ }
439
+
440
+ .headCellContent {
441
+
442
+ font-size: 1.3em;
443
+ font-weight: normal;
444
+ color: var(--color-on-sheet-low);
445
+
446
+ }
447
+
448
+ .cellContent {
449
+ padding: 5px;
450
+ font-size: 1.4em;
451
+ margin: 0 auto;
452
+ width: 30px;
453
+ height: 30px;
454
+ text-align: center;
455
+ border-radius: 100%;
456
+ transition: background 0.1s, color 0.1s;
457
+
458
+ }
459
+
460
+ .cell.outOfRange {
461
+ color: var(--color-sheet-low);
462
+ }
463
+
464
+ .cell.selectable {
465
+
466
+ cursor: pointer;
467
+
468
+ }
469
+
470
+ .cell.disabled {
471
+ opacity: 0.38;
472
+ }
473
+
474
+ }
475
+ </style>
@@ -0,0 +1,8 @@
1
+ export * as rFileInput from './index.vue'
2
+ export * as l_input from '../input/index.js'
3
+ export * as l_textInput from '../textInput/index.js'
4
+ export * as l_btn from '../../button/index.js'
5
+ export * as l_icon from '../../icon/index.js'
6
+ export * as l_cropper from '../../cropper/index.js'
7
+ export * as l_row from '../../container/row.js'
8
+ export * as l_circle from '../../progress/circle.js'
@@ -35,7 +35,7 @@
35
35
  </template>
36
36
 
37
37
  <script>
38
- import single from './single'
38
+ import {defineAsyncComponent} from 'vue'
39
39
 
40
40
  export default {
41
41
  name: 'r-file-uploader',
@@ -66,7 +66,7 @@ export default {
66
66
  },
67
67
  emits:['update:modelValue','add'],
68
68
  components: {
69
- single
69
+ single:defineAsyncComponent(()=>import('./single.vue'))
70
70
  },
71
71
  data() {
72
72
  return {
@@ -0,0 +1,4 @@
1
+ export * as rGroupInput from './index.vue'
2
+
3
+ export * as l_btn from '../../button/index.js'
4
+ export * as l_icon from '../../icon/index.js'
@@ -134,7 +134,7 @@ export default {
134
134
  }
135
135
  </script>
136
136
  <style lang="scss">
137
- @import "../../style/include";
137
+ @import "../../../style/include";
138
138
 
139
139
  .#{$prefix}group-input {
140
140
  .group-holder {
@@ -0,0 +1 @@
1
+ export * as rForm from './index.vue'
@@ -0,0 +1,3 @@
1
+ export * as rInput from './index.vue'
2
+
3
+ export * as l_icon from '../../icon/index.js'
@@ -284,7 +284,7 @@ export default {
284
284
 
285
285
  </script>
286
286
  <style lang="scss">
287
- @import '../../style/include';
287
+ @import '../../../style/include';
288
288
 
289
289
 
290
290
  .#{$prefix}input-container {
@@ -83,7 +83,7 @@ export default {
83
83
  }
84
84
  </script>
85
85
  <style lang="scss">
86
- @import "~renusify/style/include";
86
+ @import "../../../style/include";
87
87
 
88
88
  .#{$prefix}json-view {
89
89
  @include rtl() {
@@ -0,0 +1,7 @@
1
+ export * as rJsonInput from './index.vue'
2
+ export * as l_btn from '../../button/index.js'
3
+ export * as l_icon from '../../icon/index.js'
4
+ export * as l_textInput from '../textInput/index.js'
5
+ export * as l_selectInput from '../selectInput/index.js'
6
+ export * as l_numberInput from '../numberInput/index.js'
7
+ export * as l_switchInput from '../switchInput/index.js'
@@ -68,12 +68,12 @@
68
68
  </div>
69
69
  </template>
70
70
  <script>
71
- import JsonView from "./JsonView";
72
- import mixin from 'renusify/components/codeEditor/mixin'
71
+ import {defineAsyncComponent} from 'vue'
72
+ import mixin from '../../codeEditor/mixin'
73
73
 
74
74
  export default {
75
75
  name: 'r-json',
76
- components: {JsonView},
76
+ components: {JsonView:defineAsyncComponent(()=>import('./JsonView.vue'))},
77
77
  mixins: [mixin],
78
78
  props: {
79
79
  label: String,
@@ -211,7 +211,7 @@ export default {
211
211
  }
212
212
  </script>
213
213
  <style lang="scss">
214
- @import "~renusify/style/include";
214
+ @import "../../../style/include";
215
215
 
216
216
  .#{$prefix}json-input {
217
217
  background: var(--color-sheet-container);
@@ -240,7 +240,7 @@ export default {
240
240
 
241
241
  .json-highlight {
242
242
  position: relative;
243
- margin: -12px 0;
243
+ margin: 12px 0;
244
244
 
245
245
  .text-preview {
246
246
  white-space: pre-wrap;
@@ -258,8 +258,8 @@ export default {
258
258
  textarea {
259
259
  &::selection {
260
260
  background-color: var(--color-one);
261
- -webkit-text-fill-color: var(--color-one-text);
262
- color: var(--color-one-text);
261
+ -webkit-text-fill-color: var(--color-on-one);
262
+ color: var(--color-on-one);
263
263
  }
264
264
 
265
265
  padding: 12px;
@@ -0,0 +1,3 @@
1
+ export * as rMaskInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as d_mask from '../../../directive/mask/index.js'
@@ -0,0 +1,4 @@
1
+ export * as rNumberInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_btn from '../../button/index.js'
4
+ export * as l_icon from '../../icon/index.js'
@@ -101,7 +101,7 @@ export default {
101
101
  </script>
102
102
 
103
103
  <style lang="scss">
104
- @import "../../style/include";
104
+ @import "../../../style/include";
105
105
 
106
106
  .#{$prefix}add-btn {
107
107
  position: relative;
@@ -0,0 +1,3 @@
1
+ export * as rPasswordInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_icon from '../../icon/index.js'
@@ -0,0 +1,3 @@
1
+ export * as rRadioInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as l_icon from '../../icon/index.js'
@@ -67,7 +67,7 @@ export default {
67
67
 
68
68
  </script>
69
69
  <style lang="scss">
70
- @import "../../style/include";
70
+ @import "../../../style/include";
71
71
 
72
72
  .#{$prefix}radio-input {
73
73
  width: 100%;
@@ -0,0 +1,3 @@
1
+ export * as rRangeInput from './index.vue'
2
+ export * as l_Input from '../input/index.js'
3
+ export * as d_touch from '../../../directive/touch/index.js'
@@ -209,7 +209,7 @@ export default {
209
209
  }
210
210
  </script>
211
211
  <style lang="scss">
212
- @import "../../style/include";
212
+ @import "../../../style/include";
213
213
 
214
214
  .#{$prefix}range {
215
215
  height: 30px;
@@ -0,0 +1,4 @@
1
+ export * as rRatingInput from './index.vue'
2
+
3
+ export * as l_btn from '../../button/index.js'
4
+ export * as l_icon from '../../icon/index.js'
@@ -44,7 +44,7 @@ export default {
44
44
  }
45
45
  </script>
46
46
  <style lang="scss">
47
- @import "../../style/include";
47
+ @import "../../../style/include";
48
48
 
49
49
  $btn-sizes: (
50
50
  'x-small': 20,