@pubinfo/core 2.0.14 → 2.1.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.
Files changed (64) hide show
  1. package/dist/{AppSetting-Bfabd02_.js → AppSetting-Dzj6YBgW.js} +17 -17
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-LHEWLVoX.js → HCheckList.vue_vue_type_script_setup_true_lang-OWv01eXk.js} +1 -1
  3. package/dist/{HToggle-B3C623BZ.js → HToggle-BnESuuPG.js} +1 -1
  4. package/dist/HeaderThinMenu-Co2S6vIB.js +4 -0
  5. package/dist/{PreferencesContent-B42MPjzA.js → PreferencesContent-DBKQJ8Ob.js} +6 -6
  6. package/dist/{SettingBreadcrumb-D3GS-3MN.js → SettingBreadcrumb-DmP1nJLZ.js} +3 -3
  7. package/dist/{SettingCopyright-KDpCggiE.js → SettingCopyright-C8_F7BB2.js} +2 -2
  8. package/dist/{SettingEnableTransition-BF27WYg0.js → SettingEnableTransition-BeJMq6ny.js} +2 -2
  9. package/dist/{SettingHome-DWyDzFcn.js → SettingHome-yGmbxzJm.js} +3 -3
  10. package/dist/{SettingMenu-Dz0fbIa3.js → SettingMenu-yWnqZqmz.js} +4 -4
  11. package/dist/{SettingMode-AD_S9ZkO.js → SettingMode-B8fgUhvi.js} +1 -1
  12. package/dist/{SettingNavSearch-oWIPjQFc.js → SettingNavSearch--yQEXqEL.js} +3 -3
  13. package/dist/{SettingOther-ZlPSoHz3.js → SettingOther-CSs1_D9L.js} +3 -3
  14. package/dist/{SettingPage-BnwAMror.js → SettingPage-Pm7KblGG.js} +2 -2
  15. package/dist/{SettingTabbar-Vvz-1zTa.js → SettingTabbar-DM5hdlQf.js} +6 -6
  16. package/dist/{SettingThemes-CLhV2OOt.js → SettingThemes-DqygGgDK.js} +5 -5
  17. package/dist/{SettingToolbar-nCkGwG2H.js → SettingToolbar-BP-yWiKo.js} +3 -3
  18. package/dist/{SettingTopbar-DMujCz4n.js → SettingTopbar-Dd_SXy2e.js} +4 -4
  19. package/dist/{SettingWidthMode-7qsluuMR.js → SettingWidthMode-DOtJg5uB.js} +2 -2
  20. package/dist/built-in/devtools/index.d.ts +13 -0
  21. package/dist/built-in/index.d.ts +1 -0
  22. package/dist/built-in/layout-component/Layout.vue.d.ts +7 -1
  23. package/dist/built-in/layout-component/components/Topbar/index.vue.d.ts +1 -1
  24. package/dist/built-in/layout-component/composables/useLayoutVisible.d.ts +8 -0
  25. package/dist/built-in/layout-component/interface.d.ts +22 -0
  26. package/dist/features/stores/modules/settings.d.ts +6 -6
  27. package/dist/features/stores/modules/user.d.ts +14 -2
  28. package/dist/{index-D210UZpV.js → index--xVOZLmn.js} +1 -1
  29. package/dist/{index-DSNuCtw6.js → index-BSTB6EhQ.js} +1 -1
  30. package/dist/{index-BN5BYOEh.js → index-C88VclMA.js} +15618 -15440
  31. package/dist/{index-2Zh2rSjN.js → index-CnbD4YWA.js} +3 -3
  32. package/dist/{index-BaRQkDKe.js → index-D8kKHmiD.js} +1 -1
  33. package/dist/index-GSKGoyv_.js +4 -0
  34. package/dist/{index-DQnnCCLU.js → index-igxVB1m3.js} +4 -5
  35. package/dist/{index-XjjX4TvH.js → index-npW0xuOi.js} +1 -1
  36. package/dist/index.js +1 -1
  37. package/dist/{pick-BZcCK3Xe.js → pick-l2RrF3SE.js} +1 -1
  38. package/dist/{question-line-CfkciTFq.js → question-line-DCMVyZ3e.js} +2 -2
  39. package/dist/{right-Bfe2p1o0.js → right-aIVrXLnr.js} +4 -4
  40. package/dist/style.css +1 -1
  41. package/package.json +8 -8
  42. package/src/built-in/devtools/index.ts +292 -0
  43. package/src/built-in/index.ts +1 -0
  44. package/src/built-in/layout-component/Layout.vue +93 -9
  45. package/src/built-in/layout-component/components/Header/HeaderFullMenu/index.vue +8 -4
  46. package/src/built-in/layout-component/components/Header/index.vue +4 -11
  47. package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +3 -1
  48. package/src/built-in/layout-component/components/Sidebar/SubSidebar.vue +4 -21
  49. package/src/built-in/layout-component/components/Topbar/index.vue +4 -105
  50. package/src/built-in/layout-component/composables/useLayoutVisible.ts +87 -0
  51. package/src/built-in/layout-component/interface.ts +25 -0
  52. package/src/core/create.ts +1 -3
  53. package/src/core/request.ts +0 -1
  54. package/src/features/assets/styles/globals.css +2 -1
  55. package/src/features/composables/log.ts +3 -5
  56. package/src/features/stores/modules/keepAlive.ts +10 -14
  57. package/src/features/stores/modules/menu.ts +20 -13
  58. package/src/features/stores/modules/route.ts +3 -3
  59. package/src/features/stores/modules/settings.ts +2 -7
  60. package/src/features/stores/modules/user.ts +57 -2
  61. package/src/index.ts +3 -0
  62. package/types/vue-router.d.ts +9 -2
  63. package/dist/HeaderThinMenu-B6cpu5jx.js +0 -4
  64. package/dist/index-iASxH_cj.js +0 -4
