renusify 2.0.1 → 2.0.2

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 (53) hide show
  1. package/components/bar/scss/bottomNav.scss +1 -1
  2. package/components/bar/scss/toolbar.scss +1 -1
  3. package/components/bar/toolbar/menuChilds.vue +3 -3
  4. package/components/bar/toolbar/menuLaptop.vue +16 -16
  5. package/components/bar/toolbar/menuMob.vue +11 -11
  6. package/components/bar/toolbar/mixin.js +0 -2
  7. package/components/bar/toolbar/mobile.vue +2 -2
  8. package/components/breadcrumb/index.vue +5 -6
  9. package/components/breadcrumb/style.scss +4 -0
  10. package/components/button/style.scss +2 -3
  11. package/components/calendar/index.vue +3 -3
  12. package/components/calendar/month.vue +1 -1
  13. package/components/calendar/year.vue +1 -1
  14. package/components/card/index.vue +15 -15
  15. package/components/card/style.scss +15 -18
  16. package/components/chart/worldMap.vue +3 -1
  17. package/components/chat/chatMsg.vue +1 -1
  18. package/components/codeEditor/index.vue +2 -2
  19. package/components/confirm/index.vue +0 -2
  20. package/components/cropper/index.vue +1 -1
  21. package/components/form/camInput.vue +2 -2
  22. package/components/form/checkbox.vue +1 -1
  23. package/components/form/colorPicker/index.vue +1 -1
  24. package/components/form/datePicker/index.vue +4 -4
  25. package/components/form/datePicker/month.vue +1 -1
  26. package/components/form/datePicker/year.vue +1 -1
  27. package/components/form/fileUploader/single.vue +0 -2
  28. package/components/form/input.vue +1 -1
  29. package/components/form/inputTel/index.vue +2 -2
  30. package/components/form/json/JsonView.vue +1 -1
  31. package/components/form/radioInput.vue +2 -2
  32. package/components/form/rating.vue +1 -1
  33. package/components/form/switch.vue +3 -3
  34. package/components/form/text-editor/index.vue +555 -549
  35. package/components/form/text-editor/style.scss +11 -1
  36. package/components/form/timepicker/index.vue +4 -4
  37. package/components/form/timepicker/range.vue +4 -4
  38. package/components/form/timepicker/timepicker.vue +3 -3
  39. package/components/formCreator/index.vue +2 -2
  40. package/components/infinite/index.vue +5 -5
  41. package/components/map/index.vue +0 -1
  42. package/components/map/route.vue +3 -1
  43. package/components/menu/index.vue +1 -1
  44. package/components/modal/style.scss +2 -0
  45. package/components/notify/index.vue +3 -2
  46. package/components/searchBox/index.vue +1 -5
  47. package/components/slider/index.vue +2 -2
  48. package/components/table/crud/header.vue +15 -15
  49. package/components/table/crud/index.vue +8 -5
  50. package/components/table/index.vue +0 -2
  51. package/components/tabs/index.vue +1 -1
  52. package/package.json +1 -1
  53. package/tools/helper.js +4 -3
@@ -1,10 +1,20 @@
1
1
  @import '../../../style/include';
2
2
 
3
3
  .#{$prefix}text-editor {
4
+ background-color: var(--color-sheet-container);
5
+ margin-top: 20px;
4
6
 
