ywana-core8 0.0.275 → 0.0.278
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 +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +8 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +8 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/list.js +1 -1
- package/src/html/table.js +0 -2
- package/src/html/tooltip.css +1 -0
- package/src/html/tooltip.js +1 -1
- package/src/site/site.js +1 -0
- package/src/widgets/upload/Upload.test.js +2 -2
- package/src/widgets/upload/UploadArea.js +4 -1
- package/src/widgets/upload/Uploader.js +1 -1
package/package.json
CHANGED
package/src/html/list.js
CHANGED
package/src/html/table.js
CHANGED
@@ -42,10 +42,8 @@ export const DataTable = (props) => {
|
|
42
42
|
// Loop until sorted (-1 or 1) or until the sort keys have been processed.
|
43
43
|
while (sorted === 0 && index < sortKeys.length) {
|
44
44
|
const key = sortKeys[index];
|
45
|
-
|
46
45
|
if (key) {
|
47
46
|
const direction = sortObject[key];
|
48
|
-
|
49
47
|
sorted = keySort(a[key], b[key], direction);
|
50
48
|
index++;
|
51
49
|
}
|
package/src/html/tooltip.css
CHANGED
package/src/html/tooltip.js
CHANGED
package/src/site/site.js
CHANGED
@@ -70,6 +70,7 @@ export const SiteProvider = ({ children, siteLang, siteDictionary, showConsole }
|
|
70
70
|
closePreview: () => { setPreview(null) },
|
71
71
|
|
72
72
|
confirm: (message) => window.confirm(message),
|
73
|
+
prompt: (message) => window.prompt(message),
|
73
74
|
|
74
75
|
notify: ({ title, body, type = "success" }) => {
|
75
76
|
Store.addNotification({
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import React from 'react'
|
2
2
|
import { UploadArea } from './UploadArea'
|
3
|
-
import {
|
4
|
-
import { Uploader, UPLOAD_STATES } from './Uploader'
|
3
|
+
import { Uploader } from './Uploader'
|
5
4
|
import { UploadProgress } from './UploadProgress'
|
5
|
+
import { UPLOAD_STATES } from './UploadStates'
|
6
6
|
|
7
7
|
const UploadAreaTest = (props) => {
|
8
8
|
return (
|
@@ -45,7 +45,10 @@ const UploadIcon = ({ icon = "folder_open", resumable }) => {
|
|
45
45
|
const iconElement = useRef()
|
46
46
|
|
47
47
|
useEffect(() => {
|
48
|
-
if (resumable && iconElement
|
48
|
+
if (resumable && iconElement.current) {
|
49
|
+
resumable.assignBrowse(iconElement.current)
|
50
|
+
console.log('uploadicon')
|
51
|
+
}
|
49
52
|
}, [])
|
50
53
|
|
51
54
|
return (
|
@@ -2,8 +2,8 @@ import React, { useState, useMemo } from 'react'
|
|
2
2
|
import ResumableJS from 'resumablejs'
|
3
3
|
import { UploadArea } from "./UploadArea";
|
4
4
|
import { UploadProgress } from './UploadProgress';
|
5
|
-
import './Uploader.css'
|
6
5
|
import { UPLOAD_STATES } from './UploadStates';
|
6
|
+
import './Uploader.css'
|
7
7
|
|
8
8
|
|
9
9
|
/**
|