@timus-networks/theme 1.0.183 → 2.0.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 (226) 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 +46 -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.d.ts +0 -10
  50. package/components-js/interfaces.js +0 -1
  51. package/components-js/utils.d.ts +0 -6
  52. package/components-js/utils.js +0 -17
  53. package/components-ts/ThemeAlert.vue +0 -78
  54. package/components-ts/ThemeAvatar.vue +0 -55
  55. package/components-ts/ThemeBadge.vue +0 -106
  56. package/components-ts/ThemeBreadcrumb.vue +0 -44
  57. package/components-ts/ThemeButtons.vue +0 -148
  58. package/components-ts/ThemeCascader.vue +0 -390
  59. package/components-ts/ThemeCheckbox.vue +0 -202
  60. package/components-ts/ThemeCollapse.vue +0 -73
  61. package/components-ts/ThemeDialog.vue +0 -49
  62. package/components-ts/ThemeForm.vue +0 -137
  63. package/components-ts/ThemeInformation.vue +0 -127
  64. package/components-ts/ThemeInputNumbers.vue +0 -74
  65. package/components-ts/ThemeInputs.vue +0 -316
  66. package/components-ts/ThemeLink.vue +0 -110
  67. package/components-ts/ThemeLogo.vue +0 -57
  68. package/components-ts/ThemeMessage.vue +0 -55
  69. package/components-ts/ThemeMessageBox.vue +0 -47
  70. package/components-ts/ThemePopover.vue +0 -557
  71. package/components-ts/ThemeRadio.vue +0 -169
  72. package/components-ts/ThemeSelect.vue +0 -237
  73. package/components-ts/ThemeSidebar.vue +0 -277
  74. package/components-ts/ThemeTable.vue +0 -305
  75. package/components-ts/ThemeTag.vue +0 -145
  76. package/components-ts/ThemeToggle.vue +0 -123
  77. package/components-ts/ThemeTooltip.vue +0 -191
  78. package/components-ts/ThemeTypo.vue +0 -65
  79. package/components-ts/ThemeUpload.vue +0 -92
  80. package/components-ts/TimusSamples.vue +0 -54
  81. package/components-ts/exporter.js +0 -19
  82. package/components-ts/interfaces.ts +0 -11
  83. package/components-ts/utils.ts +0 -20
  84. package/convert-js.js +0 -112
  85. package/convert-sass.js +0 -26
  86. package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
  87. package/fonts/poppins-font-face/files/Poppins-Black.svg +0 -3099
  88. package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
  89. package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
  90. package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
  91. package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
  92. package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
  93. package/fonts/poppins-font-face/files/Poppins-Bold.svg +0 -3131
  94. package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
  95. package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
  96. package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
  97. package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
  98. package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
  99. package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +0 -3120
  100. package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
  101. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
  102. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
  103. package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
  104. package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
  105. package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +0 -3245
  106. package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
  107. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
  108. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
  109. package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
  110. package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
  111. package/fonts/poppins-font-face/files/Poppins-Italic.svg +0 -3414
  112. package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
  113. package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
  114. package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
  115. package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
  116. package/fonts/poppins-font-face/files/Poppins-Light.svg +0 -3244
  117. package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
  118. package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
  119. package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
  120. package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
  121. package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
  122. package/fonts/poppins-font-face/files/Poppins-Medium.svg +0 -3190
  123. package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
  124. package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
  125. package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
  126. package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
  127. package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
  128. package/fonts/poppins-font-face/files/Poppins-Regular.svg +0 -3213
  129. package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
  130. package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
  131. package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
  132. package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
  133. package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +0 -3174
  134. package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
  135. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
  136. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
  137. package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
  138. package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
  139. package/fonts/poppins-font-face/files/Poppins-Thin.svg +0 -3266
  140. package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
  141. package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
  142. package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
  143. package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
  144. package/fonts/poppins-font-face/stylesheet.css +0 -81
  145. package/images/applications/apple.png +0 -0
  146. package/images/applications/apple_icloud.png +0 -0
  147. package/images/applications/apple_itunes.png +0 -0
  148. package/images/applications/apple_store.png +0 -0
  149. package/images/applications/bloomberg.png +0 -0
  150. package/images/applications/chrome.png +0 -0
  151. package/images/applications/csgo.png +0 -0
  152. package/images/applications/dns.png +0 -0
  153. package/images/applications/dropbox.png +0 -0
  154. package/images/applications/evil.png +0 -0
  155. package/images/applications/facebook-messenger.png +0 -0
  156. package/images/applications/facebook.png +0 -0
  157. package/images/applications/ftp.png +0 -0
  158. package/images/applications/gmail.png +0 -0
  159. package/images/applications/google.png +0 -0
  160. package/images/applications/google_maps.png +0 -0
  161. package/images/applications/instagram.png +0 -0
  162. package/images/applications/linkedin.svg +0 -5
  163. package/images/applications/messenger.png +0 -0
  164. package/images/applications/mysql.png +0 -0
  165. package/images/applications/netflix.png +0 -0
  166. package/images/applications/nintendo.png +0 -0
  167. package/images/applications/sap.png +0 -0
  168. package/images/applications/skype.png +0 -0
  169. package/images/applications/slack.png +0 -0
  170. package/images/applications/smtp.png +0 -0
  171. package/images/applications/snapchat.png +0 -0
  172. package/images/applications/spotify.png +0 -0
  173. package/images/applications/ssh.png +0 -0
  174. package/images/applications/teamspeak.png +0 -0
  175. package/images/applications/tiktok.png +0 -0
  176. package/images/applications/twitch.png +0 -0
  177. package/images/applications/twitter.png +0 -0
  178. package/images/applications/ubuntuone.png +0 -0
  179. package/images/applications/utorrent.png +0 -0
  180. package/images/applications/website.png +0 -0
  181. package/images/applications/whatsapp.png +0 -0
  182. package/images/applications/windows-update.png +0 -0
  183. package/images/applications/youtube.png +0 -0
  184. package/images/backgrounds/login-icon.png +0 -0
  185. package/images/backgrounds/login.jpg +0 -0
  186. package/images/backgrounds/login.png +0 -0
  187. package/images/cards/amex.svg +0 -20
  188. package/images/cards/default.svg +0 -18
  189. package/images/cards/dina.svg +0 -12
  190. package/images/cards/diners.svg +0 -30
  191. package/images/cards/discover.svg +0 -28
  192. package/images/cards/eftpos.svg +0 -21
  193. package/images/cards/jcb.svg +0 -41
  194. package/images/cards/mastercard.svg +0 -5
  195. package/images/cards/unionpay.svg +0 -6
  196. package/images/cards/visa.svg +0 -3
  197. package/images/devices/os-android.png +0 -0
  198. package/images/devices/os-android.svg +0 -6
  199. package/images/devices/os-apple.svg +0 -4
  200. package/images/devices/os-default.svg +0 -5
  201. package/images/devices/os-ios.png +0 -0
  202. package/images/devices/os-ios.svg +0 -4
  203. package/images/devices/os-linux-debian.png +0 -0
  204. package/images/devices/os-linux-ubuntu.png +0 -0
  205. package/images/devices/os-linux.svg +0 -3
  206. package/images/devices/os-osx.png +0 -0
  207. package/images/devices/os-unknown.png +0 -0
  208. package/images/devices/os-windows.png +0 -0
  209. package/images/devices/os-windows.svg +0 -3
  210. package/images/devices/type-laptop-ubuntu.png +0 -0
  211. package/images/devices/type-laptop.png +0 -0
  212. package/images/devices/type-printer.png +0 -0
  213. package/images/devices/type-switch-cisco.png +0 -0
  214. package/images/logos/timus-favicon.png +0 -0
  215. package/images/logos/timus-icon.svg +0 -17
  216. package/images/logos/timus-logo-manager.svg +0 -29
  217. package/images/logos/timus-logo-partner.svg +0 -35
  218. package/images/logos/timus-logo.svg +0 -22
  219. package/index.d.ts +0 -6
  220. package/loader.js +0 -50
  221. package/module.js +0 -77
  222. package/output/main.css +0 -1
  223. package/plugins/html-to-string.js +0 -36
  224. package/plugins/js-components-installer.js +0 -22
  225. package/plugins/theme-provider.js +0 -72
  226. package/plugins/ts-components-installer.js +0 -22
