@pubinfo/core 2.0.0 → 2.0.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 (38) hide show
  1. package/dist/{AppSetting-DqVYDIHj.js → AppSetting-Duz17uid.js} +15 -15
  2. package/dist/{HCheckList.vue_vue_type_script_setup_true_lang-SrNklW3P.js → HCheckList.vue_vue_type_script_setup_true_lang-D2ucDy6R.js} +1 -1
  3. package/dist/{HToggle-DGTP9jYA.js → HToggle-BZgGk0tF.js} +1 -1
  4. package/dist/{PreferencesContent-5NtwK9RQ.js → PreferencesContent-9G5fQXIQ.js} +4 -4
  5. package/dist/{SettingBreadcrumb-BudqQsuJ.js → SettingBreadcrumb-BxHYbQDP.js} +3 -3
  6. package/dist/{SettingCopyright-VUberG4R.js → SettingCopyright-DjiWoct0.js} +2 -2
  7. package/dist/{SettingEnableTransition-C6NYf021.js → SettingEnableTransition-BuI_6ut5.js} +2 -2
  8. package/dist/{SettingHome-BTaeKgwN.js → SettingHome-DDLCMt27.js} +2 -2
  9. package/dist/{SettingMenu-D9Aon2LP.js → SettingMenu-CppWM5ii.js} +3 -3
  10. package/dist/{SettingMode-DaqVd9Mq.js → SettingMode-Dnc3r5wq.js} +1 -1
  11. package/dist/{SettingNavSearch-N4JIheIk.js → SettingNavSearch-Bo7kfL59.js} +2 -2
  12. package/dist/{SettingOther-tLulcors.js → SettingOther-cfShqDr-.js} +2 -2
  13. package/dist/{SettingPage-CEjWB45R.js → SettingPage-D_5oBIta.js} +2 -2
  14. package/dist/{SettingTabbar-DyeLhcCT.js → SettingTabbar-Dkjqphga.js} +3 -3
  15. package/dist/{SettingThemes-C2M3tsVl.js → SettingThemes-Dk3TCSqN.js} +1 -1
  16. package/dist/{SettingToolbar-DI7de6i0.js → SettingToolbar-BcUtxrl3.js} +2 -2
  17. package/dist/{SettingTopbar-BgIoXeAq.js → SettingTopbar-BBanXq21.js} +3 -3
  18. package/dist/{SettingWidthMode-DIAU4s5e.js → SettingWidthMode-C73wLUVA.js} +1 -1
  19. package/dist/{TopThinMode-JNUHrJI2.js → TopThinMode-fu1S9c1D.js} +1 -1
  20. package/dist/{colors-DxWfHM_v.js → colors-E10sQog7.js} +1 -1
  21. package/dist/{index-BH-vHGvk.js → index-0LK1UfQ9.js} +1 -1
  22. package/dist/{index-C7xIGcDc.js → index-BOXO1jsz.js} +2 -2
  23. package/dist/{index-CNVn3Ubv.js → index-Cu-ILdka.js} +2 -2
  24. package/dist/{index-5fRpGyLW.js → index-D89Cjjmm.js} +4 -4
  25. package/dist/{index-Dv7UUFkD.js → index-DZojpY-D.js} +971 -967
  26. package/dist/{index-Cf-u1Zqh.js → index-Dae9Ig_D.js} +1 -1
  27. package/dist/{index-BFRIv97x.js → index-DfGgiKow.js} +2 -2
  28. package/dist/{index-DQGnbEGS.js → index-Drx3NVwH.js} +2 -2
  29. package/dist/{index-D4v4g8FJ.js → index-svExU2oQ.js} +26 -26
  30. package/dist/index.js +1 -1
  31. package/dist/{pick-VFuUwFn-.js → pick-DbYhgsVe.js} +1 -1
  32. package/dist/style.css +1 -1
  33. package/package.json +5 -5
  34. package/src/built-in/layout-component/components/Header/TopMode/index.vue +2 -2
  35. package/src/built-in/layout-component/components/Menu/item.vue +6 -6
  36. package/src/built-in/layout-component/components/Topbar/Tabbar/MoreAction.vue +42 -24
  37. package/src/built-in/layout-component/components/Topbar/Tabbar/index.vue +43 -25
  38. package/types/menu.d.ts +1 -1
