@done-coding/admin-core 0.9.0 → 0.10.0

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 (58) hide show
  1. package/docs/nested-config-paradigm.md +80 -0
  2. package/es/bridge/theme.mjs +41 -38
  3. package/es/components/app-layout/AppTheme.vue.mjs +2 -2
  4. package/es/components/app-layout/AppTheme.vue2.mjs +19 -19
  5. package/es/components/form/FormItemNestForm.vue.mjs +7 -0
  6. package/es/components/form/FormItemNestForm.vue2.mjs +49 -0
  7. package/es/components/form/FormItemNestFormList.vue.mjs +7 -0
  8. package/es/components/form/FormItemNestFormList.vue2.mjs +137 -0
  9. package/es/components/form/FormMain.vue.mjs +5 -140
  10. package/es/components/form/FormMain.vue2.mjs +160 -2
  11. package/es/components/form/FormSearch.vue.mjs +2 -2
  12. package/es/components/form/FormSearch.vue2.mjs +43 -42
  13. package/es/components/form/FormSubmitPanel.vue2.mjs +21 -20
  14. package/es/components/form/nest-form-item-list.mjs +71 -0
  15. package/es/components/form/nest-form-item.mjs +42 -0
  16. package/es/components/form/nest-registry.mjs +7 -0
  17. package/es/components/form/use-nest-form-list.mjs +22 -0
  18. package/es/components/form/use-nest-form.mjs +34 -0
  19. package/es/components/form/use-nest-layout-scale.mjs +14 -0
  20. package/es/components/form/utils.mjs +77 -61
  21. package/es/components/modal/ConfirmModal.vue.mjs +1 -2
  22. package/es/components/modal/ConfirmModal.vue2.mjs +73 -94
  23. package/es/components/modal/DetailModal.vue.mjs +6 -6
  24. package/es/components/panel/PanelItemNestForm.vue.mjs +7 -0
  25. package/es/components/panel/PanelItemNestForm.vue2.mjs +69 -0
  26. package/es/components/panel/PanelItemNestPanel.vue.mjs +34 -0
  27. package/es/components/panel/PanelItemNestPanel.vue2.mjs +4 -0
  28. package/es/components/panel/PanelMain.vue.mjs +2 -2
  29. package/es/components/panel/PanelMain.vue2.mjs +52 -45
  30. package/es/components/panel/nest-panel-form.mjs +53 -0
  31. package/es/components/panel/nest-panel-item.mjs +25 -0
  32. package/es/index.mjs +182 -153
  33. package/es/inject/key.mjs +12 -6
  34. package/es/style.css +1 -1
  35. package/package.json +2 -2
  36. package/types/bridge/index.d.ts +3 -3
  37. package/types/bridge/theme.d.ts +22 -3
  38. package/types/components/form/FormItemNestForm.vue.d.ts +36 -0
  39. package/types/components/form/FormItemNestFormList.vue.d.ts +63 -0
  40. package/types/components/form/FormMain.vue.d.ts +2 -2
  41. package/types/components/form/FormSearch.vue.d.ts +2 -2
  42. package/types/components/form/index.d.ts +9 -1
  43. package/types/components/form/nest-form-item-list.d.ts +63 -0
  44. package/types/components/form/nest-form-item.d.ts +36 -0
  45. package/types/components/form/nest-registry.d.ts +22 -0
  46. package/types/components/form/types.d.ts +2 -0
  47. package/types/components/form/use-nest-form-list.d.ts +20 -0
  48. package/types/components/form/use-nest-form.d.ts +26 -0
  49. package/types/components/form/use-nest-layout-scale.d.ts +17 -0
  50. package/types/components/form/utils.d.ts +26 -1
  51. package/types/components/panel/PanelItemNestForm.vue.d.ts +35 -0
  52. package/types/components/panel/PanelItemNestPanel.vue.d.ts +22 -0
  53. package/types/components/panel/index.d.ts +5 -1
  54. package/types/components/panel/nest-panel-form.d.ts +38 -0
  55. package/types/components/panel/nest-panel-item.d.ts +28 -0
  56. package/types/components/panel/types.d.ts +2 -0
  57. package/types/components/table/TableMain.vue.d.ts +2 -2
  58. package/types/inject/key.d.ts +28 -1
@@ -1,75 +1,82 @@
1
- import { defineComponent as B, useCssVars as _, ref as M, computed as l, watch as E, openBlock as o, createBlock as u, unref as d, withCtx as m, createElementBlock as x, Fragment as F, renderList as L, withDirectives as j, mergeProps as P, resolveDynamicComponent as D, normalizeClass as G, createVNode as H, vShow as O } from "vue";
2
- import U from "./PanelItem.vue.mjs";
3
- import { ElCard as f, ElRow as V, ElCol as W } from "element-plus";
1
+ import { defineComponent as w, useCssVars as B, computed as s, provide as M, ref as L, watch as x, openBlock as l, createBlock as u, unref as d, withCtx as c, createElementBlock as F, Fragment as j, renderList as O, withDirectives as P, mergeProps as T, resolveDynamicComponent as U, normalizeClass as A, createVNode as D, vShow as G } from "vue";
2
+ import H from "./PanelItem.vue.mjs";
3
+ import { ElCard as f, ElRow as N, ElCol as V } from "element-plus";
4
+ import { NEST_LAYOUT_SCALE_KEY as W } from "../../inject/key.mjs";
4
5
  import { resolveFormLayout as p } from "../form/utils.mjs";
