@desynova-digital/components 8.19.29 → 8.19.31
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/atoms/label/label.js +1 -1
- package/molecules/table/table.js +41 -16
- package/package.json +2 -2
package/atoms/label/label.js
CHANGED
|
@@ -42,7 +42,7 @@ var LABEL_STYLES = [{
|
|
|
42
42
|
background: "#F9E900"
|
|
43
43
|
}
|
|
44
44
|
}, {
|
|
45
|
-
code: ["finished", "archived", "restored", "approved", "success", "complete", "upload_finished", "delivered", "ingested", "tagged", "created"],
|
|
45
|
+
code: ["finished", "archived", "restored", "approved", "success", "complete", "upload_finished", "delivered", "ingested", "tagged", "created", "shared"],
|
|
46
46
|
hex: {
|
|
47
47
|
background: "#18B96E"
|
|
48
48
|
}
|
package/molecules/table/table.js
CHANGED
|
@@ -1094,28 +1094,53 @@ var Table = function (_Component) {
|
|
|
1094
1094
|
}, {
|
|
1095
1095
|
key: "returnTableStatus",
|
|
1096
1096
|
value: function returnTableStatus() {
|
|
1097
|
-
if (this.props.tableLoading) {
|
|
1097
|
+
if (this.props.tableLoading && !this.props.tableLoadingAction) {
|
|
1098
1098
|
return _react2.default.createElement(
|
|
1099
1099
|
"div",
|
|
1100
1100
|
{ style: { padding: "10px" } },
|
|
1101
1101
|
this.tableLoadingFirst()
|
|
1102
1102
|
);
|
|
1103
1103
|
} else {
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1104
|
+
if (this.state.items.length == 0) {
|
|
1105
|
+
if (this.props.tableLoading === false) {
|
|
1106
|
+
return _react2.default.createElement(
|
|
1107
|
+
"div",
|
|
1108
|
+
null,
|
|
1109
|
+
_react2.default.createElement(
|
|
1110
|
+
Table.Element,
|
|
1111
|
+
this.props,
|
|
1112
|
+
_react2.default.createElement(Table.Header, {
|
|
1113
|
+
theme: this.props.theme,
|
|
1114
|
+
columns: this.defaultShowColumns,
|
|
1115
|
+
selectedColumns: this.state.showColumnArr,
|
|
1116
|
+
onSort: this.props.onSort
|
|
1117
|
+
})
|
|
1118
|
+
),
|
|
1119
|
+
_react2.default.createElement(_TableErrorScreen2.default, null)
|
|
1120
|
+
);
|
|
1121
|
+
} else {
|
|
1122
|
+
return _react2.default.createElement(
|
|
1123
|
+
"div",
|
|
1124
|
+
null,
|
|
1125
|
+
_react2.default.createElement(
|
|
1126
|
+
Table.Element,
|
|
1127
|
+
this.props,
|
|
1128
|
+
_react2.default.createElement(Table.Header, {
|
|
1129
|
+
theme: this.props.theme,
|
|
1130
|
+
columns: this.defaultShowColumns,
|
|
1131
|
+
selectedColumns: this.state.showColumnArr,
|
|
1132
|
+
onSort: this.props.onSort
|
|
1133
|
+
})
|
|
1134
|
+
),
|
|
1135
|
+
_react2.default.createElement(
|
|
1136
|
+
"div",
|
|
1137
|
+
{ style: { padding: "10px" } },
|
|
1138
|
+
this.tableLoadingFirst()
|
|
1139
|
+
),
|
|
1140
|
+
";"
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
}
|
|
1119
1144
|
}
|
|
1120
1145
|
}
|
|
1121
1146
|
}, {
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.19.
|
|
3
|
+
"version": "8.19.31",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "8.19.
|
|
10
|
+
"@desynova-digital/tokens": "8.19.31",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|