@pubinfo/core 2.1.11 → 2.1.13-beta.1

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.
Files changed (86) hide show
  1. package/dist/AppSetting-BBCop_0D.js +107 -0
  2. package/dist/{HButton-Dt6qGhhR.js → HButton-pEqyd918.js} +13 -11
  3. package/dist/HCheckList-cef4jGrw.js +35 -0
  4. package/dist/HDivider-BSj2DiEY.js +13 -0
  5. package/dist/HInput-DfpH43DV.js +36 -0
  6. package/dist/HSlideover-B6gEDfA5.js +3223 -0
  7. package/dist/HToggle-BTft_PNT.js +32 -0
  8. package/dist/HTooltip-B8aoK5uN.js +19 -0
  9. package/dist/PreferencesContent-CuNffqV_.js +703 -0
  10. package/dist/SettingBreadcrumb-CMn0gojs.js +47 -0
  11. package/dist/SettingCopyright-DKwdXYr3.js +47 -0
  12. package/dist/SettingEnableTransition-Bn37z29E.js +70 -0
  13. package/dist/SettingHome-HttuaN-N.js +33 -0
  14. package/dist/SettingMenu-CEvBV2Wj.js +113 -0
  15. package/dist/SettingMode-DpAUEZUv.js +62 -0
  16. package/dist/SettingNavSearch-Cem0LL54.js +33 -0
  17. package/dist/SettingOther-DcrlPnMd.js +50 -0
  18. package/dist/SettingPage-UhL5e6_m.js +24 -0
  19. package/dist/SettingTabbar-Ct3S8jS2.js +144 -0
  20. package/dist/SettingThemes-DaRKZ2Q3.js +123 -0
  21. package/dist/SettingToolbar-Cx_Mz_EP.js +52 -0
  22. package/dist/SettingTopbar-Ckg-OGSj.js +51 -0
  23. package/dist/SettingWidthMode-CZ2i-kzC.js +58 -0
  24. package/dist/_plugin-vue_export-helper-CsLplWgU.js +8 -0
  25. package/dist/auth-BVTDpkDr.js +4635 -0
  26. package/dist/{change-organization-hsqeSzDu.js → change-organization-EdR25ifs.js} +51 -48
  27. package/dist/{change-password-EtccCDRX.js → change-password-D-ZqBAmY.js} +85 -81
  28. package/dist/chunk-BdsCSvBP.js +20 -0
  29. package/dist/{components-DFNyaAb9.js → components-CKVAXENc.js} +681 -674
  30. package/dist/{core-DJIGzMMM.js → core-Dg8YES9i.js} +1003 -938
  31. package/dist/dist-HLiWAOC7.js +472 -0
  32. package/dist/{engine-oniguruma-CaNXwGSv.js → engine-oniguruma-DCGL4yXX.js} +58 -56
  33. package/dist/form-CGzMvzKZ.js +2968 -0
  34. package/dist/index.js +4989 -4877
  35. package/dist/json-BFBcpML_.js +3 -0
  36. package/dist/{modal-Bl5xHbxa.js → modal-ybprgEqf.js} +12543 -9070
  37. package/dist/not-found-CuHR6H_g.js +44 -0
  38. package/dist/not-permission-BcQAkzxI.js +41 -0
  39. package/dist/profile-Bsc6FIbI.js +19533 -0
  40. package/dist/{question-line-BG__Ycfv.js → question-line-BzrfPWnG.js} +9 -7
  41. package/dist/reload-BClJy4MY.js +15 -0
  42. package/dist/{right-BxBlFUwj.js → right-CCqcGubr.js} +15 -13
  43. package/dist/{tree-select-B8cTcGLa.js → tree-select-gPCwtMia.js} +2906 -2659
  44. package/dist/useContext-Dlqfap_7.js +11 -0
  45. package/dist/vitesse-dark-DrB9-RFK.js +4 -0
  46. package/dist/vitesse-light-CmcnEl2T.js +4 -0
  47. package/dist/wasm-C92aTsEJ.js +4 -0
  48. package/dist/watchDiff-DJP3s9bb.js +883 -0
  49. package/package.json +8 -8
  50. package/dist/AppSetting-7jlhUzze.js +0 -105
  51. package/dist/HCheckList-cPBgATmv.js +0 -33
  52. package/dist/HDivider-BwvBr5OE.js +0 -11
  53. package/dist/HInput-KJ5nFBpF.js +0 -34
  54. package/dist/HSlideover-DVQDc9q6.js +0 -3151
  55. package/dist/HToggle-Ce_2-yhZ.js +0 -30
  56. package/dist/HTooltip-DjAU-Evn.js +0 -16
  57. package/dist/PreferencesContent-BAIH81yS.js +0 -701
  58. package/dist/SettingBreadcrumb-O9-PhAFT.js +0 -45
  59. package/dist/SettingCopyright-DIKsWTuf.js +0 -45
  60. package/dist/SettingEnableTransition-61O7W00b.js +0 -68
  61. package/dist/SettingHome-Sv65TPH8.js +0 -31
  62. package/dist/SettingMenu-BvwJOUZV.js +0 -111
  63. package/dist/SettingMode-B8H_eQc8.js +0 -60
  64. package/dist/SettingNavSearch-BHsmYBA7.js +0 -31
  65. package/dist/SettingOther-CyyNnaDX.js +0 -48
  66. package/dist/SettingPage-B82lW41P.js +0 -22
  67. package/dist/SettingTabbar-Bky2xvH-.js +0 -142
  68. package/dist/SettingThemes-CkdzS1xt.js +0 -121
  69. package/dist/SettingToolbar-CD4qns1J.js +0 -50
  70. package/dist/SettingTopbar-1shjoe3s.js +0 -49
  71. package/dist/SettingWidthMode-DlG6lXjA.js +0 -56
  72. package/dist/_plugin-vue_export-helper-sUTDUeGO.js +0 -6
  73. package/dist/auth-BLGKOyc5.js +0 -4432
  74. package/dist/chunk-CD4vhpVs.js +0 -18
  75. package/dist/dist-7OjQvlya.js +0 -468
  76. package/dist/form-C3VHofnN.js +0 -2768
  77. package/dist/json-Bu_Zprin.js +0 -2
  78. package/dist/not-found-BCjngLzt.js +0 -42
  79. package/dist/not-permission-C26vTMvf.js +0 -39
  80. package/dist/profile-BVXIFuBG.js +0 -19269
  81. package/dist/reload-DHx5Vwus.js +0 -12
  82. package/dist/useContext-DLtu9F7E.js +0 -9
  83. package/dist/vitesse-dark-CTe40QT_.js +0 -2
  84. package/dist/vitesse-light-BWXC_WeB.js +0 -2
  85. package/dist/wasm-2zDVqo-C.js +0 -2
  86. package/dist/watchDiff-CPZFtaOC.js +0 -655
