layers-design-system 2.4.0 → 2.5.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.
Files changed (186) hide show
  1. package/dist/layers-design-system.js +78496 -0
  2. package/dist/layers-design-system.umd.cjs +285 -0
  3. package/dist/style.css +1 -0
  4. package/package.json +26 -12
  5. package/.nvmrc +0 -1
  6. package/babel.config.js +0 -5
  7. package/src/assets/button-text-editor/double-quotes.svg +0 -4
  8. package/src/assets/button-text-editor/remove-formatting.svg +0 -5
  9. package/src/assets/button-text-editor/title.svg +0 -4
  10. package/src/assets/failed-to-load/failed-to-load.svg +0 -60
  11. package/src/assets/l-presentation/external-apps.png +0 -0
  12. package/src/assets/l-presentation/notification.png +0 -0
  13. package/src/assets/search-topics/empty-tags.svg +0 -59
  14. package/src/components/LAlert/docs.vue +0 -81
  15. package/src/components/LAlert/index.vue +0 -43
  16. package/src/components/LAttachmentChip/docs.vue +0 -84
  17. package/src/components/LAttachmentChip/index.vue +0 -179
  18. package/src/components/LBox/docs.vue +0 -26
  19. package/src/components/LBox/index.vue +0 -19
  20. package/src/components/LBoxHeader/index.vue +0 -24
  21. package/src/components/LBreadcrumb/docs.vue +0 -21
  22. package/src/components/LBreadcrumb/index.vue +0 -22
  23. package/src/components/LBreadcrumbItem/index.vue +0 -7
  24. package/src/components/LButton/docs.vue +0 -205
  25. package/src/components/LButton/index.vue +0 -369
  26. package/src/components/LButtonGroup/index.vue +0 -7
  27. package/src/components/LCarousel/docs.vue +0 -32
  28. package/src/components/LCarousel/index.vue +0 -88
  29. package/src/components/LCheckbox/docs.vue +0 -62
  30. package/src/components/LCheckbox/index.vue +0 -34
  31. package/src/components/LCheckboxButton/index.vue +0 -30
  32. package/src/components/LCheckboxGroup/index.vue +0 -53
  33. package/src/components/LChip/docs.vue +0 -113
  34. package/src/components/LChip/index.vue +0 -78
  35. package/src/components/LCircularLoader/docs.vue +0 -30
  36. package/src/components/LCircularLoader/index.vue +0 -97
  37. package/src/components/LCollapse/docs.vue +0 -68
  38. package/src/components/LCollapse/index.vue +0 -13
  39. package/src/components/LCollapseItem/index.vue +0 -28
  40. package/src/components/LDatePicker/docs.vue +0 -66
  41. package/src/components/LDatePicker/index.vue +0 -63
  42. package/src/components/LDialog/docs.vue +0 -36
  43. package/src/components/LDialog/index.vue +0 -37
  44. package/src/components/LDropdown/index.vue +0 -7
  45. package/src/components/LDropdownItem/index.vue +0 -13
  46. package/src/components/LDropdownMenu/docs.vue +0 -44
  47. package/src/components/LDropdownMenu/index.vue +0 -12
  48. package/src/components/LFailedToLoad/docs.vue +0 -37
  49. package/src/components/LFailedToLoad/index.vue +0 -61
  50. package/src/components/LForm/index.vue +0 -7
  51. package/src/components/LFormItem/index.vue +0 -12
  52. package/src/components/LHelperBox/assets/link.svg +0 -4
  53. package/src/components/LHelperBox/assets/open-envelope.svg +0 -9
  54. package/src/components/LHelperBox/docs.vue +0 -29
  55. package/src/components/LHelperBox/index.vue +0 -83
  56. package/src/components/LIcon/docs.vue +0 -174
  57. package/src/components/LIcon/index.vue +0 -55
  58. package/src/components/LImage/index.vue +0 -7
  59. package/src/components/LImageViewer/docs.vue +0 -111
  60. package/src/components/LImageViewer/index.vue +0 -449
  61. package/src/components/LInput/docs.vue +0 -43
  62. package/src/components/LInput/index.vue +0 -60
  63. package/src/components/LLinearProgress/docs.vue +0 -21
  64. package/src/components/LLinearProgress/index.vue +0 -74
  65. package/src/components/LNotice/docs.vue +0 -26
  66. package/src/components/LNotice/index.vue +0 -86
  67. package/src/components/LNotification/index.vue +0 -182
  68. package/src/components/LOption/index.vue +0 -7
  69. package/src/components/LOptionGroup/index.vue +0 -7
  70. package/src/components/LPresentation/docs.vue +0 -35
  71. package/src/components/LPresentation/index.vue +0 -182
  72. package/src/components/LProgress/index.vue +0 -7
  73. package/src/components/LPromptDialog/index.vue +0 -82
  74. package/src/components/LRadio/docs.vue +0 -54
  75. package/src/components/LRadio/index.vue +0 -13
  76. package/src/components/LRadioButton/index.vue +0 -30
  77. package/src/components/LRadioGroup/index.vue +0 -54
  78. package/src/components/LSearchBar/AddFilterButton.vue +0 -71
  79. package/src/components/LSearchBar/Filters/Editors/AmountEditor.vue +0 -110
  80. package/src/components/LSearchBar/Filters/Editors/DateEditor.vue +0 -146
  81. package/src/components/LSearchBar/Filters/Editors/NumberEditor.vue +0 -141
  82. package/src/components/LSearchBar/Filters/Editors/StringEditor.vue +0 -140
  83. package/src/components/LSearchBar/Filters/Editors/index.js +0 -16
  84. package/src/components/LSearchBar/Filters/FilterChip.vue +0 -105
  85. package/src/components/LSearchBar/Filters/Views/AmountView.vue +0 -28
  86. package/src/components/LSearchBar/Filters/Views/DateView.vue +0 -46
  87. package/src/components/LSearchBar/Filters/Views/NumberView.vue +0 -24
  88. package/src/components/LSearchBar/Filters/Views/StringView.vue +0 -47
  89. package/src/components/LSearchBar/Filters/Views/index.js +0 -16
  90. package/src/components/LSearchBar/docs.vue +0 -60
  91. package/src/components/LSearchBar/index.vue +0 -240
  92. package/src/components/LSearchTopics/RecentTermSearched.vue +0 -30
  93. package/src/components/LSearchTopics/TopicItem.vue +0 -346
  94. package/src/components/LSearchTopics/docs/drawer.vue +0 -254
  95. package/src/components/LSearchTopics/docs.vue +0 -60
  96. package/src/components/LSearchTopics/header.vue +0 -199
  97. package/src/components/LSearchTopics/helpers/showDialogConfirmation.js +0 -30
  98. package/src/components/LSearchTopics/helpers/showDiscardChangesDialog.js +0 -27
  99. package/src/components/LSearchTopics/index.vue +0 -750
  100. package/src/components/LSelect/docs.vue +0 -129
  101. package/src/components/LSelect/index.vue +0 -9
  102. package/src/components/LSlider/index.vue +0 -7
  103. package/src/components/LSwitch/docs.vue +0 -24
  104. package/src/components/LSwitch/index.vue +0 -60
  105. package/src/components/LTabPane/index.vue +0 -7
  106. package/src/components/LTable/FieldTypes/AmountView.vue +0 -16
  107. package/src/components/LTable/FieldTypes/DateView.vue +0 -18
  108. package/src/components/LTable/FieldTypes/EmailView.vue +0 -8
  109. package/src/components/LTable/FieldTypes/NumberView.vue +0 -13
  110. package/src/components/LTable/FieldTypes/PaymentStatusView.vue +0 -8
  111. package/src/components/LTable/FieldTypes/StringView.vue +0 -24
  112. package/src/components/LTable/FieldTypes/index.js +0 -18
  113. package/src/components/LTable/LTableBody.vue +0 -245
  114. package/src/components/LTable/LTableBodySpacer.vue +0 -17
  115. package/src/components/LTable/LTableEndspace.vue +0 -20
  116. package/src/components/LTable/LTableHeader.vue +0 -155
  117. package/src/components/LTable/LTableHeaderCell.vue +0 -188
  118. package/src/components/LTable/LTableHeaderLoader.vue +0 -62
  119. package/src/components/LTable/LTableHeaderResizer.vue +0 -162
  120. package/src/components/LTable/LTableLoadMore.vue +0 -56
  121. package/src/components/LTable/LTablePagination.vue +0 -174
  122. package/src/components/LTable/LTableReloader.vue +0 -61
  123. package/src/components/LTable/ListAdapter.js +0 -74
  124. package/src/components/LTable/docs.vue +0 -111
  125. package/src/components/LTable/helpers.js +0 -194
  126. package/src/components/LTable/index.vue +0 -961
  127. package/src/components/LTabs/docs.vue +0 -28
  128. package/src/components/LTabs/index.vue +0 -37
  129. package/src/components/LTargetChip/docs.vue +0 -86
  130. package/src/components/LTargetChip/index.vue +0 -64
  131. package/src/components/LTargetInput/docs.vue +0 -72
  132. package/src/components/LTargetInput/index.vue +0 -78
  133. package/src/components/LTextEditor/FloatingLink.vue +0 -91
  134. package/src/components/LTextEditor/LinkBox.vue +0 -94
  135. package/src/components/LTextEditor/docs.vue +0 -32
  136. package/src/components/LTextEditor/extensions/LayersBlockquote.js +0 -12
  137. package/src/components/LTextEditor/extensions/LayersBold.js +0 -11
  138. package/src/components/LTextEditor/extensions/LayersBreakLine.js +0 -16
  139. package/src/components/LTextEditor/extensions/LayersBubbleMenu.js +0 -10
  140. package/src/components/LTextEditor/extensions/LayersBulletList.js +0 -12
  141. package/src/components/LTextEditor/extensions/LayersHeading.js +0 -13
  142. package/src/components/LTextEditor/extensions/LayersHistory.js +0 -10
  143. package/src/components/LTextEditor/extensions/LayersItalic.js +0 -11
  144. package/src/components/LTextEditor/extensions/LayersLink.js +0 -29
  145. package/src/components/LTextEditor/extensions/LayersOrderedList.js +0 -12
  146. package/src/components/LTextEditor/extensions/LayersParagraph.js +0 -44
  147. package/src/components/LTextEditor/extensions/LayersPlaceholder.js +0 -11
  148. package/src/components/LTextEditor/extensions/LayersUnderline.js +0 -29
  149. package/src/components/LTextEditor/helpers/addProtocol.js +0 -5
  150. package/src/components/LTextEditor/helpers/removeEmptyTags.js +0 -5
  151. package/src/components/LTextEditor/index.vue +0 -421
  152. package/src/components/LTimeSelect/docs.vue +0 -41
  153. package/src/components/LTimeSelect/index.vue +0 -49
  154. package/src/components/LToggleButtonGroup/index.vue +0 -87
  155. package/src/components/LTooltip/docs.vue +0 -66
  156. package/src/components/LTooltip/index.vue +0 -28
  157. package/src/components/LTransitionExpand/docs.vue +0 -26
  158. package/src/components/LTransitionExpand/index.vue +0 -88
  159. package/src/components/LUpload/index.vue +0 -7
  160. package/src/docs/Colors.vue +0 -50
  161. package/src/docs/Home.vue +0 -11
  162. package/src/docs/Notifications.vue +0 -88
  163. package/src/docs/index.vue +0 -76
  164. package/src/docs/routes.js +0 -20
  165. package/src/helpers/Colors.js +0 -79
  166. package/src/helpers/FieldTypeComponents.js +0 -43
  167. package/src/helpers/Icons.js +0 -67
  168. package/src/helpers/Notification.js +0 -94
  169. package/src/helpers/PrettySize.js +0 -25
  170. package/src/helpers/RegisterElementUIComponents.js +0 -9
  171. package/src/helpers/Schemas.js +0 -18
  172. package/src/helpers/util.js +0 -15
  173. package/src/main-docs.js +0 -132
  174. package/src/main.js +0 -100
  175. package/src/style/colors.scss +0 -31
  176. package/src/style/element-variables.scss +0 -21
  177. package/src/style/icons.scss +0 -5
  178. package/src/style/layers-variables.scss +0 -73
  179. package/src/style/layout.scss +0 -2288
  180. package/src/style/main.scss +0 -11
  181. package/src/style/notifications.scss +0 -88
  182. package/src/style/transitions.scss +0 -43
  183. package/src/style/typography.scss +0 -155
  184. package/vue.config.js +0 -14
  185. /package/{public → dist}/favicon.ico +0 -0
  186. /package/{public → dist}/index.html +0 -0
