@studio-west/component-sw 0.13.9 → 0.13.11
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/README.md +45 -20
- package/dist/{SwButton-mr7jdXoz.js → SwButton-BfG2InPf.js} +11 -9
- package/dist/{SwDatePicker-FT-rT4rV.js → SwDatePicker-BfuFsZeg.js} +2 -2
- package/dist/{SwDropdownItem-oQKFG36T.js → SwDropdownItem-BBDMECgR.js} +7 -3
- package/dist/{SwFile-BBIqUoFG.js → SwFile-D8wkf69j.js} +1 -1
- package/dist/SwGide-Da6Nv8Dd.js +129 -0
- package/dist/SwMessage-WHO6knac.js +59 -0
- package/dist/SwSection-Ck1GYU_A.js +36 -0
- package/dist/component-sw.css +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/package.json +1 -1
- package/types/index.d.ts +11 -0
- package/dist/SwGide-BYRlBr9D.js +0 -125
- package/dist/SwMessage-CUTW1YCi.js +0 -55
- package/dist/SwSection-DG9jX0Yc.js +0 -32
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./SwIcon-C4RHAbK1.js";
|
|
2
|
-
import { t } from "./SwButton-mr7jdXoz.js";
|
|
3
|
-
import { createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, mergeModels as s, nextTick as c, normalizeClass as l, onUnmounted as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, useSlots as _, watch as v, withCtx as y } from "vue";
|
|
4
|
-
//#region src/components/SwMessage.vue
|
|
5
|
-
var b = { key: 0 }, x = {
|
|
6
|
-
__name: "SwMessage",
|
|
7
|
-
props: /*@__PURE__*/ s({
|
|
8
|
-
name: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: ""
|
|
11
|
-
},
|
|
12
|
-
class: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
},
|
|
16
|
-
iconAfter: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: ""
|
|
19
|
-
}
|
|
20
|
-
}, {
|
|
21
|
-
modelValue: {},
|
|
22
|
-
modelModifiers: {}
|
|
23
|
-
}),
|
|
24
|
-
emits: ["update:modelValue"],
|
|
25
|
-
setup(s) {
|
|
26
|
-
let x = g(s, "modelValue"), S = s, C = f(null), w = _(), T = (e) => {
|
|
27
|
-
if (C.value && x.value) {
|
|
28
|
-
let t = C.value.getBoundingClientRect();
|
|
29
|
-
e.clientX >= t.left && e.clientX <= t.right && e.clientY >= t.top && e.clientY <= t.bottom || (x.value = !1);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return v(() => x.value, (e) => {
|
|
33
|
-
e ? (C.value.showModal(), c(), window.addEventListener("click", T, !0)) : (C.value.close(), window.removeEventListener("click", T));
|
|
34
|
-
}), u(() => {
|
|
35
|
-
window.removeEventListener("click", T);
|
|
36
|
-
}), (s, c) => (d(), r("dialog", {
|
|
37
|
-
class: l("sw-message " + S.class),
|
|
38
|
-
ref_key: "messageRef",
|
|
39
|
-
ref: C
|
|
40
|
-
}, [
|
|
41
|
-
S.name.length > 0 || h(w)?.header ? (d(), r("header", b, [p(s.$slots, "header", {}, () => [a(m(S.name) + " ", 1), o(t, {
|
|
42
|
-
link: "",
|
|
43
|
-
type: "primary",
|
|
44
|
-
onClick: c[0] ||= (e) => x.value = !1
|
|
45
|
-
}, {
|
|
46
|
-
default: y(() => [o(e, { "icon-class": S.iconAfter }, null, 8, ["icon-class"])]),
|
|
47
|
-
_: 1
|
|
48
|
-
})])])) : n("", !0),
|
|
49
|
-
p(s.$slots, "default"),
|
|
50
|
-
i("footer", null, [p(s.$slots, "footer")])
|
|
51
|
-
], 2));
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
//#endregion
|
|
55
|
-
export { x as default };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { createElementBlock as e, createElementVNode as t, createTextVNode as n, normalizeClass as r, openBlock as i, renderSlot as a, toDisplayString as o } from "vue";
|
|
2
|
-
//#region src/components/SwSection.vue
|
|
3
|
-
var s = ["icon-class"], c = {
|
|
4
|
-
__name: "SwSection",
|
|
5
|
-
props: {
|
|
6
|
-
name: {
|
|
7
|
-
type: String,
|
|
8
|
-
default: ""
|
|
9
|
-
},
|
|
10
|
-
class: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ""
|
|
13
|
-
},
|
|
14
|
-
iconAfter: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: ""
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
emits: ["header"],
|
|
20
|
-
setup(c, { emit: l }) {
|
|
21
|
-
let u = c, d = l, f = () => {
|
|
22
|
-
d("header");
|
|
23
|
-
};
|
|
24
|
-
return (c, l) => (i(), e("section", { class: r("sw-section " + u.class) }, [
|
|
25
|
-
t("header", { onClick: f }, [a(c.$slots, "header", {}, () => [n(o(u.name) + " ", 1), t("svg-icon", { "icon-class": u.iconAfter }, null, 8, s)])]),
|
|
26
|
-
a(c.$slots, "default"),
|
|
27
|
-
t("footer", null, [a(c.$slots, "footer")])
|
|
28
|
-
], 2));
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
//#endregion
|
|
32
|
-
export { c as default };
|