zmdms-webui 2.4.9 → 2.5.1
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/es/_virtual/Draggable.js +3 -0
- package/dist/es/_virtual/DraggableCore.js +3 -0
- package/dist/es/_virtual/cjs.js +3 -0
- package/dist/es/_virtual/clsx.js +3 -0
- package/dist/es/_virtual/domFns.js +3 -0
- package/dist/es/_virtual/getPrefix.js +3 -0
- package/dist/es/_virtual/index2.js +2 -2
- package/dist/es/_virtual/index4.js +3 -0
- package/dist/es/_virtual/index5.js +3 -0
- package/dist/es/_virtual/log.js +3 -0
- package/dist/es/_virtual/positionFns.js +3 -0
- package/dist/es/_virtual/react-is.development2.js +3 -0
- package/dist/es/_virtual/react-is.production.min2.js +3 -0
- package/dist/es/_virtual/shims.js +3 -0
- package/dist/es/applayoutsider/appLayoutSider.d.ts +4 -0
- package/dist/es/applayoutsider/appLayoutSider.js +2 -2
- package/dist/es/applayoutsider/menu/index.js +2 -2
- package/dist/es/canvastable/canvasTable.js +22 -3
- package/dist/es/canvastable/hooks/useScroll.js +62 -11
- package/dist/es/canvastable/utils/formatHelpers.js +1 -1
- package/dist/es/canvastable/utils/tableCalculations.js +18 -10
- package/dist/es/chatroom/chat-room.js +19 -0
- package/dist/es/chatroom/index.css +1 -0
- package/dist/es/chatroom/index.js +5 -0
- package/dist/es/modal/interface.d.ts +4 -0
- package/dist/es/modal/modal.js +15 -9
- package/dist/es/modal/useDraggable.js +51 -0
- package/dist/es/node_modules/immutability-helper/index.js +1 -1
- package/dist/es/node_modules/object-assign/index.js +99 -0
- package/dist/es/node_modules/prop-types/checkPropTypes.js +115 -0
- package/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +74 -0
- package/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
- package/dist/es/node_modules/prop-types/index.js +28 -0
- package/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
- package/dist/es/node_modules/prop-types/lib/has.js +11 -0
- package/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +190 -0
- package/dist/es/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +26 -0
- package/dist/es/node_modules/prop-types/node_modules/react-is/index.js +19 -0
- package/dist/es/node_modules/rc-util/es/Dom/findDOMNode.js +2 -2
- package/dist/es/node_modules/react-draggable/build/cjs/Draggable.js +412 -0
- package/dist/es/node_modules/react-draggable/build/cjs/DraggableCore.js +453 -0
- package/dist/es/node_modules/react-draggable/build/cjs/cjs.js +21 -0
- package/dist/es/node_modules/react-draggable/build/cjs/utils/domFns.js +237 -0
- package/dist/es/node_modules/react-draggable/build/cjs/utils/getPrefix.js +52 -0
- package/dist/es/node_modules/react-draggable/build/cjs/utils/log.js +9 -0
- package/dist/es/node_modules/react-draggable/build/cjs/utils/positionFns.js +155 -0
- package/dist/es/node_modules/react-draggable/build/cjs/utils/shims.js +33 -0
- package/dist/es/node_modules/react-draggable/node_modules/clsx/dist/clsx.js +7 -0
- package/dist/es/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/es/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/es/node_modules/react-is/index.js +1 -1
- package/dist/index.dark.css +1 -1
- package/dist/index.default.css +1 -1
- package/dist/less/components/ChatRoom/style/index.less +147 -0
- package/dist/less/components/ChatRoom/style/style.less +2 -0
- package/dist/less/styles/index.less +2 -0
- package/package.json +2 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { __require as requireReactPropTypesSecret } from './lib/ReactPropTypesSecret.js';
|
|
2
|
+
import { __require as requireHas } from './lib/has.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
var checkPropTypes_1;
|
|
12
|
+
var hasRequiredCheckPropTypes;
|
|
13
|
+
|
|
14
|
+
function requireCheckPropTypes () {
|
|
15
|
+
if (hasRequiredCheckPropTypes) return checkPropTypes_1;
|
|
16
|
+
hasRequiredCheckPropTypes = 1;
|
|
17
|
+
|
|
18
|
+
var printWarning = function() {};
|
|
19
|
+
|
|
20
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
21
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
22
|
+
var loggedTypeFailures = {};
|
|
23
|
+
var has = requireHas();
|
|
24
|
+
|
|
25
|
+
printWarning = function(text) {
|
|
26
|
+
var message = 'Warning: ' + text;
|
|
27
|
+
if (typeof console !== 'undefined') {
|
|
28
|
+
console.error(message);
|
|
29
|
+
}
|
|
30
|
+
try {
|
|
31
|
+
// --- Welcome to debugging React ---
|
|
32
|
+
// This error was thrown as a convenience so that you can use this stack
|
|
33
|
+
// to find the callsite that caused this warning to fire.
|
|
34
|
+
throw new Error(message);
|
|
35
|
+
} catch (x) { /**/ }
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Assert that the values match with the type specs.
|
|
41
|
+
* Error messages are memorized and will only be shown once.
|
|
42
|
+
*
|
|
43
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
44
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
45
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
46
|
+
* @param {string} componentName Name of the component for error messages.
|
|
47
|
+
* @param {?Function} getStack Returns the component stack.
|
|
48
|
+
* @private
|
|
49
|
+
*/
|
|
50
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
51
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
52
|
+
for (var typeSpecName in typeSpecs) {
|
|
53
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
54
|
+
var error;
|
|
55
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
56
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
57
|
+
// After these have been cleaned up, we'll let them throw.
|
|
58
|
+
try {
|
|
59
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
60
|
+
// behavior as without this statement except with a better message.
|
|
61
|
+
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
62
|
+
var err = Error(
|
|
63
|
+
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
64
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
65
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
66
|
+
);
|
|
67
|
+
err.name = 'Invariant Violation';
|
|
68
|
+
throw err;
|
|
69
|
+
}
|
|
70
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
71
|
+
} catch (ex) {
|
|
72
|
+
error = ex;
|
|
73
|
+
}
|
|
74
|
+
if (error && !(error instanceof Error)) {
|
|
75
|
+
printWarning(
|
|
76
|
+
(componentName || 'React class') + ': type specification of ' +
|
|
77
|
+
location + ' `' + typeSpecName + '` is invalid; the type checker ' +
|
|
78
|
+
'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +
|
|
79
|
+
'You may have forgotten to pass an argument to the type checker ' +
|
|
80
|
+
'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +
|
|
81
|
+
'shape all require an argument).'
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
85
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
86
|
+
// same error.
|
|
87
|
+
loggedTypeFailures[error.message] = true;
|
|
88
|
+
|
|
89
|
+
var stack = getStack ? getStack() : '';
|
|
90
|
+
|
|
91
|
+
printWarning(
|
|
92
|
+
'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Resets warning cache when testing.
|
|
102
|
+
*
|
|
103
|
+
* @private
|
|
104
|
+
*/
|
|
105
|
+
checkPropTypes.resetWarningCache = function() {
|
|
106
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
107
|
+
loggedTypeFailures = {};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
checkPropTypes_1 = checkPropTypes;
|
|
112
|
+
return checkPropTypes_1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export { requireCheckPropTypes as __require };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { __require as requireReactPropTypesSecret } from './lib/ReactPropTypesSecret.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
var factoryWithThrowingShims;
|
|
11
|
+
var hasRequiredFactoryWithThrowingShims;
|
|
12
|
+
|
|
13
|
+
function requireFactoryWithThrowingShims () {
|
|
14
|
+
if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
|
|
15
|
+
hasRequiredFactoryWithThrowingShims = 1;
|
|
16
|
+
|
|
17
|
+
var ReactPropTypesSecret = requireReactPropTypesSecret();
|
|
18
|
+
|
|
19
|
+
function emptyFunction() {}
|
|
20
|
+
function emptyFunctionWithReset() {}
|
|
21
|
+
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
22
|
+
|
|
23
|
+
factoryWithThrowingShims = function() {
|
|
24
|
+
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
25
|
+
if (secret === ReactPropTypesSecret) {
|
|
26
|
+
// It is still safe when called from React.
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
var err = new Error(
|
|
30
|
+
'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
|
31
|
+
'Use PropTypes.checkPropTypes() to call them. ' +
|
|
32
|
+
'Read more at http://fb.me/use-check-prop-types'
|
|
33
|
+
);
|
|
34
|
+
err.name = 'Invariant Violation';
|
|
35
|
+
throw err;
|
|
36
|
+
} shim.isRequired = shim;
|
|
37
|
+
function getShim() {
|
|
38
|
+
return shim;
|
|
39
|
+
} // Important!
|
|
40
|
+
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
41
|
+
var ReactPropTypes = {
|
|
42
|
+
array: shim,
|
|
43
|
+
bigint: shim,
|
|
44
|
+
bool: shim,
|
|
45
|
+
func: shim,
|
|
46
|
+
number: shim,
|
|
47
|
+
object: shim,
|
|
48
|
+
string: shim,
|
|
49
|
+
symbol: shim,
|
|
50
|
+
|
|
51
|
+
any: shim,
|
|
52
|
+
arrayOf: getShim,
|
|
53
|
+
element: shim,
|
|
54
|
+
elementType: shim,
|
|
55
|
+
instanceOf: getShim,
|
|
56
|
+
node: shim,
|
|
57
|
+
objectOf: getShim,
|
|
58
|
+
oneOf: getShim,
|
|
59
|
+
oneOfType: getShim,
|
|
60
|
+
shape: getShim,
|
|
61
|
+
exact: getShim,
|
|
62
|
+
|
|
63
|
+
checkPropTypes: emptyFunctionWithReset,
|
|
64
|
+
resetWarningCache: emptyFunction
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
68
|
+
|
|
69
|
+
return ReactPropTypes;
|
|
70
|
+
};
|
|
71
|
+
return factoryWithThrowingShims;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { requireFactoryWithThrowingShims as __require };
|