@timus-networks/theme 1.0.21 → 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.
Files changed (46) hide show
  1. package/components-js/ThemeAlert.vue +76 -0
  2. package/components-js/ThemeAvatar.vue +55 -0
  3. package/components-js/ThemeBadge.vue +86 -0
  4. package/components-js/ThemeButtons.vue +2 -2
  5. package/components-js/ThemeCascader.vue +337 -0
  6. package/components-js/ThemeCheckbox.d.ts +2 -0
  7. package/components-js/ThemeCheckbox.vue +143 -0
  8. package/components-js/ThemeForm.vue +50 -182
  9. package/components-js/ThemeInputs.vue +0 -51
  10. package/components-js/ThemeLink.vue +91 -0
  11. package/components-js/ThemeLogo.vue +57 -0
  12. package/components-js/ThemeRadio.d.ts +2 -0
  13. package/components-js/ThemeRadio.vue +124 -0
  14. package/components-js/ThemeSelect.vue +232 -0
  15. package/components-js/ThemeTable.vue +245 -0
  16. package/components-js/ThemeTag.vue +142 -0
  17. package/components-js/ThemeTimePicker.vue +376 -43
  18. package/components-js/ThemeToggle.vue +122 -0
  19. package/components-js/ThemeTooltip.vue +189 -0
  20. package/components-js/TimusSamples.vue +33 -20
  21. package/components-js/exporter.js +5 -5
  22. package/components-ts/ThemeAlert.vue +76 -0
  23. package/components-ts/ThemeAvatar.vue +55 -0
  24. package/components-ts/ThemeBadge.vue +86 -0
  25. package/components-ts/ThemeButtons.vue +2 -2
  26. package/components-ts/ThemeCascader.vue +337 -0
  27. package/components-ts/ThemeCheckbox.vue +146 -0
  28. package/components-ts/ThemeForm.vue +50 -183
  29. package/components-ts/ThemeInputs.vue +0 -51
  30. package/components-ts/ThemeLink.vue +91 -0
  31. package/components-ts/ThemeLogo.vue +57 -0
  32. package/components-ts/ThemeRadio.vue +127 -0
  33. package/components-ts/ThemeSelect.vue +232 -0
  34. package/components-ts/ThemeTable.vue +245 -0
  35. package/components-ts/ThemeTag.vue +142 -0
  36. package/components-ts/ThemeTimePicker.vue +376 -43
  37. package/components-ts/ThemeToggle.vue +122 -0
  38. package/components-ts/ThemeTooltip.vue +189 -0
  39. package/components-ts/TimusSamples.vue +33 -20
  40. package/components-ts/exporter.js +5 -5
  41. package/index.d.ts +3 -1
  42. package/logo/timus-icon.svg +17 -0
  43. package/logo/timus-logo.svg +22 -0
  44. package/module.js +6 -2
  45. package/output/main.css +1 -1
  46. package/package.json +40 -40