@@ -0,0 +1,47 @@
1
+ import "./modal-ybprgEqf.js";
2
+ import "./tree-select-gPCwtMia.js";
3
+ import "./components-CKVAXENc.js";
4
+ import { n as e } from "./useContext-Dlqfap_7.js";
5
+ import { t } from "./HDivider-BSj2DiEY.js";
6
+ import { t as n } from "./HCheckList-cef4jGrw.js";
7
+ import { t as r } from "./HToggle-BTft_PNT.js";
8
+ import { createBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, openBlock as c, toRefs as l, unref as u, withCtx as d } from "vue";
9
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingBreadcrumb.vue?vue&type=script&setup=true&lang.ts
10
+ var f = { class: "setting-item" }, p = { class: "setting-item" }, m = { class: "setting-item" }, h = /* @__PURE__ */ s({
11
+ name: "SettingBreadcrumb",
12
+ __name: "SettingBreadcrumb",
13
+ setup(s) {
14
+ let { settingsStore: h } = e(), { breadcrumb: g, menu: _ } = l(h.settings);
15
+ return (e, s) => {
16
+ let l = r, h = n, v = t;
17
+ return c(), i(v, { title: "面包屑导航" }, {
18
+ default: d(() => [
19
+ a("div", f, [s[3] ||= a("div", { class: "label" }, " 是否启用 ", -1), o(l, {
20
+ modelValue: u(g).enable,
21
+ "onUpdate:modelValue": s[0] ||= (e) => u(g).enable = e
22
+ }, null, 8, ["modelValue"])]),
23
+ a("div", p, [s[4] ||= a("div", { class: "label" }, " 风格 ", -1), o(h, {
24
+ modelValue: u(g).style,
25
+ "onUpdate:modelValue": s[1] ||= (e) => u(g).style = e,
26
+ options: [{
27
+ label: "默认",
28
+ value: ""
29
+ }, {
30
+ label: "现代",
31
+ value: "modern"
32
+ }],
33
+ disabled: !u(g).enable
34
+ }, null, 8, ["modelValue", "disabled"])]),
35
+ a("div", m, [s[5] ||= a("div", { class: "label" }, " 是否显示主导航 ", -1), o(l, {
36
+ modelValue: u(g).enableMainMenu,
37
+ "onUpdate:modelValue": s[2] ||= (e) => u(g).enableMainMenu = e,
38
+ disabled: !u(g).enable || ["single"].includes(u(_).menuMode)
39
+ }, null, 8, ["modelValue", "disabled"])])
40
+ ]),
41
+ _: 1
42
+ });
43
+ };
44
+ }
45
+ });
46
+ //#endregion
47
+ export { h as default };
@@ -0,0 +1,47 @@
1
+ import { n as e } from "./useContext-Dlqfap_7.js";
2
+ import { t } from "./HDivider-BSj2DiEY.js";
3
+ import { t as n } from "./HToggle-BTft_PNT.js";
4
+ import { t as r } from "./HInput-DfpH43DV.js";
5
+ import { createBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, openBlock as c, toRef as l, unref as u, withCtx as d } from "vue";
6
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingCopyright.vue?vue&type=script&setup=true&lang.ts
7
+ var f = { class: "setting-item" }, p = { class: "setting-item" }, m = { class: "setting-item" }, h = { class: "setting-item" }, g = { class: "setting-item" }, _ = /* @__PURE__ */ s({
8
+ name: "SettingCopyright",
9
+ __name: "SettingCopyright",
10
+ setup(s) {
11
+ let { settingsStore: _ } = e(), v = l(_.settings, "copyright");
12
+ return (e, s) => {
13
+ let l = n, _ = r, y = t;
14
+ return c(), i(y, { title: "底部版权" }, {
15
+ default: d(() => [
16
+ a("div", f, [s[5] ||= a("div", { class: "label" }, " 是否启用 ", -1), o(l, {
17
+ modelValue: u(v).enable,
18
+ "onUpdate:modelValue": s[0] ||= (e) => u(v).enable = e
19
+ }, null, 8, ["modelValue"])]),
20
+ a("div", p, [s[6] ||= a("div", { class: "label" }, " 日期 ", -1), o(_, {
21
+ modelValue: u(v).dates,
22
+ "onUpdate:modelValue": s[1] ||= (e) => u(v).dates = e,
23
+ disabled: !u(v).enable
24
+ }, null, 8, ["modelValue", "disabled"])]),
25
+ a("div", m, [s[7] ||= a("div", { class: "label" }, " 公司 ", -1), o(_, {
26
+ modelValue: u(v).company,
27
+ "onUpdate:modelValue": s[2] ||= (e) => u(v).company = e,
28
+ disabled: !u(v).enable
29
+ }, null, 8, ["modelValue", "disabled"])]),
30
+ a("div", h, [s[8] ||= a("div", { class: "label" }, " 网址 ", -1), o(_, {
31
+ modelValue: u(v).website,
32
+ "onUpdate:modelValue": s[3] ||= (e) => u(v).website = e,
33
+ disabled: !u(v).enable
34
+ }, null, 8, ["modelValue", "disabled"])]),
35
+ a("div", g, [s[9] ||= a("div", { class: "label" }, " 备案 ", -1), o(_, {
36
+ modelValue: u(v).beian,
37
+ "onUpdate:modelValue": s[4] ||= (e) => u(v).beian = e,
38
+ disabled: !u(v).enable
39
+ }, null, 8, ["modelValue", "disabled"])])
40
+ ]),
41
+ _: 1
42
+ });
43
+ };
44
+ }
45
+ });
46
+ //#endregion
47
+ export { _ as default };
@@ -0,0 +1,70 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-CsLplWgU.js";
2
+ import { n as t } from "./useContext-Dlqfap_7.js";
3
+ import { t as n } from "./HTooltip-B8aoK5uN.js";
4
+ import { t as r } from "./HDivider-BSj2DiEY.js";
5
+ import { t as i } from "./HToggle-BTft_PNT.js";
6
+ import { Fragment as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, isRef as f, normalizeClass as p, openBlock as m, reactive as h, renderList as g, toRefs as _, unref as v, withCtx as y } from "vue";
7
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingEnableTransition.vue?vue&type=script&setup=true&lang.ts
8
+ var b = { class: "flex items-center justify-center pb-4" }, x = {
9
+ key: 0,
10
+ class: "transition-mode"
11
+ }, S = ["onClick"], C = /* @__PURE__ */ e(/* @__PURE__ */ d({
12
+ name: "SettingEnableTransition",
13
+ __name: "SettingEnableTransition",
14
+ setup(e) {
15
+ let { settingsStore: d } = t(), { enableTransition: C, transitionMode: w } = _(d.settings.mainPage);
16
+ function T(e) {
17
+ e && (w.value = e);
18
+ }
19
+ let E = h([
20
+ {
21
+ describe: "淡入淡出",
22
+ active: "fade",
23
+ class: "mode-fade"
24
+ },
25
+ {
26
+ describe: "向左滑动",
27
+ active: "slide-left",
28
+ class: "mode-slide-left"
29
+ },
30
+ {
31
+ describe: "向右滑动",
32
+ active: "slide-right",
33
+ class: "mode-slide-right"
34
+ },
35
+ {
36
+ describe: "向上滑动",
37
+ active: "slide-top",
38
+ class: "mode-slide-top"
39
+ },
40
+ {
41
+ describe: "向下滑动",
42
+ active: "slide-bottom",
43
+ class: "mode-slide-bottom"
44
+ }
45
+ ]);
46
+ return (e, t) => {
47
+ let d = i, h = n, _ = r;
48
+ return m(), o(_, { title: "页面切换动画" }, {
49
+ default: y(() => [l("div", b, [u(d, {
50
+ modelValue: v(C),
51
+ "onUpdate:modelValue": t[0] ||= (e) => f(C) ? C.value = e : null
52
+ }, null, 8, ["modelValue"])]), v(C) ? (m(), c("div", x, [(m(!0), c(a, null, g(v(E), (e, t) => (m(), o(h, {
53
+ key: t,
54
+ text: e.describe,
55
+ placement: "bottom",
56
+ delay: 500
57
+ }, {
58
+ default: y(() => [l("div", {
59
+ class: p(["mode", [v(w) === e.active ? "active" : "", e.class]]),
60
+ onClick: (t) => T(e.active)
61
+ }, null, 10, S)]),
62
+ _: 2
63
+ }, 1032, ["text"]))), 128))])) : s("", !0)]),
64
+ _: 1
65
+ });
66
+ };
67
+ }
68
+ }), [["__scopeId", "data-v-5c698156"]]);
69
+ //#endregion
70
+ export { C as default };
@@ -0,0 +1,33 @@
1
+ import { n as e } from "./useContext-Dlqfap_7.js";
2
+ import { t } from "./HTooltip-B8aoK5uN.js";
3
+ import { t as n } from "./HDivider-BSj2DiEY.js";
4
+ import { t as r } from "./HToggle-BTft_PNT.js";
5
+ import { t as i } from "./HInput-DfpH43DV.js";
6
+ import { t as a } from "./question-line-BzrfPWnG.js";
7
+ import { createBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, toRefs as f, unref as p, withCtx as m } from "vue";
8
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingHome.vue?vue&type=script&setup=true&lang.ts
9
+ var h = { class: "setting-item" }, g = { class: "label" }, _ = { class: "setting-item" }, v = /* @__PURE__ */ u({
10
+ name: "SettingHome",
11
+ __name: "SettingHome",
12
+ setup(u) {
13
+ let { settingsStore: v } = e(), { home: y, toolbar: b } = f(v.settings);
14
+ return (e, u) => {
15
+ let f = t, v = r, b = i, x = n;
16
+ return d(), o(x, { title: "主页" }, {
17
+ default: m(() => [s("div", h, [s("div", g, [u[2] ||= c(" 是否启用 ", -1), l(f, { text: "该功能开启时,登录成功默认进入主页,反之则默认进入导航栏里第一个导航页面" }, {
18
+ default: m(() => [l(p(a))]),
19
+ _: 1
20
+ })]), l(v, {
21
+ modelValue: p(y).enable,
22
+ "onUpdate:modelValue": u[0] ||= (e) => p(y).enable = e
23
+ }, null, 8, ["modelValue"])]), s("div", _, [u[3] ||= s("div", { class: "label" }, " 主页名称 ", -1), l(b, {
24
+ modelValue: p(y).title,
25
+ "onUpdate:modelValue": u[1] ||= (e) => p(y).title = e
26
+ }, null, 8, ["modelValue"])])]),
27
+ _: 1
28
+ });
29
+ };
30
+ }
31
+ });
32
+ //#endregion
33
+ export { v as default };
@@ -0,0 +1,113 @@
1
+ import "./modal-ybprgEqf.js";
2
+ import "./tree-select-gPCwtMia.js";
3
+ import "./components-CKVAXENc.js";
4
+ import { n as e } from "./useContext-Dlqfap_7.js";
5
+ import { t } from "./HTooltip-B8aoK5uN.js";
6
+ import { t as n } from "./HDivider-BSj2DiEY.js";
7
+ import { t as r } from "./HCheckList-cef4jGrw.js";
8
+ import { t as i } from "./HToggle-BTft_PNT.js";
9
+ import { t as a } from "./question-line-BzrfPWnG.js";
10
+ import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, toRef as m, unref as h, withCtx as g } from "vue";
11
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingMenu.vue?vue&type=script&setup=true&lang.ts
12
+ var _ = { class: "setting-item" }, v = { class: "label" }, y = { class: "setting-item" }, b = { class: "label" }, x = { class: "setting-item" }, S = { class: "label" }, C = { class: "setting-item" }, w = {
13
+ key: 0,
14
+ class: "setting-item"
15
+ }, T = { class: "setting-item" }, E = { class: "setting-item" }, D = { class: "setting-item" }, O = /* @__PURE__ */ f({
16
+ name: "SettingMenu",
17
+ __name: "SettingMenu",
18
+ setup(f) {
19
+ let { settingsStore: O } = e(), k = m(O.settings, "menu");
20
+ return (e, f) => {
21
+ let m = t, A = i, j = r, M = n;
22
+ return p(), o(M, { title: "导航栏" }, {
23
+ default: g(() => [
24
+ l("div", _, [l("div", v, [f[8] ||= u(" 主导航切换跳转 ", -1), d(m, { text: "开启该功能后,切换主导航时,页面自动跳转至该主导航下,次导航里第一个导航" }, {
25
+ default: g(() => [d(h(a))]),
26
+ _: 1
27
+ })]), d(A, {
28
+ modelValue: h(k).switchMainMenuAndPageJump,
29
+ "onUpdate:modelValue": f[0] ||= (e) => h(k).switchMainMenuAndPageJump = e,
30
+ disabled: [
31
+ "single",
32
+ "only-side",
33
+ "only-head"
34
+ ].includes(h(k).menuMode)
35
+ }, null, 8, ["modelValue", "disabled"])]),
36
+ l("div", y, [l("div", b, [f[9] ||= u(" 次导航自动隐藏 ", -1), d(m, { text: "开启该功能后,切换主导航时,如果次导航里只有一个导航时,则自动隐藏" }, {
37
+ default: g(() => [d(h(a))]),
38
+ _: 1
39
+ })]), d(A, {
40
+ modelValue: h(k).subMenuOnlyOneHide,
41
+ "onUpdate:modelValue": f[1] ||= (e) => h(k).subMenuOnlyOneHide = e,
42
+ disabled: [
43
+ "single",
44
+ "only-side",
45
+ "only-head"
46
+ ].includes(h(k).menuMode)
47
+ }, null, 8, ["modelValue", "disabled"])]),
48
+ l("div", x, [l("div", S, [f[10] ||= u(" 次导航保持展开一个 ", -1), d(m, { text: "开启该功能后,次导航只保持单个菜单的展开" }, {
49
+ default: g(() => [d(h(a))]),
50
+ _: 1
51
+ })]), d(A, {
52
+ modelValue: h(k).subMenuUniqueOpened,
53
+ "onUpdate:modelValue": f[2] ||= (e) => h(k).subMenuUniqueOpened = e,
54
+ disabled: ["only-side", "only-head"].includes(h(k).menuMode)
55
+ }, null, 8, ["modelValue", "disabled"])]),
56
+ l("div", C, [f[11] ||= l("div", { class: "label" }, " 次导航是否折叠 ", -1), d(A, {
57
+ modelValue: h(k).subMenuCollapse,
58
+ "onUpdate:modelValue": f[3] ||= (e) => h(k).subMenuCollapse = e,
59
+ disabled: ["only-side", "only-head"].includes(h(k).menuMode)
60
+ }, null, 8, ["modelValue", "disabled"])]),
61
+ h(O).mode === "pc" ? (p(), c("div", w, [f[12] ||= l("div", { class: "label" }, " 显示次导航折叠按钮 ", -1), d(A, {
62
+ modelValue: h(k).enableSubMenuCollapseButton,
63
+ "onUpdate:modelValue": f[4] ||= (e) => h(k).enableSubMenuCollapseButton = e,
64
+ disabled: ["only-side", "only-head"].includes(h(k).menuMode)
65
+ }, null, 8, ["modelValue", "disabled"])])) : s("", !0),
66
+ l("div", T, [f[13] ||= l("div", { class: "label" }, " 是否圆角 ", -1), d(A, {
67
+ modelValue: h(k).isRounded,
68
+ "onUpdate:modelValue": f[5] ||= (e) => h(k).isRounded = e
69
+ }, null, 8, ["modelValue"])]),
70
+ l("div", E, [f[14] ||= l("div", { class: "label" }, " 激活风格 ", -1), d(j, {
71
+ modelValue: h(k).menuActiveStyle,
72
+ "onUpdate:modelValue": f[6] ||= (e) => h(k).menuActiveStyle = e,
73
+ options: [
74
+ {
75
+ icon: "i-jam-stop-sign",
76
+ value: ""
77
+ },
78
+ {
79
+ icon: ["head", "only-head"].includes(h(k).menuMode) ? "i-ep-caret-top" : "i-ep-caret-left",
80
+ value: "arrow"
81
+ },
82
+ {
83
+ icon: ["side", "only-side"].includes(h(k).menuMode) ? "i-tabler-minus-vertical" : "i-tabler-minus",
84
+ value: "line"
85
+ },
86
+ {
87
+ icon: "i-icon-park-outline-dot",
88
+ value: "dot"
89
+ }
90
+ ],
91
+ disabled: h(k).menuMode === "single"
92
+ }, null, 8, [
93
+ "modelValue",
94
+ "options",
95
+ "disabled"
96
+ ])]),
97
+ l("div", D, [f[15] ||= l("div", { class: "label" }, " 是否启用快捷键 ", -1), d(A, {
98
+ modelValue: h(k).enableHotkeys,
99
+ "onUpdate:modelValue": f[7] ||= (e) => h(k).enableHotkeys = e,
100
+ disabled: [
101
+ "single",
102
+ "only-side",
103
+ "only-head"
104
+ ].includes(h(k).menuMode)
105
+ }, null, 8, ["modelValue", "disabled"])])
106
+ ]),
107
+ _: 1
108
+ });
109
+ };
110
+ }
111
+ });
112
+ //#endregion
113
+ export { O as default };
@@ -0,0 +1,62 @@
1
+ import { t as e } from "./_plugin-vue_export-helper-CsLplWgU.js";
2
+ import { n as t } from "./useContext-Dlqfap_7.js";
3
+ import { t as n } from "./HTooltip-B8aoK5uN.js";
4
+ import { t as r } from "./HDivider-BSj2DiEY.js";
5
+ import { Fragment as i, createBlock as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, reactive as d, renderList as f, toRef as p, unref as m, withCtx as h } from "vue";
6
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingMode.vue?vue&type=script&setup=true&lang.ts
7
+ var g = { class: "menu-mode" }, _ = ["onClick"], v = /* @__PURE__ */ e(/* @__PURE__ */ c({
8
+ name: "SettingMode",
9
+ __name: "SettingMode",
10
+ setup(e) {
11
+ let { settingsStore: c } = t(), v = p(c.settings.menu, "menuMode"), y = d([
12
+ {
13
+ describe: "侧边栏模式 (含主导航)",
14
+ placement: "bottom",
15
+ active: "side"
16
+ },
17
+ {
18
+ describe: "顶部模式",
19
+ placement: "bottom",
20
+ active: "head"
21
+ },
22
+ {
23
+ describe: "侧边栏模式 (不含主导航)",
24
+ placement: "bottom",
25
+ active: "single"
26
+ },
27
+ {
28
+ describe: "侧边栏精简模式",
29
+ placement: "bottom",
30
+ active: "only-side"
31
+ },
32
+ {
33
+ describe: "顶部精简模式",
34
+ placement: "bottom",
35
+ active: "only-head"
36
+ }
37
+ ]);
38
+ function b(e) {
39
+ e && (v.value = e);
40
+ }
41
+ return (e, t) => {
42
+ let c = n, d = r;
43
+ return u(), a(d, { title: "导航栏模式" }, {
44
+ default: h(() => [s("div", g, [(u(!0), o(i, null, f(m(y), (e) => (u(), a(c, {
45
+ key: e.active,
46
+ text: e.describe,
47
+ placement: e.placement,
48
+ delay: 500
49
+ }, {
50
+ default: h(() => [s("div", {
51
+ class: l(["mode", [m(v) === e.active ? "active" : "", `mode-${e.active}`]]),
52
+ onClick: (t) => b(e.active)
53
+ }, [...t[0] ||= [s("div", { class: "mode-container" }, null, -1)]], 10, _)]),
54
+ _: 2
55
+ }, 1032, ["text", "placement"]))), 128))])]),
56
+ _: 1
57
+ });
58
+ };
59
+ }
60
+ }), [["__scopeId", "data-v-65f6da92"]]);
61
+ //#endregion
62
+ export { v as default };
@@ -0,0 +1,33 @@
1
+ import { n as e } from "./useContext-Dlqfap_7.js";
2
+ import { t } from "./HTooltip-B8aoK5uN.js";
3
+ import { t as n } from "./HDivider-BSj2DiEY.js";
4
+ import { t as r } from "./HToggle-BTft_PNT.js";
5
+ import { t as i } from "./question-line-BzrfPWnG.js";
6
+ import { createBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, openBlock as u, toRef as d, unref as f, withCtx as p } from "vue";
7
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingNavSearch.vue?vue&type=script&setup=true&lang.ts
8
+ var m = { class: "setting-item" }, h = { class: "label" }, g = { class: "setting-item" }, _ = /* @__PURE__ */ l({
9
+ name: "SettingNavSearch",
10
+ __name: "SettingNavSearch",
11
+ setup(l) {
12
+ let { settingsStore: _ } = e(), v = d(_.settings, "navSearch");
13
+ return (e, l) => {
14
+ let d = t, _ = r, y = n;
15
+ return u(), a(y, { title: "导航搜索" }, {
16
+ default: p(() => [o("div", m, [o("div", h, [l[2] ||= s(" 是否启用 ", -1), c(d, { text: "对导航进行快捷搜索" }, {
17
+ default: p(() => [c(f(i))]),
18
+ _: 1
19
+ })]), c(_, {
20
+ modelValue: f(v).enable,
21
+ "onUpdate:modelValue": l[0] ||= (e) => f(v).enable = e
22
+ }, null, 8, ["modelValue"])]), o("div", g, [l[3] ||= o("div", { class: "label" }, " 是否启用快捷键 ", -1), c(_, {
23
+ modelValue: f(v).enableHotkeys,
24
+ "onUpdate:modelValue": l[1] ||= (e) => f(v).enableHotkeys = e,
25
+ disabled: !f(v).enable
26
+ }, null, 8, ["modelValue", "disabled"])])]),
27
+ _: 1
28
+ });
29
+ };
30
+ }
31
+ });
32
+ //#endregion
33
+ export { _ as default };
@@ -0,0 +1,50 @@
1
+ import { n as e } from "./useContext-Dlqfap_7.js";
2
+ import { t } from "./HTooltip-B8aoK5uN.js";
3
+ import { t as n } from "./HDivider-BSj2DiEY.js";
4
+ import { t as r } from "./HToggle-BTft_PNT.js";
5
+ import { t as i } from "./HInput-DfpH43DV.js";
6
+ import { t as a } from "./question-line-BzrfPWnG.js";
7
+ import { createBlock as o, createElementVNode as s, createTextVNode as c, createVNode as l, defineComponent as u, isRef as d, openBlock as f, toRefs as p, unref as m, withCtx as h } from "vue";
8
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingOther.vue?vue&type=script&setup=true&lang.ts
9
+ var g = { class: "setting-item" }, _ = { class: "setting-item" }, v = { class: "label" }, y = { class: "setting-item" }, b = { class: "label" }, x = { class: "setting-item" }, S = { class: "label" }, C = /* @__PURE__ */ u({
10
+ name: "SettingOther",
11
+ __name: "SettingOther",
12
+ setup(u) {
13
+ let { settingsStore: C } = e(), { enablePermission: w, enableProgress: T, enableDynamicTitle: E, storagePrefix: D } = p(C.settings.app);
14
+ return (e, u) => {
15
+ let p = r, C = t, O = i, k = n;
16
+ return f(), o(k, { title: "其它" }, {
17
+ default: h(() => [
18
+ s("div", g, [u[4] ||= s("div", { class: "label" }, " 是否启用权限 ", -1), l(p, {
19
+ modelValue: m(w),
20
+ "onUpdate:modelValue": u[0] ||= (e) => d(w) ? w.value = e : null
21
+ }, null, 8, ["modelValue"])]),
22
+ s("div", _, [s("div", v, [u[5] ||= c(" 载入进度条 ", -1), l(C, { text: "该功能开启时,跳转路由会看到页面顶部有进度条" }, {
23
+ default: h(() => [l(m(a))]),
24
+ _: 1
25
+ })]), l(p, {
26
+ modelValue: m(T),
27
+ "onUpdate:modelValue": u[1] ||= (e) => d(T) ? T.value = e : null
28
+ }, null, 8, ["modelValue"])]),
29
+ s("div", y, [s("div", b, [u[6] ||= c(" 动态标题 ", -1), l(C, { text: "该功能开启时,页面标题会显示当前路由标题,格式为“页面标题 - 网站名称”;关闭时则显示网站名称,网站名称在项目根目录下 .env.* 文件里配置" }, {
30
+ default: h(() => [l(m(a))]),
31
+ _: 1
32
+ })]), l(p, {
33
+ modelValue: m(E),
34
+ "onUpdate:modelValue": u[2] ||= (e) => d(E) ? E.value = e : null
35
+ }, null, 8, ["modelValue"])]),
36
+ s("div", x, [s("div", S, [u[7] ||= c(" Storage 前缀 ", -1), l(C, { text: "localStorage 和 sessionStorage 的字段前缀" }, {
37
+ default: h(() => [l(m(a))]),
38
+ _: 1
39
+ })]), l(O, {
40
+ modelValue: m(D),
41
+ "onUpdate:modelValue": u[3] ||= (e) => d(D) ? D.value = e : null
42
+ }, null, 8, ["modelValue"])])
43
+ ]),
44
+ _: 1
45
+ });
46
+ };
47
+ }
48
+ });
49
+ //#endregion
50
+ export { C as default };
@@ -0,0 +1,24 @@
1
+ import { n as e } from "./useContext-Dlqfap_7.js";
2
+ import { t } from "./HDivider-BSj2DiEY.js";
3
+ import { t as n } from "./HToggle-BTft_PNT.js";
4
+ import { createBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, openBlock as s, toRef as c, unref as l, withCtx as u } from "vue";
5
+ //#region src/built-in/layout-component/components/SettingBar/components/SettingPage.vue?vue&type=script&setup=true&lang.ts
6
+ var d = { class: "setting-item" }, f = /* @__PURE__ */ o({
7
+ name: "SettingPage",
8
+ __name: "SettingPage",
9
+ setup(o) {
10
+ let { settingsStore: f } = e(), p = c(f.settings, "mainPage");
11
+ return (e, o) => {
12
+ let c = n, f = t;
13
+ return s(), r(f, { title: "页面" }, {
14
+ default: u(() => [i("div", d, [o[1] ||= i("div", { class: "label" }, " 是否启用快捷键 ", -1), a(c, {
15
+ modelValue: l(p).enableHotkeys,
16
+ "onUpdate:modelValue": o[0] ||= (e) => l(p).enableHotkeys = e
17
+ }, null, 8, ["modelValue"])])]),
18
+ _: 1
19
+ });
20
+ };
21
+ }
22
+ });
23
+ //#endregion
24
+ export { f as default };
@@ -0,0 +1,144 @@
1
+ import "./modal-ybprgEqf.js";
2
+ import "./tree-select-gPCwtMia.js";
3
+ import "./components-CKVAXENc.js";
4
+ import { n as e } from "./useContext-Dlqfap_7.js";
5
+ import { t } from "./HTooltip-B8aoK5uN.js";
6
+ import { t as n } from "./HDivider-BSj2DiEY.js";
7
+ import { t as r } from "./HCheckList-cef4jGrw.js";
8
+ import { t as i } from "./HToggle-BTft_PNT.js";
9
+ import { t as a } from "./question-line-BzrfPWnG.js";
10
+ import { Fragment as o, computed as s, createBlock as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, markRaw as m, mergeProps as h, normalizeClass as g, openBlock as _, renderList as v, resolveComponent as y, toDisplayString as b, toRef as x, unref as S, withCtx as C } from "vue";
11
+ //#region ~icons/carbon/chevron-sort-down
12
+ var w = {
13
+ viewBox: "0 0 32 32",
14
+ width: "1.2em",
15
+ height: "1.2em"
16
+ };
17
+ function T(e, t) {
18
+ return _(), l("svg", w, [...t[0] ||= [u("path", {
19
+ fill: "currentColor",
20
+ d: "m16 28l-7-7l1.4-1.4l5.6 5.6l5.6-5.6L23 21z"
21
+ }, null, -1)]]);
22
+ }
23
+ var E = m({
24
+ name: "carbon-chevron-sort-down",
25
+ render: T
26
+ }), D = { class: "w-full inline-flex" }, O = ["disabled"], k = { class: "block truncate" }, A = { class: "pointer-events-none absolute end-0 inset-y-0 flex items-center pe-2.5" }, j = { class: "max-h-60 w-full scroll-py-1 overflow-y-auto p-1 lg:w-48 focus:outline-none" }, M = ["disabled", "onClick"], N = /* @__PURE__ */ p({
27
+ __name: "HSelect",
28
+ props: {
29
+ modelValue: {},
30
+ options: {},
31
+ disabled: {
32
+ type: Boolean,
33
+ default: !1
34
+ }
35
+ },
36
+ emits: ["update:modelValue"],
37
+ setup(e, { emit: t }) {
38
+ let n = e, r = t, i = s({
39
+ get() {
40
+ return n.options.find((e) => e.value === n.modelValue) ?? n.options[0];
41
+ },
42
+ set(e) {
43
+ r("update:modelValue", e.value);
44
+ }
45
+ });
46
+ return (t, n) => {
47
+ let r = y("VMenu");
48
+ return _(), c(r, h({
49
+ triggers: ["click"],
50
+ "popper-triggers": ["click"],
51
+ delay: 0,
52
+ disabled: e.disabled
53
+ }, t.$attrs), {
54
+ popper: C(() => [u("div", j, [(_(!0), l(o, null, v(e.options, (t) => (_(), l("button", {
55
+ key: t.value,
56
+ disabled: t.disabled,
57
+ class: g(["w-full cursor-pointer truncate border-size-0 rounded-md bg-inherit px-2 py-1.5 text-left text-sm disabled:cursor-not-allowed hover:not-disabled:bg-stone-1 dark:hover:not-disabled:bg-stone-9", { "font-bold": e.modelValue === t.value }]),
58
+ onClick: (e) => i.value = t
59
+ }, b(t.label), 11, M))), 128))])]),
60
+ default: C(() => [u("div", D, [u("button", {
61
+ class: "relative block w-full flex cursor-default items-center gap-x-2 border-0 rounded-md bg-white px-2.5 py-1.5 pe-9 text-left text-sm shadow-sm ring-1 ring-stone-2 ring-inset lg:w-48 disabled:cursor-not-allowed dark:bg-dark focus:outline-none focus:ring-2 dark:ring-stone-8 focus:ring-ui-primary",
62
+ disabled: e.disabled
63
+ }, [u("span", k, b(S(i).label), 1), u("span", A, [f(S(E), { class: "h-5 w-5 flex-shrink-0 text-stone-5" })])], 8, O)])]),
64
+ _: 1
65
+ }, 16, ["disabled"]);
66
+ };
67
+ }
68
+ }), P = { class: "setting-item" }, F = { class: "setting-item" }, I = { class: "setting-item" }, L = { class: "setting-item" }, R = { class: "setting-item" }, z = { class: "label" }, B = { class: "setting-item" }, V = /* @__PURE__ */ p({
69
+ name: "SettingTabbar",
70
+ __name: "SettingTabbar",
71
+ setup(o) {
72
+ let { settingsStore: s } = e(), l = x(s.settings, "tabbar");
73
+ return (e, o) => {
74
+ let s = i, p = r, m = N, h = t, g = n;
75
+ return _(), c(g, { title: "标签栏" }, {
76
+ default: C(() => [
77
+ u("div", P, [o[6] ||= u("div", { class: "label" }, " 是否启用 ", -1), f(s, {
78
+ modelValue: S(l).enable,
79
+ "onUpdate:modelValue": o[0] ||= (e) => S(l).enable = e
80
+ }, null, 8, ["modelValue"])]),
81
+ u("div", F, [o[7] ||= u("div", { class: "label" }, " 风格 ", -1), f(p, {
82
+ modelValue: S(l).style,
83
+ "onUpdate:modelValue": o[1] ||= (e) => S(l).style = e,
84
+ options: [
85
+ {
86
+ label: "时尚",
87
+ value: "fashion"
88
+ },
89
+ {
90
+ label: "卡片",
91
+ value: "card"
92
+ },
93
+ {
94
+ label: "方块",
95
+ value: "square"
96
+ }
97
+ ],
98
+ disabled: !S(l).enable
99
+ }, null, 8, ["modelValue", "disabled"])]),
100
+ u("div", I, [o[8] ||= u("div", { class: "label" }, " 是否显示图标 ", -1), f(s, {
101
+ modelValue: S(l).enableIcon,
102
+ "onUpdate:modelValue": o[2] ||= (e) => S(l).enableIcon = e,
103
+ disabled: !S(l).enable
104
+ }, null, 8, ["modelValue", "disabled"])]),
105
+ u("div", L, [o[9] ||= u("div", { class: "label" }, " 标签页合并规则 ", -1), f(m, {
106
+ modelValue: S(l).mergeTabsBy,
107
+ "onUpdate:modelValue": o[3] ||= (e) => S(l).mergeTabsBy = e,
108
+ options: [
109
+ {
110
+ label: "不合并",
111
+ value: ""
112
+ },
113
+ {
114
+ label: "根据 activeMenu 合并",
115
+ value: "activeMenu"
116
+ },
117
+ {
118
+ label: "根据路由名称合并",
119
+ value: "routeName"
120
+ }
121
+ ],
122
+ disabled: !S(l).enable
123
+ }, null, 8, ["modelValue", "disabled"])]),
124
+ u("div", R, [u("div", z, [o[10] ||= d(" 是否启用记忆功能 ", -1), f(h, { text: "开启该功能后,非固定和非常驻的标签页将在本次会话窗口中始终存在,刷新浏览器或重新登录时不会丢失" }, {
125
+ default: C(() => [f(S(a))]),
126
+ _: 1
127
+ })]), f(s, {
128
+ modelValue: S(l).enableMemory,
129
+ "onUpdate:modelValue": o[4] ||= (e) => S(l).enableMemory = e,
130
+ disabled: !S(l).enable
131
+ }, null, 8, ["modelValue", "disabled"])]),
132
+ u("div", B, [o[11] ||= u("div", { class: "label" }, " 是否启用快捷键 ", -1), f(s, {
133
+ modelValue: S(l).enableHotkeys,
134
+ "onUpdate:modelValue": o[5] ||= (e) => S(l).enableHotkeys = e,
135
+ disabled: !S(l).enable
136
+ }, null, 8, ["modelValue", "disabled"])])
137
+ ]),
138
+ _: 1
139
+ });
140
+ };
141
+ }
142
+ });
143
+ //#endregion
144
+ export { V as default };