@aplus-frontend/ui 0.3.9 → 0.3.11

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 (47) hide show
  1. package/es/index.mjs +222 -220
  2. package/es/src/ap-form/ap-form.vue.d.ts +1 -3
  3. package/es/src/ap-form/ap-form.vue2.mjs +101 -95
  4. package/es/src/ap-list/index.vue.mjs +37 -39
  5. package/es/src/ap-list/interface.d.ts +3 -3
  6. package/es/src/ap-table/ap-table.vue2.mjs +62 -66
  7. package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
  8. package/es/src/ap-table/hooks/use-table-paging-ng.mjs +209 -0
  9. package/es/src/ap-table/hooks/use-table-paging.d.ts +6 -0
  10. package/es/src/ap-table/interface.d.ts +4 -3
  11. package/es/src/business/ap-select-layout/index.d.ts +1 -0
  12. package/es/src/business/ap-select-layout/interface.d.ts +1 -0
  13. package/es/src/business/ap-select-layout/select-layout.vue2.mjs +69 -63
  14. package/es/src/config-provider/config-provider-props.d.ts +0 -2
  15. package/es/src/config-provider/config-provider-props.mjs +2 -4
  16. package/es/src/config-provider/config-provider.d.ts +0 -6
  17. package/es/src/config-provider/config-provider.mjs +26 -25
  18. package/es/src/config-provider/constants.d.ts +2 -0
  19. package/es/src/config-provider/constants.mjs +3 -1
  20. package/es/src/config-provider/hooks/use-global-config.d.ts +0 -2
  21. package/es/src/config-provider/index.d.ts +0 -12
  22. package/es/src/config-provider/index.mjs +17 -15
  23. package/es/src/index.mjs +207 -205
  24. package/lib/index.js +1 -1
  25. package/lib/src/ap-form/ap-form.vue.d.ts +1 -3
  26. package/lib/src/ap-form/ap-form.vue2.js +1 -1
  27. package/lib/src/ap-list/index.vue.js +1 -1
  28. package/lib/src/ap-list/interface.d.ts +3 -3
  29. package/lib/src/ap-table/ap-table.vue2.js +1 -1
  30. package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
  31. package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -0
  32. package/lib/src/ap-table/hooks/use-table-paging.d.ts +6 -0
  33. package/lib/src/ap-table/interface.d.ts +4 -3
  34. package/lib/src/business/ap-select-layout/index.d.ts +1 -0
  35. package/lib/src/business/ap-select-layout/interface.d.ts +1 -0
  36. package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
  37. package/lib/src/config-provider/config-provider-props.d.ts +0 -2
  38. package/lib/src/config-provider/config-provider-props.js +1 -1
  39. package/lib/src/config-provider/config-provider.d.ts +0 -6
  40. package/lib/src/config-provider/config-provider.js +1 -1
  41. package/lib/src/config-provider/constants.d.ts +2 -0
  42. package/lib/src/config-provider/constants.js +1 -1
  43. package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -2
  44. package/lib/src/config-provider/index.d.ts +0 -12
  45. package/lib/src/config-provider/index.js +1 -1
  46. package/lib/src/index.js +1 -1
  47. package/package.json +2 -2
@@ -1,8 +1,8 @@
1
- import { defineComponent as O, ref as r, computed as U, onMounted as W, openBlock as f, createElementBlock as p, normalizeClass as o, unref as t, createVNode as d, Transition as z, withCtx as c, withDirectives as E, createElementVNode as s, toDisplayString as $, createTextVNode as x, Fragment as R, renderList as _, renderSlot as A, vShow as N, createCommentVNode as j } from "vue";
1
+ import { defineComponent as O, ref as u, computed as U, onMounted as W, openBlock as p, createElementBlock as m, normalizeClass as a, unref as t, createVNode as d, Transition as z, withCtx as v, withDirectives as V, createElementVNode as s, toDisplayString as E, createTextVNode as $, Fragment as R, renderList as _, renderSlot as x, vShow as N, createCommentVNode as j } from "vue";
2
2
  import "../../ap-field/index.mjs";
3
3
  import { IconApLeftarrow as G, IconApMenu as H } from "@aplus-frontend/icon";
4
4
  import "../../config-provider/index.mjs";
5
- import { Tooltip as V, TypographyText as J } from "@aplus-frontend/antdv";
5
+ import { Tooltip as w, TypographyText as J } from "@aplus-frontend/antdv";
6
6
  import { debounce as K } from "lodash-unified";
