@kmkf-fe-packages/services-components 0.15.0-alpha.1 → 0.15.1-alpha.1
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/esm/components/Common/index.d.ts +1 -0
- package/dist/esm/components/Common/index.js +55 -0
- package/dist/esm/components/MsgStatus/index.d.ts +39 -0
- package/dist/esm/components/MsgStatus/index.js +183 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +3 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/package.json +7 -7
|
@@ -30,4 +30,5 @@ export declare const BsGoodsTable: ({ list, showHeader, text, }: {
|
|
|
30
30
|
}) => React.JSX.Element;
|
|
31
31
|
export declare const FileRender: ({ fileList, canDownload }: any) => React.JSX.Element;
|
|
32
32
|
export declare const BsSystemOrderTable: ({ value, type }: any) => React.JSX.Element;
|
|
33
|
+
export declare const MsgContent: ({ horizontal, list, valueKey, failValue, options, }: any) => React.JSX.Element;
|
|
33
34
|
export {};
|
|
@@ -624,4 +624,59 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
624
624
|
emptyText: "暂无数据"
|
|
625
625
|
}
|
|
626
626
|
});
|
|
627
|
+
};
|
|
628
|
+
export var MsgContent = function MsgContent(_ref14) {
|
|
629
|
+
var _ref14$horizontal = _ref14.horizontal,
|
|
630
|
+
horizontal = _ref14$horizontal === void 0 ? true : _ref14$horizontal,
|
|
631
|
+
_ref14$list = _ref14.list,
|
|
632
|
+
list = _ref14$list === void 0 ? [] : _ref14$list,
|
|
633
|
+
valueKey = _ref14.valueKey,
|
|
634
|
+
failValue = _ref14.failValue,
|
|
635
|
+
_ref14$options = _ref14.options,
|
|
636
|
+
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
637
|
+
var msgTypeCh = {
|
|
638
|
+
'ding': '钉钉',
|
|
639
|
+
'wechat': '微信',
|
|
640
|
+
'qq': 'QQ',
|
|
641
|
+
'qywx': '企业微信'
|
|
642
|
+
};
|
|
643
|
+
var detailContent = function detailContent(item, index) {
|
|
644
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
645
|
+
style: {
|
|
646
|
+
textAlign: "left"
|
|
647
|
+
}
|
|
648
|
+
}, /*#__PURE__*/React.createElement("div", null, item.ruleName), /*#__PURE__*/React.createElement("div", null, "\u5931\u8D25\u539F\u56E0:", item.reason), /*#__PURE__*/React.createElement("div", null, "\u4EFB\u52A1ID:", item.msgRuleId)));
|
|
649
|
+
};
|
|
650
|
+
return /*#__PURE__*/React.createElement(Space, {
|
|
651
|
+
direction: !horizontal ? 'vertical' : 'horizontal'
|
|
652
|
+
}, list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
653
|
+
var _options$find2;
|
|
654
|
+
var color = ((_options$find2 = options.find(function (innerItem) {
|
|
655
|
+
return item[valueKey] === innerItem.label;
|
|
656
|
+
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || "#000";
|
|
657
|
+
var currentOption = options.find(function (option) {
|
|
658
|
+
return item[valueKey] === option.value;
|
|
659
|
+
});
|
|
660
|
+
var key = item.msgType || 'ding';
|
|
661
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
662
|
+
style: {
|
|
663
|
+
color: color
|
|
664
|
+
}
|
|
665
|
+
}, item[valueKey] === failValue ? /*#__PURE__*/React.createElement(Popover, {
|
|
666
|
+
content: detailContent(item, index),
|
|
667
|
+
overlayStyle: {
|
|
668
|
+
zIndex: 1080
|
|
669
|
+
}
|
|
670
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
671
|
+
key: index,
|
|
672
|
+
style: {
|
|
673
|
+
cursor: "pointer"
|
|
674
|
+
}
|
|
675
|
+
}, msgTypeCh[key], "-"), /*#__PURE__*/React.createElement("span", null, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
676
|
+
key: index,
|
|
677
|
+
style: {
|
|
678
|
+
cursor: "pointer"
|
|
679
|
+
}
|
|
680
|
+
}, msgTypeCh[key], "-"), /*#__PURE__*/React.createElement("span", null, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")));
|
|
681
|
+
}) : null);
|
|
627
682
|
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare class MsgStatus implements ComponentInterface {
|
|
4
|
+
name: string;
|
|
5
|
+
id: string;
|
|
6
|
+
sortField: string;
|
|
7
|
+
type: string;
|
|
8
|
+
rules: any[];
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
align: ALignType;
|
|
11
|
+
isCombinationComponent: boolean;
|
|
12
|
+
formField: string;
|
|
13
|
+
canSort: boolean;
|
|
14
|
+
children: ComponentInterface[];
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
|
+
constructor(options: PickOption);
|
|
17
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
|
+
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
19
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
20
|
+
getComponentValue: (r: Record) => any;
|
|
21
|
+
renderExport: (value: any, record: any) => any;
|
|
22
|
+
editRender: (p: any) => React.JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "MultipleSelect";
|
|
29
|
+
props: {
|
|
30
|
+
options: any[] | undefined;
|
|
31
|
+
fieldNames: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default MsgStatus;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import some from 'lodash/some';
|
|
13
|
+
import GetFormItem from "../GetFormItem";
|
|
14
|
+
import { MsgContent } from "../Common";
|
|
15
|
+
import { MsgStatus as Status } from '@kmkf-fe-packages/basic-components';
|
|
16
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
18
|
+
import { SYMBOL } from "../../constant";
|
|
19
|
+
var typeMap = {
|
|
20
|
+
MSG_STATUS: {
|
|
21
|
+
options: [{
|
|
22
|
+
value: '发送成功',
|
|
23
|
+
label: '发送成功',
|
|
24
|
+
color: '#52c41a'
|
|
25
|
+
}, {
|
|
26
|
+
value: '已发送',
|
|
27
|
+
label: '已发送',
|
|
28
|
+
color: '#52c41a'
|
|
29
|
+
}, {
|
|
30
|
+
value: '发送失败',
|
|
31
|
+
label: '发送失败',
|
|
32
|
+
color: '#ff4d4f'
|
|
33
|
+
}, {
|
|
34
|
+
value: '等待发送',
|
|
35
|
+
label: '等待发送',
|
|
36
|
+
color: '#e7780f'
|
|
37
|
+
}],
|
|
38
|
+
key: 'msgStatusValues',
|
|
39
|
+
code: 'msgStatus4Search',
|
|
40
|
+
name: '消息状态',
|
|
41
|
+
type: 1,
|
|
42
|
+
valueKey: 'status',
|
|
43
|
+
idKey: 'systemOrderId',
|
|
44
|
+
failValue: '发送失败'
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
48
|
+
var _this = this,
|
|
49
|
+
_typeMap$options$type,
|
|
50
|
+
_typeMap$options$type2,
|
|
51
|
+
_this$componentConfig3;
|
|
52
|
+
_classCallCheck(this, MsgStatus);
|
|
53
|
+
_defineProperty(this, "name", void 0);
|
|
54
|
+
_defineProperty(this, "id", void 0);
|
|
55
|
+
_defineProperty(this, "sortField", void 0);
|
|
56
|
+
_defineProperty(this, "type", void 0);
|
|
57
|
+
_defineProperty(this, "rules", void 0);
|
|
58
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
59
|
+
_defineProperty(this, "align", void 0);
|
|
60
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
61
|
+
_defineProperty(this, "formField", void 0);
|
|
62
|
+
_defineProperty(this, "canSort", void 0);
|
|
63
|
+
_defineProperty(this, "children", void 0);
|
|
64
|
+
_defineProperty(this, "dataType", void 0);
|
|
65
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
66
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
67
|
+
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
68
|
+
return !isNull(item);
|
|
69
|
+
}) : false;
|
|
70
|
+
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
71
|
+
id: _this.id,
|
|
72
|
+
label: _this.name,
|
|
73
|
+
value: /*#__PURE__*/React.createElement(MsgContent, {
|
|
74
|
+
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
75
|
+
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
|
|
76
|
+
failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
|
|
77
|
+
options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options
|
|
78
|
+
})
|
|
79
|
+
}) : null;
|
|
80
|
+
});
|
|
81
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
82
|
+
var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
|
|
83
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
84
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
85
|
+
onClick: function onClick(e) {
|
|
86
|
+
return e.stopPropagation();
|
|
87
|
+
}
|
|
88
|
+
}, /*#__PURE__*/React.createElement(MsgContent, {
|
|
89
|
+
horizontal: false,
|
|
90
|
+
list: list,
|
|
91
|
+
valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
|
|
92
|
+
failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
|
|
93
|
+
options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options
|
|
94
|
+
}));
|
|
95
|
+
});
|
|
96
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
97
|
+
var _typeMap$_this$type8;
|
|
98
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)];
|
|
99
|
+
if (isNull(list)) return null;
|
|
100
|
+
return _this.renderPc(undefined, r);
|
|
101
|
+
});
|
|
102
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
103
|
+
var _typeMap$_this$type9;
|
|
104
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key)];
|
|
105
|
+
});
|
|
106
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
107
|
+
var _typeMap$_this$type10;
|
|
108
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
109
|
+
return (list || []).map(function (item) {
|
|
110
|
+
var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _typeMap$_this$type15, _typeMap$_this$type16;
|
|
111
|
+
var currentOption = (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : (_typeMap$_this$type12 = _typeMap$_this$type11.options) === null || _typeMap$_this$type12 === void 0 ? void 0 : (_typeMap$_this$type13 = _typeMap$_this$type12.find) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.call(_typeMap$_this$type12, function (option) {
|
|
112
|
+
var _typeMap$_this$type14;
|
|
113
|
+
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
114
|
+
});
|
|
115
|
+
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey]) || '');
|
|
116
|
+
}).join(',');
|
|
117
|
+
});
|
|
118
|
+
_defineProperty(this, "editRender", function (p) {
|
|
119
|
+
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type17;
|
|
120
|
+
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
121
|
+
title: _this.name,
|
|
122
|
+
name: _this.id,
|
|
123
|
+
rules: _this.rules,
|
|
124
|
+
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
125
|
+
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
126
|
+
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
127
|
+
type: (_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.type,
|
|
128
|
+
failValue: typeMap[_this.type].failValue
|
|
129
|
+
}))
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
133
|
+
var _typeMap$_this$type18, _item$templateConfig;
|
|
134
|
+
return {
|
|
135
|
+
searchDefaultConditions: SYMBOL.in,
|
|
136
|
+
type: item.type,
|
|
137
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
|
|
138
|
+
name: "".concat(_this.name),
|
|
139
|
+
filterComponentType: 'MultipleSelect',
|
|
140
|
+
props: {
|
|
141
|
+
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
142
|
+
fieldNames: {
|
|
143
|
+
label: "label",
|
|
144
|
+
value: "value"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
filterFn: function filterFn(value) {
|
|
148
|
+
return function (i) {
|
|
149
|
+
var _typeMap$_this$type19;
|
|
150
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code), value);
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
});
|
|
155
|
+
this.name = options.name;
|
|
156
|
+
this.id = options.id;
|
|
157
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
158
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.code);
|
|
159
|
+
this.type = options.type;
|
|
160
|
+
this.componentConfig = _objectSpread(_objectSpread({}, options.componentConfig), {}, {
|
|
161
|
+
options: typeMap[options.type].options
|
|
162
|
+
});
|
|
163
|
+
this.isCombinationComponent = false;
|
|
164
|
+
this.canSort = false;
|
|
165
|
+
this.children = [];
|
|
166
|
+
this.dataType = 'object';
|
|
167
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
168
|
+
required: true,
|
|
169
|
+
validator: function validator(_, value) {
|
|
170
|
+
var hasNo = (value || []).some(function (item) {
|
|
171
|
+
var _typeMap$_this$type20;
|
|
172
|
+
return item[(_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.valueKey];
|
|
173
|
+
});
|
|
174
|
+
if (!hasNo) {
|
|
175
|
+
var _typeMap$_this$type21;
|
|
176
|
+
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684".concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.name)));
|
|
177
|
+
}
|
|
178
|
+
return Promise.resolve();
|
|
179
|
+
}
|
|
180
|
+
}] : [];
|
|
181
|
+
this.align = 'left';
|
|
182
|
+
});
|
|
183
|
+
export default MsgStatus;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsPosting | CommonMultiStatus | CommonSystemOrder | JstSendGood | MsgStatus | BasicPosting | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
2
|
// CommonTradeId,
|
|
3
|
-
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
@@ -160,6 +160,8 @@ export var factory = function factory(type, options) {
|
|
|
160
160
|
case "EXCHANGE_STATUS":
|
|
161
161
|
case "WAREHOUSING_STATUS":
|
|
162
162
|
return new CommonMultiStatus(options);
|
|
163
|
+
case "MSG_STATUS":
|
|
164
|
+
return new MsgStatus(options);
|
|
163
165
|
// case "REISSUE_TRADE_ID":
|
|
164
166
|
// case 'EXCHANGE_TRADE_ID':
|
|
165
167
|
// return new CommonTradeId(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
68
68
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
69
69
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
70
70
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
71
|
+
export { default as MsgStatus } from './components/MsgStatus';
|
|
71
72
|
export { factory } from "./factory";
|
|
72
73
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
73
74
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/dist/esm/index.js
CHANGED
|
@@ -68,6 +68,7 @@ export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
|
|
|
68
68
|
export { default as NodeStayDuration } from "./components/NodeStayDuration";
|
|
69
69
|
export { default as WlnGoods } from "./components/WLN/WlnGoods";
|
|
70
70
|
export { default as BsPosting } from "./components/BS/BsPosting";
|
|
71
|
+
export { default as MsgStatus } from "./components/MsgStatus";
|
|
71
72
|
export { factory } from "./factory";
|
|
72
73
|
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
73
74
|
export { default as SelectMark } from "./commonComponents/SelectMark";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.1-alpha.1",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -19,16 +19,16 @@
|
|
|
19
19
|
"prettier --parser=typescript --write"
|
|
20
20
|
]
|
|
21
21
|
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@kmkf-fe-packages/basic-components": "^0.15.1-alpha.1",
|
|
24
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.15.1-alpha.1"
|
|
25
|
+
},
|
|
22
26
|
"devDependencies": {
|
|
23
27
|
"@typescript-eslint/eslint-plugin": "^5.59.2",
|
|
24
28
|
"@typescript-eslint/parser": "^5.59.2",
|
|
25
29
|
"eslint": "^8.40.0",
|
|
26
30
|
"father": "^4.1.7"
|
|
27
31
|
},
|
|
28
|
-
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.15.0-alpha.1",
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.15.0-alpha.1"
|
|
31
|
-
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
34
34
|
"antd": "^4.21.4",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
+
"gitHead": "a626bb6ca7496ba70af959c6ff37bb3ef40f6e9d",
|
|
40
41
|
"gitHooks": {
|
|
41
42
|
"pre-commit": "lint-staged"
|
|
42
|
-
}
|
|
43
|
-
"gitHead": "2799ddc04c519d1cc57cd3f84aac302d18655ef7"
|
|
43
|
+
}
|
|
44
44
|
}
|