7
+ &:not(.input-tile) {
8
+ border-radius: map-get($borders, 'xl');
5
9
 
6
- .editor-content {
10
+ .editor-content {
11
+ border-radius: map-get($borders, 'lg');
12
+ }
13
+ }
14
+
15
+ .editor-content, .input-control {
7
16
  border: 1px solid var(--color-sheet-low);
17
+ background-color: var(--color-sheet-container-low);
8
18
  }
9
19
 
10
20
  @include typography($headings, 'body-2');
@@ -22,7 +22,7 @@
22
22
  :closebtn="false"
23
23
  :no-overlay="noOverlay"
24
24
  >
25
- <r-card class="pt-3 pb-1">
25
+ <div class="pt-3 pb-1">
26
26
  <timepicker
27
27
  class="mb-2 mx-3"
28
28
  :disableTime="disableTime"
@@ -34,7 +34,7 @@
34
34
  <r-btn
35
35
  class="color-success-text"
36
36
  outlined
37
- @click="show_modal = false,emit()"
37
+ @click.prevent="show_modal = false,emit()"
38
38
  >
39
39
  {{ $t('accept', 'renusify') }}
40
40
  </r-btn
@@ -42,13 +42,13 @@
42
42
  <r-btn
43
43
  class="color-warning-text"
44
44
  outlined
45
- @click="(show_modal = false), (lazyValue = null),emit()"
45
+ @click.prevent="(show_modal = false), (lazyValue = null),emit()"
46
46
  >
47
47
  {{ $t('cancel', 'renusify') }}
48
48
  </r-btn
49
49
  >
50
50
  </div>
51
- </r-card>
51
+ </div>
52
52
  </r-modal>
53
53
  </div>
54
54
  </template>
@@ -21,7 +21,7 @@
21
21
  :closebtn="false"
22
22
  :no-overlay="noOverlay"
23
23
  >
24
- <r-card class="pt-3">
24
+ <div class="pt-3">
25
25
  <div class="px-2 title">
26
26
  <span>{{ $t('from', 'renusify') }}: </span>
27
27
  <span v-if="lazyValue[0]">{{ lazyValue[0] }} - </span>
@@ -46,7 +46,7 @@
46
46
  <r-btn
47
47
  class="color-success-text ml-7 mr-9 mb-3 mt-3"
48
48
  outlined
49
- @click="accept"
49
+ @click.prevent="accept"
50
50
  >
51
51
  {{ $t('accept', 'renusify') }}
52
52
  </r-btn
@@ -54,12 +54,12 @@
54
54
  <r-btn
55
55
  class="color-warning-text mr-7 ml-4 mb-3 mt-3"
56
56
  outlined
57
- @click="(show_modal = false), (lazyValue = []),emit()"
57
+ @click.prevent="(show_modal = false), (lazyValue = []),emit()"
58
58
  >
59
59
  {{ $t('cancel', 'renusify') }}
60
60
  </r-btn
61
61
  >
62
- </r-card>
62
+ </div>
63
63
  </r-modal>
64
64
  </div>
65
65
  </template>
@@ -10,7 +10,7 @@
10
10
  ref="number"
11
11
  :class="['number' + i,{'number-disabled':disableTime(parseInt(i),show,hour,min,sec)}]"
12
12
  class="number"
13
- @click="set(i)"
13
+ @click.prevent="set(i)"
14
14
  >
15
15
  {{ num }}
16
16
  </div>
@@ -20,14 +20,14 @@
20
20
  <div
21
21
  :class="{ 'meridiem-active': meridiem === 'AM' }"
22
22
  class="time-meridiem overflow-hidden"
23
- @click="(meridiem = 'AM'),emit()"
23
+ @click.prevent="(meridiem = 'AM'),emit()"
24
24
  >
25
25
  {{ $t('timepicker_am', 'renusify') }}
26
26
  </div>
27
27
  <div
28
28
  :class="{ 'meridiem-active': meridiem === 'PM' }"
29
29
  class="time-meridiem overflow-hidden"
30
- @click="(meridiem = 'PM'),emit()"
30
+ @click.prevent="(meridiem = 'PM'),emit()"
31
31
  >
32
32
  {{ $t('timepicker_pm', 'renusify') }}
33
33
  </div>
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <r-card v-if="!autoSend" :class="$r.prefix+'form-creator'" class="overflow-auto">
2
+ <div v-if="!autoSend" :class="$r.prefix+'form-creator'" class="overflow-auto">
3
3
  <r-container>
4
4
  <h1 v-if="title" class="title-1">{{ title }}</h1>
5
5
  <r-form ref="form" v-model="valid" @submit.prevent="save">
@@ -33,7 +33,7 @@
33
33
  </div>
34
34
  </r-form>
35
35
  </r-container>
36
- </r-card>
36
+ </div>
37
37
  </template>
38
38
 
39
39
  <script>
@@ -5,11 +5,11 @@
5
5
  <r-col class="col-auto">
6
6
  <h3 class="title-1 px-2">{{ title }}</h3>
7
7
  </r-col>
8
- <r-col class="col-auto">
9
- <r-switch-input
10
- label="live"
11
- v-model="live"
12
- ></r-switch-input>
8
+ <r-col class="col-auto px-1">
9
+ <r-switch-input
10
+ label="live"
11
+ v-model="live"
12
+ ></r-switch-input>
13
13
  </r-col>
14
14
  </r-row>
15
15
  </r-container>
@@ -9,7 +9,6 @@
9
9
  <r-search-box
10
10
  :label="$t('search','renusify')"
11
11
  :notFoundMsg="$t('map_not_found','renusify')"
12
- inputControlClass="sheet"
13
12
  no-overlay
14
13
  query="q"
15
14
  url="https://nominatim.openstreetmap.org/search.php?polygon_geojson=0&accept-language=fa&countrycodes=IR&format=jsonv2"
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <r-container :class="`${$r.prefix}map-route sheet sheet-tile pa-0`">
2
+ <r-container :class="`${$r.prefix}map-route pa-0`">
3
3
  <r-row class="no-gutters">
4
4
  <r-col class="col-12 sm-9">
5
5
  <r-map :dark-mode="darkMode" :height="height" :model-value="center" :zoom="15" search-box
@@ -569,6 +569,8 @@ export default {
569
569
 
570
570
  .#{$prefix}map-route {
571
571
  display: flex;
572
+ background-color: var(--color-sheet-container);
573
+ color: var(--color-on-sheet);
572
574
 
573
575
  .route-point {
574
576
  border: 1px solid #cdcaca;
@@ -23,7 +23,7 @@
23
23
  <r-card>
24
24
  <div class="dropdown-menu-item pa-2" v-for="(item,i) in list" :key="i"
25
25
  :class="{'menu-selected':selected===item[value]}"
26
- @click="emit(item)">
26
+ @click.prevent="emit(item)">
27
27
  <slot :item="item">
28
28
  {{ item }}
29
29
  </slot>
@@ -26,6 +26,8 @@
26
26
 
27
27
  .modal-content {
28
28
  border: 1px solid var(--color-sheet-container-low);
29
+ background-color: var(--color-sheet);
30
+ color: var(--color-on-sheet)
29
31
  }
30
32
 
31
33
 
@@ -8,8 +8,9 @@
8
8
  'flex-column-reverse':!top,
9
9
  'flex-column':top,
10
10
  }" :style="{ 'min-width': width }">
11
- <r-btn v-if="list.length>0" @click="handleClose(list[list.length-1].on_close_all)" class="color-error" rounded>
12
- {{$t('clear','renusify')}}
11
+ <r-btn v-if="list.length>0" class="color-error" rounded
12
+ @click.prevent="handleClose(list[list.length-1].on_close_all)">
13
+ {{ $t('clear', 'renusify') }}
13
14
  </r-btn>
14
15
  <notification v-for="item in list" :key="item.id"
15
16
  :pos="left?'left':'right'"
@@ -68,7 +68,7 @@
68
68
  <div v-if="open" class="search-shadow"></div>
69
69
  </transition>
70
70
  </template>
71
- <r-btn v-else class="mt-5" icon @click="show = !show">
71
+ <r-btn v-else class="mt-5" icon @click.prevent="show = !show">
72
72
  <r-icon v-html="$r.icons.search"></r-icon>
73
73
  </r-btn>
74
74
  </div>
@@ -194,10 +194,6 @@ export default {
194
194
  color: var(--color-on-sheet);
195
195
  position: relative;
196
196
  border-radius: map-get($borders, "md");
197
-
198
- .sheet {
199
- transition: 0.5s all ease;
200
- }
201
197
  }
202
198
 
203
199
 
@@ -10,10 +10,10 @@
10
10
  'right':$r.rtl?next:prev
11
11
  }">
12
12
 
13
- <r-btn v-if="arrow" icon @click="prev" class="btn-left-arrow">
13
+ <r-btn v-if="arrow" class="btn-left-arrow" icon @click.prevent="prev">
14
14
  <r-icon v-html="$r.icons.chevron_left"></r-icon>
15
15
  </r-btn>
16
- <r-btn v-if="arrow" icon @click="next" class="btn-right-arrow">
16
+ <r-btn v-if="arrow" class="btn-right-arrow" icon @click.prevent="next">
17
17
  <r-icon v-html="$r.icons.chevron_right"></r-icon>
18
18
  </r-btn>
19
19
  <transition :appear="appear" :mode="mode" :name="direction">
@@ -1,20 +1,20 @@
1
1
  <template>
2
- <div class="sheet sheet-tile">
3
- <r-container class="container-fluid">
4
- <r-row class="h-start h-space-between">
5
- <r-col class="col-auto">
6
- <r-btn @click.prevent="newItem"
7
- v-if="!disableAdd"
8
- class="color-success-text"
9
- outlined
10
- rounded>{{$t('new','renusify')}}
11
- </r-btn>
12
- </r-col>
2
+ <div>
3
+ <r-container class="container-fluid">
4
+ <r-row class="h-start h-space-between">
5
+ <r-col class="col-auto">
6
+ <r-btn @click.prevent="newItem"
7
+ v-if="!disableAdd"
8
+ class="color-success-text"
9
+ outlined
10
+ rounded>{{ $t('new', 'renusify') }}
11
+ </r-btn>
12
+ </r-col>
13
13
  <r-col class="col-auto">
14
14
  <template v-if="mcud">
15
- <r-btn icon class="color-error mx-1" @click="showConfirm=true">
16
- <r-icon v-html="$r.icons.delete"></r-icon>
17
- </r-btn>
15
+ <r-btn class="color-error mx-1" icon @click.prevent="showConfirm=true">
16
+ <r-icon v-html="$r.icons.delete"></r-icon>
17
+ </r-btn>
18
18
  <r-btn icon class="color-success mx-1" @click.prevent="$emit('copy',true)">
19
19
  <r-icon v-html="$r.icons.copy"></r-icon>
20
20
  </r-btn>
@@ -121,7 +121,7 @@
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"
124
- disableSearch multiple tags></r-select-input>
124
+ justValue multiple tags></r-select-input>
125
125
  </r-col>
126
126
  <r-col class="col-1">
127
127
  <r-btn class="color-error" icon @click.prevent="del(i)">
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <r-card :class="`${$r.prefix}table-manage`">
2
+ <div :class="`${$r.prefix}table-manage`">
3
3
  <r-modal bottom full-width v-model="showForm">
4
4
  <slot name="form" :autoSend="autoSend"
5
5
  :method="method"
@@ -19,7 +19,7 @@
19
19
  </slot>
20
20
  </r-modal>
21
21
  <r-modal v-model="showCopy" bottom full-width>
22
- <r-card class="pa-3">
22
+ <div class="pa-3">
23
23
  <div :key="key" class="mb-5"
24
24
  v-for="(item,key) in table.option">
25
25
  <template v-if="item['formInput']!==false">
@@ -42,9 +42,12 @@
42
42
  <r-number-input v-if="copyItem['t']==='copy'" :label="$t('count_copy','renusify')"
43
43
  v-model="copyItem['c']"></r-number-input>
44
44
  </span>
45
- <r-btn class="color-success" :loading="loading" @click="copyAll()">{{ $t('send', 'renusify') }}</r-btn>
45
+ <r-btn :loading="loading" class="color-success" @click.prevent="copyAll()">{{
46
+ $t('send', 'renusify')
47
+ }}
48
+ </r-btn>
46
49
  </div>
47
- </r-card>
50
+ </div>
48
51
  </r-modal>
49
52
  <manage-header v-model="search" @update:modelValue="searching()"
50
53
  :header-table="table.headers"
@@ -154,7 +157,7 @@
154
157
  v-on:accept="accept"
155
158
  v-on:cancel="showConfirm = false"
156
159
  />
157
- </r-card>
160
+ </div>
158
161
  </template>
159
162
 
160
163
  <script>
@@ -71,7 +71,6 @@
71
71
  </div>
72
72
  </div>
73
73
  <r-modal v-if="editable" v-model="showModal">
74
- <r-card>
75
74
  <r-container
76
75
  v-sortable="{
77
76
  items: cols,
@@ -100,7 +99,6 @@
100
99
  </r-col>
101
100
  </r-row>
102
101
  </r-container>
103
- </r-card>
104
102
  </r-modal>
105
103
  </template>
106
104
 
@@ -13,7 +13,7 @@
13
13
  :disabled="tab.disabled || false"
14
14
  class="tabs__item"
15
15
  type="button"
16
- @click="handleClick(tab.value)"
16
+ @click.prevent="handleClick(tab.value)"
17
17
  >
18
18
  <slot :item="tab">{{ tab.title }}</slot>
19
19
  </button>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "renusify",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Vue3 Framework",
5
5
  "keywords": [
6
6
  "vuejs",
package/tools/helper.js CHANGED
@@ -296,7 +296,7 @@ export function randomString(len, an) {
296
296
  min = an === "a" ? 10 : 0,
297
297
  max = an === "n" ? 10 : 62;
298
298
  for (; i++ < len;) {
299
- const r = Math.random() * (max - min) + min << 0;
299
+ let r = Math.random() * (max - min) + min << 0;
300
300
  str += String.fromCharCode(r += r > 9 ? r < 36 ? 55 : 61 : 48);
301
301
  }
302
302
  return str;
@@ -390,11 +390,12 @@ export function changeColor(vars) {
390
390
  }
391
391
  let style = document.createElement('style');
392
392
  style.setAttribute("c", "color");
393
+ style.setAttribute("type", "text/css");
393
394
  head.appendChild(style);
394
395
  let css = ':root{';
395
396
  for (let k in vars) {
396
- css += k + ':' + vars[k] + ';'
397
+ css += '--color-' + k + ':' + vars[k] + ';'
397
398
  }
398
399
  css += '}'
399
400
  style.appendChild(document.createTextNode(css));
400
- }
401
+ }