7
7
  import { useNamespace as P } from "../../config-provider/hooks/use-namespace.mjs";
8
8
  import { ApFieldText as Q } from "../../ap-field/text/index.mjs";
@@ -12,62 +12,67 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
12
12
  title: {},
13
13
  request: {},
14
14
  onSearch: {},
15
- defaultFold: { type: Boolean, default: !1 }
15
+ defaultFold: { type: Boolean, default: !1 },
16
+ defaultValue: { default: "" }
16
17
  },
17
18
  emits: ["onSelect", "afterEnter", "afterLeave"],
18
- setup(w, { emit: B }) {
19
- const { b: m, be: h, bem: i } = P("ap-select-layout"), a = w, y = B, C = r(), v = r(a.defaultFold), g = r(!a.defaultFold), S = r(), T = r(), b = r(), k = r(""), L = () => {
20
- v.value = !v.value, S.value = !1, T.value = !1;
21
- }, F = (n) => {
22
- b.value = n, y("onSelect", n);
23
- }, q = K((n) => {
19
+ setup(A, { emit: B }) {
20
+ const { b: h, be: y, bem: i } = P("ap-select-layout"), o = A, C = B, g = u(), f = u(o.defaultFold), S = u(!o.defaultFold), T = u(), b = u(), k = u(), c = u(o.defaultValue), L = () => {
21
+ f.value = !f.value, T.value = !1, b.value = !1;
22
+ }, F = (l) => {
23
+ k.value = l, C("onSelect", l);
24
+ }, q = K((l) => {
24
25
  var e;
25
- k.value = (e = n.target) == null ? void 0 : e.value;
26
+ c.value = (e = l.target) == null ? void 0 : e.value;
26
27
  }, 500), D = U(() => {
27
- var n;
28
- return (n = C.value) == null ? void 0 : n.filter((e) => {
29
- var u, l;
30
- return a != null && a.onSearch ? (u = a.onSearch) == null ? void 0 : u.call(a, e, k.value) : (l = e == null ? void 0 : e.name) == null ? void 0 : l.includes(k.value);
28
+ var l;
29
+ return (l = g.value) == null ? void 0 : l.filter((e) => {
30
+ var r, n;
31
+ return o != null && o.onSearch ? (r = o.onSearch) == null ? void 0 : r.call(o, e, c.value) : (n = e == null ? void 0 : e.name) == null ? void 0 : n.includes(c.value);
31
32
  });
32
- }), I = (n) => {
33
- g.value = !0, y("afterEnter", n);
34
- }, M = (n) => {
35
- g.value = !1, y("afterLeave", n);
33
+ }), I = (l) => {
34
+ S.value = !0, C("afterEnter", l);
35
+ }, M = (l) => {
36
+ S.value = !1, C("afterLeave", l);
36
37
  };
37
38
  return W(() => {
38
- a.request().then((n) => {
39
- var e;
40
- C.value = n, F((e = C.value) == null ? void 0 : e[0]);
39
+ o.request().then((l) => {
40
+ var r;
41
+ g.value = l;
42
+ let e = (r = g.value) == null ? void 0 : r.filter(
43
+ (n) => n.name.includes(c.value)
44
+ );
45
+ F(e == null ? void 0 : e[0]);
41
46
  });
42
- }), (n, e) => {
43
- var u;
44
- return f(), p("div", {
45
- class: o(t(m)())
47
+ }), (l, e) => {
48
+ var r;
49
+ return p(), m("div", {
50
+ class: a(t(h)())
46
51
  }, [
47
52
  d(z, {
48
53
  mode: "out-in",
49
54
  onAfterEnter: I,
50
55
  onAfterLeave: M
51
56
  }, {
52
- default: c(() => [
53
- E(s("div", {
54
- class: o(t(m)("side"))
57
+ default: v(() => [
58
+ V(s("div", {
59
+ class: a(t(h)("side"))
55
60
  }, [
56
61
  s("div", {
57
- class: o(t(h)("side", "header"))
62
+ class: a(t(y)("side", "header"))
58
63
  }, [
59
- s("h3", null, $(a.title), 1),
64
+ s("h3", null, E(o.title), 1),
60
65
  s("div", {
61
- class: o(t(i)("side", "header", "imgWrap"))
66
+ class: a(t(i)("side", "header", "imgWrap"))
62
67
  }, [
63
- d(t(V), {
64
- open: S.value,
65
- "onUpdate:open": e[0] || (e[0] = (l) => S.value = l)
68
+ d(t(w), {
69
+ open: T.value,
70
+ "onUpdate:open": e[0] || (e[0] = (n) => T.value = n)
66
71
  }, {
67
- title: c(() => e[2] || (e[2] = [
68
- x("收起")
72
+ title: v(() => e[2] || (e[2] = [
73
+ $("收起")
69
74
  ])),
70
- default: c(() => [
75
+ default: v(() => [
71
76
  d(t(G), { onClick: L })
72
77
  ]),
73
78
  _: 1
@@ -75,69 +80,70 @@ const X = ["onClick"], re = /* @__PURE__ */ O({
75
80
  ], 2)
76
81
  ], 2),
77
82
  s("div", {
78
- class: o(t(h)("side", "body"))
83
+ class: a(t(y)("side", "body"))
79
84
  }, [
80
85
  s("div", {
81
- class: o(t(i)("side", "body", "search"))
86
+ class: a(t(i)("side", "body", "search"))
82
87
  }, [
83
88
  d(t(Q), {
84
89
  placeholder: "请输入",
90
+ value: c.value,
85
91
  onChange: t(q)
86
- }, null, 8, ["onChange"])
92
+ }, null, 8, ["value", "onChange"])
87
93
  ], 2),
88
94
  s("div", {
89
- class: o(t(i)("side", "body", "scroll"))
95
+ class: a(t(i)("side", "body", "scroll"))
90
96
  }, [
91
- (f(!0), p(R, null, _(D.value, (l) => E((f(), p("div", {
92
- key: l.value,
93
- class: o(`${t(i)("side", "body", "scroll-item")} ${b.value === l ? "active" : ""}`),
94
- onClick: (Y) => F(l)
97
+ (p(!0), m(R, null, _(D.value, (n) => V((p(), m("div", {
98
+ key: n.value,
99
+ class: a(`${t(i)("side", "body", "scroll-item")} ${k.value === n ? "active" : ""}`),
100
+ onClick: (Y) => F(n)
95
101
  }, [
96
- A(n.$slots, "itemRender", { item: l }, () => [
102
+ x(l.$slots, "itemRender", { item: n }, () => [
97
103
  d(t(J), {
98
- ellipsis: { tooltip: l.name },
99
- content: `${l.name}`
104
+ ellipsis: { tooltip: n.name },
105
+ content: `${n.name}`
100
106
  }, null, 8, ["ellipsis", "content"])
101
107
  ])
102
108
  ], 10, X)), [
103
- [N, g.value]
109
+ [N, S.value]
104
110
  ])), 128))
105
111
  ], 2)
106
112
  ], 2)
107
113
  ], 2), [
108
- [N, !v.value]
114
+ [N, !f.value]
109
115
  ])
110
116
  ]),
111
117
  _: 3
112
118
  }),
113
119
  s("div", {
114
- class: o(t(m)("content"))
120
+ class: a(t(h)("content"))
115
121
  }, [
116
122
  s("div", {
117
- class: o(t(h)("content", "header"))
123
+ class: a(t(y)("content", "header"))
118
124
  }, [
119
- v.value ? (f(), p("div", {
125
+ f.value ? (p(), m("div", {
120
126
  key: 0,
121
- class: o(t(i)("content", "header", "imgWrap"))
127
+ class: a(t(i)("content", "header", "imgWrap"))
122
128
  }, [
123
- d(t(V), {
124
- open: T.value,
125
- "onUpdate:open": e[1] || (e[1] = (l) => T.value = l)
129
+ d(t(w), {
130
+ open: b.value,
131
+ "onUpdate:open": e[1] || (e[1] = (n) => b.value = n)
126
132
  }, {
127
- title: c(() => e[3] || (e[3] = [
128
- x("展开")
133
+ title: v(() => e[3] || (e[3] = [
134
+ $("展开")
129
135
  ])),
130
- default: c(() => [
136
+ default: v(() => [
131
137
  d(t(H), { onClick: L })
132
138
  ]),
133
139
  _: 1
134
140
  }, 8, ["open"])
135
141
  ], 2)) : j("", !0),
136
142
  s("div", {
137
- class: o(t(i)("content", "header", "title"))
138
- }, $((u = b.value) == null ? void 0 : u.name), 3)
143
+ class: a(t(i)("content", "header", "title"))
144
+ }, E((r = k.value) == null ? void 0 : r.name), 3)
139
145
  ], 2),
140
- A(n.$slots, "default")
146
+ x(l.$slots, "default")
141
147
  ], 2)
142
148
  ], 2);
143
149
  };
@@ -131,7 +131,6 @@ export declare const configProviderProps: () => {
131
131
  };
132
132
  namespace: {
133
133
  type: StringConstructor;
134
- default: string;
135
134
  };
136
135
  api: {
137
136
  type: PropType<ApiType>;
@@ -139,7 +138,6 @@ export declare const configProviderProps: () => {
139
138
  };
140
139
  uiMode: {
141
140
  type: PropType<"aplus" | "admin">;
142
- default: string;
143
141
  };
144
142
  apUpload: {
145
143
  type: PropType<ApUploadConfig>;
@@ -7,16 +7,14 @@ const p = () => ({
7
7
  type: Object
8
8
  },
9
9
  namespace: {
10
- type: String,
11
- default: "aplus"
10
+ type: String
12
11
  },
13
12
  api: {
14
13
  type: Object,
15
14
  default: () => ({})
16
15
  },
17
16
  uiMode: {
18
- type: String,
19
- default: "aplus"
17
+ type: String
20
18
  },
21
19
  apUpload: {
22
20
  type: Object,
@@ -131,7 +131,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
131
131
  };
132
132
  namespace: {
133
133
  type: StringConstructor;
134
- default: string;
135
134
  };
136
135
  api: {
137
136
  type: PropType<ApiType>;
@@ -139,7 +138,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
139
138
  };
140
139
  uiMode: {
141
140
  type: PropType<"aplus" | "admin">;
142
- default: string;
143
141
  };
144
142
  apUpload: {
145
143
  type: PropType<ApUploadConfig>;
@@ -283,7 +281,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
283
281
  };
284
282
  namespace: {
285
283
  type: StringConstructor;
286
- default: string;
287
284
  };
288
285
  api: {
289
286
  type: PropType<ApiType>;
@@ -291,7 +288,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
291
288
  };
292
289
  uiMode: {
293
290
  type: PropType<"aplus" | "admin">;
294
- default: string;
295
291
  };
296
292
  apUpload: {
297
293
  type: PropType<ApUploadConfig>;
@@ -349,9 +345,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
349
345
  wave: {
350
346
  disabled?: boolean;
351
347
  };
352
- namespace: string;
353
348
  api: ApiType;
354
- uiMode: "aplus" | "admin";
355
349
  apUpload: ApUploadConfig;
356
350
  apDescriptions: ApDescriptionsConfig;
357
351
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
@@ -1,45 +1,46 @@
1
- import { isVNode as u, ref as c, defineComponent as s, computed as m, watch as i, createVNode as p, renderSlot as g } from "vue";
2
- import { ConfigProvider as C } from "@aplus-frontend/antdv";
3
- import { provideGlobalConfig as v } from "./hooks/use-global-config.mjs";
4
- import { configProviderProps as V } from "./config-provider-props.mjs";
5
- import { mergeAntdProvideConfig as P } from "../utils/config-provider-preset.mjs";
6
- import { generateCssVar as b, aplusCssVar as w, adminCssVar as y, setCSSVariables as M } from "./css-var.mjs";
7
- function S(e) {
8
- return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !u(e);
1
+ import { isVNode as v, ref as V, defineComponent as M, computed as n, unref as r, watch as d, createVNode as P, renderSlot as b } from "vue";
2
+ import { ConfigProvider as U } from "@aplus-frontend/antdv";
3
+ import { useGlobalConfig as f, provideGlobalConfig as A } from "./hooks/use-global-config.mjs";
4
+ import { configProviderProps as S } from "./config-provider-props.mjs";
5
+ import { mergeAntdProvideConfig as T } from "../utils/config-provider-preset.mjs";
6
+ import { generateCssVar as w, aplusCssVar as y, adminCssVar as D, setCSSVariables as E } from "./css-var.mjs";
7
+ import { DEFAULT_NAMESPACE as N, DEFAULT_UIMODE as F } from "./constants.mjs";
8
+ function L(e) {
9
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
9
10
  }
10
- const a = c({}), F = /* @__PURE__ */ s({
11
+ const c = V({}), $ = /* @__PURE__ */ M({
11
12
  name: "AplusConfigProvider",
12
- props: V(),
13
+ props: S(),
13
14
  setup(e, {
14
- slots: r
15
+ slots: l
15
16
  }) {
16
- const n = m(() => ({
17
- namespace: e.namespace,
17
+ const i = f("namespace"), a = f("uiMode"), s = n(() => e.namespace ? e.namespace : r(i) ? r(i) : N), u = n(() => e.uiMode ? e.uiMode : r(a) ? r(a) : F), m = n(() => ({
18
+ namespace: r(s),
18
19
  aplusLocale: e.aplusLocale,
19
20
  api: e.api,
20
- uiMode: e.uiMode,
21
+ uiMode: r(u),
21
22
  apUpload: e.apUpload,
22
23
  apDescriptions: e.apDescriptions,
23
24
  valueTypeMap: e.valueTypeMap,
24
25
  downloadCenterTriggerConfig: e.downloadCenterTriggerConfig,
25
26
  exportField: e.exportField
26
- })), t = v(n);
27
- return i(() => e, (o) => {
28
- a.value = P(o);
27
+ })), t = A(m);
28
+ return d(() => e, (o) => {
29
+ c.value = T(o);
29
30
  }, {
30
31
  deep: !0,
31
32
  immediate: !0
32
- }), typeof window < "u" && i(() => [e.uiMode, e.cssVar], ([o, d]) => {
33
- const l = b(d), f = {
34
- ...o === "aplus" ? w : y,
35
- ...l
33
+ }), typeof window < "u" && d(() => [r(u), e.cssVar], ([o, p]) => {
34
+ const C = w(p), g = {
35
+ ...o === "aplus" ? y : D,
36
+ ...C
36
37
  };
37
- M(f);
38
+ E(g);
38
39
  }, {
39
40
  immediate: !0
40
41
  }), () => {
41
42
  let o;
42
- return p(C, a.value, S(o = g(r, "default", {
43
+ return P(U, c.value, L(o = b(l, "default", {
43
44
  config: t == null ? void 0 : t.value
44
45
  })) ? o : {
45
46
  default: () => [o]
@@ -48,6 +49,6 @@ const a = c({}), F = /* @__PURE__ */ s({
48
49
  }
49
50
  });
50
51
  export {
51
- F as ConfigProvider,
52
- a as globalConfigCached
52
+ $ as ConfigProvider,
53
+ c as globalConfigCached
53
54
  };
@@ -47,4 +47,6 @@ export type ExportField = boolean | {
47
47
  [key: string]: string[];
48
48
  };
49
49
  };
50
+ export declare const DEFAULT_NAMESPACE = "aplus";
51
+ export declare const DEFAULT_UIMODE = "aplus";
50
52
  export {};
@@ -1,4 +1,6 @@
1
- const o = Symbol();
1
+ const o = Symbol(), t = "aplus", n = "aplus";
2
2
  export {
3
+ t as DEFAULT_NAMESPACE,
4
+ n as DEFAULT_UIMODE,
3
5
  o as configProviderContextKey
4
6
  };
@@ -133,7 +133,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
133
133
  };
134
134
  namespace: {
135
135
  type: StringConstructor;
136
- default: string;
137
136
  };
138
137
  api: {
139
138
  type: PropType<ApiType>;
@@ -141,7 +140,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
141
140
  };
142
141
  uiMode: {
143
142
  type: PropType<"aplus" | "admin">;
144
- default: string;
145
143
  };
146
144
  apUpload: {
147
145
  type: PropType<ApUploadConfig>;
@@ -136,7 +136,6 @@ export declare const APConfigProvider: {
136
136
  };
137
137
  namespace: {
138
138
  type: StringConstructor;
139
- default: string;
140
139
  };
141
140
  api: {
142
141
  type: PropType<ApiType>;
@@ -144,7 +143,6 @@ export declare const APConfigProvider: {
144
143
  };
145
144
  uiMode: {
146
145
  type: PropType<"aplus" | "admin">;
147
- default: string;
148
146
  };
149
147
  apUpload: {
150
148
  type: PropType<ApUploadConfig>;
@@ -303,9 +301,7 @@ export declare const APConfigProvider: {
303
301
  wave: {
304
302
  disabled?: boolean;
305
303
  };
306
- namespace: string;
307
304
  api: ApiType;
308
- uiMode: "aplus" | "admin";
309
305
  apUpload: ApUploadConfig;
310
306
  apDescriptions: ApDescriptionsConfig;
311
307
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
@@ -538,7 +534,6 @@ export declare const APConfigProvider: {
538
534
  };
539
535
  namespace: {
540
536
  type: StringConstructor;
541
- default: string;
542
537
  };
543
538
  api: {
544
539
  type: PropType<ApiType>;
@@ -546,7 +541,6 @@ export declare const APConfigProvider: {
546
541
  };
547
542
  uiMode: {
548
543
  type: PropType<"aplus" | "admin">;
549
- default: string;
550
544
  };
551
545
  apUpload: {
552
546
  type: PropType<ApUploadConfig>;
@@ -705,9 +699,7 @@ export declare const APConfigProvider: {
705
699
  wave: {
706
700
  disabled?: boolean;
707
701
  };
708
- namespace: string;
709
702
  api: ApiType;
710
- uiMode: "aplus" | "admin";
711
703
  apUpload: ApUploadConfig;
712
704
  apDescriptions: ApDescriptionsConfig;
713
705
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
@@ -937,7 +929,6 @@ export declare const APConfigProvider: {
937
929
  };
938
930
  namespace: {
939
931
  type: StringConstructor;
940
- default: string;
941
932
  };
942
933
  api: {
943
934
  type: PropType<ApiType>;
@@ -945,7 +936,6 @@ export declare const APConfigProvider: {
945
936
  };
946
937
  uiMode: {
947
938
  type: PropType<"aplus" | "admin">;
948
- default: string;
949
939
  };
950
940
  apUpload: {
951
941
  type: PropType<ApUploadConfig>;
@@ -1003,9 +993,7 @@ export declare const APConfigProvider: {
1003
993
  wave: {
1004
994
  disabled?: boolean;
1005
995
  };
1006
- namespace: string;
1007
996
  api: ApiType;
1008
- uiMode: "aplus" | "admin";
1009
997
  apUpload: ApUploadConfig;
1010
998
  apDescriptions: ApDescriptionsConfig;
1011
999
  valueTypeMap: Record<string, ValueTypeRenderConfig>;
@@ -2,28 +2,30 @@ import { withInstall as e } from "@aplus-frontend/utils";
2
2
  import { ConfigProvider as o } from "./config-provider.mjs";
3
3
  import { globalConfigCached as l } from "./config-provider.mjs";
4
4
  import { configProviderProps as p } from "./config-provider-props.mjs";
5
- import { configProviderContextKey as m } from "./constants.mjs";
6
- import { keysOf as d, provideGlobalConfig as x, useGlobalConfig as C } from "./hooks/use-global-config.mjs";
7
- import { buildLocaleContext as u, buildTranslator as v, localeContextKey as P, translate as b, useLocale as y } from "./hooks/use-locale.mjs";
8
- import { defaultNamespace as K, namespaceContextKey as N, useGetDerivedNamespace as h, useNamespace as L } from "./hooks/use-namespace.mjs";
5
+ import { DEFAULT_NAMESPACE as m, DEFAULT_UIMODE as c, configProviderContextKey as d } from "./constants.mjs";
6
+ import { keysOf as C, provideGlobalConfig as g, useGlobalConfig as u } from "./hooks/use-global-config.mjs";
7
+ import { buildLocaleContext as v, buildTranslator as b, localeContextKey as A, translate as E, useLocale as y } from "./hooks/use-locale.mjs";
8
+ import { defaultNamespace as L, namespaceContextKey as N, useGetDerivedNamespace as G, useNamespace as K } from "./hooks/use-namespace.mjs";
9
9
  const a = e(o);
10
10
  export {
11
11
  a as APConfigProvider,
12
12
  o as ConfigProvider,
13
- u as buildLocaleContext,
14
- v as buildTranslator,
15
- m as configProviderContextKey,
13
+ m as DEFAULT_NAMESPACE,
14
+ c as DEFAULT_UIMODE,
15
+ v as buildLocaleContext,
16
+ b as buildTranslator,
17
+ d as configProviderContextKey,
16
18
  p as configProviderProps,
17
19
  a as default,
18
- K as defaultNamespace,
20
+ L as defaultNamespace,
19
21
  l as globalConfigCached,
20
- d as keysOf,
21
- P as localeContextKey,
22
+ C as keysOf,
23
+ A as localeContextKey,
22
24
  N as namespaceContextKey,
23
- x as provideGlobalConfig,
24
- b as translate,
25
- h as useGetDerivedNamespace,
26
- C as useGlobalConfig,
25
+ g as provideGlobalConfig,
26
+ E as translate,
27
+ G as useGetDerivedNamespace,
28
+ u as useGlobalConfig,
27
29
  y as useLocale,
28
- L as useNamespace
30
+ K as useNamespace
29
31
  };