@topvisor/ui 1.4.0-TopGroupSelector.5 → 1.4.0-TopGroupSelector.7
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/.chunks/policy.vue_vue_type_style_index_0_lang-BfL6Mj6K.amd.js +2 -0
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js.map → policy.vue_vue_type_style_index_0_lang-BfL6Mj6K.amd.js.map} +1 -1
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js → policy.vue_vue_type_style_index_0_lang-b4Vb3SlQ.es.js} +107 -105
- package/.chunks/{policy.vue_vue_type_style_index_0_lang-B61ZEDWr.es.js.map → policy.vue_vue_type_style_index_0_lang-b4Vb3SlQ.es.js.map} +1 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js.map +1 -1
- package/.chunks/popupHint.vue_vue_type_style_index_0_lang-D42xEF-j.amd.js.map +1 -1
- package/api/index.amd.js +1 -1
- package/api/index.amd.js.map +1 -1
- package/api/index.js +13 -11
- package/api/index.js.map +1 -1
- package/assets/project.css +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.js +1 -1
- package/package.json +1 -1
- package/popup/worker.amd.js +1 -1
- package/popup/worker.amd.js.map +1 -1
- package/popup/worker.js +9 -7
- package/popup/worker.js.map +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +41 -43
- package/project/project.js.map +1 -1
- package/src/components/project/project.d.ts +0 -10
- package/.chunks/policy.vue_vue_type_style_index_0_lang-BUIBGweg.amd.js +0 -2
package/project/project.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
const fileNames = ['../assets/project.css'].map(fileName => import.meta.resolve(fileName));
|
|
4
4
|
_autoloadCSSCore.insertCSSLinkToPage(fileNames, true);
|
|
5
5
|
|
|
6
|
-
import { defineComponent as L, mergeModels as M, useModel as A, computed as E, createElementBlock as b, openBlock as h, createBlock as C, unref as v, withCtx as
|
|
6
|
+
import { defineComponent as L, mergeModels as M, useModel as A, computed as E, createElementBlock as b, openBlock as h, createBlock as C, unref as v, withCtx as B, Fragment as Y, renderList as fe, normalizeClass as X, createElementVNode as oe, toDisplayString as V, createVNode as R, createTextVNode as z, toValue as ve, ref as G, watch as T, createCommentVNode as O, reactive as Te, isRef as pe, withModifiers as F, mergeProps as Ae, withKeys as ye, nextTick as Re, resolveDirective as Ne, withDirectives as Pe, resolveDynamicComponent as De, renderSlot as qe, shallowRef as Ue, createSlots as Fe } from "vue";
|
|
7
7
|
import { u as w, C as _, e as H, p as se, d as _e } from "../.chunks/forms-Cwv0JCi5.es.js";
|
|
8
8
|
import { _ as be, b as me, a as ze } from "../.chunks/popupHint.vue_vue_type_style_index_0_lang-Bp_-W068.es.js";
|
|
9
|
-
import { a as Je, _ as Ve, b as Me, c as we, I as de } from "../.chunks/policy.vue_vue_type_style_index_0_lang-
|
|
9
|
+
import { a as Je, _ as Ve, b as Me, c as we, I as de } from "../.chunks/policy.vue_vue_type_style_index_0_lang-b4Vb3SlQ.es.js";
|
|
10
10
|
import { u as We } from "../.chunks/utils-cls72V1c.es.js";
|
|
11
11
|
import { getSearcherGIcon as Ye, getLangLabel as He, getDeviceGIcon as Qe } from "../utils/searchers.js";
|
|
12
12
|
import "../.chunks/core-DVQVVUiP.es.js";
|
|
@@ -37,20 +37,20 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
37
37
|
});
|
|
38
38
|
return (r, l) => (h(), b("div", et, [
|
|
39
39
|
v(_).state.isMobile ? (h(), C(be, { key: 0 }, {
|
|
40
|
-
opener:
|
|
40
|
+
opener: B(() => [
|
|
41
41
|
R(H, {
|
|
42
42
|
class: "top-competitorSelector_opener",
|
|
43
43
|
color: "theme",
|
|
44
44
|
icon: "",
|
|
45
45
|
icon2: ""
|
|
46
46
|
}, {
|
|
47
|
-
default:
|
|
47
|
+
default: B(() => [
|
|
48
48
|
z(V(e.items.find((n) => n.value === o.value?.[0])?.content), 1)
|
|
49
49
|
]),
|
|
50
50
|
_: 1
|
|
51
51
|
})
|
|
52
52
|
]),
|
|
53
|
-
contentList:
|
|
53
|
+
contentList: B(() => [
|
|
54
54
|
(h(!0), b(Y, null, fe(e.items, (n) => (h(), C(me, {
|
|
55
55
|
class: X({
|
|
56
56
|
"top-active": o.value?.includes(n.value)
|
|
@@ -59,7 +59,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
59
59
|
title: n.title,
|
|
60
60
|
onClick: () => o.value = [n.value]
|
|
61
61
|
}, {
|
|
62
|
-
default:
|
|
62
|
+
default: B(() => [
|
|
63
63
|
oe("span", tt, V(n.content), 1)
|
|
64
64
|
]),
|
|
65
65
|
_: 2
|
|
@@ -220,7 +220,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
220
220
|
l.set(n.index, f);
|
|
221
221
|
}), l;
|
|
222
222
|
});
|
|
223
|
-
return
|
|
223
|
+
return T(r, (l, n) => {
|
|
224
224
|
if (e.onlySearcher || t.value !== void 0 && l.get(t.value))
|
|
225
225
|
return;
|
|
226
226
|
let d = l.keys().next().value;
|
|
@@ -266,7 +266,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
266
266
|
}, l = () => {
|
|
267
267
|
t.value.length ? localStorage.setItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes", JSON.stringify(t.value)) : localStorage.removeItem("ui:project:regionSelector:" + e.projectId + ":regionsIndexes");
|
|
268
268
|
};
|
|
269
|
-
return
|
|
269
|
+
return T(t, () => {
|
|
270
270
|
l();
|
|
271
271
|
}), e.addCompare && r(), {
|
|
272
272
|
regionsIndexes: t
|
|
@@ -280,7 +280,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
280
280
|
});
|
|
281
281
|
}), i;
|
|
282
282
|
}), r = ut(e, a), l = st(e, o), n = ct(e, a, t);
|
|
283
|
-
|
|
283
|
+
T(a, () => {
|
|
284
284
|
if (e.onlySearcher ? n.regionsIndexes.value = Array.from(a.value.keys()) : n.regionsIndexes.value = n.regionsIndexes.value.filter((m) => t.value.has(m)), r.searcherKey.value === j) return;
|
|
285
285
|
let i = a.value.keys().next().value;
|
|
286
286
|
a.value.forEach((m) => {
|
|
@@ -367,7 +367,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
367
367
|
"@update:regionsIndexes": (s) => d.regionsIndexes.value = s
|
|
368
368
|
});
|
|
369
369
|
};
|
|
370
|
-
return
|
|
370
|
+
return T([n.regionIndex, l.searcherKey, d.regionsIndexes], () => {
|
|
371
371
|
if (l.searcherKey.value === j && d.regionsIndexes.value.length) {
|
|
372
372
|
if (JSON.stringify(t.value) === JSON.stringify(d.regionsIndexes.value))
|
|
373
373
|
return;
|
|
@@ -375,9 +375,9 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
375
375
|
} else
|
|
376
376
|
o.onlySearcher ? (t.value = [l.searcherKey.value], l.searcherKey.value === y && !o.autoRegion && (t.value.length = 0)) : (t.value = [n.regionIndex.value], n.regionIndex.value === y && !o.autoRegion && (t.value.length = 0));
|
|
377
377
|
!o.onlySearcher && !f.value.size && (l.searcherKey.value = y);
|
|
378
|
-
}), r.value &&
|
|
378
|
+
}), r.value && T(r, () => {
|
|
379
379
|
r.value && (t.value = [r.value]);
|
|
380
|
-
}, { immediate: !0 }),
|
|
380
|
+
}, { immediate: !0 }), T(t, () => {
|
|
381
381
|
if (t.value[0] && (r.value = t.value[0]), o.onlySearcher) {
|
|
382
382
|
if (!t.value.length || t.value.length === 1 && !c.value.has(t.value[0]) || t.value.length === 1 && t.value[0] === y && !o.autoRegion) {
|
|
383
383
|
let u = c.value.keys().next().value;
|
|
@@ -438,8 +438,8 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
438
438
|
getRegion: i
|
|
439
439
|
}), (u, s) => (h(), b("div", {
|
|
440
440
|
class: X({
|
|
441
|
-
"top-
|
|
442
|
-
"top-
|
|
441
|
+
"top-selectorRegion": !0,
|
|
442
|
+
"top-selectorRegion-onlySearcher": e.onlySearcher
|
|
443
443
|
})
|
|
444
444
|
}, [
|
|
445
445
|
R(se, {
|
|
@@ -465,7 +465,7 @@ const et = { class: "top-competitorSelector" }, tt = { class: "top-ellipsis1" },
|
|
|
465
465
|
onClick: m,
|
|
466
466
|
"data-count-compare-regions-indexes": v(d).regionsIndexes.value.length
|
|
467
467
|
}, {
|
|
468
|
-
default:
|
|
468
|
+
default: B(() => [
|
|
469
469
|
z(V(u.$i18n.Common.Selected_regions), 1)
|
|
470
470
|
]),
|
|
471
471
|
_: 1
|
|
@@ -507,7 +507,7 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
|
|
|
507
507
|
emits: ["update:folderId", "update:folder"],
|
|
508
508
|
setup(e) {
|
|
509
509
|
const a = e, o = A(e, "folderId"), t = A(e, "folder"), r = a.client && !a.folders ? mt(a.client) : void 0, l = G(null);
|
|
510
|
-
|
|
510
|
+
T(() => a.projectId, () => {
|
|
511
511
|
r?.changeParams({
|
|
512
512
|
project_id: a.projectId
|
|
513
513
|
}), r?.setOptions({
|
|
@@ -515,12 +515,12 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
|
|
|
515
515
|
}), l.value?.resetCache();
|
|
516
516
|
}, { immediate: !0 });
|
|
517
517
|
const n = E(() => Oe(a.folders ?? { root: [N] }, a.canSelectAll));
|
|
518
|
-
return
|
|
518
|
+
return T(o, () => {
|
|
519
519
|
a.folders && (n.value.get(a.folderId) || (o.value = 0));
|
|
520
|
-
}, { immediate: !0 }),
|
|
520
|
+
}, { immediate: !0 }), T(o, () => {
|
|
521
521
|
const d = n.value.get(a.folderId);
|
|
522
522
|
d && (t.value = d);
|
|
523
|
-
}),
|
|
523
|
+
}), T(t, () => {
|
|
524
524
|
o.value = t.value.id;
|
|
525
525
|
}), (d, c) => (h(), C(Ve, {
|
|
526
526
|
class: "top-groupSelector_folder",
|
|
@@ -538,7 +538,7 @@ const Oe = (e, a, o = /* @__PURE__ */ new Map(), t = { id: "root" }, r = 0) => (
|
|
|
538
538
|
});
|
|
539
539
|
function Se(e, a, o) {
|
|
540
540
|
const t = Object.keys(e), r = t.map((l) => e[l]);
|
|
541
|
-
return
|
|
541
|
+
return T(r, (l, n, d) => {
|
|
542
542
|
const c = {};
|
|
543
543
|
l.forEach((f, I) => {
|
|
544
544
|
if (!Object.is(f, n[I])) {
|
|
@@ -612,7 +612,7 @@ const ce = {
|
|
|
612
612
|
o.folder?.id ?? 0
|
|
613
613
|
], o.groups && (f.value = pt(o.groups, o.folder))), c.value?.resetCache(), (u.folderId?.old !== void 0 || u.canSelectAll?.old !== void 0) && r.value !== de) {
|
|
614
614
|
let s;
|
|
615
|
-
o.autoselect === "first" && (s = f.value?.[0], o.canSelectAll && (s =
|
|
615
|
+
o.autoselect === "first" && (s = f.value?.[0], o.canSelectAll && (s = Te(W()))), (o.autoselect === "placeholder" || !s) && (s = je()), i(s);
|
|
616
616
|
}
|
|
617
617
|
}, { immediate: !0 }), Se({
|
|
618
618
|
modelGroup: l,
|
|
@@ -678,7 +678,7 @@ const ce = {
|
|
|
678
678
|
useCache: "",
|
|
679
679
|
onAppendItem: m
|
|
680
680
|
}, {
|
|
681
|
-
item:
|
|
681
|
+
item: B(({ item: g }) => [
|
|
682
682
|
oe("div", ht, [
|
|
683
683
|
g.id === v(de) ? (h(), b("div", It, V(u.$i18n.Common.Add) + ": ", 1)) : O("", !0),
|
|
684
684
|
oe("span", null, V(g.name), 1),
|
|
@@ -773,10 +773,10 @@ const ce = {
|
|
|
773
773
|
filters: e.filters,
|
|
774
774
|
payload: e.payload
|
|
775
775
|
};
|
|
776
|
-
J(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, pe(e.modelValue) ||
|
|
776
|
+
J(t, "topTagSelectorTarget", n), delete t.dataset.topPopupDisabled, pe(e.modelValue) || T(l, () => {
|
|
777
777
|
e.modelValue = l.value, te(t, e, o);
|
|
778
778
|
}), t.click();
|
|
779
|
-
}, pe(e.modelValue) ?
|
|
779
|
+
}, pe(e.modelValue) ? T(e.modelValue, () => te(t, e, o)) : J(t, "topTagSelectorRender", (r) => {
|
|
780
780
|
e.modelValue = r;
|
|
781
781
|
const l = J(t, "topTagSelectorTarget");
|
|
782
782
|
l && (l.model.value = r), te(t, e, o);
|
|
@@ -861,7 +861,7 @@ const ce = {
|
|
|
861
861
|
name: "Turquoise",
|
|
862
862
|
color_id: "10"
|
|
863
863
|
}
|
|
864
|
-
],
|
|
864
|
+
], Bt = ["data-tag_id", "data-tag_color_id", "title"], ge = /* @__PURE__ */ L({
|
|
865
865
|
__name: "tagIcon",
|
|
866
866
|
props: {
|
|
867
867
|
id: {},
|
|
@@ -879,9 +879,9 @@ const ce = {
|
|
|
879
879
|
"data-tag_id": e.id,
|
|
880
880
|
"data-tag_color_id": e.colorId,
|
|
881
881
|
title: e.name
|
|
882
|
-
}, null, 10,
|
|
882
|
+
}, null, 10, Bt));
|
|
883
883
|
}
|
|
884
|
-
}),
|
|
884
|
+
}), Tt = ["contenteditable", "onKeydown"], Be = /* @__PURE__ */ L({
|
|
885
885
|
__name: "tagPopupListItem",
|
|
886
886
|
props: /* @__PURE__ */ M({
|
|
887
887
|
editable: { type: Boolean },
|
|
@@ -926,7 +926,7 @@ const ce = {
|
|
|
926
926
|
}),
|
|
927
927
|
onClick: F(i, ["stop"])
|
|
928
928
|
}, {
|
|
929
|
-
default:
|
|
929
|
+
default: B(() => [
|
|
930
930
|
R(ge, {
|
|
931
931
|
id: e.id,
|
|
932
932
|
name: r.value,
|
|
@@ -943,7 +943,7 @@ const ce = {
|
|
|
943
943
|
ye(F(f, ["stop"]), ["enter"]),
|
|
944
944
|
ye(F(I, ["stop"]), ["esc"])
|
|
945
945
|
]
|
|
946
|
-
}), V(r.value), 17,
|
|
946
|
+
}), V(r.value), 17, Tt),
|
|
947
947
|
e.editable ? (h(), b(Y, { key: 0 }, [
|
|
948
948
|
d.value ? (h(), b("span", {
|
|
949
949
|
key: 1,
|
|
@@ -992,7 +992,7 @@ const ce = {
|
|
|
992
992
|
return (n, d) => {
|
|
993
993
|
const c = Ne("top-data");
|
|
994
994
|
return h(), C(ze, { id: e.id }, {
|
|
995
|
-
default:
|
|
995
|
+
default: B(() => [
|
|
996
996
|
Pe((h(), C(De(v(t)), Ae({
|
|
997
997
|
class: {
|
|
998
998
|
"top-tagSelector": !0,
|
|
@@ -1008,7 +1008,7 @@ const ce = {
|
|
|
1008
1008
|
color: "theme",
|
|
1009
1009
|
styling: e.styling
|
|
1010
1010
|
}, n.$attrs), {
|
|
1011
|
-
[v(r)]:
|
|
1011
|
+
[v(r)]: B(() => [
|
|
1012
1012
|
!o.value.length && e.mode === "filter" ? (h(), C(ge, {
|
|
1013
1013
|
key: 0,
|
|
1014
1014
|
id: "all",
|
|
@@ -1054,7 +1054,7 @@ const ce = {
|
|
|
1054
1054
|
},
|
|
1055
1055
|
modelModifiers: {},
|
|
1056
1056
|
tags: {
|
|
1057
|
-
default:
|
|
1057
|
+
default: Te(Ct)
|
|
1058
1058
|
},
|
|
1059
1059
|
tagsModifiers: {}
|
|
1060
1060
|
}),
|
|
@@ -1075,7 +1075,7 @@ const ce = {
|
|
|
1075
1075
|
filters: void 0,
|
|
1076
1076
|
payload: void 0
|
|
1077
1077
|
});
|
|
1078
|
-
|
|
1078
|
+
T(r, () => {
|
|
1079
1079
|
d("selector", r.value);
|
|
1080
1080
|
});
|
|
1081
1081
|
const m = E(() => {
|
|
@@ -1157,8 +1157,8 @@ const ce = {
|
|
|
1157
1157
|
onClose: S[5] || (S[5] = (x) => Le(x)),
|
|
1158
1158
|
"transition-duration": 50
|
|
1159
1159
|
}, Fe({
|
|
1160
|
-
contentList:
|
|
1161
|
-
v(i).mode === "filter" && !e.singleMode ? (h(), C(
|
|
1160
|
+
contentList: B(() => [
|
|
1161
|
+
v(i).mode === "filter" && !e.singleMode ? (h(), C(Be, {
|
|
1162
1162
|
key: 0,
|
|
1163
1163
|
id: "all",
|
|
1164
1164
|
colorId: "",
|
|
@@ -1166,7 +1166,7 @@ const ce = {
|
|
|
1166
1166
|
state: v(i).model.value.length ? "" : "selected",
|
|
1167
1167
|
onSelect: S[3] || (S[3] = (x) => v(i).model.value = [])
|
|
1168
1168
|
}, null, 8, ["name", "state"])) : O("", !0),
|
|
1169
|
-
(h(!0), b(Y, null, fe(l.value, (x) => (h(), C(
|
|
1169
|
+
(h(!0), b(Y, null, fe(l.value, (x) => (h(), C(Be, {
|
|
1170
1170
|
key: x.id,
|
|
1171
1171
|
id: x.id,
|
|
1172
1172
|
colorId: x.color_id,
|
|
@@ -1187,7 +1187,7 @@ const ce = {
|
|
|
1187
1187
|
"data-top-icon": "",
|
|
1188
1188
|
onClick: F(Z, ["stop"])
|
|
1189
1189
|
}, {
|
|
1190
|
-
default:
|
|
1190
|
+
default: B(() => [
|
|
1191
1191
|
z(V(p.$i18n.Common.Add), 1)
|
|
1192
1192
|
]),
|
|
1193
1193
|
_: 1
|
|
@@ -1197,7 +1197,7 @@ const ce = {
|
|
|
1197
1197
|
}, [
|
|
1198
1198
|
v(i).mode === "setter" && v(i).filters ? {
|
|
1199
1199
|
name: "header",
|
|
1200
|
-
fn:
|
|
1200
|
+
fn: B(() => [
|
|
1201
1201
|
R(se, {
|
|
1202
1202
|
modelValue: f.value,
|
|
1203
1203
|
"onUpdate:modelValue": S[1] || (S[1] = (x) => f.value = x),
|
|
@@ -1208,9 +1208,9 @@ const ce = {
|
|
|
1208
1208
|
} : void 0,
|
|
1209
1209
|
v(i).mode === "setter" && v(i).filters ? {
|
|
1210
1210
|
name: "footer",
|
|
1211
|
-
fn:
|
|
1211
|
+
fn: B(() => [
|
|
1212
1212
|
R(H, { color: "theme" }, {
|
|
1213
|
-
default:
|
|
1213
|
+
default: B(() => [
|
|
1214
1214
|
z(V(p.$i18n.Common.Cancel), 1)
|
|
1215
1215
|
]),
|
|
1216
1216
|
_: 1
|
|
@@ -1223,7 +1223,7 @@ const ce = {
|
|
|
1223
1223
|
payload: v(i).payload
|
|
1224
1224
|
}))
|
|
1225
1225
|
}, {
|
|
1226
|
-
default:
|
|
1226
|
+
default: B(() => [
|
|
1227
1227
|
z(V(f.value === "add" ? p.$i18n.Common.Add : "") + " " + V(f.value === "replace" ? p.$i18n.Common.Replace : "") + " " + V(f.value === "delete" ? p.$i18n.Common.Delete : ""), 1)
|
|
1228
1228
|
]),
|
|
1229
1229
|
_: 1
|
|
@@ -1239,8 +1239,6 @@ export {
|
|
|
1239
1239
|
Nt as TopCompetitorSelector,
|
|
1240
1240
|
qt as TopGroupSelector,
|
|
1241
1241
|
Dt as TopRegionSelector,
|
|
1242
|
-
Nt as TopSelectorCompetitors,
|
|
1243
|
-
Dt as TopSelectorRegion,
|
|
1244
1242
|
_t as TopTagSelector,
|
|
1245
1243
|
bt as TopTagSelectorPopupOpener,
|
|
1246
1244
|
ge as TopTagSelectorTagIcon,
|