ywana-core8 0.0.327 → 0.0.330
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 +29 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +29 -12
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +29 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/site/dialog.js +5 -3
- package/src/widgets/login/ResetPasswordBox.js +2 -1
- package/src/widgets/upload/Upload.test.js +1 -1
- package/src/widgets/upload/UploadArea.js +8 -5
- package/src/widgets/upload/UploadDialog.js +1 -1
- package/src/widgets/upload/Uploader.js +2 -2
package/dist/index.modern.js
CHANGED
@@ -2201,6 +2201,12 @@ var ResetPasswordBox = function ResetPasswordBox(_ref) {
|
|
2201
2201
|
}, /*#__PURE__*/React.createElement(Text, null, title)) : null, children), /*#__PURE__*/React.createElement("main", null, /*#__PURE__*/React.createElement(Text, {
|
2202
2202
|
use: "headline6"
|
2203
2203
|
}, "Change Password"), /*#__PURE__*/React.createElement(TextField, {
|
2204
|
+
label: tx(userLabel),
|
2205
|
+
value: user,
|
2206
|
+
onChange: changeUser,
|
2207
|
+
onEnter: ok,
|
2208
|
+
outlined: true
|
2209
|
+
}), /*#__PURE__*/React.createElement(TextField, {
|
2204
2210
|
id: "password1",
|
2205
2211
|
outlined: true,
|
2206
2212
|
icon: "lock",
|
@@ -2702,7 +2708,11 @@ var UploadArea = function UploadArea(props) {
|
|
2702
2708
|
|
2703
2709
|
useEffect(function () {
|
2704
2710
|
var resumable = props.resumable;
|
2705
|
-
|
2711
|
+
|
2712
|
+
if (resumable && areaElement) {
|
2713
|
+
resumable.assignDrop(areaElement.current);
|
2714
|
+
resumable.assignBrowse(areaElement.current);
|
2715
|
+
}
|
2706
2716
|
}, []);
|
2707
2717
|
|
2708
2718
|
var onDragOver = function onDragOver() {
|
@@ -2719,9 +2729,10 @@ var UploadArea = function UploadArea(props) {
|
|
2719
2729
|
onDragOver: onDragOver,
|
2720
2730
|
onDragLeave: onDragLeave,
|
2721
2731
|
ref: areaElement
|
2722
|
-
}, /*#__PURE__*/React.createElement(
|
2732
|
+
}, /*#__PURE__*/React.createElement(Icon, {
|
2723
2733
|
icon: icon,
|
2724
|
-
|
2734
|
+
clickable: true,
|
2735
|
+
eventPropagation: false
|
2725
2736
|
}), /*#__PURE__*/React.createElement("label", null, label));
|
2726
2737
|
};
|
2727
2738
|
/**
|
@@ -2735,8 +2746,8 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2735
2746
|
var iconElement = useRef();
|
2736
2747
|
useEffect(function () {
|
2737
2748
|
if (resumable && iconElement.current) {
|
2738
|
-
console.log('UploadIcon.effect', resumable, iconElement.current);
|
2739
2749
|
resumable.assignBrowse(iconElement.current);
|
2750
|
+
console.log('uploadicon');
|
2740
2751
|
}
|
2741
2752
|
}, [iconElement]);
|
2742
2753
|
return /*#__PURE__*/React.createElement("div", {
|
@@ -2744,8 +2755,7 @@ var UploadIcon = function UploadIcon(_ref) {
|
|
2744
2755
|
ref: iconElement
|
2745
2756
|
}, /*#__PURE__*/React.createElement(Icon, {
|
2746
2757
|
icon: icon,
|
2747
|
-
clickable: true
|
2748
|
-
eventPropagation: true
|
2758
|
+
clickable: true
|
2749
2759
|
}));
|
2750
2760
|
};
|
2751
2761
|
|
@@ -2809,7 +2819,8 @@ var UploadProgress = function UploadProgress(_ref) {
|
|
2809
2819
|
*/
|
2810
2820
|
|
2811
2821
|
var Uploader = function Uploader(_ref) {
|
2812
|
-
var
|
2822
|
+
var icon = _ref.icon,
|
2823
|
+
label = _ref.label,
|
2813
2824
|
target = _ref.target,
|
2814
2825
|
accept = _ref.accept,
|
2815
2826
|
_ref$simultaneousUplo = _ref.simultaneousUploads,
|
@@ -2882,6 +2893,7 @@ var Uploader = function Uploader(_ref) {
|
|
2882
2893
|
className: "uploader " + className
|
2883
2894
|
}, state === UPLOAD_STATES.IDLE ? /*#__PURE__*/React.createElement(UploadArea, {
|
2884
2895
|
resumable: resumable,
|
2896
|
+
icon: icon,
|
2885
2897
|
label: label
|
2886
2898
|
}) : /*#__PURE__*/React.createElement(UploadProgress, {
|
2887
2899
|
files: files
|
@@ -3275,15 +3287,19 @@ var Dialog = function Dialog(props) {
|
|
3275
3287
|
title = _props$title === void 0 ? "Dialog" : _props$title,
|
3276
3288
|
children = props.children,
|
3277
3289
|
actions = props.actions,
|
3278
|
-
className = props.className
|
3290
|
+
className = props.className,
|
3291
|
+
_props$eventPropagati = props.eventPropagation,
|
3292
|
+
eventPropagation = _props$eventPropagati === void 0 ? false : _props$eventPropagati;
|
3279
3293
|
|
3280
3294
|
function close() {
|
3281
3295
|
site.closeDialog();
|
3282
3296
|
}
|
3283
3297
|
|
3284
3298
|
function prevent(e) {
|
3285
|
-
|
3286
|
-
|
3299
|
+
if (!eventPropagation) {
|
3300
|
+
e.preventDefault();
|
3301
|
+
e.stopPropagation();
|
3302
|
+
}
|
3287
3303
|
}
|
3288
3304
|
|
3289
3305
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
@@ -3385,7 +3401,8 @@ var UploadDialog = function UploadDialog(_ref) {
|
|
3385
3401
|
title: title,
|
3386
3402
|
open: true,
|
3387
3403
|
onAction: onAction,
|
3388
|
-
actions: actions
|
3404
|
+
actions: actions,
|
3405
|
+
eventPropagation: true
|
3389
3406
|
}, /*#__PURE__*/React.createElement(Uploader, {
|
3390
3407
|
label: label,
|
3391
3408
|
accept: accept,
|
@@ -5998,5 +6015,5 @@ var isFunction = function isFunction(value) {
|
|
5998
6015
|
return value && (Object.prototype.toString.call(value) === "[object Function]" || "function" === typeof value || value instanceof Function);
|
5999
6016
|
};
|
6000
6017
|
|
6001
|
-
export { Avatar, Button, CheckBox, Chip, Chips, CircularProgress, CollectionContext, CollectionEditor$1 as CollectionEditor, CollectionPage, CollectionTree, Content, ContentEditor, ContentForm, CreateContentDialog, DataTable, Dialog, DropDown, EditContentDialog, FORMATS, FieldEditor, Form, HTTPClient, Header, Icon, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, Page, PageContext, PageProvider, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, TEXTFORMATS, TYPES, Tab, TabbedContentEditor, TableEditor, TablePage, Tabs, Text, TextArea, TextField, Thumbnail, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadDialog, UploadFile, Uploader, View, Viewer, WaitScreen, isFunction };
|
6018
|
+
export { Avatar, Button, CheckBox, Chip, Chips, CircularProgress, CollectionContext, CollectionEditor$1 as CollectionEditor, CollectionPage, CollectionTree, Content, ContentEditor, ContentForm, CreateContentDialog, DataTable, Dialog, DropDown, EditContentDialog, FORMATS, FieldEditor, Form, HTTPClient, Header, Icon, Kanban, KanbanCard, KanbanColumn, LinearProgress, List, ListEditor, LoginBox, Menu, MenuIcon, MenuItem, MenuSeparator, Page, PageContext, PageProvider, Planner, Property, RadioButton, ResetPasswordBox, Section, Session, Site, SiteContext, SiteProvider, Stack, Switch, TEXTFORMATS, TYPES, Tab, TabbedContentEditor, TableEditor, TablePage, Tabs, Text, TextArea, TextField, Thumbnail, TokenField, Tooltip, Tree, TreeItem, TreeNode, TreededContentEditor, UploadArea, UploadDialog, UploadFile, UploadIcon, Uploader, View, Viewer, WaitScreen, isFunction };
|
6002
6019
|
//# sourceMappingURL=index.modern.js.map
|