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,113 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <h1>Chip</h1>
4
-
5
- <div>
6
- <div class="row">
7
- <ul>
8
- <li>
9
- <l-chip color="warning">Aguardando</l-chip>
10
- </li>
11
- <li>
12
- <l-chip color="warning" fill>Aguardando</l-chip>
13
- </li>
14
- <li>
15
- <l-chip color="warning" outline>Aguardando</l-chip>
16
- </li>
17
- <li>
18
- <l-chip color="warning" fill outline>Aguardando</l-chip>
19
- </li>
20
- <li>
21
- <l-chip color="danger">Falhou</l-chip>
22
- </li>
23
- <li>
24
- <l-chip color="danger" fill>Falhou</l-chip>
25
- </li>
26
- <li>
27
- <l-chip color="danger" outline>Falhou</l-chip>
28
- </li>
29
- <li>
30
- <l-chip color="danger" fill outline>Falhou</l-chip>
31
- </li>
32
- <li>
33
- <l-chip color="success" hide-icon>Pago</l-chip> <l-chip color="success" :hideIcon="true">Pago</l-chip>
34
- </li>
35
- <li>
36
- <l-chip color="success" fill>Pago</l-chip>
37
- </li>
38
- <li>
39
- <l-chip color="success" outline>Pago</l-chip>
40
- </li>
41
- <li>
42
- <l-chip color="success" fill outline>Pago</l-chip>
43
- </li>
44
- <li>
45
- <l-chip color="purple" icon="recurrence">Recorrência</l-chip>
46
- </li>
47
- <li>
48
- <l-chip color="purple" fill icon="recurrence" style="margin-right: 8px;">Recorrência</l-chip>
49
- <l-chip color="purple" fill icon="uil-graduation-cap" style="margin-right: 8px;">Pedro de Alcântara Francisco</l-chip>
50
- <l-chip color="lead" fill hide-icon>2020</l-chip>
51
- </li>
52
- <li>
53
- <l-chip color="purple" outline icon="recurrence">Recorrência</l-chip>
54
- </li>
55
- <li>
56
- <l-chip color="purple" fill outline icon="recurrence">Recorrência</l-chip>
57
- </li>
58
- <li>
59
- <l-chip color="link" outline>Normal </l-chip>
60
- <l-chip color="link" class="ml-2" bold outline icon="uil-bold">Bold</l-chip>
61
- </li>
62
- <li>
63
- <l-chip color="link" fill outline>Normal </l-chip>
64
- <l-chip color="link" class="ml-2" fill bold outline icon="uil-bold">Bold</l-chip>
65
- </li>
66
- <li>
67
- <l-chip color="gray" fill hide-icon>Geral</l-chip>
68
- <l-chip color="red" class="ml-2" fill hide-icon>Categoria</l-chip>
69
- <l-chip color="green" class="ml-2" fill hide-icon>Categoria</l-chip>
70
- </li>
71
- <li>
72
- <l-chip color="gray-10" fill bold outline hide-icon>gray-10</l-chip>
73
- <l-chip color="gray-20" class="ml-2" fill bold outline hide-icon>gray-20</l-chip>
74
- <l-chip color="gray-30" class="ml-2" fill bold outline hide-icon>gray-30</l-chip>
75
- <l-chip color="gray-40" class="ml-2" fill bold outline hide-icon>gray-40</l-chip>
76
- <l-chip color="gray-50" class="ml-2" fill bold outline hide-icon>gray-50</l-chip>
77
- <l-chip color="gray-60" class="ml-2" fill bold outline hide-icon>gray-60</l-chip>
78
- <l-chip color="gray-70" class="ml-2" fill bold outline hide-icon>gray-70</l-chip>
79
- <l-chip color="gray-80" class="ml-2" fill bold outline hide-icon>gray-80</l-chip>
80
- <l-chip color="gray-90" class="ml-2" fill bold outline hide-icon>gray-90</l-chip>
81
- </li>
82
- <li>
83
- <l-chip
84
- style="height: 24px"
85
- bold
86
- color="#FF8C00"
87
- fill
88
- hide-icon
89
- class="mr-2"
90
- >
91
- categoria
92
- </l-chip>
93
- </li>
94
- </ul>
95
- </div>
96
- </div>
97
- </div>
98
- </template>
99
-
100
- <script>
101
- export default {
102
- name: "Chip"
103
- };
104
- </script>
105
-
106
- <style scoped>
107
- ul li {
108
- margin: 8px 0;
109
- }
110
- .teste {
111
- margin-right: 8px;
112
- }
113
- </style>
@@ -1,78 +0,0 @@
1
- <template functional>
2
- <span
3
- class="l-chip"
4
- :style="[
5
- {
6
- '--color': parent.$L.getColor(props.color),
7
- '--b-color': parent.$L.getColorLight(props.color),
8
- },
9
- data.style,
10
- data.staticStyle,
11
- ]"
12
- :class="[
13
- { fill: props.fill, outline: props.outline, bold: props.bold },
14
- data.class,
15
- data.staticClass,
16
- ]"
17
- >
18
- <l-icon v-if="props.icon">{{ props.icon }}</l-icon>
19
- <span v-else-if="!props.hideIcon" class="no-icon"></span>
20
- <span class="text">
21
- <slot></slot>
22
- </span>
23
- </span>
24
- </template>
25
- <script>
26
- export default {
27
- tagName: "l-chip",
28
- props: {
29
- style: String,
30
- icon: String,
31
- color: String,
32
- outline: { type: Boolean, default: () => false },
33
- fill: { type: Boolean, default: () => false },
34
- showIcon: { type: Boolean, default: () => true },
35
- hideIcon: { type: Boolean, default: () => false },
36
- bold: { type: Boolean, default: () => false },
37
- },
38
- };
39
- </script>
40
- <style>
41
- .l-chip {
42
- height: initial;
43
- min-height: 24px;
44
- padding: 0 8px;
45
- border-radius: 4px;
46
- border: 0 solid var(--color);
47
- position: relative;
48
- display: inline-flex;
49
- align-items: center;
50
- }
51
- .l-chip .text {
52
- font-size: 12px;
53
- }
54
- .l-chip.fill .text {
55
- color: var(--color);
56
- }
57
- .l-chip .bold {
58
- font-weight: bold;
59
- }
60
- .l-chip.fill {
61
- background: var(--b-color);
62
- }
63
- .l-chip.outline {
64
- border-width: 1px;
65
- }
66
- .l-chip .l-icon {
67
- color: var(--color);
68
- margin-right: 8px;
69
- }
70
- .l-chip .no-icon {
71
- border-radius: 50%;
72
- margin-right: 8px;
73
- height: 8px;
74
- width: 8px;
75
- display: inline-block;
76
- background: var(--color);
77
- }
78
- </style>
@@ -1,30 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <h1>Circular Loader</h1>
4
- <div class="row">
5
- <div class="column">
6
- <h4>Light</h4>
7
- <l-circular-loader />
8
- <l-circular-loader style="margin-top: 10px;" :width="32" :height="32"/>
9
- <l-circular-loader style="margin-top: 10px;" :width="40" :height="40"/>
10
- <l-circular-loader style="margin-top: 10px;" :width="56" :height="56"/>
11
- </div>
12
- <div class="column" style="margin-left: 42px;">
13
- <h4>Dark</h4>
14
- <l-circular-loader type="dark"/>
15
- <l-circular-loader type="dark" style="margin-top: 10px;" :width="32" :height="32"/>
16
- <l-circular-loader type="dark" style="margin-top: 10px;" :width="40" :height="40"/>
17
- <l-circular-loader type="dark" style="margin-top: 10px;" :width="56" :height="56"/>
18
- </div>
19
- </div>
20
- </div>
21
- </template>
22
-
23
- <script>
24
- export default {
25
- name: "CircularLoader"
26
- };
27
- </script>
28
-
29
- <style scoped>
30
- </style>
@@ -1,97 +0,0 @@
1
- <template>
2
- <div class="loader-container" :class="{ dark: type === 'dark'}" :style="{'width': `${width}px`, 'height': `${height}px`, 'border-radius': `${width}px` }">
3
- <div class="loader" :style="{'width': `${width * 0.66}px` }">
4
- <svg class="circular" viewBox="25 25 50 50">
5
- <circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="5" stroke-miterlimit="10"/>
6
- </svg>
7
- </div>
8
- </div>
9
- </template>
10
- <script type="text/javascript">
11
- export default {
12
- tagName: "l-circular-loader",
13
- props: {
14
- width: {
15
- type: Number,
16
- default: 24
17
- },
18
- height: {
19
- type: Number,
20
- default: 24
21
- },
22
- type: {
23
- type: String,
24
- default: 'light'
25
- }
26
- }
27
- }
28
- </script>
29
- <style type="text/css">
30
- .loader-container {
31
- flex: none;
32
- background: white;
33
- box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.16);
34
- flex-direction: column;
35
- align-items: center;
36
- justify-content: center;
37
- display: flex;
38
- }
39
-
40
- .loader-container.dark {
41
- background-color: var(--color-lead-light)
42
- }
43
-
44
- .loader {
45
- position: relative;
46
- margin: 0 auto;
47
- }
48
- .loader:before {
49
- content: '';
50
- display: block;
51
- padding-top: 100%;
52
- }
53
- .circular {
54
- animation: rotate 2s linear infinite;
55
- height: 100%;
56
- transform-origin: center center;
57
- width: 100%;
58
- position: absolute;
59
- top: 0;
60
- bottom: 0;
61
- left: 0;
62
- right: 0;
63
- margin: auto;
64
- }
65
- .path {
66
- stroke-dasharray: 1, 200;
67
- stroke-dashoffset: 0;
68
- animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
69
- stroke-linecap: round;
70
- stroke: var(--color-primary);
71
- }
72
- .path.white {
73
- stroke-dasharray: 1, 200;
74
- stroke-dashoffset: 0;
75
- animation: dash 1.5s ease-in-out infinite, color-white 6s ease-in-out infinite;
76
- stroke-linecap: round;
77
- }
78
- @keyframes rotate {
79
- 100% {
80
- transform: rotate(360deg);
81
- }
82
- }
83
- @keyframes dash {
84
- 0% {
85
- stroke-dasharray: 1, 200;
86
- stroke-dashoffset: 0;
87
- }
88
- 50% {
89
- stroke-dasharray: 89, 200;
90
- stroke-dashoffset: -35px;
91
- }
92
- 100% {
93
- stroke-dasharray: 89, 200;
94
- stroke-dashoffset: -124px;
95
- }
96
- }
97
- </style>
@@ -1,68 +0,0 @@
1
- <template>
2
- <div id="app">
3
- <h1>Collapse</h1>
4
-
5
- <l-collapse v-model="activeNames" @change="handleChange">
6
- <l-collapse-item title="Consistency" name="1">
7
- <div>
8
- Consistent with real life: in line with the process and logic of real
9
- life, and comply with languages and habits that the users are used to;
10
- </div>
11
- <div>
12
- Consistent within interface: all elements should be consistent, such
13
- as: design style, icons and texts, position of elements, etc.
14
- </div>
15
- </l-collapse-item>
16
- <l-collapse-item title="Feedback" name="2">
17
- <div>
18
- Operation feedback: enable the users to clearly perceive their
19
- operations by style updates and interactive effects;
20
- </div>
21
- <div>
22
- Visual feedback: reflect current state by updating or rearranging
23
- elements of the page.
24
- </div>
25
- </l-collapse-item>
26
- <l-collapse-item title="Efficiency" name="3">
27
- <div>
28
- Simplify the process: keep operating process simple and intuitive;
29
- </div>
30
- <div>
31
- Definite and clear: enunciate your intentions clearly so that the
32
- users can quickly understand and make decisions;
33
- </div>
34
- <div>
35
- Easy to identify: the interface should be straightforward, which helps
36
- the users to identify and frees them from memorizing and recalling.
37
- </div>
38
- </l-collapse-item>
39
- <l-collapse-item title="Controllability" name="4">
40
- <div>
41
- Decision making: giving advices about operations is acceptable, but do
42
- not make decisions for the users;
43
- </div>
44
- <div>
45
- Controlled consequences: users should be granted the freedom to
46
- operate, including canceling, aborting or terminating current
47
- operation.
48
- </div>
49
- </l-collapse-item>
50
- </l-collapse>
51
- </div>
52
- </template>
53
-
54
- <script>
55
- export default {
56
- name: "Collapse",
57
- data() {
58
- return {
59
- activeNames: ["1"],
60
- };
61
- },
62
- methods: {
63
- handleChange() {},
64
- },
65
- };
66
- </script>
67
-
68
- <style scoped></style>
@@ -1,13 +0,0 @@
1
- <script>
2
- import { Collapse } from "element-ui";
3
-
4
- export default {
5
- tagName: "l-collapse",
6
- extends: Collapse,
7
- };
8
- </script>
9
- <style>
10
- .l-collapse.el-collapse {
11
- border: none;
12
- }
13
- </style>
@@ -1,28 +0,0 @@
1
- <script>
2
- import { CollapseItem } from "element-ui";
3
-
4
- export default {
5
- tagName: "l-collapse-item",
6
- extends: CollapseItem,
7
- };
8
- </script>
9
- <style>
10
- .l-collapse-item {
11
- border: 1px solid var(--color-gray-30);
12
- border-radius: 4px;
13
- padding: 16px 20px;
14
- margin-bottom: 16px;
15
- }
16
- .l-collapse-item .el-collapse-item__wrap {
17
- border-bottom: none;
18
- }
19
- .l-collapse-item .el-collapse-item__header {
20
- border-bottom: none;
21
- }
22
- .l-collapse-item .el-collapse-item__arrow.el-icon-arrow-right {
23
- transform: rotate(90deg)
24
- }
25
- .l-collapse-item .el-collapse-item__arrow.el-icon-arrow-right.is-active {
26
- transform: rotate(-90deg)
27
- }
28
- </style>
@@ -1,66 +0,0 @@
1
- <template>
2
- <div>
3
- <h1>DatePicker</h1>
4
-
5
- <div class="row">
6
- <l-date-picker
7
- v-model="value1"
8
- type="daterange"
9
- :picker-options="pickerOptions"
10
- ></l-date-picker>
11
- </div>
12
-
13
- <div class="row">
14
- <l-date-picker v-model="value2"></l-date-picker>
15
- </div>
16
-
17
- <div style="margin-top: 12px;">Sem ícone</div>
18
- <div class="row">
19
- <l-date-picker hideIcon v-model="value3"></l-date-picker>
20
- </div>
21
- </div>
22
- </template>
23
-
24
- <script>
25
- export default {
26
- name: "DatePicker",
27
- data() {
28
- return {
29
- pickerOptions: {
30
- shortcuts: [
31
- {
32
- text: "Últimos 7 dias",
33
- onClick(picker) {
34
- const end = new Date();
35
- const start = new Date();
36
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
37
- picker.$emit("pick", [start, end]);
38
- }
39
- },
40
- {
41
- text: "Últimos 30 dias",
42
- onClick(picker) {
43
- const end = new Date();
44
- const start = new Date();
45
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
46
- picker.$emit("pick", [start, end]);
47
- }
48
- },
49
- {
50
- text: "Últimos 90 dias",
51
- onClick(picker) {
52
- const end = new Date();
53
- const start = new Date();
54
- start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
55
- picker.$emit("pick", [start, end]);
56
- }
57
- }
58
- ]
59
- },
60
- value1: "",
61
- value2: "",
62
- value3: ""
63
- };
64
- }
65
- };
66
- </script>
@@ -1,63 +0,0 @@
1
- <script>
2
- import { DatePicker } from "element-ui";
3
- export default {
4
- tagName: "l-date-picker",
5
- extends: DatePicker,
6
- props: {
7
- prefixIcon: { type: String, default: () => "uil-calender" },
8
- format: { type: String, default: () => "dd/MM/yyyy" },
9
- startPlaceholder: { type: String, default: () => "Do dia" },
10
- endPlaceholder: { type: String, default: () => "Ao dia" },
11
- placeholder: { type: String, default: () => "Selecione uma data" },
12
- rangeSeparator: { type: String, default: () => " " },
13
- popperClass: { type: String, default: () => "l-date-picker-popper" },
14
- hideIcon: { type: Boolean, default: () => false },
15
- },
16
-
17
- mounted() {
18
- if(this.hideIcon) this.$el.classList.add("hide-icon")
19
- }
20
- };
21
- </script>
22
- <style>
23
- .l-date-picker.el-date-editor.el-input.hide-icon {
24
- width: 192px;
25
- }
26
- .l-date-picker.el-date-editor.el-input.hide-icon > .el-input__prefix {
27
- display: none;
28
- }
29
- .l-date-picker.el-date-editor.el-input.hide-icon .el-input__inner{
30
- padding-left: 12px !important;
31
- padding-right: 12px !important;
32
- }
33
-
34
-
35
- .l-date-picker.el-date-editor--daterange {
36
- width: 280px !important;
37
- }
38
-
39
- .l-date-picker .el-input__prefix {
40
- margin-left: 6px !important;
41
- font-size: 18px !important;
42
- color: var(--color-gray-70);
43
- }
44
- .l-date-picker .el-input__inner {
45
- padding-left: 38px !important;
46
- }
47
-
48
- .l-date-picker .el-input__icon.el-range__icon.uil-calender {
49
- font-size: 18px;
50
- margin-left: -3px;
51
- color: var(--color-gray-70);
52
- }
53
-
54
- .l-date-picker .el-range-separator {
55
- height: 0 !important;
56
- width: 12px !important;
57
- border-bottom: 1px solid var(--color-gray-50);
58
- }
59
-
60
- .l-date-picker-popper .el-picker-panel__sidebar {
61
- width: auto;
62
- }
63
- </style>
@@ -1,36 +0,0 @@
1
- <template>
2
- <div>
3
- <l-button type="text" @click="dialogVisible = true">click to open the Dialog</l-button>
4
-
5
- <l-dialog
6
- title="Tips"
7
- :visible.sync="dialogVisible"
8
- width="30%"
9
- :before-close="handleClose">
10
- <span>This is a message</span>
11
- <div>
12
- <l-button @click="dialogVisible = false">Cancel</l-button>
13
- <l-button type="primary" @click="dialogVisible = false">Confirm</l-button>
14
- </div>
15
- </l-dialog>
16
- </div>
17
- </template>
18
- <script>
19
- export default {
20
- name: 'Dialog',
21
- data() {
22
- return {
23
- dialogVisible: false
24
- };
25
- },
26
- methods: {
27
- handleClose(done) {
28
- this.$confirm('Are you sure to close this dialog?')
29
- .then(() => {
30
- done();
31
- })
32
- .catch(() => {});
33
- }
34
- }
35
- };
36
- </script>
@@ -1,37 +0,0 @@
1
- <script>
2
- import { Dialog } from 'element-ui';
3
- export default {
4
- tagName: 'l-dialog',
5
- extends: Dialog
6
- }
7
- </script>
8
- <style type="text/css">
9
- .el-dialog__wrapper.l-dialog {
10
- display: flex;
11
- align-items: center;
12
- justify-content: center;
13
- }
14
- .l-dialog .el-dialog {
15
- border-radius: 12px !important;
16
- margin-top: 0px !important;
17
- margin-bottom: 0px !important;
18
- }
19
-
20
- .l-dialog .el-dialog .el-dialog__header {
21
- padding: 24px;
22
- margin-bottom: -16px;
23
- padding-bottom: 10px;
24
- }
25
-
26
- .l-dialog .el-dialog .el-dialog__body {
27
- padding: 24px;
28
- word-break: initial;
29
- }
30
-
31
- .l-dialog .el-dialog .el-dialog__title {
32
- color: var(--color-lead);
33
- font-weight: 700;
34
- font-size: 20px;
35
- line-height: 120%;
36
- }
37
- </style>
@@ -1,7 +0,0 @@
1
- <script>
2
- import { Dropdown } from 'element-ui';
3
- export default {
4
- tagName: 'l-dropdown',
5
- extends: Dropdown
6
- }
7
- </script>
@@ -1,13 +0,0 @@
1
- <script>
2
- import { DropdownItem } from "element-ui";
3
-
4
- export default {
5
- tagName: "l-dropdown-item",
6
- extends: DropdownItem,
7
- };
8
- </script>
9
- <style>
10
- .l-dropdown-item {
11
- padding: 0 16px !important;
12
- }
13
- </style>