@wanlianyida/portal-kit 0.1.0 → 0.1.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/dist/index.js +58 -58
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './style.css';
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
import { ElForm as je, ElFormItem as J, ElRadioGroup as et, ElRadio as ie, ElInput as
|
|
2
|
+
import { defineComponent as xe, computed as M, ref as y, reactive as j, watch as U, onUnmounted as We, openBlock as C, createBlock as _e, Teleport as Ee, createElementBlock as P, normalizeStyle as Ce, normalizeClass as Z, createElementVNode as s, toDisplayString as v, createVNode as f, unref as p, withModifiers as Ge, withCtx as h, Fragment as He, renderList as Ke, createTextVNode as I, createCommentVNode as ee, onMounted as Ye, onBeforeUnmount as Xe, renderSlot as Ze, withDirectives as Je, vModelText as Qe } from "vue";
|
|
3
|
+
import { ElForm as je, ElFormItem as J, ElRadioGroup as et, ElRadio as ie, ElInput as we, ElButton as te, ElTooltip as tt, ElMessage as ce, ElDialog as ot } from "element-plus";
|
|
4
4
|
import "element-plus/es/components/button/style/css";
|
|
5
5
|
import "element-plus/es/components/form/style/css";
|
|
6
6
|
import "element-plus/es/components/form-item/style/css";
|
|
@@ -14,13 +14,13 @@ const nt = ["", "很差", "较差", "一般", "较好", "很好"], at = {
|
|
|
14
14
|
experience: "体验问题",
|
|
15
15
|
suggestion: "功能建议",
|
|
16
16
|
other: "其他"
|
|
17
|
-
}, rt = ["feishu.cn", "larksuite.com", "larkoffice.com"],
|
|
17
|
+
}, rt = ["feishu.cn", "larksuite.com", "larkoffice.com"], Se = "https://bytedance.larkoffice.com/base/workflow/webhook/event/D9h2a3gAkwESDohg6xKcqhq7nZe";
|
|
18
18
|
class se extends Error {
|
|
19
19
|
constructor() {
|
|
20
20
|
super("Feishu feedback webhook is missing or not an https Feishu host"), this.name = "FeedbackChannelError";
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function Me(a) {
|
|
24
24
|
try {
|
|
25
25
|
const o = new URL(a);
|
|
26
26
|
if (o.protocol !== "https:") return !1;
|
|
@@ -30,8 +30,8 @@ function Se(a) {
|
|
|
30
30
|
return !1;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
return a ||
|
|
33
|
+
function Fe(a, o) {
|
|
34
|
+
return a || Me(o);
|
|
35
35
|
}
|
|
36
36
|
function lt(a) {
|
|
37
37
|
return new Intl.DateTimeFormat("sv-SE", {
|
|
@@ -67,9 +67,9 @@ function it(a, o = /* @__PURE__ */ new Date()) {
|
|
|
67
67
|
userAgent: (typeof navigator > "u" ? "" : navigator.userAgent).slice(0, 300)
|
|
68
68
|
};
|
|
69
69
|
}
|
|
70
|
-
async function
|
|
70
|
+
async function Le(a, o, t = /* @__PURE__ */ new Date()) {
|
|
71
71
|
const m = o.trim();
|
|
72
|
-
if (!
|
|
72
|
+
if (!Me(m)) throw new se();
|
|
73
73
|
await fetch(m, {
|
|
74
74
|
method: "POST",
|
|
75
75
|
mode: "no-cors",
|
|
@@ -141,10 +141,10 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
141
141
|
width: "28",
|
|
142
142
|
height: "28",
|
|
143
143
|
"aria-hidden": "true"
|
|
144
|
-
}, kt = ["transform"], xt = ["transform"], _t = ["transform"], Q = 56, N = 12,
|
|
144
|
+
}, kt = ["transform"], xt = ["transform"], _t = ["transform"], Q = 56, N = 12, ke = "wop-feedback-anchor", Et = 700, Ct = 5, St = 2.05, Mt = 1.55, Ft = /* @__PURE__ */ xe({
|
|
145
145
|
__name: "FeedbackWidget",
|
|
146
146
|
props: {
|
|
147
|
-
webhookUrl: { default:
|
|
147
|
+
webhookUrl: { default: Se },
|
|
148
148
|
dev: { type: Boolean, default: !1 },
|
|
149
149
|
page: { default: "" },
|
|
150
150
|
locale: { default: "zh-CN" },
|
|
@@ -158,7 +158,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
158
158
|
function t(e) {
|
|
159
159
|
return ut(o.locale, e);
|
|
160
160
|
}
|
|
161
|
-
const m = M(() =>
|
|
161
|
+
const m = M(() => Fe(o.dev, o.webhookUrl)), d = y(!1), F = y(), u = y(R()), x = y(!S()), _ = y(!1), g = j({ x: 0, y: 0, angle: 0 }), z = M(() => `translate(${g.x.toFixed(2)} ${g.y.toFixed(2)})`), b = M(() => `rotate(${g.angle.toFixed(1)} 9.7 12.2)`), oe = M(() => `rotate(${g.angle.toFixed(1)} 14.7 12.2)`);
|
|
162
162
|
let w = 0, q = 0, B = !1, $ = !1, L = 0, r = null, c = !1, k = 0;
|
|
163
163
|
function S() {
|
|
164
164
|
return typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
@@ -172,7 +172,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
172
172
|
}
|
|
173
173
|
function R() {
|
|
174
174
|
try {
|
|
175
|
-
const e = localStorage.getItem(
|
|
175
|
+
const e = localStorage.getItem(ke);
|
|
176
176
|
if (!e) return null;
|
|
177
177
|
const n = JSON.parse(e);
|
|
178
178
|
return typeof n.x != "number" || typeof n.y != "number" ? null : T(n.x, n.y);
|
|
@@ -182,7 +182,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
182
182
|
}
|
|
183
183
|
function V(e) {
|
|
184
184
|
try {
|
|
185
|
-
localStorage.setItem(
|
|
185
|
+
localStorage.setItem(ke, JSON.stringify(e));
|
|
186
186
|
} catch {
|
|
187
187
|
}
|
|
188
188
|
}
|
|
@@ -195,7 +195,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
195
195
|
y: window.innerHeight - Q - 24
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
|
-
const O = M(() => A().x < window.innerWidth * 0.45),
|
|
198
|
+
const O = M(() => A().x < window.innerWidth * 0.45), Te = M(() => A().y < 280);
|
|
199
199
|
function ue() {
|
|
200
200
|
if (window.clearTimeout(k), S()) {
|
|
201
201
|
x.value = !1;
|
|
@@ -205,30 +205,30 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
205
205
|
r || (x.value = !0);
|
|
206
206
|
}, Et);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Re(e) {
|
|
209
209
|
w = e.clientX, q = e.clientY, B = !0;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
const n = Math.sin(e / 900) * 0.12, l = Math.cos(e / 1100) * 0.08, D = Math.sin(e / 800) * 4,
|
|
213
|
-
if (!
|
|
211
|
+
function Ae(e) {
|
|
212
|
+
const n = Math.sin(e / 900) * 0.12, l = Math.cos(e / 1100) * 0.08, D = Math.sin(e / 800) * 4, ye = F.value;
|
|
213
|
+
if (!ye || !B)
|
|
214
214
|
return {
|
|
215
215
|
x: Math.sin(e / 1400) * 0.35,
|
|
216
216
|
y: Math.cos(e / 1600) * 0.2,
|
|
217
217
|
angle: Math.sin(e / 1300) * 12
|
|
218
218
|
};
|
|
219
|
-
const Y =
|
|
219
|
+
const Y = ye.getBoundingClientRect(), re = w - (Y.left + Y.width / 2), le = q - (Y.top + Y.height / 2), X = Math.hypot(re, le);
|
|
220
220
|
if (X < 8) return { x: n, y: l, angle: D };
|
|
221
|
-
const
|
|
221
|
+
const be = Math.min(X / 240, 1), Ve = Math.atan2(le, re) * 180 / Math.PI;
|
|
222
222
|
return {
|
|
223
|
-
x: re / X * St *
|
|
224
|
-
y: le / X * Mt *
|
|
223
|
+
x: re / X * St * be + n,
|
|
224
|
+
y: le / X * Mt * be + l,
|
|
225
225
|
angle: Ve + D
|
|
226
226
|
};
|
|
227
227
|
}
|
|
228
228
|
function de(e) {
|
|
229
229
|
if (L = 0, !!$) {
|
|
230
230
|
if (!document.hidden) {
|
|
231
|
-
const n =
|
|
231
|
+
const n = Ae(e);
|
|
232
232
|
g.x += (n.x - g.x) * 0.14, g.y += (n.y - g.y) * 0.14;
|
|
233
233
|
let l = n.angle - g.angle;
|
|
234
234
|
l = ((l + 180) % 360 + 360) % 360 - 180, g.angle += l * 0.14;
|
|
@@ -236,14 +236,14 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
236
236
|
L = requestAnimationFrame(de);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
function
|
|
239
|
+
function Oe() {
|
|
240
240
|
$ || S() || ($ = !0, L = requestAnimationFrame(de));
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Ie() {
|
|
243
243
|
$ = !1, L && cancelAnimationFrame(L), L = 0;
|
|
244
244
|
}
|
|
245
245
|
function me(e) {
|
|
246
|
-
|
|
246
|
+
Re(e), !r && ue();
|
|
247
247
|
}
|
|
248
248
|
function fe() {
|
|
249
249
|
u.value && (u.value = T(u.value.x, u.value.y));
|
|
@@ -251,7 +251,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
251
251
|
function pe() {
|
|
252
252
|
window.removeEventListener("pointermove", he), window.removeEventListener("pointerup", G), window.removeEventListener("pointercancel", G);
|
|
253
253
|
}
|
|
254
|
-
function
|
|
254
|
+
function $e(e) {
|
|
255
255
|
var l;
|
|
256
256
|
if (e.button !== 0 || !K.value) return;
|
|
257
257
|
const n = K.value.getBoundingClientRect();
|
|
@@ -278,33 +278,33 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
278
278
|
const n = r.moved;
|
|
279
279
|
r = null, _.value = !1, pe(), n && u.value && (c = !0, V(u.value)), ue();
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function Ne() {
|
|
282
282
|
if (c) {
|
|
283
283
|
c = !1;
|
|
284
284
|
return;
|
|
285
285
|
}
|
|
286
286
|
d.value = !d.value;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
window.addEventListener("pointermove", me, { passive: !0 }), window.addEventListener("resize", fe),
|
|
288
|
+
function qe() {
|
|
289
|
+
window.addEventListener("pointermove", me, { passive: !0 }), window.addEventListener("resize", fe), Oe();
|
|
290
290
|
}
|
|
291
291
|
function ge() {
|
|
292
|
-
window.removeEventListener("pointermove", me), window.removeEventListener("resize", fe), pe(), window.clearTimeout(k),
|
|
292
|
+
window.removeEventListener("pointermove", me), window.removeEventListener("resize", fe), pe(), window.clearTimeout(k), Ie();
|
|
293
293
|
}
|
|
294
|
-
U(m, (e) => e ?
|
|
294
|
+
U(m, (e) => e ? qe() : ge(), { immediate: !0 });
|
|
295
295
|
const H = y(!1), K = y(), i = j({
|
|
296
296
|
score: 0,
|
|
297
297
|
category: "experience",
|
|
298
298
|
content: "",
|
|
299
299
|
contact: ""
|
|
300
|
-
}), E = j({ score: "", content: "" }),
|
|
300
|
+
}), E = j({ score: "", content: "" }), Be = M(() => [
|
|
301
301
|
{ value: 1, label: t("scorePoor") },
|
|
302
302
|
{ value: 2, label: t("scoreFair") },
|
|
303
303
|
{ value: 3, label: t("scoreOk") },
|
|
304
304
|
{ value: 4, label: t("scoreGood") },
|
|
305
305
|
{ value: 5, label: t("scoreGreat") }
|
|
306
306
|
]);
|
|
307
|
-
function
|
|
307
|
+
function ve() {
|
|
308
308
|
i.score = 0, i.category = "experience", i.content = "", i.contact = "", E.score = "", E.content = "";
|
|
309
309
|
}
|
|
310
310
|
function ne(e) {
|
|
@@ -320,7 +320,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
320
320
|
document.addEventListener("pointerdown", ne), document.addEventListener("keydown", ae);
|
|
321
321
|
return;
|
|
322
322
|
}
|
|
323
|
-
document.removeEventListener("pointerdown", ne), document.removeEventListener("keydown", ae);
|
|
323
|
+
ve(), document.removeEventListener("pointerdown", ne), document.removeEventListener("keydown", ae);
|
|
324
324
|
}), U(
|
|
325
325
|
() => i.score,
|
|
326
326
|
(e) => {
|
|
@@ -344,7 +344,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
344
344
|
if (!(H.value || !Ue())) {
|
|
345
345
|
H.value = !0;
|
|
346
346
|
try {
|
|
347
|
-
await
|
|
347
|
+
await Le(
|
|
348
348
|
{
|
|
349
349
|
score: i.score,
|
|
350
350
|
category: i.category,
|
|
@@ -359,7 +359,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
359
359
|
kind: "反馈"
|
|
360
360
|
},
|
|
361
361
|
o.webhookUrl
|
|
362
|
-
), ce.success(t("submitted")), d.value = !1,
|
|
362
|
+
), ce.success(t("submitted")), d.value = !1, ve();
|
|
363
363
|
} catch (e) {
|
|
364
364
|
const n = e instanceof se ? t("channelMissing") : t("submitFailed");
|
|
365
365
|
ce.error(n);
|
|
@@ -368,17 +368,17 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
|
-
return (e, n) => (C(),
|
|
371
|
+
return (e, n) => (C(), _e(Ee, { to: "body" }, [
|
|
372
372
|
m.value ? (C(), P("div", {
|
|
373
373
|
key: 0,
|
|
374
374
|
ref_key: "root",
|
|
375
375
|
ref: K,
|
|
376
376
|
class: Z(["feedback", { "is-placed": u.value, "is-dragging": _.value }]),
|
|
377
|
-
style:
|
|
377
|
+
style: Ce(W.value)
|
|
378
378
|
}, [
|
|
379
379
|
d.value ? (C(), P("section", {
|
|
380
380
|
key: 0,
|
|
381
|
-
class: Z(["feedback-panel", { "is-on-right": O.value, "is-below":
|
|
381
|
+
class: Z(["feedback-panel", { "is-on-right": O.value, "is-below": Te.value }]),
|
|
382
382
|
role: "dialog",
|
|
383
383
|
"aria-labelledby": "feedback-title"
|
|
384
384
|
}, [
|
|
@@ -409,7 +409,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
409
409
|
role: "group",
|
|
410
410
|
"aria-label": t("score")
|
|
411
411
|
}, [
|
|
412
|
-
(C(!0), P(He, null, Ke(
|
|
412
|
+
(C(!0), P(He, null, Ke(Be.value, (l) => (C(), P("button", {
|
|
413
413
|
key: l.value,
|
|
414
414
|
type: "button",
|
|
415
415
|
class: Z(["feedback-score", { "is-active": i.score === l.value }]),
|
|
@@ -460,7 +460,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
460
460
|
required: ""
|
|
461
461
|
}, {
|
|
462
462
|
default: h(() => [
|
|
463
|
-
f(p(
|
|
463
|
+
f(p(we), {
|
|
464
464
|
modelValue: i.content,
|
|
465
465
|
"onUpdate:modelValue": n[2] || (n[2] = (l) => i.content = l),
|
|
466
466
|
type: "textarea",
|
|
@@ -476,7 +476,7 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
476
476
|
label: t("contact")
|
|
477
477
|
}, {
|
|
478
478
|
default: h(() => [
|
|
479
|
-
f(p(
|
|
479
|
+
f(p(we), {
|
|
480
480
|
modelValue: i.contact,
|
|
481
481
|
"onUpdate:modelValue": n[3] || (n[3] = (l) => i.contact = l),
|
|
482
482
|
maxlength: "80",
|
|
@@ -523,8 +523,8 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
523
523
|
class: "feedback-entry",
|
|
524
524
|
"aria-label": t("entry"),
|
|
525
525
|
"aria-expanded": d.value,
|
|
526
|
-
onPointerdown:
|
|
527
|
-
onClick:
|
|
526
|
+
onPointerdown: $e,
|
|
527
|
+
onClick: Ne
|
|
528
528
|
}, [
|
|
529
529
|
(C(), P("svg", wt, [
|
|
530
530
|
s("g", {
|
|
@@ -561,12 +561,12 @@ const dt = { class: "feedback-head" }, mt = { id: "feedback-title" }, ft = ["ari
|
|
|
561
561
|
], 6)) : ee("", !0)
|
|
562
562
|
]));
|
|
563
563
|
}
|
|
564
|
-
}),
|
|
564
|
+
}), Pe = (a, o) => {
|
|
565
565
|
const t = a.__vccOpts || a;
|
|
566
566
|
for (const [m, d] of o)
|
|
567
567
|
t[m] = d;
|
|
568
568
|
return t;
|
|
569
|
-
}, Jt = /* @__PURE__ */
|
|
569
|
+
}, Jt = /* @__PURE__ */ Pe(Ft, [["__scopeId", "data-v-526e0404"]]), Lt = {
|
|
570
570
|
commentButton: "评论",
|
|
571
571
|
commentTitle: "划线评论",
|
|
572
572
|
commentQuote: "划线内容",
|
|
@@ -597,10 +597,10 @@ function Tt(a, o) {
|
|
|
597
597
|
const Rt = ["aria-label"], At = { class: "selection-comment-label" }, Ot = { class: "selection-comment-quote" }, It = { class: "selection-comment-field" }, $t = { class: "selection-comment-label" }, Nt = ["placeholder"], qt = {
|
|
598
598
|
key: 0,
|
|
599
599
|
class: "selection-comment-error"
|
|
600
|
-
}, Bt = /* @__PURE__ */
|
|
600
|
+
}, Bt = /* @__PURE__ */ xe({
|
|
601
601
|
__name: "SelectionComment",
|
|
602
602
|
props: {
|
|
603
|
-
webhookUrl: { default:
|
|
603
|
+
webhookUrl: { default: Se },
|
|
604
604
|
dev: { type: Boolean, default: !1 },
|
|
605
605
|
page: { default: "" },
|
|
606
606
|
locale: { default: "zh-CN" },
|
|
@@ -610,7 +610,7 @@ const Rt = ["aria-label"], At = { class: "selection-comment-label" }, Ot = { cla
|
|
|
610
610
|
merchant: { default: "" }
|
|
611
611
|
},
|
|
612
612
|
setup(a) {
|
|
613
|
-
const o = a, t = y(), m = y(!1), d = j({ top: 8, left: 8 }), F = y(""), u = y(!1), x = y(""), _ = y(""), g = y(!1), z = M(() =>
|
|
613
|
+
const o = a, t = y(), m = y(!1), d = j({ top: 8, left: 8 }), F = y(""), u = y(!1), x = y(""), _ = y(""), g = y(!1), z = M(() => Fe(o.dev, o.webhookUrl));
|
|
614
614
|
function b(r) {
|
|
615
615
|
return Tt(o.locale, r);
|
|
616
616
|
}
|
|
@@ -659,7 +659,7 @@ const Rt = ["aria-label"], At = { class: "selection-comment-label" }, Ot = { cla
|
|
|
659
659
|
if (!g.value) {
|
|
660
660
|
g.value = !0;
|
|
661
661
|
try {
|
|
662
|
-
await
|
|
662
|
+
await Le(
|
|
663
663
|
{
|
|
664
664
|
score: 0,
|
|
665
665
|
category: "other",
|
|
@@ -695,12 +695,12 @@ const Rt = ["aria-label"], At = { class: "selection-comment-label" }, Ot = { cla
|
|
|
695
695
|
class: "selection-comment"
|
|
696
696
|
}, [
|
|
697
697
|
Ze(r.$slots, "default", {}, void 0, !0),
|
|
698
|
-
(C(),
|
|
698
|
+
(C(), _e(Ee, { to: "body" }, [
|
|
699
699
|
m.value ? (C(), P("button", {
|
|
700
700
|
key: 0,
|
|
701
701
|
type: "button",
|
|
702
702
|
class: "selection-comment-trigger",
|
|
703
|
-
style:
|
|
703
|
+
style: Ce({ top: `${d.top}px`, left: `${d.left}px` }),
|
|
704
704
|
"aria-label": b("commentButton"),
|
|
705
705
|
onPointerdown: B,
|
|
706
706
|
onMousedown: B,
|
|
@@ -775,15 +775,15 @@ const Rt = ["aria-label"], At = { class: "selection-comment-label" }, Ot = { cla
|
|
|
775
775
|
}, 8, ["modelValue", "title"])
|
|
776
776
|
], 512));
|
|
777
777
|
}
|
|
778
|
-
}), Qt = /* @__PURE__ */
|
|
778
|
+
}), Qt = /* @__PURE__ */ Pe(Bt, [["__scopeId", "data-v-1bf1af9c"]]);
|
|
779
779
|
export {
|
|
780
|
-
|
|
780
|
+
Se as DEFAULT_FEEDBACK_WEBHOOK,
|
|
781
781
|
se as FeedbackChannelError,
|
|
782
782
|
Jt as FeedbackWidget,
|
|
783
783
|
Qt as SelectionComment,
|
|
784
784
|
it as buildFeedbackPayload,
|
|
785
785
|
lt as formatFeedbackTime,
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
786
|
+
Me as isFeishuWebhook,
|
|
787
|
+
Le as postFeedback,
|
|
788
|
+
Fe as showFeedbackEntry
|
|
789
789
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.feedback[data-v-
|
|
1
|
+
.feedback[data-v-526e0404]{--el-color-primary: #165dff;--el-color-primary-dark-2: #0e42d2;--el-color-primary-light-3: #4080ff;--el-color-primary-light-5: #94bfff;--el-color-primary-light-7: #c9ddff;--el-color-primary-light-8: #d9e5ff;--el-color-primary-light-9: #e8f3ff;position:fixed;right:24px;bottom:24px;z-index:30;width:56px}.feedback.is-placed[data-v-526e0404]{right:auto;bottom:auto}.feedback-panel[data-v-526e0404]{position:absolute;right:0;bottom:72px;display:flex;flex-direction:column;box-sizing:border-box;width:min(360px,calc(100vw - 32px));max-height:min(640px,calc(100vh - 112px));padding:20px;overflow:auto;background:#fff;border:1px solid #e5e6eb;border-radius:12px;box-shadow:0 4px 12px #0d253d1a}.feedback-panel.is-on-right[data-v-526e0404]{right:auto;left:0}.feedback-panel.is-below[data-v-526e0404]{top:72px;bottom:auto}.feedback-head[data-v-526e0404]{display:flex;align-items:center;justify-content:space-between}.feedback-head h2[data-v-526e0404]{margin:0;color:#1d2129;font-weight:600;font-size:16px;line-height:24px}.feedback-close[data-v-526e0404]{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;color:#86909c;font-size:20px;line-height:1;background:transparent;border:0;border-radius:4px;cursor:pointer}.feedback-close[data-v-526e0404]:hover{color:#1d2129;background:#1d21290f}.feedback-hint[data-v-526e0404],.feedback-context[data-v-526e0404]{margin:0;color:#86909c;font-size:12px;line-height:20px}.feedback-hint[data-v-526e0404]{margin:4px 0 16px}.feedback-scores[data-v-526e0404]{display:flex;gap:8px;width:100%}.feedback-score[data-v-526e0404]{flex:1;height:36px;padding:0 4px;color:var(--el-text-color-regular, #606266);font-size:13px;background:var(--el-fill-color-blank, #fff);border:1px solid var(--el-border-color, #dcdfe6);border-radius:6px;cursor:pointer}.feedback-score[data-v-526e0404]:hover{color:var(--el-text-color-regular, #606266);background:var(--el-fill-color-light, #f5f7fa);border-color:var(--el-border-color-darker, #cdd0d6)}.feedback-score.is-active[data-v-526e0404],.feedback-score.is-active[data-v-526e0404]:hover{color:var(--el-color-primary, #165dff);font-weight:600;background:var(--el-fill-color-blank, #fff);border-color:var(--el-color-primary, #165dff)}.feedback-panel[data-v-526e0404] .el-form-item{margin-bottom:16px}.feedback-panel[data-v-526e0404] .el-radio{margin-right:16px}.feedback-context[data-v-526e0404]{margin-bottom:16px}.feedback-actions[data-v-526e0404]{display:flex;gap:8px;justify-content:flex-end}.feedback-mark[data-v-526e0404]{display:block;overflow:visible}.feedback-frame[data-v-526e0404]{transform-box:fill-box;transform-origin:center}.feedback-frame.is-hopping[data-v-526e0404]{animation:feedback-frame-hop-526e0404 2.8s cubic-bezier(.37,.08,.2,1) infinite}@keyframes feedback-frame-hop-526e0404{0%,42%,to{transform:translateY(0)}14%{transform:translateY(-3.2px)}26%{transform:translateY(0)}34%{transform:translateY(-1.2px)}}.feedback-entry[data-v-526e0404]{display:flex;align-items:center;justify-content:center;width:50px;height:50px;padding:0;color:#fff;background:#3c4043;border:0;border-radius:50%;box-shadow:0 2px 8px #1f23291f;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none}.feedback.is-dragging .feedback-entry[data-v-526e0404]{cursor:grabbing}.feedback-entry[data-v-526e0404]:hover,.feedback-entry[aria-expanded=true][data-v-526e0404]{background:#2a2d31}.feedback-entry[data-v-526e0404]:focus-visible,.feedback-close[data-v-526e0404]:focus-visible,.feedback-score[data-v-526e0404]:focus-visible{outline:2px solid var(--el-color-primary, #165dff);outline-offset:3px}.selection-comment-trigger[data-v-1bf1af9c]{position:fixed;z-index:3000;display:grid;width:36px;height:36px;padding:0;color:#1f2329;background:#fff;border:1px solid #e5e6eb;border-radius:8px;box-shadow:0 4px 16px #1f23291f;place-items:center;cursor:pointer}.selection-comment-trigger svg[data-v-1bf1af9c]{width:18px;height:18px}.selection-comment-trigger[data-v-1bf1af9c]:hover{color:#165dff;border-color:#165dff}.selection-comment-dialog{--el-color-primary: #165dff;--el-color-primary-dark-2: #0e42d2;--el-color-primary-light-3: #4080ff;--el-color-primary-light-5: #94bfff;--el-color-primary-light-7: #c9ddff;--el-color-primary-light-8: #d9e5ff;--el-color-primary-light-9: #e8f3ff}.selection-comment-label{margin:0 0 8px;color:var(--el-text-color-regular, #606266);font-size:14px}.selection-comment-quote{margin:0 0 16px;padding:8px 12px;color:#1f2329;font-size:14px;line-height:1.6;background:#f7f8fa;border-left:3px solid #165dff}.selection-comment-field{display:block}.selection-comment-field textarea{box-sizing:border-box;width:100%;padding:8px 12px;color:#1f2329;font:inherit;border:1px solid #dcdfe6;border-radius:4px;resize:vertical}.selection-comment-field textarea:focus{border-color:#165dff;outline:none}.selection-comment-error{margin:8px 0 0;color:var(--el-color-danger, #f53f3f);font-size:13px}
|