@kmkf-fe-packages/basic-components 2.0.54-beta.1 → 2.0.54-beta.3
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/dist/index.esm.js +75 -1
- package/dist/index.js +75 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +1 -0
- package/dist/src/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -473,6 +473,57 @@ function _nonIterableSpread() {
|
|
|
473
473
|
function _nonIterableRest() {
|
|
474
474
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
475
475
|
}
|
|
476
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
477
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
478
|
+
if (!it) {
|
|
479
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
480
|
+
if (it) o = it;
|
|
481
|
+
var i = 0;
|
|
482
|
+
var F = function () {};
|
|
483
|
+
return {
|
|
484
|
+
s: F,
|
|
485
|
+
n: function () {
|
|
486
|
+
if (i >= o.length) return {
|
|
487
|
+
done: true
|
|
488
|
+
};
|
|
489
|
+
return {
|
|
490
|
+
done: false,
|
|
491
|
+
value: o[i++]
|
|
492
|
+
};
|
|
493
|
+
},
|
|
494
|
+
e: function (e) {
|
|
495
|
+
throw e;
|
|
496
|
+
},
|
|
497
|
+
f: F
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
501
|
+
}
|
|
502
|
+
var normalCompletion = true,
|
|
503
|
+
didErr = false,
|
|
504
|
+
err;
|
|
505
|
+
return {
|
|
506
|
+
s: function () {
|
|
507
|
+
it = it.call(o);
|
|
508
|
+
},
|
|
509
|
+
n: function () {
|
|
510
|
+
var step = it.next();
|
|
511
|
+
normalCompletion = step.done;
|
|
512
|
+
return step;
|
|
513
|
+
},
|
|
514
|
+
e: function (e) {
|
|
515
|
+
didErr = true;
|
|
516
|
+
err = e;
|
|
517
|
+
},
|
|
518
|
+
f: function () {
|
|
519
|
+
try {
|
|
520
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
521
|
+
} finally {
|
|
522
|
+
if (didErr) throw err;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
476
527
|
function _toPrimitive(input, hint) {
|
|
477
528
|
if (typeof input !== "object" || input === null) return input;
|
|
478
529
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -15737,6 +15788,29 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15737
15788
|
});
|
|
15738
15789
|
};
|
|
15739
15790
|
var erpColumnsMap = getColumnsMap$1();
|
|
15791
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15792
|
+
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15793
|
+
return column.validator;
|
|
15794
|
+
}).filter(Boolean);
|
|
15795
|
+
var res = null;
|
|
15796
|
+
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15797
|
+
_step;
|
|
15798
|
+
try {
|
|
15799
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15800
|
+
var validatorFn = _step.value;
|
|
15801
|
+
var validatorResult = validatorFn(_rule, value, type);
|
|
15802
|
+
if (validatorResult) {
|
|
15803
|
+
res = validatorResult;
|
|
15804
|
+
break;
|
|
15805
|
+
}
|
|
15806
|
+
}
|
|
15807
|
+
} catch (err) {
|
|
15808
|
+
_iterator.e(err);
|
|
15809
|
+
} finally {
|
|
15810
|
+
_iterator.f();
|
|
15811
|
+
}
|
|
15812
|
+
return res;
|
|
15813
|
+
};
|
|
15740
15814
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15741
15815
|
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15742
15816
|
var newColumns = {};
|
|
@@ -20346,4 +20420,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20346
20420
|
})));
|
|
20347
20421
|
};
|
|
20348
20422
|
|
|
20349
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
|
20423
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
package/dist/index.js
CHANGED
|
@@ -485,6 +485,57 @@ function _nonIterableSpread() {
|
|
|
485
485
|
function _nonIterableRest() {
|
|
486
486
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
487
487
|
}
|
|
488
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
489
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
490
|
+
if (!it) {
|
|
491
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
492
|
+
if (it) o = it;
|
|
493
|
+
var i = 0;
|
|
494
|
+
var F = function () {};
|
|
495
|
+
return {
|
|
496
|
+
s: F,
|
|
497
|
+
n: function () {
|
|
498
|
+
if (i >= o.length) return {
|
|
499
|
+
done: true
|
|
500
|
+
};
|
|
501
|
+
return {
|
|
502
|
+
done: false,
|
|
503
|
+
value: o[i++]
|
|
504
|
+
};
|
|
505
|
+
},
|
|
506
|
+
e: function (e) {
|
|
507
|
+
throw e;
|
|
508
|
+
},
|
|
509
|
+
f: F
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
513
|
+
}
|
|
514
|
+
var normalCompletion = true,
|
|
515
|
+
didErr = false,
|
|
516
|
+
err;
|
|
517
|
+
return {
|
|
518
|
+
s: function () {
|
|
519
|
+
it = it.call(o);
|
|
520
|
+
},
|
|
521
|
+
n: function () {
|
|
522
|
+
var step = it.next();
|
|
523
|
+
normalCompletion = step.done;
|
|
524
|
+
return step;
|
|
525
|
+
},
|
|
526
|
+
e: function (e) {
|
|
527
|
+
didErr = true;
|
|
528
|
+
err = e;
|
|
529
|
+
},
|
|
530
|
+
f: function () {
|
|
531
|
+
try {
|
|
532
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
533
|
+
} finally {
|
|
534
|
+
if (didErr) throw err;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
488
539
|
function _toPrimitive(input, hint) {
|
|
489
540
|
if (typeof input !== "object" || input === null) return input;
|
|
490
541
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -15749,6 +15800,29 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15749
15800
|
});
|
|
15750
15801
|
};
|
|
15751
15802
|
var erpColumnsMap = getColumnsMap$1();
|
|
15803
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15804
|
+
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15805
|
+
return column.validator;
|
|
15806
|
+
}).filter(Boolean);
|
|
15807
|
+
var res = null;
|
|
15808
|
+
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15809
|
+
_step;
|
|
15810
|
+
try {
|
|
15811
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15812
|
+
var validatorFn = _step.value;
|
|
15813
|
+
var validatorResult = validatorFn(_rule, value, type);
|
|
15814
|
+
if (validatorResult) {
|
|
15815
|
+
res = validatorResult;
|
|
15816
|
+
break;
|
|
15817
|
+
}
|
|
15818
|
+
}
|
|
15819
|
+
} catch (err) {
|
|
15820
|
+
_iterator.e(err);
|
|
15821
|
+
} finally {
|
|
15822
|
+
_iterator.f();
|
|
15823
|
+
}
|
|
15824
|
+
return res;
|
|
15825
|
+
};
|
|
15752
15826
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15753
15827
|
var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
|
|
15754
15828
|
var newColumns = {};
|
|
@@ -20426,6 +20500,7 @@ exports.WdtReissue = wdtReissue;
|
|
|
20426
20500
|
exports.WlnGoods = WlnGoods;
|
|
20427
20501
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
20428
20502
|
exports.erpColumnsMap = erpColumnsMap;
|
|
20503
|
+
exports.erpFormValidator = erpFormValidator;
|
|
20429
20504
|
exports.erpModalColumnsMap = index$2;
|
|
20430
20505
|
exports.getGyColumns = getColumns$4;
|
|
20431
20506
|
exports.getJstColumns = getColumns$5;
|
|
@@ -11,5 +11,6 @@ type ColumnsMapType = Record<string, ColumnsItemType[]>;
|
|
|
11
11
|
export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
12
12
|
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
13
13
|
export declare const erpColumnsMap: ColumnsMapType;
|
|
14
|
+
export declare const erpFormValidator: (_rule: any, value: any, type: string) => any;
|
|
14
15
|
declare const _default: ColumnsMapType;
|
|
15
16
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export type { WdtGoods } from './bs/component/model/WdtGoodList';
|
|
|
66
66
|
export { default as GyReissue } from './gy/Reissue';
|
|
67
67
|
export * from './constants/index';
|
|
68
68
|
export { default as GyReturn } from './gy/Return';
|
|
69
|
-
export { default as columnsBaseInfoMap, erpColumnsMap, } from './constants/columnsBaseInfoMap';
|
|
69
|
+
export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, } from './constants/columnsBaseInfoMap';
|
|
70
70
|
export { default as erpModalColumnsMap } from './bs/component/model/Columns';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.54-beta.
|
|
3
|
+
"version": "2.0.54-beta.3",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.2",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "589761f1e797ee16bb6ffe7c973181646609e556"
|
|
69
69
|
}
|