@timus-networks/theme 1.0.100 → 1.0.102
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.
- package/components-js/ThemeForm.vue +10 -19
- package/components-js/ThemeInputs.vue +43 -44
- package/components-js/ThemeSelect.vue +13 -11
- package/components-ts/ThemeForm.vue +10 -19
- package/components-ts/ThemeInputs.vue +43 -44
- package/components-ts/ThemeSelect.vue +13 -11
- package/output/main.css +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<h1>Basic</h1>
|
|
5
5
|
<p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
|
|
6
6
|
<div class="grid grid-flow-col auto-cols-max">
|
|
7
|
-
<el-input
|
|
7
|
+
<el-input v-model="input" placeholder="Please input" class="danger" />
|
|
8
8
|
</div>
|
|
9
9
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
10
10
|
<p class="text-xs">
|
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
<section>
|
|
18
18
|
<h1>Disabled</h1>
|
|
19
19
|
<p class="p-lg my-6">Kullanıcı etkileşimini engellemek için giriş bileşenini devre dışı bırakabilirsiniz.</p>
|
|
20
|
-
<div class="grid grid-flow-col auto-cols-max">
|
|
21
|
-
<el-input
|
|
20
|
+
<div class="grid grid-flow-col auto-cols-max gap-7">
|
|
21
|
+
<el-input v-model="input" placeholder="Please input" :disabled="true" />
|
|
22
|
+
<el-input value="some input value" placeholder="Please input" :disabled="true" />
|
|
22
23
|
</div>
|
|
23
24
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
24
25
|
<p class="text-xs">
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
<h1>Clearable</h1>
|
|
33
34
|
<p class="p-lg my-6">Kullanıcıların girdikleri metni tek bir tıklamayla silmelerini sağlayan temizlenebilir giriş bileşeni.</p>
|
|
34
35
|
<div class="grid grid-flow-col auto-cols-max">
|
|
35
|
-
<el-input
|
|
36
|
+
<el-input v-model="input" placeholder="Please input" clearable />
|
|
36
37
|
</div>
|
|
37
38
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
38
39
|
<p class="text-xs">
|
|
@@ -46,7 +47,7 @@
|
|
|
46
47
|
<h1>Password</h1>
|
|
47
48
|
<p class="p-lg my-6">Şifre girişi için kullanılan giriş bileşeni, metni gizler ve şifre gösterme/ gizleme seçeneği sunar.</p>
|
|
48
49
|
<div class="grid grid-flow-col auto-cols-max items-center">
|
|
49
|
-
<el-input placeholder="Please input password"
|
|
50
|
+
<el-input v-model="input" placeholder="Please input password" show-password />
|
|
50
51
|
</div>
|
|
51
52
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
52
53
|
<p class="text-xs">
|
|
@@ -60,7 +61,7 @@
|
|
|
60
61
|
<h1>Input with icon</h1>
|
|
61
62
|
<p class="p-lg my-6">İkonlarla zenginleştirilmiş giriş bileşenleri, görsel bir ipucu sunar ve kullanıcı deneyimini artırır.</p>
|
|
62
63
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
63
|
-
<el-input placeholder="Type something" prefix-icon="el-icon-search"
|
|
64
|
+
<el-input v-model="input2" placeholder="Type something" prefix-icon="el-icon-search" />
|
|
64
65
|
</div>
|
|
65
66
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
66
67
|
<p class="text-xs">
|
|
@@ -73,7 +74,7 @@
|
|
|
73
74
|
<section>
|
|
74
75
|
<h1>Textarea</h1>
|
|
75
76
|
<p class="p-lg my-6">Metin alanı girişi, birden fazla satırı destekleyen ve daha büyük metin bloklarını girmek için kullanılır.</p>
|
|
76
|
-
<el-input type="textarea" :rows="2" placeholder="Please input"
|
|
77
|
+
<el-input v-model="textarea" type="textarea" :rows="2" placeholder="Please input" />
|
|
77
78
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
78
79
|
<p class="text-xs">
|
|
79
80
|
Textarea kullanımı için:
|
|
@@ -86,8 +87,8 @@
|
|
|
86
87
|
<h1>Autosize Textarea</h1>
|
|
87
88
|
<p class="p-lg my-6">Otomatik boyutlandırma özelliği, içeriğe bağlı olarak yüksekliği otomatik olarak ayarlayan bir metin alanıdır.</p>
|
|
88
89
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
89
|
-
<el-input type="textarea" autosize placeholder="Please input"
|
|
90
|
-
<el-input type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" placeholder="Please input"
|
|
90
|
+
<el-input v-model="textarea1" type="textarea" autosize placeholder="Please input" />
|
|
91
|
+
<el-input v-model="textarea2" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }" placeholder="Please input" />
|
|
91
92
|
</div>
|
|
92
93
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
93
94
|
<p class="text-xs">
|
|
@@ -101,21 +102,21 @@
|
|
|
101
102
|
<h1>Mixed input</h1>
|
|
102
103
|
<p class="p-lg my-6">Ön ek veya son ek içeren giriş bileşenleri, giriş alanlarına ekstra içerik ekleyerek daha açıklayıcı olabilir.</p>
|
|
103
104
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
104
|
-
<el-input placeholder="Please input"
|
|
105
|
-
<template
|
|
105
|
+
<el-input v-model="input1" placeholder="Please input" type="success">
|
|
106
|
+
<template #prepend>Http://</template>
|
|
106
107
|
</el-input>
|
|
107
108
|
|
|
108
|
-
<el-input placeholder="Please input"
|
|
109
|
-
<template
|
|
109
|
+
<el-input v-model="input2" placeholder="Please input">
|
|
110
|
+
<template #append>.com</template>
|
|
110
111
|
</el-input>
|
|
111
112
|
|
|
112
|
-
<el-input placeholder="Please input"
|
|
113
|
-
<el-select v-model="select"
|
|
114
|
-
<el-option label="Restaurant" value="1"
|
|
115
|
-
<el-option label="Order No." value="2"
|
|
116
|
-
<el-option label="Tel" value="3"
|
|
113
|
+
<el-input v-model="input3" placeholder="Please input" class="input-with-select">
|
|
114
|
+
<el-select slot="append" v-model="select" placeholder="Select">
|
|
115
|
+
<el-option label="Restaurant" value="1" />
|
|
116
|
+
<el-option label="Order No." value="2" />
|
|
117
|
+
<el-option label="Tel" value="3" />
|
|
117
118
|
</el-select>
|
|
118
|
-
<el-button slot="prepend" icon="el-icon-search"
|
|
119
|
+
<el-button slot="prepend" icon="el-icon-search" />
|
|
119
120
|
</el-input>
|
|
120
121
|
</div>
|
|
121
122
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
@@ -130,10 +131,10 @@
|
|
|
130
131
|
<h1>Sizes</h1>
|
|
131
132
|
<p class="p-lg my-6">Farklı boyutlardaki giriş bileşenleri, çeşitli arayüz ihtiyaçlarına yanıt vermek için tasarlanmıştır.</p>
|
|
132
133
|
<div class="grid grid-flow-col auto-cols-max items-center gap-4">
|
|
133
|
-
<el-input size="large" placeholder="Please Input"
|
|
134
|
-
<el-input size="medium" placeholder="Please Input"
|
|
135
|
-
<el-input size="small" placeholder="Please Input"
|
|
136
|
-
<el-input size="mini" placeholder="Please Input"
|
|
134
|
+
<el-input v-model="input1" size="large" placeholder="Please Input" />
|
|
135
|
+
<el-input v-model="input2" size="medium" placeholder="Please Input" />
|
|
136
|
+
<el-input v-model="input3" size="small" placeholder="Please Input" />
|
|
137
|
+
<el-input v-model="input4" size="mini" placeholder="Please Input" />
|
|
137
138
|
</div>
|
|
138
139
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
139
140
|
<p class="text-xs">
|
|
@@ -147,17 +148,15 @@
|
|
|
147
148
|
<h1>Autocomplete</h1>
|
|
148
149
|
<p class="p-lg my-6">Otomatik tamamlama bileşeni, kullanıcıların yazarken öneriler almasını sağlar ve verimliliği artırır.</p>
|
|
149
150
|
<div class="grid grid-flow-col auto-cols-max items-center gap-4">
|
|
150
|
-
<el-autocomplete class="inline-input"
|
|
151
|
-
</el-autocomplete>
|
|
151
|
+
<el-autocomplete v-model="state1" class="inline-input" :fetch-suggestions="querySearch" placeholder="Please Input" @select="handleSelect" />
|
|
152
152
|
<el-autocomplete
|
|
153
|
-
class="inline-input"
|
|
154
153
|
v-model="state2"
|
|
154
|
+
class="inline-input"
|
|
155
155
|
:fetch-suggestions="querySearch"
|
|
156
156
|
placeholder="Please Input"
|
|
157
157
|
:trigger-on-focus="false"
|
|
158
158
|
@select="handleSelect"
|
|
159
|
-
|
|
160
|
-
</el-autocomplete>
|
|
159
|
+
/>
|
|
161
160
|
</div>
|
|
162
161
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
163
162
|
<p class="text-xs">
|
|
@@ -174,14 +173,14 @@
|
|
|
174
173
|
<h1>Custom template</h1>
|
|
175
174
|
<p class="p-lg my-6">Otomatik tamamlama bileşeni, özel şablonlar ile özelleştirilebilir, böylece daha fazla bilgi gösterebilirsiniz.</p>
|
|
176
175
|
<el-autocomplete
|
|
177
|
-
popper-class="my-autocomplete"
|
|
178
176
|
v-model="state"
|
|
177
|
+
popper-class="my-autocomplete"
|
|
179
178
|
:fetch-suggestions="querySearch"
|
|
180
179
|
placeholder="Please input"
|
|
181
180
|
@select="handleSelect"
|
|
182
181
|
>
|
|
183
|
-
<i class="el-icon-edit el-input__icon"
|
|
184
|
-
<template
|
|
182
|
+
<i slot="suffix" class="el-icon-edit el-input__icon" @click="handleIconClick" />
|
|
183
|
+
<template #default="{ item }">
|
|
185
184
|
<div class="value">{{ item.value }}</div>
|
|
186
185
|
<span class="link">{{ item.link }}</span>
|
|
187
186
|
</template>
|
|
@@ -200,7 +199,7 @@
|
|
|
200
199
|
<section>
|
|
201
200
|
<h1>Remote search</h1>
|
|
202
201
|
<p class="p-lg my-6">Uzaktan arama ile otomatik tamamlama, sunucu tarafında gerçek zamanlı arama sonuçları getirir.</p>
|
|
203
|
-
<el-autocomplete v-model="state" :fetch-suggestions="querySearchAsync" placeholder="Please input" @select="handleSelect"
|
|
202
|
+
<el-autocomplete v-model="state" :fetch-suggestions="querySearchAsync" placeholder="Please input" @select="handleSelect" />
|
|
204
203
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
205
204
|
<p class="text-xs">
|
|
206
205
|
Uzaktan arama için:
|
|
@@ -216,8 +215,8 @@
|
|
|
216
215
|
<h1>Limit length</h1>
|
|
217
216
|
<p class="p-lg my-6">Uzunluk sınırı, kullanıcıların girebileceği karakter sayısını sınırlar ve aşırı uzun girişleri önler.</p>
|
|
218
217
|
<div class="grid grid-flow-col auto-cols-max items-center gap-4">
|
|
219
|
-
<el-input type="text" placeholder="Please input"
|
|
220
|
-
<el-input type="textarea" placeholder="Please input"
|
|
218
|
+
<el-input v-model="text" type="text" placeholder="Please input" maxlength="10" show-word-limit />
|
|
219
|
+
<el-input v-model="textarea" type="textarea" placeholder="Please input" maxlength="30" show-word-limit />
|
|
221
220
|
</div>
|
|
222
221
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
223
222
|
<p class="text-xs">
|
|
@@ -261,19 +260,24 @@ export default Vue.extend({
|
|
|
261
260
|
7: 'grid-cols-7',
|
|
262
261
|
8: 'grid-cols-8',
|
|
263
262
|
};
|
|
263
|
+
|
|
264
264
|
return grids;
|
|
265
265
|
},
|
|
266
266
|
},
|
|
267
|
+
mounted() {
|
|
268
|
+
this.links = this.loadAll();
|
|
269
|
+
},
|
|
267
270
|
methods: {
|
|
268
271
|
querySearch(queryString, cb) {
|
|
269
|
-
|
|
270
|
-
|
|
272
|
+
const { links } = this;
|
|
273
|
+
const results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
274
|
+
|
|
271
275
|
// call callback function to return suggestions
|
|
272
276
|
cb(results);
|
|
273
277
|
},
|
|
274
278
|
querySearchAsync(queryString, cb) {
|
|
275
|
-
|
|
276
|
-
|
|
279
|
+
const { links } = this;
|
|
280
|
+
const results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
277
281
|
|
|
278
282
|
clearTimeout(this.timeout);
|
|
279
283
|
this.timeout = setTimeout(() => {
|
|
@@ -281,9 +285,7 @@ export default Vue.extend({
|
|
|
281
285
|
}, 3000 * Math.random());
|
|
282
286
|
},
|
|
283
287
|
createFilter(queryString) {
|
|
284
|
-
return (link) =>
|
|
285
|
-
return link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
286
|
-
};
|
|
288
|
+
return (link) => link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
287
289
|
},
|
|
288
290
|
loadAll() {
|
|
289
291
|
return [
|
|
@@ -303,8 +305,5 @@ export default Vue.extend({
|
|
|
303
305
|
console.log(ev);
|
|
304
306
|
},
|
|
305
307
|
},
|
|
306
|
-
mounted() {
|
|
307
|
-
this.links = this.loadAll();
|
|
308
|
-
},
|
|
309
308
|
});
|
|
310
309
|
</script>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<p class="p-lg my-6">v-model is the value of el-option that is currently selected.</p>
|
|
6
6
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
7
|
<el-select v-model="value" placeholder="Select">
|
|
8
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
8
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
9
9
|
</el-select>
|
|
10
10
|
</div>
|
|
11
11
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<p class="p-lg my-6">Set the value of disabled in el-option to true to disable this option.</p>
|
|
21
21
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
22
22
|
<el-select v-model="value" placeholder="Select">
|
|
23
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled"
|
|
23
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled" />
|
|
24
24
|
</el-select>
|
|
25
25
|
</div>
|
|
26
26
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
<p class="p-lg my-6">Set disabled of el-select to make it disabled.</p>
|
|
37
37
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
38
38
|
<el-select v-model="value" disabled placeholder="Select">
|
|
39
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
39
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
40
40
|
</el-select>
|
|
41
41
|
</div>
|
|
42
42
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
<p class="p-lg my-6">Farklı boyutlardaki butonlarımız, çeşitli arayüz ihtiyaçlarına yanıt vermek için tasarlanmıştır.</p>
|
|
53
53
|
<div class="grid grid-flow-col auto-cols-max items-center gap-4">
|
|
54
54
|
<el-select v-model="value" clearable placeholder="Select">
|
|
55
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
55
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
56
56
|
</el-select>
|
|
57
57
|
</div>
|
|
58
58
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
@@ -67,11 +67,12 @@
|
|
|
67
67
|
<h1>Basic multiple select</h1>
|
|
68
68
|
<p class="p-lg my-6">Etkileşime kapalı 'disabled' butonlarımız, kullanılamaz durumları göstermek için kullanılır.</p>
|
|
69
69
|
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
{{ JSON.stringify(value1) }}
|
|
71
|
+
<el-select v-model="value1" multiple placeholder="Select" :disabled="true">
|
|
72
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
72
73
|
</el-select>
|
|
73
|
-
<el-select v-model="value2" multiple collapse-tags placeholder="Select" type="primary">
|
|
74
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
74
|
+
<el-select v-model="value2" multiple collapse-tags placeholder="Select" type="primary" :disabled="true">
|
|
75
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
75
76
|
</el-select>
|
|
76
77
|
</div>
|
|
77
78
|
<div class="my-4 p-4 border-l-4 border-red-600 bg-red-100">
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
111
112
|
<el-select v-model="value" placeholder="Select">
|
|
112
113
|
<el-option-group v-for="group in groups" :key="group.label" :label="group.label">
|
|
113
|
-
<el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.value"
|
|
114
|
+
<el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.value" />
|
|
114
115
|
</el-option-group>
|
|
115
116
|
</el-select>
|
|
116
117
|
</div>
|
|
@@ -213,8 +214,8 @@ export default Vue.extend({
|
|
|
213
214
|
},
|
|
214
215
|
],
|
|
215
216
|
value: '',
|
|
216
|
-
value1: [],
|
|
217
|
-
value2: [],
|
|
217
|
+
value1: ['Option2', 'Option4', 'Option5'],
|
|
218
|
+
value2: ['Option2', 'Option4', 'Option5'],
|
|
218
219
|
};
|
|
219
220
|
},
|
|
220
221
|
computed: {
|
|
@@ -225,6 +226,7 @@ export default Vue.extend({
|
|
|
225
226
|
7: 'grid-cols-7',
|
|
226
227
|
8: 'grid-cols-8',
|
|
227
228
|
};
|
|
229
|
+
|
|
228
230
|
return grids;
|
|
229
231
|
},
|
|
230
232
|
},
|