@aplus-frontend/ui 7.10.1 → 7.10.2
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/src/ap-action/item-dropdown/index.vue.mjs +43 -38
- package/es/src/ap-action/style/dropdown-item.mjs +17 -11
- package/es/src/ap-action/style/index.mjs +8 -9
- package/es/src/ap-form/style/item.mjs +15 -15
- package/es/src/config-provider/config-provider-props.d.ts +12 -12
- package/es/src/config-provider/config-provider-props.mjs +12 -12
- package/es/src/config-provider/config-provider.d.ts +27 -27
- package/es/src/config-provider/config-provider.mjs +42 -40
- package/es/src/config-provider/hooks/use-global-config.d.ts +13 -13
- package/es/src/config-provider/index.d.ts +43 -43
- package/es/src/design-token/interface.d.ts +2 -0
- package/es/src/utils/cssinjs/index.mjs +36 -35
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-action/style/dropdown-item.js +1 -1
- package/lib/src/ap-action/style/index.js +1 -1
- package/lib/src/ap-form/style/item.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +12 -12
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +27 -27
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +13 -13
- package/lib/src/config-provider/index.d.ts +43 -43
- package/lib/src/design-token/interface.d.ts +2 -0
- package/lib/src/utils/cssinjs/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -4
|
@@ -8,7 +8,7 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
|
8
8
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
9
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
|
|
11
|
-
import { UiModeType,
|
|
11
|
+
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
|
|
12
12
|
import { LocaleType } from '../../locale';
|
|
13
13
|
import { RecursivePartial } from '../../type';
|
|
14
14
|
export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
|
|
@@ -171,6 +171,18 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
171
171
|
uiMode?: UiModeType | undefined;
|
|
172
172
|
}>;
|
|
173
173
|
};
|
|
174
|
+
searchForm: {
|
|
175
|
+
type: PropType<SearchFormGlobalConfig>;
|
|
176
|
+
default: () => {};
|
|
177
|
+
};
|
|
178
|
+
apUpload: {
|
|
179
|
+
type: PropType<ApUploadConfig>;
|
|
180
|
+
default: () => {};
|
|
181
|
+
};
|
|
182
|
+
apDescriptions: {
|
|
183
|
+
type: PropType<ApDescriptionsConfig>;
|
|
184
|
+
default: () => {};
|
|
185
|
+
};
|
|
174
186
|
aplusLocale: {
|
|
175
187
|
type: PropType<LocaleType>;
|
|
176
188
|
};
|
|
@@ -187,14 +199,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
187
199
|
uiMode: {
|
|
188
200
|
type: PropType<UiModeType>;
|
|
189
201
|
};
|
|
190
|
-
apUpload: {
|
|
191
|
-
type: PropType<ApUploadConfig>;
|
|
192
|
-
default: () => {};
|
|
193
|
-
};
|
|
194
|
-
apDescriptions: {
|
|
195
|
-
type: PropType<ApDescriptionsConfig>;
|
|
196
|
-
default: () => {};
|
|
197
|
-
};
|
|
198
202
|
valueTypeMap: {
|
|
199
203
|
type: PropType<Record<string, ValueTypeRenderConfig>>;
|
|
200
204
|
default: () => {};
|
|
@@ -214,8 +218,4 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
214
218
|
type: PropType<ViewCacheOption>;
|
|
215
219
|
default: () => {};
|
|
216
220
|
};
|
|
217
|
-
searchForm: {
|
|
218
|
-
type: PropType<SearchFormGlobalConfig>;
|
|
219
|
-
default: () => {};
|
|
220
|
-
};
|
|
221
221
|
}>>>> | undefined;
|
|
@@ -6,7 +6,7 @@ import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
|
6
6
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
7
7
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
8
|
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
|
|
9
|
-
import { UiModeType,
|
|
9
|
+
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
10
10
|
import { LocaleType } from '../locale';
|
|
11
11
|
import { RecursivePartial } from '../type';
|
|
12
12
|
export * from './config-provider-props';
|
|
@@ -173,6 +173,18 @@ export declare const APConfigProvider: {
|
|
|
173
173
|
uiMode?: UiModeType | undefined;
|
|
174
174
|
}>;
|
|
175
175
|
};
|
|
176
|
+
searchForm: {
|
|
177
|
+
type: PropType<SearchFormGlobalConfig>;
|
|
178
|
+
default: () => {};
|
|
179
|
+
};
|
|
180
|
+
apUpload: {
|
|
181
|
+
type: PropType<ApUploadConfig>;
|
|
182
|
+
default: () => {};
|
|
183
|
+
};
|
|
184
|
+
apDescriptions: {
|
|
185
|
+
type: PropType<ApDescriptionsConfig>;
|
|
186
|
+
default: () => {};
|
|
187
|
+
};
|
|
176
188
|
aplusLocale: {
|
|
177
189
|
type: PropType<LocaleType>;
|
|
178
190
|
};
|
|
@@ -189,14 +201,6 @@ export declare const APConfigProvider: {
|
|
|
189
201
|
uiMode: {
|
|
190
202
|
type: PropType<UiModeType>;
|
|
191
203
|
};
|
|
192
|
-
apUpload: {
|
|
193
|
-
type: PropType<ApUploadConfig>;
|
|
194
|
-
default: () => {};
|
|
195
|
-
};
|
|
196
|
-
apDescriptions: {
|
|
197
|
-
type: PropType<ApDescriptionsConfig>;
|
|
198
|
-
default: () => {};
|
|
199
|
-
};
|
|
200
204
|
valueTypeMap: {
|
|
201
205
|
type: PropType<Record<string, ValueTypeRenderConfig>>;
|
|
202
206
|
default: () => {};
|
|
@@ -216,10 +220,6 @@ export declare const APConfigProvider: {
|
|
|
216
220
|
type: PropType<ViewCacheOption>;
|
|
217
221
|
default: () => {};
|
|
218
222
|
};
|
|
219
|
-
searchForm: {
|
|
220
|
-
type: PropType<SearchFormGlobalConfig>;
|
|
221
|
-
default: () => {};
|
|
222
|
-
};
|
|
223
223
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
224
224
|
input: InputConfig;
|
|
225
225
|
select: SelectConfig;
|
|
@@ -252,13 +252,13 @@ export declare const APConfigProvider: {
|
|
|
252
252
|
timePicker: TimePickerConfig;
|
|
253
253
|
card: CardConfig;
|
|
254
254
|
apUpload: ApUploadConfig;
|
|
255
|
-
|
|
255
|
+
searchForm: SearchFormGlobalConfig;
|
|
256
256
|
apDescriptions: ApDescriptionsConfig;
|
|
257
|
+
api: ApiType;
|
|
257
258
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
258
259
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
259
260
|
exportField: ExportField;
|
|
260
261
|
viewCacheOption: ViewCacheOption;
|
|
261
|
-
searchForm: SearchFormGlobalConfig;
|
|
262
262
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
263
263
|
P: {};
|
|
264
264
|
B: {};
|
|
@@ -423,6 +423,18 @@ export declare const APConfigProvider: {
|
|
|
423
423
|
uiMode?: UiModeType | undefined;
|
|
424
424
|
}>;
|
|
425
425
|
};
|
|
426
|
+
searchForm: {
|
|
427
|
+
type: PropType<SearchFormGlobalConfig>;
|
|
428
|
+
default: () => {};
|
|
429
|
+
};
|
|
430
|
+
apUpload: {
|
|
431
|
+
type: PropType<ApUploadConfig>;
|
|
432
|
+
default: () => {};
|
|
433
|
+
};
|
|
434
|
+
apDescriptions: {
|
|
435
|
+
type: PropType<ApDescriptionsConfig>;
|
|
436
|
+
default: () => {};
|
|
437
|
+
};
|
|
426
438
|
aplusLocale: {
|
|
427
439
|
type: PropType<LocaleType>;
|
|
428
440
|
};
|
|
@@ -439,14 +451,6 @@ export declare const APConfigProvider: {
|
|
|
439
451
|
uiMode: {
|
|
440
452
|
type: PropType<UiModeType>;
|
|
441
453
|
};
|
|
442
|
-
apUpload: {
|
|
443
|
-
type: PropType<ApUploadConfig>;
|
|
444
|
-
default: () => {};
|
|
445
|
-
};
|
|
446
|
-
apDescriptions: {
|
|
447
|
-
type: PropType<ApDescriptionsConfig>;
|
|
448
|
-
default: () => {};
|
|
449
|
-
};
|
|
450
454
|
valueTypeMap: {
|
|
451
455
|
type: PropType<Record<string, ValueTypeRenderConfig>>;
|
|
452
456
|
default: () => {};
|
|
@@ -466,10 +470,6 @@ export declare const APConfigProvider: {
|
|
|
466
470
|
type: PropType<ViewCacheOption>;
|
|
467
471
|
default: () => {};
|
|
468
472
|
};
|
|
469
|
-
searchForm: {
|
|
470
|
-
type: PropType<SearchFormGlobalConfig>;
|
|
471
|
-
default: () => {};
|
|
472
|
-
};
|
|
473
473
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
474
474
|
input: InputConfig;
|
|
475
475
|
select: SelectConfig;
|
|
@@ -502,13 +502,13 @@ export declare const APConfigProvider: {
|
|
|
502
502
|
timePicker: TimePickerConfig;
|
|
503
503
|
card: CardConfig;
|
|
504
504
|
apUpload: ApUploadConfig;
|
|
505
|
-
|
|
505
|
+
searchForm: SearchFormGlobalConfig;
|
|
506
506
|
apDescriptions: ApDescriptionsConfig;
|
|
507
|
+
api: ApiType;
|
|
507
508
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
508
509
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
509
510
|
exportField: ExportField;
|
|
510
511
|
viewCacheOption: ViewCacheOption;
|
|
511
|
-
searchForm: SearchFormGlobalConfig;
|
|
512
512
|
}>;
|
|
513
513
|
__isFragment?: never;
|
|
514
514
|
__isTeleport?: never;
|
|
@@ -670,6 +670,18 @@ export declare const APConfigProvider: {
|
|
|
670
670
|
uiMode?: UiModeType | undefined;
|
|
671
671
|
}>;
|
|
672
672
|
};
|
|
673
|
+
searchForm: {
|
|
674
|
+
type: PropType<SearchFormGlobalConfig>;
|
|
675
|
+
default: () => {};
|
|
676
|
+
};
|
|
677
|
+
apUpload: {
|
|
678
|
+
type: PropType<ApUploadConfig>;
|
|
679
|
+
default: () => {};
|
|
680
|
+
};
|
|
681
|
+
apDescriptions: {
|
|
682
|
+
type: PropType<ApDescriptionsConfig>;
|
|
683
|
+
default: () => {};
|
|
684
|
+
};
|
|
673
685
|
aplusLocale: {
|
|
674
686
|
type: PropType<LocaleType>;
|
|
675
687
|
};
|
|
@@ -686,14 +698,6 @@ export declare const APConfigProvider: {
|
|
|
686
698
|
uiMode: {
|
|
687
699
|
type: PropType<UiModeType>;
|
|
688
700
|
};
|
|
689
|
-
apUpload: {
|
|
690
|
-
type: PropType<ApUploadConfig>;
|
|
691
|
-
default: () => {};
|
|
692
|
-
};
|
|
693
|
-
apDescriptions: {
|
|
694
|
-
type: PropType<ApDescriptionsConfig>;
|
|
695
|
-
default: () => {};
|
|
696
|
-
};
|
|
697
701
|
valueTypeMap: {
|
|
698
702
|
type: PropType<Record<string, ValueTypeRenderConfig>>;
|
|
699
703
|
default: () => {};
|
|
@@ -713,10 +717,6 @@ export declare const APConfigProvider: {
|
|
|
713
717
|
type: PropType<ViewCacheOption>;
|
|
714
718
|
default: () => {};
|
|
715
719
|
};
|
|
716
|
-
searchForm: {
|
|
717
|
-
type: PropType<SearchFormGlobalConfig>;
|
|
718
|
-
default: () => {};
|
|
719
|
-
};
|
|
720
720
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
721
721
|
input: InputConfig;
|
|
722
722
|
select: SelectConfig;
|
|
@@ -749,13 +749,13 @@ export declare const APConfigProvider: {
|
|
|
749
749
|
timePicker: TimePickerConfig;
|
|
750
750
|
card: CardConfig;
|
|
751
751
|
apUpload: ApUploadConfig;
|
|
752
|
-
|
|
752
|
+
searchForm: SearchFormGlobalConfig;
|
|
753
753
|
apDescriptions: ApDescriptionsConfig;
|
|
754
|
+
api: ApiType;
|
|
754
755
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
755
756
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
756
757
|
exportField: ExportField;
|
|
757
758
|
viewCacheOption: ViewCacheOption;
|
|
758
|
-
searchForm: SearchFormGlobalConfig;
|
|
759
759
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
760
760
|
$props: {
|
|
761
761
|
onClick?: () => void;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { GlobalToken } from '@aplus-frontend/antdv/es/theme';
|
|
1
2
|
import { CSSInterpolation, CSSObject } from '@emotion/serialize';
|
|
2
3
|
import { AgGridToken } from '../ag-grid/style';
|
|
3
4
|
import { SearchFormToken } from '../ap-form/style/search-form';
|
|
@@ -296,6 +297,7 @@ export type TokenWithComponentCls<Token> = Token & {
|
|
|
296
297
|
};
|
|
297
298
|
export type TokenWithUtil<Token> = TokenWithComponentCls<Token> & {
|
|
298
299
|
calc: (cssVar: any) => InstanceType<typeof TokenUtil>;
|
|
300
|
+
antdv: GlobalToken;
|
|
299
301
|
};
|
|
300
302
|
export type CssVarToken<Token = Recordable> = {
|
|
301
303
|
[key in keyof Token]: Token[key] | string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@aplus-frontend/antdv/es/theme/internal"),k=require("@emotion/css"),$=require("@emotion/css/create-instance"),i=require("lodash-unified"),o=require("vue");require("../../config-provider/index.js");const b=require("../../config-provider/hooks/use-token.js"),h=require("./instance.js"),w=require("./plugin-specificity.js"),V=require("./TokenUtil.js"),C=require("./utils.js"),j=require("../../config-provider/hooks/use-global-config.js"),{css:P}=$({key:"css-dev-only",stylisPlugins:[w.downSpecificityPlugin]});function A(l){const s={};for(const t in l)s[t]=`var(${C.camelToKebab(t)})`;return s}function G(l,s,t,T){return c=>{const m=l.split("."),{token:u,rootCls:p}=b.useToken(),[,g]=S.useToken(),y=o.ref(),r=j.useGlobalConfig("namespace"),q=o.computed(()=>({...i.omit(u.value||{},"components"),...u.value.components?.[m[0]]||{}})),v=o.computed(()=>{const e=u.value.components?.[m[0]]||{};return{...i.isFunction(t)?t(q.value):t||{},...e}}),d=o.computed(()=>({...i.omit(u.value||{},"components"),...v.value,componentCls:`.${r.value}-${c}`,namespace:r.value}));return o.watch(()=>r.value,e=>{const n=A(d.value);n.componentCls=`.${e}-${c}`,n.namespace=e,n.calc=f=>new V.TokenUtil(f),n.antdv=g.value;const a=s(n,{...d.value,componentCls:`.${e}-${c}`,namespace:e});k.injectGlobal(a)},{immediate:!0}),o.watch([()=>v.value,()=>p.value],([e,n])=>{const a=C.generateCssVar(e,T);Object.keys(a).length&&h.css({[`.${n}.${r.value}-${c}`]:a})},{deep:!0,immediate:!0}),o.computed(()=>k.cx(p.value,y.value))}}exports.genComponentStyleHook=G;
|
package/lib/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.10.
|
|
1
|
+
declare const _default: "7.10.2";
|
|
2
2
|
export default _default;
|
package/lib/src/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.10.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="7.10.2";exports.default=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "7.10.
|
|
3
|
+
"version": "7.10.2",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
41
41
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
42
42
|
"vuedraggable": "^4.1.0",
|
|
43
|
-
"@aplus-frontend/
|
|
44
|
-
"@aplus-frontend/
|
|
43
|
+
"@aplus-frontend/hooks": "1.0.7",
|
|
44
|
+
"@aplus-frontend/utils": "1.0.61"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@aplus-frontend/antdv": "^1.3.5",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"@aplus-frontend/oss": "^1.1.9",
|
|
57
57
|
"@emotion/serialize": "^1.3.3",
|
|
58
58
|
"@types/sortablejs": "^1.15.8",
|
|
59
|
-
"@vue/test-utils": "^2.4.6",
|
|
60
59
|
"axios": "^1.7.2",
|
|
61
60
|
"csstype": "^3.1.3",
|
|
62
61
|
"jsdom": "^25.0.0",
|