xto-fronted 0.8.4 → 0.9.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.
@@ -3,7 +3,7 @@ import { Form as Z, FormItem as m, Input as h, Select as q, InputNumber as Y, Sw
3
3
  import { Tag as E } from "@xto/data";
4
4
  import { Modal as G, Message as J } from "@xto/feedback";
5
5
  import { Button as y, Space as C } from "@xto/base";
6
- import { S as r, M as f, b as K, _ as P } from "./index-DSEQpjnn.js";
6
+ import { S as r, M as f, b as K, _ as P } from "./index-5-8RNGND.js";
7
7
  const Q = { class: "menu-page" }, W = { class: "table-section" }, X = { class: "table-toolbar" }, ee = { class: "toolbar-left" }, te = { class: "toolbar-right" }, se = { class: "table-count" }, le = { class: "table-wrapper" }, oe = { class: "data-table" }, ae = { key: 0 }, ne = { key: 1 }, de = { class: "data-row tree-row--level-0" }, ie = { class: "col-name" }, re = { class: "menu-info" }, ue = { class: "menu-icon-wrapper" }, pe = {
8
8
  viewBox: "0 0 24 24",
9
9
  fill: "none",
@@ -3,7 +3,7 @@ import { Form as N, FormItem as v, Input as x, Select as Q, Switch as S } from "
3
3
  import { Tag as W, Pagination as X } from "@xto/data";
4
4
  import { Popconfirm as Y, Modal as Z, Message as C } from "@xto/feedback";
5
5
  import { Space as L, Button as f } from "@xto/base";
6
- import { S as d, a as ee, _ as te } from "./index-DSEQpjnn.js";
6
+ import { S as d, a as ee, _ as te } from "./index-5-8RNGND.js";
7
7
  const le = { class: "role-page" }, se = { class: "search-section" }, oe = { class: "table-section" }, ae = { class: "table-toolbar" }, ne = { class: "toolbar-left" }, ie = { class: "toolbar-right" }, de = { class: "table-count" }, re = { class: "table-wrapper" }, ue = { class: "data-table" }, ce = { key: 0 }, pe = { key: 1 }, me = { class: "col-id" }, ve = { class: "id-badge" }, fe = { class: "col-name" }, ge = { class: "role-name" }, ye = { class: "col-code" }, _e = { class: "col-desc" }, ke = { class: "desc-text" }, he = { class: "col-status" }, xe = { class: "status-switch" }, Ve = { class: "col-time" }, Ee = { class: "time-text" }, be = { class: "col-actions" }, Be = { class: "pagination-wrapper" }, Ce = { class: "status-field" }, Le = { class: "status-label" }, De = /* @__PURE__ */ P({
8
8
  __name: "index",
9
9
  setup(we) {
@@ -3,7 +3,7 @@ import { Form as S, FormItem as c, Input as x, Select as W, Switch as U } from "
3
3
  import { Tag as X, Pagination as Y } from "@xto/data";
4
4
  import { Popconfirm as Z, Modal as ee, Message as C } from "@xto/feedback";
5
5
  import { Space as D, Button as g } from "@xto/base";
6
- import { S as d, a as te, _ as le } from "./index-DSEQpjnn.js";
6
+ import { S as d, a as te, _ as le } from "./index-5-8RNGND.js";
7
7
  const se = { class: "user-page" }, ae = { class: "search-section" }, oe = { class: "table-section" }, ne = { class: "table-toolbar" }, ie = { class: "toolbar-left" }, de = { class: "toolbar-right" }, re = { class: "table-count" }, ue = { class: "table-wrapper" }, me = { class: "data-table" }, ce = { key: 0 }, pe = { key: 1 }, ve = { class: "col-id" }, fe = { class: "id-badge" }, he = { class: "col-user" }, ge = { class: "user-info" }, ke = { class: "user-avatar" }, _e = { class: "user-detail" }, ye = { class: "user-nickname" }, xe = { class: "user-username" }, be = { class: "col-contact" }, Ve = { class: "contact-info" }, Ee = { class: "contact-email" }, Be = { class: "contact-phone" }, Ce = { class: "col-roles" }, De = { class: "role-tags" }, Le = { class: "col-status" }, Ae = { class: "status-switch" }, we = { class: "col-time" }, ze = { class: "time-text" }, Ne = { class: "col-actions" }, Se = { class: "pagination-wrapper" }, Ue = { class: "status-field" }, Me = { class: "status-label" }, Te = /* @__PURE__ */ R({
8
8
  __name: "index",
9
9
  setup(Fe) {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, ref as l, resolveComponent as g, openBlock as o, createElementBlock as a, createElementVNode as s, Fragment as n, renderList as c, normalizeStyle as M, toDisplayString as i, normalizeClass as v, createBlock as w, withCtx as x, createVNode as r, unref as d } from "vue";
2
2
  import { Progress as u } from "@xto/data";
3
- import { _ as b } from "./index-DSEQpjnn.js";
3
+ import { _ as b } from "./index-5-8RNGND.js";
4
4
  const Z = { class: "dashboard" }, C = { class: "stats-section" }, U = { class: "stat-icon" }, q = ["d"], B = { class: "stat-content" }, F = { class: "stat-title" }, V = { class: "stat-value" }, L = {
5
5
  key: 0,
6
6
  viewBox: "0 0 24 24",
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { F as a, c as t, G as o, d as r, e as n, H as u, L as i, i as p, M as l, b as T, f as d, g, h as R, S as c, a as h, j as k, T as f, k as S, l as U, m, n as A, o as M, p as y, q as x, r as L, s as C, t as D, u as b, v as B, w as I, x as F, y as G, z as P, A as E, B as w, C as O, D as v, E as H, I as N, J as j, K as q, N as z } from "./index-DSEQpjnn.js";
2
- import { L as K, b as X, B as Q, c as V, a as W, d as Y, e as Z, f as _, g as $, H as ee, y as se, F as ae, E as te, M as oe, h as re, i as ne, N as ue, O as ie, j as pe, k as le, z as Te, P as de, Q as ge, l as Re, m as ce, n as he, A as ke, R as fe, J as Se, S as Ue, G as me, x as Ae, T as Me, o as ye, p as xe, r as Le, q as Ce, U as De, V as be, I as Be, K as Ie, W as Fe, X as Ge, Y as Pe, Z as Ee, _ as we, C as Oe, $ as ve, u as He, s as Ne, t as je, v as qe, w as ze, D as Je } from "./user-BfEOXV7Q.js";
1
+ import { F as a, c as t, G as o, d as r, e as n, H as u, L as i, i as p, M as l, b as g, f as T, g as d, h as R, S as c, a as f, j as h, T as S, k as U, l as k, m, n as A, o as M, p as y, q as C, r as x, s as L, t as D, u as b, v as B, w as I, x as F, y as G, z as P, A as v, B as E, C as w, D as O, E as H, I as N, J as j, K as q, N as z } from "./index-5-8RNGND.js";
2
+ import { O as K, b as X, D as Q, c as V, a as W, d as Y, e as Z, f as _, g as $, J as ee, A as se, h as ae, H as te, G as oe, P as re, i as ne, j as ue, Q as ie, R as pe, k as le, l as ge, z as Te, B as de, S as Re, T as ce, m as fe, n as he, o as Se, C as Ue, U as ke, L as me, V as Ae, I as Me, y as ye, W as Ce, p as xe, q as Le, r as De, s as be, X as Be, Y as Ie, K as Fe, M as Ge, Z as Pe, _ as ve, $ as Ee, N as we, a0 as Oe, a1 as He, E as Ne, a2 as je, u as qe, t as ze, v as Je, w as Ke, x as Xe, F as Qe } from "./user-B0q24FmO.js";
3
3
  export {
4
4
  a as Footer,
5
5
  t as Forbidden,
@@ -10,21 +10,21 @@ export {
10
10
  i as Layout,
11
11
  p as Login,
12
12
  l as MenuType,
13
- T as MenuTypeOptions,
14
- d as MenuTypeText,
15
- g as NotFound,
13
+ g as MenuTypeOptions,
14
+ T as MenuTypeText,
15
+ d as NotFound,
16
16
  R as Sidebar,
17
17
  c as Status,
18
- h as StatusOptions,
19
- k as StatusText,
20
- f as Tabs,
18
+ f as StatusOptions,
19
+ h as StatusText,
20
+ S as Tabs,
21
21
  K as appConfig,
22
22
  X as batchDeleteUsers,
23
23
  Q as clearToken,
24
- S as createLayoutRoute,
24
+ U as createLayoutRoute,
25
25
  V as createMenu,
26
26
  W as createRole,
27
- U as createRouter,
27
+ k as createRouter,
28
28
  m as createTranslator,
29
29
  Y as createUser,
30
30
  A as createXtoApp,
@@ -34,67 +34,70 @@ export {
34
34
  $ as deleteUser,
35
35
  ee as getApiBaseUrl,
36
36
  se as getAppId,
37
- ae as getBasePath,
38
- te as getClientId,
39
- oe as getCode,
40
- re as getMenuList,
41
- ne as getMenuTree,
42
- ue as getRefreshTime,
43
- ie as getRefreshToken,
44
- pe as getRoleDetail,
45
- le as getRoleList,
46
- Te as getToken,
47
- de as getTokenExpire,
48
- ge as getTokenType,
49
- Re as getUserDetail,
50
- ce as getUserInfo,
51
- he as getUserList,
37
+ ae as getAppUiConfig,
38
+ te as getBasePath,
39
+ oe as getClientId,
40
+ re as getCode,
41
+ ne as getMenuList,
42
+ ue as getMenuTree,
43
+ ie as getRefreshTime,
44
+ pe as getRefreshToken,
45
+ le as getRoleDetail,
46
+ ge as getRoleList,
47
+ Te as getServerUiConfig,
48
+ de as getToken,
49
+ Re as getTokenExpire,
50
+ ce as getTokenType,
51
+ fe as getUserDetail,
52
+ he as getUserInfo,
53
+ Se as getUserList,
52
54
  y as hasPermission,
53
- x as hasRole,
54
- ke as hasToken,
55
- fe as http,
56
- Se as initAppConfig,
57
- L as isAdmin,
58
- Ue as isTokenExpired,
59
- C as layoutRoute,
60
- me as loadRuntimeConfig,
61
- Ae as local,
62
- Me as localStorageUtil,
63
- ye as login,
64
- xe as logout,
55
+ C as hasRole,
56
+ Ue as hasToken,
57
+ ke as http,
58
+ me as initAppConfig,
59
+ x as isAdmin,
60
+ Ae as isTokenExpired,
61
+ L as layoutRoute,
62
+ Me as loadRuntimeConfig,
63
+ ye as local,
64
+ Ce as localStorageUtil,
65
+ xe as login,
66
+ Le as logout,
65
67
  D as mockMenuData,
66
68
  b as permissionDirective,
67
- Le as refreshToken,
68
- Ce as resetPassword,
69
+ De as refreshToken,
70
+ be as resetPassword,
69
71
  B as resetRouter,
70
72
  I as router,
71
- De as session,
72
- be as sessionStorageUtil,
73
- Be as setApiBaseUrl,
74
- Ie as setBasePath,
75
- Fe as setCode,
76
- Ge as setRefreshTime,
77
- Pe as setRefreshToken,
78
- Ee as setToken,
79
- we as setTokenExpire,
80
- Oe as setTokenInfo,
81
- ve as setTokenType,
73
+ Be as session,
74
+ Ie as sessionStorageUtil,
75
+ Fe as setApiBaseUrl,
76
+ Ge as setBasePath,
77
+ Pe as setCode,
78
+ ve as setRefreshTime,
79
+ Ee as setRefreshToken,
80
+ we as setServerUiConfig,
81
+ Oe as setToken,
82
+ He as setTokenExpire,
83
+ Ne as setTokenInfo,
84
+ je as setTokenType,
82
85
  F as setupRouterGuards,
83
86
  G as staticRoutes,
84
- He as updateMenu,
85
- Ne as updateRole,
86
- je as updateRoleStatus,
87
- qe as updateUser,
88
- ze as updateUserStatus,
87
+ qe as updateMenu,
88
+ ze as updateRole,
89
+ Je as updateRoleStatus,
90
+ Ke as updateUser,
91
+ Xe as updateUserStatus,
89
92
  P as useApp,
90
- E as useAppStore,
91
- w as useAuth,
92
- O as useAuthStore,
93
- v as useForm,
93
+ v as useAppStore,
94
+ E as useAuth,
95
+ w as useAuthStore,
96
+ O as useForm,
94
97
  H as useI18n,
95
98
  N as useLocaleStore,
96
99
  j as useMenuStore,
97
100
  q as useTable,
98
101
  z as useUserStore,
99
- Je as withBasePath
102
+ Qe as withBasePath
100
103
  };
@@ -15,6 +15,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
15
15
  showFooter: import('vue').Ref<boolean, boolean>;
16
16
  showBreadcrumb: import('vue').Ref<boolean, boolean>;
17
17
  primaryColor: import('vue').Ref<string, string>;
18
+ allowUserOverride: import('vue').Ref<boolean, boolean>;
18
19
  cachedViews: import('vue').Ref<string[], string[]>;
19
20
  mixSubMenus: import('vue').Ref<any[], any[]>;
20
21
  themeClass: import('vue').ComputedRef<"light" | "dark">;
@@ -29,12 +30,13 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
29
30
  toggleFooter: () => void;
30
31
  toggleBreadcrumb: () => void;
31
32
  setPrimaryColor: (color: string) => void;
33
+ resetToServerDefaults: () => void;
32
34
  addCachedView: (name: string) => void;
33
35
  removeCachedView: (name: string) => void;
34
36
  clearCachedViews: () => void;
35
37
  setMixSubMenus: (menus: any[]) => void;
36
38
  initTheme: () => void;
37
- }, "appName" | "indexPath" | "loginPath" | "isDark" | "theme" | "layout" | "isCollapsed" | "showTabs" | "showFooter" | "showBreadcrumb" | "primaryColor" | "cachedViews" | "mixSubMenus">, Pick<{
39
+ }, "layout" | "primaryColor" | "theme" | "isDark" | "showTabs" | "showBreadcrumb" | "showFooter" | "appName" | "indexPath" | "loginPath" | "isCollapsed" | "allowUserOverride" | "cachedViews" | "mixSubMenus">, Pick<{
38
40
  appName: import('vue').Ref<string, string>;
39
41
  indexPath: import('vue').Ref<string, string>;
40
42
  loginPath: import('vue').Ref<string, string>;
@@ -46,6 +48,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
46
48
  showFooter: import('vue').Ref<boolean, boolean>;
47
49
  showBreadcrumb: import('vue').Ref<boolean, boolean>;
48
50
  primaryColor: import('vue').Ref<string, string>;
51
+ allowUserOverride: import('vue').Ref<boolean, boolean>;
49
52
  cachedViews: import('vue').Ref<string[], string[]>;
50
53
  mixSubMenus: import('vue').Ref<any[], any[]>;
51
54
  themeClass: import('vue').ComputedRef<"light" | "dark">;
@@ -60,6 +63,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
60
63
  toggleFooter: () => void;
61
64
  toggleBreadcrumb: () => void;
62
65
  setPrimaryColor: (color: string) => void;
66
+ resetToServerDefaults: () => void;
63
67
  addCachedView: (name: string) => void;
64
68
  removeCachedView: (name: string) => void;
65
69
  clearCachedViews: () => void;
@@ -77,6 +81,7 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
77
81
  showFooter: import('vue').Ref<boolean, boolean>;
78
82
  showBreadcrumb: import('vue').Ref<boolean, boolean>;
79
83
  primaryColor: import('vue').Ref<string, string>;
84
+ allowUserOverride: import('vue').Ref<boolean, boolean>;
80
85
  cachedViews: import('vue').Ref<string[], string[]>;
81
86
  mixSubMenus: import('vue').Ref<any[], any[]>;
82
87
  themeClass: import('vue').ComputedRef<"light" | "dark">;
@@ -91,9 +96,10 @@ export declare const useAppStore: import('pinia').StoreDefinition<"app", Pick<{
91
96
  toggleFooter: () => void;
92
97
  toggleBreadcrumb: () => void;
93
98
  setPrimaryColor: (color: string) => void;
99
+ resetToServerDefaults: () => void;
94
100
  addCachedView: (name: string) => void;
95
101
  removeCachedView: (name: string) => void;
96
102
  clearCachedViews: () => void;
97
103
  setMixSubMenus: (menus: any[]) => void;
98
104
  initTheme: () => void;
99
- }, "setAppName" | "setIndexPath" | "setLoginPath" | "toggleTheme" | "toggleCollapse" | "setTheme" | "setLayout" | "toggleTabs" | "toggleFooter" | "toggleBreadcrumb" | "setPrimaryColor" | "addCachedView" | "removeCachedView" | "clearCachedViews" | "setMixSubMenus" | "initTheme">>;
105
+ }, "setAppName" | "setIndexPath" | "setLoginPath" | "toggleTheme" | "toggleCollapse" | "setTheme" | "setLayout" | "toggleTabs" | "toggleFooter" | "toggleBreadcrumb" | "setPrimaryColor" | "resetToServerDefaults" | "addCachedView" | "removeCachedView" | "clearCachedViews" | "setMixSubMenus" | "initTheme">>;