@@ -1,4 +1,4 @@
1
- import { u, a as d, _ as c, b as f } from "./index-Dv7UUFkD.js";
1
+ import { u, a as d, _ as c, b as f } from "./index-DZojpY-D.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,6 +1,6 @@
1
- import { bc as Co, bd as Oo, b8 as Mn, be as Po, c as Eo, d as Fn, bf as To, b7 as Ao, bg as _o, bh as Io, aL as Xe, e as b, P as V, bi as Or, g as L, l as Pr, h as Z, w as he, bj as De, ae as Mo, aM as Ge, i as ve, a7 as Er, m as Ye, aH as Fo, ao as He, aN as Ro, bk as Rn, bl as No, aA as Do, aB as jo, bm as Bo, bn as zo, J as Vo, bo as Ho, a9 as Lo, $ as $e, H as ot, F as Ce, a2 as Wo, B as it, j as Tr, Y as Ke, M as ye, k as pn, bp as qo, Q as Xo, bq as Go, aq as Yo, I as ko, ac as Uo, br as Ko, X as Ze, f as Xt, as as Zo, bs as Qo, b1 as Jo, bt as Ar, bu as ei, bv as mt, bw as ti, L as ni, C as hn, bx as ri, by as oi, aF as Ot, b2 as ii, U as Re, W as We, V as Gt, aG as xe, bz as ai, bA as li, bB as si, o as we, a1 as Nn, N as ui, O as _r, ay as Dn, y as ci, al as di, a5 as fi, bC as pi, bD as hi } from "./index-Dv7UUFkD.js";
1
+ import { bc as Co, bd as Oo, b8 as Mn, be as Po, c as Eo, d as Fn, bf as To, b7 as Ao, bg as _o, bh as Io, aL as Xe, e as b, P as V, bi as Or, g as L, l as Pr, h as Z, w as he, bj as De, ae as Mo, aM as Ge, i as ve, a7 as Er, m as Ye, aH as Fo, ao as He, aN as Ro, bk as Rn, bl as No, aA as Do, aB as jo, bm as Bo, bn as zo, J as Vo, bo as Ho, a9 as Lo, $ as $e, H as ot, F as Ce, a2 as Wo, B as it, j as Tr, Y as Ke, M as ye, k as pn, bp as qo, Q as Xo, bq as Go, aq as Yo, I as ko, ac as Uo, br as Ko, X as Ze, f as Xt, as as Zo, bs as Qo, b1 as Jo, bt as Ar, bu as ei, bv as mt, bw as ti, L as ni, C as hn, bx as ri, by as oi, aF as Ot, b2 as ii, U as Re, W as We, V as Gt, aG as xe, bz as ai, bA as li, bB as si, o as we, a1 as Nn, N as ui, O as _r, ay as Dn, y as ci, al as di, a5 as fi, bC as pi, bD as hi } from "./index-DZojpY-D.js";
2
2
  import { defineComponent as ee, reactive as vn, getCurrentInstance as at, onMounted as Oe, onUpdated as Ir, onUnmounted as Mr, watch as ne, createVNode as _, Transition as Pt, withDirectives as gn, resolveDirective as vi, ref as te, shallowRef as X, onBeforeUnmount as _e, computed as M, nextTick as me, toRef as gi, withModifiers as jn, vShow as Fr, Fragment as Ie, provide as be, inject as ze, watchEffect as Me, cloneVNode as mi, TransitionGroup as bi, toRaw as Yt, unref as Pe, onBeforeUpdate as yi } from "vue";
3
- import { i as wi, g as xi } from "./colors-DxWfHM_v.js";
3
+ import { i as wi, g as xi } from "./colors-E10sQog7.js";
4
4
  function $i(e) {
5
5
  return e !== e;
6
6
  }
@@ -1,6 +1,6 @@
1
- import { H as L, F as O, e as P, B as R, bF as j, M as z, h as F, g as b, P as B, a1 as X, Y as U, aP as V, x as Y } from "./index-Dv7UUFkD.js";
1
+ import { H as L, F as O, e as P, B as R, bF as j, M as z, h as F, g as b, P as B, a1 as X, Y as U, aP as V, x as Y } from "./index-DZojpY-D.js";
2
2
  import { defineComponent as H, computed as m, createVNode as d, shallowRef as q, watchEffect as G, Fragment as J } from "vue";
