@topvisor/ui 1.5.4-groupSelector.2 → 1.5.4-groupSelector.3
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/formsExt-Dy7EHtJS.amd.js +2 -0
- package/.chunks/formsExt-Dy7EHtJS.amd.js.map +1 -0
- package/.chunks/{formsExt-UkSw445A.esm.js → formsExt-Dy7EHtJS.esm.js} +117 -103
- package/.chunks/formsExt-Dy7EHtJS.esm.js.map +1 -0
- package/autoload-css-manifest.amd.json +1 -1
- package/autoload-css-manifest.json +1 -1
- package/formsExt/formsExt.amd.js +1 -1
- package/formsExt/formsExt.amd.js.map +1 -1
- package/formsExt/formsExt.js +1 -1
- package/package.json +1 -1
- package/project/project.amd.js +1 -1
- package/project/project.amd.js.map +1 -1
- package/project/project.js +13 -11
- package/project/project.js.map +1 -1
- package/src/components/formsExt/selector2/cache.d.ts +13 -3
- package/src/components/formsExt/selector2/composables/useMenu.d.ts +1 -1
- package/src/components/formsExt/selector2/types.d.ts +9 -0
- package/src/components/project/groupSelector/groups/types.d.ts +5 -2
- package/src/components/project/groupSelector/types.d.ts +6 -0
- package/.chunks/formsExt-UkSw445A.amd.js +0 -2
- package/.chunks/formsExt-UkSw445A.amd.js.map +0 -1
- package/.chunks/formsExt-UkSw445A.esm.js.map +0 -1
package/project/project.js
CHANGED
|
@@ -17,7 +17,7 @@ import { ellipsis as d } from "../utils/string.js";
|
|
|
17
17
|
import { getDeviceGIcon as f, getLangLabel as p, getSearcherGIcon as m } from "../utils/searchers.js";
|
|
18
18
|
import { invertKeyboardLayout as h } from "../utils/keyboard.js";
|
|
19
19
|
import { c as g, n as _, o as v, r as ee, s as y } from "../.chunks/popup-CtiL5V44.esm.js";
|
|
20
|
-
import { d as b, s as x, u as te } from "../.chunks/formsExt-
|
|
20
|
+
import { d as b, s as x, u as te } from "../.chunks/formsExt-Dy7EHtJS.esm.js";
|
|
21
21
|
import "../popup/worker.js";
|
|
22
22
|
import { Fragment as S, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as ne, createTextVNode as O, createVNode as k, defineComponent as A, isRef as re, mergeModels as j, mergeProps as ie, nextTick as ae, normalizeClass as M, onMounted as oe, openBlock as N, reactive as se, ref as P, renderList as F, renderSlot as ce, resolveComponent as le, resolveDirective as ue, resolveDynamicComponent as de, shallowRef as fe, toDisplayString as I, toValue as pe, unref as L, useModel as R, watch as z, withCtx as B, withDirectives as me, withKeys as he, withModifiers as V } from "vue";
|
|
23
23
|
//#region src/components/project/competitorSelector/competitorSelector.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -531,7 +531,10 @@ var He = ["innerHTML"], Ue = /* @__PURE__ */ A({
|
|
|
531
531
|
z(() => t.projectId, () => {
|
|
532
532
|
i?.changeParams({ project_id: t.projectId }), i?.setOptions({ checkFingerprint: "TopGroupSelectorFolders:" + t.projectId }), a.value?.resetCache();
|
|
533
533
|
}, { immediate: !0 });
|
|
534
|
-
let o = C(() => ze(t.folders ?? { root: [U] }, t.canSelectAll)), s = (e) => (e
|
|
534
|
+
let o = C(() => ze(t.folders ?? { root: [U] }, t.canSelectAll)), s = (e) => (t.canSelectAll && e[0]?.id === 0 && (e[0] = {
|
|
535
|
+
...e[0],
|
|
536
|
+
name: Re(!0)
|
|
537
|
+
}), e);
|
|
535
538
|
return Ve({
|
|
536
539
|
modelFolder: r,
|
|
537
540
|
modelFolderId: n
|
|
@@ -552,10 +555,11 @@ var He = ["innerHTML"], Ue = /* @__PURE__ */ A({
|
|
|
552
555
|
icon: e.addIcon ? "" : void 0,
|
|
553
556
|
api: e.folders ? void 0 : L(i),
|
|
554
557
|
apiSetSearchParams: (...e) => L(te)(...e, "name"),
|
|
558
|
+
prepareItemsBeforeRender: s,
|
|
555
559
|
addChanger: e.addChanger,
|
|
556
560
|
useCache: ""
|
|
557
561
|
}, {
|
|
558
|
-
item: B(({ item: e }) => [D("div", { innerHTML:
|
|
562
|
+
item: B(({ item: e }) => [D("div", { innerHTML: e.name.replaceAll(/</g, "< ") }, null, 8, He)]),
|
|
559
563
|
_: 1
|
|
560
564
|
}, 8, [
|
|
561
565
|
"modelValue",
|
|
@@ -696,18 +700,15 @@ var He = ["innerHTML"], Ue = /* @__PURE__ */ A({
|
|
|
696
700
|
project_id: r.projectId,
|
|
697
701
|
id: e.id,
|
|
698
702
|
name: t
|
|
699
|
-
}).call()).errors || (s.value.id === e.id &&
|
|
700
|
-
|
|
701
|
-
name: t
|
|
702
|
-
}), i("editGroup", {
|
|
703
|
-
...e,
|
|
703
|
+
}).call()).errors || (s.value.id === e.id && (s.value.name = t), i("editGroup", {
|
|
704
|
+
id: e.id,
|
|
704
705
|
name: t
|
|
705
|
-
}), f.value?.
|
|
706
|
+
}), f.value?.updateCacheItemById(e.id, { name: t })));
|
|
706
707
|
}, b = async (e) => {
|
|
707
708
|
u && ((await u.changeParams({
|
|
708
709
|
project_id: r.projectId,
|
|
709
710
|
id: e.id
|
|
710
|
-
}).call()).errors || (s.value.id === e.id && h(r.canSelectAll ? K() : W), i("delGroup", e), f.value?.
|
|
711
|
+
}).call()).errors || (s.value.id === e.id && h(r.canSelectAll ? K() : W), i("delGroup", e.id), f.value?.deleteCacheItemById(e.id)));
|
|
711
712
|
};
|
|
712
713
|
return t({ resetCacheGroups: g }), (t, n) => (N(), w(x, {
|
|
713
714
|
ref_key: "refSelector",
|
|
@@ -808,6 +809,7 @@ var He = ["innerHTML"], Ue = /* @__PURE__ */ A({
|
|
|
808
809
|
type: Boolean,
|
|
809
810
|
default: !0
|
|
810
811
|
},
|
|
812
|
+
showGroupsPaths: { type: Boolean },
|
|
811
813
|
addIcon: {
|
|
812
814
|
type: Boolean,
|
|
813
815
|
default: !0
|
|
@@ -893,7 +895,7 @@ var He = ["innerHTML"], Ue = /* @__PURE__ */ A({
|
|
|
893
895
|
canSelectAll: e.canSelectAllGroups,
|
|
894
896
|
autoselect: e.autoselect,
|
|
895
897
|
addChanger: e.addChanger,
|
|
896
|
-
showPath: e.
|
|
898
|
+
showPath: e.showGroupsPaths || e.showFolders,
|
|
897
899
|
addIcon: e.addIcon,
|
|
898
900
|
client: e.client,
|
|
899
901
|
service: r.service,
|