@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.
- package/dist/oruga-full.css +9 -6
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +9 -6
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_sidebar.scss +4 -2
- package/dist/scss/components/_steps.scss +5 -0
- package/dist/scss/components/_taginput.scss +0 -5
- package/dist/scss/utils/_root.scss +6 -2
- package/dist/theme.js +2 -1
- package/package.json +28 -30
- package/src/assets/scss/components/_sidebar.scss +4 -2
- package/src/assets/scss/components/_steps.scss +5 -0
- package/src/assets/scss/components/_taginput.scss +0 -5
- package/src/assets/scss/utils/_root.scss +6 -2
- package/src/App.vue +0 -105
- package/src/components/Autocomplete.vue +0 -606
- package/src/components/Button.vue +0 -80
- package/src/components/Carousel.vue +0 -295
- package/src/components/Checkbox.vue +0 -135
- package/src/components/Collapse.vue +0 -134
- package/src/components/Datepicker.vue +0 -282
- package/src/components/Datetimepicker.vue +0 -127
- package/src/components/Dropdown.vue +0 -329
- package/src/components/Field.vue +0 -235
- package/src/components/Icon.vue +0 -66
- package/src/components/Input.vue +0 -129
- package/src/components/Loading.vue +0 -70
- package/src/components/Menu.vue +0 -42
- package/src/components/Modal.vue +0 -230
- package/src/components/Notification.vue +0 -136
- package/src/components/Pagination.vue +0 -96
- package/src/components/Radio.vue +0 -111
- package/src/components/Select.vue +0 -155
- package/src/components/Sidebar.vue +0 -73
- package/src/components/Skeleton.vue +0 -75
- package/src/components/Slider.vue +0 -226
- package/src/components/Steps.vue +0 -233
- package/src/components/Switch.vue +0 -137
- package/src/components/Table.vue +0 -278
- package/src/components/Tabs.vue +0 -209
- package/src/components/Taginput.vue +0 -507
- package/src/components/Timepicker.vue +0 -122
- package/src/components/Tooltip.vue +0 -187
- package/src/components/Upload.vue +0 -66
- package/src/main.ts +0 -29
- package/src/plugins/theme.ts +0 -1
- package/src/router/index.ts +0 -39
- package/src/views/Home.vue +0 -24
- package/types/index.d.ts +0 -1
package/src/components/Input.vue
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section>
|
|
3
|
-
<h2>Input Demo</h2>
|
|
4
|
-
<hr />
|
|
5
|
-
</section>
|
|
6
|
-
|
|
7
|
-
<section>
|
|
8
|
-
<h3>Base</h3>
|
|
9
|
-
|
|
10
|
-
<o-field label="Name">
|
|
11
|
-
<o-input expanded />
|
|
12
|
-
</o-field>
|
|
13
|
-
|
|
14
|
-
<o-field label="Email" variant="danger" message="This email is invalid">
|
|
15
|
-
<o-input type="email" value="john@" maxlength="30" expanded />
|
|
16
|
-
</o-field>
|
|
17
|
-
|
|
18
|
-
<o-field
|
|
19
|
-
label="Username"
|
|
20
|
-
variant="success"
|
|
21
|
-
message="This username is available">
|
|
22
|
-
<o-input value="johnsilver" maxlength="30" />
|
|
23
|
-
</o-field>
|
|
24
|
-
|
|
25
|
-
<o-field label="Password">
|
|
26
|
-
<o-input type="password" value="iwantmytreasure" password-reveal>
|
|
27
|
-
</o-input>
|
|
28
|
-
</o-field>
|
|
29
|
-
|
|
30
|
-
<o-field label="Message">
|
|
31
|
-
<o-input maxlength="200" type="textarea" />
|
|
32
|
-
</o-field>
|
|
33
|
-
|
|
34
|
-
<o-field>
|
|
35
|
-
<o-input placeholder="No label" />
|
|
36
|
-
</o-field>
|
|
37
|
-
|
|
38
|
-
<o-field label="Rounded">
|
|
39
|
-
<o-input placeholder="No label" rounded />
|
|
40
|
-
</o-field>
|
|
41
|
-
|
|
42
|
-
<o-field label="Disabled">
|
|
43
|
-
<o-input placeholder="Disabled" disabled />
|
|
44
|
-
</o-field>
|
|
45
|
-
</section>
|
|
46
|
-
|
|
47
|
-
<section>
|
|
48
|
-
<h3>Variants</h3>
|
|
49
|
-
|
|
50
|
-
<o-field label="Primary" variant="primary">
|
|
51
|
-
<o-input placeholder="Primary" />
|
|
52
|
-
</o-field>
|
|
53
|
-
|
|
54
|
-
<o-field label="Secondary" variant="secondary">
|
|
55
|
-
<o-input placeholder="Secondary" />
|
|
56
|
-
</o-field>
|
|
57
|
-
|
|
58
|
-
<o-field label="Success" variant="success">
|
|
59
|
-
<o-input placeholder="Success" />
|
|
60
|
-
</o-field>
|
|
61
|
-
|
|
62
|
-
<o-field label="Info" variant="info">
|
|
63
|
-
<o-input placeholder="Info" />
|
|
64
|
-
</o-field>
|
|
65
|
-
|
|
66
|
-
<o-field label="Warning" variant="warning">
|
|
67
|
-
<o-input placeholder="Warning" />
|
|
68
|
-
</o-field>
|
|
69
|
-
|
|
70
|
-
<o-field
|
|
71
|
-
label="Error"
|
|
72
|
-
variant="danger"
|
|
73
|
-
message="You can have a message too">
|
|
74
|
-
<o-input placeholder="Error" />
|
|
75
|
-
</o-field>
|
|
76
|
-
</section>
|
|
77
|
-
|
|
78
|
-
<section>
|
|
79
|
-
<h3>Sizes</h3>
|
|
80
|
-
|
|
81
|
-
<o-field>
|
|
82
|
-
<o-input placeholder="small" size="small" icon="user" />
|
|
83
|
-
</o-field>
|
|
84
|
-
|
|
85
|
-
<o-field>
|
|
86
|
-
<o-input placeholder="default" icon="user" />
|
|
87
|
-
</o-field>
|
|
88
|
-
|
|
89
|
-
<o-field>
|
|
90
|
-
<o-input placeholder="medium" size="medium" icon="user" />
|
|
91
|
-
</o-field>
|
|
92
|
-
|
|
93
|
-
<o-field>
|
|
94
|
-
<o-input placeholder="Large" size="large" icon="user" />
|
|
95
|
-
</o-field>
|
|
96
|
-
</section>
|
|
97
|
-
|
|
98
|
-
<section>
|
|
99
|
-
<h3>With Icons</h3>
|
|
100
|
-
|
|
101
|
-
<o-field>
|
|
102
|
-
<o-input
|
|
103
|
-
placeholder="Search..."
|
|
104
|
-
type="search"
|
|
105
|
-
icon="search"
|
|
106
|
-
icon-clickable>
|
|
107
|
-
</o-input>
|
|
108
|
-
</o-field>
|
|
109
|
-
|
|
110
|
-
<o-field>
|
|
111
|
-
<o-input
|
|
112
|
-
placeholder="Search..."
|
|
113
|
-
type="search"
|
|
114
|
-
icon-right="search"
|
|
115
|
-
icon-right-clickable>
|
|
116
|
-
</o-input>
|
|
117
|
-
</o-field>
|
|
118
|
-
|
|
119
|
-
<o-field>
|
|
120
|
-
<o-input
|
|
121
|
-
placeholder="Email"
|
|
122
|
-
type="email"
|
|
123
|
-
icon="envelope"
|
|
124
|
-
icon-right="times-circle"
|
|
125
|
-
icon-right-clickable>
|
|
126
|
-
</o-input>
|
|
127
|
-
</o-field>
|
|
128
|
-
</section>
|
|
129
|
-
</template>
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const isLoading = ref(false);
|
|
5
|
-
const isFullPage = ref(true);
|
|
6
|
-
const isCustomLoading = ref(false);
|
|
7
|
-
const isCustomFullPage = ref(true);
|
|
8
|
-
</script>
|
|
9
|
-
|
|
10
|
-
<template>
|
|
11
|
-
<section>
|
|
12
|
-
<h2>Loading Demo</h2>
|
|
13
|
-
<hr />
|
|
14
|
-
</section>
|
|
15
|
-
|
|
16
|
-
<section>
|
|
17
|
-
<h3>Base</h3>
|
|
18
|
-
|
|
19
|
-
<o-field>
|
|
20
|
-
<o-button
|
|
21
|
-
size="medium"
|
|
22
|
-
variant="primary"
|
|
23
|
-
label="Launch loading"
|
|
24
|
-
@click="() => (isLoading = true)" />
|
|
25
|
-
</o-field>
|
|
26
|
-
|
|
27
|
-
<o-field>
|
|
28
|
-
<o-switch v-model="isFullPage" label="Display loader over full page" />
|
|
29
|
-
</o-field>
|
|
30
|
-
|
|
31
|
-
<p style="position: relative">
|
|
32
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
33
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
34
|
-
laoreet elit
|
|
35
|
-
<o-loading
|
|
36
|
-
v-model:active="isLoading"
|
|
37
|
-
:full-page="isFullPage"
|
|
38
|
-
:cancelable="true" />
|
|
39
|
-
</p>
|
|
40
|
-
</section>
|
|
41
|
-
|
|
42
|
-
<section>
|
|
43
|
-
<h3>Base Custom Slot</h3>
|
|
44
|
-
|
|
45
|
-
<o-field>
|
|
46
|
-
<o-button
|
|
47
|
-
size="medium"
|
|
48
|
-
variant="primary"
|
|
49
|
-
label="Launch loading"
|
|
50
|
-
@click="() => (isCustomLoading = true)" />
|
|
51
|
-
</o-field>
|
|
52
|
-
<o-field>
|
|
53
|
-
<o-switch
|
|
54
|
-
v-model="isCustomFullPage"
|
|
55
|
-
label="Display loader over full page" />
|
|
56
|
-
</o-field>
|
|
57
|
-
|
|
58
|
-
<p style="position: relative">
|
|
59
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
60
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
61
|
-
laoreet elit
|
|
62
|
-
<o-loading
|
|
63
|
-
v-model:active="isCustomLoading"
|
|
64
|
-
:full-page="isCustomFullPage"
|
|
65
|
-
:cancelable="true">
|
|
66
|
-
<o-icon pack="fas" icon="sync-alt" size="large" spin />
|
|
67
|
-
</o-loading>
|
|
68
|
-
</p>
|
|
69
|
-
</section>
|
|
70
|
-
</template>
|
package/src/components/Menu.vue
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts"></script>
|
|
2
|
-
|
|
3
|
-
<template>
|
|
4
|
-
<section>
|
|
5
|
-
<h2>Menu Demo</h2>
|
|
6
|
-
<hr />
|
|
7
|
-
</section>
|
|
8
|
-
|
|
9
|
-
<section>
|
|
10
|
-
<h3>Base</h3>
|
|
11
|
-
|
|
12
|
-
<o-menu label="Menu">
|
|
13
|
-
<o-menu-item icon="info-circle" label="Info" />
|
|
14
|
-
<o-menu-item icon="cog" expanded>
|
|
15
|
-
<template #label="props">
|
|
16
|
-
Administrator
|
|
17
|
-
<o-icon :icon="props.active ? 'chevron-up' : 'chevron-down'" />
|
|
18
|
-
</template>
|
|
19
|
-
<o-menu-item icon="user" label="Users" />
|
|
20
|
-
<o-menu-item icon="mobile">
|
|
21
|
-
<template #label> Devices </template>
|
|
22
|
-
</o-menu-item>
|
|
23
|
-
<o-menu-item icon="money-bill" label="Payments" disabled />
|
|
24
|
-
</o-menu-item>
|
|
25
|
-
<o-menu-item icon="user" label="My Account">
|
|
26
|
-
<o-menu-item label="Account data" />
|
|
27
|
-
<o-menu-item label="Addresses" />
|
|
28
|
-
</o-menu-item>
|
|
29
|
-
</o-menu>
|
|
30
|
-
<o-menu>
|
|
31
|
-
<o-menu-item
|
|
32
|
-
label="Documentation"
|
|
33
|
-
icon="link"
|
|
34
|
-
tag="a"
|
|
35
|
-
target="_blank"
|
|
36
|
-
href="/documentation/" />
|
|
37
|
-
</o-menu>
|
|
38
|
-
<o-menu label="Actions">
|
|
39
|
-
<o-menu-item label="Logout" />
|
|
40
|
-
</o-menu>
|
|
41
|
-
</section>
|
|
42
|
-
</template>
|
package/src/components/Modal.vue
DELETED
|
@@ -1,230 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const isImageModalActive = ref(false);
|
|
5
|
-
const isCardModalActive = ref(false);
|
|
6
|
-
const isFullScreenModalActive = ref(false);
|
|
7
|
-
|
|
8
|
-
const tags = ref([]);
|
|
9
|
-
const value = ref(20);
|
|
10
|
-
</script>
|
|
11
|
-
|
|
12
|
-
<template>
|
|
13
|
-
<section>
|
|
14
|
-
<h2>Modal Demo</h2>
|
|
15
|
-
<hr />
|
|
16
|
-
</section>
|
|
17
|
-
|
|
18
|
-
<section>
|
|
19
|
-
<h3>Base</h3>
|
|
20
|
-
|
|
21
|
-
<div class="buttons">
|
|
22
|
-
<o-button
|
|
23
|
-
size="medium"
|
|
24
|
-
variant="primary"
|
|
25
|
-
label="Open Image Modal"
|
|
26
|
-
@click="isImageModalActive = true" />
|
|
27
|
-
|
|
28
|
-
<o-button
|
|
29
|
-
size="medium"
|
|
30
|
-
variant="primary"
|
|
31
|
-
label="Open Card Modal"
|
|
32
|
-
@click="isCardModalActive = true" />
|
|
33
|
-
|
|
34
|
-
<o-button
|
|
35
|
-
size="medium"
|
|
36
|
-
variant="primary"
|
|
37
|
-
label="Open FullScreen Modal"
|
|
38
|
-
@click="isFullScreenModalActive = true" />
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<!-- image modal -->
|
|
42
|
-
<o-modal v-model:active="isImageModalActive">
|
|
43
|
-
<p style="text-align: center">
|
|
44
|
-
<img
|
|
45
|
-
style="background-color: white"
|
|
46
|
-
src="https://avatars2.githubusercontent.com/u/66300512?s=200&v=4" />
|
|
47
|
-
</p>
|
|
48
|
-
</o-modal>
|
|
49
|
-
|
|
50
|
-
<!-- card modal -->
|
|
51
|
-
<o-modal v-model:active="isCardModalActive" :width="720" scroll="clip">
|
|
52
|
-
<div class="modal-content">
|
|
53
|
-
<div class="modal-header">
|
|
54
|
-
<h5 class="modal-title">Log in to continue using the service</h5>
|
|
55
|
-
<o-icon
|
|
56
|
-
clickable
|
|
57
|
-
native-type="button"
|
|
58
|
-
icon="times"
|
|
59
|
-
@click="isCardModalActive = false" />
|
|
60
|
-
</div>
|
|
61
|
-
<div class="modal-body">
|
|
62
|
-
<o-field label="Email">
|
|
63
|
-
<o-input
|
|
64
|
-
icon="at"
|
|
65
|
-
:has-counter="true"
|
|
66
|
-
maxlength="10"
|
|
67
|
-
placeholder="Enter Your Email" />
|
|
68
|
-
</o-field>
|
|
69
|
-
<o-field label="Password">
|
|
70
|
-
<o-input
|
|
71
|
-
icon="lock"
|
|
72
|
-
:has-counter="true"
|
|
73
|
-
maxlength="10"
|
|
74
|
-
placeholder="Enter Your Password" />
|
|
75
|
-
</o-field>
|
|
76
|
-
<o-field label="Enter some items">
|
|
77
|
-
<o-inputitems
|
|
78
|
-
v-model="tags"
|
|
79
|
-
variant="primary"
|
|
80
|
-
field="user.first_name"
|
|
81
|
-
icon="tag"
|
|
82
|
-
placeholder="Add an item"
|
|
83
|
-
keep-first />
|
|
84
|
-
</o-field>
|
|
85
|
-
<o-field label="Dark & Medium">
|
|
86
|
-
<o-slider
|
|
87
|
-
v-model="value"
|
|
88
|
-
:rounded="true"
|
|
89
|
-
size="medium"
|
|
90
|
-
variant="dark"
|
|
91
|
-
tooltip-variant="dark" />
|
|
92
|
-
</o-field>
|
|
93
|
-
<o-field>
|
|
94
|
-
<o-checkbox variant="info"> Remember me </o-checkbox>
|
|
95
|
-
</o-field>
|
|
96
|
-
</div>
|
|
97
|
-
<div class="modal-footer">
|
|
98
|
-
<o-button
|
|
99
|
-
outlined
|
|
100
|
-
variant="danger"
|
|
101
|
-
label="Close"
|
|
102
|
-
@click="isCardModalActive = false" />
|
|
103
|
-
<o-button outlined variant="primary" label="Log in" />
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</o-modal>
|
|
107
|
-
|
|
108
|
-
<!-- fullscreen modal -->
|
|
109
|
-
<o-modal
|
|
110
|
-
v-model:active="isFullScreenModalActive"
|
|
111
|
-
:width="720"
|
|
112
|
-
scroll="clip"
|
|
113
|
-
:can-cancel="['escape', 'button']"
|
|
114
|
-
full-screen>
|
|
115
|
-
<div class="modal-content h-100">
|
|
116
|
-
<div class="modal-header">
|
|
117
|
-
<h5 class="modal-title">Log in to continue using the service</h5>
|
|
118
|
-
<o-icon
|
|
119
|
-
clickable
|
|
120
|
-
native-type="button"
|
|
121
|
-
icon="times"
|
|
122
|
-
@click="isFullScreenModalActive = false" />
|
|
123
|
-
</div>
|
|
124
|
-
<div class="modal-body">
|
|
125
|
-
<o-field label="Email">
|
|
126
|
-
<o-input
|
|
127
|
-
icon="at"
|
|
128
|
-
:has-counter="true"
|
|
129
|
-
maxlength="10"
|
|
130
|
-
placeholder="Enter Your Email" />
|
|
131
|
-
</o-field>
|
|
132
|
-
<o-field label="Password">
|
|
133
|
-
<o-input
|
|
134
|
-
icon="lock"
|
|
135
|
-
:has-counter="true"
|
|
136
|
-
maxlength="10"
|
|
137
|
-
placeholder="Enter Your Password" />
|
|
138
|
-
</o-field>
|
|
139
|
-
<o-field label="Enter some items">
|
|
140
|
-
<o-inputitems
|
|
141
|
-
v-model="tags"
|
|
142
|
-
variant="primary"
|
|
143
|
-
field="user.first_name"
|
|
144
|
-
icon="tag"
|
|
145
|
-
placeholder="Add an item"
|
|
146
|
-
keep-first />
|
|
147
|
-
</o-field>
|
|
148
|
-
<o-field label="Dark & Medium">
|
|
149
|
-
<o-slider
|
|
150
|
-
v-model="value"
|
|
151
|
-
:rounded="true"
|
|
152
|
-
size="medium"
|
|
153
|
-
variant="dark"
|
|
154
|
-
tooltip-variant="dark" />
|
|
155
|
-
</o-field>
|
|
156
|
-
<o-field>
|
|
157
|
-
<o-checkbox variant="info"> Remember me </o-checkbox>
|
|
158
|
-
</o-field>
|
|
159
|
-
</div>
|
|
160
|
-
<div class="modal-footer">
|
|
161
|
-
<o-button
|
|
162
|
-
outlined
|
|
163
|
-
variant="danger"
|
|
164
|
-
label="Close"
|
|
165
|
-
@click="isFullScreenModalActive = false" />
|
|
166
|
-
<o-button outlined variant="primary" label="Log in" />
|
|
167
|
-
</div>
|
|
168
|
-
</div>
|
|
169
|
-
</o-modal>
|
|
170
|
-
</section>
|
|
171
|
-
</template>
|
|
172
|
-
|
|
173
|
-
<style lang="scss" scoped>
|
|
174
|
-
.modal-content {
|
|
175
|
-
display: flex;
|
|
176
|
-
flex-direction: column;
|
|
177
|
-
max-height: calc(100vh - 160px);
|
|
178
|
-
overflow: auto;
|
|
179
|
-
width: 100%;
|
|
180
|
-
|
|
181
|
-
@media screen and (min-width: 769px) {
|
|
182
|
-
margin: 0 auto;
|
|
183
|
-
max-height: calc(100vh - 40px);
|
|
184
|
-
width: 640px;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.modal-footer,
|
|
188
|
-
.modal-header {
|
|
189
|
-
align-items: center;
|
|
190
|
-
background-color: #f5f5f5;
|
|
191
|
-
display: flex;
|
|
192
|
-
flex-shrink: 0;
|
|
193
|
-
justify-content: flex-start;
|
|
194
|
-
padding: 20px;
|
|
195
|
-
position: relative;
|
|
196
|
-
}
|
|
197
|
-
.modal-header {
|
|
198
|
-
border-bottom: 1px solid #dbdbdb;
|
|
199
|
-
border-top-left-radius: 6px;
|
|
200
|
-
border-top-right-radius: 6px;
|
|
201
|
-
|
|
202
|
-
.modal-title {
|
|
203
|
-
color: #363636;
|
|
204
|
-
flex-grow: 1;
|
|
205
|
-
flex-shrink: 0;
|
|
206
|
-
font-size: 1.5rem;
|
|
207
|
-
line-height: 1;
|
|
208
|
-
margin: 0;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
.modal-body {
|
|
212
|
-
-webkit-overflow-scrolling: touch;
|
|
213
|
-
background-color: #fff;
|
|
214
|
-
flex-grow: 1;
|
|
215
|
-
flex-shrink: 1;
|
|
216
|
-
overflow: auto;
|
|
217
|
-
padding: 20px;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
.modal-footer {
|
|
221
|
-
border-bottom-left-radius: 6px;
|
|
222
|
-
border-bottom-right-radius: 6px;
|
|
223
|
-
border-top: 1px solid #dbdbdb;
|
|
224
|
-
|
|
225
|
-
button:not(:last-child) {
|
|
226
|
-
margin-right: 0.5em;
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
</style>
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { useOruga } from "@oruga-ui/oruga-next";
|
|
3
|
-
|
|
4
|
-
function simple() {
|
|
5
|
-
const oruga = useOruga();
|
|
6
|
-
oruga.notification.open("Something happened");
|
|
7
|
-
}
|
|
8
|
-
function success() {
|
|
9
|
-
const oruga = useOruga();
|
|
10
|
-
oruga.notification.open({
|
|
11
|
-
message: "Something happened correctly!",
|
|
12
|
-
variant: "success",
|
|
13
|
-
closable: true,
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function toast() {
|
|
17
|
-
const oruga = useOruga();
|
|
18
|
-
oruga.notification.open({
|
|
19
|
-
message: "Something happened correctly!",
|
|
20
|
-
rootClass: "toast",
|
|
21
|
-
position: "top",
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function danger() {
|
|
25
|
-
const oruga = useOruga();
|
|
26
|
-
|
|
27
|
-
oruga.notification.open({
|
|
28
|
-
message: `Something's not good, also I'm on <b>bottom</b>`,
|
|
29
|
-
position: "bottom-right",
|
|
30
|
-
variant: "danger",
|
|
31
|
-
closable: true,
|
|
32
|
-
indefinite: true,
|
|
33
|
-
ariaLive: "assertive",
|
|
34
|
-
ariaAtomic: true,
|
|
35
|
-
ariaCloseLabel: "Close",
|
|
36
|
-
onClose: () => {
|
|
37
|
-
const oruga = useOruga();
|
|
38
|
-
oruga.notification.open("Custom notification closed!");
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
</script>
|
|
43
|
-
|
|
44
|
-
<template>
|
|
45
|
-
<section>
|
|
46
|
-
<h2>Notification Demo</h2>
|
|
47
|
-
<hr />
|
|
48
|
-
</section>
|
|
49
|
-
|
|
50
|
-
<section>
|
|
51
|
-
<h3>Base</h3>
|
|
52
|
-
|
|
53
|
-
<o-notification
|
|
54
|
-
closable
|
|
55
|
-
variant="primary"
|
|
56
|
-
aria-close-label="Close notification">
|
|
57
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
58
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
59
|
-
laoreet elit
|
|
60
|
-
</o-notification>
|
|
61
|
-
<o-notification
|
|
62
|
-
closable
|
|
63
|
-
variant="secondary"
|
|
64
|
-
aria-close-label="Close notification">
|
|
65
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
66
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
67
|
-
laoreet elit
|
|
68
|
-
</o-notification>
|
|
69
|
-
<o-notification
|
|
70
|
-
closable
|
|
71
|
-
variant="info"
|
|
72
|
-
aria-close-label="Close notification">
|
|
73
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
74
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
75
|
-
laoreet elit
|
|
76
|
-
</o-notification>
|
|
77
|
-
<o-notification
|
|
78
|
-
closable
|
|
79
|
-
variant="success"
|
|
80
|
-
aria-close-label="Close notification">
|
|
81
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
82
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
83
|
-
laoreet elit
|
|
84
|
-
</o-notification>
|
|
85
|
-
<o-notification
|
|
86
|
-
closable
|
|
87
|
-
variant="warning"
|
|
88
|
-
aria-close-label="Close notification"
|
|
89
|
-
role="alert">
|
|
90
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
91
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
92
|
-
laoreet elit
|
|
93
|
-
</o-notification>
|
|
94
|
-
<o-notification
|
|
95
|
-
closable
|
|
96
|
-
variant="danger"
|
|
97
|
-
aria-close-label="Close notification"
|
|
98
|
-
role="alert">
|
|
99
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
100
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
101
|
-
laoreet elit
|
|
102
|
-
</o-notification>
|
|
103
|
-
|
|
104
|
-
<o-notification
|
|
105
|
-
closable
|
|
106
|
-
type="info"
|
|
107
|
-
variant="info"
|
|
108
|
-
aria-close-label="Close notification">
|
|
109
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id
|
|
110
|
-
fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien
|
|
111
|
-
laoreet elit
|
|
112
|
-
</o-notification>
|
|
113
|
-
</section>
|
|
114
|
-
|
|
115
|
-
<section>
|
|
116
|
-
<h3>Programmatically opening</h3>
|
|
117
|
-
|
|
118
|
-
<div class="buttons">
|
|
119
|
-
<o-button
|
|
120
|
-
label="Launch notification (default)"
|
|
121
|
-
size="medium"
|
|
122
|
-
@click="simple" />
|
|
123
|
-
<o-button
|
|
124
|
-
label="Launch notification (custom)"
|
|
125
|
-
variant="success"
|
|
126
|
-
size="medium"
|
|
127
|
-
@click="success" />
|
|
128
|
-
<o-button label="Launch toast" size="medium" @click="toast" />
|
|
129
|
-
<o-button
|
|
130
|
-
label="Launch notification (custom)"
|
|
131
|
-
variant="danger"
|
|
132
|
-
size="medium"
|
|
133
|
-
@click="danger" />
|
|
134
|
-
</div>
|
|
135
|
-
</section>
|
|
136
|
-
</template>
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const total = ref(200);
|
|
5
|
-
const current = ref(10);
|
|
6
|
-
const perPage = ref(10);
|
|
7
|
-
const rangeBefore = ref(3);
|
|
8
|
-
const rangeAfter = ref(1);
|
|
9
|
-
const order = ref("");
|
|
10
|
-
const size = ref("");
|
|
11
|
-
const isSimple = ref(false);
|
|
12
|
-
const isRounded = ref(false);
|
|
13
|
-
const prevIcon = ref("chevron-left");
|
|
14
|
-
const nextIcon = ref("chevron-right");
|
|
15
|
-
</script>
|
|
16
|
-
|
|
17
|
-
<template>
|
|
18
|
-
<section>
|
|
19
|
-
<h2>Pagination Demo</h2>
|
|
20
|
-
<hr />
|
|
21
|
-
</section>
|
|
22
|
-
|
|
23
|
-
<section>
|
|
24
|
-
<h3>Base</h3>
|
|
25
|
-
|
|
26
|
-
<o-field grouped group-multiline>
|
|
27
|
-
<o-field label="Total">
|
|
28
|
-
<o-input v-model="total" type="number" />
|
|
29
|
-
</o-field>
|
|
30
|
-
<o-field label="Items per page">
|
|
31
|
-
<o-input v-model="perPage" type="number" />
|
|
32
|
-
</o-field>
|
|
33
|
-
</o-field>
|
|
34
|
-
|
|
35
|
-
<o-field grouped group-multiline>
|
|
36
|
-
<o-field label="Show buttons before current">
|
|
37
|
-
<o-input v-model="rangeBefore" type="number" min="0" />
|
|
38
|
-
</o-field>
|
|
39
|
-
<o-field label="Show buttons after current">
|
|
40
|
-
<o-input v-model="rangeAfter" type="number" min="0" />
|
|
41
|
-
</o-field>
|
|
42
|
-
</o-field>
|
|
43
|
-
|
|
44
|
-
<o-field grouped group-multiline>
|
|
45
|
-
<o-field label="Order">
|
|
46
|
-
<o-select v-model="order">
|
|
47
|
-
<option value="">default</option>
|
|
48
|
-
<option value="left">left</option>
|
|
49
|
-
<option value="centered">centered</option>
|
|
50
|
-
<option value="right">right</option>
|
|
51
|
-
</o-select>
|
|
52
|
-
</o-field>
|
|
53
|
-
<o-field label="Size">
|
|
54
|
-
<o-select v-model="size">
|
|
55
|
-
<option value="">default</option>
|
|
56
|
-
<option value="small">small</option>
|
|
57
|
-
<option value="medium">medium</option>
|
|
58
|
-
<option value="large">large</option>
|
|
59
|
-
</o-select>
|
|
60
|
-
</o-field>
|
|
61
|
-
<o-field label="Previous icon">
|
|
62
|
-
<o-select v-model="prevIcon">
|
|
63
|
-
<option value="chevron-left">Chevron</option>
|
|
64
|
-
<option value="arrow-left">Arrow</option>
|
|
65
|
-
</o-select>
|
|
66
|
-
</o-field>
|
|
67
|
-
<o-field label="Next icon">
|
|
68
|
-
<o-select v-model="nextIcon">
|
|
69
|
-
<option value="chevron-right">Chevron</option>
|
|
70
|
-
<option value="arrow-right">Arrow</option>
|
|
71
|
-
</o-select>
|
|
72
|
-
</o-field>
|
|
73
|
-
</o-field>
|
|
74
|
-
<o-field grouped group-multiline>
|
|
75
|
-
<o-switch v-model="isSimple">Simple</o-switch>
|
|
76
|
-
<o-switch v-model="isRounded">Rounded</o-switch>
|
|
77
|
-
</o-field>
|
|
78
|
-
<br />
|
|
79
|
-
<o-pagination
|
|
80
|
-
v-model:current="current"
|
|
81
|
-
:total="total"
|
|
82
|
-
:range-before="rangeBefore"
|
|
83
|
-
:range-after="rangeAfter"
|
|
84
|
-
:order="order"
|
|
85
|
-
:size="size"
|
|
86
|
-
:simple="isSimple"
|
|
87
|
-
:rounded="isRounded"
|
|
88
|
-
:per-page="perPage"
|
|
89
|
-
:icon-prev="prevIcon"
|
|
90
|
-
:icon-next="nextIcon"
|
|
91
|
-
aria-next-label="Next page"
|
|
92
|
-
aria-previous-label="Previous page"
|
|
93
|
-
aria-page-label="Page"
|
|
94
|
-
aria-current-label="Current page" />
|
|
95
|
-
</section>
|
|
96
|
-
</template>
|