@@ -0,0 +1,142 @@
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">Tag 1</el-tag>
10
+ <el-tag type="success">Tag 2</el-tag>
11
+ <el-tag type="info">Tag 3</el-tag>
12
+ <el-tag type="warning">Tag 4</el-tag>
13
+ <el-tag type="danger">Tag 5</el-tag>
14
+ </div>
15
+ <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
16
+ <p class="text-xs">
17
+ <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
18
+ </p>
19
+ </div>
20
+ </section>
21
+
22
+ <section>
23
+ <h1>Removable</h1>
24
+ <p class="p-lg my-6">
25
+ 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.
26
+ </p>
27
+ <div class="grid grid-flow-col auto-cols-max gap-4">
28
+ <el-tag v-for="tag in tags" :key="tag.name" closable :type="tag.type">
29
+ {{ tag.name }}
30
+ </el-tag>
31
+ </div>
32
+ <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
33
+ <p class="text-xs">
34
+ <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
35
+ </p>
36
+ </div>
37
+ </section>
38
+
39
+ <section>
40
+ <h1>Sizes</h1>
41
+ <p class="p-lg my-6">Besides default size, Tag component provides three additional sizes for you to choose among different scenarios.</p>
42
+ <div class="grid grid-flow-col auto-cols-max gap-4">
43
+ <el-tag>Default</el-tag>
44
+ <el-tag size="large">Large</el-tag>
45
+ <el-tag size="medium">Medium</el-tag>
46
+ <el-tag size="small">Small</el-tag>
47
+ <el-tag size="mini">Mini</el-tag>
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
+
56
+ <section>
57
+ <h1>Edit Dynamically</h1>
58
+ <p class="p-lg my-6">You can use the close event to add and remove tag dynamically.</p>
59
+ <div class="grid grid-flow-col auto-cols-max gap-4">
60
+ <el-tag :key="tag" v-for="tag in dynamicTags" closable :disable-transitions="true" @close="handleClose(tag)">
61
+ {{ tag }}
62
+ </el-tag>
63
+ <el-input
64
+ class="input-new-tag"
65
+ v-if="inputVisible"
66
+ v-model="inputValue"
67
+ ref="saveTagInput"
68
+ size="mini"
69
+ @keyup.enter.native="handleInputConfirm"
70
+ @blur="handleInputConfirm"
71
+ >
72
+ </el-input>
73
+ <el-button v-else class="button-new-tag" size="small" @click="showInput">+ New Tag</el-button>
74
+ </div>
75
+ <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
76
+ <p class="text-xs">
77
+ <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
78
+ </p>
79
+ </div>
80
+ </section>
81
+ </div>
82
+ </template>
83
+ <script>
84
+ import Vue from 'vue';
85
+
86
+ export default Vue.extend({
87
+ name: 'TimusButtonSample',
88
+ computed: {
89
+ gridSize() {
90
+ const grids = {
91
+ 5: 'grid-cols-5',
92
+ 6: 'grid-cols-6',
93
+ 7: 'grid-cols-7',
94
+ 8: 'grid-cols-8',
95
+ };
96
+ return grids;
97
+ },
98
+ },
99
+ data() {
100
+ return {
101
+ dynamicTags: ['Tag 1', 'Tag 2', 'Tag 3'],
102
+ inputVisible: false,
103
+ inputValue: '',
104
+ tags: [
105
+ { name: 'Tag 1', type: '' },
106
+ { name: 'Tag 2', type: 'success' },
107
+ { name: 'Tag 3', type: 'info' },
108
+ { name: 'Tag 4', type: 'warning' },
109
+ { name: 'Tag 5', type: 'danger' },
110
+ ],
111
+ items: [
112
+ { type: '', label: 'Tag 1' },
113
+ { type: 'success', label: 'Tag 2' },
114
+ { type: 'info', label: 'Tag 3' },
115
+ { type: 'danger', label: 'Tag 4' },
116
+ { type: 'warning', label: 'Tag 5' },
117
+ ],
118
+ };
119
+ },
120
+ methods: {
121
+ handleClose(tag) {
122
+ this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
123
+ },
124
+
125
+ showInput() {
126
+ this.inputVisible = true;
127
+ this.$nextTick((_) => {
128
+ this.$refs.saveTagInput.$refs.input.focus();
129
+ });
130
+ },
131
+
132
+ handleInputConfirm() {
133
+ let inputValue = this.inputValue;
134
+ if (inputValue) {
135
+ this.dynamicTags.push(inputValue);
136
+ }
137
+ this.inputVisible = false;
138
+ this.inputValue = '';
139
+ },
140
+ },
141
+ });
142
+ </script>
@@ -1,44 +1,92 @@
1
1
  <template>
2
2
  <div class="pt-8 pb-16 flex gap-12 flex-col">
3
+ <h1>Popover</h1>
3
4
  <section>
