@douyinfe/semi-ui 2.20.5 → 2.20.6
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/css/semi.css +0 -7
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +10 -44
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/autoComplete/index.d.ts +0 -3
- package/lib/cjs/autoComplete/index.js +1 -6
- package/lib/cjs/image/image.d.ts +0 -1
- package/lib/cjs/image/image.js +0 -2
- package/lib/cjs/image/index.d.ts +1 -0
- package/lib/cjs/image/index.js +2 -0
- package/lib/cjs/locale/source/fr.js +1 -1
- package/lib/cjs/table/HeadTable.js +2 -12
- package/lib/cjs/table/Table.js +3 -10
- package/lib/cjs/table/interface.d.ts +0 -4
- package/lib/cjs/upload/index.d.ts +0 -5
- package/lib/cjs/upload/index.js +0 -9
- package/lib/es/autoComplete/index.d.ts +0 -3
- package/lib/es/autoComplete/index.js +1 -6
- package/lib/es/image/image.d.ts +0 -1
- package/lib/es/image/image.js +0 -1
- package/lib/es/image/index.d.ts +1 -0
- package/lib/es/image/index.js +1 -0
- package/lib/es/locale/source/fr.js +1 -1
- package/lib/es/table/HeadTable.js +2 -13
- package/lib/es/table/Table.js +3 -10
- package/lib/es/table/interface.d.ts +0 -4
- package/lib/es/upload/index.d.ts +0 -5
- package/lib/es/upload/index.js +0 -9
- package/package.json +7 -7
- package/lib/cjs/locale/source/ro.d.ts +0 -156
- package/lib/cjs/locale/source/ro.js +0 -165
- package/lib/es/locale/source/ro.d.ts +0 -156
- package/lib/es/locale/source/ro.js +0 -157
package/dist/umd/semi-ui.js
CHANGED
|
@@ -27344,8 +27344,6 @@ class foundation_AutoCompleteFoundation extends foundation {
|
|
|
27344
27344
|
default:
|
|
27345
27345
|
break;
|
|
27346
27346
|
}
|
|
27347
|
-
|
|
27348
|
-
this._adapter.notifyKeyDown(event);
|
|
27349
27347
|
}
|
|
27350
27348
|
|
|
27351
27349
|
_getEnableFocusIndex(offset) {
|
|
@@ -29012,9 +29010,6 @@ class autoComplete_AutoComplete extends baseComponent_BaseComponent {
|
|
|
29012
29010
|
notifyBlur: event => {
|
|
29013
29011
|
this.props.onBlur(event);
|
|
29014
29012
|
},
|
|
29015
|
-
notifyKeyDown: e => {
|
|
29016
|
-
this.props.onKeyDown(e);
|
|
29017
|
-
},
|
|
29018
29013
|
rePositionDropdown: () => {
|
|
29019
29014
|
let {
|
|
29020
29015
|
rePosKey
|
|
@@ -29237,7 +29232,6 @@ autoComplete_AutoComplete.propTypes = {
|
|
|
29237
29232
|
onBlur: prop_types_default.a.func,
|
|
29238
29233
|
onFocus: prop_types_default.a.func,
|
|
29239
29234
|
onChange: prop_types_default.a.func,
|
|
29240
|
-
onKeyDown: prop_types_default.a.func,
|
|
29241
29235
|
position: prop_types_default.a.oneOf(autoComplete_positionSet),
|
|
29242
29236
|
placeholder: prop_types_default.a.string,
|
|
29243
29237
|
prefix: prop_types_default.a.node,
|
|
@@ -29283,8 +29277,7 @@ autoComplete_AutoComplete.defaultProps = {
|
|
|
29283
29277
|
maxHeight: 300,
|
|
29284
29278
|
validateStatus: 'default',
|
|
29285
29279
|
autoFocus: false,
|
|
29286
|
-
emptyContent: null,
|
|
29287
|
-
onKeyDown: noop_default.a // onPressEnter: () => undefined,
|
|
29280
|
+
emptyContent: null // onPressEnter: () => undefined,
|
|
29288
29281
|
// defaultOpen: false,
|
|
29289
29282
|
|
|
29290
29283
|
};
|
|
@@ -82886,8 +82879,7 @@ class HeadTable_HeadTable extends external_root_React_commonjs2_react_commonjs_r
|
|
|
82886
82879
|
onDidUpdate,
|
|
82887
82880
|
showHeader,
|
|
82888
82881
|
anyColumnFixed,
|
|
82889
|
-
bodyHasScrollBar
|
|
82890
|
-
sticky
|
|
82882
|
+
bodyHasScrollBar
|
|
82891
82883
|
} = this.props;
|
|
82892
82884
|
|
|
82893
82885
|
if (!showHeader) {
|
|
@@ -82918,20 +82910,10 @@ class HeadTable_HeadTable extends external_root_React_commonjs2_react_commonjs_r
|
|
|
82918
82910
|
components: components,
|
|
82919
82911
|
onDidUpdate: onDidUpdate
|
|
82920
82912
|
}));
|
|
82921
|
-
const headTableCls = classnames_default()("".concat(prefixCls, "-header"), {
|
|
82922
|
-
["".concat(prefixCls, "-header-sticky")]: sticky
|
|
82923
|
-
});
|
|
82924
|
-
|
|
82925
|
-
const stickyTop = get_default()(sticky, 'top', 0);
|
|
82926
|
-
|
|
82927
|
-
if (typeof stickyTop === 'number') {
|
|
82928
|
-
headStyle.top = stickyTop;
|
|
82929
|
-
}
|
|
82930
|
-
|
|
82931
82913
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("div", {
|
|
82932
82914
|
key: "headTable",
|
|
82933
82915
|
style: headStyle,
|
|
82934
|
-
className:
|
|
82916
|
+
className: "".concat(prefixCls, "-header"),
|
|
82935
82917
|
ref: forwardedRef,
|
|
82936
82918
|
onScroll: handleBodyScroll
|
|
82937
82919
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Table, {
|
|
@@ -85901,8 +85883,7 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
85901
85883
|
rowSelection,
|
|
85902
85884
|
dataSource,
|
|
85903
85885
|
bodyHasScrollBar,
|
|
85904
|
-
disabledRowKeysSet
|
|
85905
|
-
sticky
|
|
85886
|
+
disabledRowKeysSet
|
|
85906
85887
|
} = props;
|
|
85907
85888
|
|
|
85908
85889
|
const selectedRowKeysSet = get_default()(rowSelection, 'selectedRowKeysSet', new Set());
|
|
@@ -85921,8 +85902,7 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
85921
85902
|
selectedRowKeysSet: selectedRowKeysSet,
|
|
85922
85903
|
onHeaderRow: onHeaderRow,
|
|
85923
85904
|
dataSource: dataSource,
|
|
85924
|
-
bodyHasScrollBar: bodyHasScrollBar
|
|
85925
|
-
sticky: sticky
|
|
85905
|
+
bodyHasScrollBar: bodyHasScrollBar
|
|
85926
85906
|
}) : null;
|
|
85927
85907
|
const bodyTable = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(table_Body, Object.assign({}, omit_default()(props, ['rowSelection', 'headWidths']), {
|
|
85928
85908
|
key: "body",
|
|
@@ -86241,18 +86221,13 @@ class Table_Table extends baseComponent_BaseComponent {
|
|
|
86241
86221
|
isAnyColumnFixed: columns => some_default()(this.getColumns(columns || this.props.columns, this.props.children), column => Boolean(column.fixed)),
|
|
86242
86222
|
useFixedHeader: () => {
|
|
86243
86223
|
const {
|
|
86244
|
-
scroll
|
|
86245
|
-
sticky
|
|
86224
|
+
scroll
|
|
86246
86225
|
} = this.props;
|
|
86247
86226
|
|
|
86248
86227
|
if (get_default()(scroll, 'y')) {
|
|
86249
86228
|
return true;
|
|
86250
86229
|
}
|
|
86251
86230
|
|
|
86252
|
-
if (sticky) {
|
|
86253
|
-
return true;
|
|
86254
|
-
}
|
|
86255
|
-
|
|
86256
86231
|
return false;
|
|
86257
86232
|
},
|
|
86258
86233
|
setHeadWidths: function (headWidths) {
|
|
@@ -97001,15 +96976,6 @@ class upload_Upload extends baseComponent_BaseComponent {
|
|
|
97001
96976
|
} = this.state;
|
|
97002
96977
|
this.foundation.startUpload(fileList);
|
|
97003
96978
|
};
|
|
97004
|
-
/**
|
|
97005
|
-
* ref method
|
|
97006
|
-
* manual open file select dialog
|
|
97007
|
-
*/
|
|
97008
|
-
|
|
97009
|
-
|
|
97010
|
-
this.openFileDialog = () => {
|
|
97011
|
-
this.onClick();
|
|
97012
|
-
};
|
|
97013
96979
|
|
|
97014
96980
|
this.renderFile = (file, index, locale) => {
|
|
97015
96981
|
const {
|
|
@@ -103143,9 +103109,6 @@ previewInner_PreviewInner.defaultProps = {
|
|
|
103143
103109
|
maskClosable: true,
|
|
103144
103110
|
viewerVisibleDelay: 10000
|
|
103145
103111
|
};
|
|
103146
|
-
// EXTERNAL MODULE: ../semi-foundation/image/image.scss
|
|
103147
|
-
var image_image = __webpack_require__("txvO");
|
|
103148
|
-
|
|
103149
103112
|
// CONCATENATED MODULE: ../semi-foundation/image/imageFoundation.ts
|
|
103150
103113
|
|
|
103151
103114
|
|
|
@@ -103240,7 +103203,6 @@ class imageFoundation_ImageFoundation extends foundation {
|
|
|
103240
103203
|
|
|
103241
103204
|
|
|
103242
103205
|
|
|
103243
|
-
|
|
103244
103206
|
const image_prefixCls = image_constants_cssClasses.PREFIX;
|
|
103245
103207
|
class image_Image extends baseComponent_BaseComponent {
|
|
103246
103208
|
constructor(props) {
|
|
@@ -103448,10 +103410,14 @@ image_Image.propTypes = {
|
|
|
103448
103410
|
image_Image.defaultProps = {
|
|
103449
103411
|
preview: true
|
|
103450
103412
|
};
|
|
103413
|
+
// EXTERNAL MODULE: ../semi-foundation/image/image.scss
|
|
103414
|
+
var image_image = __webpack_require__("txvO");
|
|
103415
|
+
|
|
103451
103416
|
// CONCATENATED MODULE: ./image/index.tsx
|
|
103452
103417
|
|
|
103453
103418
|
|
|
103454
103419
|
|
|
103420
|
+
|
|
103455
103421
|
/* harmony default export */ var image_0 = (image_Image);
|
|
103456
103422
|
|
|
103457
103423
|
|