@aplus-frontend/ui 0.5.12 → 0.5.14
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 +16 -12
- package/es/src/ap-button/interface.d.ts +1 -1
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +35 -32
- package/es/src/ap-descriptions/formatter/index.mjs +31 -31
- package/es/src/ap-field/interface.d.ts +10 -2
- package/es/src/ap-field/select/index.vue.d.ts +1 -0
- package/es/src/ap-field/select/index.vue.mjs +96 -91
- package/es/src/ap-modal/index.mjs +33 -15
- package/es/src/ap-modal/utils/confirm.d.ts +17 -0
- package/es/src/ap-modal/utils/confirm.mjs +110 -0
- package/es/src/ap-modal/utils/createModal.mjs +2 -1
- package/es/src/ap-modal/utils/destroyFns.d.ts +2 -0
- package/es/src/ap-modal/utils/destroyFns.mjs +4 -0
- package/es/src/ap-table/constants.d.ts +3 -0
- package/es/src/business/ap-ladder/ApLadder.vue.d.ts +2 -2
- package/es/src/business/ap-ladder/index.d.ts +6 -6
- package/es/src/config-provider/config-provider.d.ts +11 -0
- package/es/src/config-provider/css-var.d.ts +11 -0
- package/es/src/config-provider/css-var.mjs +35 -13
- package/es/src/config-provider/index.d.ts +55 -0
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +258 -253
- package/es/src/text/context.d.ts +10 -0
- package/es/src/text/context.mjs +17 -0
- package/es/src/text/group.vue.d.ts +28 -0
- package/es/src/text/group.vue.mjs +37 -0
- package/es/src/text/group.vue2.mjs +4 -0
- package/es/src/text/index.d.ts +4 -0
- package/es/src/text/index.mjs +3 -0
- package/es/src/text/index.vue.d.ts +34 -0
- package/es/src/text/index.vue.mjs +118 -0
- package/es/src/text/index.vue2.mjs +4 -0
- package/es/src/text/interface.d.ts +47 -0
- package/es/src/text/interface.mjs +1 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +10 -2
- package/lib/src/ap-field/select/index.vue.d.ts +1 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/utils/confirm.d.ts +17 -0
- package/lib/src/ap-modal/utils/confirm.js +1 -0
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/destroyFns.d.ts +2 -0
- package/lib/src/ap-modal/utils/destroyFns.js +1 -0
- package/lib/src/ap-table/constants.d.ts +3 -0
- package/lib/src/business/ap-ladder/ApLadder.vue.d.ts +2 -2
- package/lib/src/business/ap-ladder/index.d.ts +6 -6
- package/lib/src/config-provider/config-provider.d.ts +11 -0
- package/lib/src/config-provider/css-var.d.ts +11 -0
- package/lib/src/config-provider/css-var.js +1 -1
- package/lib/src/config-provider/index.d.ts +55 -0
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/text/context.d.ts +10 -0
- package/lib/src/text/context.js +1 -0
- package/lib/src/text/group.vue.d.ts +28 -0
- package/lib/src/text/group.vue.js +1 -0
- package/lib/src/text/group.vue2.js +1 -0
- package/lib/src/text/index.d.ts +4 -0
- package/lib/src/text/index.js +1 -0
- package/lib/src/text/index.vue.d.ts +34 -0
- package/lib/src/text/index.vue.js +1 -0
- package/lib/src/text/index.vue2.js +1 -0
- package/lib/src/text/interface.d.ts +47 -0
- package/lib/src/text/interface.js +1 -0
- package/package.json +2 -2
- package/theme/ap-descriptions/ap-descriptions.css +3 -0
- package/theme/ap-descriptions/ap-descriptions.less +4 -0
- package/theme/index.css +61 -0
- package/theme/index.less +2 -0
- package/theme/text/group.css +14 -0
- package/theme/text/group.less +19 -0
- package/theme/text/index.css +44 -0
- package/theme/text/index.less +49 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Modal as
|
|
1
|
+
import { Modal as c } from "@aplus-frontend/antdv";
|
|
2
2
|
import "./utils/index.mjs";
|
|
3
3
|
import { omit as m } from "lodash-unified";
|
|
4
|
+
import t, { withWarn as f, withInfo as a, withSuccess as s, withError as l, withConfirm as u } from "./utils/confirm.mjs";
|
|
5
|
+
import i from "./utils/destroyFns.mjs";
|
|
4
6
|
import "./interface.mjs";
|
|
5
|
-
import { createModal as
|
|
6
|
-
import { createModalStream as
|
|
7
|
-
|
|
8
|
-
const r = m(a, [
|
|
7
|
+
import { createModal as p } from "./utils/createModal.mjs";
|
|
8
|
+
import { createModalStream as d } from "./utils/createModalStream.mjs";
|
|
9
|
+
const o = m(c, [
|
|
9
10
|
"confirm",
|
|
10
11
|
"warning",
|
|
11
12
|
"warn",
|
|
@@ -13,15 +14,32 @@ const r = m(a, [
|
|
|
13
14
|
"success",
|
|
14
15
|
"info"
|
|
15
16
|
]);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
o.createModal = p;
|
|
18
|
+
o.createModalStream = d;
|
|
19
|
+
function e(n) {
|
|
20
|
+
return t(f(n));
|
|
21
|
+
}
|
|
22
|
+
o.info = function(r) {
|
|
23
|
+
return t(a(r));
|
|
24
|
+
};
|
|
25
|
+
o.success = function(r) {
|
|
26
|
+
return t(s(r));
|
|
27
|
+
};
|
|
28
|
+
o.error = function(r) {
|
|
29
|
+
return t(l(r));
|
|
30
|
+
};
|
|
31
|
+
o.warning = e;
|
|
32
|
+
o.warn = e;
|
|
33
|
+
o.confirm = function(r) {
|
|
34
|
+
return t(u(r));
|
|
35
|
+
};
|
|
36
|
+
o.destroyAll = function() {
|
|
37
|
+
for (; i.length; ) {
|
|
38
|
+
const r = i.pop();
|
|
39
|
+
r && r();
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
o.name = "ApModal";
|
|
25
43
|
export {
|
|
26
|
-
|
|
44
|
+
o as ApModal
|
|
27
45
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ModalFuncProps } from '@aplus-frontend/antdv';
|
|
2
|
+
type ConfigUpdate = ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps);
|
|
3
|
+
export type ModalStaticFunctions<T = ModalFunc> = Record<NonNullable<ModalFuncProps['type']>, T>;
|
|
4
|
+
export type ModalFunc = (props: ModalFuncProps) => {
|
|
5
|
+
destroy: () => void;
|
|
6
|
+
update: (configUpdate: ConfigUpdate) => void;
|
|
7
|
+
};
|
|
8
|
+
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
+
destroy: (this: /*elided*/ any, ...args: any[]) => void;
|
|
10
|
+
update: (configUpdate: ConfigUpdate) => void;
|
|
11
|
+
};
|
|
12
|
+
export default confirm;
|
|
13
|
+
export declare function withWarn(props: ModalFuncProps): ModalFuncProps;
|
|
14
|
+
export declare function withInfo(props: ModalFuncProps): ModalFuncProps;
|
|
15
|
+
export declare function withSuccess(props: ModalFuncProps): ModalFuncProps;
|
|
16
|
+
export declare function withError(props: ModalFuncProps): ModalFuncProps;
|
|
17
|
+
export declare function withConfirm(props: ModalFuncProps): ModalFuncProps;
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { render as s, cloneVNode as h, createVNode as a, mergeProps as m } from "vue";
|
|
2
|
+
import P from "@aplus-frontend/antdv/es/modal/ConfirmDialog";
|
|
3
|
+
import { omit as b } from "lodash-unified";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
|
+
import { getConfirmLocale as w } from "@aplus-frontend/antdv/es/modal/locale";
|
|
6
|
+
import { globalConfigForApi as v } from "@aplus-frontend/antdv/es/config-provider";
|
|
7
|
+
import c from "./destroyFns.mjs";
|
|
8
|
+
import { globalConfigCached as D, ConfigProvider as F } from "../../config-provider/config-provider.mjs";
|
|
9
|
+
const A = (e) => {
|
|
10
|
+
const f = document.createDocumentFragment();
|
|
11
|
+
let n = {
|
|
12
|
+
...b(e, ["parentContext", "appContext"]),
|
|
13
|
+
close: l,
|
|
14
|
+
open: !0,
|
|
15
|
+
centered: !0
|
|
16
|
+
}, i = null;
|
|
17
|
+
function x(...t) {
|
|
18
|
+
i && (s(null, f), i = null);
|
|
19
|
+
const r = t.some((o) => o && o.triggerCancel);
|
|
20
|
+
e.onCancel && r && e.onCancel(() => {
|
|
21
|
+
}, ...t.slice(1));
|
|
22
|
+
for (let o = 0; o < c.length; o++)
|
|
23
|
+
if (c[o] === l) {
|
|
24
|
+
c.splice(o, 1);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function l(...t) {
|
|
29
|
+
n = {
|
|
30
|
+
...n,
|
|
31
|
+
open: !1,
|
|
32
|
+
afterClose: () => {
|
|
33
|
+
typeof e.afterClose == "function" && e.afterClose(), x.apply(this, t);
|
|
34
|
+
}
|
|
35
|
+
}, n.visible && delete n.visible, p(n);
|
|
36
|
+
}
|
|
37
|
+
function p(t) {
|
|
38
|
+
typeof t == "function" ? n = t(n) : n = {
|
|
39
|
+
...n,
|
|
40
|
+
...t
|
|
41
|
+
}, i && s(h(i, {
|
|
42
|
+
...n
|
|
43
|
+
}), f);
|
|
44
|
+
}
|
|
45
|
+
const d = (t) => {
|
|
46
|
+
const r = {
|
|
47
|
+
...v,
|
|
48
|
+
...D.value
|
|
49
|
+
}, o = r.prefixCls, u = t.prefixCls || `${o}-modal`, g = r.iconPrefixCls, C = w();
|
|
50
|
+
return a(F, m(r, {
|
|
51
|
+
prefixCls: o
|
|
52
|
+
}), {
|
|
53
|
+
default: () => [a(P, m(t, {
|
|
54
|
+
rootPrefixCls: o,
|
|
55
|
+
prefixCls: u,
|
|
56
|
+
iconPrefixCls: g,
|
|
57
|
+
locale: C,
|
|
58
|
+
cancelText: t.cancelText || C.cancelText
|
|
59
|
+
}), null)]
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
function y(t) {
|
|
63
|
+
const r = a(d, {
|
|
64
|
+
...t
|
|
65
|
+
});
|
|
66
|
+
return r.appContext = e.parentContext || e.appContext || r.appContext, s(r, f), r;
|
|
67
|
+
}
|
|
68
|
+
return i = y(n), c.push(l), {
|
|
69
|
+
destroy: l,
|
|
70
|
+
update: p
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
function E(e) {
|
|
74
|
+
return {
|
|
75
|
+
...e,
|
|
76
|
+
type: "warning"
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function S(e) {
|
|
80
|
+
return {
|
|
81
|
+
...e,
|
|
82
|
+
type: "info"
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function j(e) {
|
|
86
|
+
return {
|
|
87
|
+
...e,
|
|
88
|
+
type: "success"
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
function q(e) {
|
|
92
|
+
return {
|
|
93
|
+
...e,
|
|
94
|
+
type: "error"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function z(e) {
|
|
98
|
+
return {
|
|
99
|
+
...e,
|
|
100
|
+
type: "confirm"
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
export {
|
|
104
|
+
A as default,
|
|
105
|
+
z as withConfirm,
|
|
106
|
+
q as withError,
|
|
107
|
+
S as withInfo,
|
|
108
|
+
j as withSuccess,
|
|
109
|
+
E as withWarn
|
|
110
|
+
};
|
|
@@ -2616,6 +2616,7 @@ export declare const apTableRenderItemMap: {
|
|
|
2616
2616
|
emptyText: string;
|
|
2617
2617
|
searchMode: "filter" | "request";
|
|
2618
2618
|
refetchOnFocus: boolean;
|
|
2619
|
+
searchDelay: number;
|
|
2619
2620
|
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
2620
2621
|
selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
2621
2622
|
value: {
|
|
@@ -3053,6 +3054,7 @@ export declare const apTableRenderItemMap: {
|
|
|
3053
3054
|
emptyText: string;
|
|
3054
3055
|
searchMode: "filter" | "request";
|
|
3055
3056
|
refetchOnFocus: boolean;
|
|
3057
|
+
searchDelay: number;
|
|
3056
3058
|
}>;
|
|
3057
3059
|
__isFragment?: never;
|
|
3058
3060
|
__isTeleport?: never;
|
|
@@ -3085,6 +3087,7 @@ export declare const apTableRenderItemMap: {
|
|
|
3085
3087
|
emptyText: string;
|
|
3086
3088
|
searchMode: "filter" | "request";
|
|
3087
3089
|
refetchOnFocus: boolean;
|
|
3090
|
+
searchDelay: number;
|
|
3088
3091
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3089
3092
|
$slots: Readonly<{
|
|
3090
3093
|
notFoundContent: any;
|
|
@@ -19,6 +19,8 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
19
19
|
declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApLadderProps> & Readonly<{}>, {
|
|
20
20
|
layout: "vertical" | "horizontal";
|
|
21
21
|
tooltip: boolean;
|
|
22
|
+
major: string;
|
|
23
|
+
minor: string;
|
|
22
24
|
labelAlign: "left" | "right";
|
|
23
25
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
24
26
|
title: VueTypeValidableDef<any>;
|
|
@@ -95,8 +97,6 @@ declare const __VLS_component: DefineComponent<ApLadderProps, {}, {}, {}, {}, Co
|
|
|
95
97
|
default: boolean;
|
|
96
98
|
};
|
|
97
99
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
98
|
-
major: string;
|
|
99
|
-
minor: string;
|
|
100
100
|
majorColor: string;
|
|
101
101
|
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
102
102
|
minorColor: string;
|
|
@@ -11,6 +11,8 @@ declare const ApLadder: {
|
|
|
11
11
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
12
12
|
layout: "vertical" | "horizontal";
|
|
13
13
|
tooltip: boolean;
|
|
14
|
+
major: string;
|
|
15
|
+
minor: string;
|
|
14
16
|
labelAlign: "left" | "right";
|
|
15
17
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
16
18
|
title: VueTypeValidableDef<any>;
|
|
@@ -87,8 +89,6 @@ declare const ApLadder: {
|
|
|
87
89
|
default: boolean;
|
|
88
90
|
};
|
|
89
91
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
90
|
-
major: string;
|
|
91
|
-
minor: string;
|
|
92
92
|
majorColor: string;
|
|
93
93
|
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
94
94
|
minorColor: string;
|
|
@@ -113,6 +113,8 @@ declare const ApLadder: {
|
|
|
113
113
|
}, Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
114
114
|
layout: "vertical" | "horizontal";
|
|
115
115
|
tooltip: boolean;
|
|
116
|
+
major: string;
|
|
117
|
+
minor: string;
|
|
116
118
|
labelAlign: "left" | "right";
|
|
117
119
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
118
120
|
title: VueTypeValidableDef<any>;
|
|
@@ -189,8 +191,6 @@ declare const ApLadder: {
|
|
|
189
191
|
default: boolean;
|
|
190
192
|
};
|
|
191
193
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
192
|
-
major: string;
|
|
193
|
-
minor: string;
|
|
194
194
|
majorColor: string;
|
|
195
195
|
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
196
196
|
minorColor: string;
|
|
@@ -209,6 +209,8 @@ declare const ApLadder: {
|
|
|
209
209
|
} & ComponentOptionsBase<Readonly< ApLadderProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
210
210
|
layout: "vertical" | "horizontal";
|
|
211
211
|
tooltip: boolean;
|
|
212
|
+
major: string;
|
|
213
|
+
minor: string;
|
|
212
214
|
labelAlign: "left" | "right";
|
|
213
215
|
tooltipProps: Partial<Pick<Partial< ExtractPropTypes<{
|
|
214
216
|
title: VueTypeValidableDef<any>;
|
|
@@ -285,8 +287,6 @@ declare const ApLadder: {
|
|
|
285
287
|
default: boolean;
|
|
286
288
|
};
|
|
287
289
|
}>>, "title" | "placement" | "color" | "mouseEnterDelay" | "trigger" | "getPopupContainer" | "align" | "overlayStyle" | "overlayInnerStyle" | "overlayClassName" | "mouseLeaveDelay" | "arrowPointAtCenter" | "arrow" | "autoAdjustOverflow" | "destroyTooltipOnHide">>;
|
|
288
|
-
major: string;
|
|
289
|
-
minor: string;
|
|
290
290
|
majorColor: string;
|
|
291
291
|
majorStyles: string | false | CSSProperties | StyleValue[] | null;
|
|
292
292
|
minorColor: string;
|
|
@@ -458,6 +458,17 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
458
458
|
'color-disabled': string;
|
|
459
459
|
};
|
|
460
460
|
};
|
|
461
|
+
'ap-text': {
|
|
462
|
+
label: {
|
|
463
|
+
color: string;
|
|
464
|
+
};
|
|
465
|
+
content: {
|
|
466
|
+
color: {
|
|
467
|
+
major: string;
|
|
468
|
+
minor: string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
};
|
|
461
472
|
}>;
|
|
462
473
|
exportField: ExportField;
|
|
463
474
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -101,6 +101,17 @@ declare const aplusCssVarObj: {
|
|
|
101
101
|
'color-disabled': string;
|
|
102
102
|
};
|
|
103
103
|
};
|
|
104
|
+
'ap-text': {
|
|
105
|
+
label: {
|
|
106
|
+
color: string;
|
|
107
|
+
};
|
|
108
|
+
content: {
|
|
109
|
+
color: {
|
|
110
|
+
major: string;
|
|
111
|
+
minor: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
104
115
|
};
|
|
105
116
|
export type CssVarType = RecursivePartial<typeof aplusCssVarObj>;
|
|
106
117
|
export declare function generateCssVar(cssVarRawObj: CssVarType): Record<string, any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const b = {
|
|
2
2
|
"ap-form": {
|
|
3
3
|
bordered: {
|
|
4
4
|
"border-color": {
|
|
@@ -99,8 +99,19 @@ const F = {
|
|
|
99
99
|
color: "#526a90",
|
|
100
100
|
"color-disabled": "rgba(24, 41, 72, 0.25)"
|
|
101
101
|
}
|
|
102
|
+
},
|
|
103
|
+
"ap-text": {
|
|
104
|
+
label: {
|
|
105
|
+
color: "#8896b0"
|
|
106
|
+
},
|
|
107
|
+
content: {
|
|
108
|
+
color: {
|
|
109
|
+
major: "#182948",
|
|
110
|
+
minor: "#8896B0"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
102
113
|
}
|
|
103
|
-
},
|
|
114
|
+
}, F = {
|
|
104
115
|
"ap-form": {
|
|
105
116
|
bordered: {
|
|
106
117
|
"border-color": {
|
|
@@ -201,28 +212,39 @@ const F = {
|
|
|
201
212
|
color: "#999999",
|
|
202
213
|
"color-disabled": "rgba(0, 0, 0, 0.25)"
|
|
203
214
|
}
|
|
215
|
+
},
|
|
216
|
+
"ap-text": {
|
|
217
|
+
label: {
|
|
218
|
+
color: "#999999"
|
|
219
|
+
},
|
|
220
|
+
content: {
|
|
221
|
+
color: {
|
|
222
|
+
major: "#333333",
|
|
223
|
+
minor: "#999999"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
204
226
|
}
|
|
205
227
|
};
|
|
206
|
-
function
|
|
228
|
+
function l(e) {
|
|
207
229
|
const o = {};
|
|
208
|
-
function r(a,
|
|
230
|
+
function r(a, i) {
|
|
209
231
|
const s = Object.keys(a);
|
|
210
232
|
for (const c of s) {
|
|
211
|
-
const
|
|
212
|
-
|
|
233
|
+
const t = a[c], n = [...i, c];
|
|
234
|
+
t !== null && typeof t == "object" ? r(t, n) : o[`--${n.join("-")}`] = t;
|
|
213
235
|
}
|
|
214
236
|
}
|
|
215
|
-
return r(
|
|
237
|
+
return r(e, []), o;
|
|
216
238
|
}
|
|
217
|
-
const
|
|
218
|
-
function u(
|
|
219
|
-
Object.entries(
|
|
239
|
+
const p = l(b), d = l(F);
|
|
240
|
+
function u(e) {
|
|
241
|
+
Object.entries(e).forEach(([o, r]) => {
|
|
220
242
|
document.documentElement.style.setProperty(o, r);
|
|
221
243
|
});
|
|
222
244
|
}
|
|
223
245
|
export {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
246
|
+
d as adminCssVar,
|
|
247
|
+
p as aplusCssVar,
|
|
248
|
+
l as generateCssVar,
|
|
227
249
|
u as setCSSVariables
|
|
228
250
|
};
|
|
@@ -263,6 +263,17 @@ export declare const APConfigProvider: {
|
|
|
263
263
|
'color-disabled': string;
|
|
264
264
|
};
|
|
265
265
|
};
|
|
266
|
+
'ap-text': {
|
|
267
|
+
label: {
|
|
268
|
+
color: string;
|
|
269
|
+
};
|
|
270
|
+
content: {
|
|
271
|
+
color: {
|
|
272
|
+
major: string;
|
|
273
|
+
minor: string;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
266
277
|
}>>;
|
|
267
278
|
default: () => {};
|
|
268
279
|
};
|
|
@@ -412,6 +423,17 @@ export declare const APConfigProvider: {
|
|
|
412
423
|
'color-disabled': string;
|
|
413
424
|
};
|
|
414
425
|
};
|
|
426
|
+
'ap-text': {
|
|
427
|
+
label: {
|
|
428
|
+
color: string;
|
|
429
|
+
};
|
|
430
|
+
content: {
|
|
431
|
+
color: {
|
|
432
|
+
major: string;
|
|
433
|
+
minor: string;
|
|
434
|
+
};
|
|
435
|
+
};
|
|
436
|
+
};
|
|
415
437
|
}>;
|
|
416
438
|
exportField: ExportField;
|
|
417
439
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
@@ -666,6 +688,17 @@ export declare const APConfigProvider: {
|
|
|
666
688
|
'color-disabled': string;
|
|
667
689
|
};
|
|
668
690
|
};
|
|
691
|
+
'ap-text': {
|
|
692
|
+
label: {
|
|
693
|
+
color: string;
|
|
694
|
+
};
|
|
695
|
+
content: {
|
|
696
|
+
color: {
|
|
697
|
+
major: string;
|
|
698
|
+
minor: string;
|
|
699
|
+
};
|
|
700
|
+
};
|
|
701
|
+
};
|
|
669
702
|
}>>;
|
|
670
703
|
default: () => {};
|
|
671
704
|
};
|
|
@@ -815,6 +848,17 @@ export declare const APConfigProvider: {
|
|
|
815
848
|
'color-disabled': string;
|
|
816
849
|
};
|
|
817
850
|
};
|
|
851
|
+
'ap-text': {
|
|
852
|
+
label: {
|
|
853
|
+
color: string;
|
|
854
|
+
};
|
|
855
|
+
content: {
|
|
856
|
+
color: {
|
|
857
|
+
major: string;
|
|
858
|
+
minor: string;
|
|
859
|
+
};
|
|
860
|
+
};
|
|
861
|
+
};
|
|
818
862
|
}>;
|
|
819
863
|
exportField: ExportField;
|
|
820
864
|
}>;
|
|
@@ -1113,6 +1157,17 @@ export declare const APConfigProvider: {
|
|
|
1113
1157
|
'color-disabled': string;
|
|
1114
1158
|
};
|
|
1115
1159
|
};
|
|
1160
|
+
'ap-text': {
|
|
1161
|
+
label: {
|
|
1162
|
+
color: string;
|
|
1163
|
+
};
|
|
1164
|
+
content: {
|
|
1165
|
+
color: {
|
|
1166
|
+
major: string;
|
|
1167
|
+
minor: string;
|
|
1168
|
+
};
|
|
1169
|
+
};
|
|
1170
|
+
};
|
|
1116
1171
|
}>;
|
|
1117
1172
|
exportField: ExportField;
|
|
1118
1173
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
package/es/src/index.d.ts
CHANGED