4
- <h1>Popover</h1>
5
- <p class="p-lg my-6">
6
- Popover bileşeni, kullanıcı tıkladığında veya üzerine geldiğinde ek bilgileri veya eylemleri göstermek için kullanılır. Örneğinizde, farklı
7
- yönlere (right, bottom, top, left) yerleştirilmiş dört popover var. Her bir popover, içeriğini ve başlığını göstermek için bir tetikleyici
8
- düğme (el-button) kullanır.
5
+ <h2>Basic Usage</h2>
6
+ <p class="p-md-c my-6">Hover on the dropdown menu to unfold it for more actions.</p>
7
+ <div class="grid grid-flow-col auto-cols-max gap-4">
8
+ <el-dropdown trigger="click">
9
+ <span class="el-dropdown-link"> Dropdown List<i class="el-icon-arrow-down el-icon--right"></i> </span>
10
+ <el-dropdown-menu slot="dropdown">
11
+ <el-dropdown-item>Action 1</el-dropdown-item>
12
+ <el-dropdown-item>Action 2</el-dropdown-item>
13
+ <el-dropdown-item>Action 3</el-dropdown-item>
14
+ <el-dropdown-item disabled>Action 4</el-dropdown-item>
15
+ <el-dropdown-item divided>Action 5</el-dropdown-item>
16
+ </el-dropdown-menu>
17
+ </el-dropdown>
18
+ <el-dropdown trigger="click">
19
+ <el-button type="primary"> Dropdown List<i class="el-icon-arrow-down el-icon--right"></i> </el-button>
20
+ <el-dropdown-menu slot="dropdown">
21
+ <el-dropdown-item>Action 1</el-dropdown-item>
22
+ <el-dropdown-item>Action 2</el-dropdown-item>
23
+ <el-dropdown-item>Action 3</el-dropdown-item>
24
+ <el-dropdown-item>Action 4</el-dropdown-item>
25
+ <el-dropdown-item>Action 5</el-dropdown-item>
26
+ </el-dropdown-menu>
27
+ </el-dropdown>
28
+ <el-dropdown split-button type="primary">
29
+ Dropdown List
30
+ <el-dropdown-menu slot="dropdown">
31
+ <el-dropdown-item>Action 1</el-dropdown-item>
32
+ <el-dropdown-item>Action 2</el-dropdown-item>
33
+ <el-dropdown-item>Action 3</el-dropdown-item>
34
+ <el-dropdown-item>Action 4</el-dropdown-item>
35
+ <el-dropdown-item>Action 5</el-dropdown-item>
36
+ </el-dropdown-menu>
37
+ </el-dropdown>
38
+ </div>
39
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
40
+ <p class="text-xs">
41
+ <code>
42
+ &lt;el-popover placement=&quot;right&quot; title=&quot;Başlık&quot; trigger=&quot;click&quot;&gt; &lt;el-button
43
+ slot=&quot;reference&quot;&gt;Tıkla&lt;/el-button&gt; &lt;/el-popover&gt;
44
+ </code>
45
+ </p>
46
+ </div>
47
+ </section>
48
+
49
+ <h1>Popover</h1>
50
+ <section>
51
+ <h2>Temel Kullanım</h2>
52
+ <p class="p-md-c my-6">
53
+ Popover bileşeni, kullanıcının üzerine geldiğinde veya tıkladığında ek bilgileri veya eylemleri görüntülemek için kullanılır. Örneğinizde,
54
+ farklı yönlere (sağ, alt, üst, sol) yerleştirilmiş dört popover örneği bulunmaktadır. Her bir popover, içeriğini ve başlığını göstermek için
55
+ bir tetikleyici düğme (el-button) kullanmaktadır.
9
56
  </p>
10
57
  <div class="grid grid-flow-col auto-cols-max gap-4">
11
- <el-popover placement="right" title="Title" width="200" trigger="click" content="this is content, this is content, this is content">
12
- <el-button slot="reference">Right</el-button>
58
+ <el-popover placement="right" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
59
+ <el-button slot="reference">Sağ</el-button>
13
60
  </el-popover>
14
- <el-popover placement="bottom" title="Title" width="200" trigger="click" content="this is content, this is content, this is content">
15
- <el-button slot="reference">Bottom</el-button>
61
+ <el-popover placement="bottom" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
62
+ <el-button slot="reference">Alt</el-button>
16
63
  </el-popover>
17
- <el-popover placement="top" title="Title" width="200" trigger="click" content="this is content, this is content, this is content">
18
- <el-button slot="reference">Top</el-button>
64
+ <el-popover placement="top" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
65
+ <el-button slot="reference">Üst</el-button>
19
66
  </el-popover>
20
- <el-popover placement="left" title="Title" width="200" trigger="click" content="this is content, this is content, this is content">
21
- <el-button slot="reference">Left</el-button>
67
+ <el-popover placement="left" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
68
+ <el-button slot="reference">Sol</el-button>
22
69
  </el-popover>
