@aplus-frontend/ui 0.0.36 → 0.0.38
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 -14
- package/es/src/ap-descriptions/ap-descriptions.vue.d.ts +27 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +97 -0
- package/es/src/ap-descriptions/ap-descriptions.vue2.mjs +5 -0
- package/es/src/ap-descriptions/formatter/index.d.ts +78 -0
- package/es/src/ap-descriptions/formatter/index.mjs +127 -0
- package/es/src/ap-descriptions/formatter/utils.d.ts +7 -0
- package/es/src/ap-descriptions/formatter/utils.mjs +6 -0
- package/es/src/ap-descriptions/help-message/index.vue.d.ts +23 -0
- package/es/src/ap-descriptions/help-message/index.vue.mjs +4 -0
- package/es/src/ap-descriptions/help-message/index.vue2.mjs +27 -0
- package/es/src/ap-descriptions/helper.d.ts +10 -0
- package/es/src/ap-descriptions/helper.mjs +24 -0
- package/es/src/ap-descriptions/index.d.ts +4 -0
- package/es/src/ap-descriptions/index.mjs +2 -0
- package/es/src/ap-descriptions/interface.d.ts +50 -0
- package/es/src/ap-descriptions/interface.mjs +1 -0
- package/es/src/ap-descriptions/style/ap-descriptions.css +57 -0
- package/es/src/ap-download/ap-download.vue.mjs +27 -30
- package/es/src/ap-download/hooks/index.d.ts +1 -6
- package/es/src/ap-download/hooks/index.mjs +12 -12
- package/es/src/ap-download/interface.d.ts +3 -13
- package/es/src/ap-download/style/ap-download.css +12 -12
- package/es/src/ap-field/interface.d.ts +3 -3
- package/es/src/business/ap-label/ApLabel.vue.d.ts +13 -2
- package/es/src/business/ap-label/ApLabel.vue2.mjs +43 -25
- package/es/src/business/ap-label/interface.d.ts +6 -3
- package/es/src/business/ap-label/style.css +2 -1
- package/es/src/business/index.d.ts +53 -9
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +14 -1
- package/es/src/config-provider/config-provider.mjs +17 -16
- package/es/src/config-provider/constants.d.ts +3 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +20 -1
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +241 -238
- package/es/src/theme/ap-descriptions/ap-descriptions.css +57 -0
- package/es/src/theme/ap-download/ap-download.css +12 -12
- package/es/src/theme/ap-label/ap-label.css +2 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.d.ts +27 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue2.js +1 -0
- package/lib/src/ap-descriptions/formatter/index.d.ts +78 -0
- package/lib/src/ap-descriptions/formatter/index.js +1 -0
- package/lib/src/ap-descriptions/formatter/utils.d.ts +7 -0
- package/lib/src/ap-descriptions/formatter/utils.js +1 -0
- package/lib/src/ap-descriptions/help-message/index.vue.d.ts +23 -0
- package/lib/src/ap-descriptions/help-message/index.vue.js +1 -0
- package/lib/src/ap-descriptions/help-message/index.vue2.js +1 -0
- package/lib/src/ap-descriptions/helper.d.ts +10 -0
- package/lib/src/ap-descriptions/helper.js +1 -0
- package/lib/src/ap-descriptions/index.d.ts +4 -0
- package/lib/src/ap-descriptions/index.js +1 -0
- package/lib/src/ap-descriptions/interface.d.ts +50 -0
- package/lib/src/ap-descriptions/interface.js +1 -0
- package/lib/src/ap-descriptions/style/ap-descriptions.css +57 -0
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/hooks/index.d.ts +1 -6
- package/lib/src/ap-download/hooks/index.js +1 -1
- package/lib/src/ap-download/interface.d.ts +3 -13
- package/lib/src/ap-download/style/ap-download.css +12 -12
- package/lib/src/ap-field/interface.d.ts +3 -3
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +13 -2
- package/lib/src/business/ap-label/ApLabel.vue2.js +1 -1
- package/lib/src/business/ap-label/interface.d.ts +6 -3
- package/lib/src/business/ap-label/style.css +2 -1
- package/lib/src/business/index.d.ts +53 -9
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +14 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +3 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +20 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-descriptions/ap-descriptions.css +57 -0
- package/lib/src/theme/ap-download/ap-download.css +12 -12
- package/lib/src/theme/ap-label/ap-label.css +2 -1
- package/package.json +5 -5
|
@@ -8,7 +8,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
|
|
|
8
8
|
import { RequiredMark } from 'ant-design-vue/es/form/Form';
|
|
9
9
|
import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
|
|
10
10
|
import { LocaleType } from 'src';
|
|
11
|
-
import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from './constants';
|
|
11
|
+
import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig } from './constants';
|
|
12
12
|
|
|
13
13
|
export declare const globalConfigCached: Ref<Partial< ExtractPropTypes<{
|
|
14
14
|
iconPrefixCls: StringConstructor;
|
|
@@ -151,6 +151,10 @@ export declare const globalConfigCached: Ref<Partial< ExtractPropTypes<{
|
|
|
151
151
|
type: PropType<ApUploadConfig>;
|
|
152
152
|
default: () => {};
|
|
153
153
|
};
|
|
154
|
+
apDescriptions: {
|
|
155
|
+
type: PropType<ApDescriptionsConfig>;
|
|
156
|
+
default: () => {};
|
|
157
|
+
};
|
|
154
158
|
}>>>;
|
|
155
159
|
export declare const ConfigProvider: DefineComponent<{
|
|
156
160
|
iconPrefixCls: StringConstructor;
|
|
@@ -293,6 +297,10 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
293
297
|
type: PropType<ApUploadConfig>;
|
|
294
298
|
default: () => {};
|
|
295
299
|
};
|
|
300
|
+
apDescriptions: {
|
|
301
|
+
type: PropType<ApDescriptionsConfig>;
|
|
302
|
+
default: () => {};
|
|
303
|
+
};
|
|
296
304
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
297
305
|
iconPrefixCls: StringConstructor;
|
|
298
306
|
getTargetContainer: {
|
|
@@ -434,6 +442,10 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
434
442
|
type: PropType<ApUploadConfig>;
|
|
435
443
|
default: () => {};
|
|
436
444
|
};
|
|
445
|
+
apDescriptions: {
|
|
446
|
+
type: PropType<ApDescriptionsConfig>;
|
|
447
|
+
default: () => {};
|
|
448
|
+
};
|
|
437
449
|
}>>, {
|
|
438
450
|
theme: ThemeConfig;
|
|
439
451
|
direction: "ltr" | "rtl";
|
|
@@ -471,5 +483,6 @@ export declare const ConfigProvider: DefineComponent<{
|
|
|
471
483
|
scrollbar: ScrollbarGlobalConfig;
|
|
472
484
|
uiMode: "aplus" | "admin";
|
|
473
485
|
apUpload: ApUploadConfig;
|
|
486
|
+
apDescriptions: ApDescriptionsConfig;
|
|
474
487
|
}, {}>;
|
|
475
488
|
export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
@@ -1,38 +1,39 @@
|
|
|
1
|
-
import { isVNode as
|
|
1
|
+
import { isVNode as n, ref as l, defineComponent as c, computed as f, watch as d, createVNode as m, renderSlot as u } from "vue";
|
|
2
2
|
import { ConfigProvider as p } from "ant-design-vue";
|
|
3
3
|
import { provideGlobalConfig as g } from "./hooks/use-global-config.mjs";
|
|
4
|
-
import { configProviderProps as
|
|
5
|
-
import { tableDefaultConfig as
|
|
6
|
-
import { mergeAntdProvideConfig as
|
|
7
|
-
function
|
|
8
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
4
|
+
import { configProviderProps as s } from "./config-provider-props.mjs";
|
|
5
|
+
import { tableDefaultConfig as b } from "./constants.mjs";
|
|
6
|
+
import { mergeAntdProvideConfig as v } from "../utils/config-provider-preset.mjs";
|
|
7
|
+
function C(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !n(e);
|
|
9
9
|
}
|
|
10
|
-
const r =
|
|
10
|
+
const r = l({}), A = /* @__PURE__ */ c({
|
|
11
11
|
name: "AplusConfigProvider",
|
|
12
|
-
props:
|
|
12
|
+
props: s(),
|
|
13
13
|
setup(e, {
|
|
14
|
-
slots:
|
|
14
|
+
slots: i
|
|
15
15
|
}) {
|
|
16
|
-
const
|
|
16
|
+
const a = f(() => ({
|
|
17
17
|
namespace: e.namespace,
|
|
18
18
|
aplusLocale: e.aplusLocale,
|
|
19
19
|
api: e.api,
|
|
20
20
|
table: {
|
|
21
|
-
...
|
|
21
|
+
...b,
|
|
22
22
|
...e.table || {}
|
|
23
23
|
},
|
|
24
24
|
scrollbar: e.scrollbar,
|
|
25
25
|
uiMode: e.uiMode,
|
|
26
|
-
apUpload: e.apUpload
|
|
27
|
-
|
|
26
|
+
apUpload: e.apUpload,
|
|
27
|
+
apDescriptions: e.apDescriptions
|
|
28
|
+
})), t = g(a);
|
|
28
29
|
return d(() => e, (o) => {
|
|
29
|
-
r.value =
|
|
30
|
+
r.value = v(o);
|
|
30
31
|
}, {
|
|
31
32
|
deep: !0,
|
|
32
33
|
immediate: !0
|
|
33
34
|
}), () => {
|
|
34
35
|
let o;
|
|
35
|
-
return m(p, r.value,
|
|
36
|
+
return m(p, r.value, C(o = u(i, "default", {
|
|
36
37
|
config: t == null ? void 0 : t.value
|
|
37
38
|
})) ? o : {
|
|
38
39
|
default: () => [o]
|
|
@@ -41,6 +42,6 @@ const r = n({}), L = /* @__PURE__ */ f({
|
|
|
41
42
|
}
|
|
42
43
|
});
|
|
43
44
|
export {
|
|
44
|
-
|
|
45
|
+
A as ConfigProvider,
|
|
45
46
|
r as globalConfigCached
|
|
46
47
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MaybeRef } from '@aplus-frontend/utils';
|
|
2
2
|
import { App, Ref, ComputedRef, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
-
import { ConfigProviderContext, ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from '../constants';
|
|
3
|
+
import { ConfigProviderContext, ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig } from '../constants';
|
|
4
4
|
import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
|
|
5
5
|
import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
|
|
6
6
|
import { CSPConfig } from 'ant-design-vue/es/config-provider';
|
|
@@ -155,4 +155,8 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
155
155
|
type: PropType<ApUploadConfig>;
|
|
156
156
|
default: () => {};
|
|
157
157
|
};
|
|
158
|
+
apDescriptions: {
|
|
159
|
+
type: PropType<ApDescriptionsConfig>;
|
|
160
|
+
default: () => {};
|
|
161
|
+
};
|
|
158
162
|
}>>>> | undefined;
|
|
@@ -9,7 +9,7 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
|
|
|
9
9
|
import { RequiredMark } from 'ant-design-vue/es/form/Form';
|
|
10
10
|
import { ThemeConfig } from 'ant-design-vue/es/config-provider/context';
|
|
11
11
|
import { LocaleType } from 'src';
|
|
12
|
-
import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig } from './constants';
|
|
12
|
+
import { ApiType, TableDefaultConfig, ScrollbarGlobalConfig, ApUploadConfig, ApDescriptionsConfig } from './constants';
|
|
13
13
|
export * from './config-provider-props';
|
|
14
14
|
export * from './constants';
|
|
15
15
|
export * from './hooks/use-global-config';
|
|
@@ -158,6 +158,10 @@ export declare const APConfigProvider: {
|
|
|
158
158
|
type: PropType<ApUploadConfig>;
|
|
159
159
|
default: () => {};
|
|
160
160
|
};
|
|
161
|
+
apDescriptions: {
|
|
162
|
+
type: PropType<ApDescriptionsConfig>;
|
|
163
|
+
default: () => {};
|
|
164
|
+
};
|
|
161
165
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
162
166
|
iconPrefixCls: StringConstructor;
|
|
163
167
|
getTargetContainer: {
|
|
@@ -299,6 +303,10 @@ export declare const APConfigProvider: {
|
|
|
299
303
|
type: PropType<ApUploadConfig>;
|
|
300
304
|
default: () => {};
|
|
301
305
|
};
|
|
306
|
+
apDescriptions: {
|
|
307
|
+
type: PropType<ApDescriptionsConfig>;
|
|
308
|
+
default: () => {};
|
|
309
|
+
};
|
|
302
310
|
}>>, {
|
|
303
311
|
theme: ThemeConfig;
|
|
304
312
|
direction: "ltr" | "rtl";
|
|
@@ -336,6 +344,7 @@ export declare const APConfigProvider: {
|
|
|
336
344
|
scrollbar: ScrollbarGlobalConfig;
|
|
337
345
|
uiMode: "aplus" | "admin";
|
|
338
346
|
apUpload: ApUploadConfig;
|
|
347
|
+
apDescriptions: ApDescriptionsConfig;
|
|
339
348
|
}, true, {}, {}, {
|
|
340
349
|
P: {};
|
|
341
350
|
B: {};
|
|
@@ -484,6 +493,10 @@ export declare const APConfigProvider: {
|
|
|
484
493
|
type: PropType<ApUploadConfig>;
|
|
485
494
|
default: () => {};
|
|
486
495
|
};
|
|
496
|
+
apDescriptions: {
|
|
497
|
+
type: PropType<ApDescriptionsConfig>;
|
|
498
|
+
default: () => {};
|
|
499
|
+
};
|
|
487
500
|
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
488
501
|
theme: ThemeConfig;
|
|
489
502
|
direction: "ltr" | "rtl";
|
|
@@ -521,6 +534,7 @@ export declare const APConfigProvider: {
|
|
|
521
534
|
scrollbar: ScrollbarGlobalConfig;
|
|
522
535
|
uiMode: "aplus" | "admin";
|
|
523
536
|
apUpload: ApUploadConfig;
|
|
537
|
+
apDescriptions: ApDescriptionsConfig;
|
|
524
538
|
}>;
|
|
525
539
|
__isFragment?: undefined;
|
|
526
540
|
__isTeleport?: undefined;
|
|
@@ -666,6 +680,10 @@ export declare const APConfigProvider: {
|
|
|
666
680
|
type: PropType<ApUploadConfig>;
|
|
667
681
|
default: () => {};
|
|
668
682
|
};
|
|
683
|
+
apDescriptions: {
|
|
684
|
+
type: PropType<ApDescriptionsConfig>;
|
|
685
|
+
default: () => {};
|
|
686
|
+
};
|
|
669
687
|
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
670
688
|
theme: ThemeConfig;
|
|
671
689
|
direction: "ltr" | "rtl";
|
|
@@ -703,6 +721,7 @@ export declare const APConfigProvider: {
|
|
|
703
721
|
scrollbar: ScrollbarGlobalConfig;
|
|
704
722
|
uiMode: "aplus" | "admin";
|
|
705
723
|
apUpload: ApUploadConfig;
|
|
724
|
+
apDescriptions: ApDescriptionsConfig;
|
|
706
725
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin & (new (...args: any[]) => {
|
|
707
726
|
$props: {
|
|
708
727
|
onClick?: (() => void) | undefined;
|
package/es/src/index.d.ts
CHANGED