@pubinfo/core 2.2.3-beta.2 → 2.2.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.
- package/README.md +17 -0
- package/dist/{AppSetting-Bka_D_r8.js → AppSetting-CwuxTWPt.js} +5 -5
- package/dist/{HCheckList-BrnjaDkr.js → HCheckList-BZxixuaT.js} +1 -1
- package/dist/{PreferencesContent-rJ9y4hog.js → PreferencesContent-BIDpuGe7.js} +3 -3
- package/dist/{SettingBreadcrumb-r--jPQkb.js → SettingBreadcrumb-PvYzYhVy.js} +1 -1
- package/dist/{SettingMenu-EXak1lUo.js → SettingMenu-DJHfNix0.js} +1 -1
- package/dist/{SettingTabbar-DGM4a0Jj.js → SettingTabbar-Do168ErV.js} +1 -1
- package/dist/{SettingThemes-tF9f39iy.js → SettingThemes-Bha1CDxp.js} +1 -1
- package/dist/{SettingTopbar-YTAQFcaE.js → SettingTopbar-rW1CgSYC.js} +1 -1
- package/dist/{auth-cJIIobDi.js → auth-B7cWiVRL.js} +3 -3
- package/dist/{change-organization-BrjvU839.js → change-organization-Bt91P7NP.js} +4 -4
- package/dist/{change-password-B09dI1RQ.js → change-password-Bh4FjAnf.js} +5 -5
- package/dist/{components-CKYu3evU.js → components-H30cqLnz.js} +162 -1155
- package/dist/core/interface.d.ts +6 -1
- package/dist/{form-CmNl2b3W.js → form-DwqAreER.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/{modal-DXJis9Ay.js → modal-DkzWO8Ua.js} +3201 -3199
- package/dist/{not-found-DE1Fr95C.js → not-found-Ci0tqlzK.js} +1 -1
- package/dist/{not-permission-BbVgwOEA.js → not-permission-ASa9bvcy.js} +1 -1
- package/dist/{profile-CHNw1C_k.js → profile-Cwa9XBzn.js} +4 -4
- package/dist/{tree-select-DS-DUpQw.js → tree-select-C3OdRt4Q.js} +1 -1
- package/dist/{watchDiff-Dofh9yLN.js → watchDiff-gRr9o4Up.js} +1 -1
- package/package.json +8 -7
- package/src/core/create.ts +4 -0
- package/src/core/interface.ts +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, p as t } from "./auth-
|
|
1
|
+
import { f as e, p as t } from "./auth-B7cWiVRL.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-CsLplWgU.js";
|
|
3
3
|
import { t as r } from "./HButton-pEqyd918.js";
|
|
4
4
|
import { createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, onMounted as l, openBlock as u, ref as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as e } from "./auth-
|
|
1
|
+
import { d as e } from "./auth-B7cWiVRL.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-CsLplWgU.js";
|
|
3
3
|
import { t as n } from "./HButton-pEqyd918.js";
|
|
4
4
|
import { createElementBlock as r, createElementVNode as i, createTextVNode as a, createVNode as o, defineComponent as s, onMounted as c, onUnmounted as l, openBlock as u, ref as d, toDisplayString as f, unref as p, withCtx as m } from "vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as e, t } from "./chunk-BdsCSvBP.js";
|
|
2
|
-
import { $ as n, $t as r, A as i, At as a, Bn as o, Cn as s, D as c, Dn as l, Dt as u, E as d, Et as f, Ft as p, G as m, Gt as h, Ht as g, It as _, Jn as v, Jt as y, Kn as b, Kt as x, Ln as S, Lt as C, Mn as w, Nn as T, Nt as E, On as D, P as O, Pt as k, Qt as A, R as j, Rt as M, S as N, Sn as P, Tt as F, Ut as I, V as ee, Vt as L, W as R, Wt as z, X as te, Xt as B, Y as ne, Yn as re, Yt as V, Z as ie, Zt as ae, _ as oe, _n as se, a as ce, an as le, b as ue, bn as de, c as fe, cn as pe, cr as me, dn as he, dt as ge, en as _e, er as ve, et as H, f as ye, fn as be, ft as xe, gn as Se, gr as Ce, gt as we, h as Te, hn as Ee, ht as De, i as Oe, in as ke, jt as Ae, k as je, kn as Me, kt as Ne, l as Pe, ln as Fe, lr as Ie, lt as Le, m as Re, mn as ze, mr as Be, mt as Ve, nn as He, nr as Ue, nt as We, o as Ge, or as Ke, ot as qe, p as Je, pr as Ye, pt as Xe, qn as Ze, qt as U, rn as Qe, rr as $e, rt as et, s as tt, sn as nt, st as rt, t as it, tn as at, tr as ot, tt as st, ut as ct, v as lt, vn as ut, vr as dt, vt as ft, w as pt, wn as W, x as mt, y as G, yn as K, yt as ht, z as gt, zn as _t } from "./modal-
|
|
3
|
-
import { x as vt } from "./auth-
|
|
4
|
-
import { $ as yt, A as bt, B as xt, Bt as St, C as Ct, Ct as wt, D as Tt, E as Et, F as Dt, G as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, K as Pt, L as Ft, M as It, N as Lt, O as Rt, P as zt, Q as Bt, R as Vt, Rt as Ht, S as Ut, St as Wt, T as Gt, Tt as Kt, U as qt, Ut as Jt, V as Yt, W as Xt, X as Zt, Z as Qt, _ as $t, _t as en, a as tn, at as nn, b as rn, bt as an, c as on, ct as sn, d as cn, dt as ln, et as un, f as dn, g as fn, gt as pn, h as mn, ht as hn, i as gn, it as _n, j as vn, jt as yn, k as bn, l as xn, m as Sn, mt as Cn, n as wn, nt as Tn, o as En, p as Dn, pt as On, q as kn, r as An, rt as jn, st as Mn, t as Nn, tt as Pn, ut as Fn, v as In, vt as Ln, w as Rn, wt as zn, x as Bn, xt as Vn, y as Hn, yt as Un, z as Wn, zt as Gn } from "./tree-select-
|
|
5
|
-
import { C as Kn, D as qn, E as Jn, S as Yn, T as Xn, _ as Zn, a as Qn, b as $n, c as er, d as tr, f as nr, g as rr, h as ir, i as ar, l as or, m as sr, n as cr, o as lr, p as ur, r as dr, s as fr, t as pr, u as mr, v as hr, w as gr, x as _r, y as vr } from "./form-
|
|
2
|
+
import { $ as n, $t as r, A as i, At as a, Bn as o, Cn as s, D as c, Dn as l, Dt as u, E as d, Et as f, Ft as p, G as m, Gt as h, Ht as g, It as _, Jn as v, Jt as y, Kn as b, Kt as x, Ln as S, Lt as C, Mn as w, Nn as T, Nt as E, On as D, P as O, Pt as k, Qt as A, R as j, Rt as M, S as N, Sn as P, Tt as F, Ut as I, V as ee, Vt as L, W as R, Wt as z, X as te, Xt as B, Y as ne, Yn as re, Yt as V, Z as ie, Zt as ae, _ as oe, _n as se, a as ce, an as le, b as ue, bn as de, c as fe, cn as pe, cr as me, dn as he, dt as ge, en as _e, er as ve, et as H, f as ye, fn as be, ft as xe, gn as Se, gr as Ce, gt as we, h as Te, hn as Ee, ht as De, i as Oe, in as ke, jt as Ae, k as je, kn as Me, kt as Ne, l as Pe, ln as Fe, lr as Ie, lt as Le, m as Re, mn as ze, mr as Be, mt as Ve, nn as He, nr as Ue, nt as We, o as Ge, or as Ke, ot as qe, p as Je, pr as Ye, pt as Xe, qn as Ze, qt as U, rn as Qe, rr as $e, rt as et, s as tt, sn as nt, st as rt, t as it, tn as at, tr as ot, tt as st, ut as ct, v as lt, vn as ut, vr as dt, vt as ft, w as pt, wn as W, x as mt, y as G, yn as K, yt as ht, z as gt, zn as _t } from "./modal-DkzWO8Ua.js";
|
|
3
|
+
import { x as vt } from "./auth-B7cWiVRL.js";
|
|
4
|
+
import { $ as yt, A as bt, B as xt, Bt as St, C as Ct, Ct as wt, D as Tt, E as Et, F as Dt, G as Ot, H as kt, Ht as At, I as jt, It as Mt, J as Nt, K as Pt, L as Ft, M as It, N as Lt, O as Rt, P as zt, Q as Bt, R as Vt, Rt as Ht, S as Ut, St as Wt, T as Gt, Tt as Kt, U as qt, Ut as Jt, V as Yt, W as Xt, X as Zt, Z as Qt, _ as $t, _t as en, a as tn, at as nn, b as rn, bt as an, c as on, ct as sn, d as cn, dt as ln, et as un, f as dn, g as fn, gt as pn, h as mn, ht as hn, i as gn, it as _n, j as vn, jt as yn, k as bn, l as xn, m as Sn, mt as Cn, n as wn, nt as Tn, o as En, p as Dn, pt as On, q as kn, r as An, rt as jn, st as Mn, t as Nn, tt as Pn, ut as Fn, v as In, vt as Ln, w as Rn, wt as zn, x as Bn, xt as Vn, y as Hn, yt as Un, z as Wn, zt as Gn } from "./tree-select-C3OdRt4Q.js";
|
|
5
|
+
import { C as Kn, D as qn, E as Jn, S as Yn, T as Xn, _ as Zn, a as Qn, b as $n, c as er, d as tr, f as nr, g as rr, h as ir, i as ar, l as or, m as sr, n as cr, o as lr, p as ur, r as dr, s as fr, t as pr, u as mr, v as hr, w as gr, x as _r, y as vr } from "./form-DwqAreER.js";
|
|
6
6
|
import { Comment as yr, Fragment as br, Teleport as xr, Text as Sr, Transition as Cr, cloneVNode as wr, computed as q, createElementBlock as Tr, createElementVNode as Er, createTextVNode as Dr, createVNode as J, defineComponent as Y, getCurrentInstance as Or, getCurrentScope as kr, inject as Ar, isRef as jr, isVNode as Mr, mergeProps as Nr, nextTick as Pr, onActivated as Fr, onBeforeMount as Ir, onBeforeUnmount as Lr, onBeforeUpdate as Rr, onMounted as zr, onScopeDispose as Br, onUnmounted as Vr, onUpdated as Hr, openBlock as Ur, provide as Wr, reactive as Gr, ref as X, resolveDynamicComponent as Kr, shallowRef as Z, toRaw as qr, toRef as Q, toRefs as Jr, toValue as Yr, unref as Xr, useAttrs as Zr, useTemplateRef as Qr, vShow as $r, watch as $, watchEffect as ei, withCtx as ti, withDirectives as ni } from "vue";
|
|
7
7
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isNil.js
|
|
8
8
|
function ri(e) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $t as t, A as n, At as r, B as i, C as a, Cn as o, D as s, Dn as c, Dt as l, E as u, Et as d, Gt as f, H as p, Ht as m, In as h, J as g, Jt as _, K as v, Kt as y, M as b, Mn as x, Mt as S, Nt as C, O as w, Ot as T, P as E, Q as D, R as O, Rn as k, Rt as A, Tt as j, U as M, Ut as N, V as P, Vt as F, Wt as I, X as L, Xn as R, Xt as z, Y as ee, Yn as te, Yt as B, Zn as ne, Zt as re, _ as ie, _n as ae, _t as oe, a as se, an as ce, at as le, b as ue, bn as de, c as fe, cn as pe, cr as me, d as he, dn as ge, dt as _e, en as ve, et as V, ft as ye, g as be, gt as xe, hr as Se, ht as Ce, in as we, j as Te, jt as Ee, kt as De, l as Oe, ln as ke, lt as Ae, m as je, mn as Me, mt as Ne, nt as Pe, on as Fe, or as Ie, p as Le, pn as Re, q as ze, qt as H, rn as Be, rt as Ve, s as He, sn as Ue, tn as We, tr as Ge, un as Ke, ur as qe, ut as Je, v as Ye, vt as Xe, w as Ze, wn as U, xn as Qe, y as W, yn as G, z as $e, zn as et } from "./modal-
|
|
1
|
+
import { $ as e, $t as t, A as n, At as r, B as i, C as a, Cn as o, D as s, Dn as c, Dt as l, E as u, Et as d, Gt as f, H as p, Ht as m, In as h, J as g, Jt as _, K as v, Kt as y, M as b, Mn as x, Mt as S, Nt as C, O as w, Ot as T, P as E, Q as D, R as O, Rn as k, Rt as A, Tt as j, U as M, Ut as N, V as P, Vt as F, Wt as I, X as L, Xn as R, Xt as z, Y as ee, Yn as te, Yt as B, Zn as ne, Zt as re, _ as ie, _n as ae, _t as oe, a as se, an as ce, at as le, b as ue, bn as de, c as fe, cn as pe, cr as me, d as he, dn as ge, dt as _e, en as ve, et as V, ft as ye, g as be, gt as xe, hr as Se, ht as Ce, in as we, j as Te, jt as Ee, kt as De, l as Oe, ln as ke, lt as Ae, m as je, mn as Me, mt as Ne, nt as Pe, on as Fe, or as Ie, p as Le, pn as Re, q as ze, qt as H, rn as Be, rt as Ve, s as He, sn as Ue, tn as We, tr as Ge, un as Ke, ur as qe, ut as Je, v as Ye, vt as Xe, w as Ze, wn as U, xn as Qe, y as W, yn as G, z as $e, zn as et } from "./modal-DkzWO8Ua.js";
|
|
2
2
|
import { Fragment as tt, Transition as nt, cloneVNode as rt, computed as K, createTextVNode as it, createVNode as q, defineComponent as J, getCurrentInstance as at, inject as ot, isRef as st, isVNode as ct, nextTick as lt, onBeforeUnmount as ut, onBeforeUpdate as dt, onMounted as ft, onUnmounted as pt, onUpdated as mt, provide as ht, reactive as gt, ref as Y, resolveDirective as _t, shallowRef as X, toRaw as vt, toRef as yt, toRefs as bt, unref as xt, vShow as St, watch as Z, watchEffect as Q, withDirectives as Ct, withModifiers as wt } from "vue";
|
|
3
3
|
//#region ../../node_modules/.pnpm/resize-observer-polyfill@1.5.1/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js
|
|
4
4
|
var Tt = (function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Gr as e, Jr as t, Kr as n, Wr as r, Yr as i, qr as a } from "./modal-
|
|
1
|
+
import { Gr as e, Jr as t, Kr as n, Wr as r, Yr as i, qr as a } from "./modal-DkzWO8Ua.js";
|
|
2
2
|
import { watch as o } from "vue";
|
|
3
3
|
//#region ../../node_modules/.pnpm/lodash-es@4.17.23/node_modules/lodash-es/isObjectLike.js
|
|
4
4
|
function s(e) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pubinfo/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.2.3
|
|
4
|
+
"version": "2.2.3",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"node": "^20.19.0 || >=22.12.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
+
"@iconify/vue": "^5.0.0",
|
|
30
31
|
"alova": "^3.5.0",
|
|
31
32
|
"pinia": "^3.0.4",
|
|
32
33
|
"vue": "^3.5.28",
|
|
33
34
|
"vue-router": "^5.0.2",
|
|
34
|
-
"@pubinfo/
|
|
35
|
-
"@pubinfo/
|
|
36
|
-
"@pubinfo/vite": "2.2.3
|
|
35
|
+
"@pubinfo/devtools": "2.2.3",
|
|
36
|
+
"@pubinfo/config": "2.2.3",
|
|
37
|
+
"@pubinfo/vite": "2.2.3"
|
|
37
38
|
},
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@alova/adapter-axios": "^2.0.17",
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
"unctx": "^2.5.0",
|
|
64
65
|
"vue-m-message": "^4.0.2",
|
|
65
66
|
"zxcvbn": "^4.4.2",
|
|
66
|
-
"@pubinfo/shared": "2.2.3
|
|
67
|
+
"@pubinfo/shared": "2.2.3"
|
|
67
68
|
},
|
|
68
69
|
"devDependencies": {
|
|
69
70
|
"@alova/mock": "^2.0.18",
|
|
@@ -93,8 +94,8 @@
|
|
|
93
94
|
"vite-plugin-dts": "^4.5.4",
|
|
94
95
|
"vue": "^3.5.28",
|
|
95
96
|
"vue-router": "^5.0.2",
|
|
96
|
-
"@pubinfo/config": "2.2.3
|
|
97
|
-
"@pubinfo/vite": "2.2.3
|
|
97
|
+
"@pubinfo/config": "2.2.3",
|
|
98
|
+
"@pubinfo/vite": "2.2.3"
|
|
98
99
|
},
|
|
99
100
|
"scripts": {
|
|
100
101
|
"dev": "vite build -w -m watch",
|
package/src/core/create.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Context, Options } from './interface';
|
|
2
2
|
|
|
3
|
+
import { addCollection as addIconCollection } from '@iconify/vue';
|
|
3
4
|
import { createPinia } from 'pinia';
|
|
4
5
|
import { createApp as createVueApp } from 'vue';
|
|
5
6
|
import { createRouter, createWebHashHistory } from 'vue-router';
|
|
@@ -35,6 +36,9 @@ export function createApp(options: Options) {
|
|
|
35
36
|
app,
|
|
36
37
|
store,
|
|
37
38
|
router,
|
|
39
|
+
icon: {
|
|
40
|
+
addIconCollection,
|
|
41
|
+
},
|
|
38
42
|
};
|
|
39
43
|
|
|
40
44
|
// 解析插件
|
package/src/core/interface.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AdapterCreateOptions, AlovaAxiosRequestConfig } from '@alova/adapter-axios';
|
|
2
|
+
import type { addCollection } from '@iconify/vue';
|
|
2
3
|
import type { Alova, AlovaGenerics, AlovaOptions, Method, ResponseCompleteHandler, ResponseErrorHandler } from 'alova';
|
|
3
4
|
import type { AxiosResponse, AxiosResponseHeaders } from 'axios';
|
|
4
5
|
import type { Pinia, StateTree } from 'pinia';
|
|
@@ -49,9 +50,13 @@ export interface Context {
|
|
|
49
50
|
app: App<Element>
|
|
50
51
|
store: Pinia
|
|
51
52
|
router: Router
|
|
53
|
+
icon: {
|
|
54
|
+
/** 注册供 PubinfoIcon 使用的 Iconify 图标集合 */
|
|
55
|
+
addIconCollection: typeof addCollection
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
|
|
54
|
-
export type Setup = (ctx: Pick<Context, 'app' | 'router' | 'store'>) => Promise<void> | void;
|
|
59
|
+
export type Setup = (ctx: Pick<Context, 'icon' | 'app' | 'router' | 'store'>) => Promise<void> | void;
|
|
55
60
|
|
|
56
61
|
export interface Module {
|
|
57
62
|
/** 唯一值 */
|