@@ -1,369 +0,0 @@
1
- <template>
2
- <button
3
- class="l-button el-button"
4
- @click="handleClick"
5
- :disabled="buttonDisabled || loading"
6
- :autofocus="autofocus"
7
- :type="nativeType"
8
- :class="[
9
- type ? 'el-button--' + type : '',
10
- buttonSize ? 'el-button--' + buttonSize : '',
11
- {
12
- 'is-disabled': buttonDisabled,
13
- 'is-loading': loading,
14
- 'is-plain': plain,
15
- 'is-round': round,
16
- 'is-circle': circle,
17
- 'is-fab': fab,
18
- 'is-square': square,
19
- 'is-fill': fill,
20
- }
21
- ]"
22
- >
23
- <i class="el-icon-loading" v-if="loading"></i>
24
- <i :class="icon" v-if="icon && !loading"></i>
25
- <span
26
- :style="type == 'text' && textColor ? { 'color': textColorStyle } : ''"
27
- v-if="$slots.default"
28
- >
29
- <slot></slot>
30
- </span>
31
- </button>
32
- </template>
33
- <script>
34
- import { getColor } from '../../helpers/Colors'
35
- export default {
36
- tagName: 'l-button',
37
- inject: {
38
- elForm: {
39
- default: ''
40
- },
41
- elFormItem: {
42
- default: ''
43
- }
44
- },
45
- props: {
46
- type: {
47
- type: String,
48
- default: 'default'
49
- },
50
- size: String,
51
- icon: {
52
- type: String,
53
- default: ''
54
- },
55
- nativeType: {
56
- type: String,
57
- default: 'button'
58
- },
59
- loading: Boolean,
60
- disabled: Boolean,
61
- plain: Boolean,
62
- autofocus: Boolean,
63
- round: Boolean,
64
- circle: Boolean,
65
- fab: Boolean,
66
- square: Boolean,
67
- fill: Boolean,
68
- textColor: String,
69
- },
70
- computed: {
71
- _elFormItemSize() {
72
- return (this.elFormItem || {}).elFormItemSize;
73
- },
74
- buttonSize() {
75
- return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
76
- },
77
- buttonDisabled() {
78
- return this.disabled || (this.elForm || {}).disabled;
79
- },
80
- textColorStyle() {
81
- return getColor(this.textColor)
82
- }
83
- },
84
- methods: {
85
- handleClick(evt) {
86
- this.$emit('click', evt);
87
- }
88
- }
89
- };
90
- </script>
91
- <style lang="scss">
92
- @import "../../style/main.scss";
93
-
94
- @mixin button-plain($color) {
95
- color: $color;
96
- background: transparent;
97
- border-color: $color;
98
-
99
- &:hover,
100
- &:focus {
101
- background: mix($--color-white, $color, 90%);
102
- border-color: $color;
103
- color: $color;
104
- }
105
-
106
- &:active {
107
- background: mix($--color-white, $color, 70%);
108
- border-color: $color;
109
- color: $color;
110
- outline: none;
111
- }
112
-
113
- &.is-disabled {
114
- &,
115
- &:hover,
116
- &:focus,
117
- &:active {
118
- color: $gray-50;
119
- background-color: mix($--color-white, $color, 100%);
120
- border-color: $gray-30;
121
- }
122
- }
123
- }
124
-
125
- @mixin button-variant($color, $background-color, $border-color) {
126
- color: $color;
127
- background-color: $background-color;
128
- border-color: $border-color;
129
-
130
- &:hover,
131
- &:focus {
132
- background: mix($--color-white, $background-color, $--button-hover-tint-percent);
133
- border-color: mix($--color-white, $border-color, $--button-hover-tint-percent);
134
- color: $color;
135
- }
136
-
137
- &:active {
138
- background: mix($--color-black, $background-color, $--button-active-shade-percent);
139
- border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
140
- color: $color;
141
- outline: none;
142
- }
143
-
144
- &.is-active {
145
- background: mix($--color-black, $background-color, $--button-active-shade-percent);
146
- border-color: mix($--color-black, $border-color, $--button-active-shade-percent);
147
- color: $color;
148
- }
149
-
150
- &.is-disabled {
151
- &,
152
- &:hover,
153
- &:focus,
154
- &:active {
155
- color: $gray-50;
156
- background-color: $gray-30;
157
- border-color: transparent;
158
- }
159
- }
160
-
161
- &.is-plain {
162
- @include button-plain($background-color);
163
- }
164
- }
165
-
166
- .l-button.el-button {
167
- color: $--button-info-background-color;
168
- font-weight: 700;
169
-
170
- &.el-button--default:hover, &.el-button--default:focus {
171
- color: $--button-info-background-color;
172
- background-color: $gray-10;
173
- border-color: $gray-40;
174
- }
175
- &.el-button--primary {
176
- @include button-variant($--button-primary-font-color, $--button-primary-background-color, $--button-primary-border-color);
177
- }
178
- &.el-button--success {
179
- @include button-variant($--button-success-font-color, $--button-success-background-color, $--button-success-border-color);
180
- }
181
- &.el-button--warning {
182
- @include button-variant($--button-warning-font-color, $--button-warning-background-color, $--button-warning-border-color);
183
- }
184
- &.el-button--danger {
185
- @include button-variant($--button-danger-font-color, $--button-danger-background-color, $--button-danger-border-color);
186
- }
187
- &.el-button--info {
188
- @include button-variant($--button-info-font-color, $--button-info-background-color, $--button-info-border-color);
189
- }
190
- }
191
-
192
-
193
- .l-button.el-button--medium, .l-button.el-button--medium.is-round {
194
- padding-bottom: 0px;
195
- padding-top: 0px;
196
- }
197
- .l-button.el-button {
198
- display: inline-flex;
199
- align-items: center;
200
- justify-content: center;
201
- box-sizing: border-box;
202
- }
203
- .l-button.el-button > i {
204
- flex: none;
205
- }
206
- .l-button.el-button [class*=el-icon-] + span,
207
- .l-button.el-button [class*=uil-] + span {
208
- margin-left: 8px;
209
- }
210
-
211
- .l-button > span {
212
- display: flex;
213
- align-items: center;
214
- justify-content: center;
215
- }
216
-
217
- .l-button.is-loading > span {
218
- opacity: 0;
219
- }
220
-
221
- .l-button .el-icon-loading {
222
- align-items: center;
223
- display: flex;
224
- height: 100%;
225
- justify-content: center;
226
- left: 0;
227
- position: absolute;
228
- top: 0;
229
- width: 100%;
230
- }
231
-
232
-
233
- /* Fix button height */
234
- .l-button.el-button--large {
235
- height: 56px;
236
- font-size: 18px;
237
- }
238
- .l-button.el-button--medium {
239
- height: 40px;
240
- font-size: 14px;
241
- }
242
- .l-button.el-button--small {
243
- height: 32px;
244
- font-size: 14px;
245
- }
246
- .l-button.el-button--mini {
247
- height: 28px;
248
- }
249
-
250
-
251
- .l-button.el-button--large {
252
- padding: 18px 42px;
253
- font-size: 18px;
254
- border-radius: 4px;
255
- }
256
- .l-button.el-button--large.is-round {
257
- padding: 18px 42px;
258
- font-size: 18px;
259
- border-radius: 42px;
260
- }
261
- .l-button.el-button--medium {
262
- padding: 12px 20px;
263
- }
264
- .l-button.el-button--medium.is-round {
265
- padding: 12px 20px;
266
- }
267
-
268
-
269
- /* Fill */
270
- .l-button.el-button.is-fill {
271
- width: 100%;
272
- margin: 0px;
273
- }
274
-
275
-
276
- /* Circle buttons */
277
- .l-button.el-button--large.el-button.is-circle {
278
- height: 44px;
279
- }
280
- .l-button.el-button--medium.el-button.is-circle {
281
- height: 36px;
282
- }
283
-
284
-
285
- /* Square */
286
- .l-button.el-button.is-square {
287
- padding: 12px;
288
- border-radius: 4px;
289
- }
290
- .l-button.el-button--large.el-button.is-square {
291
- padding: 13px;
292
- height: 56px;
293
- width: 56px;
294
- }
295
- .l-button.el-button--medium.el-button.is-square {
296
- padding: 7px;
297
- height: 40px;
298
- width: 40px;
299
- }
300
- .l-button.el-button--small.el-button.is-square {
301
- padding: 5px;
302
- height: 32px;
303
- width: 32px;
304
- }
305
- .l-button.el-button--mini.el-button.is-square {
306
- padding: 4px;
307
- height: 28px;
308
- width: 28px;
309
- }
310
- .l-button.el-button--large.el-button.is-square > i {
311
- font-size: 28px;
312
- }
313
- .l-button.el-button--medium.el-button.is-square > i {
314
- font-size: 24px;
315
- }
316
- .l-button.el-button--small.el-button.is-square > i {
317
- font-size: 20px;
318
- }
319
-
320
-
321
- /* Text button */
322
- .l-button.el-button.el-button--text:hover:not(.is-disabled) > span,
323
- .l-button.el-button.el-button--text:focus:not(.is-disabled) > span {
324
- text-decoration: underline;
325
- }
326
-
327
- /* Float Action Button */
328
- .l-button.el-button.is-fab {
329
- height: 40px;
330
- border: none;
331
- padding: 13px;
332
- border-radius: 50%;
333
- box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.16);
334
- }
335
- .l-button.el-button--large.el-button.is-fab {
336
- padding: 14px;
337
- height: 56px;
338
- width: 56px;
339
- }
340
- .l-button.el-button--medium.el-button.is-fab {
341
- padding: 12px;
342
- height: 48px;
343
- width: 48px;
344
- }
345
- .l-button.el-button--small.el-button.is-fab {
346
- padding: 10px;
347
- height: 40px;
348
- width: 40px;
349
- }
350
- .l-button.el-button--mini.el-button.is-fab {
351
- padding: 7px;
352
- height: 32px;
353
- width: 32px;
354
- }
355
-
356
- /* Icons */
357
- .l-button.el-button--large.el-button.is-fab > i {
358
- font-size: 28px;
359
- }
360
- .l-button.el-button--medium.el-button.is-fab > i {
361
- font-size: 24px;
362
- }
363
- .l-button.el-button--small.el-button.is-fab > i {
364
- font-size: 20px;
365
- }
366
- .l-button.el-button--mini.el-button.is-fab > i {
367
- font-size: 18px;
368
- }
369
- </style>
@@ -1,7 +0,0 @@
1
- <script>
2
- import { ButtonGroup } from 'element-ui';
3
- export default {
4
- tagName: 'l-button-group',
5
- extends: ButtonGroup
6
- }
7
- </script>
@@ -1,32 +0,0 @@
1
- <template>
2
- <div style="display: flex; flex: 1 1 auto; max-width: 80%">
3
- <l-carousel :images="demoImages"/>
4
- </div>
5
- </template>
6
-
7
- <script>
8
- export default {
9
- name: 'Carousel',
10
- data: function() {
11
- return {
12
- demoImages: [
13
- {
14
- name: "Imagem 1",
15
- id: "1",
16
- src: "https://image.shutterstock.com/image-photo/panoramic-background-wide-old-red-600w-1642362355.jpg",
17
- },
18
- {
19
- name: "Imagem 2",
20
- id: "2",
21
- src: "https://image.shutterstock.com/image-photo/panoramic-background-wide-old-red-600w-1642362355.jpg",
22
- },
23
- {
24
- name: "Imagem 3",
25
- id: "3",
26
- src: "https://image.shutterstock.com/image-photo/panoramic-background-wide-old-red-600w-1642362355.jpg",
27
- }
28
- ]
29
- }
30
- }
31
- }
32
- </script>
@@ -1,88 +0,0 @@
1
- <template>
2
- <div class="carousel">
3
- <l-button class="slider-control" circle icon="uil-angle-left" style="left: 1em;" @click="previous" v-if="selected > 0"></l-button>
4
- <div class="slider-container">
5
- <div v-for="(image, index) of images" :key="image.index"
6
- class="slide" :ref="`img:${index}`">
7
- <div class="img-container">
8
- <img :src="image.src" :height="height" :width="width" style="border-radius: 10px;"/>
9
- </div>
10
- </div>
11
- </div>
12
- <l-button class="slider-control" circle icon="uil-angle-right" style="right: 1em;" @click="next" v-if="selected < images.length - 1"></l-button>
13
- </div>
14
- </template>
15
-
16
- <script>
17
-
18
- export default {
19
- tagName: 'l-carousel',
20
- name: 'Lcarousel',
21
- props:['images', 'height', 'width'],
22
- data: function() {
23
- return {
24
- selected: 0
25
- }
26
- },
27
- methods: {
28
- previous() {
29
- this.selected--
30
- const el = this.$refs[`img:${this.selected}`]
31
- el[0].scrollIntoView({ behavior: 'smooth' })
32
- },
33
- next() {
34
- this.selected++
35
- const el = this.$refs[`img:${this.selected}`]
36
- el[0].scrollIntoView({ behavior: 'smooth' })
37
- }
38
- }
39
- }
40
- </script>
41
-
42
- <style scoped>
43
- .carousel {
44
- display: flex;
45
- flex-direction: row;
46
- height: 100%;
47
- max-width: 100%;
48
- position: relative;
49
- }
50
-
51
- .slider-container {
52
- height: 100%;
53
- padding-bottom: 1em;
54
- padding-top: 1em;
55
- position: relative;
56
- overflow-x: scroll;
57
- scroll-snap-type: x mandatory;
58
- display: flex;
59
- flex-direction: row;
60
- }
61
-
62
- .slide {
63
- display: flex;
64
- height: 100%;
65
- min-width: 80%;
66
- scroll-snap-align: center;
67
- scroll-snap-stop: always;
68
- }
69
- .slide + .slide {
70
- margin-left: 1rem;
71
- }
72
-
73
- .slider-control {
74
- position: absolute;
75
- top: 50%;
76
- z-index: 999;
77
- height: 24px;
78
- width: 24px
79
- }
80
-
81
- .img-container {
82
- display: flex;
83
- flex: 1 1 auto;
84
- justify-content: center;
85
- align-items: center;
86
- }
87
-
88
- </style>
@@ -1,62 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <h1>Checkbox</h1>
4
-
5
- <div>
6
- <h2>Basic</h2>
7
- <l-checkbox>Option</l-checkbox>
8
- <l-checkbox :value="true">Checked</l-checkbox>
9
- <l-checkbox :disabled="true">Disabled</l-checkbox>
10
- <l-checkbox :value="true" :disabled="true">Checked Disabled</l-checkbox>
11
- <l-checkbox :indeterminate="true">Indeterminate</l-checkbox>
12
- </div>
13
-
14
- <div>
15
- <h2>Original (from Element UI)</h2>
16
- <el-checkbox>Option</el-checkbox>
17
- <el-checkbox :value="true">Checked</el-checkbox>
18
- <el-checkbox :disabled="true">Disabled</el-checkbox>
19
- <el-checkbox :value="true" :disabled="true">Checked Disabled</el-checkbox>
20
- <el-checkbox :indeterminate="true">Indeterminate</el-checkbox>
21
- </div>
22
-
23
- <div>
24
- <h2>Button style </h2>
25
- <l-checkbox-group v-model="checkbox1" size="medium">
26
- <l-checkbox-button label="New York" ></l-checkbox-button>
27
- <l-checkbox-button label="Washington"></l-checkbox-button>
28
- <l-checkbox-button label="Los Angeles"></l-checkbox-button>
29
- <l-checkbox-button label="Chicago"></l-checkbox-button>
30
- </l-checkbox-group>
31
- </div>
32
-
33
- <div>
34
- <h2>Button style separeted</h2>
35
- <l-checkbox-group v-model="checkbox2" size="small" separated color="link">
36
- <l-checkbox-button
37
- v-for="option in options"
38
- :label="option"
39
- :key="option"
40
- >
41
- {{ option }}
42
- </l-checkbox-button>
43
- </l-checkbox-group>
44
- </div>
45
-
46
-
47
- </div>
48
- </template>
49
-
50
- <script>
51
- export default {
52
- name: "Checkbox",
53
-
54
- data(){
55
- return {
56
- checkbox1: [],
57
- checkbox2: [],
58
- options: ['👨‍🎓 Administrador', '👨‍🎓 Coordenador', '👨‍🎓 Estudante', '👨‍🎓 Familiar']
59
- }
60
- }
61
- };
62
- </script>
@@ -1,34 +0,0 @@
1
- <script>
2
- import { Checkbox } from "element-ui";
3
- export default {
4
- tagName: "l-checkbox",
5
- extends: Checkbox,
6
- };
7
- </script>
8
- <style>
9
- @charset "UTF-8";
10
-
11
- .l-checkbox .el-checkbox__inner {
12
- transition: none !important;
13
- box-sizing: border-box;
14
- border-color: var(--color-gray-50);
15
- width: 16px;
16
- height: 16px;
17
- }
18
-
19
- .l-checkbox .el-checkbox__input.is-checked .el-checkbox__inner::after {
20
- border-width: 2px;
21
- width: 5px;
22
- height: 12px;
23
- display: flex;
24
- align-items: center;
25
- justify-content: center;
26
- left: 5px;
27
- border-color: var(--white);
28
- }
29
-
30
- .l-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner::before {
31
- height: 4px;
32
- top: 4px;
33
- }
34
- </style>
@@ -1,30 +0,0 @@
1
- <script>
2
- import { CheckboxButton } from 'element-ui';
3
- export default {
4
- tagName: 'l-checkbox-button',
5
- extends: CheckboxButton
6
- }
7
- </script>
8
-
9
- <style type="text/css">
10
- .l-checkbox-button:first-child .el-checkbox-button__inner {
11
- border-left: 1px solid var(--color-gray-70)!important;
12
- }
13
- .l-checkbox-button:last-child .el-checkbox-button__inner {
14
- border-right: 1px solid var(--color-gray-70)!important;
15
- }
16
- .l-checkbox-button .el-checkbox-button__inner {
17
- border-top: 1px solid var(--color-gray-70);
18
- border-bottom: 1px solid var(--color-gray-70);
19
- border-left: 1px solid var(--color-gray-70);
20
- border-right: none;
21
- }
22
- .l-checkbox-button.el-checkbox-button--small .el-checkbox-button__inner {
23
- padding-left: 12px;
24
- padding-right: 12px;
25
- color: var(--color-lead);
26
- font-weight: 600;
27
- font-size: 12px;
28
- line-height: 12px;
29
- }
30
- </style>
@@ -1,53 +0,0 @@
1
- <script>
2
- import { getColor } from '../../helpers/Colors'
3
- import { CheckboxGroup } from 'element-ui';
4
-
5
- import clone from 'lodash/clone'
6
- const Base = clone(CheckboxGroup);
7
- delete Base.props.fill;
8
-
9
- export default {
10
- tagName: 'l-checkbox-group',
11
- extends: CheckboxGroup,
12
-
13
- props: {
14
- separated: { type: Boolean, default: () => false },
15
- color: { type: String, default: () => 'primary' },
16
- },
17
-
18
- computed: {
19
- fill() {
20
- return getColor(this.$options.propsData.color)
21
- }
22
- },
23
-
24
- mounted() {
25
- if(this.separated) {
26
- this.$el.classList.add("l-checkbox-group-separated")
27
-
28
- if(this.$el.children && this.$el.children.length) {
29
- Array.from(this.$el.children).forEach(child => child.classList.add("l-checkbox-button-separated"))
30
- }
31
- }
32
- }
33
- }
34
- </script>
35
-
36
- <style type="text/css">
37
- .l-checkbox-group.l-checkbox-group-separated {
38
- display: inline-flex;
39
- flex-wrap: wrap;
40
- margin: -0.5rem 0 0 -0.5rem;
41
- width: calc(100% + 0.5rem);
42
- }
43
- .l-checkbox-group.l-checkbox-group-separated > * {
44
- margin: 0.5rem 0 0 0.5rem;
45
- }
46
- .l-checkbox-group.l-checkbox-group-separated .l-checkbox-button .el-checkbox-button__inner {
47
- border: 1px solid var(--color-gray-70)!important;
48
- border-radius: 4px!important;
49
- }
50
- .l-checkbox-group .l-checkbox-button .el-checkbox-button__original:checked + .el-checkbox-button__inner{
51
- border: 1px solid transparent!important;
52
- }
53
- </style>