layers-design-system 2.3.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 -101
  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,86 +0,0 @@
1
-
2
- <template>
3
- <div :style="{'--color': color}" :class="{ outline, fill }">
4
- <template v-if="showIcon">
5
- <l-icon v-if="icon">{{ icon }}</l-icon>
6
- <span v-else class="no-icon"></span>
7
- </template>
8
- <span class="text">
9
- <slot></slot>
10
- </span>
11
- </div>
12
- </template>
13
- <script>
14
- export default {
15
- tagName: "l-notice",
16
- props: {
17
- type: String,
18
- outline: { type: Boolean, default: () => false },
19
- fill: { type: Boolean, default: () => true },
20
- showIcon: { type: Boolean, default: () => true },
21
- color: {
22
- type: String,
23
- default() {
24
- return this.type;
25
- }
26
- },
27
- icon: {
28
- type: String,
29
- default() {
30
- if (!this.type) return null;
31
- switch (this.type) {
32
- case "danger":
33
- return "uil-exclamation-circle";
34
- case "warning":
35
- return "uil-clock";
36
- case "success":
37
- return "uil-check-circle";
38
- default:
39
- throw new Error(`Unknown type ${this.type}`);
40
- }
41
- }
42
- }
43
- }
44
- };
45
- </script>
46
- <style>
47
- .l-notice {
48
- padding: 4px 8px;
49
- border-radius: 4px;
50
- border: 0 solid var(--color);
51
- position: relative;
52
- display: flex;
53
- }
54
- .l-notice.outline {
55
- border-width: 1px;
56
- }
57
- .l-notice .text {
58
- font-size: 14px;
59
- }
60
- .l-notice.fill:before {
61
- content: " ";
62
- top: 0;
63
- left: 0;
64
- right: 0;
65
- bottom: 0;
66
- background: var(--color);
67
- display: block;
68
- position: absolute;
69
- overflow: hidden;
70
- z-index: -1;
71
- opacity: 0.1;
72
- border-radius: 4px;
73
- }
74
- .l-notice .l-icon {
75
- color: var(--color);
76
- margin-right: 8px;
77
- }
78
- .l-notice .no-icon {
79
- border-radius: 50%;
80
- margin-right: 8px;
81
- height: 8px;
82
- width: 8px;
83
- display: inline-block;
84
- background: var(--color);
85
- }
86
- </style>
@@ -1,182 +0,0 @@
1
- <template>
2
- <transition name="el-notification-fade">
3
- <div
4
- :class="['el-notification', customClass, horizontalClass]"
5
- v-show="visible"
6
- :style="positionStyle"
7
- @mouseenter="clearTimer()"
8
- @mouseleave="startTimer()"
9
- @click="click"
10
- role="alert"
11
- >
12
- <l-circular-loader
13
- v-if="loading && loadingPosition == 'left'"
14
- :type="loadingType"
15
- class="el-notification__loadingLeft"
16
- ></l-circular-loader>
17
- <i
18
- class="el-notification__icon"
19
- :class="[ typeClass, iconClass ]"
20
- v-else-if="typeClass || iconClass">
21
- </i>
22
- <div class="el-notification__group" :class="{ 'is-with-icon': typeClass || iconClass, 'not-closeable': !showClose }">
23
- <div class="el-notification__wrapper">
24
- <h2 class="el-notification__title" v-if="title" v-text="title"></h2>
25
- <div class="el-notification__content text-regular" v-show="message">
26
- <slot>
27
- <p v-if="!dangerouslyUseHTMLString">{{ message }}</p>
28
- <p v-else v-html="message"></p>
29
- </slot>
30
- </div>
31
- </div>
32
- <l-button
33
- type="text"
34
- v-if="actionLabel"
35
- @click="callAction()"
36
- class="el-notification__actionBtn" :class="actionColor + '--text'">
37
- {{ actionLabel }}
38
- </l-button>
39
- </div>
40
- <l-circular-loader
41
- class="el-notification__loadingRight"
42
- v-if="loading && loadingPosition == 'right'"
43
- :type="loadingType"
44
- ></l-circular-loader>
45
- <l-icon
46
- class="white--text el-notification_closeButton"
47
- v-else-if="showClose"
48
- @click.stop="close"
49
- >
50
- uil-multiply
51
- </l-icon>
52
- </div>
53
- </transition>
54
- </template>
55
-
56
- <script>
57
- import LIcon from '../LIcon/index.vue'
58
-
59
- let typeMap = {
60
- success: 'success',
61
- info: null,
62
- warning: 'warning',
63
- error: null
64
- };
65
- export default {
66
- tagName: "l-notification",
67
- components: {
68
- LIcon
69
- },
70
- data() {
71
- return {
72
- visible: false,
73
- title: '',
74
- message: '',
75
- duration: 4500,
76
- type: '',
77
- showClose: true,
78
- customClass: '',
79
- iconClass: '',
80
- onClose: null,
81
- onClick: null,
82
- closed: false,
83
- verticalOffset: 0,
84
- timer: null,
85
- dangerouslyUseHTMLString: false,
86
- position: 'top-right',
87
- loading: false,
88
- loadingPosition: 'left',
89
- loadingType: 'dark',
90
- action: null,
91
- actionLabel: '',
92
- actionColor: 'white',
93
- };
94
- },
95
- computed: {
96
- typeClass() {
97
- return this.type && typeMap[this.type] ? `el-icon-${ typeMap[this.type] }` : '';
98
- },
99
- horizontalClass() {
100
- if(this.position.indexOf('left') === -1 && this.position.indexOf('right') === -1) {
101
- return 'center'
102
- }
103
- return this.position.indexOf('right') > -1 ? 'right' : 'left';
104
- },
105
- verticalProperty() {
106
- return /^top/.test(this.position) ? 'top' : 'bottom';
107
- },
108
- positionStyle() {
109
- return {
110
- [this.verticalProperty]: `${ this.verticalOffset }px`
111
- };
112
- }
113
- },
114
- watch: {
115
- closed(newVal) {
116
- if (newVal) {
117
- this.visible = false;
118
- this.$el.addEventListener('transitionend', this.destroyElement);
119
- }
120
- }
121
- },
122
- methods: {
123
- callAction() {
124
- if(typeof this.action === 'function') {
125
- return this.action()
126
- }
127
- },
128
- destroyElement() {
129
- this.$el.removeEventListener('transitionend', this.destroyElement);
130
- this.$destroy(true);
131
- this.$el.parentNode.removeChild(this.$el);
132
- },
133
- click() {
134
- if (typeof this.onClick === 'function') {
135
- this.onClick();
136
- }
137
- },
138
- close() {
139
- this.closed = true;
140
- if (typeof this.onClose === 'function') {
141
- this.onClose();
142
- }
143
- },
144
- clearTimer() {
145
- clearTimeout(this.timer);
146
- },
147
- startTimer() {
148
- if (this.duration > 0) {
149
- this.timer = setTimeout(() => {
150
- if (!this.closed) {
151
- this.close();
152
- }
153
- }, this.duration);
154
- }
155
- },
156
- keydown(e) {
157
- if (e.keyCode === 46 || e.keyCode === 8) {
158
- this.clearTimer();
159
- } else if (e.keyCode === 27) {
160
- if (!this.closed) {
161
- this.close();
162
- }
163
- } else {
164
- this.startTimer();
165
- }
166
- }
167
- },
168
- mounted() {
169
- if (this.duration > 0) {
170
- this.timer = setTimeout(() => {
171
- if (!this.closed) {
172
- this.close();
173
- }
174
- }, this.duration);
175
- }
176
- document.addEventListener('keydown', this.keydown);
177
- },
178
- beforeDestroy() {
179
- document.removeEventListener('keydown', this.keydown);
180
- }
181
- };
182
- </script>
@@ -1,7 +0,0 @@
1
- <script>
2
- import { Option } from 'element-ui';
3
- export default {
4
- tagName: 'l-option',
5
- extends: Option,
6
- }
7
- </script>
@@ -1,7 +0,0 @@
1
- <script>
2
- import { OptionGroup } from 'element-ui';
3
- export default {
4
- tagName: 'l-option-group',
5
- extends: OptionGroup,
6
- }
7
- </script>
@@ -1,35 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <h1>Presentation</h1>
4
- <l-presentation @close="toggleDialog" :value="dialog" color="#BAEAF8" :image="require('../../assets/l-presentation/notification.png')">
5
- <slot slot="content">
6
- Agora é possível administrar suas notificações. Diga como e por quais apps você deseja ser notificado em <strong>Notificações.</strong>
7
- </slot>
8
- <l-button @click="toggleDialog" style="width: fit-content; margin-top: 20px;">Apresentação por dialog</l-button>
9
- </l-presentation>
10
- <l-presentation @close="toggleTooltip" mode="cover" :isTooltip="true" :value="tooltip" placement="right" color="#BAEAF8" :image="require('../../assets/l-presentation/external-apps.png')">
11
- <slot slot="content">
12
- Administre suas notificações. Diga como e por quais apps você deseja ser notificado, acesse a aba de <strong>Notificações.</strong>
13
- </slot>
14
- <l-button @click="toggleTooltip" style="width: fit-content; margin-top: 20px;">Apresentação por tooltip</l-button>
15
- </l-presentation>
16
- </div>
17
- </template>
18
-
19
- <script>
20
- export default {
21
- name: "Presentation",
22
- data: () => ({
23
- tooltip: false,
24
- dialog: false
25
- }),
26
- methods: {
27
- toggleTooltip() {
28
- this.tooltip = !this.tooltip;
29
- },
30
- toggleDialog() {
31
- this.dialog = !this.dialog;
32
- }
33
- }
34
- };
35
- </script>
@@ -1,182 +0,0 @@
1
- <template>
2
- <l-tooltip v-if="isTooltip" ref="tooltip" :placement="placement" effect="light" :value="value" manual
3
- :tooltipClass="['l-presentation-popper', tooltipClass]">
4
- <div class="tooltip-content" slot="content">
5
- <div class="image-container" :style="{ 'background-color': color }">
6
- <img :src="image" :class="['l-presentation-image', mode]" draggable="false" alt="Presentation">
7
- <l-button @click="close" class="close-button" fab icon="uil-times" size="mini" type="info" />
8
- </div>
9
- <p>
10
- <slot name="content" />
11
- </p>
12
- </div>
13
- <slot />
14
- </l-tooltip>
15
- <div v-else>
16
- <l-dialog :visible.sync="value" :before-close="close">
17
- <div slot="title" class="image-container" :style="{ 'background-color': color }">
18
- <img :src="image" :class="['l-presentation-image', mode]" width="280" height="160" draggable="false"
19
- alt="Presentation">
20
- </div>
21
- <div class="tooltip-content">
22
- <p>
23
- <slot name="content" />
24
- </p>
25
- </div>
26
- </l-dialog>
27
- <slot />
28
- </div>
29
- </template>
30
-
31
- <script>
32
- import Vue from "vue";
33
-
34
- export default {
35
- tagName: "l-presentation",
36
- props: {
37
- image: {
38
- type: String,
39
- required: true,
40
- },
41
- color: {
42
- type: String,
43
- default: "#FFF"
44
- },
45
- placement: {
46
- type: String,
47
- default: "bottom"
48
- },
49
- value: {
50
- type: Boolean,
51
- default: false
52
- },
53
- isTooltip: {
54
- type: Boolean,
55
- default: false
56
- },
57
- mode: {
58
- type: String,
59
- default: "contain",
60
- required: false
61
- },
62
- tooltipClass: {
63
- type: String,
64
- required: false
65
- }
66
- },
67
- watch: {
68
- value(value) {
69
- if (this.isTooltip && value) {
70
- Vue.nextTick(this.updateTooltipArrow);
71
- }
72
- }
73
- },
74
- methods: {
75
- updateTooltipArrow() {
76
- const element = this.$refs.tooltip.popperElm;
77
- element.style.setProperty("--popper-arrow", this.color);
78
- },
79
- close() {
80
- this.$emit("close");
81
- }
82
- },
83
- };
84
- </script>
85
-
86
- <style type="text/css" scoped>
87
- .tooltip-content {
88
- width: fit-content;
89
- overflow: hidden;
90
- border-radius: 2px;
91
- max-width: 330px;
92
- }
93
-
94
- .image-container {
95
- display: flex;
96
- justify-content: center;
97
- align-items: center;
98
- position: relative;
99
- border-radius: 20px 20px 0 0;
100
- overflow: hidden;
101
- }
102
-
103
- .l-presentation-image {
104
- height: 100%;
105
- width: 100%;
106
- }
107
-
108
- .contain {
109
- object-fit: contain !important;
110
- }
111
-
112
- .cover {
113
- object-fit: cover !important;
114
- }
115
-
116
- .tooltip-content .close-button {
117
- position: absolute;
118
- width: 25px !important;
119
- height: 25px !important;
120
- padding-top: 8px !important;
121
- padding-left: 8px !important;
122
- top: 20px;
123
- right: 20px;
124
- background: rgba(0, 0, 0, 0.25);
125
- }
126
-
127
- .tooltip-content .close-button i {
128
- margin-top: 1px;
129
- }
130
-
131
- .tooltip-content p {
132
- padding: 20px;
133
- padding-bottom: 30px;
134
- margin: 0;
135
- color: var(--color-lead-light);
136
- font-size: 16px;
137
- word-wrap: break-word;
138
- }
139
- </style>
140
-
141
- <style>
142
- .l-presentation-popper {
143
- padding: 0 !important;
144
- border: 0px !important;
145
- box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.15);
146
- border-radius: 20px !important;
147
- user-select: none;
148
- --popper-arrow: #FFF;
149
- }
150
-
151
- .l-presentation-popper .popper__arrow {
152
- border-width: 0 !important;
153
- }
154
-
155
- .l-presentation-popper .popper__arrow::after {
156
- border-right-color: var(--popper-arrow) !important;
157
- }
158
-
159
- .l-presentation .el-dialog {
160
- max-width: 80%;
161
- width: 330px;
162
- overflow: hidden;
163
- border-radius: 2px;
164
- }
165
-
166
- .l-presentation .el-dialog__header {
167
- padding: 0 !important;
168
- border: none;
169
- }
170
-
171
- .l-presentation .el-dialog__header .image {
172
- border-radius: 0px;
173
- }
174
-
175
- .l-presentation .el-dialog__body {
176
- padding: 0 !important;
177
- border: none;
178
- margin: 0px;
179
- margin-top: 10px;
180
- text-align: center;
181
- }
182
- </style>
@@ -1,7 +0,0 @@
1
- <script>
2
- import { Progress } from 'element-ui';
3
- export default {
4
- tagName: 'l-progress',
5
- extends: Progress,
6
- }
7
- </script>
@@ -1,82 +0,0 @@
1
- <template>
2
- <div class="prompt-dialog">
3
- <h3>{{ title }}</h3>
4
- <p v-if="content" style="display: block" class="mt-4">
5
- {{ content }}
6
- </p>
7
- <div class="l-d-flex mt-4 prompt-buttons">
8
- <l-button
9
- @click="close()"
10
- type="primary"
11
- plain
12
- class="bold my-0 ml-0 mr-2 dialog-button decline-button-dialog"
13
- >
14
- {{ buttonCloseLabel }}
15
- </l-button>
16
- <l-button
17
- @click="selectModel()"
18
- type="primary"
19
- class="bold m-0 dialog-button confirm-button-dialog"
20
- >
21
- {{ buttonConfirmLabel }}
22
- </l-button>
23
- </div>
24
- </div>
25
- </template>
26
-
27
- <script>
28
- export default {
29
- tagName: 'l-prompt-dialog',
30
- props: {
31
- title: {
32
- type: String,
33
- },
34
- content: {
35
- type: String,
36
- },
37
- buttonCloseLabel: {
38
- type: String,
39
- default: 'Cancelar',
40
- },
41
- buttonConfirmLabel: {
42
- type: String,
43
- default: 'Continuar',
44
- },
45
- },
46
- methods: {
47
- close() {
48
- this.$emit('close')
49
- },
50
-
51
- selectModel() {
52
- this.$emit('answer', true)
53
- },
54
- },
55
- }
56
- </script>
57
-
58
- <style scoped>
59
- .prompt-dialog {
60
- padding: 24px;
61
- max-width: 392px;
62
- }
63
-
64
- .dialog-button {
65
- width: 100%;
66
- }
67
-
68
- @media (max-width: 504px) {
69
- .prompt-dialog {
70
- max-width: calc(100vw - 64px);
71
- min-width: 100%;
72
- width: 100vw;
73
- }
74
- .prompt-buttons {
75
- flex-wrap: wrap;
76
- }
77
- .prompt-buttons > .decline-button-dialog {
78
- margin-bottom: 8px !important;
79
- margin-right: 0px !important;
80
- }
81
- }
82
- </style>
@@ -1,54 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <h1>Radio</h1>
4
-
5
- <div>
6
- <h2>Basic</h2>
7
- <l-radio label="x">Option</l-radio>
8
- <l-radio label="x" :value="'x'">Checked</l-radio>
9
- <l-radio label="x" :disabled="true">Disabled</l-radio>
10
- <l-radio label="x" :value="'x'" :disabled="true">Disabled checked</l-radio>
11
- </div>
12
-
13
- <div>
14
- <h2>Original (from Element UI)</h2>
15
- <el-radio label="x">Option</el-radio>
16
- <el-radio label="x" :value="'x'">Checked</el-radio>
17
- <el-radio label="x" :disabled="true">Disabled</el-radio>
18
- <el-radio label="x" :value="'x'" :disabled="true">Disable checked</el-radio>
19
- </div>
20
-
21
- <div>
22
- <h2>Button style </h2>
23
- <l-radio-group v-model="radio1" size="medium">
24
- <l-radio-button label="New York" ></l-radio-button>
25
- <l-radio-button label="Washington"></l-radio-button>
26
- <l-radio-button label="Los Angeles"></l-radio-button>
27
- <l-radio-button label="Chicago"></l-radio-button>
28
- </l-radio-group>
29
- </div>
30
-
31
- <div>
32
- <h2>Button style separeted</h2>
33
- <l-radio-group v-model="radio2" size="small" separated color="link">
34
- <l-radio-button v-for="option in options" :label="option" :key="option"></l-radio-button>
35
- </l-radio-group>
36
- </div>
37
-
38
- </div>
39
- </template>
40
-
41
- <script>
42
- export default {
43
- name: "Radio",
44
-
45
- data() {
46
- return {
47
- radio1: null,
48
- radio2: null,
49
-
50
- options: ['👨‍🎓 Administrador', '👨‍🎓 Coordenador', '👨‍🎓 Estudante', '👨‍🎓 Familiar']
51
- }
52
- }
53
- };
54
- </script>
@@ -1,13 +0,0 @@
1
- <script>
2
- import { Radio } from 'element-ui';
3
- export default {
4
- tagName: 'l-radio',
5
- extends: Radio,
6
- }
7
- </script>
8
- <style scoped>
9
- .l-radio .el-radio__inner::after {
10
- width: 6px;
11
- height: 6px;
12
- }
13
- </style>
@@ -1,30 +0,0 @@
1
- <script>
2
- import { RadioButton } from 'element-ui';
3
- export default {
4
- tagName: 'l-radio-button',
5
- extends: RadioButton,
6
- }
7
- </script>
8
-
9
- <style type="text/css">
10
- .l-radio-button:first-child .el-radio-button__inner {
11
- border-left: 1px solid var(--color-gray-70)!important;
12
- }
13
- .l-radio-button:last-child .el-radio-button__inner {
14
- border-right: 1px solid var(--color-gray-70)!important;
15
- }
16
- .l-radio-button .el-radio-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-radio-button.el-radio-button--small .el-radio-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>