@pksep/yui 0.1.240 → 0.1.242
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.
|
@@ -7,6 +7,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
7
7
|
dataTestid: string;
|
|
8
8
|
position: string;
|
|
9
9
|
disableCloseOnOutsideClick: boolean;
|
|
10
|
+
isResetFocus: boolean;
|
|
10
11
|
}>>, {
|
|
11
12
|
closeDialog: () => void;
|
|
12
13
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -16,6 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
16
17
|
dataTestid: string;
|
|
17
18
|
position: string;
|
|
18
19
|
disableCloseOnOutsideClick: boolean;
|
|
20
|
+
isResetFocus: boolean;
|
|
19
21
|
}>>> & Readonly<{
|
|
20
22
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
21
23
|
onUnmounted?: ((...args: any[]) => any) | undefined;
|
|
@@ -23,6 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
23
25
|
dataTestid: string;
|
|
24
26
|
position: "right" | "center" | "bottom";
|
|
25
27
|
disableCloseOnOutsideClick: boolean;
|
|
28
|
+
isResetFocus: boolean;
|
|
26
29
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
30
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
28
31
|
export default _default;
|
package/dist/sep-yui.es.ts
CHANGED
|
@@ -53563,6 +53563,7 @@ const i7g = ["data-testid"], A7g = ["data-testid"], n7g = /* @__PURE__ */ lg({
|
|
|
53563
53563
|
}, {
|
|
53564
53564
|
default: vg(() => [
|
|
53565
53565
|
$("span", {
|
|
53566
|
+
class: "search-yui-kit__button-label",
|
|
53566
53567
|
"data-testid": `${I.dataTestid}-ShowResult-Title`
|
|
53567
53568
|
}, " Просмотреть историю запросов ", 8, w7g)
|
|
53568
53569
|
]),
|
|
@@ -53615,7 +53616,7 @@ const i7g = ["data-testid"], A7g = ["data-testid"], n7g = /* @__PURE__ */ lg({
|
|
|
53615
53616
|
], 8, G7g)) : pg("", !0);
|
|
53616
53617
|
};
|
|
53617
53618
|
}
|
|
53618
|
-
}), V7g = /* @__PURE__ */ jg(Y7g, [["__scopeId", "data-v-
|
|
53619
|
+
}), V7g = /* @__PURE__ */ jg(Y7g, [["__scopeId", "data-v-4ab5fa19"]]), N7g = ["data-testid"], M7g = ["data-testid"], R7g = ["data-testid", "onClick"], X7g = ["data-testid"], H7g = ["data-testid"], f7g = ["data-testid"], D7g = ["data-testid"], S7g = ["data-testid"], K7g = ["data-testid"], k7g = /* @__PURE__ */ lg({
|
|
53619
53620
|
__name: "SearchResult",
|
|
53620
53621
|
props: {
|
|
53621
53622
|
defaultValue: {},
|
|
@@ -75836,6 +75837,7 @@ const h6g = () => {
|
|
|
75836
75837
|
width: {},
|
|
75837
75838
|
height: {},
|
|
75838
75839
|
disableCloseOnOutsideClick: { type: Boolean, default: !1 },
|
|
75840
|
+
isResetFocus: { type: Boolean, default: !0 },
|
|
75839
75841
|
dataTestid: { default: "Modal" }
|
|
75840
75842
|
},
|
|
75841
75843
|
emits: ["close", "unmounted"],
|
|
@@ -75882,7 +75884,7 @@ const h6g = () => {
|
|
|
75882
75884
|
closeDialog: b
|
|
75883
75885
|
}), nI(() => {
|
|
75884
75886
|
Ze(() => {
|
|
75885
|
-
A.open !== l.value && (u(), l.value = A.open, n.value && n.value.focus());
|
|
75887
|
+
A.open !== l.value && (u(), l.value = A.open, n.value && A.isResetFocus && n.value.focus());
|
|
75886
75888
|
}), n.value && n.value.addEventListener("cancel", (M) => {
|
|
75887
75889
|
M.preventDefault();
|
|
75888
75890
|
});
|
|
@@ -75913,7 +75915,7 @@ const h6g = () => {
|
|
|
75913
75915
|
], 12, Z6g)
|
|
75914
75916
|
], 16, b6g));
|
|
75915
75917
|
}
|
|
75916
|
-
}), hv = /* @__PURE__ */ jg(G6g, [["__scopeId", "data-v-
|
|
75918
|
+
}), hv = /* @__PURE__ */ jg(G6g, [["__scopeId", "data-v-25d7cce5"]]), w6g = /* @__PURE__ */ lg({
|
|
75917
75919
|
__name: "ModalAnimated",
|
|
75918
75920
|
props: {
|
|
75919
75921
|
animateType: {},
|
|
@@ -75922,6 +75924,7 @@ const h6g = () => {
|
|
|
75922
75924
|
width: {},
|
|
75923
75925
|
height: {},
|
|
75924
75926
|
disableCloseOnOutsideClick: { type: Boolean, default: !1 },
|
|
75927
|
+
isResetFocus: { type: Boolean },
|
|
75925
75928
|
dataTestid: { default: "Modal" }
|
|
75926
75929
|
},
|
|
75927
75930
|
emits: ["close", "unmounted", "end-animation"],
|
|
@@ -75959,6 +75962,7 @@ const h6g = () => {
|
|
|
75959
75962
|
width: I.width,
|
|
75960
75963
|
height: I.height,
|
|
75961
75964
|
"data-testid": I.dataTestid,
|
|
75965
|
+
"is-reset-focus": I.isResetFocus,
|
|
75962
75966
|
onClose: r,
|
|
75963
75967
|
onUnmounted: s,
|
|
75964
75968
|
"disable-close-on-outside-click": I.disableCloseOnOutsideClick
|
|
@@ -75967,12 +75971,12 @@ const h6g = () => {
|
|
|
75967
75971
|
Eg(u.$slots, "default", {}, void 0, !0)
|
|
75968
75972
|
]),
|
|
75969
75973
|
_: 3
|
|
75970
|
-
}, 8, ["open", "position", "width", "height", "data-testid", "disable-close-on-outside-click"])) : pg("", !0)
|
|
75974
|
+
}, 8, ["open", "position", "width", "height", "data-testid", "is-reset-focus", "disable-close-on-outside-click"])) : pg("", !0)
|
|
75971
75975
|
]),
|
|
75972
75976
|
_: 3
|
|
75973
75977
|
}, 8, ["name"]));
|
|
75974
75978
|
}
|
|
75975
|
-
}), iy = /* @__PURE__ */ jg(w6g, [["__scopeId", "data-v-
|
|
75979
|
+
}), iy = /* @__PURE__ */ jg(w6g, [["__scopeId", "data-v-728b0160"]]), sS = (C, g = window) => {
|
|
75976
75980
|
const I = C.getBoundingClientRect();
|
|
75977
75981
|
if (g instanceof Window) {
|
|
75978
75982
|
const e = window.innerWidth, t = window.innerHeight;
|
|
@@ -77256,6 +77260,7 @@ const v6g = {
|
|
|
77256
77260
|
width: {},
|
|
77257
77261
|
height: {},
|
|
77258
77262
|
disableCloseOnOutsideClick: { type: Boolean },
|
|
77263
|
+
isResetFocus: { type: Boolean },
|
|
77259
77264
|
items: {},
|
|
77260
77265
|
defaultIndex: { default: 0 }
|
|
77261
77266
|
},
|
|
@@ -110856,55 +110861,47 @@ const RsI = /* @__PURE__ */ lg({
|
|
|
110856
110861
|
setup(C, { emit: g }) {
|
|
110857
110862
|
const I = g, e = mg({
|
|
110858
110863
|
dragging: !1
|
|
110859
|
-
}), t = (m) => {
|
|
110860
|
-
|
|
110861
|
-
return
|
|
110862
|
-
|
|
110863
|
-
|
|
110864
|
-
|
|
110865
|
-
|
|
110866
|
-
|
|
110867
|
-
|
|
110868
|
-
|
|
110869
|
-
|
|
110870
|
-
},
|
|
110871
|
-
|
|
110872
|
-
|
|
110873
|
-
|
|
110874
|
-
|
|
110875
|
-
|
|
110876
|
-
},
|
|
110877
|
-
m.preventDefault(), e.dragging = !1;
|
|
110878
|
-
}, l = (m) => {
|
|
110879
|
-
m.preventDefault();
|
|
110880
|
-
}, o = (m) => {
|
|
110881
|
-
m.preventDefault(), i(m.dataTransfer) && (e.dragging = !0);
|
|
110882
|
-
}, a = (m) => {
|
|
110883
|
-
m.clientX === 0 && m.clientY === 0 && (e.dragging = !1);
|
|
110884
|
-
}, r = () => {
|
|
110864
|
+
}), t = (u) => u.files && u.files.length > 0 ? Array.from(u.files) : Array.from(u.items ?? []).filter((m) => m.kind === "file").map((m) => m.getAsFile()).filter((m) => !!m), i = (u) => {
|
|
110865
|
+
var m;
|
|
110866
|
+
return u ? (m = u.types) != null && m.includes("Files") ? !0 : Array.from(u.items ?? []).some(
|
|
110867
|
+
(b) => b.kind === "file"
|
|
110868
|
+
) : !1;
|
|
110869
|
+
}, A = (u) => {
|
|
110870
|
+
if (u.preventDefault(), e.dragging = !1, !u.dataTransfer) return;
|
|
110871
|
+
const m = t(u.dataTransfer);
|
|
110872
|
+
m.length && I("files-dropped", m);
|
|
110873
|
+
}, n = (u) => {
|
|
110874
|
+
u.preventDefault(), e.dragging = !1;
|
|
110875
|
+
}, s = (u) => {
|
|
110876
|
+
u.preventDefault();
|
|
110877
|
+
}, l = (u) => {
|
|
110878
|
+
u.preventDefault(), i(u.dataTransfer) && (e.dragging = !0);
|
|
110879
|
+
}, o = (u) => {
|
|
110880
|
+
u.clientX === 0 && u.clientY === 0 && (e.dragging = !1);
|
|
110881
|
+
}, a = () => {
|
|
110885
110882
|
e.dragging = !1;
|
|
110886
|
-
},
|
|
110887
|
-
|
|
110883
|
+
}, r = (u) => {
|
|
110884
|
+
u.clientX === 0 && u.clientY === 0 && (e.dragging = !1);
|
|
110888
110885
|
};
|
|
110889
110886
|
return nI(() => {
|
|
110890
|
-
window.addEventListener("dragenter",
|
|
110887
|
+
window.addEventListener("dragenter", l), window.addEventListener("dragover", s), window.addEventListener("drop", n), window.addEventListener("dragleave", o), window.addEventListener("dragend", a);
|
|
110891
110888
|
}), Yi(() => {
|
|
110892
|
-
window.removeEventListener("dragenter",
|
|
110893
|
-
}), (
|
|
110889
|
+
window.removeEventListener("dragenter", l), window.removeEventListener("dragover", s), window.removeEventListener("drop", n), window.removeEventListener("dragleave", o), window.removeEventListener("dragend", a);
|
|
110890
|
+
}), (u, m) => (j(), Tg(V2, { name: "drag" }, {
|
|
110894
110891
|
default: vg(() => [
|
|
110895
110892
|
e.dragging ? (j(), U("div", {
|
|
110896
110893
|
key: 0,
|
|
110897
110894
|
class: "drag-overlay",
|
|
110898
|
-
onDragleave:
|
|
110899
|
-
onDragover:
|
|
110895
|
+
onDragleave: r,
|
|
110896
|
+
onDragover: m[0] || (m[0] = tI(() => {
|
|
110900
110897
|
}, ["prevent"])),
|
|
110901
|
-
onDrop: tI(
|
|
110898
|
+
onDrop: tI(A, ["prevent"])
|
|
110902
110899
|
}, " Загрузить файл ", 32)) : pg("", !0)
|
|
110903
110900
|
]),
|
|
110904
110901
|
_: 1
|
|
110905
110902
|
}));
|
|
110906
110903
|
}
|
|
110907
|
-
}), XsI = /* @__PURE__ */ jg(RsI, [["__scopeId", "data-v-
|
|
110904
|
+
}), XsI = /* @__PURE__ */ jg(RsI, [["__scopeId", "data-v-7ae5b2f6"]]), HsI = { class: "editor-component" }, fsI = {
|
|
110908
110905
|
key: 0,
|
|
110909
110906
|
class: "editor-component-slot"
|
|
110910
110907
|
}, DsI = { class: "right-buttons" }, SsI = { class: "toolbar" }, KsI = { class: "camera-selection" }, ksI = { class: "camera-selection-options" }, Dj = /* @__PURE__ */ lg({
|
|
@@ -111499,6 +111496,7 @@ const RsI = /* @__PURE__ */ lg({
|
|
|
111499
111496
|
width: { default: "650px" },
|
|
111500
111497
|
height: { default: "auto" },
|
|
111501
111498
|
disableCloseOnOutsideClick: { type: Boolean },
|
|
111499
|
+
isResetFocus: { type: Boolean },
|
|
111502
111500
|
dataTestid: {}
|
|
111503
111501
|
},
|
|
111504
111502
|
emits: ["unmount-close", "unmount-save"],
|