@oruga-ui/theme-oruga 0.2.1 → 0.2.2

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 (49) hide show
  1. package/dist/oruga-full.css +9 -6
  2. package/dist/oruga-full.min.css +1 -1
  3. package/dist/oruga.css +9 -6
  4. package/dist/oruga.min.css +1 -1
  5. package/dist/scss/components/_sidebar.scss +4 -2
  6. package/dist/scss/components/_steps.scss +5 -0
  7. package/dist/scss/components/_taginput.scss +0 -5
  8. package/dist/scss/utils/_root.scss +6 -2
  9. package/dist/theme.js +2 -1
  10. package/package.json +28 -30
  11. package/src/assets/scss/components/_sidebar.scss +4 -2
  12. package/src/assets/scss/components/_steps.scss +5 -0
  13. package/src/assets/scss/components/_taginput.scss +0 -5
  14. package/src/assets/scss/utils/_root.scss +6 -2
  15. package/src/App.vue +0 -105
  16. package/src/components/Autocomplete.vue +0 -606
  17. package/src/components/Button.vue +0 -80
  18. package/src/components/Carousel.vue +0 -295
  19. package/src/components/Checkbox.vue +0 -135
  20. package/src/components/Collapse.vue +0 -134
  21. package/src/components/Datepicker.vue +0 -282
  22. package/src/components/Datetimepicker.vue +0 -127
  23. package/src/components/Dropdown.vue +0 -329
  24. package/src/components/Field.vue +0 -235
  25. package/src/components/Icon.vue +0 -66
  26. package/src/components/Input.vue +0 -129
  27. package/src/components/Loading.vue +0 -70
  28. package/src/components/Menu.vue +0 -42
  29. package/src/components/Modal.vue +0 -230
  30. package/src/components/Notification.vue +0 -136
  31. package/src/components/Pagination.vue +0 -96
  32. package/src/components/Radio.vue +0 -111
  33. package/src/components/Select.vue +0 -155
  34. package/src/components/Sidebar.vue +0 -73
  35. package/src/components/Skeleton.vue +0 -75
  36. package/src/components/Slider.vue +0 -226
  37. package/src/components/Steps.vue +0 -233
  38. package/src/components/Switch.vue +0 -137
  39. package/src/components/Table.vue +0 -278
  40. package/src/components/Tabs.vue +0 -209
  41. package/src/components/Taginput.vue +0 -507
  42. package/src/components/Timepicker.vue +0 -122
  43. package/src/components/Tooltip.vue +0 -187
  44. package/src/components/Upload.vue +0 -66
  45. package/src/main.ts +0 -29
  46. package/src/plugins/theme.ts +0 -1
  47. package/src/router/index.ts +0 -39
  48. package/src/views/Home.vue +0 -24
  49. package/types/index.d.ts +0 -1
