layers-design-system 2.4.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. package/dist/layers-design-system.js +78505 -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/public/favicon.ico +0 -0
  8. package/public/index.html +0 -20
  9. package/src/assets/button-text-editor/double-quotes.svg +0 -4
  10. package/src/assets/button-text-editor/remove-formatting.svg +0 -5
  11. package/src/assets/button-text-editor/title.svg +0 -4
  12. package/src/assets/failed-to-load/failed-to-load.svg +0 -60
  13. package/src/assets/l-presentation/external-apps.png +0 -0
  14. package/src/assets/l-presentation/notification.png +0 -0
  15. package/src/assets/search-topics/empty-tags.svg +0 -59
  16. package/src/components/LAlert/docs.vue +0 -81
  17. package/src/components/LAlert/index.vue +0 -43
  18. package/src/components/LAttachmentChip/docs.vue +0 -84
  19. package/src/components/LAttachmentChip/index.vue +0 -179
  20. package/src/components/LBox/docs.vue +0 -26
  21. package/src/components/LBox/index.vue +0 -19
  22. package/src/components/LBoxHeader/index.vue +0 -24
  23. package/src/components/LBreadcrumb/docs.vue +0 -21
  24. package/src/components/LBreadcrumb/index.vue +0 -22
  25. package/src/components/LBreadcrumbItem/index.vue +0 -7
  26. package/src/components/LButton/docs.vue +0 -205
  27. package/src/components/LButton/index.vue +0 -369
  28. package/src/components/LButtonGroup/index.vue +0 -7
  29. package/src/components/LCarousel/docs.vue +0 -32
  30. package/src/components/LCarousel/index.vue +0 -88
  31. package/src/components/LCheckbox/docs.vue +0 -62
  32. package/src/components/LCheckbox/index.vue +0 -34
  33. package/src/components/LCheckboxButton/index.vue +0 -30
  34. package/src/components/LCheckboxGroup/index.vue +0 -53
  35. package/src/components/LChip/docs.vue +0 -113
  36. package/src/components/LChip/index.vue +0 -78
  37. package/src/components/LCircularLoader/docs.vue +0 -30
  38. package/src/components/LCircularLoader/index.vue +0 -97
  39. package/src/components/LCollapse/docs.vue +0 -68
  40. package/src/components/LCollapse/index.vue +0 -13
  41. package/src/components/LCollapseItem/index.vue +0 -28
  42. package/src/components/LDatePicker/docs.vue +0 -66
  43. package/src/components/LDatePicker/index.vue +0 -63
  44. package/src/components/LDialog/docs.vue +0 -36
  45. package/src/components/LDialog/index.vue +0 -37
  46. package/src/components/LDropdown/index.vue +0 -7
  47. package/src/components/LDropdownItem/index.vue +0 -13
  48. package/src/components/LDropdownMenu/docs.vue +0 -44
  49. package/src/components/LDropdownMenu/index.vue +0 -12
  50. package/src/components/LFailedToLoad/docs.vue +0 -37
  51. package/src/components/LFailedToLoad/index.vue +0 -61
  52. package/src/components/LForm/index.vue +0 -7
  53. package/src/components/LFormItem/index.vue +0 -12
  54. package/src/components/LHelperBox/assets/link.svg +0 -4
  55. package/src/components/LHelperBox/assets/open-envelope.svg +0 -9
  56. package/src/components/LHelperBox/docs.vue +0 -29
  57. package/src/components/LHelperBox/index.vue +0 -83
  58. package/src/components/LIcon/docs.vue +0 -174
  59. package/src/components/LIcon/index.vue +0 -55
  60. package/src/components/LImage/index.vue +0 -7
  61. package/src/components/LImageViewer/docs.vue +0 -111
  62. package/src/components/LImageViewer/index.vue +0 -449
  63. package/src/components/LInput/docs.vue +0 -43
  64. package/src/components/LInput/index.vue +0 -60
  65. package/src/components/LLinearProgress/docs.vue +0 -21
  66. package/src/components/LLinearProgress/index.vue +0 -74
  67. package/src/components/LNotice/docs.vue +0 -26
  68. package/src/components/LNotice/index.vue +0 -86
  69. package/src/components/LNotification/index.vue +0 -182
  70. package/src/components/LOption/index.vue +0 -7
  71. package/src/components/LOptionGroup/index.vue +0 -7
  72. package/src/components/LPresentation/docs.vue +0 -35
  73. package/src/components/LPresentation/index.vue +0 -182
  74. package/src/components/LProgress/index.vue +0 -7
  75. package/src/components/LPromptDialog/index.vue +0 -82
  76. package/src/components/LRadio/docs.vue +0 -54
  77. package/src/components/LRadio/index.vue +0 -13
  78. package/src/components/LRadioButton/index.vue +0 -30
  79. package/src/components/LRadioGroup/index.vue +0 -54
  80. package/src/components/LSearchBar/AddFilterButton.vue +0 -71
  81. package/src/components/LSearchBar/Filters/Editors/AmountEditor.vue +0 -110
  82. package/src/components/LSearchBar/Filters/Editors/DateEditor.vue +0 -146
  83. package/src/components/LSearchBar/Filters/Editors/NumberEditor.vue +0 -141
  84. package/src/components/LSearchBar/Filters/Editors/StringEditor.vue +0 -140
  85. package/src/components/LSearchBar/Filters/Editors/index.js +0 -16
  86. package/src/components/LSearchBar/Filters/FilterChip.vue +0 -105
  87. package/src/components/LSearchBar/Filters/Views/AmountView.vue +0 -28
  88. package/src/components/LSearchBar/Filters/Views/DateView.vue +0 -46
  89. package/src/components/LSearchBar/Filters/Views/NumberView.vue +0 -24
  90. package/src/components/LSearchBar/Filters/Views/StringView.vue +0 -47
  91. package/src/components/LSearchBar/Filters/Views/index.js +0 -16
  92. package/src/components/LSearchBar/docs.vue +0 -60
  93. package/src/components/LSearchBar/index.vue +0 -240
  94. package/src/components/LSearchTopics/RecentTermSearched.vue +0 -30
  95. package/src/components/LSearchTopics/TopicItem.vue +0 -346
  96. package/src/components/LSearchTopics/docs/drawer.vue +0 -254
  97. package/src/components/LSearchTopics/docs.vue +0 -60
  98. package/src/components/LSearchTopics/header.vue +0 -199
  99. package/src/components/LSearchTopics/helpers/showDialogConfirmation.js +0 -30
  100. package/src/components/LSearchTopics/helpers/showDiscardChangesDialog.js +0 -27
  101. package/src/components/LSearchTopics/index.vue +0 -750
  102. package/src/components/LSelect/docs.vue +0 -129
  103. package/src/components/LSelect/index.vue +0 -9
  104. package/src/components/LSlider/index.vue +0 -7
  105. package/src/components/LSwitch/docs.vue +0 -24
  106. package/src/components/LSwitch/index.vue +0 -60
  107. package/src/components/LTabPane/index.vue +0 -7
  108. package/src/components/LTable/FieldTypes/AmountView.vue +0 -16
  109. package/src/components/LTable/FieldTypes/DateView.vue +0 -18
  110. package/src/components/LTable/FieldTypes/EmailView.vue +0 -8
  111. package/src/components/LTable/FieldTypes/NumberView.vue +0 -13
  112. package/src/components/LTable/FieldTypes/PaymentStatusView.vue +0 -8
  113. package/src/components/LTable/FieldTypes/StringView.vue +0 -24
  114. package/src/components/LTable/FieldTypes/index.js +0 -18
  115. package/src/components/LTable/LTableBody.vue +0 -245
  116. package/src/components/LTable/LTableBodySpacer.vue +0 -17
  117. package/src/components/LTable/LTableEndspace.vue +0 -20
  118. package/src/components/LTable/LTableHeader.vue +0 -155
  119. package/src/components/LTable/LTableHeaderCell.vue +0 -188
  120. package/src/components/LTable/LTableHeaderLoader.vue +0 -62
  121. package/src/components/LTable/LTableHeaderResizer.vue +0 -162
  122. package/src/components/LTable/LTableLoadMore.vue +0 -56
  123. package/src/components/LTable/LTablePagination.vue +0 -174
  124. package/src/components/LTable/LTableReloader.vue +0 -61
  125. package/src/components/LTable/ListAdapter.js +0 -74
  126. package/src/components/LTable/docs.vue +0 -111
  127. package/src/components/LTable/helpers.js +0 -194
  128. package/src/components/LTable/index.vue +0 -961
  129. package/src/components/LTabs/docs.vue +0 -28
  130. package/src/components/LTabs/index.vue +0 -37
  131. package/src/components/LTargetChip/docs.vue +0 -86
  132. package/src/components/LTargetChip/index.vue +0 -64
  133. package/src/components/LTargetInput/docs.vue +0 -72
  134. package/src/components/LTargetInput/index.vue +0 -78
  135. package/src/components/LTextEditor/FloatingLink.vue +0 -91
  136. package/src/components/LTextEditor/LinkBox.vue +0 -94
  137. package/src/components/LTextEditor/docs.vue +0 -32
  138. package/src/components/LTextEditor/extensions/LayersBlockquote.js +0 -12
  139. package/src/components/LTextEditor/extensions/LayersBold.js +0 -11
  140. package/src/components/LTextEditor/extensions/LayersBreakLine.js +0 -16
  141. package/src/components/LTextEditor/extensions/LayersBubbleMenu.js +0 -10
  142. package/src/components/LTextEditor/extensions/LayersBulletList.js +0 -12
  143. package/src/components/LTextEditor/extensions/LayersHeading.js +0 -13
  144. package/src/components/LTextEditor/extensions/LayersHistory.js +0 -10
  145. package/src/components/LTextEditor/extensions/LayersItalic.js +0 -11
  146. package/src/components/LTextEditor/extensions/LayersLink.js +0 -29
  147. package/src/components/LTextEditor/extensions/LayersOrderedList.js +0 -12
  148. package/src/components/LTextEditor/extensions/LayersParagraph.js +0 -44
  149. package/src/components/LTextEditor/extensions/LayersPlaceholder.js +0 -11
  150. package/src/components/LTextEditor/extensions/LayersUnderline.js +0 -29
  151. package/src/components/LTextEditor/helpers/addProtocol.js +0 -5
  152. package/src/components/LTextEditor/helpers/removeEmptyTags.js +0 -5
  153. package/src/components/LTextEditor/index.vue +0 -421
  154. package/src/components/LTimeSelect/docs.vue +0 -41
  155. package/src/components/LTimeSelect/index.vue +0 -49
  156. package/src/components/LToggleButtonGroup/index.vue +0 -87
  157. package/src/components/LTooltip/docs.vue +0 -66
  158. package/src/components/LTooltip/index.vue +0 -28
  159. package/src/components/LTransitionExpand/docs.vue +0 -26
  160. package/src/components/LTransitionExpand/index.vue +0 -88
  161. package/src/components/LUpload/index.vue +0 -7
  162. package/src/docs/Colors.vue +0 -50
  163. package/src/docs/Home.vue +0 -11
  164. package/src/docs/Notifications.vue +0 -88
  165. package/src/docs/index.vue +0 -76
  166. package/src/docs/routes.js +0 -20
  167. package/src/helpers/Colors.js +0 -79
  168. package/src/helpers/FieldTypeComponents.js +0 -43
  169. package/src/helpers/Icons.js +0 -67
  170. package/src/helpers/Notification.js +0 -94
  171. package/src/helpers/PrettySize.js +0 -25
  172. package/src/helpers/RegisterElementUIComponents.js +0 -9
  173. package/src/helpers/Schemas.js +0 -18
  174. package/src/helpers/util.js +0 -15
  175. package/src/main-docs.js +0 -132
  176. package/src/main.js +0 -100
  177. package/src/style/colors.scss +0 -31
  178. package/src/style/element-variables.scss +0 -21
  179. package/src/style/icons.scss +0 -5
  180. package/src/style/layers-variables.scss +0 -73
  181. package/src/style/layout.scss +0 -2288
  182. package/src/style/main.scss +0 -11
  183. package/src/style/notifications.scss +0 -88
  184. package/src/style/transitions.scss +0 -43
  185. package/src/style/typography.scss +0 -155
  186. package/vue.config.js +0 -14
