@oruga-ui/theme-oruga 0.0.1 → 0.2.0
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/dist/oruga-full.css +530 -388
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +364 -225
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_autocomplete.scss +0 -62
- package/dist/scss/components/_carousel.scss +10 -6
- package/dist/scss/components/_checkbox.scss +4 -4
- package/dist/scss/components/_datepicker.scss +11 -11
- package/dist/scss/components/_dropdown.scss +144 -31
- package/dist/scss/components/_field.scss +8 -8
- package/dist/scss/components/_icon.scss +3 -1
- package/dist/scss/components/_input.scss +38 -40
- package/dist/scss/components/_menu.scss +68 -68
- package/dist/scss/components/_pagination.scss +22 -22
- package/dist/scss/components/_radio.scss +8 -10
- package/dist/scss/components/_sidebar.scss +147 -42
- package/dist/scss/components/_switch.scss +4 -2
- package/dist/scss/components/_table.scss +14 -10
- package/dist/scss/components/_taginput.scss +163 -0
- package/dist/scss/components/_tooltip.scss +422 -218
- package/dist/scss/oruga-common.scss +1 -1
- package/dist/scss/oruga.scss +15 -20
- package/dist/scss/utils/_helpers.scss +3 -7
- package/dist/scss/utils/_variables.scss +0 -1
- package/package.json +28 -28
- package/src/App.vue +1 -0
- package/src/assets/scss/components/_autocomplete.scss +0 -62
- package/src/assets/scss/components/_carousel.scss +10 -6
- package/src/assets/scss/components/_checkbox.scss +4 -4
- package/src/assets/scss/components/_datepicker.scss +11 -11
- package/src/assets/scss/components/_dropdown.scss +144 -31
- package/src/assets/scss/components/_field.scss +8 -8
- package/src/assets/scss/components/_icon.scss +3 -1
- package/src/assets/scss/components/_input.scss +38 -40
- package/src/assets/scss/components/_menu.scss +68 -68
- package/src/assets/scss/components/_pagination.scss +22 -22
- package/src/assets/scss/components/_radio.scss +8 -10
- package/src/assets/scss/components/_sidebar.scss +147 -42
- package/src/assets/scss/components/_switch.scss +4 -2
- package/src/assets/scss/components/_table.scss +14 -10
- package/src/assets/scss/components/_taginput.scss +163 -0
- package/src/assets/scss/components/_tooltip.scss +422 -218
- package/src/assets/scss/oruga-common.scss +1 -1
- package/src/assets/scss/oruga.scss +15 -20
- package/src/assets/scss/utils/_helpers.scss +3 -7
- package/src/assets/scss/utils/_variables.scss +0 -1
- package/src/components/Autocomplete.vue +7 -7
- package/src/components/Button.vue +28 -28
- package/src/components/Carousel.vue +19 -20
- package/src/components/Checkbox.vue +43 -42
- package/src/components/Collapse.vue +3 -1
- package/src/components/Datepicker.vue +7 -10
- package/src/components/Datetimepicker.vue +4 -4
- package/src/components/Dropdown.vue +146 -101
- package/src/components/Field.vue +35 -43
- package/src/components/Icon.vue +1 -1
- package/src/components/Input.vue +9 -1
- package/src/components/Loading.vue +13 -14
- package/src/components/Menu.vue +42 -0
- package/src/components/Modal.vue +59 -0
- package/src/components/Notification.vue +6 -6
- package/src/components/Pagination.vue +5 -6
- package/src/components/Radio.vue +55 -39
- package/src/components/Sidebar.vue +34 -17
- package/src/components/Skeleton.vue +43 -25
- package/src/components/Slider.vue +2 -2
- package/src/components/Steps.vue +13 -14
- package/src/components/Switch.vue +22 -19
- package/src/components/Table.vue +30 -37
- package/src/components/Tabs.vue +3 -2
- package/src/components/Taginput.vue +14 -14
- package/src/components/Timepicker.vue +4 -6
- package/src/components/Tooltip.vue +54 -16
- package/dist/scss/components/_inputitems.scss +0 -175
- package/src/assets/scss/components/_inputitems.scss +0 -175
|
@@ -10,12 +10,6 @@ $sizes: () !default;
|
|
|
10
10
|
@import "utils/variables";
|
|
11
11
|
@import "utils/helpers";
|
|
12
12
|
|
|
13
|
-
// Autocomplete
|
|
14
|
-
$whitelist: add-to-whitelist(
|
|
15
|
-
"autocomplete-menu-background",
|
|
16
|
-
"autocomplete-menu-zindex"
|
|
17
|
-
);
|
|
18
|
-
|
|
19
13
|
// Button
|
|
20
14
|
$whitelist: add-to-whitelist(
|
|
21
15
|
"button-background-color",
|
|
@@ -52,12 +46,12 @@ $whitelist: add-to-whitelist(
|
|
|
52
46
|
|
|
53
47
|
// Datepicker
|
|
54
48
|
$whitelist: add-to-whitelist(
|
|
55
|
-
"datepicker-item-disabled-color",
|
|
56
|
-
"datepicker-item-selectable-color",
|
|
57
49
|
"datepicker-btn-border-color",
|
|
58
50
|
"datepicker-btn-color",
|
|
51
|
+
"datepicker-item-disabled-color",
|
|
59
52
|
"datepicker-item-hovered-background-color",
|
|
60
53
|
"datepicker-item-hovered-color",
|
|
54
|
+
"datepicker-item-selectable-color",
|
|
61
55
|
"datepicker-item-selected-background-color",
|
|
62
56
|
"datepicker-item-selected-color",
|
|
63
57
|
"datepicker-item-selected-within-background-color",
|
|
@@ -66,10 +60,11 @@ $whitelist: add-to-whitelist(
|
|
|
66
60
|
|
|
67
61
|
// Dropdown
|
|
68
62
|
$whitelist: add-to-whitelist(
|
|
69
|
-
"dropdown-menu-background",
|
|
70
|
-
"dropdown-mobile-overlay-color",
|
|
71
63
|
"dropdown-disabled-opacity",
|
|
64
|
+
"dropdown-menu-background",
|
|
72
65
|
"dropdown-menu-zindex",
|
|
66
|
+
"dropdown-menu-spacer",
|
|
67
|
+
"dropdown-mobile-overlay-color",
|
|
73
68
|
"dropdown-mobile-overlay-zindex",
|
|
74
69
|
"dropdown-mobile-zindex",
|
|
75
70
|
"dropdown-item-active-background-color",
|
|
@@ -83,16 +78,6 @@ $whitelist: add-to-whitelist("icon-spin-duration");
|
|
|
83
78
|
// Input
|
|
84
79
|
$whitelist: add-to-whitelist();
|
|
85
80
|
|
|
86
|
-
// Inputitems
|
|
87
|
-
$whitelist: add-to-whitelist(
|
|
88
|
-
"inputitems-border-style",
|
|
89
|
-
"inputitems-border-color",
|
|
90
|
-
"inputitems-border-width",
|
|
91
|
-
"inputitems-color",
|
|
92
|
-
"inputitems-item-color",
|
|
93
|
-
"inputitems-item-background-color"
|
|
94
|
-
);
|
|
95
|
-
|
|
96
81
|
// Modal
|
|
97
82
|
$whitelist: add-to-whitelist(
|
|
98
83
|
"modal-zindex",
|
|
@@ -182,6 +167,16 @@ $whitelist: add-to-whitelist(
|
|
|
182
167
|
"tabs-link-color"
|
|
183
168
|
);
|
|
184
169
|
|
|
170
|
+
// Taginput
|
|
171
|
+
$whitelist: add-to-whitelist(
|
|
172
|
+
"taginput-border-style",
|
|
173
|
+
"taginput-border-color",
|
|
174
|
+
"taginput-border-width",
|
|
175
|
+
"taginput-color",
|
|
176
|
+
"taginput-item-color",
|
|
177
|
+
"taginput-item-background-color"
|
|
178
|
+
);
|
|
179
|
+
|
|
185
180
|
// Timepicker
|
|
186
181
|
$whitelist: add-to-whitelist("timepicker-select-placeholder-opacity");
|
|
187
182
|
|
|
@@ -94,16 +94,12 @@
|
|
|
94
94
|
/// By default is `false`, if `true` it allows to bypass whitelist and set the value
|
|
95
95
|
/// @return {string} the variable or null if not in whitelist when $css-vars == false.
|
|
96
96
|
@function variable($name, $value, $forceval: false) {
|
|
97
|
-
@if
|
|
98
|
-
@if
|
|
97
|
+
@if is-empty-whitelist() or is-in-whitelist($name) or $forceval {
|
|
98
|
+
@if $css-vars {
|
|
99
99
|
@return var(--#{$prefix}#{$name}, #{$value});
|
|
100
|
-
}
|
|
101
|
-
} @else if $sass-vars {
|
|
102
|
-
@if is-empty-whitelist() or is-in-whitelist($name) {
|
|
100
|
+
} @else {
|
|
103
101
|
@return #{$value};
|
|
104
102
|
}
|
|
105
|
-
} @else if $forceval {
|
|
106
|
-
@return #{$value};
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
@return null;
|
|
@@ -510,8 +510,8 @@ function getMoreAsyncData() {
|
|
|
510
510
|
<h3>Objects array</h3>
|
|
511
511
|
|
|
512
512
|
<o-field grouped group-multiline>
|
|
513
|
-
<o-switch v-model="openOnFocus"
|
|
514
|
-
<o-switch v-model="keepFirst"
|
|
513
|
+
<o-switch v-model="openOnFocus" label="Open dropdown on focus" />
|
|
514
|
+
<o-switch v-model="keepFirst" label="Keep-first" />
|
|
515
515
|
</o-field>
|
|
516
516
|
|
|
517
517
|
<o-field label="Find a name">
|
|
@@ -538,7 +538,7 @@ function getMoreAsyncData() {
|
|
|
538
538
|
open-on-focus
|
|
539
539
|
:data="filteredDataGroups"
|
|
540
540
|
field="user.first_name"
|
|
541
|
-
@select="(option:any) => (selectedGroups = option)" />
|
|
541
|
+
@select="(option: any) => (selectedGroups = option)" />
|
|
542
542
|
</o-field>
|
|
543
543
|
<p><b>Selected:</b> {{ selectedGroups }}</p>
|
|
544
544
|
</section>
|
|
@@ -552,11 +552,11 @@ function getMoreAsyncData() {
|
|
|
552
552
|
placeholder="e.g. Fight Club"
|
|
553
553
|
field="title"
|
|
554
554
|
:loading="isFetching"
|
|
555
|
-
check-
|
|
556
|
-
:debounce
|
|
557
|
-
@
|
|
555
|
+
check-scroll
|
|
556
|
+
:debounce="500"
|
|
557
|
+
@input="getAsyncData"
|
|
558
558
|
@select="(option: any) => (selectedInfinite = option)"
|
|
559
|
-
@
|
|
559
|
+
@scroll-end="getMoreAsyncData">
|
|
560
560
|
<template #default="props">
|
|
561
561
|
<div class="media">
|
|
562
562
|
<div class="media-left">
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
<h3>Base</h3>
|
|
9
9
|
|
|
10
10
|
<div class="buttons">
|
|
11
|
-
<o-button variant="primary"
|
|
12
|
-
<o-button variant="secondary"
|
|
13
|
-
<o-button variant="info"
|
|
14
|
-
<o-button variant="success"
|
|
15
|
-
<o-button variant="warning"
|
|
16
|
-
<o-button variant="danger"
|
|
11
|
+
<o-button variant="primary" label="Primary" />
|
|
12
|
+
<o-button variant="secondary" label="Secondary" />
|
|
13
|
+
<o-button variant="info" label="Info" />
|
|
14
|
+
<o-button variant="success" label="Success" />
|
|
15
|
+
<o-button variant="warning" label="Warning" />
|
|
16
|
+
<o-button variant="danger" label="Danger" />
|
|
17
17
|
</div>
|
|
18
18
|
</section>
|
|
19
19
|
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
<h3>States</h3>
|
|
22
22
|
|
|
23
23
|
<div class="buttons">
|
|
24
|
-
<o-button
|
|
25
|
-
<o-button disabled
|
|
26
|
-
<o-button rounded variant="light"
|
|
24
|
+
<o-button label="Normal" />
|
|
25
|
+
<o-button disabled label="Disabled" />
|
|
26
|
+
<o-button rounded variant="light" label="Rounded" />
|
|
27
27
|
</div>
|
|
28
28
|
</section>
|
|
29
29
|
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
<h3>Outlined</h3>
|
|
32
32
|
|
|
33
33
|
<div class="buttons">
|
|
34
|
-
<o-button variant="primary" outlined
|
|
35
|
-
<o-button variant="secondary" outlined
|
|
36
|
-
<o-button variant="info" outlined
|
|
37
|
-
<o-button variant="success" outlined
|
|
38
|
-
<o-button variant="warning" outlined
|
|
39
|
-
<o-button variant="danger" outlined
|
|
34
|
+
<o-button variant="primary" outlined label="Outlined" />
|
|
35
|
+
<o-button variant="secondary" outlined label="Outlined" />
|
|
36
|
+
<o-button variant="info" outlined label="Outlined" />
|
|
37
|
+
<o-button variant="success" outlined label="Outlined" />
|
|
38
|
+
<o-button variant="warning" outlined label="Outlined" />
|
|
39
|
+
<o-button variant="danger" outlined label="Outlined" />
|
|
40
40
|
</div>
|
|
41
41
|
</section>
|
|
42
42
|
|
|
@@ -44,12 +44,12 @@
|
|
|
44
44
|
<h3>Inverted</h3>
|
|
45
45
|
|
|
46
46
|
<div class="buttons">
|
|
47
|
-
<o-button variant="primary" inverted
|
|
48
|
-
<o-button variant="secondary" inverted
|
|
49
|
-
<o-button variant="info" inverted
|
|
50
|
-
<o-button variant="success" inverted
|
|
51
|
-
<o-button variant="warning" inverted
|
|
52
|
-
<o-button variant="danger" inverted
|
|
47
|
+
<o-button variant="primary" inverted label="Inverted" />
|
|
48
|
+
<o-button variant="secondary" inverted label="Inverted" />
|
|
49
|
+
<o-button variant="info" inverted label="Inverted" />
|
|
50
|
+
<o-button variant="success" inverted label="Inverted" />
|
|
51
|
+
<o-button variant="warning" inverted label="Inverted" />
|
|
52
|
+
<o-button variant="danger" inverted label="Inverted" />
|
|
53
53
|
</div>
|
|
54
54
|
</section>
|
|
55
55
|
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
<h3>Icons</h3>
|
|
58
58
|
|
|
59
59
|
<div class="buttons">
|
|
60
|
-
<o-button variant="primary" size="small" icon-left="plus"
|
|
61
|
-
<o-button variant="primary" icon-left="plus"
|
|
62
|
-
<o-button variant="primary" size="medium" icon-left="plus"
|
|
63
|
-
<o-button variant="primary" size="large" icon-left="plus"
|
|
60
|
+
<o-button variant="primary" size="small" icon-left="plus" label="Add" />
|
|
61
|
+
<o-button variant="primary" icon-left="plus" label="Add" />
|
|
62
|
+
<o-button variant="primary" size="medium" icon-left="plus" label="Add" />
|
|
63
|
+
<o-button variant="primary" size="large" icon-left="plus" label="Add" />
|
|
64
64
|
</div>
|
|
65
65
|
|
|
66
66
|
<div class="buttons">
|
|
67
|
-
<o-button variant="danger" icon-left="trash"
|
|
68
|
-
<o-button variant="danger" icon-right="trash"
|
|
67
|
+
<o-button variant="danger" icon-left="trash" label="Delete" />
|
|
68
|
+
<o-button variant="danger" icon-right="trash" label="Delete" />
|
|
69
69
|
<o-button variant="danger" icon-right="trash" />
|
|
70
70
|
</div>
|
|
71
71
|
</section>
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
<h3>Expanded</h3>
|
|
75
75
|
|
|
76
76
|
<div class="buttons">
|
|
77
|
-
<o-button variant="primary" expanded
|
|
77
|
+
<o-button variant="primary" expanded label="Expanded" />
|
|
78
78
|
</div>
|
|
79
79
|
</section>
|
|
80
80
|
</template>
|
|
@@ -42,9 +42,9 @@ const items = [
|
|
|
42
42
|
|
|
43
43
|
const carousel = ref(1);
|
|
44
44
|
const listSettings = reactive({
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
arrows: true,
|
|
46
|
+
arrowsHover: true,
|
|
47
|
+
dragable: true,
|
|
48
48
|
itemsToShow: 4,
|
|
49
49
|
itemsToList: 1,
|
|
50
50
|
repeat: false,
|
|
@@ -52,6 +52,7 @@ const listSettings = reactive({
|
|
|
52
52
|
|
|
53
53
|
const gallery = ref(false);
|
|
54
54
|
const indicatorsSettings = reactive({
|
|
55
|
+
indicators: false,
|
|
55
56
|
itemsToShow: 2,
|
|
56
57
|
breakpoints: {
|
|
57
58
|
768: {
|
|
@@ -74,7 +75,7 @@ function switchGallery(value: boolean): any {
|
|
|
74
75
|
}
|
|
75
76
|
|
|
76
77
|
const customSettings = reactive({
|
|
77
|
-
|
|
78
|
+
dragable: false,
|
|
78
79
|
autoplay: false,
|
|
79
80
|
pauseHover: false,
|
|
80
81
|
interval: 3000,
|
|
@@ -89,6 +90,7 @@ const customSettings = reactive({
|
|
|
89
90
|
<h2>Carousel Demo</h2>
|
|
90
91
|
<hr />
|
|
91
92
|
</section>
|
|
93
|
+
|
|
92
94
|
<section class="py-4 container">
|
|
93
95
|
<h3>Base</h3>
|
|
94
96
|
|
|
@@ -109,20 +111,19 @@ const customSettings = reactive({
|
|
|
109
111
|
<div class="example-component">
|
|
110
112
|
<o-field grouped group-multiline>
|
|
111
113
|
<o-field>
|
|
112
|
-
<o-switch v-model="listSettings.
|
|
114
|
+
<o-switch v-model="listSettings.arrows" label="Arrow" />
|
|
113
115
|
</o-field>
|
|
114
116
|
<o-field>
|
|
115
117
|
<o-switch
|
|
116
|
-
v-model="listSettings.
|
|
117
|
-
:disabled="!listSettings.
|
|
118
|
-
Arrow on hover
|
|
119
|
-
</o-switch>
|
|
118
|
+
v-model="listSettings.arrowsHover"
|
|
119
|
+
:disabled="!listSettings.arrows"
|
|
120
|
+
label="Arrow on hover" />
|
|
120
121
|
</o-field>
|
|
121
122
|
<o-field>
|
|
122
|
-
<o-switch v-model="listSettings.
|
|
123
|
+
<o-switch v-model="listSettings.dragable" label="Drag event" />
|
|
123
124
|
</o-field>
|
|
124
125
|
<o-field>
|
|
125
|
-
<o-switch v-model="listSettings.repeat"
|
|
126
|
+
<o-switch v-model="listSettings.repeat" label="Repeat" />
|
|
126
127
|
</o-field>
|
|
127
128
|
</o-field>
|
|
128
129
|
<o-field grouped group-multiline>
|
|
@@ -166,11 +167,11 @@ const customSettings = reactive({
|
|
|
166
167
|
<o-carousel
|
|
167
168
|
:model-value="active"
|
|
168
169
|
v-bind="indicatorsSettings"
|
|
169
|
-
as-indicator
|
|
170
170
|
@update:model-value="switchTo($event)">
|
|
171
171
|
<o-carousel-item
|
|
172
172
|
v-for="(item, i) in items"
|
|
173
173
|
:key="i"
|
|
174
|
+
clickable
|
|
174
175
|
item-class="img-indicator"
|
|
175
176
|
item-active-class="img-indicator-active">
|
|
176
177
|
<img :src="item.image" />
|
|
@@ -197,24 +198,22 @@ const customSettings = reactive({
|
|
|
197
198
|
<div class="example-component">
|
|
198
199
|
<o-field grouped group-multiline>
|
|
199
200
|
<o-field>
|
|
200
|
-
<o-switch v-model="customSettings.autoplay"
|
|
201
|
+
<o-switch v-model="customSettings.autoplay" label="Autoplay" />
|
|
201
202
|
</o-field>
|
|
202
203
|
<o-field>
|
|
203
204
|
<o-switch
|
|
204
205
|
v-model="customSettings.pauseHover"
|
|
205
|
-
:disabled="!customSettings.autoplay"
|
|
206
|
-
Pause on hover
|
|
207
|
-
</o-switch>
|
|
206
|
+
:disabled="!customSettings.autoplay"
|
|
207
|
+
label="Pause on hover" />
|
|
208
208
|
</o-field>
|
|
209
209
|
<o-field>
|
|
210
|
-
<o-switch v-model="customSettings.
|
|
210
|
+
<o-switch v-model="customSettings.dragable" label="Drag event" />
|
|
211
211
|
</o-field>
|
|
212
212
|
<o-field>
|
|
213
213
|
<o-switch
|
|
214
214
|
v-model="customSettings.repeat"
|
|
215
|
-
:disabled="!customSettings.autoplay"
|
|
216
|
-
Repeat
|
|
217
|
-
</o-switch>
|
|
215
|
+
:disabled="!customSettings.autoplay"
|
|
216
|
+
label="Repeat" />
|
|
218
217
|
</o-field>
|
|
219
218
|
</o-field>
|
|
220
219
|
<o-field grouped group-multiline>
|
|
@@ -26,10 +26,10 @@ const checkboxGroup = ref(["Flint"]);
|
|
|
26
26
|
</o-checkbox>
|
|
27
27
|
</o-field>
|
|
28
28
|
<o-field>
|
|
29
|
-
<o-checkbox :indeterminate="true"
|
|
29
|
+
<o-checkbox :indeterminate="true" label="Indeterminate" />
|
|
30
30
|
</o-field>
|
|
31
31
|
<o-field>
|
|
32
|
-
<o-checkbox disabled
|
|
32
|
+
<o-checkbox disabled label="Disabled" />
|
|
33
33
|
</o-field>
|
|
34
34
|
</section>
|
|
35
35
|
|
|
@@ -37,25 +37,25 @@ const checkboxGroup = ref(["Flint"]);
|
|
|
37
37
|
<h3>Variant</h3>
|
|
38
38
|
|
|
39
39
|
<o-field>
|
|
40
|
-
<o-checkbox :value="true"
|
|
40
|
+
<o-checkbox :value="true" label="Default" />
|
|
41
41
|
</o-field>
|
|
42
42
|
<o-field>
|
|
43
|
-
<o-checkbox :value="true" variant="primary"
|
|
43
|
+
<o-checkbox :value="true" variant="primary" label="Primary" />
|
|
44
44
|
</o-field>
|
|
45
45
|
<o-field>
|
|
46
|
-
<o-checkbox :value="true" variant="secondary"
|
|
46
|
+
<o-checkbox :value="true" variant="secondary" label="Secondary" />
|
|
47
47
|
</o-field>
|
|
48
48
|
<o-field>
|
|
49
|
-
<o-checkbox :value="true" variant="info"
|
|
49
|
+
<o-checkbox :value="true" variant="info" label="Info" />
|
|
50
50
|
</o-field>
|
|
51
51
|
<o-field>
|
|
52
|
-
<o-checkbox :value="true" variant="success"
|
|
52
|
+
<o-checkbox :value="true" variant="success" label="Success" />
|
|
53
53
|
</o-field>
|
|
54
54
|
<o-field>
|
|
55
|
-
<o-checkbox :value="true" variant="warning"
|
|
55
|
+
<o-checkbox :value="true" variant="warning" label="Warning" />
|
|
56
56
|
</o-field>
|
|
57
57
|
<o-field>
|
|
58
|
-
<o-checkbox :value="true" variant="danger"
|
|
58
|
+
<o-checkbox :value="true" variant="danger" label="Danger" />
|
|
59
59
|
</o-field>
|
|
60
60
|
</section>
|
|
61
61
|
|
|
@@ -63,35 +63,37 @@ const checkboxGroup = ref(["Flint"]);
|
|
|
63
63
|
<h3>Indeterminate</h3>
|
|
64
64
|
|
|
65
65
|
<o-field>
|
|
66
|
-
<o-checkbox indeterminate
|
|
66
|
+
<o-checkbox indeterminate label="Default Indeterminate" />
|
|
67
67
|
</o-field>
|
|
68
68
|
<o-field>
|
|
69
|
-
<o-checkbox
|
|
70
|
-
|
|
71
|
-
|
|
69
|
+
<o-checkbox
|
|
70
|
+
variant="primary"
|
|
71
|
+
indeterminate
|
|
72
|
+
label="Primary Indeterminate" />
|
|
72
73
|
</o-field>
|
|
73
74
|
<o-field>
|
|
74
|
-
<o-checkbox
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
<o-checkbox
|
|
76
|
+
variant="secondary"
|
|
77
|
+
indeterminate
|
|
78
|
+
label="Secondary Indeterminate" />
|
|
77
79
|
</o-field>
|
|
78
80
|
<o-field>
|
|
79
|
-
<o-checkbox variant="info" indeterminate
|
|
81
|
+
<o-checkbox variant="info" indeterminate label="Info Indeterminate" />
|
|
80
82
|
</o-field>
|
|
81
83
|
<o-field>
|
|
82
|
-
<o-checkbox
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
<o-checkbox
|
|
85
|
+
variant="success"
|
|
86
|
+
indeterminate
|
|
87
|
+
label="Success Indeterminate" />
|
|
85
88
|
</o-field>
|
|
86
89
|
<o-field>
|
|
87
|
-
<o-checkbox
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
<o-checkbox
|
|
91
|
+
variant="warning"
|
|
92
|
+
indeterminate
|
|
93
|
+
label="Warning Indeterminate" />
|
|
90
94
|
</o-field>
|
|
91
95
|
<o-field>
|
|
92
|
-
<o-checkbox variant="danger" indeterminate
|
|
93
|
-
Danger Indeterminate
|
|
94
|
-
</o-checkbox>
|
|
96
|
+
<o-checkbox variant="danger" indeterminate label="Danger Indeterminate" />
|
|
95
97
|
</o-field>
|
|
96
98
|
</section>
|
|
97
99
|
|
|
@@ -99,16 +101,16 @@ const checkboxGroup = ref(["Flint"]);
|
|
|
99
101
|
<h3>Size</h3>
|
|
100
102
|
|
|
101
103
|
<o-field>
|
|
102
|
-
<o-checkbox size="small"
|
|
104
|
+
<o-checkbox size="small" label="Small" />
|
|
103
105
|
</o-field>
|
|
104
106
|
<o-field>
|
|
105
|
-
<o-checkbox
|
|
107
|
+
<o-checkbox label="Default" />
|
|
106
108
|
</o-field>
|
|
107
109
|
<o-field>
|
|
108
|
-
<o-checkbox size="medium"
|
|
110
|
+
<o-checkbox size="medium" label="Medium" />
|
|
109
111
|
</o-field>
|
|
110
112
|
<o-field>
|
|
111
|
-
<o-checkbox size="large"
|
|
113
|
+
<o-checkbox size="large" label="Large" />
|
|
112
114
|
</o-field>
|
|
113
115
|
</section>
|
|
114
116
|
|
|
@@ -116,18 +118,17 @@ const checkboxGroup = ref(["Flint"]);
|
|
|
116
118
|
<h3>Array</h3>
|
|
117
119
|
|
|
118
120
|
<o-field>
|
|
119
|
-
<o-checkbox
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<o-checkbox
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
Billy
|
|
130
|
-
</o-checkbox>
|
|
121
|
+
<o-checkbox
|
|
122
|
+
v-model="checkboxGroup"
|
|
123
|
+
native-value="Silver"
|
|
124
|
+
label="Silver" />
|
|
125
|
+
<o-checkbox v-model="checkboxGroup" native-value="Flint" label="Flint" />
|
|
126
|
+
<o-checkbox v-model="checkboxGroup" native-value="Vane" label="Vane" />
|
|
127
|
+
<o-checkbox
|
|
128
|
+
v-model="checkboxGroup"
|
|
129
|
+
native-value="Billy"
|
|
130
|
+
disabled
|
|
131
|
+
label="Billy" />
|
|
131
132
|
</o-field>
|
|
132
133
|
<p><b>Selection:</b> {{ checkboxGroup }}</p>
|
|
133
134
|
</section>
|
|
@@ -94,7 +94,9 @@ article {
|
|
|
94
94
|
<style scoped lang="scss">
|
|
95
95
|
.card {
|
|
96
96
|
background-color: #fff;
|
|
97
|
-
box-shadow:
|
|
97
|
+
box-shadow:
|
|
98
|
+
0 2px 3px hsla(0, 0%, 4%, 0.1),
|
|
99
|
+
0 0 0 1px hsla(0, 0%, 4%, 0.1);
|
|
98
100
|
color: #4a4a4a;
|
|
99
101
|
max-width: 100%;
|
|
100
102
|
position: relative;
|
|
@@ -132,7 +132,7 @@ const datepicker = ref<any>(null);
|
|
|
132
132
|
</o-select>
|
|
133
133
|
</o-field>
|
|
134
134
|
<o-field>
|
|
135
|
-
<o-switch v-model="showWeekNumber"
|
|
135
|
+
<o-switch v-model="showWeekNumber" label="Show week number" />
|
|
136
136
|
</o-field>
|
|
137
137
|
</o-field>
|
|
138
138
|
|
|
@@ -145,8 +145,7 @@ const datepicker = ref<any>(null);
|
|
|
145
145
|
icon="calendar"
|
|
146
146
|
:events="events"
|
|
147
147
|
:indicators="indicators"
|
|
148
|
-
trap-focus
|
|
149
|
-
</o-datepicker>
|
|
148
|
+
trap-focus />
|
|
150
149
|
</o-field>
|
|
151
150
|
<p><b>Selected:</b> {{ selected }}</p>
|
|
152
151
|
</section>
|
|
@@ -174,8 +173,7 @@ const datepicker = ref<any>(null);
|
|
|
174
173
|
placeholder="Click to select..."
|
|
175
174
|
icon="calendar"
|
|
176
175
|
trap-focus
|
|
177
|
-
range
|
|
178
|
-
</o-datepicker>
|
|
176
|
+
range />
|
|
179
177
|
</o-field>
|
|
180
178
|
<p><b>Selected:</b> {{ range }}</p>
|
|
181
179
|
</section>
|
|
@@ -243,12 +241,12 @@ const datepicker = ref<any>(null);
|
|
|
243
241
|
<template #footer>
|
|
244
242
|
<div class="d-flex justify-content-end mt-2">
|
|
245
243
|
<o-button variant="primary" @click="date = new Date()">
|
|
246
|
-
<o-icon icon="calendar"
|
|
244
|
+
<o-icon icon="calendar" />
|
|
247
245
|
<span>Today</span>
|
|
248
246
|
</o-button>
|
|
249
247
|
|
|
250
248
|
<o-button variant="danger" @click="date = null">
|
|
251
|
-
<o-icon icon="times"
|
|
249
|
+
<o-icon icon="times" />
|
|
252
250
|
<span>Clear</span>
|
|
253
251
|
</o-button>
|
|
254
252
|
</div>
|
|
@@ -261,7 +259,7 @@ const datepicker = ref<any>(null);
|
|
|
261
259
|
<h3>Events</h3>
|
|
262
260
|
|
|
263
261
|
<o-field>
|
|
264
|
-
<o-switch v-model="bars"
|
|
262
|
+
<o-switch v-model="bars" label="Bars" />
|
|
265
263
|
</o-field>
|
|
266
264
|
|
|
267
265
|
<o-datepicker
|
|
@@ -278,8 +276,7 @@ const datepicker = ref<any>(null);
|
|
|
278
276
|
<o-datepicker
|
|
279
277
|
placeholder="Click to select..."
|
|
280
278
|
icon="calendar"
|
|
281
|
-
type="month"
|
|
282
|
-
</o-datepicker>
|
|
279
|
+
type="month" />
|
|
283
280
|
</o-field>
|
|
284
281
|
</section>
|
|
285
282
|
</template>
|
|
@@ -23,10 +23,10 @@ const maxDatetime = ref(null);
|
|
|
23
23
|
|
|
24
24
|
<o-field grouped>
|
|
25
25
|
<o-field>
|
|
26
|
-
<o-switch v-model="showWeekNumber"
|
|
26
|
+
<o-switch v-model="showWeekNumber" label="Show week number" />
|
|
27
27
|
</o-field>
|
|
28
28
|
<o-field>
|
|
29
|
-
<o-switch v-model="enableSeconds"
|
|
29
|
+
<o-switch v-model="enableSeconds" label="Enable seconds" />
|
|
30
30
|
</o-field>
|
|
31
31
|
<o-field label="Locale">
|
|
32
32
|
<o-select v-model="locale">
|
|
@@ -80,11 +80,11 @@ const maxDatetime = ref(null);
|
|
|
80
80
|
<template #footer>
|
|
81
81
|
<div class="d-flex justify-content-center mt-3">
|
|
82
82
|
<o-button variant="primary" @click="datetime = new Date()">
|
|
83
|
-
<o-icon icon="calendar"
|
|
83
|
+
<o-icon icon="calendar" />
|
|
84
84
|
<span>Today</span>
|
|
85
85
|
</o-button>
|
|
86
86
|
<o-button variant="danger" @click="datetime = null">
|
|
87
|
-
<o-icon icon="times"
|
|
87
|
+
<o-icon icon="times" />
|
|
88
88
|
<span>Clear</span>
|
|
89
89
|
</o-button>
|
|
90
90
|
</div>
|