@yoyoboot/yoyo-admin-runtime 10.5.5 → 10.5.6
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/dist/index.es.js +1923 -1919
- package/dist/index.umd.js +17 -17
- package/dist/platform.cjs +1 -0
- package/dist/platform.mjs +103 -0
- package/dist/style.css +1 -1
- package/lib/packages/components/btn/btn.vue.d.ts +0 -11
- package/lib/packages/components/btn-group/btn-group.vue.d.ts +4 -2
- package/lib/packages/platform/contracts.d.ts +41 -0
- package/lib/packages/platform/index.d.ts +2 -0
- package/lib/packages/platform/session.d.ts +9 -0
- package/lib/packages/shared/config/basic-config.d.ts +5 -5
- package/package.json +44 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function m(n){let i=null,a=0,c=null,u=!1;const d=n.now??Date.now,w=n.fetch;function g(e){var t;i=e?Object.freeze({...e,currentUser:Object.freeze({...e.currentUser}),grantedPolicies:Object.freeze({...e.grantedPolicies})}):null,(t=n.onConfigurationChanged)==null||t.call(n,i)}function l(){a++,c=null,n.storage.clear(),g(null)}function f(){var e;l(),u||(u=!0,(e=n.onUnauthorized)==null||e.call(n))}function k(e,t=null){if(e.step&&e.step!=="authenticated")throw new Error(`Additional authentication is required: ${e.step}`);if(!e.accessToken||!e.refreshToken||!Number.isFinite(e.expireInSeconds)||e.expireInSeconds<=0||!Number.isFinite(e.refreshTokenExpireInSeconds)||e.refreshTokenExpireInSeconds<=0)throw new Error("Authentication response is missing valid tokens or expiry.");const r=d(),s={accessToken:e.accessToken,refreshToken:e.refreshToken,accessTokenExpiresAt:r+e.expireInSeconds*1e3,refreshTokenExpiresAt:r+e.refreshTokenExpireInSeconds*1e3,tenantId:e.tenantId===void 0?t:e.tenantId};return n.storage.write(s),u=!1,s.accessToken}async function T(){if(c)return c;const e=n.storage.read();if(!e||e.refreshTokenExpiresAt<=d())return f(),null;const t=a,r=(async()=>{try{const s=await n.refresh(e.refreshToken,e.tenantId);return t!==a?null:k(s,e.tenantId)}catch{return t===a&&f(),null}})();c=r;try{return await r}finally{c===r&&(c=null)}}function I(e){const t=new Headers(e.headers),r=n.storage.read();return t.delete("Authorization"),t.delete("__tenant"),r&&(t.set("Authorization",`Bearer ${r.accessToken}`),r.tenantId&&t.set("__tenant",r.tenantId)),new Request(e,{headers:t})}const y=async(e,t)=>{var x,z,A;const r=a,s=new Request(e,t),S=n.storage.read();if(S&&S.accessTokenExpiresAt<=d()&&!await T())return new Response(null,{status:401});if(r!==a)return new Response(null,{status:401});const b=(x=n.storage.read())==null?void 0:x.accessToken;let o=await w(I(s.clone()));if(r!==a)return new Response(null,{status:401});if(o.status===401){const h=(z=n.storage.read())==null?void 0:z.accessToken;if(!(h&&h!==b?h:await T())||r!==a)return o;if(o=await w(I(s)),r!==a)return new Response(null,{status:401});o.status===401&&f()}return o.status===403&&((A=n.onForbidden)==null||A.call(n)),o};async function E(){const e=a,t=await n.loadConfiguration(y);if(e!==a)throw new Error("Session changed while loading configuration.");if(!t.currentUser.isAuthenticated)throw f(),new Error("The session is not authenticated.");g(t)}return{fetcher:y,get configuration(){return i},can:e=>(i==null?void 0:i.grantedPolicies[e])===!0,async restore(){n.storage.read()&&await E()},async signIn(e){l();const t=a,r=await n.authenticate(e);if(t!==a)throw new Error("Session changed while signing in.");k(r),await E()},signOut(){l(),u=!1}}}exports.createPlatformSession=m;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
function R(n) {
|
|
2
|
+
let i = null, a = 0, c = null, u = !1;
|
|
3
|
+
const d = n.now ?? Date.now, w = n.fetch;
|
|
4
|
+
function g(e) {
|
|
5
|
+
var t;
|
|
6
|
+
i = e ? Object.freeze({
|
|
7
|
+
...e,
|
|
8
|
+
currentUser: Object.freeze({ ...e.currentUser }),
|
|
9
|
+
grantedPolicies: Object.freeze({ ...e.grantedPolicies })
|
|
10
|
+
}) : null, (t = n.onConfigurationChanged) == null || t.call(n, i);
|
|
11
|
+
}
|
|
12
|
+
function h() {
|
|
13
|
+
a++, c = null, n.storage.clear(), g(null);
|
|
14
|
+
}
|
|
15
|
+
function f() {
|
|
16
|
+
var e;
|
|
17
|
+
h(), u || (u = !0, (e = n.onUnauthorized) == null || e.call(n));
|
|
18
|
+
}
|
|
19
|
+
function k(e, t = null) {
|
|
20
|
+
if (e.step && e.step !== "authenticated")
|
|
21
|
+
throw new Error(`Additional authentication is required: ${e.step}`);
|
|
22
|
+
if (!e.accessToken || !e.refreshToken || !Number.isFinite(e.expireInSeconds) || e.expireInSeconds <= 0 || !Number.isFinite(e.refreshTokenExpireInSeconds) || e.refreshTokenExpireInSeconds <= 0)
|
|
23
|
+
throw new Error("Authentication response is missing valid tokens or expiry.");
|
|
24
|
+
const r = d(), s = {
|
|
25
|
+
accessToken: e.accessToken,
|
|
26
|
+
refreshToken: e.refreshToken,
|
|
27
|
+
accessTokenExpiresAt: r + e.expireInSeconds * 1e3,
|
|
28
|
+
refreshTokenExpiresAt: r + e.refreshTokenExpireInSeconds * 1e3,
|
|
29
|
+
tenantId: e.tenantId === void 0 ? t : e.tenantId
|
|
30
|
+
};
|
|
31
|
+
return n.storage.write(s), u = !1, s.accessToken;
|
|
32
|
+
}
|
|
33
|
+
async function T() {
|
|
34
|
+
if (c) return c;
|
|
35
|
+
const e = n.storage.read();
|
|
36
|
+
if (!e || e.refreshTokenExpiresAt <= d())
|
|
37
|
+
return f(), null;
|
|
38
|
+
const t = a, r = (async () => {
|
|
39
|
+
try {
|
|
40
|
+
const s = await n.refresh(e.refreshToken, e.tenantId);
|
|
41
|
+
return t !== a ? null : k(s, e.tenantId);
|
|
42
|
+
} catch {
|
|
43
|
+
return t === a && f(), null;
|
|
44
|
+
}
|
|
45
|
+
})();
|
|
46
|
+
c = r;
|
|
47
|
+
try {
|
|
48
|
+
return await r;
|
|
49
|
+
} finally {
|
|
50
|
+
c === r && (c = null);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function I(e) {
|
|
54
|
+
const t = new Headers(e.headers), r = n.storage.read();
|
|
55
|
+
return t.delete("Authorization"), t.delete("__tenant"), r && (t.set("Authorization", `Bearer ${r.accessToken}`), r.tenantId && t.set("__tenant", r.tenantId)), new Request(e, { headers: t });
|
|
56
|
+
}
|
|
57
|
+
const x = async (e, t) => {
|
|
58
|
+
var z, A, S;
|
|
59
|
+
const r = a, s = new Request(e, t), y = n.storage.read();
|
|
60
|
+
if (y && y.accessTokenExpiresAt <= d() && !await T())
|
|
61
|
+
return new Response(null, { status: 401 });
|
|
62
|
+
if (r !== a) return new Response(null, { status: 401 });
|
|
63
|
+
const b = (z = n.storage.read()) == null ? void 0 : z.accessToken;
|
|
64
|
+
let o = await w(I(s.clone()));
|
|
65
|
+
if (r !== a) return new Response(null, { status: 401 });
|
|
66
|
+
if (o.status === 401) {
|
|
67
|
+
const l = (A = n.storage.read()) == null ? void 0 : A.accessToken;
|
|
68
|
+
if (!(l && l !== b ? l : await T()) || r !== a) return o;
|
|
69
|
+
if (o = await w(I(s)), r !== a) return new Response(null, { status: 401 });
|
|
70
|
+
o.status === 401 && f();
|
|
71
|
+
}
|
|
72
|
+
return o.status === 403 && ((S = n.onForbidden) == null || S.call(n)), o;
|
|
73
|
+
};
|
|
74
|
+
async function E() {
|
|
75
|
+
const e = a, t = await n.loadConfiguration(x);
|
|
76
|
+
if (e !== a) throw new Error("Session changed while loading configuration.");
|
|
77
|
+
if (!t.currentUser.isAuthenticated)
|
|
78
|
+
throw f(), new Error("The session is not authenticated.");
|
|
79
|
+
g(t);
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
fetcher: x,
|
|
83
|
+
get configuration() {
|
|
84
|
+
return i;
|
|
85
|
+
},
|
|
86
|
+
can: (e) => (i == null ? void 0 : i.grantedPolicies[e]) === !0,
|
|
87
|
+
async restore() {
|
|
88
|
+
n.storage.read() && await E();
|
|
89
|
+
},
|
|
90
|
+
async signIn(e) {
|
|
91
|
+
h();
|
|
92
|
+
const t = a, r = await n.authenticate(e);
|
|
93
|
+
if (t !== a) throw new Error("Session changed while signing in.");
|
|
94
|
+
k(r), await E();
|
|
95
|
+
},
|
|
96
|
+
signOut() {
|
|
97
|
+
h(), u = !1;
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export {
|
|
102
|
+
R as createPlatformSession
|
|
103
|
+
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.refresh-token[data-v-befc78ab]{padding:32px 32px 24px}.info-icon[data-v-befc78ab]{margin-right:16px;font-size:22px;color:#faad14}.title[data-v-befc78ab]{font-weight:500;font-size:16px;line-height:1.4}.main[data-v-befc78ab]{margin-left:38px;margin-top:8px;color:#000000d9}[data-v-befc78ab] .ant-statistic-content{font-size:14px}.btns[data-v-befc78ab]{text-align:right;margin-top:24px}.btns-box[data-v-c3d746c1]{background:#fff;border-bottom:1px solid #eee;display:flex;padding:7px 16px;justify-content:flex-start}.btns-box>div.left[data-v-c3d746c1]{flex:1}.btns-box>div.left .btn-margin[data-v-c3d746c1]{margin-right:18px}.btns-box>div.right[data-v-c3d746c1]{display:flex;justify-content:flex-end}.btns-box>div.right .btn-margin[data-v-c3d746c1]{margin-left:20px}[data-v-9f38a133] .ant-modal .ant-modal-body{padding:24px!important}.wrapper[data-v-9f38a133]{width:100%;height:100%;overflow:hidden}.btn[data-v-9f38a133]{margin-left:10px}.mark[data-v-9f38a133]{font-size:12px;color:red}.btn-group[data-v-9f38a133]{display:flex;flex-direction:row-reverse}.signature-body[data-v-9f38a133]{padding:24px}.signature-body .ant-card[data-v-9f38a133]{margin:30px 0 10px;border-color:transparent;box-shadow:0 0 #00000029,0 0 2px #0000001f,1px 1px 10px 2px #00000017;position:relative}.signature-body .ant-card .trapezoid[data-v-9f38a133]{position:absolute;width:60px;height:30px;background:#156bb1;color:#fff;left:4%;text-align:center;line-height:2;top:-5%;z-index:0}.signature-body .ant-card .trapezoid[data-v-9f38a133]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;background:#156bb1;transform:perspective(.5em) rotateX(2deg) scale(1.2);transform-origin:bottom left}.signature-body .ant-card-body[data-v-9f38a133]{padding:0}.collapse-area[data-v-6932ebaa]{border-radius:6px;background:#fff}[data-v-6932ebaa] .ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding:12px 24px}[data-v-6932ebaa] .ant-collapse>.ant-collapse-item>.ant-collapse-header{border-bottom:1px solid #eeeeee}[data-v-6932ebaa] .ant-collapse-content>.ant-collapse-content-box{padding:15px 24px}[data-v-6932ebaa] .ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:15px}[data-v-6932ebaa] .ant-collapse-borderless>.ant-collapse-item{border:none}.header-icon[data-v-6932ebaa]{color:#007bff}.no-icon[data-v-6932ebaa]{width:4px;height:15px;background:#007bff;border-radius:4px;display:inline-block;position:absolute;top:15px}.collapse-header[data-v-6932ebaa]{display:inline-block;font-weight:700;position:relative;padding-left:10px}.extraTpl .yo-icon-icons[data-v-6932ebaa]{font-size:13px}.extraTpl .yo-icon-zhediejiantou.up[data-v-6932ebaa]:before{display:inline-block}.extraTpl .yo-icon-zhediejiantou.down[data-v-6932ebaa]:before{transform:rotate(-180deg);display:inline-block}.select-wrapper[data-v-70267187]{position:relative}.select-wrapper .select_overlap[data-v-70267187]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-70267187]{width:100%}[data-v-70267187] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-70267187] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-70267187] .ant-select-arrow{z-index:1}.select-wrapper[data-v-0bd13bcc]{position:relative}.select-wrapper .select_overlap[data-v-0bd13bcc]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-0bd13bcc]{width:100%}.flex-layout[data-v-0bd13bcc]{width:100%;display:flex;justify-content:space-between}.reverson[data-v-0bd13bcc]{width:50%}.reverson .readonly[data-v-0bd13bcc]{background:#efefef}.default-version-box[data-v-0bd13bcc]{margin:auto 10px}.ellipsis[data-v-0bd13bcc]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block;word-break:break-all}.clear[data-v-0bd13bcc]{z-index:-1;opacity:0}.input-box.hasValue:hover .clear[data-v-0bd13bcc]{z-index:1001;opacity:1}.cdk-virtual-scroll-content-wrapper[data-v-0bd13bcc]{right:0;top:10px}.ant-input-disabled[data-v-0bd13bcc]{cursor:not-allowed;pointer-events:auto}.example-viewport[data-v-0bd13bcc]{padding:10px}.reverson-box[data-v-0bd13bcc]{margin-top:4px;display:flex}[data-v-0bd13bcc] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-0bd13bcc] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-0bd13bcc] .ant-select-arrow{z-index:1}.select-wrapper[data-v-7d7f23c1]{position:relative}.select-wrapper .select_overlap[data-v-7d7f23c1]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-7d7f23c1]{width:100%}[data-v-7d7f23c1] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-7d7f23c1] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-7d7f23c1] .ant-select-arrow{z-index:1}.select-wrapper[data-v-c2fa53c7]{position:relative}.select-wrapper .select_overlap[data-v-c2fa53c7]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-c2fa53c7]{width:100%}.flex-layout[data-v-c2fa53c7]{width:100%;display:flex;justify-content:space-between}.reverson[data-v-c2fa53c7]{width:50%}.reverson .readonly[data-v-c2fa53c7]{background:#efefef}.default-version-box[data-v-c2fa53c7]{margin:auto 10px}.ellipsis[data-v-c2fa53c7]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block;word-break:break-all}.clear[data-v-c2fa53c7]{z-index:-1;opacity:0}.input-box.hasValue:hover .clear[data-v-c2fa53c7]{z-index:1001;opacity:1}.cdk-virtual-scroll-content-wrapper[data-v-c2fa53c7]{right:0;top:10px}.ant-input-disabled[data-v-c2fa53c7]{cursor:not-allowed;pointer-events:auto}.example-viewport[data-v-c2fa53c7]{padding:10px}.reverson-box[data-v-c2fa53c7]{margin-top:4px;display:flex}[data-v-c2fa53c7] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-c2fa53c7] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-c2fa53c7] .ant-select-arrow{z-index:1}[data-v-3834b88e] .ant-select{width:100%}.modal-header[data-v-3fbd2b3d]{display:flex;flex-direction:column;margin-top:-10px}.copy-div[data-v-3fbd2b3d]{margin-top:20px}.input-width[data-v-3fbd2b3d]{width:200px}.bottom[data-v-3fbd2b3d]{text-align:right;margin-right:20px}.bottom button[data-v-3fbd2b3d]{padding:10px 30px 30px}.bottom .modal-title[data-v-3fbd2b3d]{float:left}.flex-layout[data-v-0f176624]{flex:1;background:#dcdfe4;display:flex;width:100%;height:100%;overflow:auto;flex-direction:column}.flex-content[data-v-0f176624]{display:flex;flex:1;margin-top:2px;overflow:auto}.left-body[data-v-0f176624]{width:248px;margin-right:8px;background:#fff;display:flex;flex-direction:column;overflow:auto}.left-body .suffix-search[data-v-0f176624]{padding:4px 2px}.left-body .scroll-table[data-v-0f176624]{flex:1;display:flex;flex-direction:column;overflow-y:hidden}.left-body .scroll-table .table-header[data-v-0f176624]{font-size:16px;padding:10px 24px;border-bottom:1px solid #eee}.left-body .scroll-table .scroll-box[data-v-0f176624]{flex:1;font-size:14px}.left-body .pagetion[data-v-0f176624]{padding:6px 10px 5px;text-align:center;display:flex;font-size:14px}.left-body .pagetion .btn[data-v-0f176624]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid #ccc;text-align:center;border-radius:2px;cursor:pointer}.left-body .pagetion .btn[data-v-0f176624]:hover{color:#0960bd;border:1px solid #0960bd}.left-body .pagetion .btn .page-icon[data-v-0f176624]{font-size:12px}.right-body[data-v-0f176624]{display:flex;flex:1;flex-direction:column;overflow:auto}.right-body .detail-box[data-v-0f176624]{flex:1;overflow:auto}.ant-table-thead>tr>th .ant-table-header-column[data-v-0f176624]{display:block}.ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters[data-v-0f176624]{display:flex;justify-content:space-between}.ant-table-thead>tr:first-child>th[data-v-0f176624]:last-child{padding:8px 6px}.select-box .ant-select .ant-select-selector[data-v-0f176624]{height:28px!important;line-height:28px!important;display:flex;align-items:center}[data-v-3967a774] .ant-table-body{overflow-y:auto!important}[data-v-3967a774] .ant-table-tbody>tr>td{border:none}.row-checked[data-v-3967a774]{color:#0960bd;background:#e6f7ff;font-size:16px;font-weight:700}[data-v-3967a774] .ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters{padding:10px 24px}[data-v-3967a774] .ant-table-small .ant-table-thead>tr>th{background:#fff;font-weight:700}[data-v-3967a774] .ant-table-tbody>tr>td{background:initial;border:none}[data-v-3967a774] .ant-table-tbody>tr:hover>td{background:#eee}[data-v-3967a774] .ant-spin-nested-loading{min-height:180px}[data-v-3967a774] .ant-table-cell{cursor:pointer}[data-v-3967a774] .ant-table-tbody>tr>td{padding:0}.row-td[data-v-3967a774]{padding:10px 24px}.tit-box[data-v-3967a774]{display:flex;justify-content:space-between;align-items:center}.tit-box .pageSize-box[data-v-3967a774]{display:inline-block;padding:2px 8px;background-color:#f2f2f2}[data-v-3967a774] .ant-table-fixed .ant-table-thead>tr>th{border-bottom:1px solid #efefef}[data-v-3967a774] .ant-table-thead>tr>th{max-height:48px!important;box-sizing:border-box;padding:10.5px 0 10.5px 22px!important}[data-v-3967a774] .ant-table-body::-webkit-scrollbar-thumb{background-color:#e0e0e0;box-shadow:none}[data-v-3967a774] .ant-table-body::-webkit-scrollbar-thumb:hover{background-color:#b9b9b9}[data-v-3967a774] .ant-table-body::-webkit-scrollbar-track{background-color:#fafafa}.blank-img[data-v-e9105b19]{height:100%;background:#fff;flex:1;display:flex;justify-content:center}.blank-img img[data-v-e9105b19]{align-self:center;width:295px;height:295px}html[data-theme=dark] .resize-layout[data-v-28bd6d0c]{background-color:#1d1d1d;color:#ffffffa6}html[data-theme=dark] .resize-layout-header[data-v-28bd6d0c],html[data-theme=dark] .resize-layout-sider[data-v-28bd6d0c],html[data-theme=dark] .resize-layout-content[data-v-28bd6d0c],html[data-theme=dark] .resize-layout-footer[data-v-28bd6d0c],html[data-theme=dark] .resize[data-v-28bd6d0c]{background-color:#151515;color:#ffffffa6}html[data-theme=light] .resize-layout[data-v-28bd6d0c]{background-color:#f2f5f7}html[data-theme=light] .resize-layout-header[data-v-28bd6d0c],html[data-theme=light] .resize-layout-sider[data-v-28bd6d0c],html[data-theme=light] .resize-layout-content[data-v-28bd6d0c],html[data-theme=light] .resize-layout-footer[data-v-28bd6d0c]{background-color:#fff}html[data-theme=light] .resize[data-v-28bd6d0c]{background-color:#d6d6d6}.resize-layout[data-v-28bd6d0c]{width:100%;height:100%;overflow:hidden;padding:16px;display:flex;flex-direction:column}.resize-layout-header[data-v-28bd6d0c]{margin-bottom:16px;background-color:#fff;padding:16px}.resize-layout-container[data-v-28bd6d0c]{flex:1;display:flex;overflow:hidden;position:relative;align-items:center}.resize-layout-sider[data-v-28bd6d0c]{width:auto;height:100%;overflow:auto;position:relative}.resize-layout-content[data-v-28bd6d0c]{width:100%;height:100%;flex:1;overflow:auto;position:relative}.resize-layout-footer[data-v-28bd6d0c]{position:relative;margin-top:16px}.left-sider[data-v-28bd6d0c]{position:relative;word-break:break-all}.right-sider[data-v-28bd6d0c]{position:relative}.resize[data-v-28bd6d0c]{border-radius:5px;width:10px;height:50px;background-size:cover;background-position:center;font-size:32px;color:#fff;cursor:col-resize;border:0;display:block!important;background-color:#d6d6d6}.pd[data-v-4326a09e]{padding-left:0}.edit-row[data-v-4326a09e],.h-30[data-v-4326a09e]{min-height:30px}.select-tree[data-v-c0da8946]{width:100%;height:100%;overflow:hidden}.select-tree .header[data-v-c0da8946]{display:flex;justify-content:space-between;align-items:center}.in-middle[data-v-c0da8946]{display:flex;flex-direction:column;align-items:center;justify-content:center}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper{width:100%;font-size:14px;font-weight:400}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle,[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-title{height:28px;line-height:28px}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-title>div,[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-title>span{width:100%;overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background:#009ef71a}
|
|
1
|
+
.refresh-token[data-v-befc78ab]{padding:32px 32px 24px}.info-icon[data-v-befc78ab]{margin-right:16px;font-size:22px;color:#faad14}.title[data-v-befc78ab]{font-weight:500;font-size:16px;line-height:1.4}.main[data-v-befc78ab]{margin-left:38px;margin-top:8px;color:#000000d9}[data-v-befc78ab] .ant-statistic-content{font-size:14px}.btns[data-v-befc78ab]{text-align:right;margin-top:24px}.btns-box[data-v-5f2df93b]{background:#fff;border-bottom:1px solid #eee;display:flex;padding:7px 16px;justify-content:flex-start}.btns-box>div.left[data-v-5f2df93b]{flex:1}.btns-box>div.left .btn-margin[data-v-5f2df93b]{margin-right:18px}.btns-box>div.right[data-v-5f2df93b]{display:flex;justify-content:flex-end}.btns-box>div.right .btn-margin[data-v-5f2df93b]{margin-left:20px}[data-v-9f38a133] .ant-modal .ant-modal-body{padding:24px!important}.wrapper[data-v-9f38a133]{width:100%;height:100%;overflow:hidden}.btn[data-v-9f38a133]{margin-left:10px}.mark[data-v-9f38a133]{font-size:12px;color:red}.btn-group[data-v-9f38a133]{display:flex;flex-direction:row-reverse}.signature-body[data-v-9f38a133]{padding:24px}.signature-body .ant-card[data-v-9f38a133]{margin:30px 0 10px;border-color:transparent;box-shadow:0 0 #00000029,0 0 2px #0000001f,1px 1px 10px 2px #00000017;position:relative}.signature-body .ant-card .trapezoid[data-v-9f38a133]{position:absolute;width:60px;height:30px;background:#156bb1;color:#fff;left:4%;text-align:center;line-height:2;top:-5%;z-index:0}.signature-body .ant-card .trapezoid[data-v-9f38a133]:after{content:"";position:absolute;top:0;left:0;right:0;bottom:0;z-index:-1;background:#156bb1;transform:perspective(.5em) rotateX(2deg) scale(1.2);transform-origin:bottom left}.signature-body .ant-card-body[data-v-9f38a133]{padding:0}.collapse-area[data-v-6932ebaa]{border-radius:6px;background:#fff}[data-v-6932ebaa] .ant-collapse>.ant-collapse-item.ant-collapse-no-arrow>.ant-collapse-header{padding:12px 24px}[data-v-6932ebaa] .ant-collapse>.ant-collapse-item>.ant-collapse-header{border-bottom:1px solid #eeeeee}[data-v-6932ebaa] .ant-collapse-content>.ant-collapse-content-box{padding:15px 24px}[data-v-6932ebaa] .ant-collapse-borderless>.ant-collapse-item>.ant-collapse-content>.ant-collapse-content-box{padding-top:15px}[data-v-6932ebaa] .ant-collapse-borderless>.ant-collapse-item{border:none}.header-icon[data-v-6932ebaa]{color:#007bff}.no-icon[data-v-6932ebaa]{width:4px;height:15px;background:#007bff;border-radius:4px;display:inline-block;position:absolute;top:15px}.collapse-header[data-v-6932ebaa]{display:inline-block;font-weight:700;position:relative;padding-left:10px}.select-wrapper[data-v-f8d74bff]{position:relative}.select-wrapper .select_overlap[data-v-f8d74bff]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-f8d74bff]{width:100%}[data-v-f8d74bff] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-f8d74bff] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-f8d74bff] .ant-select-arrow{z-index:1}.select-wrapper[data-v-7d6081a2]{position:relative}.select-wrapper .select_overlap[data-v-7d6081a2]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-7d6081a2]{width:100%}.flex-layout[data-v-7d6081a2]{width:100%;display:flex;justify-content:space-between}.reverson[data-v-7d6081a2]{width:50%}.reverson .readonly[data-v-7d6081a2]{background:#efefef}.default-version-box[data-v-7d6081a2]{margin:auto 10px}.ellipsis[data-v-7d6081a2]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block;word-break:break-all}.clear[data-v-7d6081a2]{z-index:-1;opacity:0}.input-box.hasValue:hover .clear[data-v-7d6081a2]{z-index:1001;opacity:1}.cdk-virtual-scroll-content-wrapper[data-v-7d6081a2]{right:0;top:10px}.ant-input-disabled[data-v-7d6081a2]{cursor:not-allowed;pointer-events:auto}.example-viewport[data-v-7d6081a2]{padding:10px}.reverson-box[data-v-7d6081a2]{margin-top:4px;display:flex}[data-v-7d6081a2] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-7d6081a2] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-7d6081a2] .ant-select-arrow{z-index:1}.select-wrapper[data-v-2f611b44]{position:relative}.select-wrapper .select_overlap[data-v-2f611b44]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-2f611b44]{width:100%}[data-v-2f611b44] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-2f611b44] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-2f611b44] .ant-select-arrow{z-index:1}.select-wrapper[data-v-484504ae]{position:relative}.select-wrapper .select_overlap[data-v-484504ae]{cursor:pointer;height:32px;width:100%;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}.select-wrapper .ant-select[data-v-484504ae]{width:100%}.flex-layout[data-v-484504ae]{width:100%;display:flex;justify-content:space-between}.reverson[data-v-484504ae]{width:50%}.reverson .readonly[data-v-484504ae]{background:#efefef}.default-version-box[data-v-484504ae]{margin:auto 10px}.ellipsis[data-v-484504ae]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;width:100%;display:inline-block;word-break:break-all}.clear[data-v-484504ae]{z-index:-1;opacity:0}.input-box.hasValue:hover .clear[data-v-484504ae]{z-index:1001;opacity:1}.cdk-virtual-scroll-content-wrapper[data-v-484504ae]{right:0;top:10px}.ant-input-disabled[data-v-484504ae]{cursor:not-allowed;pointer-events:auto}.example-viewport[data-v-484504ae]{padding:10px}.reverson-box[data-v-484504ae]{margin-top:4px;display:flex}[data-v-484504ae] .modal-div{color:#000000d9;font-size:14px;font-variant:tabular-nums;line-height:32px;display:inline-block;cursor:pointer;height:30px;position:absolute;top:1px;z-index:1;width:87%;margin-left:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;outline:none}[data-v-484504ae] .modal-div:hover~.ant-select .ant-select-selector{border:1px solid #2a7dc9}[data-v-484504ae] .ant-select-arrow{z-index:1}[data-v-3834b88e] .ant-select{width:100%}.modal-header[data-v-3fbd2b3d]{display:flex;flex-direction:column;margin-top:-10px}.copy-div[data-v-3fbd2b3d]{margin-top:20px}.input-width[data-v-3fbd2b3d]{width:200px}.bottom[data-v-3fbd2b3d]{text-align:right;margin-right:20px}.bottom button[data-v-3fbd2b3d]{padding:10px 30px 30px}.bottom .modal-title[data-v-3fbd2b3d]{float:left}.flex-layout[data-v-0f176624]{flex:1;background:#dcdfe4;display:flex;width:100%;height:100%;overflow:auto;flex-direction:column}.flex-content[data-v-0f176624]{display:flex;flex:1;margin-top:2px;overflow:auto}.left-body[data-v-0f176624]{width:248px;margin-right:8px;background:#fff;display:flex;flex-direction:column;overflow:auto}.left-body .suffix-search[data-v-0f176624]{padding:4px 2px}.left-body .scroll-table[data-v-0f176624]{flex:1;display:flex;flex-direction:column;overflow-y:hidden}.left-body .scroll-table .table-header[data-v-0f176624]{font-size:16px;padding:10px 24px;border-bottom:1px solid #eee}.left-body .scroll-table .scroll-box[data-v-0f176624]{flex:1;font-size:14px}.left-body .pagetion[data-v-0f176624]{padding:6px 10px 5px;text-align:center;display:flex;font-size:14px}.left-body .pagetion .btn[data-v-0f176624]{width:28px;height:28px;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1px solid #ccc;text-align:center;border-radius:2px;cursor:pointer}.left-body .pagetion .btn[data-v-0f176624]:hover{color:#0960bd;border:1px solid #0960bd}.left-body .pagetion .btn .page-icon[data-v-0f176624]{font-size:12px}.right-body[data-v-0f176624]{display:flex;flex:1;flex-direction:column;overflow:auto}.right-body .detail-box[data-v-0f176624]{flex:1;overflow:auto}.ant-table-thead>tr>th .ant-table-header-column[data-v-0f176624]{display:block}.ant-table-thead>tr>th .ant-table-header-column .ant-table-column-sorters[data-v-0f176624]{display:flex;justify-content:space-between}.ant-table-thead>tr:first-child>th[data-v-0f176624]:last-child{padding:8px 6px}.select-box .ant-select .ant-select-selector[data-v-0f176624]{height:28px!important;line-height:28px!important;display:flex;align-items:center}[data-v-3967a774] .ant-table-body{overflow-y:auto!important}[data-v-3967a774] .ant-table-tbody>tr>td{border:none}.row-checked[data-v-3967a774]{color:#0960bd;background:#e6f7ff;font-size:16px;font-weight:700}[data-v-3967a774] .ant-table.ant-table-small .ant-table-thead .ant-table-column-sorters{padding:10px 24px}[data-v-3967a774] .ant-table-small .ant-table-thead>tr>th{background:#fff;font-weight:700}[data-v-3967a774] .ant-table-tbody>tr>td{background:initial;border:none}[data-v-3967a774] .ant-table-tbody>tr:hover>td{background:#eee}[data-v-3967a774] .ant-spin-nested-loading{min-height:180px}[data-v-3967a774] .ant-table-cell{cursor:pointer}[data-v-3967a774] .ant-table-tbody>tr>td{padding:0}.row-td[data-v-3967a774]{padding:10px 24px}.tit-box[data-v-3967a774]{display:flex;justify-content:space-between;align-items:center}.tit-box .pageSize-box[data-v-3967a774]{display:inline-block;padding:2px 8px;background-color:#f2f2f2}[data-v-3967a774] .ant-table-fixed .ant-table-thead>tr>th{border-bottom:1px solid #efefef}[data-v-3967a774] .ant-table-thead>tr>th{max-height:48px!important;box-sizing:border-box;padding:10.5px 0 10.5px 22px!important}[data-v-3967a774] .ant-table-body::-webkit-scrollbar-thumb{background-color:#e0e0e0;box-shadow:none}[data-v-3967a774] .ant-table-body::-webkit-scrollbar-thumb:hover{background-color:#b9b9b9}[data-v-3967a774] .ant-table-body::-webkit-scrollbar-track{background-color:#fafafa}.blank-img[data-v-e9105b19]{height:100%;background:#fff;flex:1;display:flex;justify-content:center}.blank-img img[data-v-e9105b19]{align-self:center;width:295px;height:295px}html[data-theme=dark] .resize-layout[data-v-28bd6d0c]{background-color:#1d1d1d;color:#ffffffa6}html[data-theme=dark] .resize-layout-header[data-v-28bd6d0c],html[data-theme=dark] .resize-layout-sider[data-v-28bd6d0c],html[data-theme=dark] .resize-layout-content[data-v-28bd6d0c],html[data-theme=dark] .resize-layout-footer[data-v-28bd6d0c],html[data-theme=dark] .resize[data-v-28bd6d0c]{background-color:#151515;color:#ffffffa6}html[data-theme=light] .resize-layout[data-v-28bd6d0c]{background-color:#f2f5f7}html[data-theme=light] .resize-layout-header[data-v-28bd6d0c],html[data-theme=light] .resize-layout-sider[data-v-28bd6d0c],html[data-theme=light] .resize-layout-content[data-v-28bd6d0c],html[data-theme=light] .resize-layout-footer[data-v-28bd6d0c]{background-color:#fff}html[data-theme=light] .resize[data-v-28bd6d0c]{background-color:#d6d6d6}.resize-layout[data-v-28bd6d0c]{width:100%;height:100%;overflow:hidden;padding:16px;display:flex;flex-direction:column}.resize-layout-header[data-v-28bd6d0c]{margin-bottom:16px;background-color:#fff;padding:16px}.resize-layout-container[data-v-28bd6d0c]{flex:1;display:flex;overflow:hidden;position:relative;align-items:center}.resize-layout-sider[data-v-28bd6d0c]{width:auto;height:100%;overflow:auto;position:relative}.resize-layout-content[data-v-28bd6d0c]{width:100%;height:100%;flex:1;overflow:auto;position:relative}.resize-layout-footer[data-v-28bd6d0c]{position:relative;margin-top:16px}.left-sider[data-v-28bd6d0c]{position:relative;word-break:break-all}.right-sider[data-v-28bd6d0c]{position:relative}.resize[data-v-28bd6d0c]{border-radius:5px;width:10px;height:50px;background-size:cover;background-position:center;font-size:32px;color:#fff;cursor:col-resize;border:0;display:block!important;background-color:#d6d6d6}.pd[data-v-4326a09e]{padding-left:0}.edit-row[data-v-4326a09e],.h-30[data-v-4326a09e]{min-height:30px}.select-tree[data-v-c0da8946]{width:100%;height:100%;overflow:hidden}.select-tree .header[data-v-c0da8946]{display:flex;justify-content:space-between;align-items:center}.in-middle[data-v-c0da8946]{display:flex;flex-direction:column;align-items:center;justify-content:center}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper{width:100%;font-size:14px;font-weight:400}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-iconEle,[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-title{height:28px;line-height:28px}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-title>div,[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper .ant-tree-title>span{width:100%;overflow:hidden;text-overflow:ellipsis;word-break:break-all;white-space:nowrap}[data-v-c0da8946] .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{background:#009ef71a}
|
|
@@ -19,11 +19,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
type: BooleanConstructor;
|
|
20
20
|
default: boolean;
|
|
21
21
|
};
|
|
22
|
-
/** 按钮图标 */
|
|
23
|
-
icon: {
|
|
24
|
-
type: StringConstructor;
|
|
25
|
-
default: string;
|
|
26
|
-
};
|
|
27
22
|
/** 按钮事件 */
|
|
28
23
|
eventName: {
|
|
29
24
|
type: StringConstructor;
|
|
@@ -54,11 +49,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
49
|
type: BooleanConstructor;
|
|
55
50
|
default: boolean;
|
|
56
51
|
};
|
|
57
|
-
/** 按钮图标 */
|
|
58
|
-
icon: {
|
|
59
|
-
type: StringConstructor;
|
|
60
|
-
default: string;
|
|
61
|
-
};
|
|
62
52
|
/** 按钮事件 */
|
|
63
53
|
eventName: {
|
|
64
54
|
type: StringConstructor;
|
|
@@ -71,7 +61,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
61
|
}, {
|
|
72
62
|
text: string;
|
|
73
63
|
size: string;
|
|
74
|
-
icon: string;
|
|
75
64
|
disabled: boolean;
|
|
76
65
|
type: string;
|
|
77
66
|
}>;
|
|
@@ -46,13 +46,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
_momentFromNow(val: any): string;
|
|
47
47
|
fillServiceProxy(): void;
|
|
48
48
|
createServiceProxy(serviceProxyType: any): any;
|
|
49
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin,
|
|
49
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>, import("vue").ComponentOptionsMixin, "btnCallback"[], "btnCallback", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
50
|
/** 按钮列表 */
|
|
51
51
|
buttonList: {
|
|
52
52
|
type: ArrayConstructor;
|
|
53
53
|
default: any[];
|
|
54
54
|
};
|
|
55
|
-
}
|
|
55
|
+
}>> & {
|
|
56
|
+
onBtnCallback?: (...args: any[]) => any;
|
|
57
|
+
}, {
|
|
56
58
|
buttonList: unknown[];
|
|
57
59
|
}>;
|
|
58
60
|
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** Host-owned persistence. No browser storage or global singleton is selected by the platform. */
|
|
2
|
+
export interface SessionTokens {
|
|
3
|
+
accessToken: string;
|
|
4
|
+
refreshToken: string;
|
|
5
|
+
accessTokenExpiresAt: number;
|
|
6
|
+
refreshTokenExpiresAt: number;
|
|
7
|
+
tenantId: string | null;
|
|
8
|
+
}
|
|
9
|
+
export interface SessionStorage {
|
|
10
|
+
read(): SessionTokens | null;
|
|
11
|
+
write(tokens: SessionTokens): void;
|
|
12
|
+
clear(): void;
|
|
13
|
+
}
|
|
14
|
+
/** Product DTOs and ABP envelopes are mapped by the host before entering this contract. */
|
|
15
|
+
export interface AuthenticationResult {
|
|
16
|
+
accessToken?: string | null;
|
|
17
|
+
refreshToken?: string | null;
|
|
18
|
+
expireInSeconds?: number | null;
|
|
19
|
+
refreshTokenExpireInSeconds?: number | null;
|
|
20
|
+
tenantId?: string | null;
|
|
21
|
+
step?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface ApplicationConfiguration {
|
|
24
|
+
currentUser: {
|
|
25
|
+
isAuthenticated: boolean;
|
|
26
|
+
id?: string | number | null;
|
|
27
|
+
userName?: string | null;
|
|
28
|
+
};
|
|
29
|
+
grantedPolicies: Readonly<Record<string, boolean>>;
|
|
30
|
+
}
|
|
31
|
+
export interface PlatformSessionOptions<TInput, TConfiguration extends ApplicationConfiguration> {
|
|
32
|
+
storage: SessionStorage;
|
|
33
|
+
authenticate(input: TInput): Promise<AuthenticationResult>;
|
|
34
|
+
refresh(refreshToken: string, tenantId: string | null): Promise<AuthenticationResult>;
|
|
35
|
+
loadConfiguration(fetcher: typeof fetch): Promise<TConfiguration>;
|
|
36
|
+
fetch: typeof fetch;
|
|
37
|
+
now?: () => number;
|
|
38
|
+
onUnauthorized?: () => void;
|
|
39
|
+
onForbidden?: () => void;
|
|
40
|
+
onConfigurationChanged?: (configuration: Readonly<TConfiguration> | null) => void;
|
|
41
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ApplicationConfiguration, PlatformSessionOptions } from './contracts.js';
|
|
2
|
+
export declare function createPlatformSession<TInput, TConfiguration extends ApplicationConfiguration>(options: PlatformSessionOptions<TInput, TConfiguration>): {
|
|
3
|
+
fetcher: typeof fetch;
|
|
4
|
+
readonly configuration: Readonly<TConfiguration>;
|
|
5
|
+
can: (permission: string) => boolean;
|
|
6
|
+
restore(): Promise<void>;
|
|
7
|
+
signIn(input: TInput): Promise<void>;
|
|
8
|
+
signOut(): void;
|
|
9
|
+
};
|
|
@@ -30,16 +30,16 @@ export declare class BasicConfig {
|
|
|
30
30
|
/**
|
|
31
31
|
* 后端本地化和antd本地化映射
|
|
32
32
|
*/
|
|
33
|
-
antdLocaleMappings:
|
|
33
|
+
antdLocaleMappings: Record<string, unknown>;
|
|
34
34
|
/**
|
|
35
35
|
* 后端本地化和日期库本地化映射
|
|
36
36
|
*/
|
|
37
|
-
dateLocaleMappings:
|
|
37
|
+
dateLocaleMappings: Record<string, unknown>;
|
|
38
38
|
/**
|
|
39
39
|
* @deprecated 请改用 dateLocaleMappings
|
|
40
40
|
*/
|
|
41
|
-
get momentLocaleMappings():
|
|
42
|
-
set momentLocaleMappings(value:
|
|
41
|
+
get momentLocaleMappings(): Record<string, unknown>;
|
|
42
|
+
set momentLocaleMappings(value: Record<string, unknown>);
|
|
43
43
|
/** 扩展的url地址 */
|
|
44
44
|
urls: {
|
|
45
45
|
/** abp 提供的 signalr client js的加载路径 */
|
|
@@ -132,7 +132,7 @@ export declare class BasicConfig {
|
|
|
132
132
|
refreshToken: string;
|
|
133
133
|
};
|
|
134
134
|
/** 按钮图标 */
|
|
135
|
-
|
|
135
|
+
buttonIcon: {
|
|
136
136
|
create: string;
|
|
137
137
|
copy: string;
|
|
138
138
|
copyVersion: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoyoboot/yoyo-admin-runtime",
|
|
3
|
-
"version": "10.5.
|
|
3
|
+
"version": "10.5.6",
|
|
4
4
|
"author": "yoyoboot",
|
|
5
5
|
"homepage": "https://github.com/yoyoboot/YoyoBoot/tree/main/packages/yoyo-admin-runtime",
|
|
6
6
|
"repository": {
|
|
@@ -25,11 +25,53 @@
|
|
|
25
25
|
"main": "dist/index.umd.js",
|
|
26
26
|
"module": "dist/index.es.js",
|
|
27
27
|
"types": "lib/packages/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./lib/packages/index.d.ts",
|
|
31
|
+
"import": "./dist/index.es.js",
|
|
32
|
+
"require": "./dist/index.umd.js"
|
|
33
|
+
},
|
|
34
|
+
"./platform": {
|
|
35
|
+
"types": "./lib/packages/platform/index.d.ts",
|
|
36
|
+
"import": "./dist/platform.mjs",
|
|
37
|
+
"require": "./dist/platform.cjs"
|
|
38
|
+
},
|
|
39
|
+
"./*": "./*"
|
|
40
|
+
},
|
|
28
41
|
"engines": {
|
|
29
42
|
"node": ">=24.20.0 <25"
|
|
30
43
|
},
|
|
31
44
|
"dependencies": {},
|
|
32
45
|
"devDependencies": {},
|
|
46
|
+
"peerDependenciesMeta": {
|
|
47
|
+
"@ant-design/icons-vue": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"@microsoft/signalr": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"ant-design-vue": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"axios": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"dayjs": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"pinia": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"rxjs": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"vue": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"vue-router": {
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
33
75
|
"peerDependencies": {
|
|
34
76
|
"@ant-design/icons-vue": ">=6.1.0 <7",
|
|
35
77
|
"@microsoft/signalr": ">=3.1.31 <4",
|
|
@@ -39,6 +81,6 @@
|
|
|
39
81
|
"pinia": ">=2.0.12 <3",
|
|
40
82
|
"rxjs": ">=7.8.2 <8",
|
|
41
83
|
"vue": ">=3.2.45 <4",
|
|
42
|
-
"vue-router": ">=4.1.6 <
|
|
84
|
+
"vue-router": ">=4.1.6 <6"
|
|
43
85
|
}
|
|
44
86
|
}
|