renusify 2.5.2 → 3.0.1
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 +207 -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 +139 -80
- 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 +93 -49
- 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 +71 -39
- 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 +332 -168
- 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 +82 -55
- package/components/form/timeInput/range.vue +115 -94
- 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 +250 -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 +3 -3
- package/components/infinite/index.vue +290 -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 +206 -94
- package/components/meta/meta.js +26 -3
- package/components/modal/index.vue +382 -156
- 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 +319 -156
- package/components/swiper/index.vue +237 -108
- package/components/table/crud/footer.vue +77 -53
- package/components/table/crud/header.vue +71 -72
- package/components/table/crud/index.vue +629 -399
- 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 +106 -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 +272 -24
- package/directive/sortable/index.js +274 -0
- package/directive/title/index.js +75 -0
- package/directive/touch/index.js +268 -0
- package/index.js +11 -19
- 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 +155 -178
- package/style/variables/color.scss +0 -12
- package/style/variables/utilities.scss +0 -180
- package/tools/helper.js +0 -8
- package/tools/icons.js +7 -2
- 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 -705
- 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
|
@@ -5,70 +5,23 @@ $utilities: () !default;
|
|
|
5
5
|
$utilities: map.merge(
|
|
6
6
|
(
|
|
7
7
|
// Display utilities
|
|
8
|
-
"overflow": (
|
|
9
|
-
property: overflow,
|
|
10
|
-
values: auto hidden visible,
|
|
11
|
-
),
|
|
12
|
-
"overflow-x": (
|
|
13
|
-
property: overflow-x,
|
|
14
|
-
values: auto hidden
|
|
15
|
-
),
|
|
16
|
-
"overflow-y": (
|
|
17
|
-
property: overflow-y,
|
|
18
|
-
values: auto hidden
|
|
19
|
-
),
|
|
20
8
|
"display": (
|
|
21
|
-
responsive: true,
|
|
22
9
|
print: true,
|
|
23
10
|
property: display,
|
|
24
11
|
class: d,
|
|
25
12
|
values: none inline inline-block block table table-row table-cell flex inline-flex
|
|
26
13
|
),
|
|
27
|
-
"float": (
|
|
28
|
-
responsive: true,
|
|
29
|
-
print: true,
|
|
30
|
-
property: float,
|
|
31
|
-
class: float,
|
|
32
|
-
values: none left right
|
|
33
|
-
),
|
|
34
|
-
"float-start-ltr": (
|
|
35
|
-
responsive: true,
|
|
36
|
-
property: (ltr: float),
|
|
37
|
-
class: float,
|
|
38
|
-
values: ('start':left)
|
|
39
|
-
),
|
|
40
|
-
"float-start-rtl": (
|
|
41
|
-
responsive: true,
|
|
42
|
-
property: (rtl: float),
|
|
43
|
-
class: float,
|
|
44
|
-
values: ('start':right)
|
|
45
|
-
),
|
|
46
|
-
"float-end-ltr": (
|
|
47
|
-
responsive: true,
|
|
48
|
-
property: (ltr: float),
|
|
49
|
-
class: float,
|
|
50
|
-
values: ('end':right)
|
|
51
|
-
),
|
|
52
|
-
"float-end-rtl": (
|
|
53
|
-
responsive: true,
|
|
54
|
-
property: (rtl: float),
|
|
55
|
-
class: float,
|
|
56
|
-
values: ('end':left)
|
|
57
|
-
),
|
|
58
14
|
// Flex utilities
|
|
59
15
|
"flex": (
|
|
60
|
-
responsive: true,
|
|
61
16
|
property: flex,
|
|
62
17
|
values: (fill: 1 1 auto)
|
|
63
18
|
),
|
|
64
19
|
"flex-direction": (
|
|
65
|
-
responsive: true,
|
|
66
20
|
property: flex-direction,
|
|
67
21
|
class: flex,
|
|
68
22
|
values: row column row-reverse column-reverse
|
|
69
23
|
),
|
|
70
24
|
"flex-grow": (
|
|
71
|
-
responsive: true,
|
|
72
25
|
property: flex-grow,
|
|
73
26
|
class: flex,
|
|
74
27
|
values: (
|
|
@@ -77,7 +30,6 @@ $utilities: map.merge(
|
|
|
77
30
|
)
|
|
78
31
|
),
|
|
79
32
|
"flex-shrink": (
|
|
80
|
-
responsive: true,
|
|
81
33
|
property: flex-shrink,
|
|
82
34
|
class: flex,
|
|
83
35
|
values: (
|
|
@@ -86,13 +38,11 @@ $utilities: map.merge(
|
|
|
86
38
|
)
|
|
87
39
|
),
|
|
88
40
|
"flex-wrap": (
|
|
89
|
-
responsive: true,
|
|
90
41
|
property: flex-wrap,
|
|
91
42
|
class: flex,
|
|
92
43
|
values: wrap nowrap wrap-reverse
|
|
93
44
|
),
|
|
94
45
|
"justify-content": (
|
|
95
|
-
responsive: true,
|
|
96
46
|
property: justify-content,
|
|
97
47
|
class: h,
|
|
98
48
|
values: (
|
|
@@ -105,7 +55,6 @@ $utilities: map.merge(
|
|
|
105
55
|
)
|
|
106
56
|
),
|
|
107
57
|
"align-items": (
|
|
108
|
-
responsive: true,
|
|
109
58
|
property: align-items,
|
|
110
59
|
class: v,
|
|
111
60
|
values: (
|
|
@@ -116,232 +65,103 @@ $utilities: map.merge(
|
|
|
116
65
|
stretch: stretch,
|
|
117
66
|
)
|
|
118
67
|
),
|
|
119
|
-
"align-content": (
|
|
120
|
-
responsive: true,
|
|
121
|
-
property: align-content,
|
|
122
|
-
class: v-content,
|
|
123
|
-
values: (
|
|
124
|
-
start: flex-start,
|
|
125
|
-
end: flex-end,
|
|
126
|
-
center: center,
|
|
127
|
-
space-between: space-between,
|
|
128
|
-
space-around: space-around,
|
|
129
|
-
stretch: stretch,
|
|
130
|
-
)
|
|
131
|
-
),
|
|
132
|
-
"align-self": (
|
|
133
|
-
responsive: true,
|
|
134
|
-
property: align-self,
|
|
135
|
-
class: v-self,
|
|
136
|
-
values: (
|
|
137
|
-
auto: auto,
|
|
138
|
-
start: flex-start,
|
|
139
|
-
end: flex-end,
|
|
140
|
-
center: center,
|
|
141
|
-
baseline: baseline,
|
|
142
|
-
stretch: stretch,
|
|
143
|
-
)
|
|
144
|
-
),
|
|
145
68
|
"rounded": (
|
|
146
|
-
responsive: true,
|
|
147
69
|
property: border-radius,
|
|
148
70
|
class: br,
|
|
149
71
|
values: base.$borders
|
|
150
72
|
),
|
|
151
|
-
"rounded-top-left": (
|
|
152
|
-
responsive: true,
|
|
153
|
-
property: border-top-left-radius,
|
|
154
|
-
class: br-tl,
|
|
155
|
-
values: base.$borders
|
|
156
|
-
),
|
|
157
|
-
"rounded-top-right": (
|
|
158
|
-
responsive: true,
|
|
159
|
-
property: border-top-right-radius,
|
|
160
|
-
class: br-tr,
|
|
161
|
-
values: base.$borders
|
|
162
|
-
),
|
|
163
|
-
"rounded-bottom-right": (
|
|
164
|
-
responsive: true,
|
|
165
|
-
property: border-bottom-right-radius,
|
|
166
|
-
class: br-br,
|
|
167
|
-
values: base.$borders
|
|
168
|
-
),
|
|
169
|
-
"rounded-bottom-left": (
|
|
170
|
-
responsive: true,
|
|
171
|
-
property: border-bottom-left-radius,
|
|
172
|
-
class: br-bl,
|
|
173
|
-
values: base.$borders
|
|
174
|
-
),
|
|
175
73
|
// Margin utilities
|
|
176
74
|
"margin": (
|
|
177
|
-
responsive: true,
|
|
178
75
|
property: margin,
|
|
179
76
|
class: ma,
|
|
180
77
|
values: map.merge(base.$spacers, (auto: auto))
|
|
181
78
|
),
|
|
182
79
|
"margin-x": (
|
|
183
|
-
responsive: true,
|
|
184
80
|
property: margin-right margin-left,
|
|
185
81
|
class: mx,
|
|
186
82
|
values: map.merge(base.$spacers, (auto: auto))
|
|
187
83
|
),
|
|
188
84
|
"margin-y": (
|
|
189
|
-
responsive: true,
|
|
190
85
|
property: margin-top margin-bottom,
|
|
191
86
|
class: my,
|
|
192
87
|
values: map.merge(base.$spacers, (auto: auto))
|
|
193
88
|
),
|
|
194
89
|
"margin-top": (
|
|
195
|
-
responsive: true,
|
|
196
90
|
property: margin-top,
|
|
197
91
|
class: mt,
|
|
198
92
|
values: map.merge(base.$spacers, (auto: auto))
|
|
199
93
|
),
|
|
200
94
|
"margin-right": (
|
|
201
|
-
responsive: true,
|
|
202
95
|
property: margin-right,
|
|
203
96
|
class: mr,
|
|
204
97
|
values: map.merge(base.$spacers, (auto: auto))
|
|
205
98
|
),
|
|
206
99
|
"margin-bottom": (
|
|
207
|
-
responsive: true,
|
|
208
100
|
property: margin-bottom,
|
|
209
101
|
class: mb,
|
|
210
102
|
values: map.merge(base.$spacers, (auto: auto))
|
|
211
103
|
),
|
|
212
104
|
"margin-left": (
|
|
213
|
-
responsive: true,
|
|
214
105
|
property: margin-left,
|
|
215
106
|
class: ml,
|
|
216
107
|
values: map.merge(base.$spacers, (auto: auto))
|
|
217
108
|
),
|
|
218
109
|
"margin-start": (
|
|
219
|
-
responsive: true,
|
|
220
110
|
property: (ltr: margin-left, rtl: margin-right),
|
|
221
111
|
class: ms,
|
|
222
112
|
values: map.merge(base.$spacers, (auto: auto))
|
|
223
113
|
),
|
|
224
114
|
"margin-end": (
|
|
225
|
-
responsive: true,
|
|
226
115
|
property: (ltr: margin-right, rtl: margin-left),
|
|
227
116
|
class: me,
|
|
228
117
|
values: map.merge(base.$spacers, (auto: auto))
|
|
229
118
|
),
|
|
230
|
-
// Negative margin utilities
|
|
231
|
-
"negative-margin": (
|
|
232
|
-
responsive: true,
|
|
233
|
-
property: margin,
|
|
234
|
-
class: ma,
|
|
235
|
-
values: base.$negative-spacers
|
|
236
|
-
),
|
|
237
|
-
"negative-margin-x": (
|
|
238
|
-
responsive: true,
|
|
239
|
-
property: margin-right margin-left,
|
|
240
|
-
class: mx,
|
|
241
|
-
values: base.$negative-spacers
|
|
242
|
-
),
|
|
243
|
-
"negative-margin-y": (
|
|
244
|
-
responsive: true,
|
|
245
|
-
property: margin-top margin-bottom,
|
|
246
|
-
class: my,
|
|
247
|
-
values: base.$negative-spacers
|
|
248
|
-
),
|
|
249
|
-
"negative-margin-top": (
|
|
250
|
-
responsive: true,
|
|
251
|
-
property: margin-top,
|
|
252
|
-
class: mt,
|
|
253
|
-
values: base.$negative-spacers
|
|
254
|
-
),
|
|
255
|
-
"negative-margin-right": (
|
|
256
|
-
responsive: true,
|
|
257
|
-
property: margin-right,
|
|
258
|
-
class: mr,
|
|
259
|
-
values: base.$negative-spacers
|
|
260
|
-
),
|
|
261
|
-
"negative-margin-bottom": (
|
|
262
|
-
responsive: true,
|
|
263
|
-
property: margin-bottom,
|
|
264
|
-
class: mb,
|
|
265
|
-
values: base.$negative-spacers
|
|
266
|
-
),
|
|
267
|
-
"negative-margin-left": (
|
|
268
|
-
responsive: true,
|
|
269
|
-
property: margin-left,
|
|
270
|
-
class: ml,
|
|
271
|
-
values: base.$negative-spacers
|
|
272
|
-
),
|
|
273
|
-
"negative-margin-start": (
|
|
274
|
-
responsive: true,
|
|
275
|
-
property: (ltr: margin-left, rtl: margin-right),
|
|
276
|
-
class: ms,
|
|
277
|
-
values: base.$negative-spacers
|
|
278
|
-
),
|
|
279
|
-
"negative-margin-end": (
|
|
280
|
-
responsive: true,
|
|
281
|
-
property: (ltr: margin-right, rtl: margin-left),
|
|
282
|
-
class: me,
|
|
283
|
-
values: base.$negative-spacers
|
|
284
|
-
),
|
|
285
119
|
// Padding utilities
|
|
286
120
|
"padding": (
|
|
287
|
-
responsive: true,
|
|
288
121
|
property: padding,
|
|
289
122
|
class: pa,
|
|
290
123
|
values: base.$spacers
|
|
291
124
|
),
|
|
292
125
|
"padding-x": (
|
|
293
|
-
responsive: true,
|
|
294
126
|
property: padding-right padding-left,
|
|
295
127
|
class: px,
|
|
296
128
|
values: base.$spacers
|
|
297
129
|
),
|
|
298
130
|
"padding-y": (
|
|
299
|
-
responsive: true,
|
|
300
131
|
property: padding-top padding-bottom,
|
|
301
132
|
class: py,
|
|
302
133
|
values: base.$spacers
|
|
303
134
|
),
|
|
304
135
|
"padding-top": (
|
|
305
|
-
responsive: true,
|
|
306
136
|
property: padding-top,
|
|
307
137
|
class: pt,
|
|
308
138
|
values: base.$spacers
|
|
309
139
|
),
|
|
310
140
|
"padding-right": (
|
|
311
|
-
responsive: true,
|
|
312
141
|
property: padding-right,
|
|
313
142
|
class: pr,
|
|
314
143
|
values: base.$spacers
|
|
315
144
|
),
|
|
316
145
|
"padding-bottom": (
|
|
317
|
-
responsive: true,
|
|
318
146
|
property: padding-bottom,
|
|
319
147
|
class: pb,
|
|
320
148
|
values: base.$spacers
|
|
321
149
|
),
|
|
322
150
|
"padding-left": (
|
|
323
|
-
responsive: true,
|
|
324
151
|
property: padding-left,
|
|
325
152
|
class: pl,
|
|
326
153
|
values: base.$spacers
|
|
327
154
|
),
|
|
328
155
|
"padding-start": (
|
|
329
|
-
responsive: true,
|
|
330
156
|
property: (ltr: padding-left, rtl: padding-right),
|
|
331
157
|
class: ps,
|
|
332
158
|
values: base.$spacers
|
|
333
159
|
),
|
|
334
160
|
"padding-end": (
|
|
335
|
-
responsive: true,
|
|
336
161
|
property: (ltr: padding-right, rtl: padding-left),
|
|
337
162
|
class: pe,
|
|
338
163
|
values: base.$spacers
|
|
339
164
|
),
|
|
340
|
-
"position": (
|
|
341
|
-
property: position,
|
|
342
|
-
class: position,
|
|
343
|
-
values: relative absolute fixed sticky
|
|
344
|
-
),
|
|
345
165
|
// Text
|
|
346
166
|
"text-align": (
|
|
347
167
|
property: text-align,
|
package/tools/helper.js
CHANGED
|
@@ -134,14 +134,6 @@ export function searchArray(arr, key, value) {
|
|
|
134
134
|
return false;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
export function replacer(string = null, find = ' ', replace = '-') {
|
|
138
|
-
if (!string) {
|
|
139
|
-
return string;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return string.toString().split(find).join(replace);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
137
|
export function ifHas(object = null, rtrn = false, ...childs) {
|
|
146
138
|
let o;
|
|
147
139
|
if (!object) {
|
package/tools/icons.js
CHANGED
|
@@ -23,7 +23,12 @@ export let Icons = {
|
|
|
23
23
|
'attachment': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M7.5 18A5.5 5.5 0 0 1 2 12.5A5.5 5.5 0 0 1 7.5 7H18a4 4 0 0 1 4 4a4 4 0 0 1-4 4H9.5A2.5 2.5 0 0 1 7 12.5A2.5 2.5 0 0 1 9.5 10H17v1.5H9.5a1 1 0 0 0-1 1a1 1 0 0 0 1 1H18a2.5 2.5 0 0 0 2.5-2.5A2.5 2.5 0 0 0 18 8.5H7.5a4 4 0 0 0-4 4a4 4 0 0 0 4 4H17V18H7.5Z"/></svg>',
|
|
24
24
|
'send': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="m2 21l21-9L2 3v7l15 2l-15 2v7Z"/></svg>',
|
|
25
25
|
'sticker': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M5.5 2C3.56 2 2 3.56 2 5.5v13C2 20.44 3.56 22 5.5 22H16l6-6V5.5C22 3.56 20.44 2 18.5 2h-13m.25 2h12.5A1.75 1.75 0 0 1 20 5.75V15h-1.5c-1.94 0-3.5 1.56-3.5 3.5V20H5.75A1.75 1.75 0 0 1 4 18.25V5.75A1.75 1.75 0 0 1 5.75 4m8.69 2.77c-.16 0-.32.02-.47.06c-.94.26-1.47 1.22-1.23 2.17c.05.15.12.3.21.44l3.23-.88c0-.17-.02-.34-.06-.51c-.21-.75-.9-1.28-1.68-1.28M8.17 8.5c-.17 0-.32 0-.47.05c-.93.26-1.48 1.22-1.23 2.15c.03.16.12.3.21.46l3.23-.88c0-.17-.02-.34-.06-.5A1.72 1.72 0 0 0 8.17 8.5m8.55 2.76l-9.13 2.51a5.266 5.266 0 0 0 5.36 1.64a5.273 5.273 0 0 0 3.77-4.15Z"/></svg>',
|
|
26
|
-
'search': '<svg xmlns="http://www.w3.org/2000/svg"
|
|
26
|
+
'search': '<svg width="24" height="24" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.25 15.5625C4.215 15.5625 0.9375 12.285 0.9375 8.25C0.9375 4.215 4.215 0.9375 8.25 0.9375C12.285 0.9375 15.5625 4.215 15.5625 8.25C15.5625 12.285 12.285 15.5625 8.25 15.5625ZM8.25 2.0625C4.8375 2.0625 2.0625 4.8375 2.0625 8.25C2.0625 11.6625 4.8375 14.4375 8.25 14.4375C11.6625 14.4375 14.4375 11.6625 14.4375 8.25C14.4375 4.8375 11.6625 2.0625 8.25 2.0625Z" fill="currentColor"/><path d="M15.12 17.0925C15.06 17.0925 15 17.085 14.9475 17.0775C14.595 17.0325 13.9575 16.7925 13.5975 15.72C13.41 15.1575 13.4775 14.595 13.785 14.1675C14.0925 13.74 14.61 13.5 15.2025 13.5C15.9675 13.5 16.5675 13.7925 16.8375 14.31C17.1075 14.8275 17.0325 15.4875 16.605 16.125C16.0725 16.9275 15.495 17.0925 15.12 17.0925ZM14.67 15.3675C14.7975 15.7575 14.9775 15.9525 15.0975 15.9675C15.2175 15.9825 15.4425 15.84 15.675 15.5025C15.8925 15.18 15.9075 14.9475 15.855 14.8425C15.8025 14.7375 15.5925 14.625 15.2025 14.625C14.97 14.625 14.7975 14.7 14.7 14.8275C14.61 14.955 14.595 15.15 14.67 15.3675Z" fill="currentColor"/></svg>',
|
|
27
27
|
'drag': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M7 19v-2h2v2H7m4 0v-2h2v2h-2m4 0v-2h2v2h-2m-8-4v-2h2v2H7m4 0v-2h2v2h-2m4 0v-2h2v2h-2m-8-4V9h2v2H7m4 0V9h2v2h-2m4 0V9h2v2h-2M7 7V5h2v2H7m4 0V5h2v2h-2m4 0V5h2v2h-2Z"/></svg>',
|
|
28
|
-
'setting': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6z"/></svg>'
|
|
28
|
+
'setting': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M19.14 12.94c.04-.3.06-.61.06-.94c0-.32-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.488.488 0 0 0-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54a.484.484 0 0 0-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6s3.6 1.62 3.6 3.6s-1.62 3.6-3.6 3.6z"/></svg>',
|
|
29
|
+
'star': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.62L12 2L9.19 8.62L2 9.24l5.45 4.73L5.82 21L12 17.27Z"/></svg>',
|
|
30
|
+
'gps': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M12 8a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m-8.95 5H1v-2h2.05C3.5 6.83 6.83 3.5 11 3.05V1h2v2.05c4.17.45 7.5 3.78 7.95 7.95H23v2h-2.05c-.45 4.17-3.78 7.5-7.95 7.95V23h-2v-2.05C6.83 20.5 3.5 17.17 3.05 13M12 5a7 7 0 0 0-7 7a7 7 0 0 0 7 7a7 7 0 0 0 7-7a7 7 0 0 0-7-7Z"/></svg>',
|
|
31
|
+
'map_marker': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M12 6.5A2.5 2.5 0 0 1 14.5 9a2.5 2.5 0 0 1-2.5 2.5A2.5 2.5 0 0 1 9.5 9A2.5 2.5 0 0 1 12 6.5M12 2a7 7 0 0 1 7 7c0 5.25-7 13-7 13S5 14.25 5 9a7 7 0 0 1 7-7m0 2a5 5 0 0 0-5 5c0 1 0 3 5 9.71C17 12 17 10 17 9a5 5 0 0 0-5-5Z"/></svg>',
|
|
32
|
+
'play': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="M8 5.14v14l11-7l-11-7Z"/></svg>',
|
|
33
|
+
'code_tags': '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24"><path fill="currentColor" d="m14.6 16.6l4.6-4.6l-4.6-4.6L16 6l6 6l-6 6l-1.4-1.4m-5.2 0L4.8 12l4.6-4.6L8 6l-6 6l6 6l1.4-1.4Z"/></svg>'
|
|
29
34
|
}
|
package/tools/root.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {computed, ref} from 'vue'
|
|
2
|
+
|
|
3
|
+
export function useRootable(props, attrs) {
|
|
4
|
+
const isActive = ref(false)
|
|
5
|
+
|
|
6
|
+
const classes = computed(() => {
|
|
7
|
+
const classes = {}
|
|
8
|
+
if (props.to) return classes
|
|
9
|
+
if (props.activeClass) classes[props.activeClass] = isActive.value
|
|
10
|
+
return classes
|
|
11
|
+
})
|
|
12
|
+
|
|
13
|
+
const isClickable = computed(() => {
|
|
14
|
+
if (props.disabled) return false
|
|
15
|
+
return Boolean(isLink.value || 'tabindex' in attrs)
|
|
16
|
+
})
|
|
17
|
+
|
|
18
|
+
const isLink = computed(() => {
|
|
19
|
+
return props.to || props.href || props.link
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const route = computed(() => {
|
|
23
|
+
return generateRouteLink()
|
|
24
|
+
})
|
|
25
|
+
|
|
26
|
+
const generateRouteLink = () => {
|
|
27
|
+
let tag
|
|
28
|
+
const data = {
|
|
29
|
+
attrs: {
|
|
30
|
+
tabindex: 'tabindex' in attrs ? attrs.tabindex : undefined
|
|
31
|
+
},
|
|
32
|
+
props: {},
|
|
33
|
+
class: classes.value,
|
|
34
|
+
ref: 'link'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
if (isClickable.value) {
|
|
38
|
+
if (props.to) {
|
|
39
|
+
const activeClass = props.activeClass
|
|
40
|
+
const exactActiveClass = props.exactActiveClass || activeClass
|
|
41
|
+
|
|
42
|
+
tag = 'router-link'
|
|
43
|
+
Object.assign(data.props, {
|
|
44
|
+
to: props.to,
|
|
45
|
+
activeClass,
|
|
46
|
+
exactActiveClass
|
|
47
|
+
})
|
|
48
|
+
} else {
|
|
49
|
+
tag = (props.href && 'a') || props.tag || 'span'
|
|
50
|
+
if (tag === 'a' && props.href) data.attrs.href = props.href
|
|
51
|
+
}
|
|
52
|
+
if (props.target) data.attrs.target = props.target
|
|
53
|
+
} else {
|
|
54
|
+
tag = props.tag || 'span'
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return {
|
|
58
|
+
tag,
|
|
59
|
+
data
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
isActive,
|
|
65
|
+
classes,
|
|
66
|
+
isClickable,
|
|
67
|
+
isLink,
|
|
68
|
+
route,
|
|
69
|
+
generateRouteLink
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@use '../../style/style';
|
|
2
|
-
@use "../../style/variables/base";
|
|
3
|
-
@use "../../style/mixins";
|
|
4
|
-
|
|
5
|
-
.#{base.$prefix}app {
|
|
6
|
-
display: flex;
|
|
7
|
-
|
|
8
|
-
background: var(--color-sheet);
|
|
9
|
-
color: var(--color-on-sheet);
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
&.app-rtl {
|
|
13
|
-
direction: rtl;
|
|
14
|
-
text-align: right;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.app-ltr {
|
|
18
|
-
direction: ltr;
|
|
19
|
-
text-align: left;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.app-wrap {
|
|
23
|
-
max-width: 100%;
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Firefox overrides
|
|
30
|
-
@include mixins.firefox() {
|
|
31
|
-
@media print {
|
|
32
|
-
.#{base.$prefix}app {
|
|
33
|
-
display: block;
|
|
34
|
-
|
|
35
|
-
&-wrap {
|
|
36
|
-
display: block
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
@use "../../../style/variables/base";
|
|
3
|
-
|
|
4
|
-
.#{base.$prefix}toast {
|
|
5
|
-
max-width: 500px;
|
|
6
|
-
width: 95vw;
|
|
7
|
-
position: fixed;
|
|
8
|
-
bottom: 15px;
|
|
9
|
-
left: 50%;
|
|
10
|
-
transform: translateX(-50%);
|
|
11
|
-
z-index: map.get(base.$z-index, 'veryImportant');
|
|
12
|
-
|
|
13
|
-
.toast-content {
|
|
14
|
-
padding: 15px;
|
|
15
|
-
display: flex;
|
|
16
|
-
align-items: center;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@use "../../style/variables/base";
|
|
2
|
-
|
|
3
|
-
.#{base.$prefix}avatar {
|
|
4
|
-
position: relative;
|
|
5
|
-
display: inline-flex;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
text-align: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
|
|
10
|
-
.avatar-content {
|
|
11
|
-
width: 100%;
|
|
12
|
-
height: 100%;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
line-height: normal;
|
|
15
|
-
position: relative;
|
|
16
|
-
overflow: hidden;
|
|
17
|
-
border: 3px solid;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.avatar-tile {
|
|
21
|
-
.avatar-content {
|
|
22
|
-
border-radius: 0
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.avatar-edit {
|
|
27
|
-
position: absolute;
|
|
28
|
-
bottom: 15px;
|
|
29
|
-
right: 15px;
|
|
30
|
-
z-index: 1;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * as rBottomNavigation from './bottomNav.vue'
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<nav :class="classes">
|
|
3
|
-
<slot></slot>
|
|
4
|
-
</nav>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
import './scss/bottomNav.scss'
|
|
9
|
-
|
|
10
|
-
export default {
|
|
11
|
-
name: 'r-bottomNav',
|
|
12
|
-
props: {
|
|
13
|
-
fixed: Boolean,
|
|
14
|
-
grow: Boolean
|
|
15
|
-
},
|
|
16
|
-
computed:{
|
|
17
|
-
classes(){
|
|
18
|
-
let a={
|
|
19
|
-
'elevation-md':true,
|
|
20
|
-
'bottom-navigation-fixed':this.fixed,
|
|
21
|
-
'bottom-navigation-grow':this.grow
|
|
22
|
-
}
|
|
23
|
-
a[`${this.$r.prefix}bottom-navigation`]=true
|
|
24
|
-
return a
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
</script>
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<nav :class="`${$r.prefix}bottom-navigation-circle`">
|
|
3
|
-
<router-link
|
|
4
|
-
:to="item.to"
|
|
5
|
-
class="navigation-item"
|
|
6
|
-
v-for="(item, i) in items"
|
|
7
|
-
:key="i"
|
|
8
|
-
>
|
|
9
|
-
<div class="navigation-item-icon">
|
|
10
|
-
<slot name="icon" :item="item">
|
|
11
|
-
<r-icon v-html="item.icon"></r-icon>
|
|
12
|
-
</slot>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="navigation-item-text">
|
|
15
|
-
<slot name="name" :item="item">{{ item.name }}</slot>
|
|
16
|
-
</div>
|
|
17
|
-
</router-link>
|
|
18
|
-
</nav>
|
|
19
|
-
</template>
|
|
20
|
-
|
|
21
|
-
<script>
|
|
22
|
-
export default {
|
|
23
|
-
name: "rBottomNavigationCircle",
|
|
24
|
-
props: {
|
|
25
|
-
items: Object
|
|
26
|
-
},
|
|
27
|
-
data() {
|
|
28
|
-
return {};
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<style lang="scss">
|
|
34
|
-
@use "sass:map";
|
|
35
|
-
@use "../../style/variables/base";
|
|
36
|
-
@use "../../style/mixins";
|
|
37
|
-
|
|
38
|
-
.#{base.$prefix}bottom-navigation-circle {
|
|
39
|
-
position: fixed;
|
|
40
|
-
bottom: 0;
|
|
41
|
-
display: flex;
|
|
42
|
-
left: 0;
|
|
43
|
-
justify-content: center;
|
|
44
|
-
width: 100%;
|
|
45
|
-
height: 56px;
|
|
46
|
-
z-index: map.get(base.$z-index, "default");
|
|
47
|
-
background-color: var(--color-sheet);
|
|
48
|
-
color: var(--color-on-sheet);
|
|
49
|
-
|
|
50
|
-
@include mixins.typography(base.$headings, 'body-3');
|
|
51
|
-
|
|
52
|
-
.navigation-item {
|
|
53
|
-
width: 100%;
|
|
54
|
-
max-width: 100%;
|
|
55
|
-
text-align: center;
|
|
56
|
-
position: relative;
|
|
57
|
-
|
|
58
|
-
&-text {
|
|
59
|
-
position: absolute;
|
|
60
|
-
bottom: 10px;
|
|
61
|
-
left: 0;
|
|
62
|
-
right: 0;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
&-icon {
|
|
66
|
-
transition: 0.3s all ease-in-out;
|
|
67
|
-
position: absolute;
|
|
68
|
-
bottom: 12px;
|
|
69
|
-
left: 0;
|
|
70
|
-
right: 0;
|
|
71
|
-
width: 50px;
|
|
72
|
-
height: 50px;
|
|
73
|
-
margin-left: auto;
|
|
74
|
-
margin-right: auto;
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: center;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.router-link-exact-active {
|
|
82
|
-
color: var(--color-one);
|
|
83
|
-
.navigation-item-icon {
|
|
84
|
-
transition: 0.3s all ease-in-out;
|
|
85
|
-
bottom: 31px;
|
|
86
|
-
background-color: var(--color-one);
|
|
87
|
-
border-radius: 50%;
|
|
88
|
-
padding: 12px;
|
|
89
|
-
width: 50px;
|
|
90
|
-
height: 50px;
|
|
91
|
-
border: 3px solid var(--color-on-one);
|
|
92
|
-
|
|
93
|
-
.#{base.$prefix}icon {
|
|
94
|
-
color: var(--color-on-one);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
</style>
|