renusify 2.2.6 → 2.3.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.
- package/components/app/style.scss +6 -4
- package/components/app/toast/style.scss +4 -3
- package/components/avatar/style.scss +2 -2
- package/components/bar/bottomNavigationCircle.vue +8 -5
- package/components/bar/scss/bottomNav.scss +15 -12
- package/components/bar/scss/toolbar.scss +32 -30
- package/components/bar/toolbar/index.vue +5 -5
- package/components/bar/toolbar/laptop.vue +1 -1
- package/components/bar/toolbar/mobile.vue +1 -1
- package/components/breadcrumb/bredcrumbItem.vue +2 -2
- package/components/breadcrumb/style.scss +6 -6
- package/components/button/index.vue +1 -1
- package/components/button/style.scss +41 -36
- package/components/calendar/index.vue +4 -3
- package/components/card/index.vue +1 -1
- package/components/card/style.scss +14 -11
- package/components/chart/chart.vue +3 -3
- package/components/chart/worldMap.vue +2 -2
- package/components/chat/MessageList.vue +122 -119
- package/components/chat/chatInput.vue +3 -3
- package/components/chat/chatMsg.vue +23 -21
- package/components/chat/index.vue +2 -2
- package/components/chip/style.scss +21 -16
- package/components/codeEditor/highlightCss.vue +1 -1
- package/components/codeEditor/highlightHtml.vue +1 -1
- package/components/codeEditor/highlightJs.vue +1 -1
- package/components/codeEditor/index.vue +6 -6
- package/components/container/style.scss +12 -10
- package/components/content/index.vue +17 -14
- package/components/cropper/index.vue +2 -2
- package/components/float/index.vue +456 -454
- package/components/form/camInput/index.vue +2 -2
- package/components/form/checkInput/index.vue +2 -2
- package/components/form/checkboxInput/index.vue +5 -4
- package/components/form/colorInput/Alpha.vue +1 -1
- package/components/form/colorInput/Preview.vue +1 -1
- package/components/form/colorInput/Saturation.vue +1 -1
- package/components/form/colorInput/index.vue +2 -2
- package/components/form/colorInput/picker.vue +10 -8
- package/components/form/dateInput/index.vue +2 -2
- package/components/form/fileInput/index.vue +0 -3
- package/components/form/fileInput/single.vue +3 -3
- package/components/form/groupInput/index.vue +5 -4
- package/components/form/input/index.vue +31 -29
- package/components/form/jsonInput/JsonView.vue +5 -4
- package/components/form/jsonInput/index.vue +36 -34
- package/components/form/numberInput/index.vue +11 -8
- package/components/form/radioInput/index.vue +6 -4
- package/components/form/rangeInput/index.vue +11 -10
- package/components/form/ratingInput/index.vue +5 -5
- package/components/form/selectInput/index.vue +8 -6
- package/components/form/switchInput/index.vue +9 -7
- package/components/form/telInput/index.vue +2 -2
- package/components/form/text-editor/style.scss +10 -7
- package/components/form/textArea/index.vue +2 -2
- package/components/form/timeInput/timepicker.vue +4 -3
- package/components/form/unitInput/index.vue +8 -6
- package/components/icon/style.scss +5 -4
- package/components/img/index.vue +2 -2
- package/components/index.js +0 -2
- package/components/list/index.vue +1 -1
- package/components/list/style.scss +6 -5
- package/components/map/index.vue +3 -3
- package/components/map/route.vue +2 -2
- package/components/menu/index.vue +4 -3
- package/components/modal/style.scss +19 -15
- package/components/nestable/index.vue +4 -4
- package/components/notify/index.vue +55 -53
- package/components/notify/notification.vue +5 -3
- package/components/progress/style.scss +8 -5
- package/components/searchBox/index.vue +15 -12
- package/components/skeleton/index.vue +5 -3
- package/components/slider/index.vue +18 -15
- package/components/swiper/index.vue +2 -2
- package/components/table/crud/index.vue +2 -2
- package/components/table/style.scss +87 -82
- package/components/tabs/index.vue +2 -2
- package/components/timeline/index.vue +64 -61
- package/components/tree/index.vue +4 -4
- package/components/tree/tree-element.vue +2 -2
- package/directive/animate/style.scss +72 -41
- package/directive/drag/index.js +1 -1
- package/directive/ripple/style.scss +6 -4
- package/directive/skeleton/style.scss +7 -7
- package/directive/sortable/index.js +1 -1
- package/directive/sortable/style.scss +7 -3
- package/directive/title/style.scss +4 -2
- package/index.js +10 -10
- package/package.json +1 -1
- package/style/app.scss +70 -58
- package/style/colors.scss +26 -22
- package/style/functions/index.scss +8 -8
- package/style/mixins/container.scss +25 -19
- package/style/mixins/index.scss +19 -15
- package/style/mixins/utilities.scss +26 -21
- package/style/style.scss +5 -6
- package/style/transitions.scss +14 -13
- package/style/variables/base.scss +26 -24
- package/style/variables/utilities.scss +35 -34
- package/components/html2pdf/index.js +0 -4
- package/components/html2pdf/index.vue +0 -280
- package/components/html2pdf/pageBreak.js +0 -1
- package/components/html2pdf/pageBreak.vue +0 -12
- package/style/_include.scss +0 -3
- package/style/variables/index.scss +0 -3
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "../../style/variables/base";
|
|
3
|
+
@use "../../style/mixins";
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
|
|
6
|
+
.#{base.$prefix}card {
|
|
4
7
|
display: block;
|
|
5
8
|
position: relative;
|
|
6
9
|
color: inherit;
|
|
@@ -10,12 +13,12 @@
|
|
|
10
13
|
word-break: break-word;
|
|
11
14
|
overflow-wrap: break-word;
|
|
12
15
|
white-space: normal;
|
|
13
|
-
transition:
|
|
16
|
+
transition: base.$primary-transition;
|
|
14
17
|
transition-property: box-shadow, opacity;
|
|
15
18
|
|
|
16
19
|
&.card-sheet {
|
|
17
|
-
@include elevation('md');
|
|
18
|
-
border-radius:
|
|
20
|
+
@include mixins.elevation('md');
|
|
21
|
+
border-radius: map.get(base.$borders, 'md');
|
|
19
22
|
background-color: var(--color-sheet-container);
|
|
20
23
|
border-color: var(--color-sheet-container);
|
|
21
24
|
color: var(--color-on-sheet);
|
|
@@ -23,30 +26,30 @@
|
|
|
23
26
|
|
|
24
27
|
&.card-tile {
|
|
25
28
|
border-radius: 0;
|
|
26
|
-
@include elevation('none');
|
|
29
|
+
@include mixins.elevation('none');
|
|
27
30
|
}
|
|
28
31
|
|
|
29
32
|
&.card-outlined {
|
|
30
33
|
border: 1px solid var(--color-border)
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
@include states();
|
|
36
|
+
@include mixins.states();
|
|
34
37
|
|
|
35
38
|
&.card-hover {
|
|
36
39
|
cursor: pointer;
|
|
37
40
|
transition: box-shadow .4s cubic-bezier(.25, .8, .25, 1);
|
|
38
41
|
|
|
39
42
|
&:hover {
|
|
40
|
-
@include elevation('xl', true)
|
|
43
|
+
@include mixins.elevation('xl', true)
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
> *:first-child:not(.#{
|
|
47
|
+
> *:first-child:not(.#{base.$prefix}btn):not(.#{base.$prefix}chip) {
|
|
45
48
|
border-top-left-radius: inherit;
|
|
46
49
|
border-top-right-radius: inherit
|
|
47
50
|
}
|
|
48
51
|
|
|
49
|
-
> *:last-child:not(.#{
|
|
52
|
+
> *:last-child:not(.#{base.$prefix}btn):not(.#{base.$prefix}chip) {
|
|
50
53
|
border-bottom-left-radius: inherit;
|
|
51
54
|
border-bottom-right-radius: inherit
|
|
52
55
|
}
|
|
@@ -68,7 +71,7 @@
|
|
|
68
71
|
position: absolute;
|
|
69
72
|
right: 0;
|
|
70
73
|
top: 0;
|
|
71
|
-
transition: .2s opacity map
|
|
74
|
+
transition: .2s opacity map.get(base.$transition, 'fast-in-slow-out');
|
|
72
75
|
}
|
|
73
76
|
}
|
|
74
77
|
|
|
@@ -16,7 +16,7 @@ export default {
|
|
|
16
16
|
};
|
|
17
17
|
},
|
|
18
18
|
mounted(){
|
|
19
|
-
import('./apexcharts').then((d)=>{
|
|
19
|
+
import('./apexcharts.js').then((d) => {
|
|
20
20
|
this.Chart=d.default;
|
|
21
21
|
this.build()
|
|
22
22
|
})
|
|
@@ -33,9 +33,9 @@ export default {
|
|
|
33
33
|
};
|
|
34
34
|
</script>
|
|
35
35
|
<style lang="scss">
|
|
36
|
-
@
|
|
36
|
+
@use "../../style/variables/base";
|
|
37
37
|
|
|
38
|
-
.#{
|
|
38
|
+
.#{base.$prefix}chart {
|
|
39
39
|
position: relative;
|
|
40
40
|
direction: ltr;
|
|
41
41
|
text-align: left;
|
|
@@ -1082,9 +1082,9 @@ export default {
|
|
|
1082
1082
|
</script>
|
|
1083
1083
|
|
|
1084
1084
|
<style lang="scss">
|
|
1085
|
-
@
|
|
1085
|
+
@use "../../style/variables/base";
|
|
1086
1086
|
|
|
1087
|
-
.#{
|
|
1087
|
+
.#{base.$prefix}world-map {
|
|
1088
1088
|
position: relative;
|
|
1089
1089
|
background-color: #e7f2fe;
|
|
1090
1090
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</div>
|
|
2
|
+
<div ref="containerMessage"
|
|
3
|
+
v-scroll.window="handle" class="container-message-list">
|
|
4
|
+
<div v-for="message in messages" :key="message._id" class="message-container">
|
|
5
|
+
<r-chat-message :is-me="message.user_id===myself.id" :message="message" :user="message.user_id===myself.id?myself:participants[message.user_id]"
|
|
6
|
+
@see="$emit('see', $event)"></r-chat-message>
|
|
8
7
|
</div>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
</
|
|
8
|
+
</div>
|
|
9
|
+
<transition v-if="!hideBottomBtn" name="scale">
|
|
10
|
+
<r-btn v-if="!is_bottom" :label="newMsg.num" class="go-buttom" fab @click.prevent="goTo(newMsg.first_id)">
|
|
11
|
+
<r-icon v-html="$r.icons.chevron_down"></r-icon>
|
|
12
|
+
</r-btn>
|
|
13
|
+
</transition>
|
|
14
14
|
</template>
|
|
15
15
|
|
|
16
16
|
<script>
|
|
@@ -33,128 +33,131 @@ export default {
|
|
|
33
33
|
},
|
|
34
34
|
data() {
|
|
35
35
|
return {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
}, 300)
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
methods: {
|
|
59
|
-
handle(e) {
|
|
60
|
-
clearTimeout(this.timeout_scroll)
|
|
61
|
-
this.timeout_scroll = setTimeout(() => {
|
|
62
|
-
const scrollDiv = this.$refs.containerMessage;
|
|
63
|
-
const offset = scrollDiv.scrollHeight - scrollDiv.scrollTop - scrollDiv.clientHeight
|
|
64
|
-
this.is_bottom = offset === 0;
|
|
65
|
-
}, 100)
|
|
66
|
-
},
|
|
67
|
-
goTo(id) {
|
|
68
|
-
let f = document.getElementById('msg-' + id)
|
|
69
|
-
if (f) {
|
|
70
|
-
this.hover(f)
|
|
71
|
-
f = f.getBoundingClientRect()
|
|
72
|
-
const scrollDiv = this.$refs.containerMessage;
|
|
73
|
-
scrollDiv.scrollTop = scrollDiv.scrollTop - scrollDiv.clientHeight + f.top + f.height
|
|
74
|
-
} else {
|
|
75
|
-
this.goToBottom()
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
hover(elm) {
|
|
79
|
-
elm.classList.add('msg-select')
|
|
80
|
-
setTimeout(() => {
|
|
81
|
-
elm.classList.remove('msg-select')
|
|
82
|
-
}, 2000)
|
|
83
|
-
},
|
|
84
|
-
goToBottom() {
|
|
85
|
-
let scrollDiv = this.$refs.containerMessage;
|
|
86
|
-
if (scrollDiv !== null) {
|
|
87
|
-
scrollDiv.scrollTop = scrollDiv.scrollHeight;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
36
|
+
timeout_id: null,
|
|
37
|
+
timeout_scroll: null,
|
|
38
|
+
is_bottom: false
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
mounted() {
|
|
42
|
+
setTimeout(() => {
|
|
43
|
+
this.goTo(this.newMsg.first_id);
|
|
44
|
+
}, 10)
|
|
45
|
+
},
|
|
46
|
+
watch: {
|
|
47
|
+
messages: function (n, o) {
|
|
48
|
+
clearTimeout(this.timeout_id)
|
|
49
|
+
this.timeout_id = setTimeout(() => {
|
|
50
|
+
const scrollDiv = this.$refs.containerMessage;
|
|
51
|
+
const offset = scrollDiv.scrollHeight - scrollDiv.scrollTop - scrollDiv.clientHeight
|
|
52
|
+
if (offset < 100 || o.length === 0) {
|
|
53
|
+
this.goToBottom()
|
|
90
54
|
}
|
|
55
|
+
}, 300)
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
methods: {
|
|
59
|
+
handle(e) {
|
|
60
|
+
clearTimeout(this.timeout_scroll)
|
|
61
|
+
this.timeout_scroll = setTimeout(() => {
|
|
62
|
+
const scrollDiv = this.$refs.containerMessage;
|
|
63
|
+
const offset = scrollDiv.scrollHeight - scrollDiv.scrollTop - scrollDiv.clientHeight
|
|
64
|
+
this.is_bottom = offset === 0;
|
|
65
|
+
}, 100)
|
|
66
|
+
},
|
|
67
|
+
goTo(id) {
|
|
68
|
+
let f = document.getElementById('msg-' + id)
|
|
69
|
+
if (f) {
|
|
70
|
+
this.hover(f)
|
|
71
|
+
f = f.getBoundingClientRect()
|
|
72
|
+
const scrollDiv = this.$refs.containerMessage;
|
|
73
|
+
scrollDiv.scrollTop = scrollDiv.scrollTop - scrollDiv.clientHeight + f.top + f.height
|
|
74
|
+
} else {
|
|
75
|
+
this.goToBottom()
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
hover(elm) {
|
|
79
|
+
elm.classList.add('msg-select')
|
|
80
|
+
setTimeout(() => {
|
|
81
|
+
elm.classList.remove('msg-select')
|
|
82
|
+
}, 2000)
|
|
83
|
+
},
|
|
84
|
+
goToBottom() {
|
|
85
|
+
let scrollDiv = this.$refs.containerMessage;
|
|
86
|
+
if (scrollDiv !== null) {
|
|
87
|
+
scrollDiv.scrollTop = scrollDiv.scrollHeight;
|
|
88
|
+
}
|
|
91
89
|
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
92
|
</script>
|
|
93
93
|
|
|
94
94
|
<style lang="scss">
|
|
95
|
-
|
|
95
|
+
@use "sass:map";
|
|
96
|
+
@use "../../style/variables/base";
|
|
97
|
+
@use "../../style/mixins";
|
|
96
98
|
|
|
97
|
-
.#{$prefix}chat .container-message-list {
|
|
98
|
-
scroll-behavior: smooth;
|
|
99
|
-
flex: 1;
|
|
100
|
-
overflow-y: scroll;
|
|
101
|
-
overflow-x: hidden;
|
|
102
|
-
display: flex;
|
|
103
|
-
flex-direction: column;
|
|
104
|
-
padding-bottom: 10px;
|
|
105
|
-
max-height: 100%;
|
|
106
|
-
/************** Safari 10.1+ ********************/
|
|
107
|
-
@media not all and (min-resolution: .001dpcm) {
|
|
108
|
-
@supports (-webkit-appearance:none) {
|
|
109
99
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
100
|
+
.#{base.$prefix}chat .container-message-list {
|
|
101
|
+
scroll-behavior: smooth;
|
|
102
|
+
flex: 1;
|
|
103
|
+
overflow-y: scroll;
|
|
104
|
+
overflow-x: hidden;
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
padding-bottom: 10px;
|
|
108
|
+
max-height: 100%;
|
|
109
|
+
/************** Safari 10.1+ ********************/
|
|
110
|
+
@media not all and (min-resolution: .001dpcm) {
|
|
111
|
+
@supports (-webkit-appearance:none) {
|
|
113
112
|
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
.message-container {
|
|
114
|
+
display: -webkit-box !important;
|
|
115
|
+
}
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
flex-direction: column;
|
|
120
|
-
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
121
119
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
120
|
+
.message-container {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
}
|
|
126
124
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
125
|
+
.msg-select {
|
|
126
|
+
animation: color .7s;
|
|
127
|
+
animation-iteration-count: infinite;
|
|
128
|
+
border-radius: map.get(base.$borders, 'sm');
|
|
129
|
+
|
|
130
|
+
.message-text {
|
|
131
|
+
opacity: .4;
|
|
131
132
|
}
|
|
133
|
+
}
|
|
134
|
+
}
|
|
132
135
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
136
|
+
.go-buttom {
|
|
137
|
+
position: absolute;
|
|
138
|
+
@include mixins.rtl() {
|
|
139
|
+
left: 20px;
|
|
140
|
+
bottom: 50px;
|
|
141
|
+
}
|
|
142
|
+
background-color: #eeeeee;
|
|
143
|
+
color: #0b8e6b;
|
|
141
144
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
.label {
|
|
146
|
+
background-color: #0b8e6b;
|
|
147
|
+
color: white;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
147
150
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
151
|
+
@keyframes color {
|
|
152
|
+
0% {
|
|
153
|
+
background-color: #c6e6f5;
|
|
154
|
+
}
|
|
155
|
+
50% {
|
|
156
|
+
background-color: #7ad5ff;
|
|
157
|
+
}
|
|
158
|
+
100% {
|
|
159
|
+
background-color: #0aa6ee;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
159
162
|
|
|
160
163
|
</style>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
</template>
|
|
51
51
|
<script>
|
|
52
|
-
import file from "../form/fileInput/file";
|
|
52
|
+
import file from "../form/fileInput/file.js";
|
|
53
53
|
|
|
54
54
|
export default {
|
|
55
55
|
name: 'r-chat-input',
|
|
@@ -112,9 +112,9 @@ export default {
|
|
|
112
112
|
}
|
|
113
113
|
</script>
|
|
114
114
|
<style lang="scss">
|
|
115
|
-
@
|
|
115
|
+
@use "../../style/variables/base";
|
|
116
116
|
|
|
117
|
-
.#{
|
|
117
|
+
.#{base.$prefix}chat-input {
|
|
118
118
|
display: flex;
|
|
119
119
|
|
|
120
120
|
box-shadow: black 0px 8px 15px;
|
|
@@ -86,7 +86,9 @@ export default {
|
|
|
86
86
|
}
|
|
87
87
|
</script>
|
|
88
88
|
<style lang="scss">
|
|
89
|
-
@
|
|
89
|
+
@use "sass:map";
|
|
90
|
+
@use "../../style/variables/base";
|
|
91
|
+
@use "../../style/mixins";
|
|
90
92
|
|
|
91
93
|
.message-body {
|
|
92
94
|
display: flex;
|
|
@@ -119,7 +121,7 @@ export default {
|
|
|
119
121
|
background: #fff;
|
|
120
122
|
color: black;
|
|
121
123
|
padding: 5px 10px;
|
|
122
|
-
border-radius: map
|
|
124
|
+
border-radius: map.get(base.$borders, 'lg');
|
|
123
125
|
max-width: 80%;
|
|
124
126
|
overflow-wrap: break-word;
|
|
125
127
|
white-space: pre-wrap;
|
|
@@ -146,7 +148,7 @@ export default {
|
|
|
146
148
|
.message-text {
|
|
147
149
|
margin-top: 0px;
|
|
148
150
|
margin-bottom: 2px;
|
|
149
|
-
border-radius: map
|
|
151
|
+
border-radius: map.get(base.$borders, 'sm') !important;
|
|
150
152
|
}
|
|
151
153
|
}
|
|
152
154
|
|
|
@@ -180,37 +182,37 @@ export default {
|
|
|
180
182
|
&:not(.is-me) {
|
|
181
183
|
.is-end {
|
|
182
184
|
background-color: #fff;
|
|
183
|
-
@include ltr() {
|
|
185
|
+
@include mixins.ltr() {
|
|
184
186
|
left: -15px;
|
|
185
187
|
}
|
|
186
|
-
@include rtl() {
|
|
188
|
+
@include mixins.rtl() {
|
|
187
189
|
right: -15px;
|
|
188
190
|
}
|
|
189
191
|
|
|
190
192
|
&:after {
|
|
191
|
-
@include ltr() {
|
|
193
|
+
@include mixins.ltr() {
|
|
192
194
|
left: -15px;
|
|
193
195
|
}
|
|
194
|
-
@include rtl() {
|
|
196
|
+
@include mixins.rtl() {
|
|
195
197
|
right: -15px;
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
|
|
200
202
|
.message-content {
|
|
201
|
-
@include ltr() {
|
|
203
|
+
@include mixins.ltr() {
|
|
202
204
|
align-items: flex-end;
|
|
203
205
|
}
|
|
204
|
-
@include rtl() {
|
|
206
|
+
@include mixins.rtl() {
|
|
205
207
|
align-items: flex-start;
|
|
206
208
|
}
|
|
207
209
|
}
|
|
208
210
|
|
|
209
211
|
.message-text {
|
|
210
|
-
@include ltr() {
|
|
212
|
+
@include mixins.ltr() {
|
|
211
213
|
border-bottom-left-radius: 0px;
|
|
212
214
|
}
|
|
213
|
-
@include rtl() {
|
|
215
|
+
@include mixins.rtl() {
|
|
214
216
|
border-bottom-right-radius: 0px;
|
|
215
217
|
}
|
|
216
218
|
}
|
|
@@ -218,27 +220,27 @@ export default {
|
|
|
218
220
|
|
|
219
221
|
&.is-me {
|
|
220
222
|
flex-direction: row-reverse;
|
|
221
|
-
@include rtl() {
|
|
223
|
+
@include mixins.rtl() {
|
|
222
224
|
margin-left: 15px;
|
|
223
225
|
}
|
|
224
|
-
@include ltr() {
|
|
226
|
+
@include mixins.ltr() {
|
|
225
227
|
margin-right: 15px;
|
|
226
228
|
}
|
|
227
229
|
|
|
228
230
|
.is-end {
|
|
229
231
|
background-color: #4f98ec;
|
|
230
|
-
@include rtl() {
|
|
232
|
+
@include mixins.rtl() {
|
|
231
233
|
left: -15px;
|
|
232
234
|
}
|
|
233
|
-
@include ltr() {
|
|
235
|
+
@include mixins.ltr() {
|
|
234
236
|
right: -15px;
|
|
235
237
|
}
|
|
236
238
|
|
|
237
239
|
&:after {
|
|
238
|
-
@include rtl() {
|
|
240
|
+
@include mixins.rtl() {
|
|
239
241
|
left: -15px;
|
|
240
242
|
}
|
|
241
|
-
@include ltr() {
|
|
243
|
+
@include mixins.ltr() {
|
|
242
244
|
right: -15px;
|
|
243
245
|
}
|
|
244
246
|
}
|
|
@@ -247,10 +249,10 @@ export default {
|
|
|
247
249
|
.message-text {
|
|
248
250
|
background-color: #4f98ec;
|
|
249
251
|
color: white;
|
|
250
|
-
@include ltr() {
|
|
252
|
+
@include mixins.ltr() {
|
|
251
253
|
border-bottom-right-radius: 0px;
|
|
252
254
|
}
|
|
253
|
-
@include rtl() {
|
|
255
|
+
@include mixins.rtl() {
|
|
254
256
|
border-bottom-left-radius: 0px;
|
|
255
257
|
}
|
|
256
258
|
}
|
|
@@ -260,11 +262,11 @@ export default {
|
|
|
260
262
|
}
|
|
261
263
|
|
|
262
264
|
.message-content {
|
|
263
|
-
@include ltr() {
|
|
265
|
+
@include mixins.ltr() {
|
|
264
266
|
align-items: flex-start;
|
|
265
267
|
|
|
266
268
|
}
|
|
267
|
-
@include rtl() {
|
|
269
|
+
@include mixins.rtl() {
|
|
268
270
|
align-items: flex-end;
|
|
269
271
|
|
|
270
272
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "../../style/variables/base";
|
|
4
|
+
@use "../../style/mixins";
|
|
5
|
+
@use "../../style/functions";
|
|
6
|
+
|
|
2
7
|
|
|
3
8
|
$chip-avatar-size: 24px !default;
|
|
4
9
|
$chip-close-size: 18px !default;
|
|
@@ -7,14 +12,14 @@ $chip-icon-margin-before: -6px !default;
|
|
|
7
12
|
$chip-icon-right-margin-after: -4px !default;
|
|
8
13
|
$chip-icon-right-margin-before: 8px !default;
|
|
9
14
|
$chip-icon-size: 24px !default;
|
|
10
|
-
$chip-label-border-radius: map
|
|
15
|
+
$chip-label-border-radius: map.get(base.$borders, 'sm') !default;
|
|
11
16
|
$chip-link-focus-opacity: 0.32 !default;
|
|
12
17
|
$chip-pill-avatar-margin-after: 8px !default;
|
|
13
18
|
$chip-pill-avatar-margin-before: -12px !default;
|
|
14
19
|
$chip-pill-avatar-size: 32px !default;
|
|
15
20
|
$chip-pill-filter-margin: 0 16px 0 0 !default;
|
|
16
21
|
$chip-transition-duration: 0.28s !default;
|
|
17
|
-
$chip-transition-fn: map
|
|
22
|
+
$chip-transition-fn: map.get(base.$transition, 'fast-out-slow-in') !default;
|
|
18
23
|
$icon-outlined-border-width: thin !default;
|
|
19
24
|
$icon-sizes: (
|
|
20
25
|
'x-small': (
|
|
@@ -40,7 +45,7 @@ $icon-sizes: (
|
|
|
40
45
|
) !default;
|
|
41
46
|
|
|
42
47
|
|
|
43
|
-
.#{
|
|
48
|
+
.#{base.$prefix}chip {
|
|
44
49
|
align-items: center;
|
|
45
50
|
cursor: default;
|
|
46
51
|
white-space: nowrap;
|
|
@@ -60,13 +65,13 @@ $icon-sizes: (
|
|
|
60
65
|
color: var(--color-on-sheet);
|
|
61
66
|
}
|
|
62
67
|
|
|
63
|
-
@include states();
|
|
68
|
+
@include mixins.states();
|
|
64
69
|
|
|
65
70
|
&.chip-disabled {
|
|
66
|
-
@include disable-states();
|
|
71
|
+
@include mixins.disable-states();
|
|
67
72
|
|
|
68
73
|
&:not(.chip-text):not(.chip-outlined) {
|
|
69
|
-
background-color: var(--color-#{map-metro-get(
|
|
74
|
+
background-color: var(--color-#{functions.map-metro-get(base.$states, 'disabled','state','color')}) !important;
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
&.btn-text, &.btn-outlined {
|
|
@@ -92,13 +97,13 @@ $icon-sizes: (
|
|
|
92
97
|
cursor: pointer;
|
|
93
98
|
}
|
|
94
99
|
|
|
95
|
-
.#{
|
|
100
|
+
.#{base.$prefix}icon {
|
|
96
101
|
font-size: $chip-icon-size;
|
|
97
102
|
transition: none;
|
|
98
103
|
}
|
|
99
104
|
|
|
100
105
|
.chip-close {
|
|
101
|
-
.#{
|
|
106
|
+
.#{base.$prefix}icon {
|
|
102
107
|
font-size: $chip-close-size;
|
|
103
108
|
max-height: $chip-close-size;
|
|
104
109
|
max-width: $chip-close-size;
|
|
@@ -113,7 +118,7 @@ $icon-sizes: (
|
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
.chip-content {
|
|
116
|
-
transition:
|
|
121
|
+
transition: base.$secondary-transition;
|
|
117
122
|
transition-duration: 0.05s;
|
|
118
123
|
align-items: center;
|
|
119
124
|
display: inline-flex;
|
|
@@ -128,7 +133,7 @@ $icon-sizes: (
|
|
|
128
133
|
color: var(--color-on-one);
|
|
129
134
|
}
|
|
130
135
|
|
|
131
|
-
.#{
|
|
136
|
+
.#{base.$prefix}icon {
|
|
132
137
|
color: inherit;
|
|
133
138
|
padding: 0 3px;
|
|
134
139
|
}
|
|
@@ -151,7 +156,7 @@ $icon-sizes: (
|
|
|
151
156
|
opacity: 0.08
|
|
152
157
|
}
|
|
153
158
|
|
|
154
|
-
.#{
|
|
159
|
+
.#{base.$prefix}icon {
|
|
155
160
|
color: inherit
|
|
156
161
|
}
|
|
157
162
|
|
|
@@ -169,7 +174,7 @@ $icon-sizes: (
|
|
|
169
174
|
opacity: 0.08
|
|
170
175
|
}
|
|
171
176
|
|
|
172
|
-
.#{
|
|
177
|
+
.#{base.$prefix}icon {
|
|
173
178
|
color: inherit
|
|
174
179
|
}
|
|
175
180
|
|
|
@@ -185,9 +190,9 @@ $icon-sizes: (
|
|
|
185
190
|
|
|
186
191
|
@each $name, $size in $icon-sizes {
|
|
187
192
|
&.chip-size-#{$name} {
|
|
188
|
-
border-radius: #{div(map
|
|
189
|
-
font-size: #{map
|
|
190
|
-
min-height: #{map
|
|
193
|
+
border-radius: #{math.div(map.get($size, 'height') , 2)}px;
|
|
194
|
+
font-size: #{map.get($size, 'font-size')}px;
|
|
195
|
+
min-height: #{map.get($size, 'height')}px;
|
|
191
196
|
}
|
|
192
197
|
}
|
|
193
198
|
}
|