@kmkf-fe-packages/services-components 0.24.0-beta.0 → 0.24.1-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.
@@ -1,58 +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 _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 { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
- var NodeInput = /*#__PURE__*/_createClass(function NodeInput(options) {
11
- var _this = this;
12
- _classCallCheck(this, NodeInput);
13
- _defineProperty(this, "name", void 0);
14
- _defineProperty(this, "id", void 0);
15
- _defineProperty(this, "sortField", void 0);
16
- _defineProperty(this, "type", void 0);
17
- _defineProperty(this, "componentConfig", void 0);
18
- _defineProperty(this, "isCombinationComponent", void 0);
19
- _defineProperty(this, "formField", void 0);
20
- _defineProperty(this, "canSort", void 0);
21
- _defineProperty(this, "children", void 0);
22
- _defineProperty(this, "dataType", void 0);
23
- _defineProperty(this, "options", void 0);
24
- _defineProperty(this, "renderPc", function (value, record) {
25
- var _record;
26
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
27
- });
28
- _defineProperty(this, "renderExport", function (value, record) {
29
- var _record2;
30
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
31
- });
32
- _defineProperty(this, "renderLog", function (r) {
33
- if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
34
- return _this.renderPc(undefined, r);
35
- });
36
- _defineProperty(this, "getComponentValue", function (r) {
37
- return r === null || r === void 0 ? void 0 : r[_this.id];
38
- });
39
- _defineProperty(this, "renderClient", function () {
40
- return null;
41
- });
42
- _defineProperty(this, "editRender", function () {
43
- return null;
44
- });
45
- _defineProperty(this, "filterConfig", function () {
46
- return [];
47
- });
48
- this.name = "当前步骤";
49
- this.id = (options === null || options === void 0 ? void 0 : options.id) || "nodeId";
50
- this.type = "NODE_INPUT";
51
- this.sortField = 'nodeId';
52
- this.formField = 'nodeId';
53
- this.isCombinationComponent = false;
54
- this.canSort = false;
55
- this.children = [];
56
- this.dataType = 'string';
57
- });
58
- export default NodeInput;