@@ -1,4 +1,4 @@
1
- import { cK as k, cQ as B, cR as H, _ as w, b as A } from "./index-BN5BYOEh.js";
1
+ import { cK as k, cQ as B, cR as H, _ as w, b as A } from "./index-C88VclMA.js";
2
2
  import { markRaw as E, createElementBlock as h, openBlock as a, createElementVNode as i, defineComponent as N, defineAsyncComponent as t, useModel as z, computed as u, watch as g, createBlock as S, createSlots as O, withCtx as p, Fragment as P, renderList as R, unref as c, resolveDynamicComponent as W, createVNode as f, createTextVNode as $ } from "vue";
3
3
  import D from "vue-m-message";
4
4
  import { useRoute as I } from "vue-router";
@@ -8,30 +8,30 @@ const F = {
8
8
  height: "1.2em"
9
9
  };
10
10
  function J(l, o) {
11
- return a(), h("svg", F, o[0] || (o[0] = [
11
+ return a(), h("svg", F, [...o[0] || (o[0] = [
12
12
  i("path", {
13
13
  fill: "currentColor",
14
14
  d: "M128 320v576h576V320zm-32-64h640a32 32 0 0 1 32 32v640a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V288a32 32 0 0 1 32-32M960 96v704a32 32 0 0 1-32 32h-96v-64h64V128H384v64h-64V96a32 32 0 0 1 32-32h576a32 32 0 0 1 32 32M256 672h320v64H256zm0-192h320v64H256z"
15
15
  }, null, -1)
16
- ]));
16
+ ])]);
17
17
  }
