@timus-networks/theme 1.0.23 → 1.0.24
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/ThemeAlert.vue +76 -0
- package/components-js/ThemeAvatar.vue +55 -0
- package/components-js/ThemeBadge.vue +86 -0
- package/components-js/ThemeCascader.vue +337 -0
- package/components-js/ThemeLink.vue +30 -100
- package/components-js/ThemeLogo.vue +57 -0
- package/components-js/ThemeRadio.vue +20 -41
- package/components-js/ThemeTable.vue +228 -194
- package/components-js/TimusSamples.vue +33 -28
- package/components-js/exporter.js +5 -5
- package/components-ts/ThemeAlert.vue +76 -0
- package/components-ts/ThemeAvatar.vue +55 -0
- package/components-ts/ThemeBadge.vue +86 -0
- package/components-ts/ThemeCascader.vue +337 -0
- package/components-ts/ThemeLink.vue +30 -100
- package/components-ts/ThemeLogo.vue +57 -0
- package/components-ts/ThemeRadio.vue +20 -41
- package/components-ts/ThemeTable.vue +228 -194
- package/components-ts/TimusSamples.vue +33 -28
- package/components-ts/exporter.js +5 -5
- package/logo/timus-icon.svg +17 -0
- package/logo/timus-logo.svg +22 -0
- package/module.js +6 -2
- package/output/main.css +1 -1
- package/package.json +40 -40
|
@@ -1,84 +1,82 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
3
|
<section>
|
|
4
|
-
<h1>
|
|
5
|
-
<p class="p-lg my-6">
|
|
4
|
+
<h1>Link</h1>
|
|
5
|
+
<p class="p-lg my-6">
|
|
6
|
+
`el-link` bileşeni, sayfadaki metni veya bağlantıyı temsil eder ve stil ve davranışlarını özelleştirmenize olanak tanır.
|
|
7
|
+
</p>
|
|
6
8
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
9
|
<el-link href="https://element.eleme.io" target="_blank">default</el-link>
|
|
8
|
-
<el-link type="
|
|
9
|
-
<el-link type="secondary">secondary</el-link>
|
|
10
|
-
<el-link type="success">success</el-link>
|
|
11
|
-
<el-link type="warning">warning</el-link>
|
|
12
|
-
<el-link type="danger">danger</el-link>
|
|
13
|
-
<el-link type="info">info</el-link>
|
|
10
|
+
<el-link :type="item" v-for="(item, index) in colors" :key="index">{{ item }}</el-link>
|
|
14
11
|
</div>
|
|
15
12
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
16
13
|
<p class="text-xs">
|
|
17
|
-
<code><el-
|
|
14
|
+
<code><el-link type="primary">Bağlantı</el-link></code>
|
|
18
15
|
</p>
|
|
19
16
|
</div>
|
|
20
17
|
</section>
|
|
21
18
|
|
|
22
19
|
<section>
|
|
23
|
-
<h1>
|
|
24
|
-
<p class="p-lg my-6">
|
|
20
|
+
<h1>Nuxt Link ile Kullanım</h1>
|
|
21
|
+
<p class="p-lg my-6">El Link bileşenini Nuxt Link ile kullanabilirsiniz. Bu, Nuxt.js projelerinde sayfa geçişlerini kolaylaştırır.</p>
|
|
25
22
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
26
|
-
<NuxtLink to="/"
|
|
23
|
+
<NuxtLink to="/" v-for="(item, index) in colors" :key="index">
|
|
24
|
+
<el-link :type="item">Router: {{ item }}</el-link>
|
|
25
|
+
</NuxtLink>
|
|
27
26
|
</div>
|
|
28
27
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
29
28
|
<p class="text-xs">
|
|
30
|
-
<code><
|
|
29
|
+
<code><NuxtLink to="/"><el-link type="primary">Bağlantı</el-link></NuxtLink></code>
|
|
31
30
|
</p>
|
|
32
31
|
</div>
|
|
33
32
|
</section>
|
|
34
33
|
|
|
35
34
|
<section>
|
|
36
|
-
<h1>
|
|
37
|
-
<p class="p-lg my-6">
|
|
35
|
+
<h1>Devre Dışı Bırakılmış Durum</h1>
|
|
36
|
+
<p class="p-lg my-6">El Link bileşenini devre dışı bırakmak için <code>disabled</code> özelliğini kullanabilirsiniz.</p>
|
|
38
37
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
39
38
|
<el-link disabled>default</el-link>
|
|
40
|
-
<el-link type="
|
|
41
|
-
<el-link type="success" disabled>success</el-link>
|
|
42
|
-
<el-link type="warning" disabled>warning</el-link>
|
|
43
|
-
<el-link type="danger" disabled>danger</el-link>
|
|
44
|
-
<el-link type="info" disabled>info</el-link>
|
|
39
|
+
<el-link :type="item" v-for="(item, index) in colors" :key="index" disabled>{{ item }}</el-link>
|
|
45
40
|
</div>
|
|
46
41
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
47
42
|
<p class="text-xs">
|
|
48
|
-
<code><el-
|
|
43
|
+
<code><el-link disabled>Devre Dışı</el-link></code>
|
|
49
44
|
</p>
|
|
50
45
|
</div>
|
|
51
46
|
</section>
|
|
52
47
|
|
|
53
48
|
<section>
|
|
54
|
-
<h1>
|
|
55
|
-
<p class="p-lg my-6">
|
|
49
|
+
<h1>Alt Çizgi</h1>
|
|
50
|
+
<p class="p-lg my-6">
|
|
51
|
+
El Link bileşeninin alt çizgisini göstermek veya gizlemek için <code>:underline="false"</code> özelliğini kullanabilirsiniz.
|
|
52
|
+
</p>
|
|
56
53
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
57
|
-
<el-link :underline="false">
|
|
58
|
-
<el-link>
|
|
54
|
+
<el-link type="primary" :underline="false">Alt Çizgi Yok</el-link>
|
|
55
|
+
<el-link type="primary">Alt Çizgiyle</el-link>
|
|
59
56
|
</div>
|
|
60
57
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
61
58
|
<p class="text-xs">
|
|
62
|
-
<code><el-
|
|
59
|
+
<code><el-link :underline="false">Alt Çizgi Yok</el-link></code>
|
|
63
60
|
</p>
|
|
64
61
|
</div>
|
|
65
62
|
</section>
|
|
66
63
|
|
|
67
64
|
<section>
|
|
68
|
-
<h1
|
|
69
|
-
<p class="p-lg my-6">
|
|
65
|
+
<h1>İkon</h1>
|
|
66
|
+
<p class="p-lg my-6">El Link bileşeni, metin veya bağlantı ile birlikte ikonlar eklemenize olanak tanır.</p>
|
|
70
67
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
71
|
-
<el-link icon="el-icon-edit">
|
|
72
|
-
<el-link>
|
|
68
|
+
<el-link type="primary" icon="el-icon-edit">Düzenle</el-link>
|
|
69
|
+
<el-link type="primary">Onayla<i class="el-icon-view el-icon--right"></i> </el-link>
|
|
73
70
|
</div>
|
|
74
71
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
75
72
|
<p class="text-xs">
|
|
76
|
-
<code><el-
|
|
73
|
+
<code><el-link icon="el-icon-edit">Düzenle</el-link></code>
|
|
77
74
|
</p>
|
|
78
75
|
</div>
|
|
79
76
|
</section>
|
|
80
77
|
</div>
|
|
81
78
|
</template>
|
|
79
|
+
|
|
82
80
|
<script>
|
|
83
81
|
import Vue from 'vue';
|
|
84
82
|
|
|
@@ -86,76 +84,8 @@ export default Vue.extend({
|
|
|
86
84
|
name: 'TimusButtonSample',
|
|
87
85
|
data() {
|
|
88
86
|
return {
|
|
89
|
-
|
|
90
|
-
input: '',
|
|
91
|
-
input1: '',
|
|
92
|
-
input2: '',
|
|
93
|
-
input3: '',
|
|
94
|
-
input4: '',
|
|
95
|
-
select: '',
|
|
96
|
-
links: [],
|
|
97
|
-
state: '',
|
|
98
|
-
state1: '',
|
|
99
|
-
state2: '',
|
|
100
|
-
text: '',
|
|
101
|
-
textarea: '',
|
|
102
|
-
textarea1: '',
|
|
103
|
-
textarea2: '',
|
|
104
|
-
timeout: null,
|
|
87
|
+
colors: ['primary', 'secondary', 'gray', 'info', 'success', 'warning', 'danger'],
|
|
105
88
|
};
|
|
106
89
|
},
|
|
107
|
-
computed: {
|
|
108
|
-
gridSize() {
|
|
109
|
-
const grids = {
|
|
110
|
-
5: 'grid-cols-5',
|
|
111
|
-
6: 'grid-cols-6',
|
|
112
|
-
7: 'grid-cols-7',
|
|
113
|
-
8: 'grid-cols-8',
|
|
114
|
-
};
|
|
115
|
-
return grids;
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
methods: {
|
|
119
|
-
querySearch(queryString, cb) {
|
|
120
|
-
var links = this.links;
|
|
121
|
-
var results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
122
|
-
// call callback function to return suggestions
|
|
123
|
-
cb(results);
|
|
124
|
-
},
|
|
125
|
-
querySearchAsync(queryString, cb) {
|
|
126
|
-
var links = this.links;
|
|
127
|
-
var results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
128
|
-
|
|
129
|
-
clearTimeout(this.timeout);
|
|
130
|
-
this.timeout = setTimeout(() => {
|
|
131
|
-
cb(results);
|
|
132
|
-
}, 3000 * Math.random());
|
|
133
|
-
},
|
|
134
|
-
createFilter(queryString) {
|
|
135
|
-
return (link) => {
|
|
136
|
-
return link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
|
-
loadAll() {
|
|
140
|
-
return [
|
|
141
|
-
{ value: 'vue', link: 'https://github.com/vuejs/vue' },
|
|
142
|
-
{ value: 'element', link: 'https://github.com/ElemeFE/element' },
|
|
143
|
-
{ value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
|
|
144
|
-
{ value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
|
|
145
|
-
{ value: 'vuex', link: 'https://github.com/vuejs/vuex' },
|
|
146
|
-
{ value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
|
|
147
|
-
{ value: 'babel', link: 'https://github.com/babel/babel' },
|
|
148
|
-
];
|
|
149
|
-
},
|
|
150
|
-
handleSelect(item) {
|
|
151
|
-
console.log(item);
|
|
152
|
-
},
|
|
153
|
-
handleIconClick(ev) {
|
|
154
|
-
console.log(ev);
|
|
155
|
-
},
|
|
156
|
-
},
|
|
157
|
-
mounted() {
|
|
158
|
-
this.links = this.loadAll();
|
|
159
|
-
},
|
|
160
90
|
});
|
|
161
91
|
</script>
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
<div class="logo-icon-small"></div>
|
|
11
|
+
<div class="logo-icon-medium"></div>
|
|
12
|
+
<div class="logo-icon-large"></div>
|
|
13
|
+
<el-divider direction="vertical" content-position="center"></el-divider>
|
|
14
|
+
<div class="logo-small"></div>
|
|
15
|
+
<div class="logo-medium"></div>
|
|
16
|
+
<div class="logo-large"></div>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
19
|
+
<p class="text-xs">
|
|
20
|
+
<code><div class="logo-medium"></div></code>
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<section>
|
|
26
|
+
<h1>Types</h1>
|
|
27
|
+
<p class="p-md-c my-6">
|
|
28
|
+
There are two different types of logo usage available: <b>"icon"</b> or <b>"logo"</b>. When used as a <b>"logo"</b>, an additional
|
|
29
|
+
icon along with the word <b>"timus"</b> will be displayed.
|
|
30
|
+
</p>
|
|
31
|
+
<div class="grid grid-flow-col auto-cols-max gap-6 items-center">
|
|
32
|
+
<div class="logo-icon-small"></div>
|
|
33
|
+
<el-divider direction="vertical" content-position="center"></el-divider>
|
|
34
|
+
<div class="logo-small"></div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
37
|
+
<p class="text-xs">
|
|
38
|
+
<code><div class="logo-icon-medium"></div> | <div class="logo-medium"></div></code>
|
|
39
|
+
</p>
|
|
40
|
+
</div>
|
|
41
|
+
</section>
|
|
42
|
+
</div>
|
|
43
|
+
</template>
|
|
44
|
+
|
|
45
|
+
<script>
|
|
46
|
+
import Vue from 'vue';
|
|
47
|
+
|
|
48
|
+
export default Vue.extend({
|
|
49
|
+
name: 'TimusCascader',
|
|
50
|
+
data() {
|
|
51
|
+
return {
|
|
52
|
+
url: 'https://api.dicebear.com/7.x/adventurer-neutral/svg?seed=Princess',
|
|
53
|
+
sizeList: ['xlarge', 'large', 'medium', 'small', 'xsmall'],
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
</script>
|
|
@@ -3,63 +3,42 @@
|
|
|
3
3
|
<h1>Radio</h1>
|
|
4
4
|
|
|
5
5
|
<section>
|
|
6
|
-
<h2>
|
|
7
|
-
<p class="p-lg-c my-6">
|
|
6
|
+
<h2>Temel Kullanım</h2>
|
|
7
|
+
<p class="p-lg-c my-6">El Radio, çok fazla seçeneğe sahip olmamalıdır. Aksi takdirde, Select bileşenini kullanmalısınız.</p>
|
|
8
8
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
9
|
-
<el-radio v-model="radio" :label="0">
|
|
10
|
-
<el-radio v-model="radio" :label="1">
|
|
11
|
-
<el-radio v-model="radio" :label="2" disabled>
|
|
12
|
-
<el-radio :value="false" disabled>
|
|
9
|
+
<el-radio v-model="radio" :label="0">Seçenek A</el-radio>
|
|
10
|
+
<el-radio v-model="radio" :label="1">Seçenek B</el-radio>
|
|
11
|
+
<el-radio v-model="radio" :label="2" disabled>Seçenek C (Devre Dışı)</el-radio>
|
|
12
|
+
<el-radio :value="false" disabled>Seçili Olmayan ve Devre Dışı</el-radio>
|
|
13
13
|
</div>
|
|
14
14
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
15
15
|
<p class="text-xs">
|
|
16
|
-
|
|
16
|
+
Örnek Kullanım:
|
|
17
|
+
<code> <el-radio :value="true" disabled>Seçili & Devre Dışı</el-radio> </code>
|
|
17
18
|
</p>
|
|
18
19
|
</div>
|
|
19
20
|
</section>
|
|
20
21
|
|
|
21
22
|
<section>
|
|
22
|
-
<h2>
|
|
23
|
+
<h2>Radio group</h2>
|
|
23
24
|
<p class="p-lg-c my-6">
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
`el-radio-group` ile `el-radio` bileşenini bir araya getirerek bir radyo grubu görüntüleyebilirsiniz. el-radio-group elementinin v-model ile
|
|
26
|
+
bağlı olduğu bir değişkeni belirleyin ve el-radio içindeki etiket değerini ayarlayın. Ayrıca, mevcut değeri parametre olarak alan bir
|
|
27
|
+
değişiklik olayı sağlar.
|
|
26
28
|
</p>
|
|
27
29
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
28
|
-
<el-
|
|
29
|
-
<el-
|
|
30
|
-
<el-
|
|
31
|
-
<el-
|
|
32
|
-
|
|
33
|
-
<el-checkbox label="selected and disabled" disabled></el-checkbox>
|
|
34
|
-
</el-checkbox-group>
|
|
30
|
+
<el-radio-group v-model="radio">
|
|
31
|
+
<el-radio :label="3">Seçenek A</el-radio>
|
|
32
|
+
<el-radio :label="6">Seçenek B</el-radio>
|
|
33
|
+
<el-radio :label="9">Seçenek C</el-radio>
|
|
34
|
+
</el-radio-group>
|
|
35
35
|
</div>
|
|
36
36
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
37
37
|
<p class="text-xs">
|
|
38
|
+
Örnek Kullanım:
|
|
38
39
|
<code>
|
|
39
|
-
<el-
|
|
40
|
-
B
|
|
41
|
-
</code>
|
|
42
|
-
</p>
|
|
43
|
-
</div>
|
|
44
|
-
</section>
|
|
45
|
-
|
|
46
|
-
<section>
|
|
47
|
-
<h2>Indeterminate</h2>
|
|
48
|
-
<p class="p-lg-c my-6">
|
|
49
|
-
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
|
|
50
|
-
içerisindeki tüm seçenekleri aynı anda kontrol etmesini sağlamak için kullanışlıdır.
|
|
51
|
-
</p>
|
|
52
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
53
|
-
<el-checkbox :indeterminate="isIndeterminate" v-model="checkAll" @change="handleCheckAllChange">Check all</el-checkbox>
|
|
54
|
-
<el-checkbox-group v-model="checkedCities" @change="handleCheckedCitiesChange">
|
|
55
|
-
<el-checkbox v-for="city in cities" :label="city" :key="city">{{ city }}</el-checkbox>
|
|
56
|
-
</el-checkbox-group>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
59
|
-
<p class="text-xs">
|
|
60
|
-
<code>
|
|
61
|
-
<el-date-picker v-model="input" type="daterange" align="left" start-placeholder="Start" end-placeholder="End"
|
|
62
|
-
default-value=""></el-date-picker>
|
|
40
|
+
<el-radio-group v-model="radio"> <el-radio :label="3">Seçenek A</el-radio> <el-radio :label="6">Seçenek
|
|
41
|
+
B</el-radio> </el-radio-group>
|
|
63
42
|
</code>
|
|
64
43
|
</p>
|
|
65
44
|
</div>
|