ywana-core8 0.0.420 → 0.0.423
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 +30 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +30 -19
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +30 -19
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/TablePage.js +13 -6
- package/src/html/table.js +0 -2
- package/src/html/table.test.js +6 -1
- package/src/html/textfield.js +0 -1
- package/src/html/textfield.test.js +7 -0
- package/src/html/tokenfield.js +0 -1
- package/src/widgets/upload/UploadDialog.js +2 -1
package/dist/index.umd.js
CHANGED
@@ -1098,8 +1098,6 @@
|
|
1098
1098
|
setLabel = _useState2[1];
|
1099
1099
|
|
1100
1100
|
React.useEffect(function () {
|
1101
|
-
console.log('DD change value', label);
|
1102
|
-
|
1103
1101
|
if (Array.isArray(options)) {
|
1104
1102
|
var option = options.find(function (option) {
|
1105
1103
|
return option.value === value;
|
@@ -1903,8 +1901,6 @@
|
|
1903
1901
|
value = _useState[0],
|
1904
1902
|
setValue = _useState[1];
|
1905
1903
|
|
1906
|
-
React.useState(false);
|
1907
|
-
|
1908
1904
|
function remove(index) {
|
1909
1905
|
var next = tokens.slice();
|
1910
1906
|
next.splice(index, 1);
|
@@ -3462,7 +3458,8 @@
|
|
3462
3458
|
accept = _ref.accept,
|
3463
3459
|
onSuccess = _ref.onSuccess,
|
3464
3460
|
onComplete = _ref.onComplete,
|
3465
|
-
onClose = _ref.onClose
|
3461
|
+
onClose = _ref.onClose,
|
3462
|
+
children = _ref.children;
|
3466
3463
|
var site = React.useContext(SiteContext);
|
3467
3464
|
|
3468
3465
|
function success(file, message) {
|
@@ -3500,7 +3497,7 @@
|
|
3500
3497
|
target: target,
|
3501
3498
|
onSuccess: success,
|
3502
3499
|
onComplete: complete
|
3503
|
-
}));
|
3500
|
+
}), children);
|
3504
3501
|
};
|
3505
3502
|
|
3506
3503
|
/**
|
@@ -5352,6 +5349,16 @@
|
|
5352
5349
|
}
|
5353
5350
|
};
|
5354
5351
|
|
5352
|
+
var reload = function reload() {
|
5353
|
+
try {
|
5354
|
+
return Promise.resolve(pageContext.load()).then(function () {
|
5355
|
+
setPageContext(Object.assign({}, pageContext));
|
5356
|
+
});
|
5357
|
+
} catch (e) {
|
5358
|
+
return Promise.reject(e);
|
5359
|
+
}
|
5360
|
+
};
|
5361
|
+
|
5355
5362
|
var site = React.useContext(SiteContext);
|
5356
5363
|
var _props$id = props.id,
|
5357
5364
|
id = _props$id === void 0 ? "table" : _props$id,
|
@@ -5399,6 +5406,7 @@
|
|
5399
5406
|
pageContext = _useContext[0],
|
5400
5407
|
setPageContext = _useContext[1];
|
5401
5408
|
|
5409
|
+
var context = TableContext(url, field, host, urlQuery);
|
5402
5410
|
var selected = pageContext.selected;
|
5403
5411
|
var timer = React.useRef(null);
|
5404
5412
|
|
@@ -5406,20 +5414,8 @@
|
|
5406
5414
|
form = _useState[0],
|
5407
5415
|
setForm = _useState[1];
|
5408
5416
|
|
5409
|
-
React.useEffect(function () {
|
5410
|
-
setForm(selected);
|
5411
|
-
}, [selected]);
|
5412
|
-
React.useEffect(function () {
|
5413
|
-
if (autosave) {
|
5414
|
-
clearTimeout(timer.current);
|
5415
|
-
timer.current = setTimeout(function () {
|
5416
|
-
if (canSave()) save();
|
5417
|
-
}, delay);
|
5418
|
-
}
|
5419
|
-
}, [form]);
|
5420
5417
|
React.useEffect(function () {
|
5421
5418
|
try {
|
5422
|
-
var context = TableContext(url, field, host, urlQuery);
|
5423
5419
|
return Promise.resolve(context.load()).then(function () {
|
5424
5420
|
function _temp2() {
|
5425
5421
|
setPageContext(context);
|
@@ -5435,6 +5431,17 @@
|
|
5435
5431
|
return Promise.reject(e);
|
5436
5432
|
}
|
5437
5433
|
}, []);
|
5434
|
+
React.useEffect(function () {
|
5435
|
+
setForm(selected);
|
5436
|
+
}, [selected]);
|
5437
|
+
React.useEffect(function () {
|
5438
|
+
if (autosave) {
|
5439
|
+
clearTimeout(timer.current);
|
5440
|
+
timer.current = setTimeout(function () {
|
5441
|
+
if (canSave()) save();
|
5442
|
+
}, delay);
|
5443
|
+
}
|
5444
|
+
}, [form]);
|
5438
5445
|
|
5439
5446
|
function add() {
|
5440
5447
|
var onOK = function onOK(form) {
|
@@ -5534,7 +5541,11 @@
|
|
5534
5541
|
label: "A\xF1adir",
|
5535
5542
|
action: add,
|
5536
5543
|
raised: true
|
5537
|
-
}) : null,
|
5544
|
+
}) : null, "\xA0", /*#__PURE__*/React__default["default"].createElement(Button, {
|
5545
|
+
icon: "refresh",
|
5546
|
+
label: "Reload",
|
5547
|
+
action: reload
|
5548
|
+
}), dev ? /*#__PURE__*/React__default["default"].createElement(MenuIcon, {
|
5538
5549
|
align: "alignRight"
|
5539
5550
|
}, /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
5540
5551
|
label: "Cargar Escenario 1",
|