ywana-core8 0.0.782 → 0.0.783
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.cjs +15 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +15 -16
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +15 -16
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +0 -1
- package/src/incubator/task.js +28 -20
package/dist/index.umd.js
CHANGED
@@ -2368,7 +2368,6 @@
|
|
2368
2368
|
var SortIcon = function SortIcon(props) {
|
2369
2369
|
var sortDir = props.sortDir,
|
2370
2370
|
onChange = props.onChange;
|
2371
|
-
console.log("sortDir", sortDir);
|
2372
2371
|
var icon = sortDir ? sortDir > 0 ? "arrow_upward" : "arrow_downward" : "swap_vert";
|
2373
2372
|
return /*#__PURE__*/React__default["default"].createElement(Icon, {
|
2374
2373
|
icon: icon,
|
@@ -11174,7 +11173,6 @@
|
|
11174
11173
|
var TaskMonitor = function TaskMonitor(props) {
|
11175
11174
|
var remove = function remove(task) {
|
11176
11175
|
try {
|
11177
|
-
console.log("remove", task);
|
11178
11176
|
return Promise.resolve(context.removeTask(task)).then(function () {
|
11179
11177
|
refresh();
|
11180
11178
|
});
|
@@ -11217,15 +11215,6 @@
|
|
11217
11215
|
columns: [{
|
11218
11216
|
id: "state",
|
11219
11217
|
label: "Estado"
|
11220
|
-
}, {
|
11221
|
-
id: "description",
|
11222
|
-
label: "Descripcion"
|
11223
|
-
}, {
|
11224
|
-
id: "progress",
|
11225
|
-
label: "%"
|
11226
|
-
}, {
|
11227
|
-
id: "percentage",
|
11228
|
-
label: ""
|
11229
11218
|
}, {
|
11230
11219
|
id: "init",
|
11231
11220
|
label: "Inicio",
|
@@ -11237,16 +11226,26 @@
|
|
11237
11226
|
type: TYPES.STRING,
|
11238
11227
|
format: FORMATS$1.DATE
|
11239
11228
|
}, {
|
11240
|
-
id: "
|
11241
|
-
label: "
|
11229
|
+
id: "description",
|
11230
|
+
label: "Descripcion"
|
11242
11231
|
}, {
|
11243
|
-
id: "
|
11244
|
-
label: "
|
11232
|
+
id: "progress",
|
11233
|
+
label: "%"
|
11245
11234
|
}, {
|
11235
|
+
id: "percentage",
|
11236
|
+
label: ""
|
11237
|
+
}, // { id: "resourceID", label: "Recurso" },
|
11238
|
+
// { id: "owner", label: "Propietario" },
|
11239
|
+
{
|
11246
11240
|
id: "actions",
|
11247
11241
|
label: ""
|
11248
11242
|
}],
|
11249
|
-
rows: tasks
|
11243
|
+
rows: tasks // sort by init date from recent to old
|
11244
|
+
.sort(function (a, b) {
|
11245
|
+
if (a.init > b.init) return -1;
|
11246
|
+
if (a.init < b.init) return 1;
|
11247
|
+
return 0;
|
11248
|
+
}).map(function (task) {
|
11250
11249
|
return {
|
11251
11250
|
id: task.id,
|
11252
11251
|
state: task.state,
|