3
- import { g as K, i as Q, a as Z } from "./colors-DxWfHM_v.js";
3
+ import { g as K, i as Q, a as Z } from "./colors-E10sQog7.js";
4
4
  const h = (e, t, l) => {
5
5
  const r = j(l);
6
6
  return {
@@ -1,5 +1,5 @@
1
- import { markRaw as E, createElementBlock as p, openBlock as s, createElementVNode as a, defineComponent as v, resolveComponent as P, renderSlot as Y, createBlock as f, withCtx as A, toDisplayString as G, mergeProps as J, Fragment as D, renderList as y, normalizeClass as F, createCommentVNode as H, unref as t, ref as h, computed as O, onMounted as U, watch as T, createVNode as Q, createTextVNode as Z } from "vue";
2
- import { b as I, bE as b, bL as K, bR as V, bS as L } from "./index-Dv7UUFkD.js";
1
+ import { markRaw as E, createElementBlock as p, openBlock as s, createElementVNode as a, defineComponent as v, resolveComponent as y, renderSlot as Y, createBlock as f, withCtx as A, toDisplayString as G, mergeProps as J, Fragment as b, renderList as P, normalizeClass as F, createCommentVNode as H, unref as t, ref as h, computed as O, onMounted as T, watch as U, createVNode as Q, createTextVNode as Z } from "vue";
2
+ import { b as I, bE as D, bL as K, bR as V, bS as L } from "./index-DZojpY-D.js";
3
3
  import "vue-router";
4
4
  const X = {
5
5
  viewBox: "0 0 24 24",
@@ -41,7 +41,7 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
41
41
  },
42
42
  setup(j) {
43
43
  return (c, o) => {
44
- const g = P("VMenu");
44
+ const g = y("VMenu");
45
45
  return c.isCursor ? (s(), f(g, {
46
46
  key: 1,
47
47
  triggers: ["hover"],
@@ -80,11 +80,11 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
80
80
  emits: ["onMenuClick"],
81
81
  setup(j, { emit: c }) {
82
82
  const o = c;
83
- function g(r, m) {
84
- o("onMenuClick", r, m);
83
+ function g(r, d) {
84
+ o("onMenuClick", r, d);
85
85
  }
86
- return (r, m) => {
87
- const x = P("VMenu");
86
+ return (r, d) => {
87
+ const x = y("VMenu");
88
88
  return s(), f(x, J({
89
89
  triggers: ["hover"],
90
90
  "popper-triggers": ["hover"]
@@ -96,7 +96,7 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
96
96
  }), {
97
97
  popper: A(() => [
98
98
  a("div", ne, [
99
- (s(!0), p(D, null, y(r.items, (l, u) => (s(), f(R, {
99
+ (s(!0), p(b, null, P(r.items, (l, u) => (s(), f(R, {
100
100
  key: u,
101
101
  "is-cursor": l.meta?.isDev,
102
102
  "dev-text": l.meta?.devText,
@@ -119,7 +119,7 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
119
119
  }),
120
120
  onClick: (S) => g(u, l)
121
121
  }, [
122
- l.meta?.icon ? (s(), f(t(b), {
122
+ l.meta?.icon ? (s(), f(t(D), {
123
123
  key: 0,
124
124
  name: l.meta.icon,
125
125
  size: "18px",
@@ -151,17 +151,17 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
151
151
  __name: "index",
152
152
  setup(j) {
153
153
  const { settingsStore: c, menuStore: o, generateTitle: g } = K(), { switchTo: r } = V();
154
- function m(d, i, e) {
154
+ function d(m, i, e) {
155
155
  let n;
156
- return !d && i || d && !e ? n = i : d && e && (n = e), n;
156
+ return !m && i || m && !e ? n = i : m && e && (n = e), n;
157
157
  }
158
158
  const x = h(), { width: l } = L(x), u = h(0), S = O(() => u.value === o.allMenus.length - 1);
159
- function k(d, i) {
160
- const e = d + u.value + 1;
159
+ function k(m, i) {
160
+ const e = m + u.value + 1;
161
161
  r(e, i);
162
162
  }
163
163
  function z() {
164
- const d = x.value, i = Array.from(d.children).at(0), e = i.clientWidth, n = Array.from(i.children), N = n.reduce((M, B) => M + B.clientWidth, 0);
164
+ const m = x.value, i = Array.from(m.children).at(0), e = i.clientWidth, n = Array.from(i.children), N = n.reduce((M, B) => M + B.clientWidth, 0);
165
165
  let w = 0, C = 0;
166
166
  if (N <= e)
167
167
  C = n.length - 1;
@@ -175,8 +175,8 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
175
175
  B > C ? M.style.visibility = "hidden" : M.style.visibility = "visible";
176
176
  }), C;
177
177
  }
178
- return U(() => {
179
- T(
178
+ return T(() => {
179
+ U(
180
180
  l,
181
181
  () => {
182
182
  u.value = z();
@@ -185,7 +185,7 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
185
185
  immediate: !0
186
186
  }
187
187
  );
188
- }), (d, i) => (s(), p("div", {
188
+ }), (m, i) => (s(), p("div", {
189
189
  ref_key: "menuRef",
190
190
  ref: x,
191
191
  class: "menu-container nothin"
@@ -195,7 +195,7 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
195
195
  [`menu-active-${t(c).settings.menu.menuActiveStyle}`]: t(c).settings.menu.menuActiveStyle !== ""
196
196
  }])
197
197
  }, [
198
- (s(!0), p(D, null, y(t(o).allMenus, (e, n) => (s(), p("div", {
198
+ (s(!0), p(b, null, P(t(o).allMenus, (e, n) => (s(), p("div", {
199
199
  key: e?.meta?.title || n,
200
200
  class: F(["menu-item relative transition-all", {
201
201
  active: n === t(o).actived,
@@ -219,23 +219,23 @@ const q = E({ name: "solar-widget-5-bold-duotone", render: W }), _ = "data:image
219
219
  onClick: (N) => t(r)(n, e)
220
220
  }, [
221
221
  a("div", ie, [
222
- m(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon) ? (s(), p(D, { key: 0 }, [
223
- e.meta?.iconOptions ? (s(), f(t(b), {
222
+ d(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon) ? (s(), p(b, { key: 0 }, [
223
+ e.meta?.iconOptions?.boxType && e.meta.iconOptions.boxType !== "null" ? (s(), f(t(D), {
224
224
  key: 0,
225
- name: m(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon),
225
+ name: d(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon),
226
226
  small: "",
227
- box: e.meta.iconOptions.boxType || "prism",
227
+ box: e.meta.iconOptions.boxType,
228
228
  size: 18,
229
229
  angle: e.meta.iconOptions.angle,
230
230
  background: e.meta.iconOptions.background,
231
231
  radius: e.meta.iconOptions.radius,
232
- color: (m(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon) || "").startsWith("antd:") ? e.meta.iconOptions.iconColor || "#ffffff" : void 0,
232
+ color: (d(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon) || "").startsWith("antd:") ? e.meta.iconOptions.iconColor || "#ffffff" : void 0,
233
233
  class: "menu-item-container-icon transition-transform group-hover:scale-120 mr-5px"
234
- }, null, 8, ["name", "box", "angle", "background", "radius", "color"])) : (s(), f(t(b), {
234
+ }, null, 8, ["name", "box", "angle", "background", "radius", "color"])) : (s(), f(t(D), {
235
235
  key: 1,
236
- name: m(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon),
236
+ name: d(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon),
237
237
  size: 18,
238
- color: (m(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon) || "").startsWith("antd:") && e.meta?.iconOptions?.iconColor || void 0,
238
+ color: (d(n === t(o).actived, e.meta?.icon, e.meta?.activeIcon) || "").startsWith("antd:") && e.meta?.iconOptions?.iconColor || void 0,
239
239
  class: "menu-item-container-icon transition-transform group-hover:scale-120 mr-5px"
240
240
  }, null, 8, ["name", "color"]))
241
241
  ], 64)) : H("", !0),
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bZ as a, b_ as t, b$ as c, c0 as o, c1 as u, c2 as r, c3 as n, c4 as i, co as b, cp as d, cq as S, bb as P, cr as f, bE as l, cs as g, ct as y, cu as p, cE as R, bY as m, c5 as A, c6 as E, ce as I, cf as M, cg as x, ch as L, bX as h, cv as C, ci as v, c8 as T, cF as w, c9 as O, ca as j, cJ as B, cH as N, cb as W, cc as q, cG as D, cj as H, ck as K, cK as U, cI as _, cw as k, cd as F, cl as Y, cm as z, c7 as G, cx as J, cD as V, cy as X, cL as Z, cM as $, cB as Q, cN as ee, cO as se, cP as ae, u as te, cC as ce, cz as oe, a as ue, bW as re, b9 as ne, cA as ie, bM as be, cn as de } from "./index-Dv7UUFkD.js";
1
+ import { bZ as a, b_ as t, b$ as c, c0 as o, c1 as u, c2 as r, c3 as n, c4 as i, co as b, cp as d, cq as S, bb as P, cr as f, bE as l, cs as g, ct as y, cu as p, cE as R, bY as m, c5 as A, c6 as E, ce as I, cf as M, cg as x, ch as L, bX as h, cv as C, ci as v, c8 as T, cF as w, c9 as O, ca as j, cJ as B, cH as N, cb as W, cc as q, cG as D, cj as H, ck as K, cK as U, cI as _, cw as k, cd as F, cl as Y, cm as z, c7 as G, cx as J, cD as V, cy as X, cL as Z, cM as $, cB as Q, cN as ee, cO as se, cP as ae, u as te, cC as ce, cz as oe, a as ue, bW as re, b9 as ne, cA as ie, bM as be, cn as de } from "./index-DZojpY-D.js";
2
2
  export {
3
3
  a as Copyright,
4
4
  t as Layout,
@@ -1,4 +1,4 @@
1
- import { bO as s, bP as t, bQ as u } from "./index-Dv7UUFkD.js";
1
+ import { bO as s, bP as t, bQ as u } from "./index-DZojpY-D.js";
2
2
  function i(n, a) {
3
3
  return s(n, a, function(e, r) {
4
4
  return t(n, r);