@timus-networks/theme 1.0.19 → 1.0.20

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.
@@ -0,0 +1,153 @@
1
+ <template>
2
+ <div class="pt-8 pb-16 flex gap-12 flex-col">
3
+ <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.
9
+ </p>
10
+ <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>
13
+ </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>
16
+ </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>
19
+ </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>
22
+ </el-popover>
23
+ </div>
24
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
25
+ <p class="text-xs">
26
+ <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;
29
+ </code>
30
+ </p>
31
+ </div>
32
+ </section>
33
+
34
+ <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.
39
+ </p>
40
+ <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>
42
+ </div>
43
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
44
+ <p class="text-xs">
45
+ <code>
46
+ &lt;el-time-select v-model=&quot;value&quot; :picker-options=&quot;{ start: '08:30', step: '00:15', end: '18:30'
47
+ }&quot;&gt;&lt;/el-time-select&gt;
48
+ </code>
49
+ </p>
50
+ </div>
51
+ </section>
52
+
53
+ <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.
58
+ </p>
59
+ <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">
62
+ </el-time-picker>
63
+ </div>
64
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
65
+ <p class="text-xs">
66
+ <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;
69
+ </code>
70
+ </p>
71
+ </div>
72
+ </section>
73
+
74
+ <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.
79
+ </p>
80
+ <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' }">
82
+ </el-time-select>
83
+ <el-time-select
84
+ placeholder="End time"
85
+ v-model="endTime"
86
+ :picker-options="{ start: '08:30', step: '00:15', end: '18:30', minTime: startTime }"
87
+ >
88
+ </el-time-select>
89
+ </div>
90
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
91
+ <p class="text-xs">
92
+ <code>
93
+ &lt;el-time-select v-model=&quot;startTime&quot; :picker-options=&quot;{ start: '08:30', step: '00:15', end: '18:30'
94
+ }&quot;&gt;&lt;/el-time-select&gt;
95
+ </code>
96
+ </p>
97
+ </div>
98
+ </section>
99
+
100
+ <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.
105
+ </p>
106
+ <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">
109
+ </el-time-picker>
110
+ </div>
111
+ <div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
112
+ <p class="text-xs">
113
+ <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;
116
+ </code>
117
+ </p>
118
+ </div>
119
+ </section>
120
+ </div>
121
+ </template>
122
+ <script>
123
+ import Vue from 'vue';
124
+
125
+ export default Vue.extend({
126
+ name: 'TimusButtonSample',
127
+ data() {
128
+ return {
129
+ value: '',
130
+ value1: new Date(2016, 9, 10, 18, 40),
131
+ value2: new Date(2016, 9, 10, 18, 40),
132
+ startTime: '',
133
+ endTime: '',
134
+ };
135
+ },
136
+ methods: {
137
+ handleChange(value) {
138
+ console.log(value);
139
+ },
140
+ },
141
+ computed: {
142
+ gridSize() {
143
+ const grids = {
144
+ 5: 'grid-cols-5',
145
+ 6: 'grid-cols-6',
146
+ 7: 'grid-cols-7',
147
+ 8: 'grid-cols-8',
148
+ };
149
+ return grids;
150
+ },
151
+ },
152
+ });
153
+ </script>
@@ -4,11 +4,14 @@
4
4
  <el-tab-pane label="Button" name="first"><ThemeButtons></ThemeButtons></el-tab-pane>
5
5
  <el-tab-pane label="Typography" name="second"><ThemeTypo></ThemeTypo></el-tab-pane>
6
6
  <el-tab-pane label="Inputs" name="third"><ThemeInputs></ThemeInputs></el-tab-pane>
7
- <el-tab-pane label="Task" name="fourth"><ThemeForm></ThemeForm>></el-tab-pane>
7
+ <el-tab-pane label="Numbers" name="fourth"><ThemeInputNumbers></ThemeInputNumbers></el-tab-pane>
8
+ <el-tab-pane label="TimePicker" name="five"><ThemeTimePicker></ThemeTimePicker></el-tab-pane>
9
+ <el-tab-pane label="Form" name="six"><ThemeForm></ThemeForm>></el-tab-pane>
8
10
  </el-tabs>
9
11
  </div>
10
12
  </template>
11
13
  <script>
14
+ import ThemeInputNumbers from './ThemeInputNumbers.vue';
12
15
  import ThemeInputs from './ThemeInputs.vue';
13
16
 
14
17
  export default {
@@ -22,6 +25,6 @@ export default {
22
25
  console.log(tab, event);
23
26
  },
24
27
  },
25
- components: { ThemeInputs },
28
+ components: { ThemeInputs, ThemeInputNumbers },
26
29
  };
27
30
  </script>