@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.
- package/es/index.mjs +222 -220
- package/es/src/ap-form/ap-form.vue.d.ts +1 -3
- package/es/src/ap-form/ap-form.vue2.mjs +101 -95
- package/es/src/ap-list/index.vue.mjs +37 -39
- package/es/src/ap-list/interface.d.ts +3 -3
- package/es/src/ap-table/ap-table.vue2.mjs +62 -66
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +209 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +6 -0
- package/es/src/ap-table/interface.d.ts +4 -3
- package/es/src/business/ap-select-layout/index.d.ts +1 -0
- package/es/src/business/ap-select-layout/interface.d.ts +1 -0
- package/es/src/business/ap-select-layout/select-layout.vue2.mjs +69 -63
- package/es/src/config-provider/config-provider-props.d.ts +0 -2
- package/es/src/config-provider/config-provider-props.mjs +2 -4
- package/es/src/config-provider/config-provider.d.ts +0 -6
- package/es/src/config-provider/config-provider.mjs +26 -25
- package/es/src/config-provider/constants.d.ts +2 -0
- package/es/src/config-provider/constants.mjs +3 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -2
- package/es/src/config-provider/index.d.ts +0 -12
- package/es/src/config-provider/index.mjs +17 -15
- package/es/src/index.mjs +207 -205
- package/lib/index.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -3
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-list/interface.d.ts +3 -3
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +87 -0
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +6 -0
- package/lib/src/ap-table/interface.d.ts +4 -3
- package/lib/src/business/ap-select-layout/index.d.ts +1 -0
- package/lib/src/business/ap-select-layout/interface.d.ts +1 -0
- package/lib/src/business/ap-select-layout/select-layout.vue2.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +0 -2
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -6
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +2 -0
- package/lib/src/config-provider/constants.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -2
- package/lib/src/config-provider/index.d.ts +0 -12
- package/lib/src/config-provider/index.js +1 -1
- package/lib/src/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as O, ref as
|
|
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
|
|
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(
|
|
19
|
-
const { b:
|
|
20
|
-
|
|
21
|
-
}, F = (
|
|
22
|
-
|
|
23
|
-
}, q = K((
|
|
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
|
-
|
|
26
|
+
c.value = (e = l.target) == null ? void 0 : e.value;
|
|
26
27
|
}, 500), D = U(() => {
|
|
27
|
-
var
|
|
28
|
-
return (
|
|
29
|
-
var
|
|
30
|
-
return
|
|
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 = (
|
|
33
|
-
|
|
34
|
-
}, M = (
|
|
35
|
-
|
|
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
|
-
|
|
39
|
-
var
|
|
40
|
-
|
|
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
|
-
}), (
|
|
43
|
-
var
|
|
44
|
-
return
|
|
45
|
-
class:
|
|
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:
|
|
53
|
-
|
|
54
|
-
class:
|
|
57
|
+
default: v(() => [
|
|
58
|
+
V(s("div", {
|
|
59
|
+
class: a(t(h)("side"))
|
|
55
60
|
}, [
|
|
56
61
|
s("div", {
|
|
57
|
-
class:
|
|
62
|
+
class: a(t(y)("side", "header"))
|
|
58
63
|
}, [
|
|
59
|
-
s("h3", null,
|
|
64
|
+
s("h3", null, E(o.title), 1),
|
|
60
65
|
s("div", {
|
|
61
|
-
class:
|
|
66
|
+
class: a(t(i)("side", "header", "imgWrap"))
|
|
62
67
|
}, [
|
|
63
|
-
d(t(
|
|
64
|
-
open:
|
|
65
|
-
"onUpdate:open": e[0] || (e[0] = (
|
|
68
|
+
d(t(w), {
|
|
69
|
+
open: T.value,
|
|
70
|
+
"onUpdate:open": e[0] || (e[0] = (n) => T.value = n)
|
|
66
71
|
}, {
|
|
67
|
-
title:
|
|
68
|
-
|
|
72
|
+
title: v(() => e[2] || (e[2] = [
|
|
73
|
+
$("收起")
|
|
69
74
|
])),
|
|
70
|
-
default:
|
|
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:
|
|
83
|
+
class: a(t(y)("side", "body"))
|
|
79
84
|
}, [
|
|
80
85
|
s("div", {
|
|
81
|
-
class:
|
|
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:
|
|
95
|
+
class: a(t(i)("side", "body", "scroll"))
|
|
90
96
|
}, [
|
|
91
|
-
(
|
|
92
|
-
key:
|
|
93
|
-
class:
|
|
94
|
-
onClick: (Y) => F(
|
|
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
|
-
|
|
102
|
+
x(l.$slots, "itemRender", { item: n }, () => [
|
|
97
103
|
d(t(J), {
|
|
98
|
-
ellipsis: { tooltip:
|
|
99
|
-
content: `${
|
|
104
|
+
ellipsis: { tooltip: n.name },
|
|
105
|
+
content: `${n.name}`
|
|
100
106
|
}, null, 8, ["ellipsis", "content"])
|
|
101
107
|
])
|
|
102
108
|
], 10, X)), [
|
|
103
|
-
[N,
|
|
109
|
+
[N, S.value]
|
|
104
110
|
])), 128))
|
|
105
111
|
], 2)
|
|
106
112
|
], 2)
|
|
107
113
|
], 2), [
|
|
108
|
-
[N, !
|
|
114
|
+
[N, !f.value]
|
|
109
115
|
])
|
|
110
116
|
]),
|
|
111
117
|
_: 3
|
|
112
118
|
}),
|
|
113
119
|
s("div", {
|
|
114
|
-
class:
|
|
120
|
+
class: a(t(h)("content"))
|
|
115
121
|
}, [
|
|
116
122
|
s("div", {
|
|
117
|
-
class:
|
|
123
|
+
class: a(t(y)("content", "header"))
|
|
118
124
|
}, [
|
|
119
|
-
|
|
125
|
+
f.value ? (p(), m("div", {
|
|
120
126
|
key: 0,
|
|
121
|
-
class:
|
|
127
|
+
class: a(t(i)("content", "header", "imgWrap"))
|
|
122
128
|
}, [
|
|
123
|
-
d(t(
|
|
124
|
-
open:
|
|
125
|
-
"onUpdate:open": e[1] || (e[1] = (
|
|
129
|
+
d(t(w), {
|
|
130
|
+
open: b.value,
|
|
131
|
+
"onUpdate:open": e[1] || (e[1] = (n) => b.value = n)
|
|
126
132
|
}, {
|
|
127
|
-
title:
|
|
128
|
-
|
|
133
|
+
title: v(() => e[3] || (e[3] = [
|
|
134
|
+
$("展开")
|
|
129
135
|
])),
|
|
130
|
-
default:
|
|
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:
|
|
138
|
-
},
|
|
143
|
+
class: a(t(i)("content", "header", "title"))
|
|
144
|
+
}, E((r = k.value) == null ? void 0 : r.name), 3)
|
|
139
145
|
], 2),
|
|
140
|
-
|
|
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
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import { provideGlobalConfig as
|
|
4
|
-
import { configProviderProps as
|
|
5
|
-
import { mergeAntdProvideConfig as
|
|
6
|
-
import { generateCssVar as
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
11
|
+
const c = V({}), $ = /* @__PURE__ */ M({
|
|
11
12
|
name: "AplusConfigProvider",
|
|
12
|
-
props:
|
|
13
|
+
props: S(),
|
|
13
14
|
setup(e, {
|
|
14
|
-
slots:
|
|
15
|
+
slots: l
|
|
15
16
|
}) {
|
|
16
|
-
const n = m(() => ({
|
|
17
|
-
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:
|
|
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 =
|
|
27
|
-
return
|
|
28
|
-
|
|
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" &&
|
|
33
|
-
const
|
|
34
|
-
...o === "aplus" ?
|
|
35
|
-
...
|
|
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
|
-
|
|
38
|
+
E(g);
|
|
38
39
|
}, {
|
|
39
40
|
immediate: !0
|
|
40
41
|
}), () => {
|
|
41
42
|
let o;
|
|
42
|
-
return
|
|
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
|
-
|
|
52
|
-
|
|
52
|
+
$ as ConfigProvider,
|
|
53
|
+
c as globalConfigCached
|
|
53
54
|
};
|
|
@@ -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 {
|
|
6
|
-
import { keysOf as
|
|
7
|
-
import { buildLocaleContext as
|
|
8
|
-
import { defaultNamespace as
|
|
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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
-
|
|
20
|
+
L as defaultNamespace,
|
|
19
21
|
l as globalConfigCached,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
C as keysOf,
|
|
23
|
+
A as localeContextKey,
|
|
22
24
|
N as namespaceContextKey,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
g as provideGlobalConfig,
|
|
26
|
+
E as translate,
|
|
27
|
+
G as useGetDerivedNamespace,
|
|
28
|
+
u as useGlobalConfig,
|
|
27
29
|
y as useLocale,
|
|
28
|
-
|
|
30
|
+
K as useNamespace
|
|
29
31
|
};
|