mamba-layout 0.3.0 → 0.5.0
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/components/index.js +4 -49
- package/dist/index.js +34 -77
- package/dist/layout/BaseLayout.css +1 -1
- package/dist/layout/BaseLayout.vue.js +2 -2
- package/dist/layout/components/UserInfo.vue2.js +9 -9
- package/dist/layout/components/index.d.ts +0 -22
- package/dist/layout/components/index.js +2 -47
- package/dist/layout.css +1 -1
- package/dist/layout.es.js +381 -381
- package/dist/layout.global.js +1 -1
- package/dist/utils/repoUtils.js +71 -133
- package/package.json +1 -1
- package/dist/layout/components/AsideTabMenus.vue.d.ts +0 -2
- package/dist/layout/components/AsideTabMenus.vue.js +0 -41
- package/dist/layout/components/AsideTabMenus.vue2.js +0 -4
- package/dist/layout/components/AsideUser.vue.d.ts +0 -2
- package/dist/layout/components/AsideUser.vue.js +0 -58
- package/dist/layout/components/AsideUser.vue2.js +0 -4
- package/dist/layout/components/HeaderMenuToggle.vue.d.ts +0 -25
- package/dist/layout/components/HeaderMenuToggle.vue.js +0 -40
- package/dist/layout/components/HeaderMenuToggle.vue2.js +0 -4
- package/dist/layout/components/MenuDrawer.css +0 -1
- package/dist/layout/components/MenuDrawer.vue.d.ts +0 -12
- package/dist/layout/components/MenuDrawer.vue.js +0 -163
- package/dist/layout/components/MenuDrawer.vue3.js +0 -5
- package/dist/layout/components/TimezoneSelect.css +0 -1
- package/dist/layout/components/TimezoneSelect.vue.d.ts +0 -7
- package/dist/layout/components/TimezoneSelect.vue.js +0 -8
- package/dist/layout/components/TimezoneSelect.vue2.js +0 -78
- package/dist/layout/components/TimezoneSelect2.css +0 -1
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, ref as y, computed as c, resolveComponent as f, openBlock as t, createBlock as d, withCtx as o, createElementVNode as i, createElementBlock as r, Fragment as T, renderList as Z, normalizeClass as L, toDisplayString as u, createVNode as n, unref as b, createCommentVNode as h } from "vue";
|
|
2
|
-
import { Clock as B, ArrowDown as N } from "@element-plus/icons-vue";
|
|
3
|
-
import { useCurrentTimeZone as x, getTimeZoneOptions as V, getTimeZoneLabel as D, setCurrentTimeZone as E } from "../../utils/repoUtils.js";
|
|
4
|
-
import O from "./NavIconBtn.vue.js";
|
|
5
|
-
const S = {
|
|
6
|
-
key: 0,
|
|
7
|
-
class: "timezone-select__current"
|
|
8
|
-
}, A = { class: "timezone-select__panel" }, F = ["onClick"], I = { class: "timezone-select__name" }, R = { class: "timezone-select__offset" }, H = /* @__PURE__ */ w({
|
|
9
|
-
__name: "TimezoneSelect",
|
|
10
|
-
props: {
|
|
11
|
-
showLabel: { type: Boolean, default: !1 }
|
|
12
|
-
},
|
|
13
|
-
setup(l) {
|
|
14
|
-
const z = x(), s = y(!1), a = c(() => z.value), C = c(() => V()), m = c(() => D(a.value)), k = (_) => {
|
|
15
|
-
E(_), s.value = !1;
|
|
16
|
-
};
|
|
17
|
-
return (_, p) => {
|
|
18
|
-
const v = f("el-icon"), g = f("el-popover");
|
|
19
|
-
return t(), d(g, {
|
|
20
|
-
visible: s.value,
|
|
21
|
-
"onUpdate:visible": p[0] || (p[0] = (e) => s.value = e),
|
|
22
|
-
placement: "bottom",
|
|
23
|
-
width: 280,
|
|
24
|
-
trigger: "hover",
|
|
25
|
-
"popper-class": "top-timezone-popover"
|
|
26
|
-
}, {
|
|
27
|
-
reference: o(() => [
|
|
28
|
-
n(O, {
|
|
29
|
-
tag: "div",
|
|
30
|
-
class: "timezone-select",
|
|
31
|
-
"icon-only": !l.showLabel,
|
|
32
|
-
title: m.value,
|
|
33
|
-
"aria-label": m.value
|
|
34
|
-
}, {
|
|
35
|
-
default: o(() => [
|
|
36
|
-
n(v, null, {
|
|
37
|
-
default: o(() => [
|
|
38
|
-
n(b(B))
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}),
|
|
42
|
-
l.showLabel ? (t(), r("span", S, u(a.value), 1)) : h("", !0),
|
|
43
|
-
l.showLabel ? (t(), d(v, {
|
|
44
|
-
key: 1,
|
|
45
|
-
class: "timezone-select__caret"
|
|
46
|
-
}, {
|
|
47
|
-
default: o(() => [
|
|
48
|
-
n(b(N))
|
|
49
|
-
]),
|
|
50
|
-
_: 1
|
|
51
|
-
})) : h("", !0)
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["icon-only", "title", "aria-label"])
|
|
55
|
-
]),
|
|
56
|
-
default: o(() => [
|
|
57
|
-
i("div", A, [
|
|
58
|
-
(t(!0), r(T, null, Z(C.value, (e) => (t(), r("button", {
|
|
59
|
-
key: e.value,
|
|
60
|
-
type: "button",
|
|
61
|
-
class: L(["timezone-select__option", {
|
|
62
|
-
"timezone-select__option--active": e.value === a.value
|
|
63
|
-
}]),
|
|
64
|
-
onClick: (U) => k(e.value)
|
|
65
|
-
}, [
|
|
66
|
-
i("span", I, u(e.value), 1),
|
|
67
|
-
i("span", R, u(e.offset), 1)
|
|
68
|
-
], 10, F))), 128))
|
|
69
|
-
])
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}, 8, ["visible"]);
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
H as default
|
|
78
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.timezone-select[data-v-e62f5f2d]{flex-shrink:0}.timezone-select__current[data-v-e62f5f2d]{max-width:132px;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:600;line-height:1}.timezone-select__caret[data-v-e62f5f2d]{font-size:12px}.timezone-select__panel[data-v-e62f5f2d]{display:grid;gap:4px;max-height:min(360px,70vh);overflow-y:auto}.timezone-select__option[data-v-e62f5f2d]{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border:0;border-radius:var(--ui-radius-control);background:transparent;color:var(--ui-text-primary);text-align:left;cursor:pointer;transition:background var(--ui-transition-fast),color var(--ui-transition-fast)}.timezone-select__option[data-v-e62f5f2d]:hover{background:var(--ui-bg-muted)}.timezone-select__name[data-v-e62f5f2d]{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.timezone-select__offset[data-v-e62f5f2d]{color:var(--ui-text-muted);font-size:12px;white-space:nowrap}.timezone-select__option--active[data-v-e62f5f2d]{color:var(--el-color-primary);background:var(--el-color-primary-light-10)}.timezone-select__option--active .timezone-select__offset[data-v-e62f5f2d]{color:var(--el-color-primary)}
|