5
- const T = /* @__PURE__ */ B({
6
+ const q = /* @__PURE__ */ w({
6
7
  name: "PanelMain",
7
8
  __name: "PanelMain",
8
9
  props: {
9
10
  data: {},
10
11
  rowGutter: { default: 8 },
11
12
  layout: { default: () => ({ span: 24 }) },
13
+ layoutScale: { default: 1 },
12
14
  list: {},
13
15
  itemCard: { type: [Boolean, Object], default: () => ({ lastMarginBottom: "8px" }) },
14
16
  refreshFn: {}
15
17
  },
16
18
  emits: ["submitSuccess"],
17
- setup(s, { emit: y }) {
18
- _((t) => ({
19
- v5f184251: h.value
19
+ setup(o, { emit: y }) {
20
+ B((a) => ({
21
+ v5b714e11: h.value
20
22
  }));
21
- const r = s, v = y, n = M({}), c = l(() => r.itemCard ? f : "span"), C = l(
22
- () => `panel-main-item-col-wrap_${c.value === f ? "card" : "span"}`
23
- ), h = l(
23
+ const r = o, v = y, C = s(() => r.layoutScale ?? 1);
24
+ M(W, C);
25
+ const n = L({}), m = s(() => r.itemCard ? f : "span"), S = s(
26
+ () => `panel-main-item-col-wrap_${m.value === f ? "card" : "span"}`
27
+ ), h = s(
24
28
  () => typeof r.itemCard == "object" && r.itemCard.lastMarginBottom ? r.itemCard.lastMarginBottom : 0
25
- ), k = (t) => {
26
- const { hide: a } = t;
27
- if (typeof a == "function") {
29
+ ), k = (a) => {
30
+ const { hide: t } = a;
31
+ if (typeof t == "function") {
28
32
  const e = {
29
33
  data: r.data,
30
- value: r.data[t.key],
31
- config: t
34
+ value: r.data[a.key],
35
+ config: a
32
36
  };
33
- return !!a(e);
37
+ return !!t(e);
34
38
  }
35
- return !!a;
36
- }, g = (t) => ({
37
- ...p(r.layout),
38
- ...p(t)
39
- }), S = (t, a) => {
40
- n.value = {}, a && (n.value[t] = a);
41
- }, b = (t) => (a) => {
39
+ return !!t;
40
+ }, _ = (a) => {
41
+ const t = r.layoutScale ?? 1;
42
+ return {
43
+ ...p(r.layout, t),
44
+ ...p(a, t)
45
+ };
46
+ }, b = (a, t) => {
47
+ n.value = {}, t && (n.value[a] = t);
48
+ }, g = (a) => (t) => {
42
49
  var e;
43
- return (e = r.refreshFn) == null ? void 0 : e.call(r, a, t);
44
- }, w = (t, a) => {
45
- v("submitSuccess", a, t);
50
+ return (e = r.refreshFn) == null ? void 0 : e.call(r, t, a);
51
+ }, E = (a, t) => {
52
+ v("submitSuccess", t, a);
46
53
  };
47
- return E(
54
+ return x(
48
55
  () => r.list,
49
- (t) => {
50
- const a = t.map((e) => e.key);
56
+ (a) => {
57
+ const t = a.map((e) => e.key);
51
58
  Object.keys(n.value).forEach((e) => {
52
- a.includes(e) || delete n.value[e];
59
+ t.includes(e) || delete n.value[e];
53
60
  });
54
61
  },
55
62
  { immediate: !0 }
56
- ), (t, a) => (o(), u(d(V), { gutter: s.rowGutter }, {
57
- default: m(() => [
58
- (o(!0), x(F, null, L(s.list, (e) => j((o(), u(d(W), P({
63
+ ), (a, t) => (l(), u(d(N), { gutter: o.rowGutter }, {
64
+ default: c(() => [
65
+ (l(!0), F(j, null, O(o.list, (e) => P((l(), u(d(V), T({
59
66
  key: e.key
60
- }, { ref_for: !0 }, g(e.layout), { class: "panel-main-item-col" }), {
61
- default: m(() => [
62
- (o(), u(D(c.value), {
63
- class: G(C.value)
67
+ }, { ref_for: !0 }, _(e.layout), { class: "panel-main-item-col" }), {
68
+ default: c(() => [
69
+ (l(), u(U(m.value), {
70
+ class: A(S.value)
64
71
  }, {
65
- default: m(() => [
66
- H(U, {
67
- data: s.data,
72
+ default: c(() => [
73
+ D(H, {
74
+ data: o.data,
68
75
  config: e,
69
76
  editing: n.value[e.key] ?? !1,
70
- "refresh-fn": b(e.key),
71
- "onUpdate:editing": (i) => S(e.key, i),
72
- onSubmitSuccess: (i) => w(e.key, i)
77
+ "refresh-fn": g(e.key),
78
+ "onUpdate:editing": (i) => b(e.key, i),
79
+ onSubmitSuccess: (i) => E(e.key, i)
73
80
  }, null, 8, ["data", "config", "editing", "refresh-fn", "onUpdate:editing", "onSubmitSuccess"])
74
81
  ]),
75
82
  _: 2
@@ -77,7 +84,7 @@ const T = /* @__PURE__ */ B({
77
84
  ]),
78
85
  _: 2
79
86
  }, 1040)), [
80
- [O, !k(e)]
87
+ [G, !k(e)]
81
88
  ])), 128))
82
89
  ]),
83
90
  _: 1
@@ -85,5 +92,5 @@ const T = /* @__PURE__ */ B({
85
92
  }
86
93
  });
87
94
  export {
88
- T as default
95
+ q as default
89
96
  };
@@ -0,0 +1,53 @@
1
+ import { h as w } from "vue";
2
+ import E from "./PanelItemNestForm.vue.mjs";
3
+ import { resolveLayoutSpan as P } from "../form/utils.mjs";
4
+ function s(u) {
5
+ const {
6
+ key: m,
7
+ label: d,
8
+ list: o,
9
+ layout: n,
10
+ rowGutter: b,
11
+ submitText: f,
12
+ cancelText: y,
13
+ editable: v,
14
+ submitFn: F,
15
+ render: k,
16
+ rebase: x
17
+ } = u, g = P(n);
18
+ return {
19
+ key: m,
20
+ label: d,
21
+ layout: n,
22
+ render: k,
23
+ editable: v ?? !0,
24
+ submitFn: F,
25
+ editorRender: (t) => {
26
+ const r = t.data, e = t.config.key;
27
+ return (t.value === void 0 || t.value === null) && (r[e] = {}), [
28
+ w(E, {
29
+ data: r[e],
30
+ list: o,
31
+ rowGutter: b,
32
+ submitText: f,
33
+ cancelText: y,
34
+ // P3:父 item 代表 span + rebase 开关,供薄壳算子 FormMain 的 layoutScale
35
+ parentSpan: g,
36
+ rebase: x,
37
+ // wire:校验通过后由组件调 submit → submitFn(草稿) 回流父数据 → closeEdit 关编辑态
38
+ submit: async () => {
39
+ var a, i, l;
40
+ await ((i = (a = t.config).submitFn) == null ? void 0 : i.call(a, t.data)), (l = t.closeEdit) == null || l.call(t);
41
+ },
42
+ cancel: () => {
43
+ var a;
44
+ return (a = t.closeEdit) == null ? void 0 : a.call(t);
45
+ }
46
+ })
47
+ ];
48
+ }
49
+ };
50
+ }
51
+ export {
52
+ s as nestPanelForm
53
+ };
@@ -0,0 +1,25 @@
1
+ import { h as s } from "vue";
2
+ import u from "./PanelItemNestPanel.vue.mjs";
3
+ import { resolveLayoutSpan as f } from "../form/utils.mjs";
4
+ function b(e) {
5
+ const { key: r, label: o, list: a, layout: t, itemCard: n, rowGutter: m, rebase: i } = e, l = f(t);
6
+ return {
7
+ key: r,
8
+ label: o,
9
+ layout: t,
10
+ render: (p) => [
11
+ s(u, {
12
+ data: p.value ?? {},
13
+ list: a,
14
+ itemCard: n,
15
+ rowGutter: m,
16
+ // P3:父 item 代表 span + rebase 开关,供薄壳算子 PanelMain 的 layoutScale
17
+ parentSpan: l,
18
+ rebase: i
19
+ })
20
+ ]
21
+ };
22
+ }
23
+ export {
24
+ b as nestPanelItem
25
+ };
package/es/index.mjs CHANGED
@@ -1,168 +1,197 @@
1
- import { createAdminBridge as r } from "./bridge/index.mjs";
1
+ import { createAdminBridge as t } from "./bridge/index.mjs";
2
2
  import { default as a } from "./components/display/ActionBtn.vue.mjs";
3
- import { default as m } from "./components/display/ActionBtnGroup.vue.mjs";
4
- import { default as u } from "./components/display/BooleanTag.vue.mjs";
3
+ import { default as f } from "./components/display/ActionBtnGroup.vue.mjs";
4
+ import { default as s } from "./components/display/BooleanTag.vue.mjs";
5
5
  import { default as l } from "./components/modal/DetailModal.vue.mjs";
6
- import { default as d } from "./components/form/FormMain.vue.mjs";
7
- import { default as n } from "./components/form/FormRadioGroup.vue.mjs";
8
- import { default as c } from "./components/form/FormSelect.vue.mjs";
9
- import { default as E } from "./components/form/FormSubmitBtn.vue.mjs";
10
- import { default as P } from "./components/form/FormTree.vue.mjs";
6
+ import { default as d } from "./components/form/FormRadioGroup.vue.mjs";
7
+ import { default as n } from "./components/form/FormSelect.vue.mjs";
8
+ import { default as _ } from "./components/form/FormSubmitBtn.vue.mjs";
9
+ import { default as E } from "./components/form/FormTree.vue.mjs";
11
10
  import { default as T } from "./components/form/FormVerifyCode.vue.mjs";
12
- import { default as R } from "./components/display/HeightProvider.vue.mjs";
13
- import { default as I } from "./components/menu/MenuItemSub.vue.mjs";
14
- import { default as F } from "./components/menu/MenuTree.vue.mjs";
15
- import { default as C } from "./components/modal/ModalPorter.vue.mjs";
16
- import { default as y } from "./components/modal/ModalShelf.vue.mjs";
17
- import { default as G } from "./components/panel/PanelItem.vue.mjs";
18
- import { default as U } from "./components/misc/SelectModule.vue.mjs";
19
- import { default as N } from "./components/display/TabsMain.vue.mjs";
20
- import { default as Y } from "./components/misc/TriggerAutoImport.vue.mjs";
21
- import { default as K } from "./components/display/WatchSize.vue.mjs";
22
- import { ADMIN_BRIDGE_KEY as k, APP_LAYOUT_APP_STORE_KEY as W, APP_LAYOUT_BRIDGE_KEY as z, APP_LAYOUT_USER_STORE_KEY as X, BODY_CONTENT_VIEWPORT_HEIGHT as j, TABS_MAIN_VISUAL_LEVEL as Q, getModalShelfInjectionKey as q } from "./inject/key.mjs";
23
- import { APP_API_LIST_MODEL_KEY_CONFIG as Z } from "./config/list-model.mjs";
24
- import { default as ee } from "./components/display/ActionConfirm.vue.mjs";
25
- import { default as re } from "./components/app-layout/AppBody.vue.mjs";
26
- import { default as ae } from "./components/app-layout/AppBreadcrumb.vue.mjs";
27
- import { default as me } from "./components/app-layout/AppFooter.vue.mjs";
28
- import { default as ue } from "./components/app-layout/AppHeader.vue.mjs";
29
- import { default as le } from "./components/app-layout/AppLayout.vue.mjs";
30
- import { default as de } from "./components/app-layout/AppPage.vue.mjs";
31
- import { default as ne } from "./components/app-layout/AppSidebar.vue.mjs";
32
- import { default as ce } from "./components/misc/AutoRefresh.vue.mjs";
33
- import { default as Ee } from "./components/misc/AutoRefreshGroup.vue.mjs";
34
- import { default as Pe } from "./components/modal/ConfirmModal.vue.mjs";
35
- import { EXPORT_MAX_LIMIT as Te, OPERATE_COLUMN_PROP as ge, exportCSV as Re, pickExportColumns as Le } from "./utils/export.mjs";
36
- import { FORM_CONFIG_SELECT_ALL_VALUE as he, getConfirmPasswordRule as Fe, passwordRule as Oe, setFormComponentType as Ce } from "./helpers/form.mjs";
37
- import { FORM_ITEM_CHANGE_LOADING as ye, generateFormData as Be, getBlurSubmit as Ge, getChangeSubmit as be, getDatePickerShortcuts as Ue, getEnterSubmit as Ve, getPlaceholder as Ne, getVModelSugar as we, parseFormData as Ye, resolveFormLayout as ve, setInputComponent as Ke, setSelectComponent as He, stringifyFormData as ke, swiftFormItemConfig as We } from "./components/form/utils.mjs";
38
- import { default as Xe } from "./components/form/FormSearch.vue.mjs";
39
- import { default as Qe } from "./components/form/FormSubmitPanel.vue.mjs";
40
- import { default as Je } from "./components/form/FormVerifyImage.vue.mjs";
41
- import { default as $e } from "./components/list-page/ListPage.vue.mjs";
42
- import { default as oo } from "./components/panel/PanelEditSwitch.vue.mjs";
43
- import { default as to } from "./components/panel/PanelMain.vue.mjs";
44
- import { ROUTE_MODULE_LEVEL as fo, TabsMainReplaceQueryKey as mo } from "./config/route.mjs";
45
- import { default as uo } from "./components/table/TableMain.vue.mjs";
46
- import { checkLogin as lo } from "./router/guard/login.mjs";
47
- import { checkPermission as io } from "./router/guard/permission.mjs";
48
- import { countAll as Ao, createListApi as co, fetchListAll as _o } from "./helpers/list-helper.mjs";
49
- import { createAppStore as So } from "./store/app.mjs";
50
- import { createGenerateRouteMetaRawTree as Mo } from "./bridge/route.mjs";
51
- import { createGuard as go } from "./router/guard/index.mjs";
52
- import { createRoutePermissionStore as Lo } from "./store/router-permission.mjs";
53
- import { createStorageWithNamespace as ho } from "./bridge/storage.mjs";
54
- import { createUseState as Oo } from "./bridge/state.mjs";
55
- import { createUserStore as Do } from "./store/user.mjs";
56
- import { flatRouteMetaResolveRaw as Bo, getRoutePermissionKey as Go } from "./utils/router.mjs";
57
- import { getId as Uo } from "./utils/id.mjs";
58
- import { themeScaleDerive as No, themeScaleMix as wo } from "./utils/theme-scale.mjs";
59
- import { timeCountDown as vo } from "./utils/time.mjs";
60
- import { useActivated as Ho, useActivatedEvent as ko, useActivatedExec as Wo } from "./hooks/activated.mjs";
61
- import { useAdminThemeApply as Xo } from "./hooks/use-admin-theme-apply.mjs";
62
- import { useAdminViewportApply as Qo } from "./hooks/use-admin-viewport-apply.mjs";
63
- import { useBreakpoint as Jo } from "./hooks/use-breakpoint.mjs";
64
- import { useChannelViewportHeight as $o } from "./hooks/use-channel-viewport-height.mjs";
65
- import { useFeelSize as or } from "./hooks/feel-size.mjs";
66
- import { useMenusDataDispatch as tr } from "./hooks/menus-dispatch.mjs";
67
- import { useTimeout as fr } from "./hooks/timeout.mjs";
11
+ import { default as F } from "./components/display/HeightProvider.vue.mjs";
12
+ import { default as L } from "./components/menu/MenuItemSub.vue.mjs";
13
+ import { default as R } from "./components/menu/MenuTree.vue.mjs";
14
+ import { default as O } from "./components/modal/ModalPorter.vue.mjs";
15
+ import { default as N } from "./components/modal/ModalShelf.vue.mjs";
16
+ import { default as D } from "./components/panel/PanelItem.vue.mjs";
17
+ import { default as Y } from "./components/panel/PanelItemNestPanel.vue.mjs";
18
+ import { default as G } from "./components/misc/SelectModule.vue.mjs";
19
+ import { default as b } from "./components/display/TabsMain.vue.mjs";
20
+ import { default as K } from "./components/misc/TriggerAutoImport.vue.mjs";
21
+ import { default as w } from "./components/display/WatchSize.vue.mjs";
22
+ import { ADMIN_BRIDGE_KEY as k, APP_LAYOUT_APP_STORE_KEY as W, APP_LAYOUT_BRIDGE_KEY as z, APP_LAYOUT_USER_STORE_KEY as X, BODY_CONTENT_VIEWPORT_HEIGHT as j, FORM_NEST_REGISTRY_KEY as Q, NEST_LAYOUT_SCALE_KEY as q, TABS_MAIN_VISUAL_LEVEL as J, getModalShelfInjectionKey as Z } from "./inject/key.mjs";
23
+ import { APP_API_LIST_MODEL_KEY_CONFIG as ee } from "./config/list-model.mjs";
24
+ import { default as te } from "./components/display/ActionConfirm.vue.mjs";
25
+ import { default as ae } from "./components/app-layout/AppBody.vue.mjs";
26
+ import { default as fe } from "./components/app-layout/AppBreadcrumb.vue.mjs";
27
+ import { default as se } from "./components/app-layout/AppFooter.vue.mjs";
28
+ import { default as le } from "./components/app-layout/AppHeader.vue.mjs";
29
+ import { default as de } from "./components/app-layout/AppLayout.vue.mjs";
30
+ import { default as ne } from "./components/app-layout/AppPage.vue.mjs";
31
+ import { default as _e } from "./components/app-layout/AppSidebar.vue.mjs";
32
+ import { default as Ee } from "./components/misc/AutoRefresh.vue.mjs";
33
+ import { default as Te } from "./components/misc/AutoRefreshGroup.vue.mjs";
34
+ import { default as Fe } from "./components/modal/ConfirmModal.vue.mjs";
35
+ import { EXPORT_MAX_LIMIT as Le, OPERATE_COLUMN_PROP as Me, exportCSV as Re, pickExportColumns as ge } from "./utils/export.mjs";
36
+ import { FORM_CONFIG_SELECT_ALL_VALUE as he, getConfirmPasswordRule as Ne, passwordRule as Ce, setFormComponentType as De } from "./helpers/form.mjs";
37
+ import { FORM_ITEM_CHANGE_LOADING as Ye, NEST_LAYOUT_TIERS as Be, ceilToTier as Ge, generateFormData as Ue, getBlurSubmit as be, getChangeSubmit as Ve, getDatePickerShortcuts as Ke, getEnterSubmit as ve, getPlaceholder as we, getVModelSugar as He, parseFormData as ke, resolveFormLayout as We, resolveLayoutSpan as ze, setInputComponent as Xe, setSelectComponent as je, stringifyFormData as Qe, swiftFormItemConfig as qe } from "./components/form/utils.mjs";
38
+ import { default as Ze } from "./components/form/FormItemNestForm.vue.mjs";
39
+ import { default as eo } from "./components/form/FormItemNestFormList.vue.mjs";
40
+ import { default as to } from "./components/form/FormMain.vue.mjs";
41
+ import { default as ao } from "./components/form/FormSearch.vue.mjs";
42
+ import { default as fo } from "./components/form/FormSubmitPanel.vue.mjs";
43
+ import { default as so } from "./components/form/FormVerifyImage.vue.mjs";
44
+ import { default as lo } from "./components/list-page/ListPage.vue.mjs";
45
+ import { default as io } from "./components/panel/PanelEditSwitch.vue.mjs";
46
+ import { default as Ao } from "./components/panel/PanelItemNestForm.vue.mjs";
47
+ import { default as co } from "./components/panel/PanelMain.vue.mjs";
48
+ import { ROUTE_MODULE_LEVEL as So, TabsMainReplaceQueryKey as To } from "./config/route.mjs";
49
+ import { default as Fo } from "./components/table/TableMain.vue.mjs";
50
+ import { checkLogin as Lo } from "./router/guard/login.mjs";
51
+ import { checkPermission as Ro } from "./router/guard/permission.mjs";
52
+ import { countAll as Oo, createListApi as ho, fetchListAll as No } from "./helpers/list-helper.mjs";
53
+ import { createAppStore as Do } from "./store/app.mjs";
54
+ import { createGenerateRouteMetaRawTree as Yo } from "./bridge/route.mjs";
55
+ import { createGuard as Go } from "./router/guard/index.mjs";
56
+ import { createNestFormExposeMap as bo } from "./components/form/nest-registry.mjs";
57
+ import { createRoutePermissionStore as Ko } from "./store/router-permission.mjs";
58
+ import { createStorageWithNamespace as wo } from "./bridge/storage.mjs";
59
+ import { createUseState as ko } from "./bridge/state.mjs";
60
+ import { createUserStore as zo } from "./store/user.mjs";
61
+ import { flatRouteMetaResolveRaw as jo, getRoutePermissionKey as Qo } from "./utils/router.mjs";
62
+ import { getId as Jo } from "./utils/id.mjs";
63
+ import { nestFormItem as $o } from "./components/form/nest-form-item.mjs";
64
+ import { nestFormItemList as ot } from "./components/form/nest-form-item-list.mjs";
65
+ import { nestPanelForm as rt } from "./components/panel/nest-panel-form.mjs";
66
+ import { nestPanelItem as mt } from "./components/panel/nest-panel-item.mjs";
67
+ import { themeScaleDerive as pt, themeScaleMix as st } from "./utils/theme-scale.mjs";
68
+ import { timeCountDown as lt } from "./utils/time.mjs";
69
+ import { useActivated as dt, useActivatedEvent as it, useActivatedExec as nt } from "./hooks/activated.mjs";
70
+ import { useAdminThemeApply as _t } from "./hooks/use-admin-theme-apply.mjs";
71
+ import { useAdminViewportApply as Et } from "./hooks/use-admin-viewport-apply.mjs";
72
+ import { useBreakpoint as Tt } from "./hooks/use-breakpoint.mjs";
73
+ import { useChannelViewportHeight as Ft } from "./hooks/use-channel-viewport-height.mjs";
74
+ import { useFeelSize as Lt } from "./hooks/feel-size.mjs";
75
+ import { useMenusDataDispatch as Rt } from "./hooks/menus-dispatch.mjs";
76
+ import { useNestForm as Ot } from "./components/form/use-nest-form.mjs";
77
+ import { useNestFormList as Nt } from "./components/form/use-nest-form-list.mjs";
78
+ import { useNestLayoutScale as Dt } from "./components/form/use-nest-layout-scale.mjs";
79
+ import { useTimeout as Yt } from "./hooks/timeout.mjs";
68
80
  export {
69
81
  k as ADMIN_BRIDGE_KEY,
70
- Z as APP_API_LIST_MODEL_KEY_CONFIG,
82
+ ee as APP_API_LIST_MODEL_KEY_CONFIG,
71
83
  W as APP_LAYOUT_APP_STORE_KEY,
72
84
  z as APP_LAYOUT_BRIDGE_KEY,
73
85
  X as APP_LAYOUT_USER_STORE_KEY,
74
86
  a as ActionBtn,
75
- m as ActionBtnGroup,
76
- ee as ActionConfirm,
77
- re as AppBody,
78
- ae as AppBreadcrumb,
79
- me as AppFooter,
80
- ue as AppHeader,
81
- le as AppLayout,
82
- de as AppPage,
83
- ne as AppSidebar,
84
- ce as AutoRefresh,
85
- Ee as AutoRefreshGroup,
87
+ f as ActionBtnGroup,
88
+ te as ActionConfirm,
89
+ ae as AppBody,
90
+ fe as AppBreadcrumb,
91
+ se as AppFooter,
92
+ le as AppHeader,
93
+ de as AppLayout,
94
+ ne as AppPage,
95
+ _e as AppSidebar,
96
+ Ee as AutoRefresh,
97
+ Te as AutoRefreshGroup,
86
98
  j as BODY_CONTENT_VIEWPORT_HEIGHT,
87
- u as BooleanTag,
88
- Pe as ConfirmModal,
99
+ s as BooleanTag,
100
+ Fe as ConfirmModal,
89
101
  l as DetailModal,
90
- Te as EXPORT_MAX_LIMIT,
102
+ Le as EXPORT_MAX_LIMIT,
91
103
  he as FORM_CONFIG_SELECT_ALL_VALUE,
92
- ye as FORM_ITEM_CHANGE_LOADING,
93
- d as FormMain,
94
- n as FormRadioGroup,
95
- Xe as FormSearch,
96
- c as FormSelect,
97
- E as FormSubmitBtn,
98
- Qe as FormSubmitPanel,
99
- P as FormTree,
104
+ Ye as FORM_ITEM_CHANGE_LOADING,
105
+ Q as FORM_NEST_REGISTRY_KEY,
106
+ Ze as FormItemNestForm,
107
+ eo as FormItemNestFormList,
108
+ to as FormMain,
109
+ d as FormRadioGroup,
110
+ ao as FormSearch,
111
+ n as FormSelect,
112
+ _ as FormSubmitBtn,
113
+ fo as FormSubmitPanel,
114
+ E as FormTree,
100
115
  T as FormVerifyCode,
101
- Je as FormVerifyImage,
102
- R as HeightProvider,
103
- $e as ListPage,
104
- I as MenuItemSub,
105
- F as MenuTree,
106
- C as ModalPorter,
107
- y as ModalShelf,
108
- ge as OPERATE_COLUMN_PROP,
109
- oo as PanelEditSwitch,
110
- G as PanelItem,
111
- to as PanelMain,
112
- fo as ROUTE_MODULE_LEVEL,
113
- U as SelectModule,
114
- Q as TABS_MAIN_VISUAL_LEVEL,
115
- uo as TableMain,
116
- N as TabsMain,
117
- mo as TabsMainReplaceQueryKey,
118
- Y as TriggerAutoImport,
119
- K as WatchSize,
120
- lo as checkLogin,
121
- io as checkPermission,
122
- Ao as countAll,
123
- r as createAdminBridge,
124
- So as createAppStore,
125
- Mo as createGenerateRouteMetaRawTree,
126
- go as createGuard,
127
- co as createListApi,
128
- Lo as createRoutePermissionStore,
129
- ho as createStorageWithNamespace,
130
- Oo as createUseState,
131
- Do as createUserStore,
116
+ so as FormVerifyImage,
117
+ F as HeightProvider,
118
+ lo as ListPage,
119
+ L as MenuItemSub,
120
+ R as MenuTree,
121
+ O as ModalPorter,
122
+ N as ModalShelf,
123
+ q as NEST_LAYOUT_SCALE_KEY,
124
+ Be as NEST_LAYOUT_TIERS,
125
+ Me as OPERATE_COLUMN_PROP,
126
+ io as PanelEditSwitch,
127
+ D as PanelItem,
128
+ Ao as PanelItemNestForm,
129
+ Y as PanelItemNestPanel,
130
+ co as PanelMain,
131
+ So as ROUTE_MODULE_LEVEL,
132
+ G as SelectModule,
133
+ J as TABS_MAIN_VISUAL_LEVEL,
134
+ Fo as TableMain,
135
+ b as TabsMain,
136
+ To as TabsMainReplaceQueryKey,
137
+ K as TriggerAutoImport,
138
+ w as WatchSize,
139
+ Ge as ceilToTier,
140
+ Lo as checkLogin,
141
+ Ro as checkPermission,
142
+ Oo as countAll,
143
+ t as createAdminBridge,
144
+ Do as createAppStore,
145
+ Yo as createGenerateRouteMetaRawTree,
146
+ Go as createGuard,
147
+ ho as createListApi,
148
+ bo as createNestFormExposeMap,
149
+ Ko as createRoutePermissionStore,
150
+ wo as createStorageWithNamespace,
151
+ ko as createUseState,
152
+ zo as createUserStore,
132
153
  Re as exportCSV,
133
- _o as fetchListAll,
134
- Bo as flatRouteMetaResolveRaw,
135
- Be as generateFormData,
136
- Ge as getBlurSubmit,
137
- be as getChangeSubmit,
138
- Fe as getConfirmPasswordRule,
139
- Ue as getDatePickerShortcuts,
140
- Ve as getEnterSubmit,
141
- Uo as getId,
142
- q as getModalShelfInjectionKey,
143
- Ne as getPlaceholder,
144
- Go as getRoutePermissionKey,
145
- we as getVModelSugar,
146
- Ye as parseFormData,
147
- Oe as passwordRule,
148
- Le as pickExportColumns,
149
- ve as resolveFormLayout,
150
- Ce as setFormComponentType,
151
- Ke as setInputComponent,
152
- He as setSelectComponent,
153
- ke as stringifyFormData,
154
- We as swiftFormItemConfig,
155
- No as themeScaleDerive,
156
- wo as themeScaleMix,
157
- vo as timeCountDown,
158
- Ho as useActivated,
159
- ko as useActivatedEvent,
160
- Wo as useActivatedExec,
161
- Xo as useAdminThemeApply,
162
- Qo as useAdminViewportApply,
163
- Jo as useBreakpoint,
164
- $o as useChannelViewportHeight,
165
- or as useFeelSize,
166
- tr as useMenusDataDispatch,
167
- fr as useTimeout
154
+ No as fetchListAll,
155
+ jo as flatRouteMetaResolveRaw,
156
+ Ue as generateFormData,
157
+ be as getBlurSubmit,
158
+ Ve as getChangeSubmit,
159
+ Ne as getConfirmPasswordRule,
160
+ Ke as getDatePickerShortcuts,
161
+ ve as getEnterSubmit,
162
+ Jo as getId,
163
+ Z as getModalShelfInjectionKey,
164
+ we as getPlaceholder,
165
+ Qo as getRoutePermissionKey,
166
+ He as getVModelSugar,
167
+ $o as nestFormItem,
168
+ ot as nestFormItemList,
169
+ rt as nestPanelForm,
170
+ mt as nestPanelItem,
171
+ ke as parseFormData,
172
+ Ce as passwordRule,
173
+ ge as pickExportColumns,
174
+ We as resolveFormLayout,
175
+ ze as resolveLayoutSpan,
176
+ De as setFormComponentType,
177
+ Xe as setInputComponent,
178
+ je as setSelectComponent,
179
+ Qe as stringifyFormData,
180
+ qe as swiftFormItemConfig,
181
+ pt as themeScaleDerive,
182
+ st as themeScaleMix,
183
+ lt as timeCountDown,
184
+ dt as useActivated,
185
+ it as useActivatedEvent,
186
+ nt as useActivatedExec,
187
+ _t as useAdminThemeApply,
188
+ Et as useAdminViewportApply,
189
+ Tt as useBreakpoint,
190
+ Ft as useChannelViewportHeight,
191
+ Lt as useFeelSize,
192
+ Rt as useMenusDataDispatch,
193
+ Ot as useNestForm,
194
+ Nt as useNestFormList,
195
+ Dt as useNestLayoutScale,
196
+ Yt as useTimeout
168
197
  };
package/es/inject/key.mjs CHANGED
@@ -6,21 +6,27 @@ function o(_) {
6
6
  }
7
7
  const A = Symbol.for(
8
8
  "TABS_MAIN_VISUAL_LEVEL"
9
- ), T = Symbol.for(
10
- "APP_LAYOUT_APP_STORE_KEY"
11
9
  ), S = Symbol.for(
10
+ "APP_LAYOUT_APP_STORE_KEY"
11
+ ), T = Symbol.for(
12
12
  "APP_LAYOUT_USER_STORE_KEY"
13
- ), P = Symbol.for(
13
+ ), Y = Symbol.for(
14
14
  "APP_LAYOUT_BRIDGE_KEY"
15
15
  ), O = Symbol.for(
16
16
  "ADMIN_BRIDGE_KEY"
17
+ ), I = Symbol.for(
18
+ "DC_ADMIN_FORM_NEST_REGISTRY"
19
+ ), L = Symbol.for(
20
+ "DC_ADMIN_NEST_LAYOUT_SCALE"
17
21
  );
18
22
  export {
19
23
  O as ADMIN_BRIDGE_KEY,
20
- T as APP_LAYOUT_APP_STORE_KEY,
21
- P as APP_LAYOUT_BRIDGE_KEY,
22
- S as APP_LAYOUT_USER_STORE_KEY,
24
+ S as APP_LAYOUT_APP_STORE_KEY,
25
+ Y as APP_LAYOUT_BRIDGE_KEY,
26
+ T as APP_LAYOUT_USER_STORE_KEY,
23
27
  E as BODY_CONTENT_VIEWPORT_HEIGHT,
28
+ I as FORM_NEST_REGISTRY_KEY,
29
+ L as NEST_LAYOUT_SCALE_KEY,
24
30
  A as TABS_MAIN_VISUAL_LEVEL,
25
31
  o as getModalShelfInjectionKey
26
32
  };