@kmkf-fe-packages/services-components 0.7.5-alpha.8 → 0.7.6-alpha.0

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.
Files changed (141) hide show
  1. package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
  2. package/dist/esm/components/ActualPayment/index.d.ts +1 -7
  3. package/dist/esm/components/ActualPayment/index.js +2 -46
  4. package/dist/esm/components/Address/index.d.ts +3 -21
  5. package/dist/esm/components/Address/index.js +3 -35
  6. package/dist/esm/components/Alipay/index.d.ts +0 -3
  7. package/dist/esm/components/Alipay/index.js +0 -4
  8. package/dist/esm/components/AlipayAccount/index.d.ts +0 -3
  9. package/dist/esm/components/AlipayAccount/index.js +0 -6
  10. package/dist/esm/components/AlipayName/index.d.ts +0 -3
  11. package/dist/esm/components/AlipayName/index.js +0 -6
  12. package/dist/esm/components/BuyerNick/index.d.ts +0 -3
  13. package/dist/esm/components/BuyerNick/index.js +0 -6
  14. package/dist/esm/components/Cascader/index.d.ts +1 -12
  15. package/dist/esm/components/Cascader/index.js +8 -35
  16. package/dist/esm/components/Checkbox/index.d.ts +1 -6
  17. package/dist/esm/components/Checkbox/index.js +5 -13
  18. package/dist/esm/components/Common/index.d.ts +5 -5
  19. package/dist/esm/components/CommonDataTime/index.d.ts +0 -4
  20. package/dist/esm/components/CommonDataTime/index.js +0 -13
  21. package/dist/esm/components/CompletedUser/index.d.ts +4 -9
  22. package/dist/esm/components/CompletedUser/index.js +1 -9
  23. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  24. package/dist/esm/components/DataTime/index.d.ts +8 -3
  25. package/dist/esm/components/DataTime/index.js +4 -24
  26. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  27. package/dist/esm/components/EItemEnCode/index.d.ts +0 -3
  28. package/dist/esm/components/EItemEnCode/index.js +1 -7
  29. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  30. package/dist/esm/components/EItemId/index.d.ts +0 -3
  31. package/dist/esm/components/EItemId/index.js +1 -7
  32. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  33. package/dist/esm/components/EItemSelect/index.d.ts +0 -2
  34. package/dist/esm/components/EItemSelect/index.js +0 -4
  35. package/dist/esm/components/ErpTradeId/index.d.ts +0 -4
  36. package/dist/esm/components/ErpTradeId/index.js +1 -10
  37. package/dist/esm/components/Express/index.d.ts +1 -6
  38. package/dist/esm/components/Express/index.js +1 -9
  39. package/dist/esm/components/ExpressCode/index.d.ts +0 -3
  40. package/dist/esm/components/ExpressCode/index.js +0 -6
  41. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  42. package/dist/esm/components/FlowStatusSelect/index.d.ts +4 -9
  43. package/dist/esm/components/FlowStatusSelect/index.js +6 -14
  44. package/dist/esm/components/Grade/index.d.ts +0 -2
  45. package/dist/esm/components/Grade/index.js +0 -4
  46. package/dist/esm/components/Handler/index.d.ts +4 -9
  47. package/dist/esm/components/Handler/index.js +1 -9
  48. package/dist/esm/components/Input/index.d.ts +0 -3
  49. package/dist/esm/components/Input/index.js +1 -7
  50. package/dist/esm/components/JstItemSelect/index.d.ts +0 -3
  51. package/dist/esm/components/JstItemSelect/index.js +15 -23
  52. package/dist/esm/components/JstLogistics/index.d.ts +2 -8
  53. package/dist/esm/components/JstLogistics/index.js +1 -10
  54. package/dist/esm/components/JstSendGood/index.d.ts +0 -3
  55. package/dist/esm/components/JstSendGood/index.js +0 -7
  56. package/dist/esm/components/JstSupply/index.d.ts +0 -3
  57. package/dist/esm/components/JstSupply/index.js +0 -7
  58. package/dist/esm/components/Logistics/index.d.ts +1 -7
  59. package/dist/esm/components/Logistics/index.js +0 -4
  60. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +1 -3
  61. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -4
  62. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +5 -10
  63. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -9
  64. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +5 -10
  65. package/dist/esm/components/LogisticsInterception/InterceptType.js +1 -9
  66. package/dist/esm/components/LogisticsInterception/index.d.ts +5 -14
  67. package/dist/esm/components/LogisticsInterception/index.js +0 -4
  68. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.d.ts +0 -2
  69. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +0 -4
  70. package/dist/esm/components/MultSelect/index.d.ts +1 -6
  71. package/dist/esm/components/MultSelect/index.js +2 -10
  72. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +0 -3
  73. package/dist/esm/components/Ordinary/OrdinaryHeader.js +3 -9
  74. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -7
  75. package/dist/esm/components/Ordinary/OrdinaryMoney.js +4 -48
  76. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +0 -3
  77. package/dist/esm/components/Ordinary/OrdinarySerial.js +0 -6
  78. package/dist/esm/components/Ordinary/index.d.ts +2 -12
  79. package/dist/esm/components/Ordinary/index.js +0 -4
  80. package/dist/esm/components/Payment/AlipayNick.d.ts +0 -3
  81. package/dist/esm/components/Payment/AlipayNick.js +0 -6
  82. package/dist/esm/components/Payment/AlipayNo.d.ts +0 -3
  83. package/dist/esm/components/Payment/AlipayNo.js +0 -6
  84. package/dist/esm/components/Payment/AlipayTime.d.ts +0 -4
  85. package/dist/esm/components/Payment/AlipayTime.js +0 -13
  86. package/dist/esm/components/Payment/BuyerNick.d.ts +0 -3
  87. package/dist/esm/components/Payment/BuyerNick.js +0 -6
  88. package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -7
  89. package/dist/esm/components/Payment/PaymentAmount.js +1 -45
  90. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -9
  91. package/dist/esm/components/Payment/PaymentStatus.js +1 -9
  92. package/dist/esm/components/Payment/PaymentTid.d.ts +0 -4
  93. package/dist/esm/components/Payment/PaymentTid.js +0 -9
  94. package/dist/esm/components/Payment/index.d.ts +4 -34
  95. package/dist/esm/components/Payment/index.js +0 -4
  96. package/dist/esm/components/Picture/index.d.ts +0 -2
  97. package/dist/esm/components/Picture/index.js +0 -4
  98. package/dist/esm/components/PlatForm/index.d.ts +1 -4
  99. package/dist/esm/components/PlatForm/index.js +0 -6
  100. package/dist/esm/components/Popover/index.d.ts +2 -2
  101. package/dist/esm/components/Radio/index.d.ts +1 -6
  102. package/dist/esm/components/Radio/index.js +5 -13
  103. package/dist/esm/components/Rate/index.d.ts +0 -2
  104. package/dist/esm/components/Rate/index.js +0 -4
  105. package/dist/esm/components/ReceiverAddress/index.d.ts +1 -3
  106. package/dist/esm/components/ReceiverAddress/index.js +0 -4
  107. package/dist/esm/components/ReceiverMobile/index.d.ts +0 -3
  108. package/dist/esm/components/ReceiverMobile/index.js +1 -7
  109. package/dist/esm/components/ReceiverName/index.d.ts +0 -3
  110. package/dist/esm/components/ReceiverName/index.js +1 -7
  111. package/dist/esm/components/Remark/index.d.ts +0 -3
  112. package/dist/esm/components/Remark/index.js +1 -7
  113. package/dist/esm/components/ReturnLogistics/index.d.ts +1 -7
  114. package/dist/esm/components/ReturnLogistics/index.js +0 -4
  115. package/dist/esm/components/Select/index.d.ts +1 -6
  116. package/dist/esm/components/Select/index.js +2 -10
  117. package/dist/esm/components/ShopInput/index.d.ts +2 -8
  118. package/dist/esm/components/ShopInput/index.js +2 -19
  119. package/dist/esm/components/ShopName/index.d.ts +0 -3
  120. package/dist/esm/components/ShopName/index.js +1 -7
  121. package/dist/esm/components/Submitter/index.d.ts +4 -10
  122. package/dist/esm/components/Submitter/index.js +1 -17
  123. package/dist/esm/components/SystemOrderNo/index.d.ts +0 -4
  124. package/dist/esm/components/SystemOrderNo/index.js +1 -10
  125. package/dist/esm/components/TemplateSelect/index.d.ts +0 -3
  126. package/dist/esm/components/TemplateSelect/index.js +0 -6
  127. package/dist/esm/components/TextArea/index.d.ts +0 -3
  128. package/dist/esm/components/TextArea/index.js +1 -7
  129. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  130. package/dist/esm/components/ThirdItemSelect/index.d.ts +0 -3
  131. package/dist/esm/components/ThirdItemSelect/index.js +1 -7
  132. package/dist/esm/components/TradeDateTime/index.d.ts +0 -4
  133. package/dist/esm/components/TradeDateTime/index.js +2 -16
  134. package/dist/esm/components/TradeId/index.d.ts +0 -4
  135. package/dist/esm/components/TradeId/index.js +1 -10
  136. package/dist/esm/components/WorkOrderId/index.d.ts +0 -3
  137. package/dist/esm/components/WorkOrderId/index.js +3 -15
  138. package/dist/esm/type.d.ts +2 -10
  139. package/package.json +4 -4
  140. package/dist/esm/constant.d.ts +0 -14
  141. package/dist/esm/constant.js +0 -14
