@airpower/web 1.9.4 → 1.9.6
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/README.md +6 -4
- package/dist/components/form/FormField.vue.d.ts +3 -3
- package/dist/components/image/Image.vue.d.ts +3 -3
- package/dist/components/input/Input.vue.d.ts +3 -3
- package/dist/config/WebConfig.d.ts +9 -0
- package/dist/main.js +68 -59
- package/dist/validator/WebValidator.d.ts +3 -3
- package/dist/web.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
<a href="https://www.npmjs.com/@airpower/web">
|
|
7
|
+
<img src="https://img.shields.io/npm/v/@airpower/web"/>
|
|
8
|
+
</a>
|
|
9
|
+
<a href="https://www.npmjs.com/@airpower/web">
|
|
10
|
+
<img src="https://img.shields.io/npm/dm/@airpower/web"/>
|
|
11
|
+
</a>
|
|
10
12
|
</p>
|
|
11
13
|
|
|
12
14
|
<p align="center">
|
|
@@ -6,7 +6,6 @@ import { RootEntity } from '../../model/RootEntity';
|
|
|
6
6
|
declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
8
8
|
disabled: boolean;
|
|
9
|
-
list: IEnum<number>[];
|
|
10
9
|
entity: ITransformerConstructor<E>;
|
|
11
10
|
modelValue: [{
|
|
12
11
|
type: PropType<E>;
|
|
@@ -17,6 +16,7 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
17
16
|
};
|
|
18
17
|
readonly: boolean;
|
|
19
18
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
19
|
+
list: IEnum<number>[];
|
|
20
20
|
tree: (ITree & E)[];
|
|
21
21
|
}> & Omit<{
|
|
22
22
|
readonly disabled: boolean;
|
|
@@ -30,15 +30,15 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
30
30
|
default: null;
|
|
31
31
|
}, undefined>;
|
|
32
32
|
readonly readonly: boolean;
|
|
33
|
-
readonly list?: IEnum<number>[] | undefined;
|
|
34
33
|
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
34
|
+
readonly list?: IEnum<number>[] | undefined;
|
|
35
35
|
readonly tree?: (ITree & E)[] | undefined;
|
|
36
36
|
readonly onClear?: (() => any) | undefined;
|
|
37
37
|
readonly onBlur?: (() => any) | undefined;
|
|
38
38
|
readonly onChange?: ((value: E) => any) | undefined;
|
|
39
39
|
readonly "onUpdate:modelValue"?: ((value: E) => any) | undefined;
|
|
40
40
|
readonly onFocus?: (() => any) | undefined;
|
|
41
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "entity" | "modelValue" | "readonly" | "disabledValue" | "list" | "tree">, "onFocus" | "onBlur" | "onChange" | "field" | "onClear" | "onUpdate:modelValue" | ("disabled" | "entity" | "modelValue" | "readonly" | "disabledValue" | "list" | "tree")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
42
42
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
43
43
|
attrs: any;
|
|
44
44
|
slots: {
|
|
@@ -6,12 +6,12 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
6
6
|
width: number;
|
|
7
7
|
placeholder: string;
|
|
8
8
|
data: IJson<any>;
|
|
9
|
-
headers: IJson<any>;
|
|
10
9
|
clearable: boolean;
|
|
11
10
|
height: number;
|
|
12
11
|
entity: ITransformerConstructor<F>;
|
|
13
12
|
src: string;
|
|
14
13
|
upload: boolean;
|
|
14
|
+
headers: IJson<any>;
|
|
15
15
|
showTips: boolean;
|
|
16
16
|
limit: number;
|
|
17
17
|
extensions: unknown[];
|
|
@@ -20,10 +20,10 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
20
20
|
}> & Omit<{
|
|
21
21
|
readonly width: number;
|
|
22
22
|
readonly data: IJson<any>;
|
|
23
|
-
readonly headers: IJson<any>;
|
|
24
23
|
readonly clearable: boolean;
|
|
25
24
|
readonly height: number;
|
|
26
25
|
readonly upload: boolean;
|
|
26
|
+
readonly headers: IJson<any>;
|
|
27
27
|
readonly showTips: boolean;
|
|
28
28
|
readonly limit: number;
|
|
29
29
|
readonly extensions: unknown[];
|
|
@@ -34,7 +34,7 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
34
34
|
readonly src?: string | undefined;
|
|
35
35
|
readonly onUpload?: ((file: F) => any) | undefined;
|
|
36
36
|
readonly onRemove?: (() => any) | undefined;
|
|
37
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "data" | "
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "data" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "onUpload" | "onRemove" | ("width" | "placeholder" | "data" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
38
38
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
39
39
|
attrs: any;
|
|
40
40
|
slots: {};
|
|
@@ -6,12 +6,12 @@ declare const _default: <E extends RootEntity, T extends ITree & E, EM extends I
|
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
7
7
|
disabled: boolean;
|
|
8
8
|
placeholder: string;
|
|
9
|
-
list: EM[];
|
|
10
9
|
dateShowFormatter: string;
|
|
11
10
|
entity: ITransformerConstructor<E>;
|
|
12
11
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
13
12
|
readonly: boolean;
|
|
14
13
|
disabledValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
14
|
+
list: EM[];
|
|
15
15
|
tree: T[];
|
|
16
16
|
modelModifiers: Record<string, any>;
|
|
17
17
|
modifier: string;
|
|
@@ -24,11 +24,11 @@ declare const _default: <E extends RootEntity, T extends ITree & E, EM extends I
|
|
|
24
24
|
readonly modelModifiers: Record<string, any>;
|
|
25
25
|
readonly showClear: boolean;
|
|
26
26
|
readonly onSearch: Function;
|
|
27
|
-
readonly list?: EM[] | undefined;
|
|
28
27
|
readonly dateShowFormatter?: string | undefined;
|
|
29
28
|
readonly entity?: ITransformerConstructor<E> | undefined;
|
|
30
29
|
readonly modelValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
31
30
|
readonly disabledValue?: string | number | boolean | unknown[] | Record<string, any> | undefined;
|
|
31
|
+
readonly list?: EM[] | undefined;
|
|
32
32
|
readonly tree?: T[] | undefined;
|
|
33
33
|
readonly modifier?: string | undefined;
|
|
34
34
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
@@ -36,7 +36,7 @@ declare const _default: <E extends RootEntity, T extends ITree & E, EM extends I
|
|
|
36
36
|
readonly onChange?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "placeholder" | "
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "list" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onChange" | "onClear" | "onUpdate:modelValue" | ("disabled" | "placeholder" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "list" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
40
40
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
41
|
attrs: any;
|
|
42
42
|
slots: Partial<Record<NonNullable<string | number | symbol>, (_: {}) => any>>;
|
|
@@ -208,6 +208,15 @@ export declare class WebConfig {
|
|
|
208
208
|
resetFilter: string;
|
|
209
209
|
clearFilter: string;
|
|
210
210
|
sumText: string;
|
|
211
|
+
selectAllLabel: string;
|
|
212
|
+
selectRowLabel: string;
|
|
213
|
+
expandRowLabel: string;
|
|
214
|
+
collapseRowLabel: string;
|
|
215
|
+
sortLabel: string;
|
|
216
|
+
filterLabel: string;
|
|
217
|
+
};
|
|
218
|
+
tag: {
|
|
219
|
+
close: string;
|
|
211
220
|
};
|
|
212
221
|
tour: {
|
|
213
222
|
next: string;
|
package/dist/main.js
CHANGED
|
@@ -536,7 +536,16 @@ var zhCn = {
|
|
|
536
536
|
confirmFilter: "筛选",
|
|
537
537
|
resetFilter: "重置",
|
|
538
538
|
clearFilter: "全部",
|
|
539
|
-
sumText: "合计"
|
|
539
|
+
sumText: "合计",
|
|
540
|
+
selectAllLabel: "选择所有行",
|
|
541
|
+
selectRowLabel: "选择当前行",
|
|
542
|
+
expandRowLabel: "展开当前行",
|
|
543
|
+
collapseRowLabel: "收起当前行",
|
|
544
|
+
sortLabel: "按 {column} 排序",
|
|
545
|
+
filterLabel: "按 {column} 过滤"
|
|
546
|
+
},
|
|
547
|
+
tag: {
|
|
548
|
+
close: "关闭此标签"
|
|
540
549
|
},
|
|
541
550
|
tour: {
|
|
542
551
|
next: "下一步",
|
|
@@ -1370,7 +1379,7 @@ var hasRequiredClipboard;
|
|
|
1370
1379
|
function requireClipboard() {
|
|
1371
1380
|
if (hasRequiredClipboard) return clipboard$1.exports;
|
|
1372
1381
|
hasRequiredClipboard = 1;
|
|
1373
|
-
(function(module, exports) {
|
|
1382
|
+
(function(module, exports$1) {
|
|
1374
1383
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
1375
1384
|
module.exports = factory();
|
|
1376
1385
|
})(clipboard, function() {
|
|
@@ -1792,18 +1801,18 @@ function requireClipboard() {
|
|
|
1792
1801
|
/***/
|
|
1793
1802
|
879: (
|
|
1794
1803
|
/***/
|
|
1795
|
-
function(__unused_webpack_module,
|
|
1796
|
-
|
|
1804
|
+
function(__unused_webpack_module, exports$12) {
|
|
1805
|
+
exports$12.node = function(value) {
|
|
1797
1806
|
return value !== void 0 && value instanceof HTMLElement && value.nodeType === 1;
|
|
1798
1807
|
};
|
|
1799
|
-
|
|
1808
|
+
exports$12.nodeList = function(value) {
|
|
1800
1809
|
var type = Object.prototype.toString.call(value);
|
|
1801
|
-
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 ||
|
|
1810
|
+
return value !== void 0 && (type === "[object NodeList]" || type === "[object HTMLCollection]") && "length" in value && (value.length === 0 || exports$12.node(value[0]));
|
|
1802
1811
|
};
|
|
1803
|
-
|
|
1812
|
+
exports$12.string = function(value) {
|
|
1804
1813
|
return typeof value === "string" || value instanceof String;
|
|
1805
1814
|
};
|
|
1806
|
-
|
|
1815
|
+
exports$12.fn = function(value) {
|
|
1807
1816
|
var type = Object.prototype.toString.call(value);
|
|
1808
1817
|
return type === "[object Function]";
|
|
1809
1818
|
};
|
|
@@ -1986,10 +1995,10 @@ function requireClipboard() {
|
|
|
1986
1995
|
};
|
|
1987
1996
|
}();
|
|
1988
1997
|
!function() {
|
|
1989
|
-
__webpack_require__.d = function(
|
|
1998
|
+
__webpack_require__.d = function(exports$12, definition) {
|
|
1990
1999
|
for (var key in definition) {
|
|
1991
|
-
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(
|
|
1992
|
-
Object.defineProperty(
|
|
2000
|
+
if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports$12, key)) {
|
|
2001
|
+
Object.defineProperty(exports$12, key, { enumerable: true, get: definition[key] });
|
|
1993
2002
|
}
|
|
1994
2003
|
}
|
|
1995
2004
|
};
|
|
@@ -2431,7 +2440,7 @@ var hasRequiredCore;
|
|
|
2431
2440
|
function requireCore() {
|
|
2432
2441
|
if (hasRequiredCore) return core$1.exports;
|
|
2433
2442
|
hasRequiredCore = 1;
|
|
2434
|
-
(function(module, exports) {
|
|
2443
|
+
(function(module, exports$1) {
|
|
2435
2444
|
(function(root, factory) {
|
|
2436
2445
|
{
|
|
2437
2446
|
module.exports = factory();
|
|
@@ -3039,7 +3048,7 @@ var hasRequiredX64Core;
|
|
|
3039
3048
|
function requireX64Core() {
|
|
3040
3049
|
if (hasRequiredX64Core) return x64Core$1.exports;
|
|
3041
3050
|
hasRequiredX64Core = 1;
|
|
3042
|
-
(function(module, exports) {
|
|
3051
|
+
(function(module, exports$1) {
|
|
3043
3052
|
(function(root, factory) {
|
|
3044
3053
|
{
|
|
3045
3054
|
module.exports = factory(requireCore());
|
|
@@ -3296,7 +3305,7 @@ var hasRequiredLibTypedarrays;
|
|
|
3296
3305
|
function requireLibTypedarrays() {
|
|
3297
3306
|
if (hasRequiredLibTypedarrays) return libTypedarrays$1.exports;
|
|
3298
3307
|
hasRequiredLibTypedarrays = 1;
|
|
3299
|
-
(function(module, exports) {
|
|
3308
|
+
(function(module, exports$1) {
|
|
3300
3309
|
(function(root, factory) {
|
|
3301
3310
|
{
|
|
3302
3311
|
module.exports = factory(requireCore());
|
|
@@ -3341,7 +3350,7 @@ var hasRequiredEncUtf16;
|
|
|
3341
3350
|
function requireEncUtf16() {
|
|
3342
3351
|
if (hasRequiredEncUtf16) return encUtf16$1.exports;
|
|
3343
3352
|
hasRequiredEncUtf16 = 1;
|
|
3344
|
-
(function(module, exports) {
|
|
3353
|
+
(function(module, exports$1) {
|
|
3345
3354
|
(function(root, factory) {
|
|
3346
3355
|
{
|
|
3347
3356
|
module.exports = factory(requireCore());
|
|
@@ -3459,7 +3468,7 @@ var hasRequiredEncBase64;
|
|
|
3459
3468
|
function requireEncBase64() {
|
|
3460
3469
|
if (hasRequiredEncBase64) return encBase64$1.exports;
|
|
3461
3470
|
hasRequiredEncBase64 = 1;
|
|
3462
|
-
(function(module, exports) {
|
|
3471
|
+
(function(module, exports$1) {
|
|
3463
3472
|
(function(root, factory) {
|
|
3464
3473
|
{
|
|
3465
3474
|
module.exports = factory(requireCore());
|
|
@@ -3567,7 +3576,7 @@ var hasRequiredEncBase64url;
|
|
|
3567
3576
|
function requireEncBase64url() {
|
|
3568
3577
|
if (hasRequiredEncBase64url) return encBase64url$1.exports;
|
|
3569
3578
|
hasRequiredEncBase64url = 1;
|
|
3570
|
-
(function(module, exports) {
|
|
3579
|
+
(function(module, exports$1) {
|
|
3571
3580
|
(function(root, factory) {
|
|
3572
3581
|
{
|
|
3573
3582
|
module.exports = factory(requireCore());
|
|
@@ -3686,7 +3695,7 @@ var hasRequiredMd5;
|
|
|
3686
3695
|
function requireMd5() {
|
|
3687
3696
|
if (hasRequiredMd5) return md5$1.exports;
|
|
3688
3697
|
hasRequiredMd5 = 1;
|
|
3689
|
-
(function(module, exports) {
|
|
3698
|
+
(function(module, exports$1) {
|
|
3690
3699
|
(function(root, factory) {
|
|
3691
3700
|
{
|
|
3692
3701
|
module.exports = factory(requireCore());
|
|
@@ -3865,7 +3874,7 @@ var hasRequiredSha1;
|
|
|
3865
3874
|
function requireSha1() {
|
|
3866
3875
|
if (hasRequiredSha1) return sha1$1.exports;
|
|
3867
3876
|
hasRequiredSha1 = 1;
|
|
3868
|
-
(function(module, exports) {
|
|
3877
|
+
(function(module, exports$1) {
|
|
3869
3878
|
(function(root, factory) {
|
|
3870
3879
|
{
|
|
3871
3880
|
module.exports = factory(requireCore());
|
|
@@ -3956,7 +3965,7 @@ var hasRequiredSha256;
|
|
|
3956
3965
|
function requireSha256() {
|
|
3957
3966
|
if (hasRequiredSha256) return sha256$1.exports;
|
|
3958
3967
|
hasRequiredSha256 = 1;
|
|
3959
|
-
(function(module, exports) {
|
|
3968
|
+
(function(module, exports$1) {
|
|
3960
3969
|
(function(root, factory) {
|
|
3961
3970
|
{
|
|
3962
3971
|
module.exports = factory(requireCore());
|
|
@@ -4077,7 +4086,7 @@ var hasRequiredSha224;
|
|
|
4077
4086
|
function requireSha224() {
|
|
4078
4087
|
if (hasRequiredSha224) return sha224$1.exports;
|
|
4079
4088
|
hasRequiredSha224 = 1;
|
|
4080
|
-
(function(module, exports) {
|
|
4089
|
+
(function(module, exports$1) {
|
|
4081
4090
|
(function(root, factory, undef) {
|
|
4082
4091
|
{
|
|
4083
4092
|
module.exports = factory(requireCore(), requireSha256());
|
|
@@ -4122,7 +4131,7 @@ var hasRequiredSha512;
|
|
|
4122
4131
|
function requireSha512() {
|
|
4123
4132
|
if (hasRequiredSha512) return sha512$1.exports;
|
|
4124
4133
|
hasRequiredSha512 = 1;
|
|
4125
|
-
(function(module, exports) {
|
|
4134
|
+
(function(module, exports$1) {
|
|
4126
4135
|
(function(root, factory, undef) {
|
|
4127
4136
|
{
|
|
4128
4137
|
module.exports = factory(requireCore(), requireX64Core());
|
|
@@ -4404,7 +4413,7 @@ var hasRequiredSha384;
|
|
|
4404
4413
|
function requireSha384() {
|
|
4405
4414
|
if (hasRequiredSha384) return sha384$1.exports;
|
|
4406
4415
|
hasRequiredSha384 = 1;
|
|
4407
|
-
(function(module, exports) {
|
|
4416
|
+
(function(module, exports$1) {
|
|
4408
4417
|
(function(root, factory, undef) {
|
|
4409
4418
|
{
|
|
4410
4419
|
module.exports = factory(requireCore(), requireX64Core(), requireSha512());
|
|
@@ -4450,7 +4459,7 @@ var hasRequiredSha3;
|
|
|
4450
4459
|
function requireSha3() {
|
|
4451
4460
|
if (hasRequiredSha3) return sha3$1.exports;
|
|
4452
4461
|
hasRequiredSha3 = 1;
|
|
4453
|
-
(function(module, exports) {
|
|
4462
|
+
(function(module, exports$1) {
|
|
4454
4463
|
(function(root, factory, undef) {
|
|
4455
4464
|
{
|
|
4456
4465
|
module.exports = factory(requireCore(), requireX64Core());
|
|
@@ -4652,7 +4661,7 @@ var hasRequiredRipemd160;
|
|
|
4652
4661
|
function requireRipemd160() {
|
|
4653
4662
|
if (hasRequiredRipemd160) return ripemd160$1.exports;
|
|
4654
4663
|
hasRequiredRipemd160 = 1;
|
|
4655
|
-
(function(module, exports) {
|
|
4664
|
+
(function(module, exports$1) {
|
|
4656
4665
|
(function(root, factory) {
|
|
4657
4666
|
{
|
|
4658
4667
|
module.exports = factory(requireCore());
|
|
@@ -5123,7 +5132,7 @@ var hasRequiredHmac;
|
|
|
5123
5132
|
function requireHmac() {
|
|
5124
5133
|
if (hasRequiredHmac) return hmac$1.exports;
|
|
5125
5134
|
hasRequiredHmac = 1;
|
|
5126
|
-
(function(module, exports) {
|
|
5135
|
+
(function(module, exports$1) {
|
|
5127
5136
|
(function(root, factory) {
|
|
5128
5137
|
{
|
|
5129
5138
|
module.exports = factory(requireCore());
|
|
@@ -5230,7 +5239,7 @@ var hasRequiredPbkdf2;
|
|
|
5230
5239
|
function requirePbkdf2() {
|
|
5231
5240
|
if (hasRequiredPbkdf2) return pbkdf2$1.exports;
|
|
5232
5241
|
hasRequiredPbkdf2 = 1;
|
|
5233
|
-
(function(module, exports) {
|
|
5242
|
+
(function(module, exports$1) {
|
|
5234
5243
|
(function(root, factory, undef) {
|
|
5235
5244
|
{
|
|
5236
5245
|
module.exports = factory(requireCore(), requireSha256(), requireHmac());
|
|
@@ -5328,7 +5337,7 @@ var hasRequiredEvpkdf;
|
|
|
5328
5337
|
function requireEvpkdf() {
|
|
5329
5338
|
if (hasRequiredEvpkdf) return evpkdf$1.exports;
|
|
5330
5339
|
hasRequiredEvpkdf = 1;
|
|
5331
|
-
(function(module, exports) {
|
|
5340
|
+
(function(module, exports$1) {
|
|
5332
5341
|
(function(root, factory, undef) {
|
|
5333
5342
|
{
|
|
5334
5343
|
module.exports = factory(requireCore(), requireSha1(), requireHmac());
|
|
@@ -5419,7 +5428,7 @@ var hasRequiredCipherCore;
|
|
|
5419
5428
|
function requireCipherCore() {
|
|
5420
5429
|
if (hasRequiredCipherCore) return cipherCore$1.exports;
|
|
5421
5430
|
hasRequiredCipherCore = 1;
|
|
5422
|
-
(function(module, exports) {
|
|
5431
|
+
(function(module, exports$1) {
|
|
5423
5432
|
(function(root, factory, undef) {
|
|
5424
5433
|
{
|
|
5425
5434
|
module.exports = factory(requireCore(), requireEvpkdf());
|
|
@@ -6063,7 +6072,7 @@ var hasRequiredModeCfb;
|
|
|
6063
6072
|
function requireModeCfb() {
|
|
6064
6073
|
if (hasRequiredModeCfb) return modeCfb$1.exports;
|
|
6065
6074
|
hasRequiredModeCfb = 1;
|
|
6066
|
-
(function(module, exports) {
|
|
6075
|
+
(function(module, exports$1) {
|
|
6067
6076
|
(function(root, factory, undef) {
|
|
6068
6077
|
{
|
|
6069
6078
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6115,7 +6124,7 @@ var hasRequiredModeCtr;
|
|
|
6115
6124
|
function requireModeCtr() {
|
|
6116
6125
|
if (hasRequiredModeCtr) return modeCtr$1.exports;
|
|
6117
6126
|
hasRequiredModeCtr = 1;
|
|
6118
|
-
(function(module, exports) {
|
|
6127
|
+
(function(module, exports$1) {
|
|
6119
6128
|
(function(root, factory, undef) {
|
|
6120
6129
|
{
|
|
6121
6130
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6155,7 +6164,7 @@ var hasRequiredModeCtrGladman;
|
|
|
6155
6164
|
function requireModeCtrGladman() {
|
|
6156
6165
|
if (hasRequiredModeCtrGladman) return modeCtrGladman$1.exports;
|
|
6157
6166
|
hasRequiredModeCtrGladman = 1;
|
|
6158
|
-
(function(module, exports) {
|
|
6167
|
+
(function(module, exports$1) {
|
|
6159
6168
|
(function(root, factory, undef) {
|
|
6160
6169
|
{
|
|
6161
6170
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6230,7 +6239,7 @@ var hasRequiredModeOfb;
|
|
|
6230
6239
|
function requireModeOfb() {
|
|
6231
6240
|
if (hasRequiredModeOfb) return modeOfb$1.exports;
|
|
6232
6241
|
hasRequiredModeOfb = 1;
|
|
6233
|
-
(function(module, exports) {
|
|
6242
|
+
(function(module, exports$1) {
|
|
6234
6243
|
(function(root, factory, undef) {
|
|
6235
6244
|
{
|
|
6236
6245
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6268,7 +6277,7 @@ var hasRequiredModeEcb;
|
|
|
6268
6277
|
function requireModeEcb() {
|
|
6269
6278
|
if (hasRequiredModeEcb) return modeEcb$1.exports;
|
|
6270
6279
|
hasRequiredModeEcb = 1;
|
|
6271
|
-
(function(module, exports) {
|
|
6280
|
+
(function(module, exports$1) {
|
|
6272
6281
|
(function(root, factory, undef) {
|
|
6273
6282
|
{
|
|
6274
6283
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6299,7 +6308,7 @@ var hasRequiredPadAnsix923;
|
|
|
6299
6308
|
function requirePadAnsix923() {
|
|
6300
6309
|
if (hasRequiredPadAnsix923) return padAnsix923$1.exports;
|
|
6301
6310
|
hasRequiredPadAnsix923 = 1;
|
|
6302
|
-
(function(module, exports) {
|
|
6311
|
+
(function(module, exports$1) {
|
|
6303
6312
|
(function(root, factory, undef) {
|
|
6304
6313
|
{
|
|
6305
6314
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6331,7 +6340,7 @@ var hasRequiredPadIso10126;
|
|
|
6331
6340
|
function requirePadIso10126() {
|
|
6332
6341
|
if (hasRequiredPadIso10126) return padIso10126$1.exports;
|
|
6333
6342
|
hasRequiredPadIso10126 = 1;
|
|
6334
|
-
(function(module, exports) {
|
|
6343
|
+
(function(module, exports$1) {
|
|
6335
6344
|
(function(root, factory, undef) {
|
|
6336
6345
|
{
|
|
6337
6346
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6359,7 +6368,7 @@ var hasRequiredPadIso97971;
|
|
|
6359
6368
|
function requirePadIso97971() {
|
|
6360
6369
|
if (hasRequiredPadIso97971) return padIso97971$1.exports;
|
|
6361
6370
|
hasRequiredPadIso97971 = 1;
|
|
6362
|
-
(function(module, exports) {
|
|
6371
|
+
(function(module, exports$1) {
|
|
6363
6372
|
(function(root, factory, undef) {
|
|
6364
6373
|
{
|
|
6365
6374
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6386,7 +6395,7 @@ var hasRequiredPadZeropadding;
|
|
|
6386
6395
|
function requirePadZeropadding() {
|
|
6387
6396
|
if (hasRequiredPadZeropadding) return padZeropadding$1.exports;
|
|
6388
6397
|
hasRequiredPadZeropadding = 1;
|
|
6389
|
-
(function(module, exports) {
|
|
6398
|
+
(function(module, exports$1) {
|
|
6390
6399
|
(function(root, factory, undef) {
|
|
6391
6400
|
{
|
|
6392
6401
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6420,7 +6429,7 @@ var hasRequiredPadNopadding;
|
|
|
6420
6429
|
function requirePadNopadding() {
|
|
6421
6430
|
if (hasRequiredPadNopadding) return padNopadding$1.exports;
|
|
6422
6431
|
hasRequiredPadNopadding = 1;
|
|
6423
|
-
(function(module, exports) {
|
|
6432
|
+
(function(module, exports$1) {
|
|
6424
6433
|
(function(root, factory, undef) {
|
|
6425
6434
|
{
|
|
6426
6435
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6443,7 +6452,7 @@ var hasRequiredFormatHex;
|
|
|
6443
6452
|
function requireFormatHex() {
|
|
6444
6453
|
if (hasRequiredFormatHex) return formatHex$1.exports;
|
|
6445
6454
|
hasRequiredFormatHex = 1;
|
|
6446
|
-
(function(module, exports) {
|
|
6455
|
+
(function(module, exports$1) {
|
|
6447
6456
|
(function(root, factory, undef) {
|
|
6448
6457
|
{
|
|
6449
6458
|
module.exports = factory(requireCore(), requireCipherCore());
|
|
@@ -6503,7 +6512,7 @@ var hasRequiredAes;
|
|
|
6503
6512
|
function requireAes() {
|
|
6504
6513
|
if (hasRequiredAes) return aes$1.exports;
|
|
6505
6514
|
hasRequiredAes = 1;
|
|
6506
|
-
(function(module, exports) {
|
|
6515
|
+
(function(module, exports$1) {
|
|
6507
6516
|
(function(root, factory, undef) {
|
|
6508
6517
|
{
|
|
6509
6518
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -6657,7 +6666,7 @@ var hasRequiredTripledes;
|
|
|
6657
6666
|
function requireTripledes() {
|
|
6658
6667
|
if (hasRequiredTripledes) return tripledes$1.exports;
|
|
6659
6668
|
hasRequiredTripledes = 1;
|
|
6660
|
-
(function(module, exports) {
|
|
6669
|
+
(function(module, exports$1) {
|
|
6661
6670
|
(function(root, factory, undef) {
|
|
6662
6671
|
{
|
|
6663
6672
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -7438,7 +7447,7 @@ var hasRequiredRc4;
|
|
|
7438
7447
|
function requireRc4() {
|
|
7439
7448
|
if (hasRequiredRc4) return rc4$1.exports;
|
|
7440
7449
|
hasRequiredRc4 = 1;
|
|
7441
|
-
(function(module, exports) {
|
|
7450
|
+
(function(module, exports$1) {
|
|
7442
7451
|
(function(root, factory, undef) {
|
|
7443
7452
|
{
|
|
7444
7453
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -7521,7 +7530,7 @@ var hasRequiredRabbit;
|
|
|
7521
7530
|
function requireRabbit() {
|
|
7522
7531
|
if (hasRequiredRabbit) return rabbit$1.exports;
|
|
7523
7532
|
hasRequiredRabbit = 1;
|
|
7524
|
-
(function(module, exports) {
|
|
7533
|
+
(function(module, exports$1) {
|
|
7525
7534
|
(function(root, factory, undef) {
|
|
7526
7535
|
{
|
|
7527
7536
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -7650,7 +7659,7 @@ var hasRequiredRabbitLegacy;
|
|
|
7650
7659
|
function requireRabbitLegacy() {
|
|
7651
7660
|
if (hasRequiredRabbitLegacy) return rabbitLegacy$1.exports;
|
|
7652
7661
|
hasRequiredRabbitLegacy = 1;
|
|
7653
|
-
(function(module, exports) {
|
|
7662
|
+
(function(module, exports$1) {
|
|
7654
7663
|
(function(root, factory, undef) {
|
|
7655
7664
|
{
|
|
7656
7665
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -7776,7 +7785,7 @@ var hasRequiredBlowfish;
|
|
|
7776
7785
|
function requireBlowfish() {
|
|
7777
7786
|
if (hasRequiredBlowfish) return blowfish$1.exports;
|
|
7778
7787
|
hasRequiredBlowfish = 1;
|
|
7779
|
-
(function(module, exports) {
|
|
7788
|
+
(function(module, exports$1) {
|
|
7780
7789
|
(function(root, factory, undef) {
|
|
7781
7790
|
{
|
|
7782
7791
|
module.exports = factory(requireCore(), requireEncBase64(), requireMd5(), requireEvpkdf(), requireCipherCore());
|
|
@@ -8964,7 +8973,7 @@ var hasRequiredCryptoJs;
|
|
|
8964
8973
|
function requireCryptoJs() {
|
|
8965
8974
|
if (hasRequiredCryptoJs) return cryptoJs$1.exports;
|
|
8966
8975
|
hasRequiredCryptoJs = 1;
|
|
8967
|
-
(function(module, exports) {
|
|
8976
|
+
(function(module, exports$1) {
|
|
8968
8977
|
(function(root, factory, undef) {
|
|
8969
8978
|
{
|
|
8970
8979
|
module.exports = factory(requireCore(), requireX64Core(), requireLibTypedarrays(), requireEncUtf16(), requireEncBase64(), requireEncBase64url(), requireMd5(), requireSha1(), requireSha256(), requireSha224(), requireSha512(), requireSha384(), requireSha3(), requireRipemd160(), requireHmac(), requirePbkdf2(), requireEvpkdf(), requireCipherCore(), requireModeCfb(), requireModeCtr(), requireModeCtrGladman(), requireModeOfb(), requireModeEcb(), requirePadAnsix923(), requirePadIso10126(), requirePadIso97971(), requirePadZeropadding(), requirePadNopadding(), requireFormatHex(), requireAes(), requireTripledes(), requireRc4(), requireRabbit(), requireRabbitLegacy(), requireBlowfish());
|
|
@@ -10494,7 +10503,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10494
10503
|
if (!formData) {
|
|
10495
10504
|
throw new Error("请手动为AFormField绑定v-model或使用 useEditor 创建表单对象(推荐)!!!");
|
|
10496
10505
|
}
|
|
10497
|
-
const EntityClass = inject("entityClass")
|
|
10506
|
+
const EntityClass = props.entity || inject("entityClass");
|
|
10498
10507
|
if (!EntityClass) {
|
|
10499
10508
|
throw new Error("请手动传入到AFormField的entity属性或使用 useEditor 创建表单对象(推荐)!!!");
|
|
10500
10509
|
}
|
|
@@ -10795,11 +10804,11 @@ function isSameRouteRecord(a, b) {
|
|
|
10795
10804
|
}
|
|
10796
10805
|
function isSameRouteLocationParams(a, b) {
|
|
10797
10806
|
if (Object.keys(a).length !== Object.keys(b).length) return false;
|
|
10798
|
-
for (
|
|
10807
|
+
for (var key in a) if (!isSameRouteLocationParamsValue(a[key], b[key])) return false;
|
|
10799
10808
|
return true;
|
|
10800
10809
|
}
|
|
10801
10810
|
function isSameRouteLocationParamsValue(a, b) {
|
|
10802
|
-
return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : a === b;
|
|
10811
|
+
return isArray(a) ? isEquivalentArray(a, b) : isArray(b) ? isEquivalentArray(b, a) : a?.valueOf() === b?.valueOf();
|
|
10803
10812
|
}
|
|
10804
10813
|
function isEquivalentArray(a, b) {
|
|
10805
10814
|
return isArray(b) ? a.length === b.length && a.every((value, i) => value === b[i]) : a.length === 1 && a[0] === b;
|
|
@@ -12259,7 +12268,7 @@ function includesParams(outer, inner) {
|
|
|
12259
12268
|
const outerValue = outer[key];
|
|
12260
12269
|
if (typeof innerValue === "string") {
|
|
12261
12270
|
if (innerValue !== outerValue) return false;
|
|
12262
|
-
} else if (!isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value !== outerValue[i])) return false;
|
|
12271
|
+
} else if (!isArray(outerValue) || outerValue.length !== innerValue.length || innerValue.some((value, i) => value.valueOf() !== outerValue[i].valueOf())) return false;
|
|
12263
12272
|
}
|
|
12264
12273
|
return true;
|
|
12265
12274
|
}
|
|
@@ -15165,7 +15174,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
15165
15174
|
}, {
|
|
15166
15175
|
default: withCtx(() => [
|
|
15167
15176
|
createElementVNode("div", _hoisted_1$6, [
|
|
15168
|
-
createVNode(unref(
|
|
15177
|
+
createVNode(unref(Qrcode), {
|
|
15169
15178
|
content,
|
|
15170
15179
|
size: 160
|
|
15171
15180
|
}),
|
|
@@ -16294,7 +16303,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
16294
16303
|
};
|
|
16295
16304
|
}
|
|
16296
16305
|
});
|
|
16297
|
-
const
|
|
16306
|
+
const Qrcode = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-024409f5"]]);
|
|
16298
16307
|
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
16299
16308
|
__name: "Select",
|
|
16300
16309
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -18597,12 +18606,12 @@ class WebValidator {
|
|
|
18597
18606
|
}
|
|
18598
18607
|
/**
|
|
18599
18608
|
* ### 创建验证器
|
|
18600
|
-
* @param
|
|
18609
|
+
* @param entityClass 接口服务对象
|
|
18601
18610
|
* @param rules `可选` 表单验证规则
|
|
18602
18611
|
*/
|
|
18603
|
-
static createRules(
|
|
18612
|
+
static createRules(entityClass, rules = {}) {
|
|
18604
18613
|
const formRules = rules;
|
|
18605
|
-
const formFieldList = getFormConfigList(
|
|
18614
|
+
const formFieldList = getFormConfigList(entityClass);
|
|
18606
18615
|
for (let i = 0; i < formFieldList.length; i += 1) {
|
|
18607
18616
|
const config = formFieldList[i];
|
|
18608
18617
|
const fieldKey = config.key;
|
|
@@ -19078,7 +19087,7 @@ class WebValidator {
|
|
|
19078
19087
|
function useEditor(props, ServiceClass, option = {}) {
|
|
19079
19088
|
const result = useDetail(props, ServiceClass, option);
|
|
19080
19089
|
const title = computed(() => result.formData.value.id ? WebI18n.get().Update : WebI18n.get().Add);
|
|
19081
|
-
const rules = WebValidator.createRules(new ServiceClass(), option.customRules || {});
|
|
19090
|
+
const rules = WebValidator.createRules(new ServiceClass().entityClass, option.customRules || {});
|
|
19082
19091
|
const formRef = ref();
|
|
19083
19092
|
async function onSubmit() {
|
|
19084
19093
|
let postData = result.formData.value.copy();
|
|
@@ -19446,7 +19455,7 @@ class AbstractCurdService extends AbstractService {
|
|
|
19446
19455
|
* @param moreRule `可选` 更多的验证规则
|
|
19447
19456
|
*/
|
|
19448
19457
|
static createValidator(moreRule = {}) {
|
|
19449
|
-
return WebValidator.createRules(new this(), moreRule);
|
|
19458
|
+
return WebValidator.createRules(new this().entityClass, moreRule);
|
|
19450
19459
|
}
|
|
19451
19460
|
/**
|
|
19452
19461
|
* ### 查询分页数据列表
|
|
@@ -19602,7 +19611,7 @@ export {
|
|
|
19602
19611
|
APanel,
|
|
19603
19612
|
APayload,
|
|
19604
19613
|
APhone,
|
|
19605
|
-
AQrcode,
|
|
19614
|
+
Qrcode as AQrcode,
|
|
19606
19615
|
_sfc_main$9 as ASelect,
|
|
19607
19616
|
_sfc_main$8 as ASelector,
|
|
19608
19617
|
_sfc_main$7 as ATab,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ITransformerConstructor } from '@airpower/transformer';
|
|
1
2
|
import { RootEntity } from '../model/RootEntity';
|
|
2
|
-
import { AbstractCurdService } from '../service/AbstractCurdService';
|
|
3
3
|
import { WebValidateRule, WebValidatorCallback, WebValidatorTarget, WebValidatorTrigger, WebValidatorType } from './type';
|
|
4
4
|
/**
|
|
5
5
|
* ### 表单验证
|
|
@@ -43,10 +43,10 @@ export declare class WebValidator {
|
|
|
43
43
|
static create<E extends RootEntity = RootEntity>(rule: WebValidateRule<E>): WebValidateRule<E>;
|
|
44
44
|
/**
|
|
45
45
|
* ### 创建验证器
|
|
46
|
-
* @param
|
|
46
|
+
* @param entityClass 接口服务对象
|
|
47
47
|
* @param rules `可选` 表单验证规则
|
|
48
48
|
*/
|
|
49
|
-
static createRules<E extends RootEntity
|
|
49
|
+
static createRules<E extends RootEntity>(entityClass: ITransformerConstructor<E>, rules?: WebValidateRule<E>): WebValidateRule<E>;
|
|
50
50
|
/**
|
|
51
51
|
* ### 获取一个验证器
|
|
52
52
|
* @param configValue 验证器配置的值
|