vue-intergrall-plugins 0.0.242 → 0.0.243
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.
|
@@ -13107,25 +13107,48 @@ var script$5 = {
|
|
|
13107
13107
|
|
|
13108
13108
|
adjustFontColor(cor) {
|
|
13109
13109
|
try {
|
|
13110
|
-
|
|
13111
|
-
result = result ? {
|
|
13112
|
-
r: parseInt(result[1], 16),
|
|
13113
|
-
g: parseInt(result[2], 16),
|
|
13114
|
-
b: parseInt(result[3], 16)
|
|
13115
|
-
} : null;
|
|
13110
|
+
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(cor);
|
|
13116
13111
|
if (!result) return;
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13112
|
+
var r = parseInt(result[1], 16);
|
|
13113
|
+
var g = parseInt(result[2], 16);
|
|
13114
|
+
var b = parseInt(result[3], 16);
|
|
13115
|
+
r /= 255, g /= 255, b /= 255;
|
|
13116
|
+
var max = Math.max(r, g, b),
|
|
13117
|
+
min = Math.min(r, g, b);
|
|
13118
|
+
var h,
|
|
13119
|
+
s,
|
|
13120
|
+
l = (max + min) / 2;
|
|
13121
|
+
|
|
13122
|
+
if (max == min) {
|
|
13123
|
+
h = s = 0; // achromatic
|
|
13124
|
+
} else {
|
|
13125
|
+
var d = max - min;
|
|
13126
|
+
s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
|
13127
|
+
|
|
13128
|
+
switch (max) {
|
|
13129
|
+
case r:
|
|
13130
|
+
h = (g - b) / d + (g < b ? 6 : 0);
|
|
13131
|
+
break;
|
|
13132
|
+
|
|
13133
|
+
case g:
|
|
13134
|
+
h = (b - r) / d + 2;
|
|
13135
|
+
break;
|
|
13136
|
+
|
|
13137
|
+
case b:
|
|
13138
|
+
h = (r - g) / d + 4;
|
|
13139
|
+
break;
|
|
13140
|
+
}
|
|
13141
|
+
|
|
13142
|
+
h /= 6;
|
|
13143
|
+
}
|
|
13144
|
+
|
|
13145
|
+
s = s * 100;
|
|
13146
|
+
s = Math.round(s);
|
|
13147
|
+
l = l * 100;
|
|
13148
|
+
l = Math.round(l);
|
|
13149
|
+
h = Math.round(360 * h);
|
|
13127
13150
|
const root = document.documentElement;
|
|
13128
|
-
root.style.setProperty('--text-color',
|
|
13151
|
+
root.style.setProperty('--text-color', l <= 50 ? "#FFF" : "#111B21");
|
|
13129
13152
|
} catch (e) {
|
|
13130
13153
|
console.error("Erro ao ajustar a cor da mensagem: ", e);
|
|
13131
13154
|
}
|
|
@@ -13428,7 +13451,7 @@ var __vue_staticRenderFns__$5 = [];
|
|
|
13428
13451
|
|
|
13429
13452
|
const __vue_inject_styles__$5 = function (inject) {
|
|
13430
13453
|
if (!inject) return;
|
|
13431
|
-
inject("data-v-
|
|
13454
|
+
inject("data-v-44a68ecf_0", {
|
|
13432
13455
|
source: ":root{--message-color:#373737;--text-color:#FFF;--light:80;--threshold:60}.fade-enter-active,.fade-leave-active{transition:opacity .5s}.fade-enter,.fade-leave-to{opacity:0}.mensagem{padding:14px 7px;border-radius:5px;min-width:150px;min-height:60px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;max-width:80%;margin-bottom:10px;font-size:.75rem;word-break:break-word;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mensagem.max-w-60{max-width:60%}.mensagem.mapa{width:100%}.mensagem.hist-msg{animation:show 1s}.mensagem a{margin-right:5px;font-weight:550;color:inherit;text-decoration:none}.mensagem a:hover{text-decoration:underline}.message p{white-space:pre-wrap}.mensagem-anexo a,.mensagem-div-mapa a{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.reply{cursor:pointer;position:absolute;right:53px;bottom:5px;font-size:.6rem;color:#67a332;width:.9rem;height:.9rem;display:flex;justify-content:center;align-items:center;border-radius:50%;background-color:#fff}.reply svg{margin-top:-1px;margin-right:-1px}.reply-with-2-icons{right:30px}.check{cursor:pointer;position:absolute;right:10px;bottom:2px;font-size:.7rem}.check.visualizado,.check.visualizado svg{color:#006daa}.check.verde,.check.verde svg{color:#4f772d}.check.vermelho,.check.vermelho svg{color:#ba181b}.check.cinza,.check.cinza svg{color:#999}.check.preto,.check.preto svg{color:#666}.star{cursor:pointer;position:absolute;right:30px;bottom:2px;font-size:.4rem;width:11.2px}.default-stick-size{width:180px;height:auto}.horario-envio{margin-right:15px;font-size:.7rem;position:absolute;left:10px;bottom:2px}.autor-mensagem{position:absolute;font-size:.6rem;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:90%;font-weight:700;top:2px}.mensagem__principal{width:100%;display:flex;justify-content:flex-end}.mensagem__principal>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid var(--message-color);bottom:5px;right:-10px;transform:rotate(-90deg)}.mensagem__principal>.mensagem{background-color:var(--message-color);color:var(--text-color)}.mensagem__principal>.mensagem .horario-envio{color:var(--text-color)}.mensagem__principal>.mensagem .autor-mensagem{right:5px;color:var(--text-color)}.mensagem__outros{width:100%;display:flex}.mensagem__outros>.mensagem{background-color:#fff;color:#333}.mensagem__outros>.mensagem::after{content:\"\";width:0;height:0;position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;border-top:10px solid #fff;bottom:5px;left:-10px;transform:rotate(90deg)}.mensagem__outros>.autor-mensagem{left:5px;color:#333}.mensagem-div-mapa{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;margin-bottom:5px}.msg-mapa{width:100%;min-height:225px;height:100%;box-sizing:initial}.msg-mapa img{max-width:none!important}.info-mapa{list-style-type:none}.info-mapa li.title{font-size:.85em}.info-mapa li.address,.info-mapa li.url{font-size:.85em}.info-mapa li.url{font-size:.85em}.tooltip-list{margin:0;padding:0;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}",
|
|
13433
13456
|
map: undefined,
|
|
13434
13457
|
media: undefined
|