@timus-networks/theme 1.0.184 → 2.0.16

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 (225) hide show
  1. package/components/TimusIcons.vue +54 -0
  2. package/generate-icon.js +22 -0
  3. package/module.ts +84 -0
  4. package/package.json +17 -18
  5. package/pages/icons.vue +37 -0
  6. package/plugins/sample-plugin.ts +5 -0
  7. package/public/isax/fonts/iconsax.svg +927 -0
  8. package/public/isax/fonts/iconsax.ttf +0 -0
  9. package/public/isax/fonts/iconsax.woff +0 -0
  10. package/public/isax/icons.json +899 -0
  11. package/public/isax/selection.json +1 -0
  12. package/public/isax/style.css +1 -0
  13. package/public/isax/style.scss +5435 -0
  14. package/public/isax/variables.scss +900 -0
  15. package/README.md +0 -119
  16. package/components-js/ThemeAlert.vue +0 -78
  17. package/components-js/ThemeAvatar.vue +0 -55
  18. package/components-js/ThemeBadge.vue +0 -106
  19. package/components-js/ThemeBreadcrumb.vue +0 -44
  20. package/components-js/ThemeButtons.vue +0 -148
  21. package/components-js/ThemeCascader.vue +0 -390
  22. package/components-js/ThemeCheckbox.d.ts +0 -2
  23. package/components-js/ThemeCheckbox.vue +0 -197
  24. package/components-js/ThemeCollapse.vue +0 -73
  25. package/components-js/ThemeDialog.vue +0 -49
  26. package/components-js/ThemeForm.d.ts +0 -2
  27. package/components-js/ThemeForm.vue +0 -134
  28. package/components-js/ThemeInformation.vue +0 -127
  29. package/components-js/ThemeInputNumbers.vue +0 -74
  30. package/components-js/ThemeInputs.vue +0 -316
  31. package/components-js/ThemeLink.vue +0 -110
  32. package/components-js/ThemeLogo.vue +0 -57
  33. package/components-js/ThemeMessage.vue +0 -55
  34. package/components-js/ThemeMessageBox.vue +0 -47
  35. package/components-js/ThemePopover.vue +0 -557
  36. package/components-js/ThemeRadio.d.ts +0 -2
  37. package/components-js/ThemeRadio.vue +0 -164
  38. package/components-js/ThemeSelect.vue +0 -237
  39. package/components-js/ThemeSidebar.d.ts +0 -2
  40. package/components-js/ThemeSidebar.vue +0 -275
  41. package/components-js/ThemeTable.vue +0 -305
  42. package/components-js/ThemeTag.vue +0 -145
  43. package/components-js/ThemeToggle.vue +0 -123
  44. package/components-js/ThemeTooltip.vue +0 -191
  45. package/components-js/ThemeTypo.vue +0 -65
  46. package/components-js/ThemeUpload.vue +0 -92
  47. package/components-js/TimusSamples.vue +0 -54
  48. package/components-js/exporter.js +0 -19
  49. package/components-js/interfaces.js +0 -1
  50. package/components-js/utils.d.ts +0 -6
  51. package/components-js/utils.js +0 -17
  52. package/components-ts/ThemeAlert.vue +0 -78
  53. package/components-ts/ThemeAvatar.vue +0 -55
  54. package/components-ts/ThemeBadge.vue +0 -106
  55. package/components-ts/ThemeBreadcrumb.vue +0 -44
  56. package/components-ts/ThemeButtons.vue +0 -148
  57. package/components-ts/ThemeCascader.vue +0 -390
  58. package/components-ts/ThemeCheckbox.vue +0 -202
  59. package/components-ts/ThemeCollapse.vue +0 -73
  60. package/components-ts/ThemeDialog.vue +0 -49
  61. package/components-ts/ThemeForm.vue +0 -137
  62. package/components-ts/ThemeInformation.vue +0 -127
  63. package/components-ts/ThemeInputNumbers.vue +0 -74
  64. package/components-ts/ThemeInputs.vue +0 -316
  65. package/components-ts/ThemeLink.vue +0 -110
  66. package/components-ts/ThemeLogo.vue +0 -57
  67. package/components-ts/ThemeMessage.vue +0 -55
  68. package/components-ts/ThemeMessageBox.vue +0 -47
  69. package/components-ts/ThemePopover.vue +0 -557
  70. package/components-ts/ThemeRadio.vue +0 -169
  71. package/components-ts/ThemeSelect.vue +0 -237
  72. package/components-ts/ThemeSidebar.vue +0 -277
  73. package/components-ts/ThemeTable.vue +0 -305
  74. package/components-ts/ThemeTag.vue +0 -145
  75. package/components-ts/ThemeToggle.vue +0 -123
  76. package/components-ts/ThemeTooltip.vue +0 -191
  77. package/components-ts/ThemeTypo.vue +0 -65
  78. package/components-ts/ThemeUpload.vue +0 -92
  79. package/components-ts/TimusSamples.vue +0 -54
  80. package/components-ts/exporter.js +0 -19
  81. package/components-ts/interfaces.ts +0 -11
  82. package/components-ts/utils.ts +0 -20
  83. package/convert-js.js +0 -112
  84. package/convert-sass.js +0 -26
  85. package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
  86. package/fonts/poppins-font-face/files/Poppins-Black.svg +0 -3099
  87. package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
  88. package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
  89. package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
  90. package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
  91. package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
  92. package/fonts/poppins-font-face/files/Poppins-Bold.svg +0 -3131
  93. package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
  94. package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
  95. package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
  96. package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
  97. package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
  98. package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +0 -3120
  99. package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
  100. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
  101. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
  102. package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
  103. package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
  104. package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +0 -3245
  105. package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
  106. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
  107. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
  108. package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
  109. package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
  110. package/fonts/poppins-font-face/files/Poppins-Italic.svg +0 -3414
  111. package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
  112. package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
  113. package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
  114. package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
  115. package/fonts/poppins-font-face/files/Poppins-Light.svg +0 -3244
  116. package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
  117. package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
  118. package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
  119. package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
  120. package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
  121. package/fonts/poppins-font-face/files/Poppins-Medium.svg +0 -3190
  122. package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
  123. package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
  124. package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
  125. package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
  126. package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
  127. package/fonts/poppins-font-face/files/Poppins-Regular.svg +0 -3213
  128. package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
  129. package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
  130. package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
  131. package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
  132. package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +0 -3174
  133. package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
  134. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
  135. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
  136. package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
  137. package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
  138. package/fonts/poppins-font-face/files/Poppins-Thin.svg +0 -3266
  139. package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
  140. package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
  141. package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
  142. package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
  143. package/fonts/poppins-font-face/stylesheet.css +0 -81
  144. package/images/applications/apple.png +0 -0
  145. package/images/applications/apple_icloud.png +0 -0
  146. package/images/applications/apple_itunes.png +0 -0
  147. package/images/applications/apple_store.png +0 -0
  148. package/images/applications/bloomberg.png +0 -0
  149. package/images/applications/chrome.png +0 -0
  150. package/images/applications/csgo.png +0 -0
  151. package/images/applications/dns.png +0 -0
  152. package/images/applications/dropbox.png +0 -0
  153. package/images/applications/evil.png +0 -0
  154. package/images/applications/facebook-messenger.png +0 -0
  155. package/images/applications/facebook.png +0 -0
  156. package/images/applications/ftp.png +0 -0
  157. package/images/applications/gmail.png +0 -0
  158. package/images/applications/google.png +0 -0
  159. package/images/applications/google_maps.png +0 -0
  160. package/images/applications/instagram.png +0 -0
  161. package/images/applications/linkedin.svg +0 -5
  162. package/images/applications/messenger.png +0 -0
  163. package/images/applications/mysql.png +0 -0
  164. package/images/applications/netflix.png +0 -0
  165. package/images/applications/nintendo.png +0 -0
  166. package/images/applications/sap.png +0 -0
  167. package/images/applications/skype.png +0 -0
  168. package/images/applications/slack.png +0 -0
  169. package/images/applications/smtp.png +0 -0
  170. package/images/applications/snapchat.png +0 -0
  171. package/images/applications/spotify.png +0 -0
  172. package/images/applications/ssh.png +0 -0
  173. package/images/applications/teamspeak.png +0 -0
  174. package/images/applications/tiktok.png +0 -0
  175. package/images/applications/twitch.png +0 -0
  176. package/images/applications/twitter.png +0 -0
  177. package/images/applications/ubuntuone.png +0 -0
  178. package/images/applications/utorrent.png +0 -0
  179. package/images/applications/website.png +0 -0
  180. package/images/applications/whatsapp.png +0 -0
  181. package/images/applications/windows-update.png +0 -0
  182. package/images/applications/youtube.png +0 -0
  183. package/images/backgrounds/login-icon.png +0 -0
  184. package/images/backgrounds/login.jpg +0 -0
  185. package/images/backgrounds/login.png +0 -0
  186. package/images/cards/amex.svg +0 -20
  187. package/images/cards/default.svg +0 -18
  188. package/images/cards/dina.svg +0 -12
  189. package/images/cards/diners.svg +0 -30
  190. package/images/cards/discover.svg +0 -28
  191. package/images/cards/eftpos.svg +0 -21
  192. package/images/cards/jcb.svg +0 -41
  193. package/images/cards/mastercard.svg +0 -5
  194. package/images/cards/unionpay.svg +0 -6
  195. package/images/cards/visa.svg +0 -3
  196. package/images/devices/os-android.png +0 -0
  197. package/images/devices/os-android.svg +0 -6
  198. package/images/devices/os-apple.svg +0 -4
  199. package/images/devices/os-default.svg +0 -5
  200. package/images/devices/os-ios.png +0 -0
  201. package/images/devices/os-ios.svg +0 -4
  202. package/images/devices/os-linux-debian.png +0 -0
  203. package/images/devices/os-linux-ubuntu.png +0 -0
  204. package/images/devices/os-linux.svg +0 -3
  205. package/images/devices/os-osx.png +0 -0
  206. package/images/devices/os-unknown.png +0 -0
  207. package/images/devices/os-windows.png +0 -0
  208. package/images/devices/os-windows.svg +0 -3
  209. package/images/devices/type-laptop-ubuntu.png +0 -0
  210. package/images/devices/type-laptop.png +0 -0
  211. package/images/devices/type-printer.png +0 -0
  212. package/images/devices/type-switch-cisco.png +0 -0
  213. package/images/logos/timus-favicon.png +0 -0
  214. package/images/logos/timus-icon.svg +0 -17
  215. package/images/logos/timus-logo-manager.svg +0 -29
  216. package/images/logos/timus-logo-partner.svg +0 -35
  217. package/images/logos/timus-logo.svg +0 -22
  218. package/index.d.ts +0 -5
  219. package/loader.js +0 -50
  220. package/module.js +0 -77
  221. package/output/main.css +0 -1
  222. package/plugins/html-to-string.js +0 -36
  223. package/plugins/js-components-installer.js +0 -22
  224. package/plugins/theme-provider.js +0 -72
  225. package/plugins/ts-components-installer.js +0 -22
