dtable-ui-component 6.0.26 → 6.0.28
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/lib/DateEditor/mb-date-editor-popover/index.js +3 -3
- package/lib/Department-editor/department-multiple-select/index.css +4 -1
- package/lib/Department-editor/department-multiple-select/index.js +7 -4
- package/lib/Department-editor/department-single-select.js +7 -4
- package/lib/Department-editor/index.css +4 -0
- package/lib/FileFormatter/index.js +98 -38
- package/lib/FileItemFormatter/index.js +3 -1
- package/lib/constants/file.js +1 -0
- package/lib/index.js +1 -106
- package/lib/locales/zh-CN.json +1 -1
- package/package.json +3 -12
- package/lib/ActionSheet/index.js +0 -194
- package/lib/ActionSheet/style/index.css +0 -365
- package/lib/ActivityIndicator/index.css +0 -108
- package/lib/ActivityIndicator/index.js +0 -76
- package/lib/Badge/index.css +0 -96
- package/lib/Badge/index.js +0 -65
- package/lib/DatePicker/index.js +0 -120
- package/lib/DatePicker/locale/en_US.js +0 -14
- package/lib/DatePicker/locale/ru_RU.js +0 -14
- package/lib/DatePicker/locale/sv_SE.js +0 -14
- package/lib/DatePicker/locale/zh_CN.js +0 -14
- package/lib/DatePicker/style/index.css +0 -290
- package/lib/DatePicker/utils.js +0 -36
- package/lib/Drawer/index.css +0 -142
- package/lib/Drawer/index.js +0 -21
- package/lib/Icon/index.css +0 -50
- package/lib/Icon/index.js +0 -35
- package/lib/Icon/load-sprite.js +0 -56
- package/lib/InputItem/custom-input.js +0 -321
- package/lib/InputItem/custom-keyboard.js +0 -162
- package/lib/InputItem/index.js +0 -389
- package/lib/InputItem/input.js +0 -45
- package/lib/InputItem/locale/en_US.js +0 -12
- package/lib/InputItem/locale/ru_RU.js +0 -12
- package/lib/InputItem/locale/sv_SE.js +0 -12
- package/lib/InputItem/locale/zh_CN.js +0 -12
- package/lib/InputItem/portal.js +0 -23
- package/lib/InputItem/style/index.css +0 -512
- package/lib/List/index.css +0 -381
- package/lib/List/index.js +0 -41
- package/lib/List/list-item.js +0 -169
- package/lib/Modal/alert.js +0 -82
- package/lib/Modal/index.js +0 -16
- package/lib/Modal/modal.js +0 -118
- package/lib/Modal/operation.js +0 -77
- package/lib/Modal/prompt.js +0 -207
- package/lib/Modal/style/index.css +0 -580
- package/lib/Picker/AbstractPicker.js +0 -190
- package/lib/Picker/index.js +0 -28
- package/lib/Picker/locale/en_US.js +0 -12
- package/lib/Picker/locale/ru_RU.js +0 -12
- package/lib/Picker/locale/sv_SE.js +0 -12
- package/lib/Picker/locale/zh_CN.js +0 -12
- package/lib/Picker/popupProps.js +0 -12
- package/lib/Picker/style/index.css +0 -141
- package/lib/Popover/index.js +0 -63
- package/lib/Popover/item.js +0 -55
- package/lib/Popover/style/index.css +0 -229
- package/lib/Progress/index.css +0 -22
- package/lib/Progress/index.js +0 -66
- package/lib/Radio/Radio.js +0 -47
- package/lib/Radio/RadioItem.js +0 -57
- package/lib/Radio/index.css +0 -90
- package/lib/Radio/index.js +0 -12
- package/lib/TabBar/Tab.js +0 -76
- package/lib/TabBar/index.css +0 -138
- package/lib/TabBar/index.js +0 -129
- package/lib/Tabs/index.css +0 -443
- package/lib/Tabs/index.js +0 -39
- package/lib/TextareaItem/index.css +0 -231
- package/lib/TextareaItem/index.js +0 -231
- package/lib/Toast/index.css +0 -65
- package/lib/Toast/index.js +0 -131
- package/lib/_util/class.js +0 -34
- package/lib/_util/closest.js +0 -17
- package/lib/_util/exenv.js +0 -8
- package/lib/_util/getDataAttr.js +0 -15
- package/lib/_util/getLocale.js +0 -42
package/lib/_util/class.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.addClass = addClass;
|
|
7
|
-
exports.hasClass = hasClass;
|
|
8
|
-
exports.removeClass = removeClass;
|
|
9
|
-
function hasClass(node, className) {
|
|
10
|
-
if (node.classList) {
|
|
11
|
-
return node.classList.contains(className);
|
|
12
|
-
}
|
|
13
|
-
const originClass = node.className;
|
|
14
|
-
return " ".concat(originClass, " ").indexOf(" ".concat(className, " ")) > -1;
|
|
15
|
-
}
|
|
16
|
-
function addClass(node, className) {
|
|
17
|
-
if (node.classList) {
|
|
18
|
-
node.classList.add(className);
|
|
19
|
-
} else {
|
|
20
|
-
if (!hasClass(node, className)) {
|
|
21
|
-
node.className = "".concat(node.className, " ").concat(className);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function removeClass(node, className) {
|
|
26
|
-
if (node.classList) {
|
|
27
|
-
node.classList.remove(className);
|
|
28
|
-
} else {
|
|
29
|
-
if (hasClass(node, className)) {
|
|
30
|
-
const originClass = node.className;
|
|
31
|
-
node.className = " ".concat(originClass, " ").replace(" ".concat(className, " "), '');
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
package/lib/_util/closest.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = closest;
|
|
7
|
-
function closest(el, selector) {
|
|
8
|
-
const matchesSelector = el.matches || el.webkitMatchesSelector || el.mozMatchesSelector || el.msMatchesSelector;
|
|
9
|
-
let p = el;
|
|
10
|
-
while (p) {
|
|
11
|
-
if (matchesSelector.call(p, selector)) {
|
|
12
|
-
return p;
|
|
13
|
-
}
|
|
14
|
-
p = p.parentElement;
|
|
15
|
-
}
|
|
16
|
-
return null;
|
|
17
|
-
}
|
package/lib/_util/exenv.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.canUseDOM = exports.IS_IOS = void 0;
|
|
7
|
-
const canUseDOM = exports.canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
|
8
|
-
const IS_IOS = exports.IS_IOS = canUseDOM && /iphone|ipad|ipod/i.test(window.navigator.userAgent);
|
package/lib/_util/getDataAttr.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const getDataAttr = props => {
|
|
8
|
-
return Object.keys(props).reduce((prev, key) => {
|
|
9
|
-
if (key.substr(0, 5) === 'aria-' || key.substr(0, 5) === 'data-' || key === 'role') {
|
|
10
|
-
prev[key] = props[key];
|
|
11
|
-
}
|
|
12
|
-
return prev;
|
|
13
|
-
}, {});
|
|
14
|
-
};
|
|
15
|
-
var _default = exports.default = getDataAttr;
|
package/lib/_util/getLocale.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getComponentLocale = getComponentLocale;
|
|
7
|
-
exports.getLocaleCode = getLocaleCode;
|
|
8
|
-
function getComponentLocale(props, context, componentName, getDefaultLocale) {
|
|
9
|
-
let locale = {};
|
|
10
|
-
if (context && context.antLocale && context.antLocale[componentName]) {
|
|
11
|
-
locale = context.antLocale[componentName];
|
|
12
|
-
} else {
|
|
13
|
-
const defaultLocale = getDefaultLocale();
|
|
14
|
-
// TODO: make default lang of antd be English
|
|
15
|
-
// https://github.com/ant-design/ant-design/issues/6334
|
|
16
|
-
locale = defaultLocale.default || defaultLocale;
|
|
17
|
-
}
|
|
18
|
-
let result = {
|
|
19
|
-
...locale
|
|
20
|
-
};
|
|
21
|
-
if (props.locale) {
|
|
22
|
-
result = {
|
|
23
|
-
...result,
|
|
24
|
-
...props.locale
|
|
25
|
-
};
|
|
26
|
-
if (props.locale.lang) {
|
|
27
|
-
result.lang = {
|
|
28
|
-
...locale.lang,
|
|
29
|
-
...props.locale.lang
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
return result;
|
|
34
|
-
}
|
|
35
|
-
function getLocaleCode(context) {
|
|
36
|
-
const localeCode = context.antLocale && context.antLocale.locale;
|
|
37
|
-
// Had use LocaleProvide but didn't set locale
|
|
38
|
-
if (context.antLocale && context.antLocale.exist && !localeCode) {
|
|
39
|
-
return 'zh-cn';
|
|
40
|
-
}
|
|
41
|
-
return localeCode;
|
|
42
|
-
}
|