ui-kit-ck-consultant 0.6.5 → 0.6.7
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 -81
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -81
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
@@ -42,44 +42,6 @@ function _setPrototypeOf(o, p) {
|
|
42
42
|
return _setPrototypeOf(o, p);
|
43
43
|
}
|
44
44
|
|
45
|
-
function _unsupportedIterableToArray(o, minLen) {
|
46
|
-
if (!o) return;
|
47
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
48
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
49
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
50
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
51
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
52
|
-
}
|
53
|
-
|
54
|
-
function _arrayLikeToArray(arr, len) {
|
55
|
-
if (len == null || len > arr.length) len = arr.length;
|
56
|
-
|
57
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
58
|
-
|
59
|
-
return arr2;
|
60
|
-
}
|
61
|
-
|
62
|
-
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
|
63
|
-
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
64
|
-
if (it) return (it = it.call(o)).next.bind(it);
|
65
|
-
|
66
|
-
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
67
|
-
if (it) o = it;
|
68
|
-
var i = 0;
|
69
|
-
return function () {
|
70
|
-
if (i >= o.length) return {
|
71
|
-
done: true
|
72
|
-
};
|
73
|
-
return {
|
74
|
-
done: false,
|
75
|
-
value: o[i++]
|
76
|
-
};
|
77
|
-
};
|
78
|
-
}
|
79
|
-
|
80
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
81
|
-
}
|
82
|
-
|
83
45
|
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"};
|
84
46
|
|
85
47
|
var Modal = /*#__PURE__*/function (_React$Component) {
|
@@ -921,55 +883,16 @@ var Table = /*#__PURE__*/function (_React$Component) {
|
|
921
883
|
_this.getCSV = function (callback) {
|
922
884
|
var dataCSV = '';
|
923
885
|
|
924
|
-
function findStringChild(children) {
|
925
|
-
console.log('Analyzing:', children);
|
926
|
-
|
927
|
-
if (typeof children === 'string') {
|
928
|
-
console.log('String found:', children);
|
929
|
-
return children;
|
930
|
-
}
|
931
|
-
|
932
|
-
if (Array.isArray(children)) {
|
933
|
-
for (var _iterator = _createForOfIteratorHelperLoose(children), _step; !(_step = _iterator()).done;) {
|
934
|
-
var child = _step.value;
|
935
|
-
var result = findStringChild(child);
|
936
|
-
|
937
|
-
if (result) {
|
938
|
-
return result;
|
939
|
-
}
|
940
|
-
}
|
941
|
-
}
|
942
|
-
|
943
|
-
if (React.isValidElement(children)) {
|
944
|
-
return findStringChild(children.props.children);
|
945
|
-
}
|
946
|
-
|
947
|
-
if (children && typeof children === 'object' && 'toString' in children) {
|
948
|
-
var potentialString = children.toString();
|
949
|
-
|
950
|
-
if (typeof potentialString === 'string' && potentialString !== '[object Object]') {
|
951
|
-
return potentialString;
|
952
|
-
}
|
953
|
-
}
|
954
|
-
|
955
|
-
return null;
|
956
|
-
}
|
957
|
-
|
958
886
|
if (_this.props && _this.props.children) {
|
959
887
|
_this.getArray(_this.props.children).forEach(function (children) {
|
960
888
|
if (children.props && children.props.children) {
|
961
889
|
_this.getArray(children.props.children).forEach(function (line) {
|
962
890
|
if (line.props && line.props.children) {
|
963
891
|
_this.getArray(line.props.children).forEach(function (column) {
|
964
|
-
if (column.props && column.props.children) {
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
if (stringChild) {
|
969
|
-
dataCSV += stringChild + ";";
|
970
|
-
} else {
|
971
|
-
dataCSV += ';';
|
972
|
-
}
|
892
|
+
if (column && column.props && column.props.children && column.props.children.props && column.props.children.props.text) {
|
893
|
+
dataCSV += column.props.children.props.text + ";";
|
894
|
+
} else if (column && column.props && column.props.children) {
|
895
|
+
dataCSV += column.props.children.toString() + ";";
|
973
896
|
} else {
|
974
897
|
dataCSV += ';';
|
975
898
|
}
|