@@ -7,12 +7,10 @@ declare type Value = {
7
7
  declare class BasicCheckbox implements ComponentInterface {
8
8
  name: string;
9
9
  id: string;
10
- sortField: string;
11
10
  type: string;
12
11
  rules: any[];
13
12
  componentConfig: ComponentInterface["componentConfig"];
14
13
  isCombinationComponent: boolean;
15
- canSort: boolean;
16
14
  children: ComponentInterface[];
17
15
  constructor(options: PickOption);
18
16
  getValue: (value: Value) => string | null | undefined;
@@ -26,14 +24,11 @@ declare class BasicCheckbox implements ComponentInterface {
26
24
  renderClient: (record: any) => React.JSX.Element | null;
27
25
  editRender: () => React.JSX.Element;
28
26
  filterConfig: (item: ColumnConfig) => {
29
- searchDefaultConditions: "in";
30
27
  type: string;
31
28
  id: string;
32
29
  name: string;
33
30
  filterComponentType: "MultipleSelect";
34
- props: {
35
- options: any[] | undefined;
36
- };
31
+ options: any[] | undefined;
37
32
  filterFn: (value: string) => (i: Record) => boolean;
38
33
  };
39
34
  }
@@ -11,19 +11,16 @@ import { ApaasCheckbox } from '@kmkf-fe-packages/basic-components';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
13
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
- import { SYMBOL } from "../../constant";
15
14
  var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
16
15
  var _this = this,
17
16
  _options$componentCon;
18
17
  _classCallCheck(this, BasicCheckbox);
19
18
  _defineProperty(this, "name", void 0);
20
19
  _defineProperty(this, "id", void 0);
21
- _defineProperty(this, "sortField", void 0);
22
20
  _defineProperty(this, "type", void 0);
23
21
  _defineProperty(this, "rules", void 0);
24
22
  _defineProperty(this, "componentConfig", void 0);
25
23
  _defineProperty(this, "isCombinationComponent", void 0);
26
- _defineProperty(this, "canSort", void 0);
27
24
  _defineProperty(this, "children", void 0);
28
25
  _defineProperty(this, "getValue", function (value) {
29
26
  var _value$value, _value$value2, _value$value3;
@@ -88,19 +85,16 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
88
85
  _defineProperty(this, "filterConfig", function (item) {
89
86
  var _item$config, _item$config2, _item$config2$options, _item$config3;
90
87
  return {
91
- searchDefaultConditions: SYMBOL.in,
92
88
  type: item.type,
93
- id: "".concat(item.id, "_checkbox"),
89
+ id: item.id,
94
90
  // 过滤组件id
95
91
  name: item.name,
96
92
  // 过滤组件名称
97
93
  filterComponentType: 'MultipleSelect',
98
- props: {
99
- options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
100
- label: '其他',
101
- value: '其他'
102
- }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || []
103
- },
94
+ options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
95
+ label: '其他',
96
+ value: '其他'
97
+ }) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
104
98
  filterFn: function filterFn(value) {
105
99
  return function (i) {
106
100
  return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'checkbox')).length > 0;
@@ -110,10 +104,8 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
110
104
  });
111
105
  this.name = options.name;
112
106
  this.id = options.id;
113
- this.sortField = "".concat(options.id, "_checkbox");
114
107
  this.type = options.type;
115
108
  this.isCombinationComponent = false;
116
- this.canSort = true;
117
109
  this.children = [];
118
110
  this.componentConfig = options.componentConfig;
119
111
  this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  declare type getFormItemProps = {
3
3
  name: string;
4
4
  title: string;
@@ -6,13 +6,13 @@ declare type getFormItemProps = {
6
6
  required: boolean;
7
7
  component: JSX.Element | string | null;
8
8
  };
9
- export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) => React.JSX.Element;
9
+ export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) => JSX.Element;
10
10
  export declare const showImage: ({ item, type, index }: {
11
11
  item: any;
12
12
  type: string;
13
13
  index: number;
14
- }) => React.JSX.Element;
15
- export declare const ShowTotalImage: ({ total, allImage, type }: any) => React.JSX.Element;
16
- export declare const GoodImage: ({ list, type }: any) => React.JSX.Element | null;
14
+ }) => JSX.Element;
15
+ export declare const ShowTotalImage: ({ total, allImage, type }: any) => JSX.Element;
16
+ export declare const GoodImage: ({ list, type }: any) => JSX.Element | null;
17
17
  export declare const JstGoodImage: ({ list, type }: any) => any;
