@aplus-frontend/ui 0.5.11 → 0.5.13
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-descriptions/ap-descriptions.vue.mjs +35 -32
- package/es/src/ap-descriptions/formatter/index.mjs +31 -31
- package/es/src/ap-modal/index.d.ts +9 -2
- package/es/src/ap-modal/index.mjs +23 -8
- package/es/src/ap-modal/interface.d.ts +2 -1
- package/es/src/ap-modal/utils/createModal.mjs +43 -40
- package/es/src/ap-modal/utils/index.d.ts +1 -0
- package/es/src/ap-modal/utils/index.mjs +6 -4
- package/es/src/ap-modal/utils/methods.d.ts +3 -0
- package/es/src/ap-modal/utils/methods.mjs +34 -0
- package/es/src/ap-modal/utils/util.d.ts +1 -0
- package/es/src/ap-modal/utils/util.mjs +4 -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/es/src/utils/config-provider-preset.mjs +21 -17
- package/es/src/utils/index.d.ts +1 -0
- package/es/src/utils/index.mjs +25 -21
- package/lib/index.js +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-modal/index.d.ts +9 -2
- package/lib/src/ap-modal/index.js +1 -1
- package/lib/src/ap-modal/interface.d.ts +2 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-modal/utils/index.d.ts +1 -0
- package/lib/src/ap-modal/utils/index.js +1 -1
- package/lib/src/ap-modal/utils/methods.d.ts +3 -0
- package/lib/src/ap-modal/utils/methods.js +1 -0
- package/lib/src/ap-modal/utils/util.d.ts +1 -0
- package/lib/src/ap-modal/utils/util.js +1 -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/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/index.d.ts +1 -0
- package/lib/src/utils/index.js +1 -1
- package/package.json +1 -1
- 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
|
@@ -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