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.umd.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
(function (global, factory) {
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-switch'), require('moment'), require('moment-range'), require('react-notifications/
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-switch', 'moment', 'moment-range', 'react-notifications/
|
4
|
-
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactSwitch, global.moment, global.momentRange, null, global.deepEqual, global.resumablejs));
|
5
|
-
})(this, (function (exports, materialDesignIcons_css, React, RSwitch, moment, momentRange,
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('material-design-icons-iconfont/dist/material-design-icons.css'), require('react'), require('react-switch'), require('moment'), require('moment-range'), require('react-notifications-component'), require('react-notifications-component/dist/theme.css'), require('deep-equal'), require('resumablejs')) :
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'material-design-icons-iconfont/dist/material-design-icons.css', 'react', 'react-switch', 'moment', 'moment-range', 'react-notifications-component', 'react-notifications-component/dist/theme.css', 'deep-equal', 'resumablejs'], factory) :
|
4
|
+
(global = global || self, factory(global.ywanaCore8 = {}, null, global.react, global.reactSwitch, global.moment, global.momentRange, global.reactNotificationsComponent, null, global.deepEqual, global.resumablejs));
|
5
|
+
})(this, (function (exports, materialDesignIcons_css, React, RSwitch, moment, momentRange, reactNotificationsComponent, theme_css, equal, ResumableJS) {
|
6
6
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
7
7
|
|
8
8
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
@@ -223,7 +223,8 @@
|
|
223
223
|
|
224
224
|
var Text$1 = function Text(_ref) {
|
225
225
|
var format = _ref.format,
|
226
|
-
children = _ref.children
|
226
|
+
children = _ref.children,
|
227
|
+
className = _ref.className;
|
227
228
|
var site = React.useContext(SiteContext);
|
228
229
|
var value = children;
|
229
230
|
|
@@ -244,7 +245,9 @@
|
|
244
245
|
break;
|
245
246
|
}
|
246
247
|
|
247
|
-
return children ? /*#__PURE__*/React__default["default"].createElement("span",
|
248
|
+
return children ? /*#__PURE__*/React__default["default"].createElement("span", {
|
249
|
+
className: className
|
250
|
+
}, value) : '';
|
248
251
|
};
|
249
252
|
|
250
253
|
/**
|
@@ -1391,7 +1394,9 @@
|
|
1391
1394
|
onSort = props.onSort,
|
1392
1395
|
onCheckAll = props.onCheckAll,
|
1393
1396
|
editable = props.editable,
|
1394
|
-
outlined = props.outlined
|
1397
|
+
outlined = props.outlined,
|
1398
|
+
_props$expanded = props.expanded,
|
1399
|
+
expanded = _props$expanded === void 0 ? false : _props$expanded;
|
1395
1400
|
|
1396
1401
|
var _useState = React.useState({}),
|
1397
1402
|
sortDir = _useState[0];
|
@@ -1501,7 +1506,8 @@
|
|
1501
1506
|
columns: columns,
|
1502
1507
|
onSelect: select,
|
1503
1508
|
onDrop: sort,
|
1504
|
-
editable: editable
|
1509
|
+
editable: editable,
|
1510
|
+
expanded: expanded
|
1505
1511
|
});
|
1506
1512
|
}))));
|
1507
1513
|
};
|
@@ -1514,10 +1520,12 @@
|
|
1514
1520
|
_props$columns2 = props.columns,
|
1515
1521
|
columns = _props$columns2 === void 0 ? [] : _props$columns2,
|
1516
1522
|
onSelect = props.onSelect,
|
1517
|
-
editable = props.editable
|
1523
|
+
editable = props.editable,
|
1524
|
+
_props$expanded2 = props.expanded,
|
1525
|
+
expanded = _props$expanded2 === void 0 ? false : _props$expanded2;
|
1518
1526
|
var className = row.className;
|
1519
1527
|
|
1520
|
-
var _useState2 = React.useState(
|
1528
|
+
var _useState2 = React.useState(expanded),
|
1521
1529
|
isInfoOpen = _useState2[0],
|
1522
1530
|
toggleInfo = _useState2[1];
|
1523
1531
|
|
@@ -2795,7 +2803,24 @@
|
|
2795
2803
|
confirm: function confirm(message) {
|
2796
2804
|
return window.confirm(message);
|
2797
2805
|
},
|
2798
|
-
notify: function notify(_ref2) {
|
2806
|
+
notify: function notify(_ref2) {
|
2807
|
+
var title = _ref2.title,
|
2808
|
+
body = _ref2.body,
|
2809
|
+
_ref2$type = _ref2.type,
|
2810
|
+
type = _ref2$type === void 0 ? "success" : _ref2$type;
|
2811
|
+
reactNotificationsComponent.Store.addNotification({
|
2812
|
+
title: title,
|
2813
|
+
message: body,
|
2814
|
+
type: type,
|
2815
|
+
insert: "top",
|
2816
|
+
container: "top-right",
|
2817
|
+
animationIn: ["animate__animated", "animate__fadeIn"],
|
2818
|
+
animationOut: ["animate__animated", "animate__fadeOut"],
|
2819
|
+
dismiss: {
|
2820
|
+
duration: 3000,
|
2821
|
+
onScreen: true
|
2822
|
+
}
|
2823
|
+
});
|
2799
2824
|
}
|
2800
2825
|
};
|
2801
2826
|
return /*#__PURE__*/React__default["default"].createElement(SiteContext.Provider, {
|
@@ -2822,7 +2847,8 @@
|
|
2822
2847
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
2823
2848
|
className: "site6"
|
2824
2849
|
}, /*#__PURE__*/React__default["default"].createElement(SiteHeader, {
|
2825
|
-
icon: icon
|
2850
|
+
icon: icon,
|
2851
|
+
title: title
|
2826
2852
|
}), /*#__PURE__*/React__default["default"].createElement(SiteToolBar, null, toolbar), /*#__PURE__*/React__default["default"].createElement(SiteMenu, {
|
2827
2853
|
logo: logo,
|
2828
2854
|
title: title,
|
@@ -2835,7 +2861,7 @@
|
|
2835
2861
|
};
|
2836
2862
|
|
2837
2863
|
var SiteNotifications = function SiteNotifications() {
|
2838
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
2864
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNotificationsComponent.ReactNotifications, null);
|
2839
2865
|
};
|
2840
2866
|
/**
|
2841
2867
|
* Site Header
|