@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,390 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <section>
4
- <h1>Basic usage</h1>
5
- <p class="p-lg my-6">There are two ways to expand child option items.</p>
6
- <div class="grid grid-flow-col auto-cols-max gap-4">
7
- <el-cascader v-model="value" :options="options" clearable @change="handleChange" />
8
- <el-cascader v-model="value" :options="options" :props="{ expandTrigger: 'hover' }" @change="handleChange" />
9
- </div>
10
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
11
- <p class="text-xs">
12
- <code>&lt;el-cascader v-model="value" :options="options" @change="handleChange"&gt;&lt;/el-cascader&gt;</code>
13
- </p>
14
- </div>
15
- </section>
16
-
17
- <section>
18
- <h3>Cascader Container</h3>
19
- <p class="p-lg-c my-6">
20
- Cascader container contains two different component in it inside. Left one is Cascader and right one is Select dropdown.
21
- </p>
22
- <div class="el-cascader-container">
23
- <el-cascader v-model="value" :options="options" clearable @change="handleChange" />
24
- <el-cascader v-model="value" :options="options" clearable @change="handleChange" />
25
- <el-select v-model="value" placeholder="Select" multiple>
26
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
27
- </el-select>
28
- <el-input v-show="false" />
29
- <el-select v-model="value" placeholder="Select" class="grow">
30
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
31
- </el-select>
32
- <el-button class="isax-add-circle grow-0">Add</el-button>
33
- </div>
34
- </section>
35
-
36
- <section>
37
- <h3>Cascader Container Another Sample</h3>
38
- <p class="p-lg-c my-6">
39
- Cascader container contains two different component in it inside. Left one is Cascader and right one is Select dropdown.
40
- </p>
41
- <div data-testid="pages-settings-configuration-productivity-index-luugpbuhne" class="el-cascader-container w-full">
42
- <el-select v-model="value" placeholder="Select" multiple>
43
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
44
- </el-select>
45
-
46
- <el-select v-model="value" placeholder="Select" multiple>
47
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
48
- </el-select>
49
-
50
- <el-select v-model="value" placeholder="Select">
51
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
52
- </el-select>
53
-
54
- <el-select v-model="value" placeholder="Select">
55
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
56
- </el-select>
57
- <el-select v-model="value" placeholder="Select">
58
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
59
- </el-select>
60
- <el-input />
61
- <el-select v-model="value" placeholder="Select" multiple>
62
- <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
63
- </el-select>
64
-
65
- <el-button class="isax-add-circle icon-xs"> Add </el-button>
66
- </div>
67
- </section>
68
-
69
- <section>
70
- <h1>Multiple Selection</h1>
71
- <p class="p-lg my-6">
72
- Set `props.multiple = true` to use multiple selection. When using multiple selection, all selected tags will display by default, You can set
73
- `collapse-tags = true` to fold selected tags.
74
- </p>
75
- <div class="flex gap-4">
76
- <el-cascader :options="options" :props="props" clearable />
77
- <el-cascader :options="options" :props="props" collapse-tags clearable />
78
- </div>
79
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
80
- <p class="text-xs">
81
- <code>&lt;el-cascader v-model="value" :options="options" @change="handleChange"&gt;&lt;/el-cascader&gt;</code>
82
- </p>
83
- </div>
84
- </section>
85
- <section>
86
- <h1>Select any level of options</h1>
87
- <p class="p-lg my-6">
88
- In single selection, only the leaf nodes can be checked, and in multiple selection, check parent nodes will lead to leaf nodes be checked
89
- eventually. When enable this feature, it can make parent and child nodes unlinked and you can select any level of options.
90
- </p>
91
- <div class="flex gap-4">
92
- <el-cascader :options="options" :props="{ checkStrictly: true }" clearable />
93
- <el-cascader :options="options" :props="{ multiple: true, checkStrictly: true }" clearable />
94
- </div>
95
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
96
- <p class="text-xs">
97
- <code>&lt;el-cascader v-model="value" :options="options" @change="handleChange"&gt;&lt;/el-cascader&gt;</code>
98
- </p>
99
- </div>
100
- </section>
101
- </div>
102
- </template>
103
-
104
- <script>
105
- import { defineComponent } from 'vue';
106
-
107
- export default defineComponent({
108
- name: 'TimusCascader',
109
- data() {
110
- return {
111
- props: { multiple: true },
112
- value: [],
113
- options: [
114
- {
115
- value: 'guide',
116
- label: 'Guide',
117
- disabled: true,
118
- children: [
119
- {
120
- value: 'disciplines',
121
- label: 'Disciplines',
122
- children: [
123
- {
124
- value: 'consistency',
125
- label: 'Consistency',
126
- },
127
- {
128
- value: 'feedback',
129
- label: 'Feedback',
130
- },
131
- {
132
- value: 'efficiency',
133
- label: 'Efficiency',
134
- },
135
- {
136
- value: 'controllability',
137
- label: 'Controllability',
138
- },
139
- ],
140
- },
141
- {
142
- value: 'navigation',
143
- label: 'Navigation',
144
- children: [
145
- {
146
- value: 'side nav',
147
- label: 'Side Navigation',
148
- },
149
- {
150
- value: 'top nav',
151
- label: 'Top Navigation',
152
- },
153
- ],
154
- },
155
- ],
156
- },
157
- {
158
- value: 'component',
159
- label: 'Component',
160
- children: [
161
- {
162
- value: 'basic',
163
- label: 'Basic',
164
- children: [
165
- {
166
- value: 'layout',
167
- label: 'Layout',
168
- },
169
- {
170
- value: 'color',
171
- label: 'Color',
172
- },
173
- {
174
- value: 'typography',
175
- label: 'Typography',
176
- },
177
- {
178
- value: 'icon',
179
- label: 'Icon',
180
- },
181
- {
182
- value: 'button',
183
- label: 'Button',
184
- },
185
- ],
186
- },
187
- {
188
- value: 'form',
189
- label: 'Form',
190
- children: [
191
- {
192
- value: 'radio',
193
- label: 'Radio',
194
- },
195
- {
196
- value: 'checkbox',
197
- label: 'Checkbox',
198
- },
199
- {
200
- value: 'input',
201
- label: 'Input',
202
- },
203
- {
204
- value: 'input-number',
205
- label: 'InputNumber',
206
- },
207
- {
208
- value: 'select',
209
- label: 'Select',
210
- },
211
- {
212
- value: 'cascader',
213
- label: 'Cascader',
214
- },
215
- {
216
- value: 'switch',
217
- label: 'Switch',
218
- },
219
- {
220
- value: 'slider',
221
- label: 'Slider',
222
- },
223
- {
224
- value: 'time-picker',
225
- label: 'TimePicker',
226
- },
227
- {
228
- value: 'date-picker',
229
- label: 'DatePicker',
230
- },
231
- {
232
- value: 'datetime-picker',
233
- label: 'DateTimePicker',
234
- },
235
- {
236
- value: 'upload',
237
- label: 'Upload',
238
- },
239
- {
240
- value: 'rate',
241
- label: 'Rate',
242
- },
243
- {
244
- value: 'form',
245
- label: 'Form',
246
- },
247
- ],
248
- },
249
- {
250
- value: 'data',
251
- label: 'Data',
252
- children: [
253
- {
254
- value: 'table',
255
- label: 'Table',
256
- },
257
- {
258
- value: 'tag',
259
- label: 'Tag',
260
- },
261
- {
262
- value: 'progress',
263
- label: 'Progress',
264
- },
265
- {
266
- value: 'tree',
267
- label: 'Tree',
268
- },
269
- {
270
- value: 'pagination',
271
- label: 'Pagination',
272
- },
273
- {
274
- value: 'badge',
275
- label: 'Badge',
276
- },
277
- ],
278
- },
279
- {
280
- value: 'notice',
281
- label: 'Notice',
282
- children: [
283
- {
284
- value: 'alert',
285
- label: 'Alert',
286
- },
287
- {
288
- value: 'loading',
289
- label: 'Loading',
290
- },
291
- {
292
- value: 'message',
293
- label: 'Message',
294
- },
295
- {
296
- value: 'message-box',
297
- label: 'MessageBox',
298
- },
299
- {
300
- value: 'notification',
301
- label: 'Notification',
302
- },
303
- ],
304
- },
305
- {
306
- value: 'navigation',
307
- label: 'Navigation',
308
- children: [
309
- {
310
- value: 'menu',
311
- label: 'NavMenu',
312
- },
313
- {
314
- value: 'tabs',
315
- label: 'Tabs',
316
- },
317
- {
318
- value: 'breadcrumb',
319
- label: 'Breadcrumb',
320
- },
321
- {
322
- value: 'dropdown',
323
- label: 'Dropdown',
324
- },
325
- {
326
- value: 'steps',
327
- label: 'Steps',
328
- },
329
- ],
330
- },
331
- {
332
- value: 'others',
333
- label: 'Others',
334
- children: [
335
- {
336
- value: 'dialog',
337
- label: 'Dialog',
338
- },
339
- {
340
- value: 'tooltip',
341
- label: 'Tooltip',
342
- },
343
- {
344
- value: 'popover',
345
- label: 'Popover',
346
- },
347
- {
348
- value: 'card',
349
- label: 'Card',
350
- },
351
- {
352
- value: 'carousel',
353
- label: 'Carousel',
354
- },
355
- {
356
- value: 'collapse',
357
- label: 'Collapse',
358
- },
359
- ],
360
- },
361
- ],
362
- },
363
- {
364
- value: 'resource',
365
- label: 'Resource',
366
- children: [
367
- {
368
- value: 'axure',
369
- label: 'Axure Components',
370
- },
371
- {
372
- value: 'sketch',
373
- label: 'Sketch Templates',
374
- },
375
- {
376
- value: 'docs',
377
- label: 'Design Documentation',
378
- },
379
- ],
380
- },
381
- ],
382
- };
383
- },
384
- methods: {
385
- handleChange(value) {
386
- console.log(value);
387
- },
388
- },
389
- });
390
- </script>
@@ -1,2 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
@@ -1,197 +0,0 @@
1
- <template>
2
- <div class="pt-8 pb-16 flex gap-12 flex-col">
3
- <h1>Checkbox</h1>
4
-
5
- <section>
6
- <h2>Basic Usage</h2>
7
- <p class="p-lg-c my-6">Checkbox, iki durum arasında geçiş yapmak için kullanılır. Checkbox için devre dışı bırakılmış durum da mevcuttur.</p>
8
- <div class="grid grid-flow-col auto-cols-max gap-4">
9
- <el-checkbox v-model="checked">Option</el-checkbox>
10
- <el-checkbox :value="true" disabled>selected & disabled</el-checkbox>
11
- <el-checkbox :value="false" disabled>unselected & disabled</el-checkbox>
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> &lt;el-checkbox :value="true" disabled&gt;Seçili & Devre Dışı&lt;/el-checkbox&gt; </code>
16
- </p>
17
- </div>
18
- </section>
19
-
20
- <section>
21
- <h2>Checkbox group</h2>
22
- <p class="p-lg-c my-6">
23
- Checkbox grubu, birden fazla seçeneği bir arada sunarak kullanıcının birden çok seçim yapmasına olanak tanır. Bu grup içerisindeki
24
- seçeneklerden bazıları devre dışı bırakılabilir veya önceden seçilmiş ve devre dışı bırakılmış olabilir.
25
- </p>
26
- <div class="grid grid-flow-col auto-cols-max gap-4">
27
- <el-checkbox-group v-model="checkList" class="mb-6">
28
- <el-checkbox label="Option A" />
29
- <el-checkbox label="Option B" />
30
- <el-checkbox label="Option C" />
31
- <el-checkbox label="disabled" disabled />
32
- <el-checkbox label="selected and disabled" disabled />
33
- </el-checkbox-group>
34
- </div>
35
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
36
- <p class="text-xs">
37
- <code>
38
- &lt;el-checkbox-group v-model="checkList"&gt; &lt;el-checkbox label="Seçenek A"&gt;&lt;/el-checkbox&gt; &lt;el-checkbox label="Seçenek
39
- B"&gt;&lt;/el-checkbox&gt; &lt;/el-checkbox-group&gt;
40
- </code>
41
- </p>
42
- </div>
43
- </section>
44
-
45
- <section>
46
- <h2>Colors</h2>
47
- <p class="p-lg-c my-6">
48
- Renk seçenekleri ekledim. `class="primary"` şeklinde kullanılabilir. `'default', 'primary', 'secondary', 'gray', 'light', 'success', 'danger',
49
- 'info', 'warning'` diğer renk seçenekleri olarak kullanılabilir.
50
- </p>
51
- <div class="grid grid-flow-col auto-cols-max gap-4">
52
- <el-checkbox
53
- v-for="(color, index) of colors"
54
- :key="index"
55
- v-model="checkAll"
56
- :class="color"
57
- :indeterminate="isIndeterminate"
58
- @change="handleCheckAllChange"
59
- >
60
- Check all
61
- </el-checkbox>
62
- </div>
63
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
64
- <p class="text-xs">
65
- <code>
66
- &lt;el-checkbox v-model="checkAll" class="danger" :indeterminate="isIndeterminate" @change="handleCheckAllChange"&gt;Check
67
- all&lt;/el-checkbox&gt;
68
- </code>
69
- </p>
70
- </div>
71
- </section>
72
-
73
- <section>
74
- <h2>Indeterminate</h2>
75
- <p class="p-lg-c my-6">
76
- Belirsiz durum (indeterminate) checkbox, tüm seçeneklerin seçili olup olmadığını belirsiz bırakır. Bu durum, özellikle kullanıcının bir grup
77
- içerisindeki tüm seçenekleri aynı anda kontrol etmesini sağlamak için kullanışlıdır.
78
- </p>
79
- <div class="grid grid-flow-col auto-cols-max gap-4">
80
- <el-checkbox v-model="checkAll" :indeterminate="isIndeterminate" @change="handleCheckAllChange">Check all</el-checkbox>
81
- <el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
82
- <el-checkbox v-for="city in cities" :key="city" :label="city">{{ city }}</el-checkbox>
83
- </el-checkbox-group>
84
- </div>
85
- <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
86
- <p class="text-xs">
87
- <code>
88
- &lt;el-checkbox v-model="checkAll" :indeterminate="isIndeterminate" @change="handleCheckAllChange"&gt;Check all&lt;/el-checkbox&gt;
89
- </code>
90
- </p>
91
- </div>
92
- </section>
93
-
94
- <section>
95
- <div>
96
- <el-checkbox-group v-model="checkboxGroup1">
97
- <el-checkbox-button v-for="city in cities" :key="city" :label="city">{{ city }}</el-checkbox-button>
98
- </el-checkbox-group>
99
- </div>
100
- <div style="margin-top: 20px">
101
- <el-checkbox-group v-model="checkboxGroup2" size="medium">
102
- <el-checkbox-button v-for="city in cities" :key="city" :label="city">{{ city }}</el-checkbox-button>
103
- </el-checkbox-group>
104
- </div>
105
- <div style="margin-top: 20px">
106
- <el-checkbox-group v-model="checkboxGroup3" size="small">
107
- <el-checkbox-button v-for="city in cities" :key="city" :label="city" :disabled="city === 'Beijing'">{{ city }}</el-checkbox-button>
108
- </el-checkbox-group>
109
- </div>
110
- <div style="margin-top: 20px">
111
- <el-checkbox-group v-model="checkboxGroup4" size="mini" disabled>
112
- <el-checkbox-button v-for="city in cities" :key="city" :label="city">{{ city }}</el-checkbox-button>
113
- </el-checkbox-group>
114
- </div>
115
- </section>
116
- </div>
117
- </template>
118
- <script>import { defineComponent } from 'vue';
119
- const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
120
- export default defineComponent({
121
- data() {
122
- return {
123
- colors: ['default', 'primary', 'secondary', 'gray', 'light', 'success', 'danger', 'info', 'warning'],
124
- checked: true,
125
- checkboxGroup1: ['Shanghai'],
126
- checkboxGroup2: ['Shanghai'],
127
- checkboxGroup3: ['Shanghai'],
128
- checkboxGroup4: ['Beijing'],
129
- cities: cityOptions,
130
- checkList: ['selected and disabled', 'Option A'],
131
- checkAll: false,
132
- checkedCities: ['Shanghai', 'Beijing'],
133
- isIndeterminate: true,
134
- time: '',
135
- sizeForm: {
136
- name: '',
137
- region: '',
138
- date1: '',
139
- date2: '',
140
- delivery: false,
141
- type: [],
142
- resource: '',
143
- desc: '',
144
- },
145
- loading: false,
146
- form: {
147
- email: '',
148
- password: '',
149
- remember: false,
150
- token: null,
151
- correlation_id: null,
152
- action: null,
153
- platform: 'manager',
154
- version: '1.0.10',
155
- },
156
- rules: {
157
- email: [
158
- {
159
- validator: 'validateEmail',
160
- trigger: 'submit',
161
- message: this.$t('messages.please_provide_valid_email'),
162
- },
163
- ],
164
- password: [
165
- {
166
- required: true,
167
- trigger: 'submit',
168
- message: this.$t('messages.please_fill', {
169
- field: this.$t('login.password'),
170
- }),
171
- },
172
- ],
173
- },
174
- };
175
- },
176
- methods: {
177
- handleCheckAllChange(val) {
178
- this.checkedCities = val ? cityOptions : [];
179
- this.isIndeterminate = false;
180
- },
181
- handleCheckedCitiesChange(value) {
182
- const checkedCount = value.length;
183
- this.checkAll = checkedCount === this.cities.length;
184
- this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
185
- },
186
- showAgreementDialog(type) {
187
- console.log('agreement: ', type);
188
- },
189
- submit() {
190
- this.$emit('submit', this.form);
191
- },
192
- onSubmit() {
193
- console.log('submit!');
194
- },
195
- },
196
- });
197
- </script>
@@ -1,73 +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
- <el-collapse v-model="activeNames" @change="handleChange">
9
- <el-collapse-item title="Consistency" name="1">
10
- <div>
11
- Consistent with real life: in line with the process and logic of real life, and comply with languages and habits that the users are used
12
- to;
13
- </div>
14
- <div>
15
- Consistent within interface: all elements should be consistent, such as: design style, icons and texts, position of elements, etc.
16
- </div>
17
- </el-collapse-item>
18
- <el-collapse-item title="Feedback" name="2">
19
- <div>Operation feedback: enable the users to clearly perceive their operations by style updates and interactive effects;</div>
20
- <div>Visual feedback: reflect current state by updating or rearranging elements of the page.</div>
21
- </el-collapse-item>
22
- <el-collapse-item title="Efficiency" name="3">
23
- <div>Simplify the process: keep operating process simple and intuitive;</div>
24
- <div>Definite and clear: enunciate your intentions clearly so that the users can quickly understand and make decisions;</div>
25
- <div>
26
- Easy to identify: the interface should be straightforward, which helps the users to identify and frees them from memorizing and recalling.
27
- </div>
28
- </el-collapse-item>
29
- <el-collapse-item title="Controllability" name="4">
30
- <div>Decision making: giving advices about operations is acceptable, but do not make decisions for the users;</div>
31
- <div>
32
- Controlled consequences: users should be granted the freedom to operate, including canceling, aborting or terminating current operation.
33
- </div>
34
- </el-collapse-item>
35
- </el-collapse>
36
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
37
- <p class="text-xs">
38
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</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
- activeNames: ['1'],
53
- };
54
- },
55
- computed: {
56
- gridSize() {
57
- const grids = {
58
- 5: 'grid-cols-5',
59
- 6: 'grid-cols-6',
60
- 7: 'grid-cols-7',
61
- 8: 'grid-cols-8',
62
- };
63
-
64
- return grids;
65
- },
66
- },
67
- methods: {
68
- handleChange(val) {
69
- console.log(val);
70
- },
71
- },
72
- });
73
- </script>