renusify 2.5.1 → 3.0.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/components/app/index.vue +74 -22
- package/components/app/toast/index.vue +76 -71
- package/components/app/toast/toast.vue +62 -44
- package/components/avatar/index.vue +208 -84
- package/components/button/buttonConfirm.vue +53 -26
- package/components/button/buttonGroup.js +0 -2
- package/components/button/buttonGroup.vue +310 -62
- package/components/button/index.vue +584 -100
- package/components/calendar/index.js +0 -2
- package/components/calendar/index.vue +326 -262
- package/components/calendar/month.vue +64 -55
- package/components/calendar/year.vue +30 -25
- package/components/card/index.vue +139 -59
- package/components/codeEditor/highlightCss.vue +38 -39
- package/components/codeEditor/highlightHtml.vue +64 -64
- package/components/codeEditor/highlightJs.vue +37 -38
- package/components/codeEditor/index.vue +129 -79
- package/components/codeEditor/run.vue +225 -39
- package/components/codeEditor/useCodeFormatter.js +150 -0
- package/components/confirm/index.vue +140 -81
- package/components/container/col.vue +5 -4
- package/components/container/divider.vue +28 -19
- package/components/container/index.vue +34 -15
- package/components/container/row.vue +26 -9
- package/components/container/spacer.vue +2 -4
- package/components/container/style.scss +3 -0
- package/components/content/index.vue +49 -32
- package/components/cropper/index.vue +401 -244
- package/components/float/index.vue +542 -415
- package/components/form/addressInput/index.vue +184 -109
- package/components/form/camInput/index.vue +370 -244
- package/components/form/checkInput/index.vue +138 -71
- package/components/form/checkboxInput/index.vue +87 -47
- package/components/form/colorInput/Alpha.vue +81 -83
- package/components/form/colorInput/Hue.vue +91 -68
- package/components/form/colorInput/Preview.vue +43 -47
- package/components/form/colorInput/Saturation.vue +101 -86
- package/components/form/colorInput/index.vue +72 -40
- package/components/form/colorInput/picker.vue +111 -106
- package/components/form/colorInput/useColor.js +153 -0
- package/components/form/dateInput/index.vue +691 -356
- package/components/form/dateInput/month.vue +63 -54
- package/components/form/dateInput/year.vue +35 -25
- package/components/form/fileInput/index.js +0 -1
- package/components/form/fileInput/index.vue +263 -106
- package/components/form/fileInput/single.vue +323 -164
- package/components/form/groupInput/index.vue +199 -101
- package/components/form/index.vue +189 -83
- package/components/form/input/index.vue +416 -377
- package/components/form/jsonInput/JsonView.vue +54 -56
- package/components/form/jsonInput/index.vue +247 -165
- package/components/form/maskInput/index.vue +252 -132
- package/components/form/numberInput/index.js +0 -1
- package/components/form/numberInput/index.vue +226 -117
- package/components/form/passwordInput/index.js +2 -1
- package/components/form/passwordInput/index.vue +269 -102
- package/components/form/radioInput/index.vue +143 -72
- package/components/form/rangeInput/index.vue +280 -167
- package/components/form/ratingInput/index.vue +57 -57
- package/components/form/selectInput/index.js +1 -3
- package/components/form/selectInput/index.vue +584 -296
- package/components/form/switchInput/index.vue +73 -59
- package/components/form/telInput/index.js +0 -1
- package/components/form/telInput/index.vue +238 -135
- package/components/form/textArea/index.vue +72 -35
- package/components/form/textEditor/index.vue +739 -0
- package/components/form/{text-editor → textEditor}/style.scss +8 -16
- package/components/form/textInput/index.vue +54 -32
- package/components/form/timeInput/index.vue +83 -56
- package/components/form/timeInput/range.vue +116 -95
- package/components/form/timeInput/timepicker.vue +382 -449
- package/components/form/uniqueInput/index.vue +105 -48
- package/components/form/unitInput/index.vue +139 -84
- package/components/formCreator/index.js +0 -1
- package/components/formCreator/index.vue +314 -148
- package/components/highlight/index.vue +41 -25
- package/components/highlight/style.scss +2 -2
- package/components/highlight/{mixin.js → useHighlight.js} +181 -160
- package/components/icon/index.vue +79 -33
- package/components/img/index.vue +249 -147
- package/components/img/preview.vue +180 -198
- package/components/img/svgImg.vue +42 -39
- package/components/index.js +5 -20
- package/components/infinite/index.js +1 -2
- package/components/infinite/index.vue +248 -66
- package/components/map/index.vue +428 -261
- package/components/map/route.vue +794 -487
- package/components/map/select.vue +118 -58
- package/components/menu/index.vue +201 -91
- package/components/meta/meta.js +26 -3
- package/components/modal/index.vue +383 -158
- package/components/notify/index.vue +204 -86
- package/components/notify/notification.vue +38 -55
- package/components/progress/circle.vue +189 -70
- package/components/progress/line.vue +266 -46
- package/components/searchBox/index.js +1 -3
- package/components/searchBox/index.vue +194 -101
- package/components/skeleton/index.vue +45 -20
- package/components/slider/index.vue +318 -156
- package/components/swiper/index.vue +254 -106
- package/components/table/crud/footer.vue +77 -53
- package/components/table/crud/header.vue +71 -72
- package/components/table/crud/index.vue +631 -401
- package/components/table/index.vue +721 -278
- package/components/timeAgo/index.vue +145 -96
- package/components/tour/index.vue +338 -235
- package/components/tree/index.vue +235 -89
- package/components/tree/tree-element.vue +107 -106
- package/directive/animate/index.js +77 -0
- package/directive/clickOutSide/index.js +98 -0
- package/directive/drag/index.js +153 -0
- package/directive/index.js +11 -13
- package/directive/intersect/index.js +263 -0
- package/directive/mask/index.js +67 -0
- package/directive/parallax/index.js +78 -0
- package/directive/ripple/index.js +14 -0
- package/directive/scroll/index.js +244 -0
- package/directive/sortable/index.js +274 -0
- package/directive/title/index.js +75 -0
- package/directive/touch/index.js +268 -0
- package/index.js +10 -8
- package/package.json +5 -2
- package/plugins/validation/Validate.js +88 -79
- package/scripts/generate-docs.mjs +226 -0
- package/scripts/menu.mjs +240 -0
- package/scripts/parser.mjs +1086 -0
- package/style/_index.scss +7 -0
- package/style/app.scss +13 -65
- package/style/colors.scss +5 -22
- package/style/functions/index.scss +8 -0
- package/style/mixins/index.scss +17 -5
- package/style/variables/base.scss +154 -175
- package/style/variables/color.scss +0 -12
- package/style/variables/utilities.scss +0 -180
- package/tools/helper.js +0 -8
- package/tools/icons.js +6 -1
- package/tools/root.js +71 -0
- package/components/app/style.scss +0 -41
- package/components/app/toast/style.scss +0 -20
- package/components/avatar/style.scss +0 -32
- package/components/bar/bottomNav.js +0 -1
- package/components/bar/bottomNav.vue +0 -28
- package/components/bar/bottomNavigationCircle.js +0 -2
- package/components/bar/bottomNavigationCircle.vue +0 -99
- package/components/bar/scss/bottomNav.scss +0 -67
- package/components/bar/scss/toolbar.scss +0 -174
- package/components/bar/toolbar/index.js +0 -8
- package/components/bar/toolbar/index.vue +0 -35
- package/components/bar/toolbar/laptop.vue +0 -33
- package/components/bar/toolbar/menuChilds.vue +0 -41
- package/components/bar/toolbar/menuLaptop.vue +0 -41
- package/components/bar/toolbar/menuMob.vue +0 -39
- package/components/bar/toolbar/mixin.js +0 -43
- package/components/bar/toolbar/mobile.vue +0 -34
- package/components/breadcrumb/bredcrumbItem.vue +0 -39
- package/components/breadcrumb/index.js +0 -3
- package/components/breadcrumb/index.vue +0 -71
- package/components/breadcrumb/style.scss +0 -51
- package/components/button/style.scss +0 -411
- package/components/card/style.scss +0 -86
- package/components/chart/chart.js +0 -1
- package/components/chart/chart.vue +0 -69
- package/components/chart/worldMap.js +0 -2
- package/components/chart/worldMap.vue +0 -1112
- package/components/chat/MessageList.vue +0 -163
- package/components/chat/chatInput.vue +0 -150
- package/components/chat/chatMsg.vue +0 -276
- package/components/chat/index.js +0 -11
- package/components/chat/index.vue +0 -113
- package/components/chip/index.js +0 -3
- package/components/chip/index.vue +0 -77
- package/components/chip/style.scss +0 -199
- package/components/codeEditor/mixin.js +0 -145
- package/components/countdown/index.js +0 -1
- package/components/countdown/index.vue +0 -105
- package/components/form/colorInput/mixin.js +0 -132
- package/components/form/fileInput/file.js +0 -148
- package/components/form/telInput/assets/flags.png +0 -0
- package/components/form/telInput/assets/flags@2x.png +0 -0
- package/components/form/text-editor/index.vue +0 -710
- package/components/icon/style.scss +0 -17
- package/components/infinite/div.js +0 -6
- package/components/infinite/div.vue +0 -193
- package/components/infinite/page.js +0 -3
- package/components/infinite/page.vue +0 -105
- package/components/list/index.js +0 -3
- package/components/list/index.vue +0 -122
- package/components/list/style.scss +0 -66
- package/components/message/index.js +0 -4
- package/components/message/index.vue +0 -40
- package/components/modal/style.scss +0 -146
- package/components/nestable/NestableItem.vue +0 -307
- package/components/nestable/editable.js +0 -44
- package/components/nestable/index.js +0 -1
- package/components/nestable/index.vue +0 -226
- package/components/nestable/methods.js +0 -416
- package/components/progress/style.scss +0 -229
- package/components/table/style.scss +0 -338
- package/components/tabs/index.js +0 -3
- package/components/tabs/index.vue +0 -151
- package/components/timeline/index.js +0 -6
- package/components/timeline/index.vue +0 -76
- package/directive/resize/index.js +0 -30
- package/directive/skeleton/index.js +0 -27
- package/directive/skeleton/style.scss +0 -37
- package/plugins/request/Request.js +0 -68
- package/style/animation.scss +0 -94
- package/style/style.scss +0 -8
- package/tools/rootable.js +0 -75
- /package/components/form/{text-editor → textEditor}/index.js +0 -0
- /package/components/form/{text-editor → textEditor}/preview.js +0 -0
- /package/components/form/{text-editor → textEditor}/preview.vue +0 -0
|
@@ -1,411 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "sass:math";
|
|
3
|
-
@use "../../style/variables/base";
|
|
4
|
-
@use "../../style/mixins";
|
|
5
|
-
@use "../../style/functions";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
$btn-active-opacity: 0.18 !default;
|
|
9
|
-
$btn-border-radius: map.get(base.$borders, 'sm') !default;
|
|
10
|
-
$btn-focus-opacity: 0.24 !default;
|
|
11
|
-
$btn-font-size: .875rem !default;
|
|
12
|
-
$btn-font-weight: 500 !default;
|
|
13
|
-
$btn-hover-opacity: 0.08 !default;
|
|
14
|
-
$btn-letter-spacing: .07em !default;
|
|
15
|
-
$btn-icon-font-size: 18px !default;
|
|
16
|
-
$btn-icon-padding: 12px !default;
|
|
17
|
-
$btn-outline-border-width: thin !default;
|
|
18
|
-
$btn-rounded-border-radius: 2rem !default;
|
|
19
|
-
$btn-sizes: (
|
|
20
|
-
'x-small': 20,
|
|
21
|
-
'small': 30,
|
|
22
|
-
'default': 40,
|
|
23
|
-
'large': 50,
|
|
24
|
-
'x-large': 60
|
|
25
|
-
) !default;
|
|
26
|
-
$fab-sizes: (
|
|
27
|
-
'x-small': 32,
|
|
28
|
-
'small': 40,
|
|
29
|
-
'default': 56,
|
|
30
|
-
'large': 64,
|
|
31
|
-
'x-large': 72
|
|
32
|
-
) !default;
|
|
33
|
-
$fab-icon-sizes: (
|
|
34
|
-
'x-small': 18,
|
|
35
|
-
'small': 24,
|
|
36
|
-
'default': 24,
|
|
37
|
-
'large': 28,
|
|
38
|
-
'x-large': 32
|
|
39
|
-
) !default;
|
|
40
|
-
$btn-transition-duration: 0.28s !default;
|
|
41
|
-
$btn-transition-fn: map.get(base.$transition, 'fast-out-slow-in') !default;
|
|
42
|
-
$btn-transition: opacity 0.2s map.get(base.$transition, 'ease-in-out') !default;
|
|
43
|
-
|
|
44
|
-
.#{base.$prefix}btn {
|
|
45
|
-
cursor: pointer;
|
|
46
|
-
align-items: center;
|
|
47
|
-
border-radius: $btn-border-radius;
|
|
48
|
-
display: inline-flex;
|
|
49
|
-
flex: 0 0 auto;
|
|
50
|
-
font-size: $btn-font-size;
|
|
51
|
-
font-weight: $btn-font-weight;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
max-width: 100%;
|
|
54
|
-
outline: 0;
|
|
55
|
-
position: relative;
|
|
56
|
-
text-decoration: none;
|
|
57
|
-
text-indent: $btn-letter-spacing;
|
|
58
|
-
text-transform: uppercase;
|
|
59
|
-
transition-duration: $btn-transition-duration;
|
|
60
|
-
transition-property: box-shadow, transform, opacity;
|
|
61
|
-
transition-timing-function: $btn-transition-fn;
|
|
62
|
-
user-select: none;
|
|
63
|
-
vertical-align: middle;
|
|
64
|
-
white-space: nowrap;
|
|
65
|
-
color: inherit;
|
|
66
|
-
&:not(.btn-text):not(.btn-outlined) {
|
|
67
|
-
background-color: var(--color-sheet-container-low);
|
|
68
|
-
color: var(--color-on-sheet);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&.btn-outlined.btn-text {
|
|
72
|
-
border-color: var(--color-border)
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
@include mixins.states();
|
|
77
|
-
|
|
78
|
-
&.btn-disabled {
|
|
79
|
-
@include mixins.disable-states();
|
|
80
|
-
|
|
81
|
-
&:not(.btn-text):not(.btn-outlined) {
|
|
82
|
-
background-color: var(--color-#{functions.map-metro-get(base.$states, 'disabled','state','color')}) !important;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&.btn-text, &.btn-outlined {
|
|
86
|
-
&::before {
|
|
87
|
-
opacity: 0 !important;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@include mixins.ltr() {
|
|
93
|
-
letter-spacing: $btn-letter-spacing;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
&.btn-readonly {
|
|
98
|
-
pointer-events: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&:before {
|
|
102
|
-
border-radius: inherit;
|
|
103
|
-
bottom: 0;
|
|
104
|
-
color: inherit;
|
|
105
|
-
content: '';
|
|
106
|
-
left: 0;
|
|
107
|
-
opacity: 0;
|
|
108
|
-
pointer-events: none;
|
|
109
|
-
position: absolute;
|
|
110
|
-
right: 0;
|
|
111
|
-
top: 0;
|
|
112
|
-
transition: $btn-transition;
|
|
113
|
-
background-color: currentColor
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&:not(.btn-round) {
|
|
117
|
-
@each $name, $size in $btn-sizes {
|
|
118
|
-
$p: math.div($size, 2.25);
|
|
119
|
-
&.size-#{$name} {
|
|
120
|
-
height: #{$size}px;
|
|
121
|
-
min-width: #{round($size * 1.7)}px;
|
|
122
|
-
padding: 0 #{$p}px;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
> .btn-content .#{base.$prefix}icon {
|
|
128
|
-
color: inherit
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
&.vertical {
|
|
132
|
-
.btn-content {
|
|
133
|
-
writing-mode: tb-rl;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.btn-content {
|
|
139
|
-
align-items: center;
|
|
140
|
-
color: inherit;
|
|
141
|
-
display: flex;
|
|
142
|
-
flex: 1 0 auto;
|
|
143
|
-
justify-content: inherit;
|
|
144
|
-
line-height: normal;
|
|
145
|
-
|
|
146
|
-
.label {
|
|
147
|
-
position: absolute;
|
|
148
|
-
flex-wrap: nowrap;
|
|
149
|
-
top: -10px;
|
|
150
|
-
right: 0;
|
|
151
|
-
border-radius: 10px 10px 10px 0;
|
|
152
|
-
height: 21px;
|
|
153
|
-
min-width: 20px;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.btn-loader {
|
|
158
|
-
align-items: center;
|
|
159
|
-
display: flex;
|
|
160
|
-
height: 100%;
|
|
161
|
-
justify-content: center;
|
|
162
|
-
left: 0;
|
|
163
|
-
position: absolute;
|
|
164
|
-
top: 0;
|
|
165
|
-
width: 100%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.#{base.$prefix}btn:not(.btn-text):not(.btn-outlined) {
|
|
169
|
-
&.btn-active:before {
|
|
170
|
-
opacity: $btn-active-opacity
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&:hover:before {
|
|
174
|
-
opacity: $btn-hover-opacity
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
&:focus:before {
|
|
178
|
-
opacity: $btn-focus-opacity
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.btn-absolute,
|
|
183
|
-
.btn-fixed {
|
|
184
|
-
position: absolute;
|
|
185
|
-
|
|
186
|
-
&.btn-right {
|
|
187
|
-
right: map.get(base.$grid-gutters, 'lg')
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&.btn-left {
|
|
191
|
-
left: map.get(base.$grid-gutters, 'lg')
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&.btn-top {
|
|
195
|
-
top: map.get(base.$grid-gutters, 'lg')
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
&.btn-bottom {
|
|
199
|
-
bottom: map.get(base.$grid-gutters, 'lg')
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.btn-block {
|
|
204
|
-
display: flex;
|
|
205
|
-
flex: 1 0 auto;
|
|
206
|
-
min-width: 100% !important;
|
|
207
|
-
width: auto;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
.btn-contained {
|
|
211
|
-
@include mixins.elevation('sm');
|
|
212
|
-
|
|
213
|
-
&:after {
|
|
214
|
-
@include mixins.elevation('md')
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
&:active {
|
|
218
|
-
@include mixins.elevation('lg')
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
.btn-depressed {
|
|
223
|
-
box-shadow: none !important
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.btn-icon,
|
|
227
|
-
.btn-fab {
|
|
228
|
-
min-height: 0;
|
|
229
|
-
min-width: 0;
|
|
230
|
-
padding: 0;
|
|
231
|
-
@each $name, $size in $fab-icon-sizes {
|
|
232
|
-
&.size-#{$name} {
|
|
233
|
-
.#{base.$prefix}icon {
|
|
234
|
-
height: #{$size}px;
|
|
235
|
-
font-size: #{$size}px;
|
|
236
|
-
width: #{$size}px;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
.btn-icon {
|
|
244
|
-
@each $name, $size in $btn-sizes {
|
|
245
|
-
&.size-#{$name} {
|
|
246
|
-
height: #{$size}px;
|
|
247
|
-
width: #{$size}px
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
.btn-fab {
|
|
253
|
-
&.btn-contained {
|
|
254
|
-
@include mixins.elevation('md') ;
|
|
255
|
-
|
|
256
|
-
&:after {
|
|
257
|
-
@include mixins.elevation('lg')
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
&:active {
|
|
261
|
-
@include mixins.elevation('xl')
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
&.btn-fixed,
|
|
266
|
-
&.btn-absolute {
|
|
267
|
-
z-index: 4
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
@each $name, $size in $fab-sizes {
|
|
271
|
-
&.size-#{$name} {
|
|
272
|
-
height: #{$size}px;
|
|
273
|
-
width: #{$size}px;
|
|
274
|
-
|
|
275
|
-
&.btn-absolute {
|
|
276
|
-
&.btn-bottom {
|
|
277
|
-
bottom: #{math.div($size,-2)}px
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
&.btn-top {
|
|
281
|
-
top: #{math.div($size,-2)}px
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
.btn-fixed {
|
|
292
|
-
position: fixed
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.btn-loading {
|
|
296
|
-
pointer-events: none;
|
|
297
|
-
transition: none;
|
|
298
|
-
cursor: none;
|
|
299
|
-
|
|
300
|
-
.btn-content {
|
|
301
|
-
opacity: 0
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
.btn-outlined {
|
|
306
|
-
border: $btn-outline-border-width solid currentColor;
|
|
307
|
-
|
|
308
|
-
&:before {
|
|
309
|
-
border-radius: 0
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
.btn-outlined,
|
|
314
|
-
.btn-round {
|
|
315
|
-
.btn-content {
|
|
316
|
-
.#{base.$prefix}icon {
|
|
317
|
-
color: currentColor
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
.btn-outlined,
|
|
323
|
-
.btn-text {
|
|
324
|
-
background-color: transparent;
|
|
325
|
-
color: inherit;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.btn-round,
|
|
329
|
-
.btn-rounded {
|
|
330
|
-
&:before {
|
|
331
|
-
border-radius: inherit
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.btn-round {
|
|
336
|
-
border-radius: 50%
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
.btn-rounded {
|
|
340
|
-
border-radius: $btn-rounded-border-radius
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.btn-tile {
|
|
344
|
-
border-radius: 0
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
.#{base.$prefix}button-group {
|
|
349
|
-
position: relative;
|
|
350
|
-
color: var(--color-on-sheet);
|
|
351
|
-
background-color: var(--color-sheet-container);
|
|
352
|
-
@include mixins.states();
|
|
353
|
-
|
|
354
|
-
.btn-container {
|
|
355
|
-
display: inline-flex;
|
|
356
|
-
flex: 0 0 auto;
|
|
357
|
-
font-size: $btn-font-size;
|
|
358
|
-
font-weight: $btn-font-weight;
|
|
359
|
-
align-items: center;
|
|
360
|
-
border-radius: $btn-border-radius;
|
|
361
|
-
justify-content: center;
|
|
362
|
-
max-width: 100%;
|
|
363
|
-
outline: 0;
|
|
364
|
-
position: relative;
|
|
365
|
-
text-decoration: none;
|
|
366
|
-
text-indent: $btn-letter-spacing;
|
|
367
|
-
text-transform: uppercase;
|
|
368
|
-
transition-duration: $btn-transition-duration;
|
|
369
|
-
transition-property: box-shadow, transform, opacity;
|
|
370
|
-
transition-timing-function: $btn-transition-fn;
|
|
371
|
-
user-select: none;
|
|
372
|
-
vertical-align: middle;
|
|
373
|
-
white-space: nowrap;
|
|
374
|
-
|
|
375
|
-
.#{base.$prefix}btn {
|
|
376
|
-
border-radius: 0;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
@include mixins.rtl() {
|
|
380
|
-
.#{base.$prefix}btn:not(:first-child):not(:last-child) {
|
|
381
|
-
border-left: currentColor 1px solid;
|
|
382
|
-
}
|
|
383
|
-
|
|
384
|
-
.#{base.$prefix}btn:first-child {
|
|
385
|
-
border-left: currentColor 1px solid;
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
@include mixins.ltr() {
|
|
389
|
-
.#{base.$prefix}btn:not(:first-child):not(:last-child) {
|
|
390
|
-
border-right: currentColor 1px solid;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
.#{base.$prefix}btn:first-child {
|
|
394
|
-
border-right: currentColor 1px solid;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.button-group-select {
|
|
400
|
-
position: absolute;
|
|
401
|
-
top: 0;
|
|
402
|
-
width: 100%;
|
|
403
|
-
z-index: map.get(base.$z-index, 'default');
|
|
404
|
-
height: 300px;
|
|
405
|
-
overflow: auto;
|
|
406
|
-
|
|
407
|
-
.list-item {
|
|
408
|
-
justify-content: center;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../style/variables/base";
|
|
3
|
-
@use "../../style/mixins";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
.#{base.$prefix}card {
|
|
7
|
-
display: block;
|
|
8
|
-
position: relative;
|
|
9
|
-
color: inherit;
|
|
10
|
-
max-width: 100%;
|
|
11
|
-
outline: none;
|
|
12
|
-
text-decoration: none;
|
|
13
|
-
word-break: break-word;
|
|
14
|
-
overflow-wrap: break-word;
|
|
15
|
-
white-space: normal;
|
|
16
|
-
transition: base.$primary-transition;
|
|
17
|
-
transition-property: box-shadow, opacity;
|
|
18
|
-
|
|
19
|
-
&.card-sheet {
|
|
20
|
-
@include mixins.elevation('md');
|
|
21
|
-
border-radius: map.get(base.$borders, 'md');
|
|
22
|
-
background-color: var(--color-sheet-container);
|
|
23
|
-
border-color: var(--color-sheet-container);
|
|
24
|
-
color: var(--color-on-sheet);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.card-tile {
|
|
28
|
-
border-radius: 0;
|
|
29
|
-
@include mixins.elevation('none');
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.card-outlined {
|
|
33
|
-
border: 1px solid var(--color-border)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@include mixins.states();
|
|
37
|
-
|
|
38
|
-
&.card-hover {
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
transition: box-shadow .4s cubic-bezier(.25, .8, .25, 1);
|
|
41
|
-
|
|
42
|
-
&:hover {
|
|
43
|
-
@include mixins.elevation('xl', true)
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
> *:first-child:not(.#{base.$prefix}btn):not(.#{base.$prefix}chip) {
|
|
48
|
-
border-top-left-radius: inherit;
|
|
49
|
-
border-top-right-radius: inherit
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
> *:last-child:not(.#{base.$prefix}btn):not(.#{base.$prefix}chip) {
|
|
53
|
-
border-bottom-left-radius: inherit;
|
|
54
|
-
border-bottom-right-radius: inherit
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&.card-link {
|
|
58
|
-
cursor: pointer;
|
|
59
|
-
|
|
60
|
-
&:focus:before {
|
|
61
|
-
opacity: 0.08
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:before {
|
|
65
|
-
background: currentColor;
|
|
66
|
-
bottom: 0;
|
|
67
|
-
content: '';
|
|
68
|
-
left: 0;
|
|
69
|
-
opacity: 0;
|
|
70
|
-
pointer-events: none;
|
|
71
|
-
position: absolute;
|
|
72
|
-
right: 0;
|
|
73
|
-
top: 0;
|
|
74
|
-
transition: .2s opacity map.get(base.$transition, 'fast-in-slow-out');
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&.card-outlined, &.card-flat {
|
|
79
|
-
background-color: transparent;
|
|
80
|
-
box-shadow: none
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as rChart from './chart.vue'
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="`${$r.prefix}chart`" ref="chart"></div>
|
|
3
|
-
</template>
|
|
4
|
-
|
|
5
|
-
<script>
|
|
6
|
-
export default {
|
|
7
|
-
name: 'r-chart',
|
|
8
|
-
props: {
|
|
9
|
-
url: {type: String, default: 'https://codenus.com/storage/chart/apexcharts.js'},
|
|
10
|
-
dark: Boolean,
|
|
11
|
-
options: Object
|
|
12
|
-
},
|
|
13
|
-
data() {
|
|
14
|
-
return {
|
|
15
|
-
chartShape: null,
|
|
16
|
-
timeout_id: null
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
mounted() {
|
|
20
|
-
let children = document.querySelectorAll('[name=\'apexcharts\']')
|
|
21
|
-
if (children.length === 0) {
|
|
22
|
-
let el = document.createElement('script')
|
|
23
|
-
el.setAttribute('src', this.url)
|
|
24
|
-
el.setAttribute('name', 'apexcharts')
|
|
25
|
-
document.head.append(el)
|
|
26
|
-
}
|
|
27
|
-
if (this.dark) {
|
|
28
|
-
if (!this.options['theme']) {
|
|
29
|
-
this.options['theme'] = {}
|
|
30
|
-
}
|
|
31
|
-
this.options['theme']['mode'] = 'dark'
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
this.timeout_id = setTimeout(() => {
|
|
35
|
-
this.build()
|
|
36
|
-
}, 10)
|
|
37
|
-
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
build(n = 0) {
|
|
41
|
-
try {
|
|
42
|
-
this.chartShape = new ApexCharts(this.$refs.chart, this.options)
|
|
43
|
-
this.chartShape.render()
|
|
44
|
-
} catch (e) {
|
|
45
|
-
this.timeout_id = setTimeout(() => {
|
|
46
|
-
this.build(n + 1)
|
|
47
|
-
}, 100)
|
|
48
|
-
if (n > 30) {
|
|
49
|
-
console.error(e)
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
beforeUnmount() {
|
|
55
|
-
clearTimeout(this.timeout_id)
|
|
56
|
-
this.chartShape.destroy()
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
</script>
|
|
60
|
-
<style lang="scss">
|
|
61
|
-
@use "../../style/variables/base";
|
|
62
|
-
|
|
63
|
-
.#{base.$prefix}chart {
|
|
64
|
-
position: relative;
|
|
65
|
-
direction: ltr;
|
|
66
|
-
text-align: left;
|
|
67
|
-
z-index: 0;
|
|
68
|
-
}
|
|
69
|
-
</style>
|