ui-kit-ck-consultant 0.6.4 → 0.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -56
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -56
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -45,44 +45,6 @@ function _setPrototypeOf(o, p) {
|
|
45
45
|
return _setPrototypeOf(o, p);
|
46
46
|
}
|
47
47
|
|
48
|
-
function _unsupportedIterableToArray(o, minLen) {
|
49
|
-
if (!o) return;
|
50
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
51
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
52
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
53
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
54
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
55
|
-
}
|
56
|
-
|
57
|
-
function _arrayLikeToArray(arr, len) {
|
58
|
-
if (len == null || len > arr.length) len = arr.length;
|
59
|
-
|
60
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
61
|
-
|
62
|
-
return arr2;
|
63
|
-
}
|
64
|
-
|
65
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
66
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
67
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
68
|
-
|
69
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
70
|
-
if (it) o = it;
|
71
|
-
var i = 0;
|
72
|
-
return function () {
|
73
|
-
if (i >= o.length) return {
|
74
|
-
done: true
|
75
|
-
};
|
76
|
-
return {
|
77
|
-
done: false,
|
78
|
-
value: o[i++]
|
79
|
-
};
|
80
|
-
};
|
81
|
-
}
|
82
|
-
|
83
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
84
|
-
}
|
85
|
-
|
86
48
|
var style = {"modal":"_Tr9L0","modal_container":"_2YluD","no_background":"_2vjgy","large":"_22C7A","extraLarge":"_VOwgj","modal_right":"_eWY0H","modal_move":"_20eCx","modal_valid":"_RsujT","modal_close":"_1AbTJ","modal_custom":"_33Wb2","modal_header":"_2EzqX","modal_body":"_1-Y1J","full_modal_container":"_1w6wH","full_modal_header":"_2wSoq","full_modal_body":"_3bfp5","full_modal_body_no_padding":"_Pf5Uh","full_modal_body_no_overflow":"_3sTgK"};
|
87
49
|
|
88
50
|
var Modal = /*#__PURE__*/function (_React$Component) {
|
@@ -924,30 +886,16 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
924
886
|
_this.getCSV = function (callback) {
|
925
887
|
var dataCSV = '';
|
926
888
|
|
927
|
-
function findStringChild(children) {
|
928
|
-
if (typeof children === 'string') {
|
929
|
-
return children;
|
930
|
-
} else if (Array.isArray(children)) {
|
931
|
-
for (var _iterator = _createForOfIteratorHelperLoose(children), _step; !(_step = _iterator()).done;) {
|
932
|
-
var child = _step.value;
|
933
|
-
var result = findStringChild(child);
|
934
|
-
if (result) return result;
|
935
|
-
}
|
936
|
-
} else if (React__default.isValidElement(children)) {
|
937
|
-
return findStringChild(children.props.children);
|
938
|
-
}
|
939
|
-
|
940
|
-
return null;
|
941
|
-
}
|
942
|
-
|
943
889
|
if (_this.props && _this.props.children) {
|
944
890
|
_this.getArray(_this.props.children).forEach(function (children) {
|
945
891
|
if (children.props && children.props.children) {
|
946
892
|
_this.getArray(children.props.children).forEach(function (line) {
|
947
893
|
if (line.props && line.props.children) {
|
948
894
|
_this.getArray(line.props.children).forEach(function (column) {
|
949
|
-
if (column.props && column.props.children) {
|
950
|
-
dataCSV +=
|
895
|
+
if (column.props && column.props.children && column.props.children.props && column.props.children.props.text) {
|
896
|
+
dataCSV += column.props.children.props.text + ";";
|
897
|
+
} else if (column.props && column.props.children) {
|
898
|
+
dataCSV += column.props.children.toString() + ";";
|
951
899
|
} else {
|
952
900
|
dataCSV += ';';
|
953
901
|
}
|