@@ -1,282 +0,0 @@
1
- <script setup lang="ts">
2
- import { computed, onMounted, ref } from "vue";
3
-
4
- const today = new Date();
5
- const thisMonth = today.getMonth();
6
- const thisYear = today.getFullYear();
7
- const events = [
8
- new Date(thisYear, thisMonth, 2),
9
- new Date(thisYear, thisMonth, 6),
10
- {
11
- date: new Date(thisYear, thisMonth, 6),
12
- type: "info",
13
- },
14
- {
15
- date: new Date(thisYear, thisMonth, 8),
16
- type: "danger",
17
- },
18
- {
19
- date: new Date(thisYear, thisMonth, 10),
20
- type: "success",
21
- },
22
- {
23
- date: new Date(thisYear, thisMonth, 10),
24
- type: "link",
25
- },
26
- new Date(thisYear, thisMonth, 12),
27
- {
28
- date: new Date(thisYear, thisMonth, 12),
29
- type: "warning",
30
- },
31
- {
32
- date: new Date(thisYear, thisMonth, 16),
33
- type: "danger",
34
- },
35
- new Date(thisYear, thisMonth, 20),
36
- {
37
- date: new Date(thisYear, thisMonth, 29),
38
- type: "success",
39
- },
40
- {
41
- date: new Date(thisYear, thisMonth, 29),
42
- type: "warning",
43
- },
44
- {
45
- date: new Date(thisYear, thisMonth, 29),
46
- type: "info",
47
- },
48
- ];
49
-
50
- const months = [
51
- { name: "January", value: 0 },
52
- { name: "February", value: 1 },
53
- { name: "March", value: 2 },
54
- { name: "April", value: 3 },
55
- { name: "May", value: 4 },
56
- { name: "June", value: 5 },
57
- { name: "July", value: 6 },
58
- { name: "August", value: 7 },
59
- { name: "September", value: 8 },
60
- { name: "October", value: 9 },
61
- { name: "November", value: 10 },
62
- { name: "December", value: 11 },
63
- ];
64
-
65
- const showWeekNumber = ref(false);
66
- const locale = ref(); // Browser locale
67
-
68
- const bars = ref(false);
69
- const indicators = computed((): string => (bars.value ? "bars" : "dots"));
70
-
71
- const selected = ref(new Date());
72
- const selectedString = computed(() =>
73
- selected.value ? selected.value.toDateString() : "",
74
- );
75
-
76
- const date = ref<Date | null>(new Date());
77
- const multiple = ref([]);
78
- const range = ref([]);
79
-
80
- const minDate = new Date(
81
- today.getFullYear(),
82
- today.getMonth(),
83
- today.getDate() - 7,
84
- );
85
- const maxDate = new Date(
86
- today.getFullYear(),
87
- today.getMonth(),
88
- today.getDate() + 7,
89
- );
90
-
91
- const month = ref();
92
-
93
- function selectMonth(option: { name: string; value: number }) {
94
- if (!option || !date.value) return;
95
-
96
- date.value.setMonth(option.value);
97
- }
98
-
99
- onMounted(() => {
100
- month.value = months.filter(
101
- (item) => item.value == date.value?.getMonth(),
102
- )[0].name;
103
- });
104
- const datepicker = ref<any>(null);
105
- </script>
106
-
107
- <template>
108
- <section>
109
- <h2>Datepicker Demo</h2>
110
- <hr />
111
- </section>
112
-
113
- <section>
114
- <h3>Base</h3>
115
-
116
- <o-field grouped>
117
- <o-field>
118
- <o-select v-model="locale" placeholder="Locale">
119
- <option :value="undefined"></option>
120
- <option value="de-DE">de-DE</option>
121
- <option value="en-CA">en-CA</option>
122
- <option value="en-GB">en-GB</option>
123
- <option value="en-US">en-US</option>
124
- <option value="es-ES">es-ES</option>
125
- <option value="es-MX">es-MX</option>
126
- <option value="fr-CA">fr-CA</option>
127
- <option value="fr-FR">fr-FR</option>
128
- <option value="it-IT">it-IT</option>
129
- <option value="ja-JP">ja-JP</option>
130
- <option value="pt-BR">pt-BR</option>
131
- <option value="ru-RU">ru-RU</option>
132
- </o-select>
133
- </o-field>
134
- <o-field>
135
- <o-switch v-model="showWeekNumber" label="Show week number" />
136
- </o-field>
137
- </o-field>
138
-
139
- <o-field label="Select a date">
140
- <o-datepicker
141
- v-model="selected"
142
- :show-week-number="showWeekNumber"
143
- :locale="locale"
144
- placeholder="Click to select..."
145
- icon="calendar"
146
- :events="events"
147
- :indicators="indicators"
148
- trap-focus />
149
- </o-field>
150
- <p><b>Selected:</b> {{ selected }}</p>
151
- </section>
152
-
153
- <section>
154
- <h3>Min/Max date</h3>
155
-
156
- <o-field label="Select a date">
157
- <o-datepicker
158
- placeholder="Click to select..."
159
- icon="calendar"
160
- :min-date="minDate"
161
- :max-date="maxDate" />
162
- </o-field>
163
- </section>
164
-
165
- <section>
166
- <h3>Range</h3>
167
-
168
- <o-field label="Select a date">
169
- <o-datepicker
170
- v-model="range"
171
- :show-week-number="showWeekNumber"
172
- :locale="locale"
173
- placeholder="Click to select..."
174
- icon="calendar"
175
- trap-focus
176
- range />
177
- </o-field>
178
- <p><b>Selected:</b> {{ range }}</p>
179
- </section>
180
-
181
- <section>
182
- <h3>Multiple</h3>
183
-
184
- <o-field label="Select a date">
185
- <o-datepicker
186
- v-model="multiple"
187
- multiple
188
- placeholder="Click to select..." />
189
- </o-field>
190
- <p><b>Selected:</b> {{ multiple }}</p>
191
- </section>
192
-
193
- <section>
194
- <h3>Trigger</h3>
195
-
196
- <o-field label="Select a date" grouped>
197
- <o-datepicker v-model="selected">
198
- <template #trigger>
199
- <o-button icon-left="calendar" type="primary" />
200
- </template>
201
- </o-datepicker>
202
- <o-input v-model="selectedString" readonly expanded />
203
- </o-field>
204
- </section>
205
-
206
- <section>
207
- <h3>Programmatically</h3>
208
-
209
- <o-field>
210
- <o-datepicker ref="datepicker" expanded placeholder="Select a date" />
211
-
212
- <o-button
213
- icon-left="calendar"
214
- type="primary"
215
- @click="datepicker?.toggle()" />
216
- </o-field>
217
- </section>
218
-
219
- <section>
220
- <h3>Slots</h3>
221
-
222
- <o-field label="Select a date">
223
- <o-datepicker
224
- v-model="date"
225
- :first-day-of-week="1"
226
- placeholder="Click to select...">
227
- <template #header>
228
- <o-field>
229
- <o-autocomplete
230
- v-model="month"
231
- root-class="flex-grow-1"
232
- open-on-focus
233
- readonly
234
- :data="months"
235
- field="name"
236
- expanded
237
- @select="selectMonth" />
238
- <o-button disabled>{{ date?.getFullYear() }}</o-button>
239
- </o-field>
240
- </template>
241
- <template #footer>
242
- <div class="d-flex justify-content-end mt-2">
243
- <o-button variant="primary" @click="date = new Date()">
244
- <o-icon icon="calendar" />
245
- <span>Today</span>
246
- </o-button>
247
-
248
- <o-button variant="danger" @click="date = null">
249
- <o-icon icon="times" />
250
- <span>Clear</span>
251
- </o-button>
252
- </div>
253
- </template>
254
- </o-datepicker>
255
- </o-field>
256
- </section>
257
-
258
- <section>
259
- <h3>Events</h3>
260
-
261
- <o-field>
262
- <o-switch v-model="bars" label="Bars" />
263
- </o-field>
264
-
265
- <o-datepicker
266
- v-model="date"
267
- inline
268
- :events="events"
269
- :indicators="indicators" />
270
- </section>
271
-
272
- <section>
273
- <h3>Month picker</h3>
274
-
275
- <o-field label="Select a month">
276
- <o-datepicker
277
- placeholder="Click to select..."
278
- icon="calendar"
279
- type="month" />
280
- </o-field>
281
- </section>
282
- </template>
@@ -1,127 +0,0 @@
1
- <script setup lang="ts">
2
- import { ref } from "vue";
3
-
4
- const showWeekNumber = ref(false);
5
- const enableSeconds = ref(false);
6
- const hourFormat = ref(); // Browser locale
7
- const locale = ref(); // Browser locale
8
-
9
- const datetime = ref<Date | null>(new Date());
10
-
11
- const minDatetime = ref(null);
12
- const maxDatetime = ref(null);
13
- </script>
14
-
15
- <template>
16
- <section>
17
- <h2>Datetimepicker Demo</h2>
18
- <hr />
19
- </section>
20
-
21
- <section>
22
- <h2>Base</h2>
23
-
24
- <o-field grouped>
25
- <o-field>
26
- <o-switch v-model="showWeekNumber" label="Show week number" />
27
- </o-field>
28
- <o-field>
29
- <o-switch v-model="enableSeconds" label="Enable seconds" />
30
- </o-field>
31
- <o-field label="Locale">
32
- <o-select v-model="locale">
33
- <option :value="undefined"></option>
34
- <option value="de-DE">de-DE</option>
35
- <option value="en-CA">en-CA</option>
36
- <option value="en-GB">en-GB</option>
37
- <option value="en-US">en-US</option>
38
- <option value="es-ES">es-ES</option>
39
- <option value="es-MX">es-MX</option>
40
- <option value="fr-CA">fr-CA</option>
41
- <option value="fr-FR">fr-FR</option>
42
- <option value="it-IT">it-IT</option>
43
- <option value="ja-JP">ja-JP</option>
44
- <option value="pt-BR">pt-BR</option>
45
- <option value="ru-RU">ru-RU</option>
46
- <option value="zn-CN">zn-CN</option>
47
- </o-select>
48
- </o-field>
49
- <o-field label="Hour format">
50
- <o-select v-model="hourFormat">
51
- <option :value="undefined"></option>
52
- <option value="12">12</option>
53
- <option value="24">24</option>
54
- </o-select>
55
- </o-field>
56
- </o-field>
57
-
58
- <o-field label="Select datetime">
59
- <o-datetimepicker
60
- rounded
61
- placeholder="Click to select..."
62
- icon="calendar"
63
- :locale="locale"
64
- :datepicker="{ showWeekNumber }"
65
- :timepicker="{ enableSeconds, hourFormat }" />
66
- </o-field>
67
- </section>
68
-
69
- <section>
70
- <h3>Inline</h3>
71
-
72
- <o-datetimepicker v-model="datetime" inline />
73
- </section>
74
-
75
- <section>
76
- <h3>Footer</h3>
77
-
78
- <o-field label="Select datetime">
79
- <o-datetimepicker v-model="datetime" placeholder="Click to select...">
80
- <template #footer>
81
- <div class="d-flex justify-content-center mt-3">
82
- <o-button variant="primary" @click="datetime = new Date()">
83
- <o-icon icon="calendar" />
84
- <span>Today</span>
85
- </o-button>
86
- <o-button variant="danger" @click="datetime = null">
87
- <o-icon icon="times" />
88
- <span>Clear</span>
89
- </o-button>
90
- </div>
91
- </template>
92
- </o-datetimepicker>
93
- </o-field>
94
- </section>
95
-
96
- <section>
97
- <h3>Min/Max Datetime</h3>
98
-
99
- <o-field grouped>
100
- <o-field label="Min Datetime">
101
- <o-datetimepicker
102
- v-model="minDatetime"
103
- rounded
104
- placeholder="Click to select..."
105
- icon="calendar"
106
- editable />
107
- </o-field>
108
- <o-field label="Max Datetime">
109
- <o-datetimepicker
110
- v-model="maxDatetime"
111
- rounded
112
- placeholder="Click to select..."
113
- icon="calendar"
114
- editable />
115
- </o-field>
116
- </o-field>
117
-
118
- <o-field label="Select datetime">
119
- <o-datetimepicker
120
- rounded
121
- placeholder="Click to select..."
122
- icon="calendar"
123
- :min-datetime="minDatetime"
124
- :max-datetime="maxDatetime" />
125
- </o-field>
126
- </section>
127
- </template>