@@ -1,199 +0,0 @@
1
- <template>
2
- <div class="app-navigation">
3
- <div class="search-topics-header l-d-flex l-align-items-center pl-2 pr-3">
4
- <l-button
5
- @click="back()"
6
- circle
7
- icon="uil-arrow-left"
8
- class="border-none gray-70--text f-24 p-1"
9
- >
10
- </l-button>
11
- <div :class="setInputClass('blurred')">
12
- <input
13
- style="width: 100%;"
14
- autocomplete="off"
15
- placeholder="Pesquisar"
16
- v-model="query.q"
17
- @focus="setInputClass('focused')"
18
- @blur="setInputClass('blurred')"
19
- @keypress.enter="$event.target.blur()"
20
- @input="updateQuery($event)"
21
- />
22
- <l-icon
23
- class="lead-light--text cursor-pointer"
24
- v-if="query.q"
25
- @click="clearInput()"
26
- size="16"
27
- >
28
- uil-times
29
- </l-icon>
30
- </div>
31
- <l-button
32
- :disabled="!hasAnySelectedTopic"
33
- @click="save()"
34
- :loading="loading"
35
- type="primary"
36
- class="bold l-d-flex l-align-items-center f-14 ml-2"
37
- >
38
- Salvar
39
- </l-button>
40
- </div>
41
- <div
42
- class="filter-kind l-d-flex px-3 pb-2"
43
- v-if="query.q || query.kind !== '*'"
44
- >
45
- <l-radio-group
46
- v-model="queryKind"
47
- class="l-flex-nowrap"
48
- size="small"
49
- separated
50
- color="lead-light"
51
- >
52
- <l-radio-button
53
- v-for="kind in filteredKinds"
54
- :key="kind.value"
55
- :label="kind.value"
56
- >
57
- <l-icon
58
- v-if="kind.icon"
59
- :color="!isSelected(kind.value) ? 'lead-light' : 'white'"
60
- size="13"
61
- >
62
- {{ kind.icon }}
63
- </l-icon>
64
-
65
- {{ kind.name }}
66
- </l-radio-button>
67
- </l-radio-group>
68
- </div>
69
- <l-linear-progress v-if="loading || typing"></l-linear-progress>
70
- </div>
71
- </template>
72
-
73
- <script>
74
- import get from 'lodash/get'
75
-
76
- export default {
77
- props: {
78
- query: {
79
- type: Object,
80
- },
81
- typing: {
82
- type: Boolean,
83
- default: false,
84
- },
85
- loading: {
86
- type: Boolean,
87
- default: false,
88
- },
89
- hasAnySelectedTopic: {
90
- type: Boolean,
91
- default: false,
92
- },
93
- kinds: {
94
- type: Array,
95
- },
96
- },
97
- computed: {
98
- filteredKinds: function() {
99
- return this.kinds.filter(
100
- (kind) =>
101
- this.query.q || !(kind.value === 'member' || kind.value === 'user')
102
- )
103
- },
104
-
105
- queryKind: {
106
- get: function() {
107
- return this.query.kind
108
- },
109
- set: function(val) {
110
- this.$emit('input', {
111
- q: this.query.q,
112
- kind: val,
113
- page: 0,
114
- })
115
- },
116
- },
117
- },
118
- methods: {
119
- clearInput: function() {
120
- this.$emit('input', {
121
- q: null,
122
- kind: '*',
123
- page: 0,
124
- })
125
- },
126
-
127
- isSelected: function(kindValue) {
128
- return get(this.query, 'kind', null) === kindValue
129
- },
130
-
131
- updateQuery: function(event) {
132
- const q = get(event, 'target.value', null)
133
- this.$emit('input', {
134
- q: q,
135
- kind: '*',
136
- page: 0,
137
- })
138
- },
139
-
140
- setInputClass: function(option) {
141
- const defaultClass = 'search-input-wrapper ml-2 l-flex'
142
- return defaultClass + ' ' + option
143
- },
144
-
145
- back: function() {
146
- this.$emit('close')
147
- },
148
-
149
- save: function() {
150
- this.$emit('save')
151
- },
152
- },
153
- }
154
- </script>
155
- <style scoped>
156
- .f-24 {
157
- font-size: 24px !important;
158
- }
159
- .border-none {
160
- border: none !important;
161
- }
162
- .app-navigation {
163
- min-height: 72px;
164
- }
165
- .search-topics-header {
166
- height: 72px;
167
- }
168
- .filter-kind {
169
- overflow-x: auto;
170
- }
171
- .search-input-wrapper {
172
- border: none;
173
- border-radius: 4px;
174
- box-sizing: border-box;
175
- display: flex;
176
- align-items: center;
177
- height: 40px;
178
- outline: none;
179
- padding-left: 12px;
180
- padding-right: 16px;
181
- }
182
- .focused {
183
- border: 1px solid var(--aqua);
184
- transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
185
- }
186
- .blurred {
187
- border: 1px solid var(--gray-50);
188
- transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
189
- }
190
- .search-input-wrapper > input {
191
- border: none;
192
- outline: none;
193
- padding-left: 8px;
194
- width: 100%;
195
- }
196
- .search-input-wrapper > input::placeholder {
197
- color: var(--gray-40);
198
- }
199
- </style>
@@ -1,30 +0,0 @@
1
- import PromptDialog from '../../LPromptDialog/index.vue'
2
- import VueModals from '@tenda.digital/vue-modals'
3
-
4
- export default async function(dialog) {
5
- const platform = window.LayersPortal ? window.LayersPortal.platform : 'shell'
6
-
7
- if (platform === 'shell' || platform === 'iframe') {
8
- const modalStack = VueModals.Modals.stack()
9
- const modal = modalStack.push({
10
- layout: 'dialog',
11
- showClose: false,
12
- component: PromptDialog,
13
- props: {
14
- title: dialog.title,
15
- content: dialog.content,
16
- buttonCloseLabel: dialog.buttonCloseLabel,
17
- buttonConfirmLabel: dialog.buttonConfirmLabel,
18
- },
19
- })
20
-
21
- try {
22
- const result = await modal
23
- return result
24
- } catch (err) {
25
- return false
26
- }
27
- }
28
-
29
- return window.confirm(dialog.content || dialog.title)
30
- }
@@ -1,27 +0,0 @@
1
- import PromptDialog from '../../LPromptDialog/index.vue'
2
- import VueModals from '@tenda.digital/vue-modals'
3
-
4
- export default async function showDiscardChangesDialog() {
5
- const modalStack = VueModals.Modals.stack()
6
- window.history.go(1)
7
- const dialog = modalStack.push({
8
- layout: 'dialog',
9
- showClose: false,
10
- component: PromptDialog,
11
- props: {
12
- buttonCloseLabel: 'Permanecer aqui',
13
- buttonConfirmLabel: 'Descartar alterações',
14
- title: 'Alterações não salvas',
15
- content:
16
- 'Você quer mesmo sair? Existem alterações que não foram salvas. Se você sair, suas alterações serão perdidas.',
17
- },
18
- })
19
- try {
20
- const result = await dialog
21
- if (result) {
22
- return result
23
- }
24
- } catch (err) {
25
- // Ignored
26
- }
27
- }