@@ -1,49 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Sizes</h1>
5
- <p class="p-md-c my-6">
6
- Our logos are available in three sizes: small, medium, and large. To tailor your choice, use the size tags
7
- <b>'small', 'medium', 'large'</b> to determine the appropriate size for your needs.
8
- </p>
9
- <div class="grid grid-flow-col auto-cols-max gap-6 items-center">
10
- <el-button type="text" @click="dialogVisible = true">click to open the Dialog</el-button>
11
- <el-dialog v-model:visible="dialogVisible" title="Tips" :before-close="handleClose">
12
- <span>This is a message</span>
13
- <template #footer>
14
- <span class="dialog-footer">
15
- <el-button @click="dialogVisible = false">Cancel</el-button>
16
- <el-button type="primary" @click="dialogVisible = false">Confirm</el-button>
17
- </span>
18
- </template>
19
- </el-dialog>
20
- </div>
21
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
22
- <p class="text-xs">
23
- <code>&lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
24
- </p>
25
- </div>
26
- </section>
27
- </div>
28
- </template>
29
-
30
- <script>
31
- import { defineComponent } from 'vue';
32
-
33
- export default defineComponent({
34
- data() {
35
- return {
36
- dialogVisible: false,
37
- };
38
- },
39
- methods: {
40
- handleClose(done) {
41
- this.$confirm('Are you sure to close this dialog?')
42
- .then((_) => {
43
- done();
44
- })
45
- .catch((_) => {});
46
- },
47
- },
48
- });
49
- </script>
@@ -1,137 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <h1>Form</h1>
4
-
5
- <section class="flex gap-8 flex-col">
6
- <h2>Etiket Konumu: {{ labelPosition }}</h2>
7
- <div class="p-4 border-l-4 border-info-600 bg-info-100">
8
- Birkaç custom class ekledim. <b>`class='bordered'`</b> eklerseniz &lt;el-form class="bordered"> itemlar arasında border çıkar, `info` derseniz
9
- info tipinde bir forma dönüşür (title ve content daha soft renkte oluşur, ayrıca content sağa yaslı olur), `info left` eklerseniz itemlar sola
10
- yaslı çıkar.
11
- </div>
12
- <el-radio-group v-model="labelPosition" size="small">
13
- <el-radio-button label="left">Sol</el-radio-button>
14
- <el-radio-button label="right">Sağ</el-radio-button>
15
- <el-radio-button label="top">Üst</el-radio-button>
16
- </el-radio-group>
17
- <p class="p-lg-c">Form elemanlarının etiketlerinin konumunu belirlemek için kullanılır. Etiketler sol, sağ veya üst tarafında olabilir.</p>
18
- <div class="p-4 border-l-4 border-info-600 bg-info-100">
19
- <p class="text-xs">
20
- <code>
21
- &lt;el-form :model="sizeForm" label-width="120px" label-position="{{ labelPosition }}">&lt;el-form-item label="Title">&lt;el-input
22
- v-model="form.name">&lt;/el-input>&lt;/el-form-item>&lt;/el-form>
23
- </code>
24
- </p>
25
- </div>
26
- <div class="grid grid-flow-col">
27
- <el-form
28
- ref="ruleForm"
29
- :model="ruleForm"
30
- :rules="rules"
31
- label-width="150px"
32
- class="bordered info"
33
- :label-position="labelPosition"
34
- size="mini"
35
- >
36
- <el-form-item label="Activity name" prop="name">
37
- <el-input v-model="ruleForm.name" />
38
- </el-form-item>
39
- <el-form-item label="Activity zone" prop="region">
40
- <el-select v-model="ruleForm.region" placeholder="Activity zone">
41
- <el-option label="Zone one" value="shanghai" />
42
- <el-option label="Zone two" value="beijing" />
43
- </el-select>
44
- </el-form-item>
45
- <el-form-item label="Activity time" required class="form-content-left">
46
- <el-date-picker v-model="ruleForm.date1" type="date" placeholder="Pick a date" style="width: 100%" />
47
- <el-time-picker v-model="ruleForm.date2" placeholder="Pick a time" style="width: 100%" />
48
- </el-form-item>
49
- <el-form-item label="Instant delivery" prop="delivery">
50
- <el-switch v-model="ruleForm.delivery" />
51
- </el-form-item>
52
- <el-form-item label="Activity type" prop="type">
53
- <el-checkbox-group v-model="ruleForm.type">
54
- <el-checkbox label="Online activities" name="type" />
55
- <el-checkbox label="Promotion activities" name="type" />
56
- <el-checkbox label="Offline activities" name="type" />
57
- <el-checkbox label="Simple brand exposure" name="type" />
58
- </el-checkbox-group>
59
- </el-form-item>
60
- <el-form-item label="Resources" prop="resource">
61
- <el-radio-group v-model="ruleForm.resource">
62
- <el-radio label="Sponsorship" />
63
- <el-radio label="Venue" />
64
- </el-radio-group>
65
- </el-form-item>
66
- <el-form-item label="Activity form" prop="desc">
67
- <el-input v-model="ruleForm.desc" type="textarea" />
68
- </el-form-item>
69
- <el-form-item class="form-content-left">
70
- <el-button type="primary" @click="submitForm('ruleForm')">Create</el-button>
71
- <el-button @click="resetForm('ruleForm')">Reset</el-button>
72
- </el-form-item>
73
- </el-form>
74
- </div>
75
- </section>
76
- </div>
77
- </template>
78
- <script lang="ts">
79
- import { defineComponent } from 'vue';
80
-
81
- const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
82
-
83
- export default defineComponent({
84
- data() {
85
- return {
86
- labelPosition: 'right',
87
- count: '9',
88
- form: {
89
- name: '',
90
- region: '',
91
- date1: '',
92
- date2: '',
93
- delivery: false,
94
- type: [],
95
- resource: '',
96
- },
97
- ruleForm: {
98
- name: '',
99
- region: '',
100
- date1: '',
101
- date2: '',
102
- delivery: false,
103
- type: [],
104
- resource: '',
105
- desc: '',
106
- },
107
- rules: {
108
- name: [
109
- { required: true, message: 'Please input Activity name', trigger: 'blur' },
110
- { min: 3, max: 5, message: 'Length should be 3 to 5', trigger: 'blur' },
111
- ],
112
- region: [{ required: true, message: 'Please select Activity zone', trigger: 'change' }],
113
- date1: [{ type: 'date', required: true, message: 'Please pick a date', trigger: 'change' }],
114
- date2: [{ type: 'date', required: true, message: 'Please pick a time', trigger: 'change' }],
115
- type: [{ type: 'array', required: true, message: 'Please select at least one activity type', trigger: 'change' }],
116
- resource: [{ required: true, message: 'Please select activity resource', trigger: 'change' }],
117
- desc: [{ required: true, message: 'Please input activity form', trigger: 'blur' }],
118
- },
119
- };
120
- },
121
- methods: {
122
- showAgreementDialog(type: string) {
123
- console.log('agreement: ', type);
124
- },
125
- submit() {},
126
- onSubmit() {
127
- console.log('submit!');
128
- },
129
- submitForm(formName: any) {
130
- console.log('submit');
131
- },
132
- resetForm(formName: any): void {
133
- console.log('reset');
134
- },
135
- },
136
- });
137
- </script>
@@ -1,127 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Custom Tag</h1>
5
- <p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
6
- <div class="flex gap-4">
7
- <div class="el-custom-tag">
8
- Ahmet Polat MacBook Pro, Ahmet Fatih Sez...
9
- <span class="suffix">23</span>
10
- </div>
11
-
12
- <div class="el-custom-tag">
13
- Ahmet Polat MacBook Pro, Ahmet Fatih Sez...
14
- <span class="suffix">23</span>
15
- </div>
16
- </div>
17
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
18
- <p class="text-xs">
19
- <code>
20
- &lt;div class=&quot;el-custom-tag&quot;&gt;Ahmet Polat MacBook Pro, Ahmet Fatih Sez...&lt;span
21
- class=&quot;suffix&quot;&gt;23&lt;/span&gt;&lt;/div&gt;
22
- </code>
23
- </p>
24
- </div>
25
- </section>
26
-
27
- <section>
28
- <h1>Basic</h1>
29
- <p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
30
- <div class="flex gap-4">
31
- <div class="el-information">
32
- <div class="title">Text</div>
33
- <div class="description">Description</div>
34
- </div>
35
-
36
- <div class="el-information vertical">
37
- <div class="title">Text</div>
38
- <div class="description">Description</div>
39
- </div>
40
-
41
- <div class="el-information">
42
- <div class="title">Text</div>
43
- <div class="description">Description</div>
44
- </div>
45
-
46
- <div class="el-information">
47
- <div class="title">Text</div>
48
- <div class="description">Description</div>
49
- </div>
50
- </div>
51
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
52
- <p class="text-xs">
53
- <code>
54
- &lt;div class=&quot;information&quot;&gt;&lt;div class=&quot;title&quot;&gt;Text&lt;/div&gt;&lt;div
55
- class=&quot;description&quot;&gt;Description&lt;/div&gt;&lt;/div&gt;
56
- </code>
57
- </p>
58
- </div>
59
- </section>
60
- </div>
61
- </template>
62
- <script>
63
- import { defineComponent } from 'vue';
64
-
65
- export default defineComponent({
66
- name: 'TimusButtonSample',
67
- data() {
68
- return {
69
- value1: true,
70
- value2: true,
71
- };
72
- },
73
- computed: {
74
- gridSize() {
75
- const grids = {
76
- 5: 'grid-cols-5',
77
- 6: 'grid-cols-6',
78
- 7: 'grid-cols-7',
79
- 8: 'grid-cols-8',
80
- };
81
-
82
- return grids;
83
- },
84
- },
85
- mounted() {
86
- this.links = this.loadAll();
87
- },
88
- methods: {
89
- querySearch(queryString, cb) {
90
- const { links } = this;
91
- const results = queryString ? links.filter(this.createFilter(queryString)) : links;
92
-
93
- // call callback function to return suggestions
94
- cb(results);
95
- },
96
- querySearchAsync(queryString, cb) {
97
- const { links } = this;
98
- const results = queryString ? links.filter(this.createFilter(queryString)) : links;
99
-
100
- clearTimeout(this.timeout);
101
- this.timeout = setTimeout(() => {
102
- cb(results);
103
- }, 3000 * Math.random());
104
- },
105
- createFilter(queryString) {
106
- return (link) => link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
107
- },
108
- loadAll() {
109
- return [
110
- { value: 'vue', link: 'https://github.com/vuejs/vue' },
111
- { value: 'element', link: 'https://github.com/ElemeFE/element' },
112
- { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
113
- { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
114
- { value: 'vuex', link: 'https://github.com/vuejs/vuex' },
115
- { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
116
- { value: 'babel', link: 'https://github.com/babel/babel' },
117
- ];
118
- },
119
- handleSelect(item) {
120
- console.log(item);
121
- },
122
- handleIconClick(ev) {
123
- console.log(ev);
124
- },
125
- },
126
- });
127
- </script>
@@ -1,74 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Controls Position</h1>
5
- <p class="p-lg my-6">Bu örnek, farklı boyutlarda ve konfigürasyonlarda bir sayı giriş bileşeni olan el-input-number'ı göstermektedir.</p>
6
- <div class="grid grid-flow-col auto-cols-max gap-4 items-center">
7
- <el-input-number v-model="input" controls-position="right" disabled @change="handleChange" />
8
- <el-input-number v-model="input" size="large" controls-position="right" @change="handleChange" />
9
- <el-input-number v-model="input" size="medium" controls-position="right" @change="handleChange" />
10
- <el-input-number v-model="input" size="small" controls-position="right" @change="handleChange" />
11
- <el-input-number v-model="input" size="mini" controls-position="right" @change="handleChange" />
12
- </div>
13
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
14
- <p class="text-xs">
15
- <code>
16
- &lt;el-input-number v-model=&quot;input&quot; size=&quot;large&quot; controls-position=&quot;right&quot;
17
- @change=&quot;handleChange&quot;&gt;&lt;/el-input-number&gt;
18
- </code>
19
- </p>
20
- </div>
21
- </section>
22
-
23
- <section>
24
- <h1>Basic usage</h1>
25
- <p class="p-lg my-6">Bu örnek, minimum ve maksimum değerlerle sınırlı bir el-input-number bileşenini göstermektedir.</p>
26
- <div class="grid grid-flow-col auto-cols-max gap-4 items-center">
27
- <el-input-number v-model="num" :min="1" :max="10000" disabled @change="handleChange" />
28
- <el-input-number v-model="num" size="large" :min="1" :max="10000" @change="handleChange" />
29
- <el-input-number v-model="num" size="medium" :min="1" :max="10000" @change="handleChange" />
30
- <el-input-number v-model="num" size="small" :min="1" :max="10000" @change="handleChange" />
31
- <el-input-number v-model="num" size="mini" :min="1" :max="10000" @change="handleChange" />
32
- </div>
33
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
34
- <p class="text-xs">
35
- <code>
36
- &lt;el-input-number v-model=&quot;num&quot; @change=&quot;handleChange&quot; :min=&quot;1&quot;
37
- :max=&quot;10000&quot;&gt;&lt;/el-input-number&gt;
38
- </code>
39
- </p>
40
- </div>
41
- </section>
42
- </div>
43
- </template>
44
-
45
- <script>
46
- import { defineComponent } from 'vue';
47
-
48
- export default defineComponent({
49
- name: 'TimusButtonSample',
50
- data() {
51
- return {
52
- input: 3532,
53
- num: 213,
54
- };
55
- },
56
- computed: {
57
- gridSize() {
58
- const grids = {
59
- 5: 'grid-cols-5',
60
- 6: 'grid-cols-6',
61
- 7: 'grid-cols-7',
62
- 8: 'grid-cols-8',
63
- };
64
-
65
- return grids;
66
- },
67
- },
68
- methods: {
69
- handleChange(value) {
70
- console.log(value);
71
- },
72
- },
73
- });
74
- </script>