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.
- package/dist/layers-design-system.js +78505 -0
- package/dist/layers-design-system.umd.cjs +285 -0
- package/dist/style.css +1 -0
- package/package.json +26 -12
- package/.nvmrc +0 -1
- package/babel.config.js +0 -5
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -20
- package/src/assets/button-text-editor/double-quotes.svg +0 -4
- package/src/assets/button-text-editor/remove-formatting.svg +0 -5
- package/src/assets/button-text-editor/title.svg +0 -4
- package/src/assets/failed-to-load/failed-to-load.svg +0 -60
- package/src/assets/l-presentation/external-apps.png +0 -0
- package/src/assets/l-presentation/notification.png +0 -0
- package/src/assets/search-topics/empty-tags.svg +0 -59
- package/src/components/LAlert/docs.vue +0 -81
- package/src/components/LAlert/index.vue +0 -43
- package/src/components/LAttachmentChip/docs.vue +0 -84
- package/src/components/LAttachmentChip/index.vue +0 -179
- package/src/components/LBox/docs.vue +0 -26
- package/src/components/LBox/index.vue +0 -19
- package/src/components/LBoxHeader/index.vue +0 -24
- package/src/components/LBreadcrumb/docs.vue +0 -21
- package/src/components/LBreadcrumb/index.vue +0 -22
- package/src/components/LBreadcrumbItem/index.vue +0 -7
- package/src/components/LButton/docs.vue +0 -205
- package/src/components/LButton/index.vue +0 -369
- package/src/components/LButtonGroup/index.vue +0 -7
- package/src/components/LCarousel/docs.vue +0 -32
- package/src/components/LCarousel/index.vue +0 -88
- package/src/components/LCheckbox/docs.vue +0 -62
- package/src/components/LCheckbox/index.vue +0 -34
- package/src/components/LCheckboxButton/index.vue +0 -30
- package/src/components/LCheckboxGroup/index.vue +0 -53
- package/src/components/LChip/docs.vue +0 -113
- package/src/components/LChip/index.vue +0 -78
- package/src/components/LCircularLoader/docs.vue +0 -30
- package/src/components/LCircularLoader/index.vue +0 -97
- package/src/components/LCollapse/docs.vue +0 -68
- package/src/components/LCollapse/index.vue +0 -13
- package/src/components/LCollapseItem/index.vue +0 -28
- package/src/components/LDatePicker/docs.vue +0 -66
- package/src/components/LDatePicker/index.vue +0 -63
- package/src/components/LDialog/docs.vue +0 -36
- package/src/components/LDialog/index.vue +0 -37
- package/src/components/LDropdown/index.vue +0 -7
- package/src/components/LDropdownItem/index.vue +0 -13
- package/src/components/LDropdownMenu/docs.vue +0 -44
- package/src/components/LDropdownMenu/index.vue +0 -12
- package/src/components/LFailedToLoad/docs.vue +0 -37
- package/src/components/LFailedToLoad/index.vue +0 -61
- package/src/components/LForm/index.vue +0 -7
- package/src/components/LFormItem/index.vue +0 -12
- package/src/components/LHelperBox/assets/link.svg +0 -4
- package/src/components/LHelperBox/assets/open-envelope.svg +0 -9
- package/src/components/LHelperBox/docs.vue +0 -29
- package/src/components/LHelperBox/index.vue +0 -83
- package/src/components/LIcon/docs.vue +0 -174
- package/src/components/LIcon/index.vue +0 -55
- package/src/components/LImage/index.vue +0 -7
- package/src/components/LImageViewer/docs.vue +0 -111
- package/src/components/LImageViewer/index.vue +0 -449
- package/src/components/LInput/docs.vue +0 -43
- package/src/components/LInput/index.vue +0 -60
- package/src/components/LLinearProgress/docs.vue +0 -21
- package/src/components/LLinearProgress/index.vue +0 -74
- package/src/components/LNotice/docs.vue +0 -26
- package/src/components/LNotice/index.vue +0 -86
- package/src/components/LNotification/index.vue +0 -182
- package/src/components/LOption/index.vue +0 -7
- package/src/components/LOptionGroup/index.vue +0 -7
- package/src/components/LPresentation/docs.vue +0 -35
- package/src/components/LPresentation/index.vue +0 -182
- package/src/components/LProgress/index.vue +0 -7
- package/src/components/LPromptDialog/index.vue +0 -82
- package/src/components/LRadio/docs.vue +0 -54
- package/src/components/LRadio/index.vue +0 -13
- package/src/components/LRadioButton/index.vue +0 -30
- package/src/components/LRadioGroup/index.vue +0 -54
- package/src/components/LSearchBar/AddFilterButton.vue +0 -71
- package/src/components/LSearchBar/Filters/Editors/AmountEditor.vue +0 -110
- package/src/components/LSearchBar/Filters/Editors/DateEditor.vue +0 -146
- package/src/components/LSearchBar/Filters/Editors/NumberEditor.vue +0 -141
- package/src/components/LSearchBar/Filters/Editors/StringEditor.vue +0 -140
- package/src/components/LSearchBar/Filters/Editors/index.js +0 -16
- package/src/components/LSearchBar/Filters/FilterChip.vue +0 -105
- package/src/components/LSearchBar/Filters/Views/AmountView.vue +0 -28
- package/src/components/LSearchBar/Filters/Views/DateView.vue +0 -46
- package/src/components/LSearchBar/Filters/Views/NumberView.vue +0 -24
- package/src/components/LSearchBar/Filters/Views/StringView.vue +0 -47
- package/src/components/LSearchBar/Filters/Views/index.js +0 -16
- package/src/components/LSearchBar/docs.vue +0 -60
- package/src/components/LSearchBar/index.vue +0 -240
- package/src/components/LSearchTopics/RecentTermSearched.vue +0 -30
- package/src/components/LSearchTopics/TopicItem.vue +0 -346
- package/src/components/LSearchTopics/docs/drawer.vue +0 -254
- package/src/components/LSearchTopics/docs.vue +0 -60
- package/src/components/LSearchTopics/header.vue +0 -199
- package/src/components/LSearchTopics/helpers/showDialogConfirmation.js +0 -30
- package/src/components/LSearchTopics/helpers/showDiscardChangesDialog.js +0 -27
- package/src/components/LSearchTopics/index.vue +0 -750
- package/src/components/LSelect/docs.vue +0 -129
- package/src/components/LSelect/index.vue +0 -9
- package/src/components/LSlider/index.vue +0 -7
- package/src/components/LSwitch/docs.vue +0 -24
- package/src/components/LSwitch/index.vue +0 -60
- package/src/components/LTabPane/index.vue +0 -7
- package/src/components/LTable/FieldTypes/AmountView.vue +0 -16
- package/src/components/LTable/FieldTypes/DateView.vue +0 -18
- package/src/components/LTable/FieldTypes/EmailView.vue +0 -8
- package/src/components/LTable/FieldTypes/NumberView.vue +0 -13
- package/src/components/LTable/FieldTypes/PaymentStatusView.vue +0 -8
- package/src/components/LTable/FieldTypes/StringView.vue +0 -24
- package/src/components/LTable/FieldTypes/index.js +0 -18
- package/src/components/LTable/LTableBody.vue +0 -245
- package/src/components/LTable/LTableBodySpacer.vue +0 -17
- package/src/components/LTable/LTableEndspace.vue +0 -20
- package/src/components/LTable/LTableHeader.vue +0 -155
- package/src/components/LTable/LTableHeaderCell.vue +0 -188
- package/src/components/LTable/LTableHeaderLoader.vue +0 -62
- package/src/components/LTable/LTableHeaderResizer.vue +0 -162
- package/src/components/LTable/LTableLoadMore.vue +0 -56
- package/src/components/LTable/LTablePagination.vue +0 -174
- package/src/components/LTable/LTableReloader.vue +0 -61
- package/src/components/LTable/ListAdapter.js +0 -74
- package/src/components/LTable/docs.vue +0 -111
- package/src/components/LTable/helpers.js +0 -194
- package/src/components/LTable/index.vue +0 -961
- package/src/components/LTabs/docs.vue +0 -28
- package/src/components/LTabs/index.vue +0 -37
- package/src/components/LTargetChip/docs.vue +0 -86
- package/src/components/LTargetChip/index.vue +0 -64
- package/src/components/LTargetInput/docs.vue +0 -72
- package/src/components/LTargetInput/index.vue +0 -78
- package/src/components/LTextEditor/FloatingLink.vue +0 -91
- package/src/components/LTextEditor/LinkBox.vue +0 -94
- package/src/components/LTextEditor/docs.vue +0 -32
- package/src/components/LTextEditor/extensions/LayersBlockquote.js +0 -12
- package/src/components/LTextEditor/extensions/LayersBold.js +0 -11
- package/src/components/LTextEditor/extensions/LayersBreakLine.js +0 -16
- package/src/components/LTextEditor/extensions/LayersBubbleMenu.js +0 -10
- package/src/components/LTextEditor/extensions/LayersBulletList.js +0 -12
- package/src/components/LTextEditor/extensions/LayersHeading.js +0 -13
- package/src/components/LTextEditor/extensions/LayersHistory.js +0 -10
- package/src/components/LTextEditor/extensions/LayersItalic.js +0 -11
- package/src/components/LTextEditor/extensions/LayersLink.js +0 -29
- package/src/components/LTextEditor/extensions/LayersOrderedList.js +0 -12
- package/src/components/LTextEditor/extensions/LayersParagraph.js +0 -44
- package/src/components/LTextEditor/extensions/LayersPlaceholder.js +0 -11
- package/src/components/LTextEditor/extensions/LayersUnderline.js +0 -29
- package/src/components/LTextEditor/helpers/addProtocol.js +0 -5
- package/src/components/LTextEditor/helpers/removeEmptyTags.js +0 -5
- package/src/components/LTextEditor/index.vue +0 -421
- package/src/components/LTimeSelect/docs.vue +0 -41
- package/src/components/LTimeSelect/index.vue +0 -49
- package/src/components/LToggleButtonGroup/index.vue +0 -87
- package/src/components/LTooltip/docs.vue +0 -66
- package/src/components/LTooltip/index.vue +0 -28
- package/src/components/LTransitionExpand/docs.vue +0 -26
- package/src/components/LTransitionExpand/index.vue +0 -88
- package/src/components/LUpload/index.vue +0 -7
- package/src/docs/Colors.vue +0 -50
- package/src/docs/Home.vue +0 -11
- package/src/docs/Notifications.vue +0 -88
- package/src/docs/index.vue +0 -76
- package/src/docs/routes.js +0 -20
- package/src/helpers/Colors.js +0 -79
- package/src/helpers/FieldTypeComponents.js +0 -43
- package/src/helpers/Icons.js +0 -67
- package/src/helpers/Notification.js +0 -94
- package/src/helpers/PrettySize.js +0 -25
- package/src/helpers/RegisterElementUIComponents.js +0 -9
- package/src/helpers/Schemas.js +0 -18
- package/src/helpers/util.js +0 -15
- package/src/main-docs.js +0 -132
- package/src/main.js +0 -100
- package/src/style/colors.scss +0 -31
- package/src/style/element-variables.scss +0 -21
- package/src/style/icons.scss +0 -5
- package/src/style/layers-variables.scss +0 -73
- package/src/style/layout.scss +0 -2288
- package/src/style/main.scss +0 -11
- package/src/style/notifications.scss +0 -88
- package/src/style/transitions.scss +0 -43
- package/src/style/typography.scss +0 -155
- 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
|
-
}
|