sep-yui 0.0.77 → 0.0.78
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.
@@ -8,10 +8,12 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
8
8
|
isOpened: boolean;
|
9
9
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
10
10
|
change: (val: boolean) => void;
|
11
|
+
"focusout-options": () => void;
|
11
12
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ISelectListProps>, {
|
12
13
|
isOpened: boolean;
|
13
14
|
}>>> & {
|
14
15
|
onChange?: ((val: boolean) => any) | undefined;
|
16
|
+
"onFocusout-options"?: (() => any) | undefined;
|
15
17
|
}, {
|
16
18
|
isOpened: boolean;
|
17
19
|
}, {}>;
|
package/dist/sep-yui.es.ts
CHANGED
@@ -2126,7 +2126,7 @@ const Im = ["disabled"], Em = /* @__PURE__ */ oe({
|
|
2126
2126
|
], 4)) : ne("", !0)
|
2127
2127
|
], 46, Im));
|
2128
2128
|
}
|
2129
|
-
}), yr = /* @__PURE__ */ be(Em, [["__scopeId", "data-v-
|
2129
|
+
}), yr = /* @__PURE__ */ be(Em, [["__scopeId", "data-v-bb9b4eb8"]]), Hm = { class: "switch-yui-kit-list" }, Rm = ["onClick"], Vm = /* @__PURE__ */ oe({
|
2130
2130
|
__name: "Switch",
|
2131
2131
|
props: {
|
2132
2132
|
items: {},
|
@@ -2358,7 +2358,7 @@ const Zm = { class: "select-list-yui-kit" }, zm = ["open"], qm = /* @__PURE__ */
|
|
2358
2358
|
optionsClasses: {},
|
2359
2359
|
disabled: { type: Boolean }
|
2360
2360
|
},
|
2361
|
-
emits: ["change"],
|
2361
|
+
emits: ["change", "focusout-options"],
|
2362
2362
|
setup(e, { emit: t }) {
|
2363
2363
|
const r = e, i = Fe({
|
2364
2364
|
isOpened: !1
|
@@ -2367,7 +2367,7 @@ const Zm = { class: "select-list-yui-kit" }, zm = ["open"], qm = /* @__PURE__ */
|
|
2367
2367
|
const c = () => {
|
2368
2368
|
r.disabled || r.disableOpen || (i.isOpened = !i.isOpened, u("change", i.isOpened));
|
2369
2369
|
}, f = () => {
|
2370
|
-
i.isOpened = !1, u("change", i.isOpened);
|
2370
|
+
i.isOpened = !1, u("focusout-options"), u("change", i.isOpened);
|
2371
2371
|
}, h = () => {
|
2372
2372
|
if (l.value && a.value && i.isOpened) {
|
2373
2373
|
const p = l.value.getBoundingClientRect();
|
@@ -2418,7 +2418,7 @@ const Zm = { class: "select-list-yui-kit" }, zm = ["open"], qm = /* @__PURE__ */
|
|
2418
2418
|
]
|
2419
2419
|
]);
|
2420
2420
|
}
|
2421
|
-
}), ui = /* @__PURE__ */ be(qm, [["__scopeId", "data-v-
|
2421
|
+
}), ui = /* @__PURE__ */ be(qm, [["__scopeId", "data-v-23b8cd9f"]]);
|
2422
2422
|
function Hi(e) {
|
2423
2423
|
return e !== null && typeof e == "object" && "key" in e;
|
2424
2424
|
}
|
@@ -2451,21 +2451,21 @@ const U1 = (e) => e !== null && typeof e == "object" && "hint" in e, Ri = (e) =>
|
|
2451
2451
|
"truncate-yui-kit": !0
|
2452
2452
|
})), u = (h) => {
|
2453
2453
|
i.choosedOption = h, Hi(i.choosedOption) ? a("change", i.choosedOption.key) : a("change", i.choosedOption);
|
2454
|
-
}, c = (h) =>
|
2454
|
+
}, c = (h) => {
|
2455
2455
|
let p = !1;
|
2456
2456
|
return Hi(h) ? Hi(i.choosedOption) ? h.value === i.choosedOption.value && (p = !0) : ((h.key === "null" || h.key === null) && i.choosedOption === "" && (p = !0), h.value === i.choosedOption && (p = !0)) : Hi(i.choosedOption) ? h === i.choosedOption.value && (p = !0) : h === i.choosedOption && (p = !0), {
|
2457
2457
|
active: p
|
2458
2458
|
};
|
2459
|
-
};
|
2459
|
+
}, f = (h) => U1(h) ? h.hint : Hi(h) ? h.value : h;
|
2460
2460
|
return (h, p) => ($(!0), P(Re, null, Ze(r.options, (m) => ($(), P(Re, { key: m }, [
|
2461
2461
|
R("li", {
|
2462
|
-
class: le([l.value,
|
2462
|
+
class: le([l.value, c(m), r.class]),
|
2463
2463
|
onClick: () => u(m)
|
2464
|
-
}, ye(
|
2464
|
+
}, ye(f(m)), 11, Gm),
|
2465
2465
|
Be(h.$slots, "default", {}, void 0, !0)
|
2466
2466
|
], 64))), 128));
|
2467
2467
|
}
|
2468
|
-
}), Ha = /* @__PURE__ */ be(Xm, [["__scopeId", "data-v-
|
2468
|
+
}), Ha = /* @__PURE__ */ be(Xm, [["__scopeId", "data-v-53c35194"]]), Km = { class: "truncate-yui-kit dropdown-yui-kit__text" }, Jm = /* @__PURE__ */ oe({
|
2469
2469
|
__name: "Dropdown",
|
2470
2470
|
props: {
|
2471
2471
|
options: {},
|
@@ -14041,16 +14041,18 @@ const RE = { class: "filter-yui-kit" }, VE = {
|
|
14041
14041
|
class: {},
|
14042
14042
|
disabled: { type: Boolean, default: !1 }
|
14043
14043
|
},
|
14044
|
-
emits: ["change", "error"],
|
14044
|
+
emits: ["change", "error", "focusout-option"],
|
14045
14045
|
setup(e, { emit: t }) {
|
14046
14046
|
const r = t, i = e, a = Fe({
|
14047
14047
|
isOpened: !1,
|
14048
14048
|
placeholder: i.placeholder,
|
14049
14049
|
values: i.options,
|
14050
14050
|
searchValue: ""
|
14051
|
-
}), l = (
|
14052
|
-
|
14053
|
-
|
14051
|
+
}), l = () => {
|
14052
|
+
r("focusout-option");
|
14053
|
+
}, u = (h) => {
|
14054
|
+
var p;
|
14055
|
+
(((p = a.values) == null ? void 0 : p.length) != 0 || !i.disableOpen) && (a.isOpened = h, !a.isOpened && a.searchValue != "" && r("error"));
|
14054
14056
|
};
|
14055
14057
|
It(() => a.values = i.options), It(() => a.searchValue = i.defaultOption || ""), $e(
|
14056
14058
|
() => a.searchValue,
|
@@ -14058,22 +14060,23 @@ const RE = { class: "filter-yui-kit" }, VE = {
|
|
14058
14060
|
a.searchValue == "" && (a.values = i.options);
|
14059
14061
|
}
|
14060
14062
|
);
|
14061
|
-
const
|
14062
|
-
var
|
14063
|
+
const c = () => {
|
14064
|
+
var h;
|
14063
14065
|
a.isOpened = !0, a.values = i.options.filter(
|
14064
|
-
(
|
14065
|
-
), r("change", a.searchValue), ((
|
14066
|
-
},
|
14067
|
-
a.searchValue =
|
14066
|
+
(p) => a.searchValue.toLowerCase().split(" ").every((m) => p.toLowerCase().includes(m))
|
14067
|
+
), r("change", a.searchValue), ((h = a.values) == null ? void 0 : h.length) == 0 && (a.isOpened = !1);
|
14068
|
+
}, f = (h) => {
|
14069
|
+
a.searchValue = h, a.isOpened = !1, r("change", h);
|
14068
14070
|
};
|
14069
|
-
return (
|
14070
|
-
var
|
14071
|
+
return (h, p) => {
|
14072
|
+
var m;
|
14071
14073
|
return $(), pe(ui, {
|
14072
|
-
onChange:
|
14074
|
+
onChange: u,
|
14073
14075
|
"is-opened": a.isOpened,
|
14074
|
-
"disable-open": ((
|
14076
|
+
"disable-open": ((m = a.values) == null ? void 0 : m.length) == 0,
|
14075
14077
|
class: le(i.class),
|
14076
14078
|
disabled: i.disabled,
|
14079
|
+
onFocusoutOptions: l,
|
14077
14080
|
"header-classes": "filter__header",
|
14078
14081
|
"options-classes": "filter__options"
|
14079
14082
|
}, {
|
@@ -14081,10 +14084,10 @@ const RE = { class: "filter-yui-kit" }, VE = {
|
|
14081
14084
|
jt(R("input", {
|
14082
14085
|
type: "search",
|
14083
14086
|
class: "combobox__input",
|
14084
|
-
"onUpdate:modelValue":
|
14087
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => a.searchValue = C),
|
14085
14088
|
placeholder: a.placeholder,
|
14086
|
-
onKeydown: _o(
|
14087
|
-
onInput:
|
14089
|
+
onKeydown: _o(c, ["enter"]),
|
14090
|
+
onInput: c
|
14088
14091
|
}, null, 40, KE), [
|
14089
14092
|
[ss, a.searchValue]
|
14090
14093
|
])
|
@@ -14093,14 +14096,14 @@ const RE = { class: "filter-yui-kit" }, VE = {
|
|
14093
14096
|
J(Ha, {
|
14094
14097
|
"default-option": a.searchValue,
|
14095
14098
|
options: a.values,
|
14096
|
-
onChange:
|
14099
|
+
onChange: f
|
14097
14100
|
}, null, 8, ["default-option", "options"])
|
14098
14101
|
]),
|
14099
14102
|
_: 1
|
14100
14103
|
}, 8, ["is-opened", "disable-open", "class", "disabled"]);
|
14101
14104
|
};
|
14102
14105
|
}
|
14103
|
-
}), Kh = /* @__PURE__ */ be(JE, [["__scopeId", "data-v-
|
14106
|
+
}), Kh = /* @__PURE__ */ be(JE, [["__scopeId", "data-v-d1578062"]]);
|
14104
14107
|
var Jh = /* @__PURE__ */ ((e) => (e.text = "text", e.email = "email", e.password = "password", e.tel = "tel", e.url = "url", e.week = "week", e))(Jh || {});
|
14105
14108
|
const QE = {
|
14106
14109
|
key: 0,
|
@@ -15123,7 +15126,7 @@ const NH = /* @__PURE__ */ oe({
|
|
15123
15126
|
height: r.height
|
15124
15127
|
})), c = t, f = () => {
|
15125
15128
|
var C;
|
15126
|
-
|
15129
|
+
r.open ? (C = i.value) == null || C.showModal() : h();
|
15127
15130
|
}, h = () => {
|
15128
15131
|
var C;
|
15129
15132
|
(C = i.value) == null || C.close(), c("close"), document.documentElement.focus();
|
@@ -15147,8 +15150,8 @@ const NH = /* @__PURE__ */ oe({
|
|
15147
15150
|
}), ai(() => {
|
15148
15151
|
is(
|
15149
15152
|
{
|
15150
|
-
overflow: "
|
15151
|
-
"padding-right": "
|
15153
|
+
overflow: "",
|
15154
|
+
"padding-right": ""
|
15152
15155
|
},
|
15153
15156
|
document.body
|
15154
15157
|
), document.removeEventListener("keydown", p);
|
@@ -15164,7 +15167,7 @@ const NH = /* @__PURE__ */ oe({
|
|
15164
15167
|
], 4)
|
15165
15168
|
], 16));
|
15166
15169
|
}
|
15167
|
-
}), jH = /* @__PURE__ */ be(NH, [["__scopeId", "data-v-
|
15170
|
+
}), jH = /* @__PURE__ */ be(NH, [["__scopeId", "data-v-31ed5bc3"]]), UH = /* @__PURE__ */ oe({
|
15168
15171
|
__name: "ModalAnimated",
|
15169
15172
|
props: {
|
15170
15173
|
open: { type: Boolean },
|