ywana-core8 0.0.269 → 0.0.272
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 +37 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +37 -10
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +39 -13
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/html/table.js +4 -4
- package/src/html/text.js +2 -2
- package/src/site/site.js +19 -13
- package/src/site/site.test.js +23 -5
- package/src/widgets/kanban/Kanban.test.js +11 -10
- package/src/widgets/upload/Upload.test.js +35 -0
- package/src/widgets/upload/UploadArea.js +56 -0
- package/src/widgets/upload/UploadDialog.js +41 -0
- package/src/widgets/upload/UploadFile.js +24 -0
- package/src/widgets/upload/UploadProgress.js +21 -0
- package/src/widgets/upload/Uploader.css +77 -0
- package/src/widgets/upload/Uploader.js +73 -0
- package/src/widgets/upload/index.js +4 -0
package/dist/index.cjs
CHANGED
@@ -3,7 +3,8 @@ var React = require('react');
|
|
3
3
|
var RSwitch = require('react-switch');
|
4
4
|
var moment = require('moment');
|
5
5
|
var momentRange = require('moment-range');
|
6
|
-
require('react-notifications
|
6
|
+
var reactNotificationsComponent = require('react-notifications-component');
|
7
|
+
require('react-notifications-component/dist/theme.css');
|
7
8
|
var equal = require('deep-equal');
|
8
9
|
var ResumableJS = require('resumablejs');
|
9
10
|
|
@@ -227,7 +228,8 @@ var TEXTFORMATS = {
|
|
227
228
|
|
228
229
|
var Text$1 = function Text(_ref) {
|
229
230
|
var format = _ref.format,
|
230
|
-
children = _ref.children
|
231
|
+
children = _ref.children,
|
232
|
+
className = _ref.className;
|
231
233
|
var site = React.useContext(SiteContext);
|
232
234
|
var value = children;
|
233
235
|
|
@@ -248,7 +250,9 @@ var Text$1 = function Text(_ref) {
|
|
248
250
|
break;
|
249
251
|
}
|
250
252
|
|
251
|
-
return children ? /*#__PURE__*/React__default["default"].createElement("span",
|
253
|
+
return children ? /*#__PURE__*/React__default["default"].createElement("span", {
|
254
|
+
className: className
|
255
|
+
}, value) : '';
|
252
256
|
};
|
253
257
|
|
254
258
|
/**
|
@@ -1395,7 +1399,9 @@ var DataTable = function DataTable(props) {
|
|
1395
1399
|
onSort = props.onSort,
|
1396
1400
|
onCheckAll = props.onCheckAll,
|
1397
1401
|
editable = props.editable,
|
1398
|
-
outlined = props.outlined
|
1402
|
+
outlined = props.outlined,
|
1403
|
+
_props$expanded = props.expanded,
|
1404
|
+
expanded = _props$expanded === void 0 ? false : _props$expanded;
|
1399
1405
|
|
1400
1406
|
var _useState = React.useState({}),
|
1401
1407
|
sortDir = _useState[0];
|
@@ -1505,7 +1511,8 @@ var DataTable = function DataTable(props) {
|
|
1505
1511
|
columns: columns,
|
1506
1512
|
onSelect: select,
|
1507
1513
|
onDrop: sort,
|
1508
|
-
editable: editable
|
1514
|
+
editable: editable,
|
1515
|
+
expanded: expanded
|
1509
1516
|
});
|
1510
1517
|
}))));
|
1511
1518
|
};
|
@@ -1518,10 +1525,12 @@ var DataTableRow = function DataTableRow(props) {
|
|
1518
1525
|
_props$columns2 = props.columns,
|
1519
1526
|
columns = _props$columns2 === void 0 ? [] : _props$columns2,
|
1520
1527
|
onSelect = props.onSelect,
|
1521
|
-
editable = props.editable
|
1528
|
+
editable = props.editable,
|
1529
|
+
_props$expanded2 = props.expanded,
|
1530
|
+
expanded = _props$expanded2 === void 0 ? false : _props$expanded2;
|
1522
1531
|
var className = row.className;
|
1523
1532
|
|
1524
|
-
var _useState2 = React.useState(
|
1533
|
+
var _useState2 = React.useState(expanded),
|
1525
1534
|
isInfoOpen = _useState2[0],
|
1526
1535
|
toggleInfo = _useState2[1];
|
1527
1536
|
|
@@ -2799,7 +2808,24 @@ var SiteProvider = function SiteProvider(_ref) {
|
|
2799
2808
|
confirm: function confirm(message) {
|
2800
2809
|
return window.confirm(message);
|
2801
2810
|
},
|
2802
|
-
notify: function notify(_ref2) {
|
2811
|
+
notify: function notify(_ref2) {
|
2812
|
+
var title = _ref2.title,
|
2813
|
+
body = _ref2.body,
|
2814
|
+
_ref2$type = _ref2.type,
|
2815
|
+
type = _ref2$type === void 0 ? "success" : _ref2$type;
|
2816
|
+
reactNotificationsComponent.Store.addNotification({
|
2817
|
+
title: title,
|
2818
|
+
message: body,
|
2819
|
+
type: type,
|
2820
|
+
insert: "top",
|
2821
|
+
container: "top-right",
|
2822
|
+
animationIn: ["animate__animated", "animate__fadeIn"],
|
2823
|
+
animationOut: ["animate__animated", "animate__fadeOut"],
|
2824
|
+
dismiss: {
|
2825
|
+
duration: 3000,
|
2826
|
+
onScreen: true
|
2827
|
+
}
|
2828
|
+
});
|
2803
2829
|
}
|
2804
2830
|
};
|
2805
2831
|
return /*#__PURE__*/React__default["default"].createElement(SiteContext.Provider, {
|
@@ -2826,7 +2852,8 @@ var Site = function Site(_ref3) {
|
|
2826
2852
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
2827
2853
|
className: "site6"
|
2828
2854
|
}, /*#__PURE__*/React__default["default"].createElement(SiteHeader, {
|
2829
|
-
icon: icon
|
2855
|
+
icon: icon,
|
2856
|
+
title: title
|
2830
2857
|
}), /*#__PURE__*/React__default["default"].createElement(SiteToolBar, null, toolbar), /*#__PURE__*/React__default["default"].createElement(SiteMenu, {
|
2831
2858
|
logo: logo,
|
2832
2859
|
title: title,
|
@@ -2839,7 +2866,7 @@ var Site = function Site(_ref3) {
|
|
2839
2866
|
};
|
2840
2867
|
|
2841
2868
|
var SiteNotifications = function SiteNotifications() {
|
2842
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
2869
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNotificationsComponent.ReactNotifications, null);
|
2843
2870
|
};
|
2844
2871
|
/**
|
2845
2872
|
* Site Header
|