mhz-ui 1.0.112 → 1.0.113
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/UiCalendar/UiCalendar.js +3 -3
- package/dist/UiCheckbox/UiCheckbox.d.ts +3 -1
- package/dist/UiEditor/UiEditor.js +1 -1
- package/dist/UiInput/UiInput.d.ts +3 -1
- package/dist/UiSearch/UiSearch.d.ts +3 -1
- package/dist/UiSearch/UiSearch.js +1 -1
- package/dist/UiSelect/UiSelect.css +1 -1
- package/dist/UiSelect/UiSelect.d.ts +7 -1
- package/dist/UiSelect/UiSelect.js +61 -58
- package/dist/UiTable/UiTable.d.ts +4 -1
- package/dist/UiUpload/UiUpload.d.ts +3 -1
- package/dist/{ar.es-BLW2Z4CZ.js → ar.es-XxSuE68c.js} +2 -2
- package/dist/{bg.es-DyXqOpPt.js → bg.es-BJ7fu6yy.js} +2 -2
- package/dist/{bn.es-CY2Fdths.js → bn.es-CYlBkxc5.js} +2 -2
- package/dist/{bs.es-lbGuqsLP.js → bs.es-yMnaKmdi.js} +2 -2
- package/dist/{ca.es-B-U2GRBB.js → ca.es-DIhlxmQc.js} +2 -2
- package/dist/{cs.es-ZIWppJRm.js → cs.es-BN8oxRXQ.js} +2 -2
- package/dist/{da.es-Js6gsgnT.js → da.es-DJB5lAli.js} +2 -2
- package/dist/{de.es-C3nE6aML.js → de.es-glb8GeJh.js} +2 -2
- package/dist/{drag-and-drop.es-CMuKXOug.js → drag-and-drop.es-Ckzp6XEn.js} +2 -2
- package/dist/{el.es-CqRg0EdK.js → el.es-_bBZf22h.js} +2 -2
- package/dist/{en.es-CpWIEflz.js → en.es-CV9nmQGr.js} +2 -2
- package/dist/{es.es-BCokt0wf.js → es.es-CZjcWK54.js} +2 -2
- package/dist/{et.es-Bw8Dc_cz.js → et.es-CjvQAzNF.js} +2 -2
- package/dist/{fa.es-DVAJWeDO.js → fa.es-DykeFwDA.js} +2 -2
- package/dist/{fi.es-DuBfamiu.js → fi.es-Bl7Pp7AO.js} +2 -2
- package/dist/{fr.es-BarC1_XO.js → fr.es-CNKVhFfO.js} +2 -2
- package/dist/{he.es-Bh6mEoJE.js → he.es-nF4GFhjH.js} +2 -2
- package/dist/{hr.es-BRxm8q1y.js → hr.es-QFfz660j.js} +2 -2
- package/dist/{hu.es-5crfYMMf.js → hu.es-Ck2rE01V.js} +2 -2
- package/dist/{id.es-AphTfOYe.js → id.es-Je7FEUJ5.js} +2 -2
- package/dist/{index-DxFIyCFU.js → index-B0XPXFAj.js} +6 -6
- package/dist/{is.es-CHusUpxY.js → is.es-bzprHvXI.js} +2 -2
- package/dist/{it.es-CG60okth.js → it.es-CJtfqmNS.js} +2 -2
- package/dist/{ja.es-CM6IrDxA.js → ja.es-BaiGjqZ6.js} +2 -2
- package/dist/{ka.es-wN0AzArm.js → ka.es-x9QJo_dl.js} +2 -2
- package/dist/{ko.es-VUDdw-cm.js → ko.es-6c447eTS.js} +2 -2
- package/dist/{lt.es-D5EyY7uG.js → lt.es-2twYdvmJ.js} +2 -2
- package/dist/{mn.es-CWtc-hEp.js → mn.es-BLQRG1uu.js} +2 -2
- package/dist/{nl.es-uI_64RNU.js → nl.es-bB1qWR_S.js} +2 -2
- package/dist/{no.es-B-_xAS_2.js → no.es-CWDVXpTf.js} +2 -2
- package/dist/{pl.es-WHj9MId4.js → pl.es-Dzct23w9.js} +2 -2
- package/dist/{pt-br.es-Cx8mfFPV.js → pt-br.es-BeBuiitI.js} +2 -2
- package/dist/{pt-pt.es-Cx8mfFPV.js → pt-pt.es-BeBuiitI.js} +2 -2
- package/dist/{ro.es-CiJg0UXW.js → ro.es-DfMVJ30M.js} +2 -2
- package/dist/{ru.es-CiXn4Fw2.js → ru.es-Bv9UvrBe.js} +2 -2
- package/dist/{sk.es-x9Sgwefy.js → sk.es-CUOTpLuL.js} +2 -2
- package/dist/{sl.es-84roT8RM.js → sl.es-DeIGgZbR.js} +2 -2
- package/dist/{sq.es-CMz4fPId.js → sq.es-CQJJrZHv.js} +2 -2
- package/dist/{sr.es-1bAmay20.js → sr.es-CKS0AkiW.js} +2 -2
- package/dist/{sv.es-Dva_DYZt.js → sv.es-ChHQRrAe.js} +2 -2
- package/dist/{tr.es-jEIQMDAl.js → tr.es-B3v90gVv.js} +2 -2
- package/dist/{uk.es-DX0JSUCD.js → uk.es-CiR4NnbN.js} +2 -2
- package/dist/{vi.es-BJkBWmvm.js → vi.es-DFDi5l7p.js} +2 -2
- package/dist/{zh-cn.es-B_PqPHG6.js → zh-cn.es-9cbEAuAi.js} +2 -2
- package/dist/{zh-hk.es-B8y8XYw_.js → zh-hk.es-z0tio4jE.js} +2 -2
- package/package.json +10 -10
|
@@ -1945,14 +1945,14 @@ const U = 24 * 60, R = {
|
|
|
1945
1945
|
this.texts = Object.assign({}, R, t), this.utils.date.updateTexts(this.texts);
|
|
1946
1946
|
return;
|
|
1947
1947
|
}
|
|
1948
|
-
const e = await fe(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("../ar.es-
|
|
1948
|
+
const e = await fe(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("../ar.es-XxSuE68c.js"), "./i18n/bg.json": () => import("../bg.es-BJ7fu6yy.js"), "./i18n/bn.json": () => import("../bn.es-CYlBkxc5.js"), "./i18n/bs.json": () => import("../bs.es-yMnaKmdi.js"), "./i18n/ca.json": () => import("../ca.es-DIhlxmQc.js"), "./i18n/cs.json": () => import("../cs.es-BN8oxRXQ.js"), "./i18n/da.json": () => import("../da.es-DJB5lAli.js"), "./i18n/de.json": () => import("../de.es-glb8GeJh.js"), "./i18n/el.json": () => import("../el.es-_bBZf22h.js"), "./i18n/en.json": () => import("../en.es-CV9nmQGr.js"), "./i18n/es.json": () => import("../es.es-CZjcWK54.js"), "./i18n/et.json": () => import("../et.es-CjvQAzNF.js"), "./i18n/fa.json": () => import("../fa.es-DykeFwDA.js"), "./i18n/fi.json": () => import("../fi.es-Bl7Pp7AO.js"), "./i18n/fr.json": () => import("../fr.es-CNKVhFfO.js"), "./i18n/he.json": () => import("../he.es-nF4GFhjH.js"), "./i18n/hr.json": () => import("../hr.es-QFfz660j.js"), "./i18n/hu.json": () => import("../hu.es-Ck2rE01V.js"), "./i18n/id.json": () => import("../id.es-Je7FEUJ5.js"), "./i18n/is.json": () => import("../is.es-bzprHvXI.js"), "./i18n/it.json": () => import("../it.es-CJtfqmNS.js"), "./i18n/ja.json": () => import("../ja.es-BaiGjqZ6.js"), "./i18n/ka.json": () => import("../ka.es-x9QJo_dl.js"), "./i18n/ko.json": () => import("../ko.es-6c447eTS.js"), "./i18n/lt.json": () => import("../lt.es-2twYdvmJ.js"), "./i18n/mn.json": () => import("../mn.es-BLQRG1uu.js"), "./i18n/nl.json": () => import("../nl.es-bB1qWR_S.js"), "./i18n/no.json": () => import("../no.es-CWDVXpTf.js"), "./i18n/pl.json": () => import("../pl.es-Dzct23w9.js"), "./i18n/pt-br.json": () => import("../pt-br.es-BeBuiitI.js"), "./i18n/pt-pt.json": () => import("../pt-pt.es-BeBuiitI.js"), "./i18n/ro.json": () => import("../ro.es-DfMVJ30M.js"), "./i18n/ru.json": () => import("../ru.es-Bv9UvrBe.js"), "./i18n/sk.json": () => import("../sk.es-CUOTpLuL.js"), "./i18n/sl.json": () => import("../sl.es-DeIGgZbR.js"), "./i18n/sq.json": () => import("../sq.es-CQJJrZHv.js"), "./i18n/sr.json": () => import("../sr.es-CKS0AkiW.js"), "./i18n/sv.json": () => import("../sv.es-ChHQRrAe.js"), "./i18n/tr.json": () => import("../tr.es-B3v90gVv.js"), "./i18n/uk.json": () => import("../uk.es-CiR4NnbN.js"), "./i18n/vi.json": () => import("../vi.es-DFDi5l7p.js"), "./i18n/zh-cn.json": () => import("../zh-cn.es-9cbEAuAi.js"), "./i18n/zh-hk.json": () => import("../zh-hk.es-z0tio4jE.js") }), `./i18n/${t}.json`, 3);
|
|
1949
1949
|
this.texts = Object.assign({}, R, e), this.utils.date.updateTexts(this.texts);
|
|
1950
1950
|
},
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Only import drag and drop module on demand to keep a small library weight.
|
|
1953
1953
|
*/
|
|
1954
1954
|
loadDragAndDrop() {
|
|
1955
|
-
import("../drag-and-drop.es-
|
|
1955
|
+
import("../drag-and-drop.es-Ckzp6XEn.js").then((t) => {
|
|
1956
1956
|
const { DragAndDrop: e } = t;
|
|
1957
1957
|
this.modules.dnd = new e(this);
|
|
1958
1958
|
}).catch(() => console.warn("Vue Cal: Missing drag & drop module."));
|
|
@@ -2421,7 +2421,7 @@ A valid view must be one of: ${te.join(", ")}.`), t = "week"), this.enabledViews
|
|
|
2421
2421
|
* This function will also push the weekdays-headings and all-day bar to have them properly aligned.
|
|
2422
2422
|
* The calculated style will be placed in the document head in a style tag so it's only done once
|
|
2423
2423
|
* (the scrollbar width never changes).
|
|
2424
|
-
* Ref. https://github.com/antoniandre/vue-cal/issues/221
|
|
2424
|
+
* Ref. https://github.com/antoniandre/vue-cal-v4/issues/221
|
|
2425
2425
|
*/
|
|
2426
2426
|
alignWithScrollbar() {
|
|
2427
2427
|
if (document.getElementById("vuecal-align-with-scrollbar")) return;
|
|
@@ -21,5 +21,7 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
21
21
|
initialValue: TInitialValue;
|
|
22
22
|
labelSub: string;
|
|
23
23
|
labelSwitcher: string;
|
|
24
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
checkbox: HTMLInputElement;
|
|
26
|
+
}, HTMLLabelElement>;
|
|
25
27
|
export default _default;
|
|
@@ -9561,7 +9561,7 @@ function de(...n) {
|
|
|
9561
9561
|
return;
|
|
9562
9562
|
}
|
|
9563
9563
|
if (i === "class") {
|
|
9564
|
-
const l = s ? s.split(" ") : [], a = r[i] ? r[i].split(" ") : [], c = l.filter((u) => !a.includes(u));
|
|
9564
|
+
const l = s ? String(s).split(" ") : [], a = r[i] ? r[i].split(" ") : [], c = l.filter((u) => !a.includes(u));
|
|
9565
9565
|
r[i] = [...a, ...c].join(" ");
|
|
9566
9566
|
} else if (i === "style") {
|
|
9567
9567
|
const l = s ? s.split(";").map((u) => u.trim()).filter(Boolean) : [], a = r[i] ? r[i].split(";").map((u) => u.trim()).filter(Boolean) : [], c = /* @__PURE__ */ new Map();
|
|
@@ -18,5 +18,7 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
18
18
|
modelValue: string | number | boolean | null;
|
|
19
19
|
mode: "default" | "select";
|
|
20
20
|
appendIcon: FunctionalComponent;
|
|
21
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
22
|
+
input: HTMLInputElement;
|
|
23
|
+
}, HTMLDivElement>;
|
|
22
24
|
export default _default;
|
|
@@ -17,5 +17,7 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
17
17
|
"update:modelValue": (value: string) => any;
|
|
18
18
|
}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
|
|
19
19
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
20
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
21
|
+
containerElement: HTMLDivElement;
|
|
22
|
+
}, HTMLDivElement>;
|
|
21
23
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./UiSearch.css";
|
|
2
2
|
import { openBlock as n, createElementBlock as l, createElementVNode as O, defineComponent as R, ref as N, computed as I, normalizeClass as g, createVNode as T, unref as v, withKeys as B, Fragment as m, createTextVNode as w, toDisplayString as S, createCommentVNode as f, renderList as E, createBlock as L, resolveDynamicComponent as U, withCtx as $ } from "vue";
|
|
3
3
|
import { RouterLink as b } from "vue-router";
|
|
4
|
-
import { o as z } from "../index-
|
|
4
|
+
import { o as z } from "../index-B0XPXFAj.js";
|
|
5
5
|
import M from "../UiInput/UiInput.js";
|
|
6
6
|
import { _ as x } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
7
7
|
const D = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_4zlng_1{position:relative}._container_4zlng_1:disabled{color:var(--color-gray-dark-extra);background:var(--color-gray-light-extra);border-color:var(--color-transparent)}._filter_4zlng_10{margin-top:8px}._options_4zlng_14{position:absolute;z-index:2;display:flex;flex-direction:column;min-width:100%;max-height:200px;margin-top:8px;overflow-y:auto;background-color:var(--color-white);border:1px solid var(--color-gray);border-radius:16px}._option_4zlng_14{display:flex;flex-shrink:0;align-items:center;height:40px;padding:0 16px;cursor:pointer;outline:none}._option_4zlng_14:hover,._option_4zlng_14:focus{color:var(--color-white);background-color:var(--color-primary)}._option_4zlng_14[data-current=true]{color:var(--color-black);background-color:var(--color-gray-light)}._option_4zlng_14[data-current=true]:hover,._option_4zlng_14[data-current=true]:focus{background-color:var(--color-gray)}
|
|
@@ -6,6 +6,7 @@ interface IProps {
|
|
|
6
6
|
modelValue?: string | number | IOption;
|
|
7
7
|
options?: string[] | number[] | IOption[];
|
|
8
8
|
isFilter?: boolean;
|
|
9
|
+
isDisabled?: boolean;
|
|
9
10
|
lang?: 'ru';
|
|
10
11
|
}
|
|
11
12
|
declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -14,5 +15,10 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
14
15
|
}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
|
|
15
16
|
"onUpdate:modelValue"?: ((value: string | number | IOption) => any) | undefined;
|
|
16
17
|
onReachedBottom?: (() => any) | undefined;
|
|
17
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
18
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
containerElement: HTMLDivElement;
|
|
20
|
+
optionsElement: HTMLDivElement;
|
|
21
|
+
optionsInnerElement: HTMLDivElement;
|
|
22
|
+
optionElement: HTMLDivElement[];
|
|
23
|
+
}, HTMLDivElement>;
|
|
18
24
|
export default _default;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "./UiSelect.css";
|
|
2
|
-
import { openBlock as l, createElementBlock as s, createElementVNode as
|
|
3
|
-
import { o as
|
|
4
|
-
import
|
|
5
|
-
import { _ as
|
|
6
|
-
const
|
|
2
|
+
import { openBlock as l, createElementBlock as s, createElementVNode as j, defineComponent as M, ref as d, computed as p, normalizeClass as m, createVNode as B, unref as O, createCommentVNode as I, Fragment as N, renderList as R, withKeys as f, toDisplayString as L } from "vue";
|
|
3
|
+
import { o as U } from "../index-B0XPXFAj.js";
|
|
4
|
+
import T from "../UiInput/UiInput.js";
|
|
5
|
+
import { _ as x } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
+
const K = {
|
|
7
7
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8
8
|
width: "16",
|
|
9
9
|
height: "16",
|
|
10
10
|
fill: "none"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
13
|
-
return l(), s("svg",
|
|
14
|
-
|
|
12
|
+
function P(h, i) {
|
|
13
|
+
return l(), s("svg", K, i[0] || (i[0] = [
|
|
14
|
+
j("path", {
|
|
15
15
|
stroke: "#1F1F1F",
|
|
16
16
|
"stroke-linecap": "round",
|
|
17
17
|
"stroke-linejoin": "round",
|
|
@@ -19,15 +19,15 @@ function D(h, r) {
|
|
|
19
19
|
}, null, -1)
|
|
20
20
|
]));
|
|
21
21
|
}
|
|
22
|
-
const H = { render:
|
|
22
|
+
const H = { render: P }, Q = {
|
|
23
23
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24
24
|
width: "16",
|
|
25
25
|
height: "16",
|
|
26
26
|
fill: "none"
|
|
27
27
|
};
|
|
28
|
-
function q(h,
|
|
29
|
-
return l(), s("svg", Q,
|
|
30
|
-
|
|
28
|
+
function q(h, i) {
|
|
29
|
+
return l(), s("svg", Q, i[0] || (i[0] = [
|
|
30
|
+
j("path", {
|
|
31
31
|
stroke: "#1F1F1F",
|
|
32
32
|
"stroke-linecap": "round",
|
|
33
33
|
"stroke-linejoin": "round",
|
|
@@ -35,66 +35,69 @@ function q(h, r) {
|
|
|
35
35
|
}, null, -1)
|
|
36
36
|
]));
|
|
37
37
|
}
|
|
38
|
-
const A = { render: q }, G = ["onClick", "onKeydown", "onMouseenter", "data-current"], J = /* @__PURE__ */
|
|
38
|
+
const A = { render: q }, G = ["onClick", "onKeydown", "onMouseenter", "data-current"], J = /* @__PURE__ */ M({
|
|
39
39
|
__name: "UiSelect",
|
|
40
40
|
props: {
|
|
41
41
|
modelValue: {},
|
|
42
42
|
options: {},
|
|
43
43
|
isFilter: { type: Boolean },
|
|
44
|
+
isDisabled: { type: Boolean },
|
|
44
45
|
lang: {}
|
|
45
46
|
},
|
|
46
47
|
emits: ["update:modelValue", "reachedBottom"],
|
|
47
|
-
setup(h, { emit:
|
|
48
|
-
const e = h, $ =
|
|
48
|
+
setup(h, { emit: i }) {
|
|
49
|
+
const e = h, $ = i, v = d(""), z = p(() => e.lang === "ru" ? "Выбрать" : "Choose variant"), D = p(() => e.lang === "ru" ? "Фильтровать" : "Filter Variants"), S = p(() => e.lang === "ru" ? "Нет результатов" : "No results"), w = p(() => typeof e.options?.[0] == "object"), k = p(() => {
|
|
49
50
|
if (!e.options) return [];
|
|
50
51
|
let t = e.options;
|
|
51
52
|
return w.value || (t = e.options.map((o) => ({ _id: o, title: o }))), e.isFilter ? t.filter((o) => o.title.toLowerCase().includes(v.value.toLowerCase())) : t;
|
|
52
|
-
}),
|
|
53
|
-
function
|
|
54
|
-
t < 0 || t === k.value.length || e.isFilter ||
|
|
53
|
+
}), r = d(!1), u = d(), g = d(), b = d([]);
|
|
54
|
+
function y(t) {
|
|
55
|
+
t < 0 || t === k.value.length || e.isFilter || b.value[t]?.focus();
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
u.value?.removeEventListener("scroll",
|
|
57
|
+
function c() {
|
|
58
|
+
u.value?.removeEventListener("scroll", F, !0), v.value = "", r.value = !1;
|
|
58
59
|
}
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
-
u.value?.scrollTo(0, 0),
|
|
62
|
-
}, 100);
|
|
60
|
+
function C() {
|
|
61
|
+
e.isDisabled || (r.value = !0, e.isFilter || setTimeout(() => {
|
|
62
|
+
u.value?.scrollTo(0, 0), y(0), u.value?.addEventListener("scroll", F, !0);
|
|
63
|
+
}, 100));
|
|
63
64
|
}
|
|
64
65
|
function V(t) {
|
|
65
|
-
t._id !== void 0 && ($("update:modelValue", w.value ? t : t._id),
|
|
66
|
+
t._id !== void 0 && ($("update:modelValue", w.value ? t : t._id), c());
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
-
if (!u.value || !
|
|
69
|
-
u.value.getBoundingClientRect().y -
|
|
68
|
+
function F() {
|
|
69
|
+
if (!u.value || !g.value) return;
|
|
70
|
+
u.value.getBoundingClientRect().y - g.value.getBoundingClientRect().y - g.value.scrollHeight + u.value.getBoundingClientRect().height > -100 && $("reachedBottom");
|
|
70
71
|
}
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
|
|
72
|
+
const E = d();
|
|
73
|
+
return U(E, () => {
|
|
74
|
+
c();
|
|
74
75
|
}), (t, o) => (l(), s("div", {
|
|
75
76
|
class: m(t.$style.container),
|
|
76
77
|
ref_key: "containerElement",
|
|
77
|
-
ref:
|
|
78
|
+
ref: E
|
|
78
79
|
}, [
|
|
79
|
-
|
|
80
|
+
B(T, {
|
|
80
81
|
modelValue: typeof e.modelValue == "string" || typeof e.modelValue == "number" ? e.modelValue : e.modelValue?.title,
|
|
81
|
-
|
|
82
|
+
disabled: e.isDisabled,
|
|
83
|
+
onToggle: o[0] || (o[0] = (n) => r.value ? c : C),
|
|
82
84
|
mode: "select",
|
|
83
|
-
placeholder:
|
|
84
|
-
appendIcon:
|
|
85
|
-
}, null, 8, ["modelValue", "placeholder", "appendIcon"]),
|
|
86
|
-
e.isFilter &&
|
|
85
|
+
placeholder: z.value,
|
|
86
|
+
appendIcon: r.value ? O(A) : O(H)
|
|
87
|
+
}, null, 8, ["modelValue", "disabled", "placeholder", "appendIcon"]),
|
|
88
|
+
e.isFilter && r.value ? (l(), s("div", {
|
|
87
89
|
key: 0,
|
|
88
90
|
class: m(t.$style.filter)
|
|
89
91
|
}, [
|
|
90
|
-
|
|
92
|
+
B(T, {
|
|
91
93
|
modelValue: v.value,
|
|
92
94
|
"onUpdate:modelValue": o[1] || (o[1] = (n) => v.value = n),
|
|
93
|
-
|
|
95
|
+
disabled: e.isDisabled,
|
|
96
|
+
placeholder: D.value,
|
|
94
97
|
isFocus: ""
|
|
95
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
96
|
-
], 2)) :
|
|
97
|
-
|
|
98
|
+
}, null, 8, ["modelValue", "disabled", "placeholder"])
|
|
99
|
+
], 2)) : I("", !0),
|
|
100
|
+
r.value ? (l(), s("div", {
|
|
98
101
|
key: 1,
|
|
99
102
|
class: m(t.$style.options),
|
|
100
103
|
ref_key: "optionsElement",
|
|
@@ -103,43 +106,43 @@ const A = { render: q }, G = ["onClick", "onKeydown", "onMouseenter", "data-curr
|
|
|
103
106
|
k.value.length ? (l(), s("div", {
|
|
104
107
|
key: 0,
|
|
105
108
|
ref_key: "optionsInnerElement",
|
|
106
|
-
ref:
|
|
109
|
+
ref: g
|
|
107
110
|
}, [
|
|
108
|
-
(l(!0), s(
|
|
109
|
-
key: `${n}-${
|
|
111
|
+
(l(!0), s(N, null, R(k.value, (n, _) => (l(), s("div", {
|
|
112
|
+
key: `${n}-${_}`,
|
|
110
113
|
onClick: (a) => V(n),
|
|
111
114
|
onKeydown: [
|
|
112
115
|
f((a) => V(n), ["enter"]),
|
|
113
116
|
f((a) => V(n), ["space"]),
|
|
114
|
-
f((a) => _
|
|
115
|
-
f((a) => _
|
|
116
|
-
o[2] || (o[2] = f((a) =>
|
|
117
|
+
f((a) => y(_ - 1), ["up"]),
|
|
118
|
+
f((a) => y(_ + 1), ["down"]),
|
|
119
|
+
o[2] || (o[2] = f((a) => r.value ? c() : C(), ["esc"]))
|
|
117
120
|
],
|
|
118
|
-
onMouseenter: (a) => _
|
|
121
|
+
onMouseenter: (a) => y(_),
|
|
119
122
|
class: m(t.$style.option),
|
|
120
123
|
tabindex: "0",
|
|
121
124
|
ref_for: !0,
|
|
122
125
|
ref_key: "optionElement",
|
|
123
|
-
ref:
|
|
126
|
+
ref: b,
|
|
124
127
|
"data-current": typeof e.modelValue == "string" || typeof e.modelValue == "number" ? e.modelValue === n._id : e.modelValue?._id === n._id
|
|
125
|
-
},
|
|
128
|
+
}, L(n.title), 43, G))), 128))
|
|
126
129
|
], 512)) : (l(), s("div", {
|
|
127
130
|
key: 1,
|
|
128
|
-
onClick:
|
|
131
|
+
onClick: c,
|
|
129
132
|
class: m(t.$style.option),
|
|
130
133
|
tabindex: "0"
|
|
131
|
-
},
|
|
132
|
-
], 2)) :
|
|
134
|
+
}, L(S.value), 3))
|
|
135
|
+
], 2)) : I("", !0)
|
|
133
136
|
], 2));
|
|
134
137
|
}
|
|
135
|
-
}), W = "
|
|
138
|
+
}), W = "_container_4zlng_1", X = "_filter_4zlng_10", Y = "_options_4zlng_14", Z = "_option_4zlng_14", ee = {
|
|
136
139
|
container: W,
|
|
137
140
|
filter: X,
|
|
138
141
|
options: Y,
|
|
139
142
|
option: Z
|
|
140
143
|
}, te = {
|
|
141
144
|
$style: ee
|
|
142
|
-
},
|
|
145
|
+
}, ie = /* @__PURE__ */ x(J, [["__cssModules", te]]);
|
|
143
146
|
export {
|
|
144
|
-
|
|
147
|
+
ie as default
|
|
145
148
|
};
|
|
@@ -30,7 +30,10 @@ declare const __VLS_component: import('vue').DefineComponent<IProps, {}, {}, {},
|
|
|
30
30
|
}, string, import('vue').PublicProps, Readonly<IProps> & Readonly<{
|
|
31
31
|
onReset?: ((value: string) => any) | undefined;
|
|
32
32
|
"onUpdate:modelValue"?: ((value: IModelValue) => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
34
|
+
tableBlock: HTMLDivElement;
|
|
35
|
+
table: HTMLTableElement;
|
|
36
|
+
}, HTMLDivElement>;
|
|
34
37
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
38
|
export default _default;
|
|
36
39
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -22,5 +22,7 @@ declare const _default: import('vue').DefineComponent<IProps, {}, {}, {}, {}, im
|
|
|
22
22
|
file: File;
|
|
23
23
|
files: File[] | never[];
|
|
24
24
|
extensions: string[];
|
|
25
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
25
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
input: HTMLInputElement;
|
|
27
|
+
}, HTMLDivElement>;
|
|
26
28
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var V = Object.defineProperty, S = (t, e, a) => e in t ? V(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a, C = (t, e, a) => S(t, e + "", a);
|
|
2
2
|
/**
|
|
3
|
-
* vue-cal v4.10.
|
|
4
|
-
* (c)
|
|
3
|
+
* vue-cal v4.10.2
|
|
4
|
+
* (c) 2025 Antoni Andre <antoniandre.web@gmail.com>
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
7
|
const m = 800;
|
|
@@ -2,18 +2,18 @@ import { getCurrentScope as I, onScopeDispose as L, watch as C, toValue as h } f
|
|
|
2
2
|
function M(n) {
|
|
3
3
|
return I() ? (L(n), !0) : !1;
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const O = typeof window < "u" && typeof document < "u";
|
|
6
6
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
7
7
|
const W = Object.prototype.toString, _ = (n) => W.call(n) === "[object Object]", A = () => {
|
|
8
8
|
}, j = /* @__PURE__ */ $();
|
|
9
9
|
function $() {
|
|
10
10
|
var n, r;
|
|
11
|
-
return
|
|
11
|
+
return O && ((n = window?.navigator) == null ? void 0 : n.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((r = window?.navigator) == null ? void 0 : r.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
12
12
|
}
|
|
13
13
|
function P(n) {
|
|
14
14
|
return Array.isArray(n) ? n : [n];
|
|
15
15
|
}
|
|
16
|
-
const T =
|
|
16
|
+
const T = O ? window : void 0;
|
|
17
17
|
function m(n) {
|
|
18
18
|
var r;
|
|
19
19
|
const s = h(n);
|
|
@@ -42,12 +42,12 @@ function b(...n) {
|
|
|
42
42
|
};
|
|
43
43
|
return M(y), y;
|
|
44
44
|
}
|
|
45
|
-
let
|
|
45
|
+
let v = !1;
|
|
46
46
|
function x(n, r, s = {}) {
|
|
47
47
|
const { window: o = T, ignore: f = [], capture: p = !0, detectIframe: w = !1 } = s;
|
|
48
48
|
if (!o)
|
|
49
49
|
return A;
|
|
50
|
-
j && !
|
|
50
|
+
j && !v && (v = !0, Array.from(o.document.body.children).forEach((e) => e.addEventListener("click", A)), o.document.documentElement.addEventListener("click", A));
|
|
51
51
|
let a = !0;
|
|
52
52
|
const g = (e) => h(f).some((t) => {
|
|
53
53
|
if (typeof t == "string")
|
|
@@ -92,7 +92,7 @@ function x(n, r, s = {}) {
|
|
|
92
92
|
const i = m(n);
|
|
93
93
|
((t = o.document.activeElement) == null ? void 0 : t.tagName) === "IFRAME" && !i?.contains(o.document.activeElement) && r(e);
|
|
94
94
|
}, 0);
|
|
95
|
-
})
|
|
95
|
+
}, { passive: !0 })
|
|
96
96
|
].filter(Boolean);
|
|
97
97
|
return () => d.forEach((e) => e());
|
|
98
98
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mhz-ui",
|
|
3
3
|
"description": "9000 Mhz ui kit",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.113",
|
|
5
5
|
"author": "Alexandr Dergunov <dergunovs@mail.ru> (https://github.com/dergunovs)",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"type": "module",
|
|
@@ -24,22 +24,22 @@
|
|
|
24
24
|
"test": "vitest run"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@tiptap/pm": "2.11.
|
|
28
|
-
"@tiptap/starter-kit": "2.11.
|
|
29
|
-
"@tiptap/vue-3": "2.11.
|
|
27
|
+
"@tiptap/pm": "2.11.2",
|
|
28
|
+
"@tiptap/starter-kit": "2.11.2",
|
|
29
|
+
"@tiptap/vue-3": "2.11.2",
|
|
30
30
|
"@vueform/slider": "2.1.10",
|
|
31
|
-
"@vueuse/core": "12.
|
|
32
|
-
"@vueuse/integrations": "12.
|
|
31
|
+
"@vueuse/core": "12.4.0",
|
|
32
|
+
"@vueuse/integrations": "12.4.0",
|
|
33
33
|
"chart.js": "4.4.7",
|
|
34
34
|
"mhz-helpers": "*",
|
|
35
35
|
"perfect-debounce": "1.0.0",
|
|
36
36
|
"vue": "3.5.13",
|
|
37
|
-
"vue-cal": "4.10.
|
|
37
|
+
"vue-cal": "4.10.2",
|
|
38
38
|
"vue-chartjs": "5.3.2",
|
|
39
39
|
"vue-router": "4.5.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@eslint/js": "9.
|
|
42
|
+
"@eslint/js": "9.18.0",
|
|
43
43
|
"@storybook/addon-essentials": "8.4.7",
|
|
44
44
|
"@storybook/addon-interactions": "8.4.7",
|
|
45
45
|
"@storybook/addon-links": "8.4.7",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@vitejs/plugin-vue": "5.2.1",
|
|
53
53
|
"@vitest/coverage-v8": "3.0.0-beta.4",
|
|
54
54
|
"@vue/test-utils": "2.4.6",
|
|
55
|
-
"eslint": "9.
|
|
55
|
+
"eslint": "9.18.0",
|
|
56
56
|
"eslint-config-prettier": "9.1.0",
|
|
57
57
|
"eslint-import-resolver-typescript": "3.7.0",
|
|
58
58
|
"eslint-plugin-import-x": "4.6.1",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"typescript": "5.7.3",
|
|
74
74
|
"typescript-eslint": "8.19.1",
|
|
75
75
|
"vite": "6.0.7",
|
|
76
|
-
"vite-plugin-dts": "4.
|
|
76
|
+
"vite-plugin-dts": "4.5.0",
|
|
77
77
|
"vite-plugin-static-copy": "2.2.0",
|
|
78
78
|
"vite-svg-loader": "5.1.0",
|
|
79
79
|
"vitest": "3.0.0-beta.4",
|