23
70
  </div>
24
71
  <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
25
72
  <p class="text-xs">
26
73
  <code>
27
- &lt;el-popover placement=&quot;right&quot; title=&quot;Popover Title&quot; trigger=&quot;click&quot;&gt; &lt;el-button
28
- slot=&quot;reference&quot;&gt;Click Me&lt;/el-button&gt; &lt;/el-popover&gt;
74
+ &lt;el-popover placement=&quot;right&quot; title=&quot;Başlık&quot; trigger=&quot;click&quot;&gt; &lt;el-button
75
+ slot=&quot;reference&quot;&gt;Tıkla&lt;/el-button&gt; &lt;/el-popover&gt;
29
76
  </code>
30
77
  </p>
31
78
  </div>
32
79
  </section>
33
80
 
81
+ <h1>TimePicker</h1>
34
82
  <section>
35
- <h1>Fixed time picker</h1>
36
- <p class="p-lg my-6">
37
- Fixed Time Picker, kullanıcının sabit zaman aralıklarından birini seçmesine olanak tanır. Bu örnekte, saat 08:30 ile 18:30 arasında 15
38
- dakikalık adımlarla sabit zaman dilimleri belirlenmiştir. Kullanıcı bu zamanlardan birini seçebilir.
83
+ <h2>Fixed time picker</h2>
84
+ <p class="p-md-c my-6">
85
+ Sabit Zaman Seçici, DateTimePicker bileşeninin bir parçasıdır ve kullanıcının belirli bir zaman aralığını seçmesine olanak tanır. DatePicker
86
+ ve TimePicker'dan türetilmiştir ve kullanımı oldukça basittir.
39
87
  </p>
40
88
  <div class="grid grid-flow-col auto-cols-max gap-4">
41
- <el-time-select v-model="value" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }" placeholder="Select time"> </el-time-select>
89
+ <el-time-select v-model="value" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }" placeholder="Zaman Seçin"> </el-time-select>
42
90
  </div>
43
91
  <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
44
92
  <p class="text-xs">
@@ -51,37 +99,38 @@
51
99
  </section>
52
100
 
53
101
  <section>
54
- <h1>Arbitrary time picker</h1>
55
- <p class="p-lg my-6">
56
- Arbitrary Time Picker, kullanıcıya belirli bir zaman aralığında serbestçe zaman seçme imkanı sunar. Örneğinizde, seçilebilir zaman aralığı
57
- 18:30 - 20:30 arasındadır. Kullanıcılar bu zaman aralığı içinde herhangi bir zamanı seçebilirler.
102
+ <h2>Arbitrary time picker</h2>
103
+ <p class="p-md-c my-6">
104
+ Keyfi Zaman Seçici, etiket kullanarak el-time-picker'ı kullanmanıza ve seçilebilir zaman aralığını belirleyerek zamanı sınırlamanıza olanak
105
+ tanır. Varsayılan olarak, zamanı seçmek için fare tekerleğini kullanabilirsiniz. Alternatif olarak, arrow-control özelliği
106
+ etkinleştirildiğinde kontrol oklarını kullanabilirsiniz.
58
107
  </p>
59
108
  <div class="grid grid-flow-col auto-cols-max gap-4">
60
- <el-time-picker v-model="value1" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="Arbitrary time"> </el-time-picker>
61
- <el-time-picker arrow-control v-model="value2" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="Arbitrary time">
109
+ <el-time-picker v-model="value1" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="Zaman Seçin"> </el-time-picker>
110
+ <el-time-picker arrow-control v-model="value2" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="Zaman Seçin">
62
111
  </el-time-picker>
63
112
  </div>
64
113
  <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
65
114
  <p class="text-xs">
66
115
  <code>
67
- &lt;el-time-picker v-model=&quot;value&quot; :picker-options=&quot;{ selectableRange: '18:30:00 - 20:30:00'
68
- }&quot;&gt;&lt;/el-time-picker&gt;
116
+ &lt;el-time-picker v-model=&quot;value1&quot; :picker-options=&quot;{ selectableRange: '18:30:00 - 20:30:00' }&quot;
117
+ placeholder=&quot;Zaman Seçin&quot;&gt;&lt;/el-time-picker&gt;
69
118
  </code>
