@kmkf-fe-packages/services-components 0.13.0-alpha.16 → 0.13.0-alpha.18

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.
@@ -13,6 +13,7 @@ declare class BasicInput implements ComponentInterface {
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface['dataType'];
15
15
  templateId?: string;
16
+ workOrderUniqueKey?: string;
16
17
  constructor(options: PickOption);
17
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
18
19
  renderLog: (r: Record) => React.JSX.Element | null;
@@ -32,6 +32,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
32
32
  _defineProperty(this, "children", void 0);
33
33
  _defineProperty(this, "dataType", void 0);
34
34
  _defineProperty(this, "templateId", void 0);
35
+ _defineProperty(this, "workOrderUniqueKey", void 0);
35
36
  _defineProperty(this, "renderPc", function (value, record) {
36
37
  var _record;
37
38
  return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
@@ -91,6 +92,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
91
92
  this.type = options.type;
92
93
  this.templateId = options.templateId;
93
94
  this.componentConfig = options.componentConfig;
95
+ this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
94
96
  this.rules = [{
95
97
  validator: function validator(_, value) {
96
98
  var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
@@ -154,6 +156,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
154
156
  }
155
157
  params = {
156
158
  templateId: _this.templateId,
159
+ workOrderUniqueKey: _this.workOrderUniqueKey,
157
160
  needCheckComponentList: [{
158
161
  componentKey: _this.formField,
159
162
  componentValue: String(value)
@@ -0,0 +1,39 @@
1
+ import React from "react";
2
+ import { ComponentInterface, ColumnConfig, Record, PickOption } from "../../type";
3
+ declare class PrevSubmitter implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ effects: ComponentInterface["effects"];
10
+ isCombinationComponent: boolean;
11
+ formField: string;
12
+ canSort: boolean;
13
+ children: ComponentInterface[];
14
+ dataType: ComponentInterface["dataType"];
15
+ options: ComponentInterface["options"];
16
+ constructor(options: PickOption);
17
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
18
+ renderLog: () => null;
19
+ getComponentValue: (r: Record) => any;
20
+ renderExport: (value: any, record: Record) => any;
21
+ renderClient: () => null;
22
+ editRender: () => null;
23
+ filterConfig: (item: ColumnConfig) => {
24
+ searchDefaultConditions: "in";
25
+ type: string;
26
+ id: string;
27
+ name: string;
28
+ filterComponentType: "MultipleSelect";
29
+ props: {
30
+ options: {
31
+ label: string;
32
+ value: string;
33
+ }[] | undefined;
34
+ };
35
+ formatFilterValue: (val: Array<string>) => (string | undefined)[];
36
+ filterFn: (value: string) => (i: Record) => boolean;
37
+ };
38
+ }
39
+ export default PrevSubmitter;
@@ -0,0 +1,87 @@
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 _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); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ 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; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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
+ import React from "react";
9
+ import { filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { SYMBOL } from "../../constant";
11
+ var PrevSubmitter = /*#__PURE__*/_createClass(function PrevSubmitter(options) {
12
+ var _this = this,
13
+ _this$effects3;
14
+ _classCallCheck(this, PrevSubmitter);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "sortField", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "effects", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "options", void 0);
27
+ _defineProperty(this, "renderPc", function (value, record) {
28
+ var _record;
29
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : "--");
30
+ });
31
+ _defineProperty(this, "renderLog", function () {
32
+ return null;
33
+ });
34
+ _defineProperty(this, "getComponentValue", function (r) {
35
+ return r === null || r === void 0 ? void 0 : r[_this.id];
36
+ });
37
+ _defineProperty(this, "renderExport", function (value, record) {
38
+ var _record2;
39
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : "--";
40
+ });
41
+ _defineProperty(this, "renderClient", function () {
42
+ return null;
43
+ });
44
+ _defineProperty(this, "editRender", function () {
45
+ return null;
46
+ });
47
+ _defineProperty(this, "filterConfig", function (item) {
48
+ var _this$effects;
49
+ return {
50
+ searchDefaultConditions: SYMBOL.in,
51
+ type: item.type,
52
+ id: item.id,
53
+ // 过滤组件id
54
+ name: item.name,
55
+ // 过滤组件名称
56
+ filterComponentType: "MultipleSelect",
57
+ props: {
58
+ options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList
59
+ },
60
+ formatFilterValue: function formatFilterValue(val) {
61
+ return val === null || val === void 0 ? void 0 : val.map(function (v) {
62
+ var _this$effects2, _this$effects2$userLi, _this$effects2$userLi2;
63
+ return (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : (_this$effects2$userLi = _this$effects2.userList) === null || _this$effects2$userLi === void 0 ? void 0 : (_this$effects2$userLi2 = _this$effects2$userLi.find(function (u) {
64
+ return u.value === v;
65
+ })) === null || _this$effects2$userLi2 === void 0 ? void 0 : _this$effects2$userLi2.label;
66
+ });
67
+ },
68
+ filterFn: function filterFn(value) {
69
+ return function (i) {
70
+ return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ""));
71
+ };
72
+ }
73
+ };
74
+ });
75
+ this.name = options.name || "流程创建人";
76
+ this.id = (options === null || options === void 0 ? void 0 : options.id) || "prevSubmitter";
77
+ this.type = "PREV_SUBMITTER_INPUT";
78
+ this.sortField = "prevSubmitter";
79
+ this.formField = "prevSubmitter";
80
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
81
+ this.isCombinationComponent = false;
82
+ this.canSort = true;
83
+ this.children = [];
84
+ this.dataType = "string";
85
+ this.options = ((_this$effects3 = this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.userList) || [];
86
+ });
87
+ export default PrevSubmitter;
@@ -72,7 +72,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
72
72
  }
73
73
  };
74
74
  });
75
- this.name = options.name || "上一步提交人";
75
+ this.name = options.name || "提交人";
76
76
  this.id = (options === null || options === void 0 ? void 0 : options.id) || "submitter";
77
77
  this.type = "OPERATOR_INPUT";
78
78
  this.sortField = "submitter";
@@ -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, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, 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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicAddress | BsExchange | BsPosting | BsReissue | BsSystemOrder | BasicCascader | FlowTag | BasicInput | ReceiverAddress | ERemark | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
3
+ export declare const factory: (type: string, options: PickOption) => BasicInput | PrevSubmitter | Submitter | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting;
@@ -1,4 +1,4 @@
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, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, 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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
@@ -8,6 +8,8 @@ export var factory = function factory(type, options) {
8
8
  return new ShopInput(options);
9
9
  case "OPERATOR_INPUT":
10
10
  return new Submitter(options);
11
+ case "PREV_SUBMITTER_INPUT":
12
+ return new PrevSubmitter(options);
11
13
  case "FLOW_CREATOR_INPUT":
12
14
  return new FlowCreator(options);
13
15
  case "HANDLER_INPUT":
@@ -53,6 +53,7 @@ export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory
53
53
  export { default as PlatForm } from "./components/PlatForm";
54
54
  export { default as ShopInput } from "./components/ShopInput";
55
55
  export { default as Submitter } from "./components/Submitter";
56
+ export { default as PrevSubmitter } from "./components/PrevSubmitter";
56
57
  export { default as FlowCreator } from "./components/FlowCreator";
57
58
  export { default as Handler } from "./components/Handler";
58
59
  export { default as CompletedUser } from "./components/CompletedUser";
package/dist/esm/index.js CHANGED
@@ -53,6 +53,7 @@ export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory
53
53
  export { default as PlatForm } from "./components/PlatForm";
54
54
  export { default as ShopInput } from "./components/ShopInput";
55
55
  export { default as Submitter } from "./components/Submitter";
56
+ export { default as PrevSubmitter } from "./components/PrevSubmitter";
56
57
  export { default as FlowCreator } from "./components/FlowCreator";
57
58
  export { default as Handler } from "./components/Handler";
58
59
  export { default as CompletedUser } from "./components/CompletedUser";
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import type { FormInstance } from "antd";
3
- import { SYMBOL } from "./constant";
4
- export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
5
- export declare type ALignType = "left" | "right" | "center";
2
+ import type { FormInstance } from 'antd';
3
+ import { SYMBOL } from './constant';
4
+ export declare type DataType = 'string' | 'number' | 'array' | 'dateArray' | 'date' | 'tradeId';
5
+ export declare type ALignType = 'left' | 'right' | 'center';
6
6
  export declare type QuerySymbol = keyof typeof SYMBOL;
7
7
  export declare type Record = {
8
8
  [props in string]: any;
@@ -27,7 +27,7 @@ export declare type FilterConfigType = {
27
27
  filterFn?: (p: any) => (r: Record) => unknown;
28
28
  formatFilterValue?: (p: any) => any;
29
29
  };
30
- export declare type FilterComponentType = "MultipleSelect" | "Input" | "Date" | "Cascader" | "ShopList" | "Rate";
30
+ export declare type FilterComponentType = 'MultipleSelect' | 'Input' | 'Date' | 'Cascader' | 'ShopList' | 'Rate';
31
31
  export interface ComponentInterface {
32
32
  id: string;
33
33
  sortField: string;
@@ -47,10 +47,11 @@ export interface ComponentInterface {
47
47
  rules?: any[];
48
48
  width?: number;
49
49
  align?: ALignType;
50
- dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
51
- format?: "dateTime" | "date" | "time" | "cascader" | "shopInput";
50
+ dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object';
51
+ format?: 'dateTime' | 'date' | 'time' | 'cascader' | 'shopInput';
52
52
  options?: Array<any>;
53
53
  templateId?: string;
54
+ workOrderUniqueKey?: string;
54
55
  /**
55
56
  * @description 组件下标
56
57
  * @deprecated 已弃用字段,后续版本不在使用
@@ -72,7 +73,7 @@ export interface ComponentInterface {
72
73
  /**
73
74
  * @description 显示字段名称
74
75
  */
75
- showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder";
76
+ showField?: 'EXPRESS_COMPANY' | 'EXPRESS_WAYBILL_CODE' | 'EXPRESS_SNAPSHOT' | 'all' | 'bs' | 'workOrder';
76
77
  /**
77
78
  * @description 是否选择SKU
78
79
  */
@@ -92,7 +93,7 @@ export interface ComponentInterface {
92
93
  /**
93
94
  * @description 备注状态
94
95
  */
95
- associatedType?: "APPEND";
96
+ associatedType?: 'APPEND';
96
97
  isAssociated?: boolean;
97
98
  isShowFlag?: boolean;
98
99
  /**
@@ -133,7 +134,7 @@ export interface ComponentInterface {
133
134
  * @description 时间初始值
134
135
  */
135
136
  dateTime?: string;
136
- dateType?: "DATE" | "DATE_TIME" | "DATE_RANGE" | "DATE_TIME_RANGE";
137
+ dateType?: 'DATE' | 'DATE_TIME' | 'DATE_RANGE' | 'DATE_TIME_RANGE';
137
138
  maxSize?: number;
138
139
  basicGrade?: number;
139
140
  range?: number;
@@ -228,13 +229,13 @@ export interface ComponentInterface {
228
229
  getComponentValue: (r: Record) => any;
229
230
  formDataTransform?: (r: any) => any;
230
231
  }
231
- export declare type PickOption = Pick<ComponentInterface, "name" | "id" | "type" | "componentConfig" | "effects" | "columnHeader" | "templateId">;
232
+ export declare type PickOption = Pick<ComponentInterface, 'name' | 'id' | 'type' | 'componentConfig' | 'effects' | 'columnHeader' | 'templateId' | 'workOrderUniqueKey'>;
232
233
  export declare type ColumnConfig = {
233
234
  id: string;
234
235
  name: string;
235
236
  type: string;
236
237
  subKey?: string;
237
- mode?: "multiple";
238
- config?: ComponentInterface["componentConfig"];
239
- templateConfig?: ComponentInterface["componentConfig"];
238
+ mode?: 'multiple';
239
+ config?: ComponentInterface['componentConfig'];
240
+ templateConfig?: ComponentInterface['componentConfig'];
240
241
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.13.0-alpha.16",
3
+ "version": "0.13.0-alpha.18",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.16",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.16"
29
+ "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.18",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.18"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "ccf6f83e4ae9345d9fbfe6f78274a73ececf52aa"
43
+ "gitHead": "d55dda722db7d05be325329fa4a66cfaa7cd3c08"
44
44
  }
@@ -1,6 +0,0 @@
1
- import { PickOption } from "../../type";
2
- import Submitter from "./components/Submitter";
3
- declare class FlowCreator extends Submitter {
4
- constructor(options: PickOption);
5
- }
6
- export default FlowCreator;
@@ -1,31 +0,0 @@
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 _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); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5
- 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); }
6
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
7
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
8
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
9
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
10
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
11
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
12
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
13
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
14
- import Submitter from "./components/Submitter";
15
- var FlowCreator = /*#__PURE__*/function (_Submitter) {
16
- _inherits(FlowCreator, _Submitter);
17
- var _super = _createSuper(FlowCreator);
18
- function FlowCreator(options) {
19
- var _this;
20
- _classCallCheck(this, FlowCreator);
21
- _this = _super.call(this, options);
22
- _this.name = "流程创建人";
23
- _this.id = (options === null || options === void 0 ? void 0 : options.id) || "flowCreator";
24
- _this.type = "FLOW_CREATOR_INPUT";
25
- _this.sortField = "flowCreator";
26
- _this.formField = "flowCreator";
27
- return _this;
28
- }
29
- return _createClass(FlowCreator);
30
- }(Submitter);
31
- export default FlowCreator;