@@ -1,145 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Basic</h1>
5
- <p class="p-lg my-6">
6
- Use the type attribute to define Tag's type. In addition, the color attribute can be used to set the background color of the Tag.
7
- </p>
8
- <div class="grid grid-flow-col auto-cols-max gap-4">
9
- <el-tag :disable-transitions="true">default</el-tag>
10
- <el-tag type="success">success</el-tag>
11
- <el-tag type="info">info</el-tag>
12
- <el-tag type="warning">warning</el-tag>
13
- <el-tag type="danger">danger</el-tag>
14
- <el-tag type="gray">gray</el-tag>
15
- <el-tag type="secondary">secondary</el-tag>
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>&lt;el-tag type="gray" size="medium"&gt;content&lt;/el-tag&gt;</code>
20
- </p>
21
- </div>
22
- </section>
23
-
24
- <section>
25
- <h1>Removable</h1>
26
- <p class="p-lg my-6">
27
- Use the type attribute to define Tag's type. In addition, the color attribute can be used to set the background color of the Tag.
28
- </p>
29
- <div class="grid grid-flow-col auto-cols-max gap-4">
30
- <el-tag v-for="tag in tags" :key="tag.name" closable :type="tag.type">
31
- {{ tag.name }}
32
- </el-tag>
33
- </div>
34
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
35
- <p class="text-xs">
36
- <code>&lt;el-tag&gt;content&lt;/el-tag&gt;</code>
37
- </p>
38
- </div>
39
- </section>
40
-
41
- <section>
42
- <h1>Sizes</h1>
43
- <p class="p-lg my-6">Besides default size, Tag component provides three additional sizes for you to choose among different scenarios.</p>
44
- <div class="grid grid-flow-col auto-cols-max gap-4">
45
- <el-tag>Default</el-tag>
46
- <el-tag size="large">Large</el-tag>
47
- <el-tag size="medium">Medium</el-tag>
48
- <el-tag size="small">Small</el-tag>
49
- <el-tag size="mini">Mini</el-tag>
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>&lt;el-tag size="medium"&gt;content&lt;/el-tag&gt;</code>
54
- </p>
55
- </div>
56
- </section>
57
-
58
- <section>
59
- <h1>Edit Dynamically</h1>
60
- <p class="p-lg my-6">You can use the close event to add and remove tag dynamically.</p>
61
- <div class="grid grid-flow-col auto-cols-max gap-4">
62
- <el-tag v-for="tag in dynamicTags" :key="tag" closable :disable-transitions="true" size="mini" @close="handleClose(tag)">
63
- {{ tag }}
64
- </el-tag>
65
- <el-input
66
- v-if="inputVisible"
67
- ref="saveTagInput"
68
- v-model="inputValue"
69
- class="input-new-tag"
70
- size="mini"
71
- @keyup.enter="handleInputConfirm"
72
- @blur="handleInputConfirm"
73
- />
74
- <el-button v-else class="button-new-tag" size="small" @click="showInput">+ New Tag</el-button>
75
- </div>
76
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
77
- <p class="text-xs">
78
- <code>&lt;el-tag&gt;content&lt;/el-tag&gt;</code>
79
- </p>
80
- </div>
81
- </section>
82
- </div>
83
- </template>
84
- <script>
85
- import { defineComponent } from 'vue';
86
-
87
- export default defineComponent({
88
- name: 'TimusButtonSample',
89
- data() {
90
- return {
91
- dynamicTags: ['Tag 1', 'Tag 2', 'Tag 3'],
92
- inputVisible: false,
93
- inputValue: '',
94
- tags: [
95
- { name: 'Tag 1', type: '' },
96
- { name: 'Tag 2', type: 'success' },
97
- { name: 'Tag 3', type: 'info' },
98
- { name: 'Tag 4', type: 'warning' },
99
- { name: 'Tag 5', type: 'danger' },
100
- ],
101
- items: [
102
- { type: '', label: 'Tag 1' },
103
- { type: 'success', label: 'Tag 2' },
104
- { type: 'info', label: 'Tag 3' },
105
- { type: 'danger', label: 'Tag 4' },
106
- { type: 'warning', label: 'Tag 5' },
107
- ],
108
- };
109
- },
110
- computed: {
111
- gridSize() {
112
- const grids = {
113
- 5: 'grid-cols-5',
114
- 6: 'grid-cols-6',
115
- 7: 'grid-cols-7',
116
- 8: 'grid-cols-8',
117
- };
118
-
119
- return grids;
120
- },
121
- },
122
- methods: {
123
- handleClose(tag) {
124
- this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
125
- },
126
-
127
- showInput() {
128
- this.inputVisible = true;
129
- this.$nextTick((_) => {
130
- this.$refs.saveTagInput.$refs.input.focus();
131
- });
132
- },
133
-
134
- handleInputConfirm() {
135
- const { inputValue } = this;
136
-
137
- if (inputValue) {
138
- this.dynamicTags.push(inputValue);
139
- }
140
- this.inputVisible = false;
141
- this.inputValue = '';
142
- },
143
- },
144
- });
145
- </script>
@@ -1,123 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Basic</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="grid grid-flow-col auto-cols-max gap-4">
7
- <el-switch v-model="value1" />
8
- </div>
9
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
10
- <p class="text-xs">
11
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
12
- </p>
13
- </div>
14
- </section>
15
-
16
- <section>
17
- <h1>Custom Color</h1>
18
- <p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
19
- <div class="grid grid-flow-col auto-cols-max gap-4">
20
- <el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949" />
21
- </div>
22
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
23
- <p class="text-xs">
24
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
25
- </p>
26
- </div>
27
- </section>
28
-
29
- <section>
30
- <h1>Text description</h1>
31
- <p class="p-lg my-6">You can add active-text and inactive-text attribute to show texts.</p>
32
- <div class="grid grid-flow-col auto-cols-max gap-4">
33
- <el-switch v-model="value1" active-text="Pay by month" inactive-text="Pay by year" />
34
- </div>
35
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
36
- <p class="text-xs">
37
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
38
- </p>
39
- </div>
40
- </section>
41
-
42
- <section>
43
- <h1>Disabled</h1>
44
- <p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
45
- <div class="grid grid-flow-col auto-cols-max gap-4">
46
- <el-switch v-model="value1" disabled inactive-text="Pay by year" />
47
- <el-switch v-model="value2" disabled inactive-text="Pay by year" />
48
- </div>
49
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
50
- <p class="text-xs">
51
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
52
- </p>
53
- </div>
54
- </section>
55
- </div>
56
- </template>
57
-
58
- <script>
59
- import { defineComponent } from 'vue';
60
-
61
- export default defineComponent({
62
- name: 'TimusButtonSample',
63
- data() {
64
- return {
65
- value1: true,
66
- value2: true,
67
- };
68
- },
69
- computed: {
70
- gridSize() {
71
- const grids = {
72
- 5: 'grid-cols-5',
73
- 6: 'grid-cols-6',
74
- 7: 'grid-cols-7',
75
- 8: 'grid-cols-8',
76
- };
77
-
78
- return grids;
79
- },
80
- },
81
- mounted() {
82
- this.links = this.loadAll();
83
- },
84
- methods: {
85
- querySearch(queryString, cb) {
86
- const { links } = this;
87
- const results = queryString ? links.filter(this.createFilter(queryString)) : links;
88
-
89
- // call callback function to return suggestions
90
- cb(results);
91
- },
92
- querySearchAsync(queryString, cb) {
93
- const { links } = this;
94
- const results = queryString ? links.filter(this.createFilter(queryString)) : links;
95
-
96
- clearTimeout(this.timeout);
97
- this.timeout = setTimeout(() => {
98
- cb(results);
99
- }, 3000 * Math.random());
100
- },
101
- createFilter(queryString) {
102
- return (link) => link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
103
- },
104
- loadAll() {
105
- return [
106
- { value: 'vue', link: 'https://github.com/vuejs/vue' },
107
- { value: 'element', link: 'https://github.com/ElemeFE/element' },
108
- { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
109
- { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
110
- { value: 'vuex', link: 'https://github.com/vuejs/vuex' },
111
- { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
112
- { value: 'babel', link: 'https://github.com/babel/babel' },
113
- ];
114
- },
115
- handleSelect(item) {
116
- console.log(item);
117
- },
118
- handleIconClick(ev) {
119
- console.log(ev);
120
- },
121
- },
122
- });
123
- </script>
@@ -1,191 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Tooltip</h1>
5
- <p class="p-lg-c my-6">
6
- Bu örnek, Element UI tarafından sağlanan <code>el-table</code> bileşenini kullanarak bir veri tablosu oluşturmanın temel bir örneğini
7
- göstermektedir. `table-container` ile dışarıya border verildiğini unutmamanızı tavsiye ediyoruz.
8
- </p>
9
- <div class="flex flex-wrap gap-4">
10
- <el-tooltip class="item h-24 outline" effect="dark" content="Top Left prompts info" placement="top-start">
11
- <el-button size="large">top-start</el-button>
12
- </el-tooltip>
13
- <el-tooltip class="item h-24 outline" effect="dark" content="Top Center prompts info" placement="top">
14
- <el-button size="large">top</el-button>
15
- </el-tooltip>
16
- <el-tooltip class="item h-24 outline" effect="dark" content="Top Right prompts info" placement="top-end">
17
- <el-button size="large">top-end</el-button>
18
- </el-tooltip>
19
-
20
- <el-tooltip class="item h-24 outline" effect="dark" content="Left Top prompts info" placement="left-start">
21
- <el-button size="large">left-start</el-button>
22
- </el-tooltip>
23
- <el-tooltip class="item h-24 outline" effect="dark" content="Left Center prompts info" placement="left">
24
- <el-button size="large">left</el-button>
25
- </el-tooltip>
26
- <el-tooltip class="item h-24 outline" effect="dark" content="Left Bottom prompts info" placement="left-end">
27
- <el-button size="large">left-end</el-button>
28
- </el-tooltip>
29
-
30
- <el-tooltip class="item h-24 outline" effect="dark" content="Right Top prompts info" placement="right-start">
31
- <el-button size="large">right-start</el-button>
32
- </el-tooltip>
33
- <el-tooltip class="item h-24 outline" effect="dark" content="Right Center prompts info" placement="right">
34
- <el-button size="large">right</el-button>
35
- </el-tooltip>
36
- <el-tooltip class="item h-24 outline" effect="dark" content="Right Bottom prompts info" placement="right-end">
37
- <el-button size="large">right-end</el-button>
38
- </el-tooltip>
39
-
40
- <el-tooltip class="item h-24 outline" effect="dark" content="Bottom Left prompts info" placement="bottom-start">
41
- <el-button size="large">bottom-start</el-button>
42
- </el-tooltip>
43
- <el-tooltip class="item h-24 outline" effect="dark" content="Bottom Center prompts info" placement="bottom">
44
- <el-button size="large">bottom</el-button>
45
- </el-tooltip>
46
- <el-tooltip class="item h-24 outline" effect="dark" content="Bottom Right prompts info" placement="bottom-end">
47
- <el-button size="large">bottom-end</el-button>
48
- </el-tooltip>
49
- </div>
50
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
51
- <p class="text-xs">
52
- <code>
53
- &lt;div class="table-container">&lt;el-table :data="tableData" :default-sort="{ prop: 'date', order: 'descending'
54
- }"&gt;&lt;/el-table&gt;&lt;/div&gt;
55
- </code>
56
- </p>
57
- </div>
58
- </section>
59
- </div>
60
- </template>
61
- <script>
62
- import { defineComponent } from 'vue';
63
-
64
- export default defineComponent({
65
- name: 'ThemeTable',
66
- data() {
67
- return {
68
- multipleSelection: [],
69
- currentPage1: 5,
70
- currentPage2: 5,
71
- currentPage3: 5,
72
- currentPage4: 4,
73
- tableData: [
74
- {
75
- date: '2016-05-03',
76
- name: 'Tom',
77
- state: 'California',
78
- city: 'Los Angeles',
79
- address: 'No. 189, Grove St, Los Angeles',
80
- zip: 'CA 90036',
81
- tag: 'Home',
82
- },
83
- {
84
- date: '2016-05-02',
85
- name: 'Tom',
86
- state: 'California',
87
- city: 'Los Angeles',
88
- address: 'No. 189, Grove St, Los Angeles',
89
- zip: 'CA 90036',
90
- tag: 'Office',
91
- },
92
- {
93
- date: '2016-05-04',
94
- name: 'Tom',
95
- state: 'California',
96
- city: 'Los Angeles',
97
- address: 'No. 189, Grove St, Los Angeles',
98
- zip: 'CA 90036',
99
- tag: 'Home',
100
- },
101
- {
102
- date: '2016-05-01',
103
- name: 'Tom',
104
- state: 'California',
105
- city: 'Los Angeles',
106
- address: 'No. 189, Grove St, Los Angeles',
107
- zip: 'CA 90036',
108
- tag: 'Office',
109
- },
110
- {
111
- date: '2016-05-08',
112
- name: 'Tom',
113
- state: 'California',
114
- city: 'Los Angeles',
115
- address: 'No. 189, Grove St, Los Angeles',
116
- zip: 'CA 90036',
117
- tag: 'Office',
118
- },
119
- {
120
- date: '2016-05-06',
121
- name: 'Tom',
122
- state: 'California',
123
- city: 'Los Angeles',
124
- address: 'No. 189, Grove St, Los Angeles',
125
- zip: 'CA 90036',
126
- tag: 'Home',
127
- },
128
- {
129
- date: '2016-05-07',
130
- name: 'Tom',
131
- state: 'California',
132
- city: 'Los Angeles',
133
- address: 'No. 189, Grove St, Los Angeles',
134
- zip: 'CA 90036',
135
- tag: 'Office',
136
- },
137
- ],
138
- };
139
- },
140
- computed: {
141
- gridSize() {
142
- const grids = {
143
- 5: 'grid-cols-5',
144
- 6: 'grid-cols-6',
145
- 7: 'grid-cols-7',
146
- 8: 'grid-cols-8',
147
- };
148
-
149
- return grids;
150
- },
151
- },
152
- methods: {
153
- toggleSelection(rows) {
154
- if (rows) {
155
- rows.forEach((row) => {
156
- this.$refs.multipleTable.toggleRowSelection(row);
157
- });
158
- } else {
159
- this.$refs.multipleTable.clearSelection();
160
- }
161
- },
162
- handleSelectionChange(val) {
163
- this.multipleSelection = val;
164
- },
165
- resetDateFilter() {
166
- this.$refs.filterTable.clearFilter('date');
167
- },
168
- clearFilter() {
169
- this.$refs.filterTable.clearFilter();
170
- },
171
- formatter(row, column) {
172
- return row.address;
173
- },
174
- filterTag(value, row) {
175
- return row.tag === value;
176
- },
177
- filterHandler(value, row, column) {
178
- console.log(row, column, value);
179
- const { property } = column;
180
-
181
- return row[property] === value;
182
- },
183
- handleSizeChange(val) {
184
- console.log(`${val} items per page`);
185
- },
186
- handleCurrentChange(val) {
187
- console.log(`current page: ${val}`);
188
- },
189
- },
190
- });
191
- </script>
@@ -1,65 +0,0 @@
1
- <template>
2
- <div class="mb-16">
3
- <h1 class="mt-12">Headins</h1>
4
- <p class="p-lg my-6">Aşağıda heading örnekleri yer almaktadır.</p>
5
-
6
- <div class="grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 gap-4 text-gray-500">
7
- <div class="h2 text-gray-600">Class Name</div>
8
- <div class="h2 text-gray-600">FontSize</div>
9
- <div class="h2 text-gray-600 hidden md:block">LineHeight</div>
10
- <template v-for="(item, index) in headingClasses">
11
- <component :is="item.name" :key="item.name + '-heading-' + index + 1" class="flex items-center text-gray-800">{{ item.name }}</component>
12
- <div :key="item.name + '-heading-' + index + 2" class="flex items-center">{{ item.fontSize }}</div>
13
- <div :key="item.name + '-heading-' + index + 3" class="flex items-center hidden md:block">{{ item.lineHeight }}</div>
14
- </template>
15
- </div>
16
-
17
- <h1 class="mt-12">Others</h1>
18
- <p class="p-lg my-6">Aşağıda paragraflar ve diğer html elementleri için kullanılabilecek ön tanımlı class nameler yer almaktadır.</p>
19
-
20
- <div class="grid grid-cols-2 sm:grid-cols-2 md:grid-cols-3 gap-4 text-gray-500">
21
- <div class="h2 text-gray-600">Class Name</div>
22
- <div class="h2 text-gray-600">FontSize</div>
23
- <div class="h2 text-gray-600 hidden md:block">LineHeight</div>
24
- <template v-for="(item, index) in helperClasses">
25
- <div :key="item.name + '-helper-' + index + 1" class="flex items-center text-gray-800" :class="item.name">{{ item.name }}</div>
26
- <div :key="item.name + '-helper-' + index + 2" class="flex items-center">{{ item.fontSize }}</div>
27
- <div :key="item.name + '-helper-' + index + 3" class="flex items-center hidden md:block">{{ item.lineHeight }}</div>
28
- </template>
29
- </div>
30
- </div>
31
- </template>
32
-
33
- <script>
34
- import { defineComponent } from 'vue';
35
-
36
- export default defineComponent({
37
- name: 'TimusTypoSample',
38
- data() {
39
- return {
40
- headingClasses: [
41
- { name: 'h1', fontSize: '22px', lineHeight: '30px' },
42
- { name: 'h2', fontSize: '20px', lineHeight: '24px' },
43
- { name: 'h3', fontSize: '18px', lineHeight: '22px' },
44
- { name: 'h4', fontSize: '14px', lineHeight: '18px' },
45
- { name: 'h5', fontSize: '12px', lineHeight: '16px' },
46
- { name: 'h6', fontSize: '10px', lineHeight: '14px' },
47
- ],
48
- helperClasses: [
49
- { name: 'p-lg', fontSize: '16px', lineHeight: '18px' },
50
- { name: 'p-md', fontSize: '14px', lineHeight: '16px' },
51
- { name: 'p-md-c', fontSize: '14px', lineHeight: '24px' },
52
- { name: 'p-sm', fontSize: '12px', lineHeight: '14px' },
53
- { name: 'p-xs', fontSize: '10px', lineHeight: '14px' },
54
- { name: 'p-xxs', fontSize: '8px', lineHeight: '10px' },
55
- { name: 'b-md', fontSize: '16px', lineHeight: '24px' },
56
- { name: 'b-lg', fontSize: '16px', lineHeight: '24px' },
57
- { name: 'b-sm', fontSize: '14px', lineHeight: '18px' },
58
- { name: 'b-md-u', fontSize: '16px', lineHeight: '24px' },
59
- { name: 'b-lg-u', fontSize: '16px', lineHeight: '24px' },
60
- { name: 'b-sm-u', fontSize: '14px', lineHeight: '18px' },
61
- ],
62
- };
63
- },
64
- });
65
- </script>
@@ -1,92 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Basic</h1>
5
- <p class="p-lg my-6">
6
- Use the type attribute to define Tag's type. In addition, the color attribute can be used to set the background color of the Tag.
7
- </p>
8
- <div class="grid grid-flow-col gap-4">
9
- <el-upload
10
- class="el-upload-container"
11
- drag
12
- action="https://jsonplaceholder.typicode.com/posts/"
13
- :on-preview="handlePreview"
14
- :on-remove="handleRemove"
15
- :file-list="fileList"
16
- multiple
17
- >
18
- <i class="el-icon-upload" />
19
- <!-- <img src="~/assets/images/upload-drop.svg" alt="upload" class="w-[56px] h-[56px]" /> -->
20
- <div class="el-upload__text">
21
- <span class="title">Drag CSV here</span>
22
- <span class="description">or click to browse (5MB Max)</span>
23
- </div>
24
- <div slot="tip" class="el-upload__tip">
25
- Category: Maximum 30 characters. Domain: Valid domain value (wildcard domains are acceptable).You can upload up to 1000 domains at a time.
26
- Categories that are not in the system will be created as new custom categories.
27
- </div>
28
- </el-upload>
29
- </div>
30
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
31
- <p class="text-xs">
32
- <code>
33
- &lt;el-upload class=&quot;el-upload-container&quot; drag multiple&gt;&lt;i class=&quot;el-icon-upload&quot;&gt;&lt;/i&gt;&lt;div
34
- class=&quot;el-upload__text&quot;&gt;&lt;span class=&quot;title&quot;&gt;Drop file here or&lt;/span&gt;&lt;span
35
- class=&quot;description&quot;&gt;click to upload&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;el-upload__tip&quot;
36
- slot=&quot;tip&quot;&gt;description&lt;/div&gt;&lt;/el-upload&gt;
37
- </code>
38
- </p>
39
- </div>
40
- </section>
41
- </div>
42
- </template>
43
-
44
- <script>
45
- import { defineComponent } from 'vue';
46
-
47
- export default defineComponent({
48
- name: 'TimusUpload',
49
- data() {
50
- return {
51
- imageUrl: '',
52
- fileList: [
53
- {
54
- name: 'food.jpeg',
55
- url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
56
- },
57
- {
58
- name: 'food2.jpeg',
59
- url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100',
60
- },
61
- ],
62
- };
63
- },
64
- methods: {
65
- handleAvatarSuccess(res, file) {
66
- this.imageUrl = URL.createObjectURL(file.raw);
67
- },
68
- handleChange(file, fileList) {
69
- this.fileList = fileList.slice(-3);
70
- },
71
- handleRemove(file, fileList) {
72
- console.log(file, fileList);
73
- },
74
- handlePreview(file) {
75
- console.log(file);
76
- },
77
- beforeAvatarUpload(file) {
78
- const isJPG = file.type === 'image/jpeg';
79
- const isLt2M = file.size / 1024 / 1024 < 2;
80
-
81
- if (!isJPG) {
82
- this.$message.error('Avatar picture must be JPG format!');
83
- }
84
- if (!isLt2M) {
85
- this.$message.error('Avatar picture size can not exceed 2MB!');
86
- }
87
-
88
- return isJPG && isLt2M;
89
- },
90
- },
91
- });
92
- </script>
@@ -1,54 +0,0 @@
1
- <template>
2
- <div class="container py-16">
3
- <el-tabs v-model="activeName" @tab-click="handleClick">
4
- <el-tab-pane label="Button" name="first"><ThemeButtons /></el-tab-pane>
5
- <el-tab-pane label="Typo" name="second"><ThemeTypo /></el-tab-pane>
6
- <el-tab-pane label="Input" name="third"><ThemeInputs /></el-tab-pane>
7
- <el-tab-pane label="Checkbox" name="fourth"><ThemeCheckbox /></el-tab-pane>
8
- <el-tab-pane label="Radio" name="five"><ThemeRadio /></el-tab-pane>
9
- <el-tab-pane label="Number" name="six"><ThemeInputNumbers /></el-tab-pane>
10
- <el-tab-pane label="Popover & Dropdown" name="seven"><ThemePopover /></el-tab-pane>
11
- <el-tab-pane label="Select" name="eight"><ThemeSelect /></el-tab-pane>
12
- <el-tab-pane label="Form" name="nine"><ThemeForm /></el-tab-pane>
13
- <el-tab-pane label="Link" name="ten"><ThemeLink /></el-tab-pane>
14
- <el-tab-pane label="Tag" name="eleven"><ThemeTag /></el-tab-pane>
15
- <el-tab-pane label="Switch" name="twelve"><ThemeToggle /></el-tab-pane>
16
- <el-tab-pane label="Table" name="thirteen"><ThemeTable /></el-tab-pane>
17
- <el-tab-pane label="Tooltip" name="fourteen"><ThemeTooltip /></el-tab-pane>
18
- <el-tab-pane label="Alert" name="fifteen"><ThemeAlert /></el-tab-pane>
19
- <el-tab-pane label="Cascader" name="sixteen"><ThemeCascader /></el-tab-pane>
20
- <el-tab-pane label="Badge" name="seventeen"><ThemeBadge /></el-tab-pane>
21
- <el-tab-pane label="Avatar" name="eighteen"><ThemeAvatar /></el-tab-pane>
22
- <el-tab-pane label="Logo" name="nineteen"><ThemeLogo /></el-tab-pane>
23
- <el-tab-pane label="Dialog" name="twenty"><ThemeDialog /></el-tab-pane>
24
- <el-tab-pane label="Sidebar" name="twenty-one"><ThemeSidebar /></el-tab-pane>
25
- <el-tab-pane label="Upload" name="twenty-two"><ThemeUpload /></el-tab-pane>
26
- <el-tab-pane label="MessageBox" name="twenty-three"><ThemeMessageBox /></el-tab-pane>
27
- <el-tab-pane label="Information" name="twenty-four"><ThemeInformation /></el-tab-pane>
28
- <el-tab-pane label="Collapse" name="twenty-five"><ThemeCollapse /></el-tab-pane>
29
- <el-tab-pane label="Breadcrumb" name="twenty-six"><ThemeBreadcrumb /></el-tab-pane>
30
- <el-tab-pane label="Message" name="twenty-seven"><ThemeMessage /></el-tab-pane>
31
- </el-tabs>
32
- </div>
33
- </template>
34
- <script>
35
- import { defineComponent } from 'vue';
36
-
37
- import ThemeInputNumbers from './ThemeInputNumbers.vue';
38
- import ThemeInputs from './ThemeInputs.vue';
39
- import ThemePopover from './ThemePopover.vue';
40
-
41
- export default defineComponent({
42
- components: { ThemeInputs, ThemeInputNumbers, ThemePopover },
43
- data() {
44
- return {
45
- activeName: 'fifteen',
46
- };
47
- },
48
- methods: {
49
- handleClick(tab, event) {
50
- console.log(tab, event);
51
- },
52
- },
53
- });
54
- </script>