renusify 2.1.5 → 2.1.8

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 (231) hide show
  1. package/components/codeEditor/index.vue +10 -10
  2. package/components/codeEditor/run.vue +3 -3
  3. package/components/form/checkboxInput/index.vue +6 -2
  4. package/components/form/groupInput/index.vue +5 -2
  5. package/components/form/selectInput/index.vue +2 -2
  6. package/components/form/switchInput/index.vue +3 -1
  7. package/components/form/text-editor/style.scss +1 -1
  8. package/components/form/timeInput/range.vue +6 -6
  9. package/components/img/index.vue +1 -1
  10. package/components/list/index.vue +105 -104
  11. package/components/message/index.vue +1 -1
  12. package/components/modal/style.scss +1 -1
  13. package/components/nestable/NestableItem.vue +2 -2
  14. package/components/nestable/editable.js +5 -5
  15. package/components/nestable/index.vue +8 -6
  16. package/components/table/crud/index.vue +1 -1
  17. package/docs/.browserslistrc +4 -0
  18. package/docs/.editorconfig +5 -0
  19. package/docs/babel.config.js +3 -0
  20. package/docs/jsconfig.json +19 -0
  21. package/docs/package-lock.json +23358 -0
  22. package/docs/package.json +34 -0
  23. package/docs/public/404.jpg +0 -0
  24. package/docs/public/index.html +18 -0
  25. package/docs/public/logo.jpg +0 -0
  26. package/docs/public/manifest.json +23 -0
  27. package/docs/public/pwa/android-chrome-192x192.png +0 -0
  28. package/docs/public/pwa/android-chrome-256x256.png +0 -0
  29. package/docs/public/pwa/apple-touch-icon.png +0 -0
  30. package/docs/public/pwa/favicon-16x16.png +0 -0
  31. package/docs/public/pwa/favicon-32x32.png +0 -0
  32. package/docs/public/pwa/favicon.ico +0 -0
  33. package/docs/public/pwa/mstile-150x150.png +0 -0
  34. package/docs/public/pwa/safari-pinned-tab.svg +17 -0
  35. package/docs/public/robots.txt +2 -0
  36. package/docs/src/Index.vue +17 -0
  37. package/docs/src/components/buttomNextPage.vue +72 -0
  38. package/docs/src/components/sideBar.vue +141 -0
  39. package/docs/src/components/tableEvents.vue +36 -0
  40. package/docs/src/components/tableProps.vue +36 -0
  41. package/docs/src/components/treeElement.vue +21 -0
  42. package/docs/src/index.js +26 -0
  43. package/docs/src/layouts/renusify.vue +215 -0
  44. package/docs/src/plugins/axios.js +54 -0
  45. package/docs/src/registerServiceWorker.js +47 -0
  46. package/docs/src/router/index.js +43 -0
  47. package/docs/src/views/index/notFound/en.vue +36 -0
  48. package/docs/src/views/index/notFound/fa.vue +35 -0
  49. package/docs/src/views/index/notFound/index.vue +26 -0
  50. package/docs/src/views/index/pages.vue +50 -0
  51. package/docs/src/views/index/v1/component/app/en.vue +61 -0
  52. package/docs/src/views/index/v1/component/app/fa.vue +66 -0
  53. package/docs/src/views/index/v1/component/avatar/en.vue +184 -0
  54. package/docs/src/views/index/v1/component/avatar/fa.vue +208 -0
  55. package/docs/src/views/index/v1/component/bar/bottomNavigation/en.vue +181 -0
  56. package/docs/src/views/index/v1/component/bar/bottomNavigation/fa.vue +180 -0
  57. package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/en.vue +100 -0
  58. package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/fa.vue +98 -0
  59. package/docs/src/views/index/v1/component/bar/toolbar/en.vue +231 -0
  60. package/docs/src/views/index/v1/component/bar/toolbar/fa.vue +232 -0
  61. package/docs/src/views/index/v1/component/breadcrumbs/en.vue +84 -0
  62. package/docs/src/views/index/v1/component/breadcrumbs/fa.vue +86 -0
  63. package/docs/src/views/index/v1/component/button/btn/en.vue +282 -0
  64. package/docs/src/views/index/v1/component/button/btn/fa.vue +286 -0
  65. package/docs/src/views/index/v1/component/button/btn_confirm/en.vue +155 -0
  66. package/docs/src/views/index/v1/component/button/btn_confirm/fa.vue +154 -0
  67. package/docs/src/views/index/v1/component/button/btn_group/en.vue +118 -0
  68. package/docs/src/views/index/v1/component/button/btn_group/fa.vue +117 -0
  69. package/docs/src/views/index/v1/component/calendar/en.vue +286 -0
  70. package/docs/src/views/index/v1/component/calendar/fa.vue +274 -0
  71. package/docs/src/views/index/v1/component/card/en.vue +283 -0
  72. package/docs/src/views/index/v1/component/card/fa.vue +294 -0
  73. package/docs/src/views/index/v1/component/chart/en.vue +113 -0
  74. package/docs/src/views/index/v1/component/chart/fa.vue +113 -0
  75. package/docs/src/views/index/v1/component/chart/worldMap/en.vue +112 -0
  76. package/docs/src/views/index/v1/component/chart/worldMap/fa.vue +114 -0
  77. package/docs/src/views/index/v1/component/chat/en.vue +153 -0
  78. package/docs/src/views/index/v1/component/chat/fa.vue +153 -0
  79. package/docs/src/views/index/v1/component/chip/en.vue +341 -0
  80. package/docs/src/views/index/v1/component/chip/fa.vue +340 -0
  81. package/docs/src/views/index/v1/component/codeEditor/en.vue +84 -0
  82. package/docs/src/views/index/v1/component/codeEditor/fa.vue +83 -0
  83. package/docs/src/views/index/v1/component/confirm/en.vue +441 -0
  84. package/docs/src/views/index/v1/component/confirm/fa.vue +434 -0
  85. package/docs/src/views/index/v1/component/container/col/en.vue +68 -0
  86. package/docs/src/views/index/v1/component/container/col/fa.vue +67 -0
  87. package/docs/src/views/index/v1/component/container/divider/en.vue +133 -0
  88. package/docs/src/views/index/v1/component/container/divider/fa.vue +130 -0
  89. package/docs/src/views/index/v1/component/container/en.vue +136 -0
  90. package/docs/src/views/index/v1/component/container/fa.vue +135 -0
  91. package/docs/src/views/index/v1/component/container/row/en.vue +157 -0
  92. package/docs/src/views/index/v1/component/container/row/fa.vue +157 -0
  93. package/docs/src/views/index/v1/component/container/spacer/en.vue +40 -0
  94. package/docs/src/views/index/v1/component/container/spacer/fa.vue +38 -0
  95. package/docs/src/views/index/v1/component/content/en.vue +61 -0
  96. package/docs/src/views/index/v1/component/content/fa.vue +59 -0
  97. package/docs/src/views/index/v1/component/count_down/en.vue +111 -0
  98. package/docs/src/views/index/v1/component/count_down/fa.vue +116 -0
  99. package/docs/src/views/index/v1/component/cropper/en.vue +97 -0
  100. package/docs/src/views/index/v1/component/cropper/fa.vue +97 -0
  101. package/docs/src/views/index/v1/component/float/en.vue +220 -0
  102. package/docs/src/views/index/v1/component/float/fa.vue +222 -0
  103. package/docs/src/views/index/v1/component/form/address_input/en.vue +237 -0
  104. package/docs/src/views/index/v1/component/form/address_input/fa.vue +237 -0
  105. package/docs/src/views/index/v1/component/form/cam_input/en.vue +244 -0
  106. package/docs/src/views/index/v1/component/form/cam_input/fa.vue +247 -0
  107. package/docs/src/views/index/v1/component/form/check_input/en.vue +221 -0
  108. package/docs/src/views/index/v1/component/form/check_input/fa.vue +221 -0
  109. package/docs/src/views/index/v1/component/form/checkbox_input/en.vue +453 -0
  110. package/docs/src/views/index/v1/component/form/checkbox_input/fa.vue +453 -0
  111. package/docs/src/views/index/v1/component/form/color_input/en.vue +121 -0
  112. package/docs/src/views/index/v1/component/form/color_input/fa.vue +120 -0
  113. package/docs/src/views/index/v1/component/form/date_input/en.vue +242 -0
  114. package/docs/src/views/index/v1/component/form/date_input/fa.vue +242 -0
  115. package/docs/src/views/index/v1/component/form/file_input/en.vue +123 -0
  116. package/docs/src/views/index/v1/component/form/file_input/fa.vue +133 -0
  117. package/docs/src/views/index/v1/component/form/form/en.vue +120 -0
  118. package/docs/src/views/index/v1/component/form/form/fa.vue +111 -0
  119. package/docs/src/views/index/v1/component/form/group_input/en.vue +369 -0
  120. package/docs/src/views/index/v1/component/form/group_input/fa.vue +368 -0
  121. package/docs/src/views/index/v1/component/form/input/en.vue +586 -0
  122. package/docs/src/views/index/v1/component/form/input/fa.vue +589 -0
  123. package/docs/src/views/index/v1/component/form/json_input/en.vue +280 -0
  124. package/docs/src/views/index/v1/component/form/json_input/fa.vue +285 -0
  125. package/docs/src/views/index/v1/component/form/mask_input/en.vue +249 -0
  126. package/docs/src/views/index/v1/component/form/mask_input/fa.vue +247 -0
  127. package/docs/src/views/index/v1/component/form/number_input/en.vue +319 -0
  128. package/docs/src/views/index/v1/component/form/number_input/fa.vue +363 -0
  129. package/docs/src/views/index/v1/component/form/password_input/en.vue +351 -0
  130. package/docs/src/views/index/v1/component/form/password_input/fa.vue +352 -0
  131. package/docs/src/views/index/v1/component/form/radio_input/en.vue +251 -0
  132. package/docs/src/views/index/v1/component/form/radio_input/fa.vue +262 -0
  133. package/docs/src/views/index/v1/component/form/range_input/en.vue +302 -0
  134. package/docs/src/views/index/v1/component/form/range_input/fa.vue +310 -0
  135. package/docs/src/views/index/v1/component/form/rating_input/en.vue +318 -0
  136. package/docs/src/views/index/v1/component/form/rating_input/fa.vue +286 -0
  137. package/docs/src/views/index/v1/component/form/select_input/en.vue +293 -0
  138. package/docs/src/views/index/v1/component/form/select_input/fa.vue +297 -0
  139. package/docs/src/views/index/v1/component/form/switch_input/en.vue +138 -0
  140. package/docs/src/views/index/v1/component/form/switch_input/fa.vue +139 -0
  141. package/docs/src/views/index/v1/component/form/tel_input/en.vue +195 -0
  142. package/docs/src/views/index/v1/component/form/tel_input/fa.vue +194 -0
  143. package/docs/src/views/index/v1/component/form/text_area/en.vue +189 -0
  144. package/docs/src/views/index/v1/component/form/text_area/fa.vue +191 -0
  145. package/docs/src/views/index/v1/component/form/text_editor/en.vue +143 -0
  146. package/docs/src/views/index/v1/component/form/text_editor/fa.vue +143 -0
  147. package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/en.vue +72 -0
  148. package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/fa.vue +78 -0
  149. package/docs/src/views/index/v1/component/form/text_input/en.vue +146 -0
  150. package/docs/src/views/index/v1/component/form/text_input/fa.vue +149 -0
  151. package/docs/src/views/index/v1/component/form/time_input/en.vue +138 -0
  152. package/docs/src/views/index/v1/component/form/time_input/fa.vue +137 -0
  153. package/docs/src/views/index/v1/component/form/time_range_input/en.vue +115 -0
  154. package/docs/src/views/index/v1/component/form/time_range_input/fa.vue +113 -0
  155. package/docs/src/views/index/v1/component/form/unique_input/en.vue +107 -0
  156. package/docs/src/views/index/v1/component/form/unique_input/fa.vue +106 -0
  157. package/docs/src/views/index/v1/component/form/unit_input/en.vue +200 -0
  158. package/docs/src/views/index/v1/component/form/unit_input/fa.vue +203 -0
  159. package/docs/src/views/index/v1/component/form_creator/en.vue +181 -0
  160. package/docs/src/views/index/v1/component/form_creator/fa.vue +179 -0
  161. package/docs/src/views/index/v1/component/html2pdf/en.vue +215 -0
  162. package/docs/src/views/index/v1/component/html2pdf/fa.vue +226 -0
  163. package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/en.vue +37 -0
  164. package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/fa.vue +36 -0
  165. package/docs/src/views/index/v1/component/icon/en.vue +231 -0
  166. package/docs/src/views/index/v1/component/icon/fa.vue +230 -0
  167. package/docs/src/views/index/v1/component/img/en.vue +511 -0
  168. package/docs/src/views/index/v1/component/img/fa.vue +510 -0
  169. package/docs/src/views/index/v1/component/infinite/infinite_box/en.vue +107 -0
  170. package/docs/src/views/index/v1/component/infinite/infinite_box/fa.vue +106 -0
  171. package/docs/src/views/index/v1/component/infinite/infinite_div/en.vue +87 -0
  172. package/docs/src/views/index/v1/component/infinite/infinite_div/fa.vue +83 -0
  173. package/docs/src/views/index/v1/component/infinite/infinite_page/en.vue +76 -0
  174. package/docs/src/views/index/v1/component/infinite/infinite_page/fa.vue +76 -0
  175. package/docs/src/views/index/v1/component/list/en.vue +477 -0
  176. package/docs/src/views/index/v1/component/list/fa.vue +475 -0
  177. package/docs/src/views/index/v1/component/map/en.vue +243 -0
  178. package/docs/src/views/index/v1/component/map/fa.vue +256 -0
  179. package/docs/src/views/index/v1/component/map/map_route/en.vue +176 -0
  180. package/docs/src/views/index/v1/component/map/map_route/fa.vue +177 -0
  181. package/docs/src/views/index/v1/component/map/map_select/en.vue +85 -0
  182. package/docs/src/views/index/v1/component/map/map_select/fa.vue +87 -0
  183. package/docs/src/views/index/v1/component/menu/en.vue +160 -0
  184. package/docs/src/views/index/v1/component/menu/fa.vue +158 -0
  185. package/docs/src/views/index/v1/component/message/en.vue +135 -0
  186. package/docs/src/views/index/v1/component/message/fa.vue +134 -0
  187. package/docs/src/views/index/v1/component/meta/en.vue +74 -0
  188. package/docs/src/views/index/v1/component/meta/fa.vue +73 -0
  189. package/docs/src/views/index/v1/component/modal/en.vue +432 -0
  190. package/docs/src/views/index/v1/component/modal/fa.vue +433 -0
  191. package/docs/src/views/index/v1/component/notify/en.vue +116 -0
  192. package/docs/src/views/index/v1/component/notify/fa.vue +116 -0
  193. package/docs/src/views/index/v1/component/progress/progress_circle/en.vue +202 -0
  194. package/docs/src/views/index/v1/component/progress/progress_circle/fa.vue +201 -0
  195. package/docs/src/views/index/v1/component/progress/progress_line/en.vue +216 -0
  196. package/docs/src/views/index/v1/component/progress/progress_line/fa.vue +214 -0
  197. package/docs/src/views/index/v1/component/search_box/en.vue +185 -0
  198. package/docs/src/views/index/v1/component/search_box/fa.vue +178 -0
  199. package/docs/src/views/index/v1/component/slider/en.vue +428 -0
  200. package/docs/src/views/index/v1/component/slider/fa.vue +427 -0
  201. package/docs/src/views/index/v1/component/swiper/en.vue +291 -0
  202. package/docs/src/views/index/v1/component/swiper/fa.vue +289 -0
  203. package/docs/src/views/index/v1/component/table/en.vue +711 -0
  204. package/docs/src/views/index/v1/component/table/fa.vue +709 -0
  205. package/docs/src/views/index/v1/component/table/table_crud/en.vue +218 -0
  206. package/docs/src/views/index/v1/component/table/table_crud/fa.vue +219 -0
  207. package/docs/src/views/index/v1/component/tabs/en.vue +289 -0
  208. package/docs/src/views/index/v1/component/tabs/fa.vue +289 -0
  209. package/docs/src/views/index/v1/component/time_ago/en.vue +98 -0
  210. package/docs/src/views/index/v1/component/time_ago/fa.vue +102 -0
  211. package/docs/src/views/index/v1/component/timeline/en.vue +140 -0
  212. package/docs/src/views/index/v1/component/timeline/fa.vue +138 -0
  213. package/docs/src/views/index/v1/component/tour/en.vue +125 -0
  214. package/docs/src/views/index/v1/component/tour/fa.vue +129 -0
  215. package/docs/src/views/index/v1/component/tree/en.vue +213 -0
  216. package/docs/src/views/index/v1/component/tree/fa.vue +213 -0
  217. package/docs/src/views/index/v1/features/breakpoint/fa.vue +136 -0
  218. package/docs/src/views/index/v1/features/direction/fa.vue +57 -0
  219. package/docs/src/views/index/v1/features/internationalization/fa.vue +186 -0
  220. package/docs/src/views/index/v1/features/theme/fa.vue +148 -0
  221. package/docs/src/views/index/v1/getting_started/browserSupport/fa.vue +33 -0
  222. package/docs/src/views/index/v1/getting_started/installation/fa.vue +110 -0
  223. package/docs/src/views/index/v1/introduction/support/fa.vue +58 -0
  224. package/docs/src/views/index/v1/introduction/whyRenusify/fa.vue +49 -0
  225. package/docs/src/views/index/v1/menu/en.json +1040 -0
  226. package/docs/src/views/index/v1/menu/fa.json +1040 -0
  227. package/docs/src/views/index/v1/mixins/root/fa.vue +131 -0
  228. package/docs/vue.config.js +39 -0
  229. package/index.js +11 -3
  230. package/package.json +1 -1
  231. package/tools/helper.js +1 -1