18
18
  const K = E({ name: "ep-document-copy", render: J }), L = { class: "settong-warp" }, Q = /* @__PURE__ */ N({
19
19
  name: "AppSetting",
20
20
  components: {
21
- SettingThemes: t(() => import("./SettingThemes-CLhV2OOt.js")),
22
- SettingsMode: t(() => import("./SettingMode-AD_S9ZkO.js")),
23
- SettingWidthMode: t(() => import("./SettingWidthMode-7qsluuMR.js")),
24
- SettingEnableTransition: t(() => import("./SettingEnableTransition-BF27WYg0.js")),
25
- SettingMenu: t(() => import("./SettingMenu-Dz0fbIa3.js")),
26
- SettingTopbar: t(() => import("./SettingTopbar-DMujCz4n.js")),
27
- SettingTabbar: t(() => import("./SettingTabbar-Vvz-1zTa.js")),
28
- SettingToolbar: t(() => import("./SettingToolbar-nCkGwG2H.js")),
29
- SettingBreadcrumb: t(() => import("./SettingBreadcrumb-D3GS-3MN.js")),
30
- SettingPage: t(() => import("./SettingPage-BnwAMror.js")),
31
- SettingNavSearch: t(() => import("./SettingNavSearch-oWIPjQFc.js")),
32
- SettingCopyright: t(() => import("./SettingCopyright-KDpCggiE.js")),
33
- SettingHome: t(() => import("./SettingHome-DWyDzFcn.js")),
34
- SettingOther: t(() => import("./SettingOther-ZlPSoHz3.js"))
21
+ SettingThemes: t(() => import("./SettingThemes-DqygGgDK.js")),
22
+ SettingsMode: t(() => import("./SettingMode-B8fgUhvi.js")),
23
+ SettingWidthMode: t(() => import("./SettingWidthMode-DOtJg5uB.js")),
24
+ SettingEnableTransition: t(() => import("./SettingEnableTransition-BeJMq6ny.js")),
25
+ SettingMenu: t(() => import("./SettingMenu-yWnqZqmz.js")),
26
+ SettingTopbar: t(() => import("./SettingTopbar-Dd_SXy2e.js")),
27
+ SettingTabbar: t(() => import("./SettingTabbar-DM5hdlQf.js")),
28
+ SettingToolbar: t(() => import("./SettingToolbar-BP-yWiKo.js")),
29
+ SettingBreadcrumb: t(() => import("./SettingBreadcrumb-DmP1nJLZ.js")),
30
+ SettingPage: t(() => import("./SettingPage-Pm7KblGG.js")),
31
+ SettingNavSearch: t(() => import("./SettingNavSearch--yQEXqEL.js")),
32
+ SettingCopyright: t(() => import("./SettingCopyright-C8_F7BB2.js")),
33
+ SettingHome: t(() => import("./SettingHome-yGmbxzJm.js")),
34
+ SettingOther: t(() => import("./SettingOther-CSs1_D9L.js"))
35
35
  },
36
36
  __name: "AppSetting",
37
37
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as c, watch as u, createElementBlock as n, openBlock as a, Fragment as s, renderList as m, normalizeClass as p, createBlock as b, unref as f, createTextVNode as h, toDisplayString as k } from "vue";
2
- import { cC as y } from "./index-BN5BYOEh.js";
2
+ import { cC as y } from "./index-C88VclMA.js";
3
3
  import "pinia";
4
4
  const _ = { class: "inline-flex select-none items-center justify-center of-hidden rounded-md bg-stone-3 dark:bg-stone-7" }, g = ["disabled", "onClick"], w = /* @__PURE__ */ c({
5
5
  __name: "HCheckList",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, computed as c, createElementBlock as m, openBlock as r, withDirectives as i, createElementVNode as n, isRef as _, vModelCheckbox as f, unref as b } from "vue";
2
- import { b as g } from "./index-BN5BYOEh.js";
2
+ import { b as g } from "./index-C88VclMA.js";
3
3
  const V = { class: "switch" }, k = /* @__PURE__ */ u({
4
4
  __name: "HToggle",
5
5
  props: {
@@ -0,0 +1,4 @@
1
+ import { cE as f } from "./index-C88VclMA.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,11 +1,11 @@
1
- import { _ as re } from "./HCheckList.vue_vue_type_script_setup_true_lang-LHEWLVoX.js";
2
- import { y as ue, A as me, e as E, E as ce, aG as be, P as k, g as pe, cF as ye, cG as ge, cH as ve, cI as fe, cv as he, aY as we, cJ as Me, cw as Pe, m as Oe, ap as Ce, i as $e, p as ke, X as xe, j as ne, bb as Se, cK as Ve, cL as Te, cs as _e, cg as Ie, cM as Be, N as Ue, b as Ae } from "./index-BN5BYOEh.js";
3
- import { _ as He } from "./HToggle-B3C623BZ.js";
1
+ import { _ as re } from "./HCheckList.vue_vue_type_script_setup_true_lang-OWv01eXk.js";
2
+ import { y as ue, A as me, e as E, E as ce, aG as be, P as k, g as pe, cF as ye, cG as ge, cH as ve, cI as fe, cv as he, aY as we, cJ as Me, cw as Pe, m as Oe, ap as Ce, i as $e, p as ke, X as xe, j as ne, bb as Se, cK as Ve, cL as Te, cs as _e, cg as Ie, cM as Be, N as Ue, b as Ae } from "./index-C88VclMA.js";
3
+ import { _ as He } from "./HToggle-BnESuuPG.js";
4
4
  import { defineComponent as te, shallowRef as U, computed as K, createVNode as a, Transition as Ee, withDirectives as ze, vShow as Le, ref as Re, createElementBlock as d, openBlock as r, createCommentVNode as u, createElementVNode as s, unref as e, isRef as je, Fragment as De, renderList as Fe, normalizeClass as v, normalizeStyle as Ne, withCtx as b, createTextVNode as V } from "vue";
5
5
  import { getThemes as Ge } from "@pubinfo/config/themes";
6
- import { E as X, a as J } from "./right-Bfe2p1o0.js";
7
- import { R as A } from "./question-line-CfkciTFq.js";
8
- import { p as $ } from "./pick-BZcCK3Xe.js";
6
+ import { E as X, a as J } from "./right-aIVrXLnr.js";
7
+ import { R as A } from "./question-line-DCMVyZ3e.js";
8
+ import { p as $ } from "./pick-l2RrF3SE.js";
9
9
  const H = (i, o, n, p, f) => ({
10
10
  backgroundColor: i,
11
11
  border: `${p.lineWidth}px ${p.lineType} ${o}`,
@@ -1,8 +1,8 @@
1
1
  import { _ as r } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as p } from "./HCheckList.vue_vue_type_script_setup_true_lang-LHEWLVoX.js";
3
- import { _ } from "./HToggle-B3C623BZ.js";
2
+ import { _ as p } from "./HCheckList.vue_vue_type_script_setup_true_lang-OWv01eXk.js";
3
+ import { _ } from "./HToggle-BnESuuPG.js";
4
4
  import { defineComponent as b, toRefs as f, createBlock as c, openBlock as g, withCtx as V, createElementVNode as n, createVNode as s, unref as t } from "vue";
5
- import { cK as v } from "./index-BN5BYOEh.js";
5
+ import { cK as v } from "./index-C88VclMA.js";
6
6
  const M = { class: "setting-item" }, x = { class: "setting-item" }, B = { class: "setting-item" }, $ = /* @__PURE__ */ b({
7
7
  name: "SettingBreadcrumb",
8
8
  __name: "SettingBreadcrumb",
@@ -1,8 +1,8 @@
1
1
  import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
2
  import { _ as p } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
3
- import { _ as r } from "./HToggle-B3C623BZ.js";
3
+ import { _ as r } from "./HToggle-BnESuuPG.js";
4
4
  import { defineComponent as b, toRef as V, createBlock as g, openBlock as _, withCtx as f, createElementVNode as o, createVNode as n, unref as t } from "vue";
5
- import { cK as v } from "./index-BN5BYOEh.js";
5
+ import { cK as v } from "./index-C88VclMA.js";
6
6
  const y = { class: "setting-item" }, C = { class: "setting-item" }, U = { class: "setting-item" }, x = { class: "setting-item" }, w = { class: "setting-item" }, D = /* @__PURE__ */ b({
7
7
  name: "SettingCopyright",
8
8
  __name: "SettingCopyright",
@@ -1,6 +1,6 @@
1
1
  import { _ as g } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { cK as k, cM as x, b as C } from "./index-BN5BYOEh.js";
3
- import { _ as T } from "./HToggle-B3C623BZ.js";
2
+ import { cK as k, cM as x, b as C } from "./index-C88VclMA.js";
3
+ import { _ as T } from "./HToggle-BnESuuPG.js";
4
4
  import { defineComponent as V, toRefs as h, reactive as E, createBlock as c, openBlock as o, withCtx as l, createElementVNode as d, createElementBlock as r, createCommentVNode as y, createVNode as H, unref as s, isRef as S, Fragment as B, renderList as M, normalizeClass as N } from "vue";
5
5
  const $ = { class: "flex items-center justify-center pb-4" }, L = {
6
6
  key: 0,
@@ -1,9 +1,9 @@
1
1
  import { _ as p } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
2
  import { _ as u } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
3
- import { _ as c } from "./HToggle-B3C623BZ.js";
4
- import { cK as f, cM as g } from "./index-BN5BYOEh.js";
3
+ import { _ as c } from "./HToggle-BnESuuPG.js";
4
+ import { cK as f, cM as g } from "./index-C88VclMA.js";
5
5
  import { defineComponent as V, toRefs as x, createBlock as H, openBlock as b, withCtx as i, createElementVNode as n, createVNode as s, createTextVNode as v, unref as e } from "vue";
6
- import { R as C } from "./question-line-CfkciTFq.js";
6
+ import { R as C } from "./question-line-DCMVyZ3e.js";
7
7
  const N = { class: "setting-item" }, R = { class: "label" }, S = { class: "setting-item" }, K = /* @__PURE__ */ V({
8
8
  name: "SettingHome",
9
9
  __name: "SettingHome",
@@ -1,9 +1,9 @@
1
1
  import { _ as v } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as M } from "./HCheckList.vue_vue_type_script_setup_true_lang-LHEWLVoX.js";
3
- import { _ } from "./HToggle-B3C623BZ.js";
4
- import { cK as g, cM as y } from "./index-BN5BYOEh.js";
2
+ import { _ as M } from "./HCheckList.vue_vue_type_script_setup_true_lang-OWv01eXk.js";
3
+ import { _ } from "./HToggle-BnESuuPG.js";
4
+ import { cK as g, cM as y } from "./index-C88VclMA.js";
5
5
  import { defineComponent as f, toRef as c, createBlock as U, openBlock as b, withCtx as i, createElementVNode as s, createElementBlock as C, createCommentVNode as k, createVNode as d, createTextVNode as a, unref as l } from "vue";
6
- import { R as m } from "./question-line-CfkciTFq.js";
6
+ import { R as m } from "./question-line-DCMVyZ3e.js";
7
7
  const x = { class: "setting-item" }, H = { class: "label" }, S = { class: "setting-item" }, O = { class: "label" }, B = { class: "setting-item" }, R = { class: "label" }, w = { class: "setting-item" }, A = {
8
8
  key: 0,
9
9
  class: "setting-item"
@@ -1,5 +1,5 @@
1
1
  import { _ as u } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { cK as v, cM as f, b } from "./index-BN5BYOEh.js";
2
+ import { cK as v, cM as f, b } from "./index-C88VclMA.js";
3
3
  import { defineComponent as g, toRef as k, reactive as x, createBlock as a, openBlock as n, withCtx as s, createElementVNode as o, createElementBlock as C, Fragment as M, renderList as S, unref as l, normalizeClass as h } from "vue";
4
4
  const y = { class: "menu-mode" }, $ = ["onClick"], B = /* @__PURE__ */ g({
5
5
  name: "SettingMode",
@@ -1,8 +1,8 @@
1
1
  import { _ } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as c } from "./HToggle-B3C623BZ.js";
3
- import { cK as p, cM as u } from "./index-BN5BYOEh.js";
2
+ import { _ as c } from "./HToggle-BnESuuPG.js";
3
+ import { cK as p, cM as u } from "./index-C88VclMA.js";
4
4
  import { defineComponent as f, toRef as b, createBlock as g, openBlock as v, withCtx as i, createElementVNode as n, createVNode as s, createTextVNode as V, unref as t } from "vue";
5
- import { R as S } from "./question-line-CfkciTFq.js";
5
+ import { R as S } from "./question-line-DCMVyZ3e.js";
6
6
  const x = { class: "setting-item" }, H = { class: "label" }, N = { class: "setting-item" }, $ = /* @__PURE__ */ f({
7
7
  name: "SettingNavSearch",
8
8
  __name: "SettingNavSearch",
@@ -1,9 +1,9 @@
1
1
  import { _ as c } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
2
  import { _ as x } from "./HInput.vue_vue_type_script_setup_true_lang-DBqCXRnn.js";
3
- import { cK as b, cM as S } from "./index-BN5BYOEh.js";
4
- import { _ as H } from "./HToggle-B3C623BZ.js";
3
+ import { cK as b, cM as S } from "./index-C88VclMA.js";
4
+ import { _ as H } from "./HToggle-BnESuuPG.js";
5
5
  import { defineComponent as R, toRefs as T, createBlock as U, openBlock as C, withCtx as s, createElementVNode as o, createVNode as t, unref as n, isRef as i, createTextVNode as p } from "vue";
6
- import { R as f } from "./question-line-CfkciTFq.js";
6
+ import { R as f } from "./question-line-DCMVyZ3e.js";
7
7
  const N = { class: "setting-item" }, P = { class: "setting-item" }, $ = { class: "label" }, k = { class: "setting-item" }, B = { class: "label" }, D = { class: "setting-item" }, O = { class: "label" }, j = /* @__PURE__ */ R({
8
8
  name: "SettingOther",
9
9
  __name: "SettingOther",
@@ -1,7 +1,7 @@
1
1
  import { _ as l } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as r } from "./HToggle-B3C623BZ.js";
2
+ import { _ as r } from "./HToggle-BnESuuPG.js";
3
3
  import { defineComponent as _, toRef as p, createBlock as c, openBlock as d, withCtx as u, createElementVNode as o, createVNode as g, unref as n } from "vue";
4
- import { cK as f } from "./index-BN5BYOEh.js";
4
+ import { cK as f } from "./index-C88VclMA.js";
5
5
  const V = { class: "setting-item" }, C = /* @__PURE__ */ _({
6
6
  name: "SettingPage",
7
7
  __name: "SettingPage",
@@ -1,21 +1,21 @@
1
1
  import { _ as k } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { cK as w, cM as y } from "./index-BN5BYOEh.js";
2
+ import { cK as w, cM as y } from "./index-C88VclMA.js";
3
3
  import { markRaw as x, createElementBlock as p, openBlock as r, createElementVNode as o, defineComponent as v, computed as $, resolveComponent as C, createBlock as V, mergeProps as h, withCtx as u, toDisplayString as g, unref as t, createVNode as a, Fragment as H, renderList as B, normalizeClass as M, toRef as S, createTextVNode as T } from "vue";
4
- import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-LHEWLVoX.js";
5
- import { _ as L } from "./HToggle-B3C623BZ.js";
6
- import { R as N } from "./question-line-CfkciTFq.js";
4
+ import { _ as U } from "./HCheckList.vue_vue_type_script_setup_true_lang-OWv01eXk.js";
5
+ import { _ as L } from "./HToggle-BnESuuPG.js";
6
+ import { R as N } from "./question-line-DCMVyZ3e.js";
7
7
  const R = {
8
8
  viewBox: "0 0 32 32",
9
9
  width: "1.2em",
10
10
  height: "1.2em"
11
11
  };
12
12
  function z(m, i) {
13
- return r(), p("svg", R, i[0] || (i[0] = [
13
+ return r(), p("svg", R, [...i[0] || (i[0] = [
14
14
  o("path", {
15
15
  fill: "currentColor",
16
16
  d: "m16 28l-7-7l1.4-1.4l5.6 5.6l5.6-5.6L23 21z"
17
17
  }, null, -1)
18
- ]));
18
+ ])]);
19
19
  }
20
20
  const D = x({ name: "carbon-chevron-sort-down", render: z }), E = { class: "w-full inline-flex" }, I = ["disabled"], q = { class: "block truncate" }, F = { class: "pointer-events-none absolute end-0 inset-y-0 flex items-center pe-2.5" }, K = { class: "max-h-60 w-full scroll-py-1 overflow-y-auto p-1 lg:w-48 focus:outline-none" }, P = ["disabled", "onClick"], Q = /* @__PURE__ */ v({
21
21
  __name: "HSelect",
@@ -1,19 +1,19 @@
1
1
  import { _ as T } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
2
  import { markRaw as g, createElementBlock as r, openBlock as n, createElementVNode as s, defineComponent as k, useModel as V, withDirectives as S, createStaticVNode as $, vModelCheckbox as w, toRef as D, computed as B, createBlock as N, withCtx as j, createVNode as u, unref as o, isRef as L, Fragment as b, renderList as _, normalizeClass as M, normalizeStyle as h, toDisplayString as z } from "vue";
3
3
  import { getThemes as F } from "@pubinfo/config/themes";
4
- import { b as x, cS as R, cK as A } from "./index-BN5BYOEh.js";
4
+ import { b as x, cS as R, cK as A } from "./index-C88VclMA.js";
5
5
  const E = {
6
6
  viewBox: "-5 -2 24 24",
7
7
  width: "1.2em",
8
8
  height: "1.2em"
9
9
  };
10
10
  function H(f, e) {
11
- return n(), r("svg", E, e[0] || (e[0] = [
11
+ return n(), r("svg", E, [...e[0] || (e[0] = [
12
12
  s("path", {
13
13
  fill: "currentColor",
14
14
  d: "M3 0h8a3 3 0 0 1 3 3v15a2 2 0 0 1-3.348 1.477L7.674 16.76a1 1 0 0 0-1.348 0l-2.978 2.717A2 2 0 0 1 0 18V3a3 3 0 0 1 3-3"
15
15
  }, null, -1)
16
- ]));
16
+ ])]);
17
17
  }
18
18
  const I = g({ name: "jam-bookmark-f", render: H }), U = {
19
19
  viewBox: "0 0 16 16",
@@ -21,14 +21,14 @@ const I = g({ name: "jam-bookmark-f", render: H }), U = {
21
21
  height: "1.2em"
22
22
  };
23
23
  function W(f, e) {
24
- return n(), r("svg", U, e[0] || (e[0] = [
24
+ return n(), r("svg", U, [...e[0] || (e[0] = [
25
25
  s("path", {
26
26
  fill: "currentColor",
27
27
  "fill-rule": "evenodd",
28
28
  d: "M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m3.78-9.72a.75.75 0 0 0-1.06-1.06L6.75 9.19L5.53 7.97a.75.75 0 0 0-1.06 1.06l1.75 1.75a.75.75 0 0 0 1.06 0z",
29
29
  "clip-rule": "evenodd"
30
30
  }, null, -1)
31
- ]));
31
+ ])]);
32
32
  }
33
33
  const J = g({ name: "pajamas-check-circle-filled", render: W }), K = {
34
34
  flex: "",
@@ -1,8 +1,8 @@
1
1
  import { _ as f } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as c } from "./HToggle-B3C623BZ.js";
3
- import { cK as b, cM as V } from "./index-BN5BYOEh.js";
2
+ import { _ as c } from "./HToggle-BnESuuPG.js";
3
+ import { cK as b, cM as V } from "./index-C88VclMA.js";
4
4
  import { defineComponent as g, toRef as v, createBlock as x, openBlock as _, withCtx as i, createElementVNode as s, createElementBlock as C, createCommentVNode as N, createVNode as o, createTextVNode as m, unref as t } from "vue";
5
- import { R as r } from "./question-line-CfkciTFq.js";
5
+ import { R as r } from "./question-line-DCMVyZ3e.js";
6
6
  const R = { class: "setting-item" }, S = { class: "label" }, T = {
7
7
  key: 0,
8
8
  class: "setting-item"
@@ -1,9 +1,9 @@
1
1
  import { _ as c } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { _ as u } from "./HToggle-B3C623BZ.js";
3
- import { cK as b, cM as f } from "./index-BN5BYOEh.js";
4
- import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-LHEWLVoX.js";
2
+ import { _ as u } from "./HToggle-BnESuuPG.js";
3
+ import { cK as b, cM as f } from "./index-C88VclMA.js";
4
+ import { _ as g } from "./HCheckList.vue_vue_type_script_setup_true_lang-OWv01eXk.js";
5
5
  import { defineComponent as T, toRefs as V, createBlock as v, openBlock as x, withCtx as l, createElementVNode as n, createVNode as s, unref as t, createTextVNode as k } from "vue";
6
- import { R as C } from "./question-line-CfkciTFq.js";
6
+ import { R as C } from "./question-line-DCMVyZ3e.js";
7
7
  const H = { class: "setting-item" }, w = { class: "setting-item" }, N = { class: "label" }, D = /* @__PURE__ */ T({
8
8
  name: "SettingTopbar",
9
9
  __name: "SettingTopbar",
@@ -1,7 +1,7 @@
1
1
  import { _ as v } from "./HDivider.vue_vue_type_script_setup_true_lang-DIHR-9Yv.js";
2
- import { cK as u, cM as k, b as w } from "./index-BN5BYOEh.js";
2
+ import { cK as u, cM as k, b as w } from "./index-C88VclMA.js";
3
3
  import { defineComponent as x, toRef as g, reactive as b, createBlock as o, openBlock as t, withCtx as n, createElementVNode as s, createElementBlock as d, Fragment as r, renderList as C, unref as c, normalizeClass as M, createCommentVNode as E, createVNode as l } from "vue";
4
- import { E as y, a as B } from "./right-Bfe2p1o0.js";
4
+ import { E as y, a as B } from "./right-aIVrXLnr.js";
5
5
  const S = { class: "app-width-mode" }, H = ["onClick"], N = /* @__PURE__ */ x({
6
6
  name: "SettingWidthMode",
7
7
  __name: "SettingWidthMode",
@@ -0,0 +1,13 @@
1
+ import { ModuleOptions } from '../../core';
2
+ /**
3
+ * 内置 Devtools 模块。
4
+ *
5
+ * 注册时机:`enforce: 'post'`,确保在路由/请求等核心模块之后挂载。
6
+ *
7
+ * 行为:
8
+ * - setup:注册各类 devtools 面板。
9
+ * - setup:监听来自 Devtools iframe 的消息,响应接口调试请求。
10
+ * - hooks.http:response:当请求元信息中显式标记 `__devtools__` 时,
11
+ * 将响应(或错误响应)快照保存到 localStorage,供面板读取。
12
+ */
13
+ export declare function Devtools(): ModuleOptions;
@@ -1,5 +1,6 @@
1
1
  export * from './authentication';
2
2
  export * from './authorization';
3
+ export * from './devtools';
3
4
  export * from './layout-component';
4
5
  export * from './n-progress';
5
6
  export * from './pinia-plugin';
@@ -1,3 +1,4 @@
1
+ import { LayoutProps } from './interface';
1
2
  declare function __VLS_template(): {
2
3
  attrs: Partial<{}>;
3
4
  slots: {
@@ -12,7 +13,12 @@ declare function __VLS_template(): {
12
13
  rootEl: HTMLDivElement;
13
14
  };
14
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ declare const __VLS_component: import('vue').DefineComponent<LayoutProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LayoutProps> & Readonly<{}>, {
17
+ showHeader: boolean;
18
+ showSidebar: boolean;
19
+ showTabbar: boolean;
20
+ showToolbar: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
16
22
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
23
  export default _default;
18
24
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1,2 +1,2 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
2
  export default _default;
@@ -0,0 +1,8 @@
1
+ import { LayoutProps } from '../interface';
2
+ export declare function createLayoutVisible(props: LayoutProps): void;
3
+ /**
4
+ * 判断布局组件内各个部分的展示
5
+ */
6
+ export declare function useLayoutVisible(_props?: LayoutProps): {
7
+ show: any;
8
+ };
@@ -0,0 +1,22 @@
1
+ export interface LayoutProps {
2
+ /**
3
+ * 是否展示头部
4
+ * @default true
5
+ */
6
+ showHeader?: boolean;
7
+ /**
8
+ * 是否展示侧边栏
9
+ * @default true
10
+ */
11
+ showSidebar?: boolean;
12
+ /**
13
+ * 是否展示标签栏
14
+ * @default true
15
+ */
16
+ showTabbar?: boolean;
17
+ /**
18
+ * 是否展示工具栏
19
+ * @default true
20
+ */
21
+ showToolbar?: boolean;
22
+ }
@@ -16,8 +16,8 @@ declare const useSettingsStore: import('pinia').StoreDefinition<STORE_NAME.SETTI
16
16
  toggleSidebarCollapse: () => void;
17
17
  setDefaultLang: (lang: string) => void;
18
18
  setColorScheme: (color: Required<Settings.app>["colorScheme"]) => void;
19
- mainPageMaximizeStatus: any;
20
- setMainPageMaximize: (value?: boolean) => void;
19
+ mainPageMaximizeStatus: import('vue').ShallowRef<boolean>;
20
+ setMainPageMaximize: (value?: boolean | undefined) => boolean;
21
21
  updateSettings: (data: Settings.all, fromBase?: boolean) => void;
22
22
  globalSettings: any;
23
23
  updateGlobalSettings: (data: Settings.all) => void;
@@ -43,8 +43,8 @@ declare const useSettingsStore: import('pinia').StoreDefinition<STORE_NAME.SETTI
43
43
  toggleSidebarCollapse: () => void;
44
44
  setDefaultLang: (lang: string) => void;
45
45
  setColorScheme: (color: Required<Settings.app>["colorScheme"]) => void;
46
- mainPageMaximizeStatus: any;
47
- setMainPageMaximize: (value?: boolean) => void;
46
+ mainPageMaximizeStatus: import('vue').ShallowRef<boolean>;
47
+ setMainPageMaximize: (value?: boolean | undefined) => boolean;
48
48
  updateSettings: (data: Settings.all, fromBase?: boolean) => void;
49
49
  globalSettings: any;
50
50
  updateGlobalSettings: (data: Settings.all) => void;
@@ -70,8 +70,8 @@ declare const useSettingsStore: import('pinia').StoreDefinition<STORE_NAME.SETTI
70
70
  toggleSidebarCollapse: () => void;
71
71
  setDefaultLang: (lang: string) => void;
72
72
  setColorScheme: (color: Required<Settings.app>["colorScheme"]) => void;
73
- mainPageMaximizeStatus: any;
74
- setMainPageMaximize: (value?: boolean) => void;
73
+ mainPageMaximizeStatus: import('vue').ShallowRef<boolean>;
74
+ setMainPageMaximize: (value?: boolean | undefined) => boolean;
75
75
  updateSettings: (data: Settings.all, fromBase?: boolean) => void;
76
76
  globalSettings: any;
77
77
  updateGlobalSettings: (data: Settings.all) => void;
@@ -11,7 +11,10 @@ export interface UserStore {
11
11
  getUserInfo: () => Promise<API.ResponseDataPubUserBo>;
12
12
  /** 获取用户权限码 */
13
13
  getPermissions: () => Promise<string[]>;
14
- /** 登录 */
14
+ /**
15
+ * 登录
16
+ * @deprecated 请使用 `signIn` 方法替代
17
+ */
15
18
  login: (data: {
16
19
  account: string;
17
20
  password: string;
@@ -19,6 +22,15 @@ export interface UserStore {
19
22
  captchaHash: string;
20
23
  loginType?: 'password' | string;
21
24
  }) => Promise<API.ResponseDataLoginTokenVo>;
25
+ /** 登录 */
26
+ signIn: (data: {
27
+ account: string;
28
+ password: string;
29
+ captchas: string;
30
+ captchaHash: string;
31
+ loginType?: 'password' | string;
32
+ captchaType?: string;
33
+ }) => Promise<API.ResponseDataLoginTokenVo>;
22
34
  /** 登出 */
23
35
  logout: () => void;
24
36
  /** 修改密码 */
@@ -32,5 +44,5 @@ export interface UserStore {
32
44
  /** 清空用户信息 */
33
45
  clean: () => void;
34
46
  }
35
- declare const useUserStore: import('pinia').StoreDefinition<STORE_NAME.USER, Pick<UserStore, "user">, Pick<UserStore, "userOrgName" | "isLogin">, Pick<UserStore, "getUserInfo" | "getPermissions" | "login" | "logout" | "changePassword" | "changeOrg" | "setToken" | "clean">>;
47
+ declare const useUserStore: import('pinia').StoreDefinition<STORE_NAME.USER, Pick<UserStore, "user">, Pick<UserStore, "userOrgName" | "isLogin">, Pick<UserStore, "getUserInfo" | "getPermissions" | "login" | "signIn" | "logout" | "changePassword" | "changeOrg" | "setToken" | "clean">>;
36
48
  export default useUserStore;
@@ -1,4 +1,4 @@
1
- import { u, a as d, _ as c, b as f } from "./index-BN5BYOEh.js";
1
+ import { u, a as d, _ as c, b as f } from "./index-C88VclMA.js";
2
2
  import { defineComponent as x, ref as p, onMounted as v, createElementBlock as m, openBlock as _, createElementVNode as o, createVNode as w, withCtx as b, createTextVNode as g, toDisplayString as k, unref as N } from "vue";
3
3
  import { useRoute as S, useRouter as h, onBeforeRouteLeave as B } from "vue-router";
4
4
  const C = {
@@ -1,4 +1,4 @@
1
- import { ce as a, _ as i, b as u } from "./index-BN5BYOEh.js";
1
+ import { ce as a, _ as i, b as u } from "./index-C88VclMA.js";
2
2
  import { defineComponent as d, ref as c, onUnmounted as x, onMounted as f, createElementBlock as m, openBlock as p, createElementVNode as n, createVNode as v, withCtx as _, createTextVNode as w, toDisplayString as g, unref as N } from "vue";
3
3
  import { useRouter as k } from "vue-router";
4
4
  const b = { class: "absolute left-[50%] top-[50%] flex flex-col items-center justify-between lg:flex-row -translate-x-50% -translate-y-50% lg:gap-12" }, C = { class: "flex flex-col gap-4" }, I = /* @__PURE__ */ d({