@pubinfo/core 2.0.0-rc.1 → 2.0.0-rc.3

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 (101) hide show
  1. package/dist/{AppSetting-Bblni_W7.js → AppSetting-3wJKvibc.js} +19 -19
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-A7PnhNKK.js → HCheckList.vue_vue_type_script_setup_true_lang-17EywJvs.js} +1 -1
  3. package/dist/{HToggle-xibvPpmf.js → HToggle-B-ZjSh6S.js} +1 -1
  4. package/dist/{PreferencesContent--JtPw_LT.js → PreferencesContent-xT4paU7N.js} +52 -52
  5. package/dist/{SettingBreadcrumb-BwhdAtkC.js → SettingBreadcrumb-CYnO51Ek.js} +5 -5
  6. package/dist/{SettingCopyright-DPsRDagL.js → SettingCopyright-FOW5ObHK.js} +2 -2
  7. package/dist/{SettingEnableTransition-mtHTUb08.js → SettingEnableTransition-Q5cvubmF.js} +12 -12
  8. package/dist/{SettingHome-agxHFIKq.js → SettingHome-Df7-AlWB.js} +8 -8
  9. package/dist/{SettingMenu-D6WwcOw-.js → SettingMenu-BNAJ3el9.js} +14 -14
  10. package/dist/{SettingMode-CkmhszlD.js → SettingMode-LzlRsBL9.js} +3 -3
  11. package/dist/{SettingNavSearch-CEB5DZGf.js → SettingNavSearch-BA08vYuw.js} +6 -6
  12. package/dist/{SettingOther-Dzs1uwnC.js → SettingOther-BE8dDCYD.js} +11 -11
  13. package/dist/{SettingPage-bOThkL2-.js → SettingPage-D061yXCv.js} +2 -2
  14. package/dist/{SettingTabbar-L6yQxAeE.js → SettingTabbar-COwdPPKy.js} +13 -13
  15. package/dist/{SettingThemes-Cxa5bR66.js → SettingThemes-BHaYERNp.js} +12 -12
  16. package/dist/{SettingToolbar-BZ2uHom2.js → SettingToolbar-fSuzu6ND.js} +10 -10
  17. package/dist/{SettingTopbar-hptxTh8m.js → SettingTopbar-D7GgP0KB.js} +6 -6
  18. package/dist/{SettingWidthMode-D2R2W4-n.js → SettingWidthMode-CNjzChe1.js} +11 -11
  19. package/dist/{TopThinMode-C26i10py.js → TopThinMode-B-28sBJD.js} +3 -3
  20. package/dist/built-in/layout-component/Layout.vue.d.ts +1 -0
  21. package/dist/built-in/layout-component/components/Tools/Fullscreen.vue.d.ts +2 -0
  22. package/dist/built-in/layout-component/components/Tools/PageReload.vue.d.ts +2 -0
  23. package/dist/built-in/layout-component/components/Tools/SearchBar.vue.d.ts +2 -0
  24. package/dist/built-in/layout-component/components/Tools/index.vue.d.ts +47 -207
  25. package/dist/built-in/layout-component/components/Tools/interface.d.ts +26 -0
  26. package/dist/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue.d.ts +0 -206
  27. package/dist/built-in/layout-component/components/ui/HDropdownMenu.vue.d.ts +2 -7
  28. package/dist/built-in/layout-component/composables/useGlobalSearch.d.ts +19 -0
  29. package/dist/built-in/layout-component/composables/useHotkey.d.ts +1 -5
  30. package/dist/built-in/layout-component/composables/useMainPage.d.ts +1 -1
  31. package/dist/built-in/layout-component/composables/useMenu.d.ts +1 -1
  32. package/dist/built-in/layout-component/composables/useTabbar.d.ts +1 -1
  33. package/dist/built-in/layout-component/composables/useTitle.d.ts +2 -1
  34. package/dist/built-in/layout-component/composables/useWatermark.d.ts +3 -1
  35. package/dist/built-in/layout-component/index.d.ts +9 -6
  36. package/dist/built-in/layout-component/utils/index.d.ts +0 -1
  37. package/dist/{colors-C8I6Fdyp.js → colors-BIQSd520.js} +1 -1
  38. package/dist/{index-RwbJwutI.js → index-Beb7_0-E.js} +14499 -14397
  39. package/dist/{index-D948mfZb.js → index-CPRiufg0.js} +1 -1
  40. package/dist/{index-DZ6SbWiv.js → index-DNdH93AP.js} +13 -13
  41. package/dist/index-DYMBkmAp.js +139 -0
  42. package/dist/{index-DdS6qgK_.js → index-Dlf6GQBd.js} +6418 -6439
  43. package/dist/{index-D3zjK9rd.js → index-IscoZG-Y.js} +2 -2
  44. package/dist/{index-DeWCd_-p.js → index-WubcSL0v.js} +1 -1
  45. package/dist/index-YSjb6X1D.js +232 -0
  46. package/dist/{index-EOTrQlGo.js → index-wxEEuQXu.js} +17 -17
  47. package/dist/index.d.ts +4 -2
  48. package/dist/index.js +53 -55
  49. package/dist/{pick-D6j4F3UM.js → pick-D_XPbQHB.js} +1 -1
  50. package/dist/style.css +1 -1
  51. package/package.json +10 -10
  52. package/src/built-in/authentication/pages/change-organization/assets/change-org.svg +1 -1
  53. package/src/built-in/authentication/pages/change-password/assets/mima.svg +1 -1
  54. package/src/built-in/authorization/pages/not-permission/403.svg +1 -1
  55. package/src/built-in/authorization/pages/not-permission/403_dark.svg +1 -1
  56. package/src/built-in/layout-component/Layout.vue +11 -22
  57. package/src/built-in/layout-component/assets/icons/favorites.svg +1 -1
  58. package/src/built-in/layout-component/assets/icons/toolbar-collapse.svg +1 -1
  59. package/src/built-in/layout-component/components/Header/TopMode/index.vue +1 -1
  60. package/src/built-in/layout-component/components/Sidebar/MainSidebar.vue +1 -1
  61. package/src/built-in/layout-component/components/Sidebar/index.vue +1 -1
  62. package/src/built-in/layout-component/components/Tools/DarkModeToggle.vue +108 -0
  63. package/src/built-in/layout-component/components/Tools/Fullscreen.vue +24 -0
  64. package/src/built-in/layout-component/components/Tools/PageReload.vue +22 -0
  65. package/src/built-in/layout-component/components/Tools/SearchBar.vue +44 -0
  66. package/src/built-in/layout-component/components/Tools/{Search.vue → SearchPanel.vue} +12 -6
  67. package/src/built-in/layout-component/components/Tools/index.vue +64 -130
  68. package/src/built-in/layout-component/components/Tools/interface.ts +27 -0
  69. package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +7 -6
  70. package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +2 -2
  71. package/src/built-in/layout-component/components/Topbar/Toolbar/index.vue +32 -10
  72. package/src/built-in/layout-component/components/ui/HDropdownMenu.vue +19 -26
  73. package/src/built-in/layout-component/composables/useGetComputedStyle.ts +2 -3
  74. package/src/built-in/layout-component/composables/useGlobalSearch.ts +48 -0
  75. package/src/built-in/layout-component/composables/useHotkey.ts +6 -10
  76. package/src/built-in/layout-component/composables/useMainPage.ts +5 -6
  77. package/src/built-in/layout-component/composables/useMenu.ts +3 -5
  78. package/src/built-in/layout-component/composables/useTabbar.ts +3 -5
  79. package/src/built-in/layout-component/composables/useTitle.ts +2 -3
  80. package/src/built-in/layout-component/composables/useWatermark.ts +25 -12
  81. package/src/built-in/layout-component/index.ts +21 -12
  82. package/src/built-in/layout-component/provider.ts +6 -2
  83. package/src/built-in/layout-component/utils/index.ts +0 -1
  84. package/src/built-in/settings/router.ts +5 -1
  85. package/src/features/assets/fonts/digital-7/digital-7-webfont.svg +131 -133
  86. package/src/features/assets/fonts/digital-7_mono/digital-7_mono-webfont.svg +130 -132
  87. package/src/features/assets/images/org.svg +2 -2
  88. package/src/features/components/NotAllowed/assets/403.svg +1 -1
  89. package/src/features/components/NotAllowed/assets/403_dark.svg +1 -1
  90. package/src/features/components/PubinfoIcon/index.vue +1 -1
  91. package/src/features/pages/not-found/assets/404.svg +1 -1
  92. package/src/features/pages/not-found/assets/404_dark.svg +1 -1
  93. package/src/features/stores/utils/routerHelper.ts +3 -0
  94. package/src/index.ts +7 -9
  95. package/dist/built-in/layout-component/utils/eventBus.d.ts +0 -5
  96. package/dist/index-CkyHqPON.js +0 -139
  97. package/dist/index-xzfvpJSq.js +0 -234
  98. package/src/built-in/layout-component/components/Tools/DayNightSwitch.vue +0 -70
  99. package/src/built-in/layout-component/utils/eventBus.ts +0 -8
  100. /package/dist/built-in/layout-component/components/Tools/{DayNightSwitch.vue.d.ts → DarkModeToggle.vue.d.ts} +0 -0
  101. /package/dist/built-in/layout-component/components/Tools/{Search.vue.d.ts → SearchPanel.vue.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { markRaw as J, createElementBlock as f, openBlock as r, createElementVNode as o, defineComponent as D, resolveComponent as h, renderSlot as Y, createBlock as g, withCtx as d, toDisplayString as G, mergeProps as U, Fragment as v, renderList as P, normalizeClass as F, createCommentVNode as C, unref as t, ref as b, computed as k, onMounted as T, watch as O, createVNode as Q, createTextVNode as Z } from "vue";
2
- import { b as y, bE as I, bG as K, bH as V, bI as L } from "./index-RwbJwutI.js";
1
+ import { markRaw as J, createElementBlock as f, openBlock as r, createElementVNode as o, defineComponent as D, resolveComponent as h, renderSlot as Y, createBlock as g, withCtx as d, toDisplayString as G, mergeProps as U, Fragment as v, renderList as P, normalizeClass as H, createCommentVNode as C, unref as t, ref as b, computed as k, onMounted as T, watch as O, createVNode as Q, createTextVNode as Z } from "vue";
2
+ import { b as y, bE as I, bL as K, bR as V, bS as L } from "./index-Beb7_0-E.js";
3
3
  import "vue-router";
4
4
  const X = {
5
5
  viewBox: "0 0 24 24",
@@ -113,11 +113,11 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
113
113
  "rounded-8px": "",
114
114
  "text-sm": "",
115
115
  "mb-10px": "",
116
- class: F({
116
+ class: H({
117
117
  "bg-[#fff] dark:bg-[var(--g-header-menu-active-bg)]!": u === a.activeIndex,
118
118
  "is-dev": l.meta?.isDev
119
119
  }),
120
- onClick: (N) => p(u, l)
120
+ onClick: (S) => p(u, l)
121
121
  }, [
122
122
  l.meta?.icon ? (r(), g(t(I), {
123
123
  key: 0,
@@ -155,25 +155,25 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
155
155
  let s;
156
156
  return !m && i || m && !e ? s = i : m && e && (s = e), s;
157
157
  }
158
- const x = b(), { width: l } = L(x), u = b(0), N = k(() => u.value === c.allMenus.length - 1);
158
+ const x = b(), { width: l } = L(x), u = b(0), S = k(() => u.value === c.allMenus.length - 1);
159
159
  function z(m, i) {
160
160
  const e = m + u.value + 1;
161
161
  a(e, i);
162
162
  }
163
163
  function E() {
164
- const m = x.value, i = Array.from(m.children).at(0), e = i.clientWidth, s = Array.from(i.children), S = s.reduce((A, B) => A + B.clientWidth, 0);
165
- let w = 0, H = 0;
166
- if (S <= e)
167
- H = s.length - 1;
164
+ const m = x.value, i = Array.from(m.children).at(0), e = i.clientWidth, s = Array.from(i.children), N = s.reduce((A, B) => A + B.clientWidth, 0);
165
+ let w = 0, F = 0;
166
+ if (N <= e)
167
+ F = s.length - 1;
168
168
  else
169
169
  for (const [A, B] of s.entries())
170
170
  if (w += B.clientWidth, w >= e) {
171
- H = A - 1;
171
+ F = A - 1;
172
172
  break;
173
173
  }
174
174
  return s.forEach((A, B) => {
175
- B > H ? A.style.visibility = "hidden" : A.style.visibility = "visible";
176
- }), H;
175
+ B > F ? A.style.visibility = "hidden" : A.style.visibility = "visible";
176
+ }), F;
177
177
  }
178
178
  return T(() => {
179
179
  O(
@@ -191,13 +191,13 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
191
191
  class: "menu-container nothin"
192
192
  }, [
193
193
  o("div", {
194
- class: F(["menu flex of-hidden transition-all", {
194
+ class: H(["menu flex of-hidden transition-all", {
195
195
  [`menu-active-${t(n).settings.menu.menuActiveStyle}`]: t(n).settings.menu.menuActiveStyle !== ""
196
196
  }])
197
197
  }, [
198
198
  (r(!0), f(v, null, P(t(c).allMenus, (e, s) => (r(), f("div", {
199
199
  key: e?.meta?.title || s,
200
- class: F(["menu-item relative transition-all", {
200
+ class: H(["menu-item relative transition-all", {
201
201
  active: s === t(c).actived,
202
202
  "px-1 py-2": t(n).settings.menu.isRounded,
203
203
  "is-dev": e.meta?.isDev
@@ -211,12 +211,12 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
211
211
  default: d(() => [
212
212
  e.children && e.children.length !== 0 || e?.meta?.isDev ? (r(), f("div", {
213
213
  key: 0,
214
- class: F(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-5 py-4 text-[var(--g-header-menu-color)] transition-all hover:(bg-[var(--g-header-menu-hover-bg)] text-[var(--g-header-menu-hover-color)])", {
214
+ class: H(["group menu-item-container h-full w-full flex cursor-pointer items-center justify-between gap-1 px-5 py-4 text-[var(--g-header-menu-color)] transition-all hover:(bg-[var(--g-header-menu-hover-bg)] text-[var(--g-header-menu-hover-color)])", {
215
215
  "text-[var(--g-header-menu-active-color)]! bg-[var(--g-header-menu-active-bg)]!": s === t(c).actived,
216
216
  "rounded-2": t(n).settings.menu.isRounded
217
217
  }]),
218
218
  title: t(p)(e.meta?.i18n, e.meta?.title),
219
- onClick: (S) => t(a)(s, e)
219
+ onClick: (N) => t(a)(s, e)
220
220
  }, [
221
221
  o("div", ie, [
222
222
  M(s === t(c).actived, e.meta?.icon, e.meta?.activeIcon) ? (r(), g(t(I), {
@@ -233,7 +233,7 @@ const q = J({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
233
233
  }, 1032, ["is-cursor", "dev-text"])
234
234
  ], 2))), 128))
235
235
  ], 2),
236
- t(N) ? C("", !0) : (r(), g(oe, {
236
+ t(S) ? C("", !0) : (r(), g(oe, {
237
237
  key: 0,
238
238
  items: t(c).allMenus.slice(t(u) + 1),
239
239
  "active-index": t(c).actived - t(u) - 1,
package/dist/index.d.ts CHANGED
@@ -15,8 +15,10 @@ export interface PubinfoOptions extends Options {
15
15
  pure?: boolean;
16
16
  }
17
17
  export declare function createPubinfo(options: PubinfoOptions): () => Promise<import('./core').Context>;
18
- export { BackTop, Copyright, Layout, LayoutContent, LayoutHeader, LayoutProvider, Logo, Menu, RESPONSE_CODE, SettingBar, Sidebar, Tools, Topbar, } from './built-in';
19
- export { eventBus } from './built-in/layout-component/utils';
18
+ export { RESPONSE_CODE } from './built-in/authentication';
19
+ export { Copyright, Layout, LayoutContent, LayoutHeader, LayoutProvider, LayoutSidebar, LayoutTopbar, Logo, Tool, Tools, } from './built-in/layout-component';
20
+ export type { DropdownMenu, DropdownMenuRender } from './built-in/layout-component';
21
+ export { updateWatermark } from './built-in/layout-component/composables/useWatermark';
20
22
  export { createRequest, defineIconModule, defineRouteModule, getAllIconModules, getAllRouteModules, readProjectModules, } from './core';
21
23
  export * from './core/interface';
22
24
  export * from './features';
package/dist/index.js CHANGED
@@ -1,62 +1,60 @@
1
- import { bY as a, bZ as c, b_ as t, b$ as o, c0 as u, c1 as r, c2 as n, bJ as i, ck as b, cl as S, cm as d, bb as f, cn as l, bE as g, co as P, cy as p, c3 as y, c4 as R, c5 as A, c6 as E, c7 as M, cf as h, cg as v, ch as I, bX as m, cp as C, c9 as T, cz as x, ca as B, cb as L, cD as j, cB as w, c8 as O, cc as D, cd as H, cA as U, cE as W, cC as _, cq as k, ce as q, ci as F, cr as J, cx as K, cs as N, cF as Y, cG as z, cv as G, cH as V, cI as X, cJ as Z, u as $, cw as Q, ct as ee, a as se, bW as ae, b9 as ce, cu as te, bR as oe, cj as ue } from "./index-RwbJwutI.js";
1
+ import { bZ as a, b_ as c, b$ as o, c0 as t, c1 as u, c2 as r, c3 as n, c4 as i, cj as b, ck as d, cl as S, bb as l, cm as f, bE as g, cn as P, cx as y, bY as p, c5 as R, c6 as A, ce as E, cf as M, cg as h, bX as m, co as I, c8 as L, cy as v, c9 as C, ca as T, cC as x, cA as j, cb as w, cc as O, cz as W, cD as D, cB as H, cp as U, cd as _, ch as k, c7 as q, cq as B, cw as F, cr as K, cE as N, cF as Y, cu as z, cG as G, cH as V, cI as X, u as Z, cv as $, cs as J, a as Q, bW as ee, b9 as se, ct as ae, bM as ce, ci as oe } from "./index-Beb7_0-E.js";
2
2
  export {
3
- a as BackTop,
4
- c as Copyright,
5
- t as Layout,
3
+ a as Copyright,
4
+ c as Layout,
6
5
  o as LayoutContent,
7
- u as LayoutHeader,
8
- r as LayoutProvider,
9
- n as Logo,
10
- i as Menu,
6
+ t as LayoutHeader,
7
+ u as LayoutProvider,
8
+ r as LayoutSidebar,
9
+ n as LayoutTopbar,
10
+ i as Logo,
11
11
  b as NotAllowed,
12
- S as PageHeader,
13
- d as PageMain,
14
- f as PassStrengthValidator,
15
- l as PubinfoApp,
12
+ d as PageHeader,
13
+ S as PageMain,
14
+ l as PassStrengthValidator,
15
+ f as PubinfoApp,
16
16
  g as PubinfoIcon,
17
17
  P as PubinfoProvider,
18
- p as RESOURCE_TYPE,
19
- y as RESPONSE_CODE,
20
- R as SettingBar,
21
- A as Sidebar,
22
- E as Tools,
23
- M as Topbar,
24
- h as cleanup,
25
- v as cleanupWithoutUser,
26
- I as createContext,
18
+ y as RESOURCE_TYPE,
19
+ p as RESPONSE_CODE,
20
+ R as Tool,
21
+ A as Tools,
22
+ E as cleanup,
23
+ M as cleanupWithoutUser,
24
+ h as createContext,
27
25
  m as createPubinfo,
28
- C as createPubinfoProvider,
29
- T as createRequest,
30
- x as defineAsyncRoutes,
31
- B as defineIconModule,
32
- L as defineRouteModule,
33
- j as defineSettings,
34
- w as defineSystemRoutes,
35
- O as eventBus,
36
- D as getAllIconModules,
37
- H as getAllRouteModules,
38
- U as getAsyncRoutes,
39
- W as getSettings,
40
- _ as getSystemRoutes,
41
- k as pubinfoInjectionKey,
42
- q as readProjectModules,
43
- F as storage,
44
- J as useAuth,
45
- K as useBox,
46
- N as useError,
47
- Y as useFavoritesStore,
48
- z as useIframeStore,
49
- G as useInfo,
50
- V as useKeepAliveStore,
51
- X as useMenuStore,
52
- Z as useRouteStore,
53
- $ as useSettingsStore,
54
- Q as useStart,
55
- ee as useSuccess,
56
- se as useTabbarStore,
57
- ae as useTheme,
58
- ce as useUserStore,
59
- te as useWarn,
60
- oe as watchDiffObject,
61
- ue as wrapProxy
26
+ I as createPubinfoProvider,
27
+ L as createRequest,
28
+ v as defineAsyncRoutes,
29
+ C as defineIconModule,
30
+ T as defineRouteModule,
31
+ x as defineSettings,
32
+ j as defineSystemRoutes,
33
+ w as getAllIconModules,
34
+ O as getAllRouteModules,
35
+ W as getAsyncRoutes,
36
+ D as getSettings,
37
+ H as getSystemRoutes,
38
+ U as pubinfoInjectionKey,
39
+ _ as readProjectModules,
40
+ k as storage,
41
+ q as updateWatermark,
42
+ B as useAuth,
43
+ F as useBox,
44
+ K as useError,
45
+ N as useFavoritesStore,
46
+ Y as useIframeStore,
47
+ z as useInfo,
48
+ G as useKeepAliveStore,
49
+ V as useMenuStore,
50
+ X as useRouteStore,
51
+ Z as useSettingsStore,
52
+ $ as useStart,
53
+ J as useSuccess,
54
+ Q as useTabbarStore,
55
+ ee as useTheme,
56
+ se as useUserStore,
57
+ ae as useWarn,
58
+ ce as watchDiffObject,
59
+ oe as wrapProxy
62
60
  };
@@ -1,4 +1,4 @@
1
- import { bT as s, bU as t, bV as u } from "./index-RwbJwutI.js";
1
+ import { bO as s, bP as t, bQ as u } from "./index-Beb7_0-E.js";
2
2
  function i(n, a) {
3
3
  return s(n, a, function(e, r) {
4
4
  return t(n, r);