18
18
  export {};
@@ -6,12 +6,10 @@ import React from 'react';
6
6
  declare class CommonDataTime implements ComponentInterface {
7
7
  name: string;
8
8
  id: string;
9
- sortField: string;
10
9
  type: string;
11
10
  rules: any[];
12
11
  componentConfig: ComponentInterface["componentConfig"];
13
12
  isCombinationComponent: boolean;
14
- canSort: boolean;
15
13
  children: ComponentInterface[];
16
14
  constructor(options: PickOption);
17
15
  getValue: (value: string) => string;
@@ -22,13 +20,11 @@ declare class CommonDataTime implements ComponentInterface {
22
20
  renderExport: (value: any, record: Record) => string;
23
21
  editRender: () => null;
24
22
  filterConfig: (item: ColumnConfig) => {
25
- searchDefaultConditions: "between";
26
23
  type: string;
27
24
  id: string;
28
25
  name: string;
29
26
  filterComponentType: "Date";
30
27
  filterFn: (value: string[]) => (i: Record) => boolean;
31
- formatFilterValue: (val: Array<any>) => number[] | undefined;
32
28
  };
33
29
  }
34
30
  export default CommonDataTime;
@@ -9,7 +9,6 @@ import React from 'react';
9
9
  import moment from 'moment';
10
10
  import ItemView from "../../commonComponents/ItemView";
11
11
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
12
- import { SYMBOL } from "../../constant";
13
12
 
14
13
  /**
15
14
  * 针对完成时间、创建时间、修改时间定义了3中类型
@@ -19,12 +18,10 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
19
18
  _classCallCheck(this, CommonDataTime);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
23
  _defineProperty(this, "componentConfig", void 0);
26
24
  _defineProperty(this, "isCombinationComponent", void 0);
27
- _defineProperty(this, "canSort", void 0);
28
25
  _defineProperty(this, "children", void 0);
29
26
  _defineProperty(this, "getValue", function (value) {
30
27
  return moment(value).format('YYYY-MM-DD HH:mm:ss');
@@ -60,7 +57,6 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
60
57
  });
61
58
  _defineProperty(this, "filterConfig", function (item) {
62
59
  return {
63
- searchDefaultConditions: SYMBOL.between,
64
60
  type: item.type,
65
61
  id: item.id,
66
62
  // 过滤组件id
@@ -72,24 +68,15 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
72
68
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, '');
73
69
  return _filterFn.filterDateFn(value, recordDateTime);
74
70
  };
75
- },
76
- formatFilterValue: function formatFilterValue(val) {
77
- if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
78
- return val === null || val === void 0 ? void 0 : val.map(function (v) {
79
- return moment(v).valueOf();
80
- });
81
- }
82
71
  }
83
72
  };
84
73
  });
85
74
  this.name = options.name;
86
75
  this.id = options.id;
87
- this.sortField = options.id;
88
76
  this.type = options.type;
89
77
  this.componentConfig = options.componentConfig;
90
78
  this.rules = [];
91
79
  this.isCombinationComponent = false;
92
- this.canSort = true;
93
80
  this.children = [];
94
81
  });
95
82
  export default CommonDataTime;
@@ -3,12 +3,10 @@ import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type
3
3
  declare class CompletedUser implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  componentConfig: ComponentInterface["componentConfig"];
9
8
  effects: ComponentInterface["effects"];
10
9
  isCombinationComponent: boolean;
11
- canSort: boolean;
12
10
  children: ComponentInterface[];
13
11
  constructor(options: PickOption);
14
12
  renderPc: (value: unknown, record: Record) => React.JSX.Element;
@@ -18,17 +16,14 @@ declare class CompletedUser implements ComponentInterface {
18
16
  renderClient: () => null;
19
17
  editRender: () => null;
20
18
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
22
19
  type: string;
23
20
  id: string;
24
21
  name: string;
25
22
  filterComponentType: "MultipleSelect";
26
- props: {
27
- options: {
28
- label: string;
29
- value: string;
30
- }[];
31
- };
23
+ options: {
24
+ label: string;
25
+ value: string;
26
+ }[];
32
27
  filterFn: (value: string) => (i: Record) => boolean;
33
28
  };
34
29
  }
@@ -7,18 +7,15 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
7
7
  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); }
8
8
  import React from 'react';
9
9
  import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
10
- import { SYMBOL } from "../../constant";
11
10
  var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
12
11
  var _this = this;
13
12
  _classCallCheck(this, CompletedUser);
14
13
  _defineProperty(this, "name", void 0);
15
14
  _defineProperty(this, "id", void 0);
16
- _defineProperty(this, "sortField", void 0);
17
15
  _defineProperty(this, "type", void 0);
18
16
  _defineProperty(this, "componentConfig", void 0);
19
17
  _defineProperty(this, "effects", void 0);
20
18
  _defineProperty(this, "isCombinationComponent", void 0);
21
- _defineProperty(this, "canSort", void 0);
22
19
  _defineProperty(this, "children", void 0);
23
20
  _defineProperty(this, "renderPc", function (value, record) {
24
21
  var _record;
@@ -43,16 +40,13 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
43
40
  _defineProperty(this, "filterConfig", function (item) {
44
41
  var _this$effects;
45
42
  return {
46
- searchDefaultConditions: SYMBOL.in,
47
43
  type: item.type,
48
44
  id: item.id,
49
45
  // 过滤组件id
50
46
  name: item.name,
51
47
  // 过滤组件名称
52
48
  filterComponentType: 'MultipleSelect',
53
- props: {
54
- options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || []
55
- },
49
+ options: ((_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList) || [],
56
50
  filterFn: function filterFn(value) {
57
51
  return function (i) {
58
52
  return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
@@ -62,11 +56,9 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
62
56
  });
63
57
  this.name = "完成人";
64
58
  this.id = "completedUserName";
65
- this.sortField = "completedUserName";
66
59
  this.type = "COMPLETED_USER_INPUT";
67
60
  this.effects = options.effects;
68
61
  this.isCombinationComponent = false;
69
- this.canSort = true;
70
62
  this.children = [];
71
63
  });
72
64
  export default CompletedUser;
@@ -1,9 +1,9 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
3
3
  export declare type ButtonType = typeof DateType[number];
4
4
  export interface ApaasDate {
5
5
  dateType?: ButtonType;
6
6
  [propName: string]: any;
7
7
  }
8
- declare const Date: (props: ApaasDate) => React.JSX.Element;
8
+ declare const Date: (props: ApaasDate) => JSX.Element;
9
9
  export default Date;
@@ -5,12 +5,10 @@ export declare const DateTime: ({ value, onChange, ...otherProps }: any) => Reac
5
5
  declare class BasicDataTime implements ComponentInterface {
6
6
  name: string;
7
7
  id: string;
8
- sortField: string;
9
8
  type: string;
10
9
  rules: any[];
11
10
  componentConfig: ComponentInterface["componentConfig"];
12
11
  isCombinationComponent: boolean;
13
- canSort: boolean;
14
12
  children: ComponentInterface[];
15
13
  constructor(options: PickOption);
16
14
  getValue: (value: Value) => string | undefined;
@@ -20,6 +18,13 @@ declare class BasicDataTime implements ComponentInterface {
20
18
  getComponentValue: (r: Record) => any;
21
19
  renderExport: (value: any, record: Record) => any;
22
20
  editRender: () => React.JSX.Element;
23
- filterConfig: (item: ColumnConfig) => any;
21
+ filterConfig: (item: ColumnConfig) => {
22
+ type: string;
23
+ id: string;
24
+ name: string;
25
+ filterComponentType: "Date";
26
+ options: any[];
27
+ filterFn: (value: string[]) => (i: Record) => boolean;
28
+ };
24
29
  }
25
30
  export default BasicDataTime;
@@ -15,7 +15,6 @@ import moment from 'moment';
15
15
  import GetFormItem from "../GetFormItem";
16
16
  import ItemView from "../../commonComponents/ItemView";
17
17
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
18
- import { SYMBOL } from "../../constant";
19
18
  export var DateTime = function DateTime(_ref) {
20
19
  var value = _ref.value,
21
20
  onChange = _ref.onChange,
@@ -35,12 +34,10 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
35
34
  _classCallCheck(this, BasicDataTime);
36
35
  _defineProperty(this, "name", void 0);
37
36
  _defineProperty(this, "id", void 0);
38
- _defineProperty(this, "sortField", void 0);
39
37
  _defineProperty(this, "type", void 0);
40
38
  _defineProperty(this, "rules", void 0);
41
39
  _defineProperty(this, "componentConfig", void 0);
42
40
  _defineProperty(this, "isCombinationComponent", void 0);
43
- _defineProperty(this, "canSort", void 0);
44
41
  _defineProperty(this, "children", void 0);
45
42
  _defineProperty(this, "getValue", function (value) {
46
43
  return Array.isArray(value) ? value.join('~') : value;
@@ -82,46 +79,29 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
82
79
  });
83
80
  });
84
81
  _defineProperty(this, "filterConfig", function (item) {
85
- var _item$config, _item$config2;
86
- var dateType = item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.dateType;
87
- var obj = {
88
- searchDefaultConditions: SYMBOL.between,
82
+ var _item$config;
83
+ return {
89
84
  type: item.type,
90
- id: "".concat(item.id, "_dateTime"),
85
+ id: item.id,
91
86
  // 过滤组件id
92
87
  name: item.name,
93
88
  // 过滤组件名称
94
89
  filterComponentType: 'Date',
95
- props: {
96
- options: (item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.options) || []
97
- },
90
+ options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
98
91
  filterFn: function filterFn(value) {
99
92
  return function (i) {
100
93
  var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
101
94
  return _filterFn.filterDateFn(value, recordDateTime);
102
95
  };
103
96
  }
104
- // TODO: 自定义时间类型特殊,不需要转换,直接使用 YYYY-MM-DD HH:mm:ss格式查询
105
- // formatFilterValue: (val: Array<any>) => {
106
- // if (val?.length > 0) {
107
- // return val?.map(v => moment(v).valueOf())
108
- // }
109
- // }
110
97
  };
111
-
112
- if (dateType !== null && dateType !== void 0 && dateType.includes('RANGE')) {
113
- obj.componentDataType = 'dateArray';
114
- }
115
- return obj;
116
98
  });
117
99
  this.name = options.name;
118
100
  this.id = options.id;
119
- this.sortField = "".concat(options.id, "_dateTime");
120
101
  this.type = options.type;
121
102
  this.componentConfig = options.componentConfig;
122
103
  this.rules = [];
123
104
  this.isCombinationComponent = false;
124
- this.canSort = true;
125
105
  this.children = [];
126
106
  });
127
107
  export default BasicDataTime;
@@ -1,3 +1,3 @@
1
- import React from 'react';
2
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => React.JSX.Element;
1
+ /// <reference types="react" />
2
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
3
3
  export default ItemEncode;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class EItemEncode implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  effects: ComponentInterface["effects"];
11
10
  isCombinationComponent: boolean;
12
- canSort: boolean;
13
11
  children: ComponentInterface[];
14
12
  constructor(options: PickOption);
15
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,7 +17,6 @@ declare class EItemEncode implements ComponentInterface {
19
17
  renderExport: (value: unknown, record: Record) => any;
20
18
  editRender: () => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "like";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -12,20 +12,17 @@ import ItemEncode from "./ItemEncode";
12
12
  import { GoodImage } from "../Common";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
- import { SYMBOL } from "../../constant";
16
15
  var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
17
16
  var _this = this,
18
17
  _this$componentConfig;
19
18
  _classCallCheck(this, EItemEncode);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
23
  _defineProperty(this, "componentConfig", void 0);
26
24
  _defineProperty(this, "effects", void 0);
27
25
  _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "canSort", void 0);
29
26
  _defineProperty(this, "children", void 0);
30
27
  _defineProperty(this, "renderClient", function (record) {
31
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -76,9 +73,8 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
76
73
  });
77
74
  _defineProperty(this, "filterConfig", function (item) {
78
75
  return {
79
- searchDefaultConditions: SYMBOL.like,
80
76
  type: item.type,
81
- id: "".concat(item.id, "_itemList"),
77
+ id: item.id,
82
78
  // 过滤组件id
83
79
  name: item.name,
84
80
  // 过滤组件名称
@@ -96,12 +92,10 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
96
92
  });
97
93
  this.name = options.name;
98
94
  this.id = options.id;
99
- this.sortField = "".concat(options.id, "_itemList");
100
95
  this.type = options.type;
101
96
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
102
97
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
103
98
  this.isCombinationComponent = false;
104
- this.canSort = true;
105
99
  this.children = [];
106
100
  this.rules = this !== null && this !== void 0 && (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
107
101
  required: true,
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
3
+ declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
4
4
  export default ItemId;
@@ -3,13 +3,11 @@ import React from 'react';
3
3
  declare class EItemId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  effects: ComponentInterface["effects"];
11
10
  isCombinationComponent: boolean;
12
- canSort: boolean;
13
11
  children: ComponentInterface[];
14
12
  constructor(options: PickOption);
15
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -19,7 +17,6 @@ declare class EItemId implements ComponentInterface {
19
17
  renderExport: (value: any, record: any) => any;
20
18
  editRender: () => React.JSX.Element;
21
19
  filterConfig: (item: ColumnConfig) => {
22
- searchDefaultConditions: "like";
23
20
  type: string;
24
21
  id: string;
25
22
  name: string;
@@ -12,20 +12,17 @@ import ItemId from "./ItemId";
12
12
  import { GoodImage } from "../Common";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
- import { SYMBOL } from "../../constant";
16
15
  var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
17
16
  var _this = this,
18
17
  _this$componentConfig2;
19
18
  _classCallCheck(this, EItemId);
20
19
  _defineProperty(this, "name", void 0);
21
20
  _defineProperty(this, "id", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
21
  _defineProperty(this, "type", void 0);
24
22
  _defineProperty(this, "rules", void 0);
25
23
  _defineProperty(this, "componentConfig", void 0);
26
24
  _defineProperty(this, "effects", void 0);
27
25
  _defineProperty(this, "isCombinationComponent", void 0);
28
- _defineProperty(this, "canSort", void 0);
29
26
  _defineProperty(this, "children", void 0);
30
27
  _defineProperty(this, "renderClient", function (record) {
31
28
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -77,9 +74,8 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
77
74
  });
78
75
  _defineProperty(this, "filterConfig", function (item) {
79
76
  return {
80
- searchDefaultConditions: SYMBOL.like,
81
77
  type: item.type,
82
- id: "".concat(item.id, "_itemList"),
78
+ id: item.id,
83
79
  // 过滤组件id
84
80
  name: item.name,
85
81
  // 过滤组件名称
@@ -97,11 +93,9 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
97
93
  });
98
94
  this.name = options.name;
99
95
  this.id = options.id;
100
- this.sortField = "".concat(options.id, "_itemList");
101
96
  this.type = options.type;
102
97
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
103
98
  this.isCombinationComponent = false;
104
- this.canSort = true;
105
99
  this.children = [];
106
100
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
107
101
  this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
3
+ declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
4
4
  export default ItemSelect;
@@ -3,13 +3,11 @@ import React from "react";
3
3
  declare class EItemSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  effects: ComponentInterface["effects"];
11
10
  isCombinationComponent: boolean;
12
- canSort: boolean;
13
11
  children: ComponentInterface[];
14
12
  constructor(options: PickOption);
15
13
  renderClient: (record: any) => React.JSX.Element | null;
@@ -17,13 +17,11 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
17
17
  _classCallCheck(this, EItemSelect);
18
18
  _defineProperty(this, "name", void 0);
19
19
  _defineProperty(this, "id", void 0);
20
- _defineProperty(this, "sortField", void 0);
21
20
  _defineProperty(this, "type", void 0);
22
21
  _defineProperty(this, "rules", void 0);
23
22
  _defineProperty(this, "componentConfig", void 0);
24
23
  _defineProperty(this, "effects", void 0);
25
24
  _defineProperty(this, "isCombinationComponent", void 0);
26
- _defineProperty(this, "canSort", void 0);
27
25
  _defineProperty(this, "children", void 0);
28
26
  _defineProperty(this, "renderClient", function (record) {
29
27
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
@@ -75,13 +73,11 @@ var EItemSelect = /*#__PURE__*/_createClass(function EItemSelect(options) {
75
73
  });
76
74
  this.name = options.name;
77
75
  this.id = options.id;
78
- this.sortField = "".concat(options.id, "_itemList");
79
76
  this.type = options.type;
80
77
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
81
78
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
82
79
  this.rules = [];
83
80
  this.isCombinationComponent = false;
84
- this.canSort = true;
85
81
  this.children = [];
86
82
  });
87
83
  export default EItemSelect;
@@ -3,12 +3,10 @@ import React from 'react';
3
3
  declare class ErpTradeId implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
6
- sortField: string;
7
6
  type: string;
8
7
  rules: any[];
9
8
  componentConfig: ComponentInterface["componentConfig"];
10
9
  isCombinationComponent: boolean;
11
- canSort: boolean;
12
10
  children: ComponentInterface[];
13
11
  constructor(options: PickOption);
14
12
  renderClient: (record: any) => React.JSX.Element | null;
@@ -18,13 +16,11 @@ declare class ErpTradeId implements ComponentInterface {
18
16
  renderExport: (value: any, record: Record) => any;
19
17
  editRender: () => React.JSX.Element;
20
18
  filterConfig: (item: ColumnConfig) => {
21
- searchDefaultConditions: "in";
22
19
  type: string;
23
20
  id: string;
24
21
  name: string;
25
22
  filterComponentType: "Input";
26
23
  filterFn: (value: string) => (i: Record) => boolean;
27
- formatFilterValue: (input: string) => string[];
28
24
  };
29
25
  }
30
26
  export default ErpTradeId;