70
119
  </p>
71
120
  </div>
72
121
  </section>
73
122
 
74
123
  <section>
75
- <h1>Fixed time range</h1>
76
- <p class="p-lg my-6">
77
- Bu bileşen, kullanıcıya sabit bir zaman aralığında başlangıç ve bitiş zamanları seçme olanağı sunar. İki el-time-select bileşeni kullanılarak,
78
- kullanıcılar belirli bir zaman aralığı içinde başlangıç ve bitiş zamanlarını seçebilirler.
124
+ <h2>Fixed time range</h2>
125
+ <p class="p-md-c my-6">
126
+ Sabit Zaman Aralığı Seçici, belirli bir başlangıç ve bitiş zamanı arasında zaman seçmenizi sağlar. Özellikle etkinlik başlangıç ve bitiş
127
+ zamanları gibi durumlar için uygundur. Başlangıç ve bitiş zamanlarını kolayca belirleyebilir ve özelleştirebilirsiniz.
79
128
  </p>
80
129
  <div class="grid grid-flow-col auto-cols-max gap-4">
81
- <el-time-select placeholder="Start time" v-model="startTime" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }">
130
+ <el-time-select placeholder="Başlangıç zamanı" v-model="startTime" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }">
82
131
  </el-time-select>
83
132
  <el-time-select
84
- placeholder="End time"
133
+ placeholder="Bitiş zamanı"
85
134
  v-model="endTime"
86
135
  :picker-options="{ start: '08:30', step: '00:15', end: '18:30', minTime: startTime }"
87
136
  >
@@ -90,7 +139,7 @@
90
139
  <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
91
140
  <p class="text-xs">
92
141
  <code>