@@ -0,0 +1,200 @@
1
+ <template>
2
+ <section>
3
+ <div class="color-white mb-2">
4
+ <h1 class="display-3 font-weight-light color-white ps-4 pb-1 pt-1 br-lg">
5
+ r-unit-input
6
+ </h1>
7
+ <p class="font-weight-light ps-4 pb-1 py-4 br-lg">
8
+ The
9
+ <r-btn readonly size="small"> r-unit-input</r-btn>
10
+ component is an
11
+ input field that is used for singular inputs.
12
+ </p>
13
+ </div>
14
+
15
+ <table-props :items="props"></table-props>
16
+ <table-events :items="events" class="mt-5"></table-events>
17
+ </section>
18
+ <section class="mt-10">
19
+ <p class="caption">Press run Button</p>
20
+ <r-code-editor
21
+ runnable
22
+ script='data(){
23
+ return {
24
+ "type": "text",
25
+ "units": null,
26
+ "disableInput": false,
27
+ "disableUnit": false,
28
+ "autofocus": false,
29
+ "translate": false
30
+ }
31
+ },
32
+ methods:{
33
+ log(name,e){
34
+ console.log(name,e)
35
+ }
36
+ }'
37
+ template='<r-unit-input :type="type" :units="units" v-model="modelValue" :disable-Input="disableInput" :disable-Unit="disableUnit" :autofocus="autofocus" :translate="translate" @update:model-Value="log(`update:modelValue`,$event)" ></r-unit-input>'
38
+ ></r-code-editor>
39
+ </section>
40
+ <br/>
41
+ <br/>
42
+ <section class="pa-3 color-white">
43
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
44
+ PROP / <span>Units</span>
45
+ </h1>
46
+ <section class="pa-4">
47
+ <r-form v-model="valid">
48
+ <r-unit-input :units="['grem', 'liter']"></r-unit-input>
49
+ </r-form>
50
+ </section>
51
+ <p class="caption">Press run Button</p>
52
+ <r-code-editor
53
+ runnable
54
+ script="data(){
55
+ return {
56
+ valid: false,
57
+
58
+ info: {},
59
+
60
+ }
61
+ }"
62
+ template='
63
+ <r-form v-model="valid">
64
+ <r-unit-input :units="[`grem`, `liter`]"></r-unit-input>
65
+ </r-form>
66
+ '
67
+ ></r-code-editor>
68
+ </section>
69
+ <br/>
70
+ <br/>
71
+ <section class="pa-3 color-white">
72
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
73
+ PROP / <span>ModelValue</span>
74
+ </h1>
75
+ <section class="pa-4">
76
+ <r-form v-model="valid">
77
+ <r-unit-input
78
+ v-model="info.unit"
79
+ :units="['grem', 'liter']"
80
+ ></r-unit-input>
81
+ <r-unique-input :label="$t('Title')"></r-unique-input>
82
+ <r-text-input :label="$t('Description')"></r-text-input>
83
+ </r-form>
84
+ </section>
85
+ <p class="caption">Press run Button</p>
86
+ <r-code-editor
87
+ runnable
88
+ script="data(){
89
+ return {
90
+ valid: false,
91
+ info: {},
92
+
93
+ }
94
+ }"
95
+ template='
96
+ <r-form v-model="valid">
97
+ <r-unit-input
98
+ v-model="info.unit"
99
+ :units="[`grem`, `liter`]"
100
+ ></r-unit-input>
101
+ <r-unique-input :label="$t(`Title`)"></r-unique-input>
102
+ <r-text-input :label="$t(`Description`)"></r-text-input>
103
+ <r-switch-input readonly v-model="info.active"></r-switch-input>
104
+ </r-form>
105
+ '
106
+ ></r-code-editor>
107
+ </section>
108
+ <br/>
109
+ <br/>
110
+ <section class="pa-3 color-white">
111
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
112
+ PROP / <span>disableUnit</span>
113
+ </h1>
114
+ <section class="pa-4">
115
+ <r-form v-model="valid">
116
+ <r-unit-input
117
+ v-model="info.unit"
118
+ :units="['grem', 'liter']"
119
+ disableUnit
120
+ ></r-unit-input>
121
+ <r-switch-input v-model="info.active"></r-switch-input>
122
+ </r-form>
123
+ </section>
124
+ <p class="caption">Press run Button</p>
125
+ <r-code-editor
126
+ runnable
127
+ script="data(){
128
+ return {
129
+ valid: false,
130
+ info: {},
131
+
132
+ }
133
+ }"
134
+ template='
135
+ <r-form v-model="valid">
136
+ <r-unit-input
137
+ v-model="info.unit"
138
+ :units="[`grem`, `liter`]"
139
+ ></r-unit-input>
140
+ <r-unique-input :label="$t(`Title`)"></r-unique-input>
141
+ <r-text-input :label="$t(`Description`)"></r-text-input>
142
+ <r-switch-input readonly v-model="info.active"></r-switch-input>
143
+ </r-form>
144
+ '
145
+ ></r-code-editor>
146
+ </section>
147
+ <br/>
148
+ <br/>
149
+ </template>
150
+ <script>
151
+ export default {
152
+ name: "unit_input",
153
+ data() {
154
+ return {
155
+ valid: false,
156
+ info: {},
157
+ props: [
158
+ {prop: "type", type: "String", default: "text", description: "Type"},
159
+ {
160
+ prop: "units",
161
+ type: "Array",
162
+ default: "undefined",
163
+ description: "Units",
164
+ },
165
+ {
166
+ prop: "modelValue",
167
+ type: "Object",
168
+ default: "{value: null,unit: null}",
169
+ description: "Model Value",
170
+ },
171
+ {
172
+ prop: "disableInput",
173
+ type: "Boolean",
174
+ default: "null",
175
+ description: "Disable Input",
176
+ },
177
+ {
178
+ prop: "disableUnit",
179
+ type: "Boolean",
180
+ default: "null",
181
+ description: "Disable Unit",
182
+ },
183
+ {
184
+ prop: "autofocus",
185
+ type: "Boolean",
186
+ default: "null",
187
+ description: "Auto Focus",
188
+ },
189
+ {
190
+ prop: "translate",
191
+ type: "Boolean",
192
+ default: "null",
193
+ description: "Translate",
194
+ },
195
+ ],
196
+ events: [{event: "update:modelValue", description: ""}],
197
+ };
198
+ },
199
+ };
200
+ </script>
@@ -0,0 +1,203 @@
1
+ <template>
2
+ <section>
3
+ <div class="color-white mb-2">
4
+ <h1 class="display-3 font-weight-light color-white ps-4 pb-1 pt-1 br-lg">
5
+ r-unit-input
6
+ </h1>
7
+ <p class="font-weight-light ps-4 pb-1 py-4 br-lg">
8
+ کامپوننت
9
+ <r-btn readonly size="small"> r-unit-input</r-btn>
10
+ یک فیلد
11
+ ورودی است , برای ورودی های واحد مورد استفاده قرار می گیرد .
12
+ </p>
13
+ </div>
14
+ <table-props :items="props"></table-props>
15
+ <table-events :items="events" class="mt-5"></table-events>
16
+ </section>
17
+ <section class="mt-10">
18
+ <p class="caption">Press run Button</p>
19
+ <r-code-editor
20
+ runnable
21
+ script='data(){
22
+ return {
23
+ "type": "text",
24
+ "units": ["grem","liter"],
25
+ "disableInput": false,
26
+ "disableUnit": false,
27
+ "autofocus": false,
28
+ "translate": false
29
+ }
30
+ },
31
+ methods:{
32
+ log(name,e){
33
+ console.log(name,e)
34
+ }
35
+ }'
36
+ template='<r-unit-input :type="type" :units="units" v-model="modelValue" :disable-Input="disableInput" :disable-Unit="disableUnit" :autofocus="autofocus" :translate="translate" @update:model-Value="log(`update:modelValue`,$event)" ></r-unit-input>'
37
+ ></r-code-editor>
38
+ </section>
39
+ <br/>
40
+ <br/>
41
+ <section class="pa-3 color-white">
42
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
43
+ PROP / <span>Units</span>
44
+ </h1>
45
+ <section class="pa-4">
46
+ <r-form v-model="valid">
47
+ <r-unit-input :units="['grem', 'liter']"></r-unit-input>
48
+ </r-form>
49
+ </section>
50
+ <p class="caption">Press run Button</p>
51
+ <r-code-editor
52
+ runnable
53
+ script="data(){
54
+ return {
55
+ valid: false,
56
+ info: {},
57
+
58
+ }
59
+ }"
60
+ template='
61
+ <r-form v-model="valid">
62
+ <r-unit-input :units="[`grem`, `liter`]"></r-unit-input>
63
+ </r-form>
64
+ '
65
+ ></r-code-editor>
66
+ </section>
67
+ <br/>
68
+ <br/>
69
+ <section class="pa-3 color-white">
70
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
71
+ PROP / <span>ModelValue</span>
72
+ </h1>
73
+ <section class="pa-4">
74
+ <r-form v-model="valid">
75
+ <r-unit-input
76
+ v-model="info.unit"
77
+ :units="['grem', 'liter']"
78
+ ></r-unit-input>
79
+ <r-unique-input :label="$t('Title')"></r-unique-input>
80
+ <r-text-input :label="$t('Description')"></r-text-input>
81
+ </r-form>
82
+ </section>
83
+ <p class="caption">Press run Button</p>
84
+ <r-code-editor
85
+ runnable
86
+ script="data(){
87
+ return {
88
+ valid: false,
89
+ info: {},
90
+
91
+ }
92
+ }"
93
+ template='
94
+ <r-form v-model="valid">
95
+ <r-unit-input
96
+ v-model="info.unit"
97
+ :units="[`grem`, `liter`]"
98
+ ></r-unit-input>
99
+ <r-unique-input :label="$t(`Title`)"></r-unique-input>
100
+ <r-text-input :label="$t(`Description`)"></r-text-input>
101
+ <r-switch-input readonly v-model="info.active"></r-switch-input>
102
+ </r-form>
103
+ '
104
+ ></r-code-editor>
105
+ </section>
106
+ <br/>
107
+ <br/>
108
+ <section class="pa-3 color-white">
109
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
110
+ PROP / <span>disableUnit</span>
111
+ </h1>
112
+ <section class="pa-4">
113
+ <r-form v-model="valid">
114
+ <r-unit-input
115
+ v-model="info.unit"
116
+ :units="['grem', 'liter']"
117
+ disableUnit
118
+ ></r-unit-input>
119
+ <r-switch-input v-model="info.active"></r-switch-input>
120
+ </r-form>
121
+ </section>
122
+ <p class="caption">Press run Button</p>
123
+ <r-code-editor
124
+ runnable
125
+ script="data(){
126
+ return {
127
+ valid: false,
128
+ info: {},
129
+
130
+ }
131
+ }"
132
+ template='
133
+ <r-form v-model="valid">
134
+ <r-unit-input
135
+ v-model="info.unit"
136
+ :units="[`grem`, `liter`]"
137
+ ></r-unit-input>
138
+ <r-unique-input :label="$t(`Title`)"></r-unique-input>
139
+ <r-text-input :label="$t(`Description`)"></r-text-input>
140
+ <r-switch-input readonly v-model="info.active"></r-switch-input>
141
+ </r-form>
142
+ '
143
+ ></r-code-editor>
144
+ </section>
145
+ <br/>
146
+ <br/>
147
+ </template>
148
+ <script>
149
+ export default {
150
+ name: "unit_input",
151
+ data() {
152
+ return {
153
+ valid: false,
154
+ info: {},
155
+ props: [
156
+ {
157
+ prop: "type",
158
+ type: "String",
159
+ default: "text",
160
+ description: "نوع تایپ",
161
+ },
162
+ {
163
+ prop: "units",
164
+ type: "Array",
165
+ default: "undefined",
166
+ description: "واحد ",
167
+ },
168
+ {
169
+ prop: "modelValue",
170
+ type: "Object",
171
+ default: "{value: null,unit: null}",
172
+ description: "Model Value می گیرد ",
173
+ },
174
+ {
175
+ prop: "disableInput",
176
+ type: "Boolean",
177
+ default: "null",
178
+ description: "غیر فعال کردن Input",
179
+ },
180
+ {
181
+ prop: "disableUnit",
182
+ type: "Boolean",
183
+ default: "null",
184
+ description: "غیر فعال کردن Unit",
185
+ },
186
+ {
187
+ prop: "autofocus",
188
+ type: "Boolean",
189
+ default: "null",
190
+ description: "فوکوس خودکار",
191
+ },
192
+ {
193
+ prop: "translate",
194
+ type: "Boolean",
195
+ default: "null",
196
+ description: "ترجمه شود یا نه",
197
+ },
198
+ ],
199
+ events: [{event: "update:modelValue", description: ""}],
200
+ };
201
+ },
202
+ };
203
+ </script>
@@ -0,0 +1,181 @@
1
+ <template>
2
+ <section>
3
+ <div class="color-white mb-2">
4
+ <h1 class="display-3 font-weight-light color-white ps-4 pb-1 pt-1 br-lg">
5
+ r-form-creator
6
+ </h1>
7
+ <p class="font-weight-light ps-4 pb-1 py-4 br-lg">
8
+ <r-btn readonly size="small"> r-form-creator</r-btn>
9
+ It creates forms
10
+ automatically.
11
+ </p>
12
+ </div>
13
+
14
+ <table-props :items="props"></table-props>
15
+ <table-events :items="events" class="mt-5"></table-events>
16
+ </section>
17
+ <section class="mt-10">
18
+ <p class="caption">Press run Button</p>
19
+ <r-code-editor
20
+ runnable
21
+ script='data(){
22
+ return {
23
+ "url": null,
24
+ "title": "Add form",
25
+ "autoSend": false,
26
+ "redirect": null,
27
+ "method": "post",
28
+ "headers": null,
29
+ "options": {
30
+ name:{"type": "r-text-input","props":{"rules": ["required"]}},
31
+ family:{"type": "r-text-input","props":{"rules": ["required"]}},
32
+ age:{"type": "r-number-input",$if:[["$name","!=","$family"]],"props":{"rules": ["required","min:7","max:70"]}},
33
+ phone:{"type": "r-mask-input",$if:[["$age",">",7],["$age","<=",60]],"props":{"rules": ["required"],"mask": "0NNN NNN NNNN"}},
34
+ mix:{"type": "r-text-input","$bind":[["label","name"]]},
35
+ }
36
+ }
37
+ },
38
+ methods:{
39
+ log(name,e){
40
+ console.log(name,e)
41
+ }
42
+ }'
43
+ template='<r-form-creator :url="url" :title="title" :auto-Send="autoSend" :redirect="redirect" :method="method" :options="options" v-model="modelValue" :headers="headers" @update:model-Value="log(`update:modelValue`,$event)" @ok="log(`ok`,$event)" ></r-form-creator>'
44
+ ></r-code-editor>
45
+ </section>
46
+ <br/>
47
+ <br/>
48
+ <section class="pa-3 color-white">
49
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
50
+ PROP / <span>Title</span>
51
+ </h1>
52
+ <section>
53
+ <r-card>
54
+ <r-form-creator title="title Form"></r-form-creator>
55
+ </r-card>
56
+ </section>
57
+ <p class="caption">Press run Button</p>
58
+ <r-code-editor
59
+ runnable
60
+ script="data(){
61
+ return {
62
+ }
63
+ }"
64
+ template=' <r-card>
65
+ <r-form-creator title="title Form"> </r-form-creator>
66
+ </r-card>'
67
+ ></r-code-editor>
68
+ </section>
69
+ <br/>
70
+ <br/>
71
+ <section class="pa-3 color-white">
72
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
73
+ PROP / <span>Url</span>
74
+ </h1>
75
+ <section>
76
+ <r-card>
77
+ <r-form-creator title="title Form" url="url"></r-form-creator>
78
+ </r-card>
79
+ </section>
80
+ <p class="caption">Press run Button</p>
81
+ <r-code-editor
82
+ runnable
83
+ script="data(){
84
+ return {
85
+ }
86
+ }"
87
+ template=' <r-card>
88
+ <r-form-creator title="title Form" url="url"> </r-form-creator>
89
+ </r-card>'
90
+ ></r-code-editor>
91
+ </section>
92
+ <br/>
93
+ <br/>
94
+ <section class="pa-3 color-white">
95
+ <h1 class="font-weight-bold title ps-4 pt-1 pb-1 br-sm">
96
+ PROP / <span>Method</span>
97
+ </h1>
98
+ <section>
99
+ <r-card>
100
+ <r-form-creator method="post" title="title Form" url="url">
101
+ </r-form-creator>
102
+ </r-card>
103
+ </section>
104
+ <p class="caption">Press run Button</p>
105
+ <r-code-editor
106
+ runnable
107
+ script="data(){
108
+ return {
109
+ }
110
+ }"
111
+ template=' <r-card>
112
+ <r-form-creator method="post" title="title Form" url="url"> </r-form-creator>
113
+ </r-card>'
114
+ ></r-code-editor>
115
+ </section>
116
+ <br/>
117
+ <br/>
118
+ </template>
119
+ <script>
120
+ export default {
121
+ name: "form_creator",
122
+ data() {
123
+ return {
124
+ props: [
125
+ {
126
+ prop: "url",
127
+ type: "String",
128
+ default: "undefined",
129
+ description: "The Url to which the form is sent.",
130
+ },
131
+ {
132
+ prop: "title",
133
+ type: "String",
134
+ default: "Add form",
135
+ description: "A title can be called",
136
+ },
137
+ {
138
+ prop: "autoSend",
139
+ type: "Boolean",
140
+ default: "null",
141
+ description: "Should it be sent automatically or not.",
142
+ },
143
+ {
144
+ prop: "redirect",
145
+ type: "String",
146
+ default: "undefined",
147
+ description: "it is way to redirect to another webpage ",
148
+ },
149
+ {
150
+ prop: "method",
151
+ type: "String",
152
+ default: "post",
153
+ description: "method form",
154
+ },
155
+ {
156
+ prop: "options",
157
+ type: "Object,Array",
158
+ default: "undefined",
159
+ description: "We can determine the type of data.",
160
+ },
161
+ {
162
+ prop: "modelValue",
163
+ type: "Object",
164
+ default: "{}",
165
+ description: "If the form are it becomes true.",
166
+ },
167
+ {
168
+ prop: "headers",
169
+ type: "Object",
170
+ default: "null",
171
+ description: "Header form",
172
+ },
173
+ ],
174
+ events: [
175
+ {event: "update:modelValue", description: ""},
176
+ {event: "ok", description: ""},
177
+ ],
178
+ };
179
+ },
180
+ };
181
+ </script>