93
- &lt;el-time-select v-model=&quot;startTime&quot; :picker-options=&quot;{ start: '08:30', step: '00:15', end: '18:30'
142
+ &lt;el-time-select v-model=&quot;value&quot; :picker-options=&quot;{ start: '08:30', step: '00:15', end: '18:30'
94
143
  }&quot;&gt;&lt;/el-time-select&gt;
95
144
  </code>
96
145
  </p>
@@ -98,21 +147,179 @@
98
147
  </section>
99
148
 
100
149
  <section>
101
- <h1>Arbitrary time range</h1>
102
- <p class="p-lg my-6">
103
- Arbitrary Time Range bileşeni, kullanıcıya serbestçe bir zaman aralığı seçme imkanı tanır. is-range özelliği sayesinde, kullanıcılar başlangıç
104
- ve bitiş zamanlarını serbestçe seçebilirler. Bu, zaman aralıklı işlemler için idealdir.
150
+ <h2>Arbitrary time range</h2>
151
+ <p class="p-md-c my-6">
152
+ Keyfi Zaman Aralığı Seçici, isteğe bağlı bir zaman aralığı seçmenizi sağlar. Bu, örneğin randevu veya etkinlikler için belirli bir başlangıç
153
+ ve bitiş zamanı seçmeniz gerektiğinde kullanışlıdır. Başlangıç ve bitiş zamanlarını kolayca belirleyebilir ve özelleştirebilirsiniz.
105
154
  </p>
106
155
  <div class="grid grid-flow-col auto-cols-max gap-4">
107
- <el-time-picker is-range v-model="value1" range-separator="To" start-placeholder="Start time" end-placeholder="End time"> </el-time-picker>
108
- <el-time-picker is-range arrow-control v-model="value2" range-separator="To" start-placeholder="Start time" end-placeholder="End time">
156
+ <el-time-picker is-range v-model="arb1" range-separator="den" start-placeholder="Başlangıç zamanı" end-placeholder="Bitiş zamanı">
157
+ </el-time-picker>
158
+ <el-time-picker
159
+ is-range
160
+ arrow-control
161
+ v-model="arb2"
162
+ range-separator="den"
163
+ start-placeholder="Başlangıç zamanı"
164
+ end-placeholder="Bitiş zamanı"
165
+ >
109
166
  </el-time-picker>
110
167
  </div>
111
168
  <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
112
169
  <p class="text-xs">
113
170
  <code>
114
- &lt;el-time-picker is-range v-model=&quot;value&quot; start-placeholder=&quot;Start time&quot; end-placeholder=&quot;End
115
- time&quot;&gt;&lt;/el-time-picker&gt;
171
+ &lt;el-time-picker is-range v-model="arb1" range-separator="den" start-placeholder="Başlangıç zamanı" end-placeholder="Bitiş zamanı">
172
+ &lt;/el-time-picker>
173
+ </code>
174
+ </p>
175
+ </div>
176
+ </section>
177
+
178
+ <h1>DatePicker</h1>
179
+ <section>
180
+ <h2>Enter Date</h2>
181
+ <p class="p-md-c my-6">
182
+ Tarih Seçme bileşeni, kullanıcıların takvimden tarih seçmelerini sağlayan kullanışlı bir araçtır. Bu bileşen, özellikle web uygulamalarında
183
+ tarih seçimi gerektiren durumlarda kullanışlıdır. Kullanıcılar, takvim arayüzü üzerinden bir tarih seçebilir ve seçilen tarih, ilgili uygulama
184
+ işlemleri için kullanılabilir.
185
+ </p>
186
+ <div class="grid grid-flow-col auto-cols-max gap-4">
187
+ <el-date-picker v-model="value1" type="date" placeholder="Bir gün seçin"> </el-date-picker>
188
+ <el-date-picker v-model="value2" type="date" placeholder="Bir gün seçin" :picker-options="pickerOptions"> </el-date-picker>
189
+ </div>
190
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
191
+ <p class="text-xs">
192
+ <code>
193
+ &lt;el-date-picker v-model=&quot;value1&quot; type=&quot;date&quot; placeholder=&quot;Bir gün seçin&quot;&gt;&lt;/el-date-picker&gt;
194
+ </code>
195
+ </p>
196
+ </div>
197
+ </section>
198
+
199
+ <section>
200
+ <h2>Other measurements</h2>
201
+ <p class="p-md-c my-6">
202
+ Bu bileşen, farklı ölçülerde tarih seçmenizi sağlar. Hafta, ay, yıl ve daha fazlasını seçebilirsiniz. Özelleştirilebilir formatlama
203
+ seçenekleri ile istediğiniz türde tarihleri seçebilirsiniz.
204
+ </p>
205
+ <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 xxl:grid-flow-col auto-cols-max gap-4">
206
+ <el-date-picker class="w-full" v-model="dtp1" type="week" format="Week WW" placeholder="Pick a week"> </el-date-picker>
207
+ <el-date-picker class="w-full" v-model="dtp2" type="month" placeholder="Pick a month"> </el-date-picker>
208
+ <el-date-picker class="w-full" v-model="dtp3" type="year" placeholder="Pick a year"> </el-date-picker>
209
+ <el-date-picker class="w-full" type="dates" v-model="dtp4" placeholder="Pick one or more dates"> </el-date-picker>
210
+ <el-date-picker class="w-full" type="months" v-model="dtp5" placeholder="Pick one or more months"> </el-date-picker>
211
+ <el-date-picker class="w-full" type="years" v-model="dtp6" placeholder="Pick one or more years"> </el-date-picker>
212
+ </div>
213
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
214
+ <p class="text-xs">
215
+ <code>
216
+ &lt;el-date-picker class="w-full" v-model="dtp1" type="week" format="Hafta WW" placeholder="Bir hafta seçin">&lt;/el-date-picker>
217
+ </code>
218
+ </p>
219
+ </div>
220
+ </section>
221
+
222
+ <section>
223
+ <h2>Date Range</h2>
224
+ <p class="p-md-c my-6">Tarih aralığı seçici, bir başlangıç ve bitiş tarihi seçmenize olanak tanır.</p>
225
+ <div class="grid grid-flow-col auto-cols-max gap-4">
226
+ <el-date-picker v-model="datr1" type="daterange" range-separator="To" start-placeholder="Start date" end-placeholder="End date">
227
+ </el-date-picker>
228
+ <el-date-picker
229
+ v-model="datr2"
230
+ type="daterange"
231
+ align="right"
232
+ unlink-panels
233
+ range-separator="To"
234
+ start-placeholder="Start date"
235
+ end-placeholder="End date"
236
+ :picker-options="pickerOptions"
237
+ >
238
+ </el-date-picker>
239
+ </div>
240
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
241
+ <p class="text-xs">
242
+ <code>
243
+ &lt;el-date-picker v-model="value1" type="daterange" range-separator=" - " start-placeholder="Başlangıç tarihi" end-placeholder="Bitiş
244
+ tarihi">&lt;/el-date-picker>
245
+ </code>
246
+ </p>
247
+ </div>
248
+ </section>
249
+
250
+ <section>
251
+ <h2>Month Range</h2>
252
+ <p class="p-md-c my-6">Ay aralığı seçici, bir başlangıç ve bitiş ayı seçmenize olanak tanır.</p>
253
+ <div class="grid grid-flow-col auto-cols-max gap-4">
254
+ <el-date-picker v-model="value1" type="monthrange" range-separator=" - " start-placeholder="Başlangıç ayı" end-placeholder="Bitiş ayı">
255
+ </el-date-picker>
256
+ <el-date-picker
257
+ v-model="value2"
258
+ type="monthrange"
259
+ align="right"
260
+ unlink-panels
261
+ range-separator=" - "
262
+ start-placeholder="Başlangıç ayı"
263
+ end-placeholder="Bitiş ayı"
264
+ :picker-options="monthOptions"
265
+ >
266
+ </el-date-picker>
267
+ </div>
268
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
269
+ <p class="text-xs">
270
+ <code>
271
+ &lt;el-date-picker v-model="value1" type="monthrange" range-separator=" - " start-placeholder="Başlangıç ayı" end-placeholder="Bitiş
272
+ ayı">&lt;/el-date-picker>
273
+ </code>
274
+ </p>
275
+ </div>
276
+ </section>
277
+
278
+ <h1>DateTimePicker</h1>
279
+ <section>
280
+ <h2>Date and time</h2>
281
+ <p class="p-md-c my-6">
282
+ DateTimePicker, kullanıcıların tarih ve saat bilgisini seçmelerini sağlayan bir bileşendir. Bu bileşen, DatePicker ve TimePicker
283
+ bileşenlerinden türetilmiştir ve tarih ile saat seçme işlemini tek bir bileşende birleştirir. Daha fazla ayrıntı için pickerOptions ve diğer
284
+ özellikler hakkında bilgi almak için DatePicker ve TimePicker dokümantasyonlarına başvurabilirsiniz.
285
+ </p>
286
+ <div class="grid grid-flow-col auto-cols-max gap-4">
287
+ <el-date-picker v-model="dat1" type="datetime" placeholder="Select date and time"> </el-date-picker>
288
+ <el-date-picker v-model="dat2" type="datetime" placeholder="Select date and time" :picker-options="dataAndTimeOptions"> </el-date-picker>
289
+ <el-date-picker v-model="dat3" type="datetime" placeholder="Select date and time" default-time="12:00:00"> </el-date-picker>
290
+ </div>
291
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
292
+ <p class="text-xs">
293
+ <code> &lt;el-date-picker v-model="dat1" type="datetime" placeholder="Tarih ve saat seçin">&lt;/el-date-picker> </code>
294
+ </p>
295
+ </div>
296
+ </section>
297
+
298
+ <section>
299
+ <h2>Date and time range</h2>
300
+ <p class="p-md-c my-6">
301
+ Tarih ve Saat Aralığı Seçici (DateTimePicker), kullanıcılara belirli bir zaman dilimini seçme olanağı sunar. Bu bileşen, özellikle randevu
302
+ veya etkinlik planlaması gibi durumlar için kullanışlıdır. Kullanıcılar başlangıç ve bitiş tarihini veya saati belirleyebilirler.
303
+ </p>
304
+ <div class="grid grid-flow-col auto-cols-max gap-4">
305
+ <el-date-picker v-model="datr1" type="datetimerange" range-separator="To" start-placeholder="Start date" end-placeholder="End date">
306
+ </el-date-picker>
307
+ <el-date-picker
308
+ v-model="datr2"
309
+ type="datetimerange"
310
+ :picker-options="dateAndTimeRangePickerOption"
311
+ range-separator="To"
312
+ start-placeholder="Start date"
313
+ end-placeholder="End date"
314
+ align="right"
315
+ >
316
+ </el-date-picker>
317
+ </div>
318
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
319
+ <p class="text-xs">
320
+ <code>
321
+ &lt;el-date-picker v-model="datr1" type="datetimerange" range-separator="den" start-placeholder="Başlangıç tarihi" end-placeholder="Bitiş
322
+ tarihi">&lt;/el-date-picker>
116
323
  </code>
117
324
  </p>
118
325
  </div>
@@ -129,8 +336,134 @@ export default Vue.extend({
129
336
  value: '',
130
337
  value1: new Date(2016, 9, 10, 18, 40),
131
338
  value2: new Date(2016, 9, 10, 18, 40),
339
+ arb1: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
340
+ arb2: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
132
341
  startTime: '',
133
342
  endTime: '',
343
+ dataAndTimeOptions: {
344
+ shortcuts: [
345
+ {
346
+ text: 'Today',
347
+ onClick(picker) {
348
+ picker.$emit('pick', new Date());
349
+ },
350
+ },
351
+ {
352
+ text: 'Yesterday',
353
+ onClick(picker) {
354
+ const date = new Date();
355
+ date.setTime(date.getTime() - 3600 * 1000 * 24);
356
+ picker.$emit('pick', date);
357
+ },
358
+ },
359
+ {
360
+ text: 'A week ago',
361
+ onClick(picker) {
362
+ const date = new Date();
363
+ date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
364
+ picker.$emit('pick', date);
365
+ },
366
+ },
367
+ ],
368
+ },
369
+ dat1: '',
370
+ dat2: '',
371
+ dat3: '',
372
+ dateAndTimeRangePickerOption: {
373
+ shortcuts: [
374
+ {
375
+ text: 'Last week',
376
+ onClick(picker) {
377
+ const end = new Date();
378
+ const start = new Date();
379
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
380
+ picker.$emit('pick', [start, end]);
381
+ },
382
+ },
383
+ {
384
+ text: 'Last month',
385
+ onClick(picker) {
386
+ const end = new Date();
387
+ const start = new Date();
388
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
389
+ picker.$emit('pick', [start, end]);
390
+ },
391
+ },
392
+ {
393
+ text: 'Last 3 months',
394
+ onClick(picker) {
395
+ const end = new Date();
396
+ const start = new Date();
397
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
398
+ picker.$emit('pick', [start, end]);
399
+ },
400
+ },
401
+ ],
402
+ },
403
+ datr1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
404
+ datr2: '',
405
+ monthOptions: {
406
+ shortcuts: [
407
+ {
408
+ text: 'This month',
409
+ onClick(picker) {
410
+ picker.$emit('pick', [new Date(), new Date()]);
411
+ },
412
+ },
413
+ {
414
+ text: 'This year',
415
+ onClick(picker) {
416
+ const end = new Date();
417
+ const start = new Date(new Date().getFullYear(), 0);
418
+ picker.$emit('pick', [start, end]);
419
+ },
420
+ },
421
+ {
422
+ text: 'Last 6 months',
423
+ onClick(picker) {
424
+ const end = new Date();
425
+ const start = new Date();
426
+ start.setMonth(start.getMonth() - 6);
427
+ picker.$emit('pick', [start, end]);
428
+ },
429
+ },
430
+ ],
431
+ },
432
+ pickerOptions: {
433
+ shortcuts: [
434
+ {
435
+ text: 'Today',
436
+ onClick(picker) {
437
+ picker.$emit('pick', new Date());
438
+ },
439
+ },
440
+ {
441
+ text: 'Yesterday',
442
+ onClick(picker) {
443
+ const date = new Date();
444
+ date.setTime(date.getTime() - 3600 * 1000 * 24);
445
+ picker.$emit('pick', date);
446
+ },
447
+ },
448
+ {
449
+ text: 'A week ago',
450
+ onClick(picker) {
451
+ const date = new Date();
452
+ date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
453
+ picker.$emit('pick', date);
454
+ },
455
+ },
456
+ ],
457
+ },
458
+ value1: '',
459
+ value2: '',
460
+ value3: '',
461
+ dtp1: '',
462
+ dtp2: '',
463
+ dtp3: '',
464
+ dtp4: '',
465
+ dtp5: '',
466
+ dtp6: '',
134
467
  };
135
468
  },
136
469
  methods: {