@douyinfe/semi-ui 2.39.0 → 2.39.2-alpha.0
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/umd/semi-ui.js +132 -431
- 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/_utils/index.js +0 -3
- package/lib/cjs/autoComplete/index.js +0 -2
- package/lib/cjs/autoComplete/option.js +0 -2
- package/lib/cjs/avatar/avatarGroup.js +0 -1
- package/lib/cjs/avatar/index.js +0 -1
- package/lib/cjs/backtop/index.js +0 -1
- package/lib/cjs/badge/index.js +0 -1
- package/lib/cjs/banner/index.js +0 -3
- package/lib/cjs/breadcrumb/index.js +0 -3
- package/lib/cjs/button/Button.js +8 -14
- package/lib/cjs/calendar/dayCalendar.js +4 -9
- package/lib/cjs/calendar/dayCol.js +1 -1
- package/lib/cjs/calendar/monthCalendar.js +5 -12
- package/lib/cjs/calendar/rangeCalendar.js +0 -2
- package/lib/cjs/carousel/index.js +0 -2
- package/lib/cjs/checkbox/checkbox.js +0 -2
- package/lib/cjs/checkbox/checkboxGroup.js +0 -3
- package/lib/cjs/checkbox/checkboxInner.js +0 -2
- package/lib/cjs/collapse/index.js +0 -1
- package/lib/cjs/datePicker/dateInput.js +0 -3
- package/lib/cjs/datePicker/datePicker.js +1 -3
- package/lib/cjs/datePicker/month.js +0 -4
- package/lib/cjs/datePicker/monthsGrid.js +1 -5
- package/lib/cjs/datePicker/yearAndMonth.js +0 -2
- package/lib/cjs/form/arrayField.js +0 -2
- package/lib/cjs/form/baseForm.js +0 -2
- package/lib/cjs/form/context.js +0 -2
- package/lib/cjs/form/errorMessage.js +0 -2
- package/lib/cjs/form/field.js +0 -2
- package/lib/cjs/form/group.js +0 -2
- package/lib/cjs/form/hoc/withField.js +2 -6
- package/lib/cjs/form/interface.js +0 -3
- package/lib/cjs/form/section.js +0 -2
- package/lib/cjs/form/slot.js +0 -3
- package/lib/cjs/iconButton/index.js +0 -2
- package/lib/cjs/image/image.js +25 -32
- package/lib/cjs/image/interface.d.ts +2 -1
- package/lib/cjs/image/previewInner.d.ts +2 -2
- package/lib/cjs/image/previewInner.js +0 -2
- package/lib/cjs/input/index.js +0 -2
- package/lib/cjs/input/inputGroup.js +0 -3
- package/lib/cjs/input/textarea.js +0 -2
- package/lib/cjs/inputNumber/index.js +1 -5
- package/lib/cjs/modal/ConfirmModal.js +0 -2
- package/lib/cjs/modal/Modal.js +0 -2
- package/lib/cjs/modal/ModalContent.js +0 -5
- package/lib/cjs/modal/confirm.js +0 -1
- package/lib/cjs/modal/useModal/HookModal.js +0 -1
- package/lib/cjs/modal/useModal/index.js +0 -2
- package/lib/cjs/navigation/Item.js +0 -3
- package/lib/cjs/navigation/SubNav.js +0 -3
- package/lib/cjs/navigation/index.js +0 -2
- package/lib/cjs/notification/notice.js +29 -35
- package/lib/cjs/notification/useNotification/index.js +1 -1
- package/lib/cjs/overflowList/index.js +0 -2
- package/lib/cjs/pagination/index.d.ts +2 -0
- package/lib/cjs/pagination/index.js +29 -13
- package/lib/cjs/popconfirm/index.js +0 -2
- package/lib/cjs/progress/index.js +0 -1
- package/lib/cjs/radio/radio.js +0 -2
- package/lib/cjs/rating/index.js +0 -1
- package/lib/cjs/resizeObserver/index.js +0 -1
- package/lib/cjs/scrollList/scrollItem.js +0 -3
- package/lib/cjs/select/index.js +0 -6
- package/lib/cjs/select/option.js +0 -2
- package/lib/cjs/select/utils.js +0 -2
- package/lib/cjs/sideSheet/index.js +0 -2
- package/lib/cjs/slider/index.js +0 -3
- package/lib/cjs/spin/icon.js +0 -2
- package/lib/cjs/switch/index.js +0 -2
- package/lib/cjs/table/Body/BaseRow.js +0 -2
- package/lib/cjs/table/Body/ExpandedRow.js +0 -3
- package/lib/cjs/table/Body/SectionRow.js +0 -3
- package/lib/cjs/table/Body/index.js +0 -8
- package/lib/cjs/table/ColGroup.js +0 -1
- package/lib/cjs/table/ColumnFilter.js +0 -3
- package/lib/cjs/table/ColumnSelection.js +0 -2
- package/lib/cjs/table/HeadTable.js +0 -2
- package/lib/cjs/table/ResizableTable.js +1 -4
- package/lib/cjs/table/Table.js +1 -10
- package/lib/cjs/table/TableCell.js +0 -4
- package/lib/cjs/table/TableHeader.js +0 -4
- package/lib/cjs/table/TableHeaderRow.js +0 -2
- package/lib/cjs/table/TablePagination.js +0 -2
- package/lib/cjs/table/table-context.js +0 -2
- package/lib/cjs/tabs/TabBar.js +0 -2
- package/lib/cjs/tag/index.js +1 -3
- package/lib/cjs/tagInput/index.js +0 -2
- package/lib/cjs/timePicker/Combobox.js +0 -4
- package/lib/cjs/timePicker/TimeInput.js +0 -2
- package/lib/cjs/timePicker/TimePicker.js +0 -2
- package/lib/cjs/toast/index.js +0 -2
- package/lib/cjs/toast/toast.js +0 -2
- package/lib/cjs/toast/useToast/index.js +0 -1
- package/lib/cjs/tooltip/index.js +0 -6
- package/lib/cjs/transfer/index.js +0 -3
- package/lib/cjs/tree/index.js +0 -3
- package/lib/cjs/tree/treeNode.js +0 -3
- package/lib/cjs/treeSelect/index.js +0 -7
- package/lib/cjs/trigger/index.js +0 -2
- package/lib/cjs/typography/util.js +1 -3
- package/lib/cjs/upload/index.js +0 -2
- package/lib/es/_utils/index.js +0 -2
- package/lib/es/autoComplete/index.js +0 -1
- package/lib/es/autoComplete/option.js +0 -1
- package/lib/es/avatar/avatarGroup.js +0 -1
- package/lib/es/avatar/index.js +0 -1
- package/lib/es/backtop/index.js +0 -1
- package/lib/es/badge/index.js +0 -1
- package/lib/es/banner/index.js +0 -2
- package/lib/es/breadcrumb/index.js +0 -2
- package/lib/es/button/Button.js +8 -13
- package/lib/es/calendar/dayCalendar.js +4 -9
- package/lib/es/calendar/dayCol.js +1 -1
- package/lib/es/calendar/monthCalendar.js +5 -11
- package/lib/es/calendar/rangeCalendar.js +0 -1
- package/lib/es/carousel/index.js +0 -1
- package/lib/es/checkbox/checkbox.js +0 -1
- package/lib/es/checkbox/checkboxGroup.js +0 -2
- package/lib/es/checkbox/checkboxInner.js +0 -1
- package/lib/es/collapse/index.js +0 -1
- package/lib/es/datePicker/dateInput.js +0 -3
- package/lib/es/datePicker/datePicker.js +0 -3
- package/lib/es/datePicker/month.js +0 -4
- package/lib/es/datePicker/monthsGrid.js +1 -5
- package/lib/es/datePicker/yearAndMonth.js +0 -1
- package/lib/es/form/arrayField.js +0 -1
- package/lib/es/form/baseForm.js +0 -1
- package/lib/es/form/context.js +0 -1
- package/lib/es/form/errorMessage.js +0 -1
- package/lib/es/form/field.js +0 -1
- package/lib/es/form/group.js +0 -1
- package/lib/es/form/hoc/withField.js +2 -6
- package/lib/es/form/interface.js +0 -2
- package/lib/es/form/section.js +0 -1
- package/lib/es/form/slot.js +0 -2
- package/lib/es/iconButton/index.js +0 -1
- package/lib/es/image/image.js +25 -32
- package/lib/es/image/interface.d.ts +2 -1
- package/lib/es/image/previewInner.d.ts +2 -2
- package/lib/es/image/previewInner.js +0 -1
- package/lib/es/input/index.js +0 -1
- package/lib/es/input/inputGroup.js +0 -2
- package/lib/es/input/textarea.js +0 -1
- package/lib/es/inputNumber/index.js +0 -5
- package/lib/es/modal/ConfirmModal.js +0 -2
- package/lib/es/modal/Modal.js +0 -1
- package/lib/es/modal/ModalContent.js +0 -3
- package/lib/es/modal/confirm.js +0 -1
- package/lib/es/modal/useModal/HookModal.js +0 -1
- package/lib/es/modal/useModal/index.js +0 -2
- package/lib/es/navigation/Item.js +0 -2
- package/lib/es/navigation/SubNav.js +0 -2
- package/lib/es/navigation/index.js +0 -1
- package/lib/es/notification/notice.js +29 -34
- package/lib/es/notification/useNotification/index.js +1 -1
- package/lib/es/overflowList/index.js +0 -1
- package/lib/es/pagination/index.d.ts +2 -0
- package/lib/es/pagination/index.js +28 -13
- package/lib/es/popconfirm/index.js +0 -1
- package/lib/es/progress/index.js +0 -1
- package/lib/es/radio/radio.js +0 -1
- package/lib/es/rating/index.js +0 -1
- package/lib/es/resizeObserver/index.js +0 -1
- package/lib/es/scrollList/scrollItem.js +0 -3
- package/lib/es/select/index.js +0 -6
- package/lib/es/select/option.js +0 -1
- package/lib/es/select/utils.js +0 -2
- package/lib/es/sideSheet/index.js +0 -1
- package/lib/es/slider/index.js +0 -3
- package/lib/es/spin/icon.js +0 -1
- package/lib/es/switch/index.js +0 -1
- package/lib/es/table/Body/BaseRow.js +0 -2
- package/lib/es/table/Body/ExpandedRow.js +0 -2
- package/lib/es/table/Body/SectionRow.js +0 -3
- package/lib/es/table/Body/index.js +0 -8
- package/lib/es/table/ColGroup.js +0 -1
- package/lib/es/table/ColumnFilter.js +0 -2
- package/lib/es/table/ColumnSelection.js +0 -1
- package/lib/es/table/HeadTable.js +0 -1
- package/lib/es/table/ResizableTable.js +0 -4
- package/lib/es/table/Table.js +0 -10
- package/lib/es/table/TableCell.js +0 -3
- package/lib/es/table/TableHeader.js +0 -3
- package/lib/es/table/TableHeaderRow.js +0 -1
- package/lib/es/table/TablePagination.js +0 -1
- package/lib/es/table/table-context.js +0 -1
- package/lib/es/tabs/TabBar.js +0 -2
- package/lib/es/tag/index.js +1 -2
- package/lib/es/tagInput/index.js +0 -2
- package/lib/es/timePicker/Combobox.js +0 -3
- package/lib/es/timePicker/TimeInput.js +0 -1
- package/lib/es/timePicker/TimePicker.js +0 -1
- package/lib/es/toast/index.js +0 -1
- package/lib/es/toast/toast.js +0 -1
- package/lib/es/toast/useToast/index.js +0 -1
- package/lib/es/tooltip/index.js +0 -5
- package/lib/es/transfer/index.js +0 -3
- package/lib/es/tree/index.js +0 -2
- package/lib/es/tree/treeNode.js +0 -3
- package/lib/es/treeSelect/index.js +0 -7
- package/lib/es/trigger/index.js +0 -2
- package/lib/es/typography/util.js +1 -3
- package/lib/es/upload/index.js +0 -1
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -17703,11 +17703,9 @@ const prefixCls = cssClasses.PREFIX;
|
|
|
17703
17703
|
class AnchorFoundation extends foundation {
|
|
17704
17704
|
constructor(adapter) {
|
|
17705
17705
|
var _this;
|
|
17706
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
17707
17706
|
super(Object.assign(Object.assign({}, AnchorFoundation.defaultAdapter), adapter));
|
|
17708
17707
|
_this = this;
|
|
17709
17708
|
this.init = () => {};
|
|
17710
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
17711
17709
|
this.destroy = () => {};
|
|
17712
17710
|
this.addLink = link => {
|
|
17713
17711
|
this._adapter.addLink(link);
|
|
@@ -17979,7 +17977,6 @@ class LinkFoundation extends foundation {
|
|
|
17979
17977
|
init() {
|
|
17980
17978
|
// this.setInitValue();
|
|
17981
17979
|
}
|
|
17982
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
17983
17980
|
destroy() {}
|
|
17984
17981
|
handleAddLink() {
|
|
17985
17982
|
const href = this._adapter.getProp('href');
|
|
@@ -18135,7 +18132,6 @@ class Event {
|
|
|
18135
18132
|
const callbacks = this._eventMap.get(event);
|
|
18136
18133
|
if (Array.isArray(callbacks) && callbacks.length) {
|
|
18137
18134
|
let index = -1;
|
|
18138
|
-
// eslint-disable-next-line max-depth
|
|
18139
18135
|
while ((index = callbacks.findIndex(cb => cb === callback)) > -1) {
|
|
18140
18136
|
callbacks.splice(index, 1);
|
|
18141
18137
|
}
|
|
@@ -18311,9 +18307,6 @@ function getMenuButton(focusableEle, Id) {
|
|
|
18311
18307
|
;// CONCATENATED MODULE: ../semi-foundation/tooltip/foundation.ts
|
|
18312
18308
|
|
|
18313
18309
|
|
|
18314
|
-
/* eslint-disable no-param-reassign */
|
|
18315
|
-
/* eslint-disable prefer-destructuring, max-lines-per-function, one-var, max-len, @typescript-eslint/restrict-plus-operands */
|
|
18316
|
-
/* argus-disable unPkgSensitiveInfo */
|
|
18317
18310
|
|
|
18318
18311
|
|
|
18319
18312
|
const REGS = {
|
|
@@ -18389,7 +18382,6 @@ class foundation_Tooltip extends foundation {
|
|
|
18389
18382
|
top: -9999
|
|
18390
18383
|
}); // offscreen rendering
|
|
18391
18384
|
if (trigger === 'custom') {
|
|
18392
|
-
// eslint-disable-next-line
|
|
18393
18385
|
this._adapter.registerClickOutsideHandler(() => {});
|
|
18394
18386
|
}
|
|
18395
18387
|
/**
|
|
@@ -18707,7 +18699,6 @@ class foundation_Tooltip extends foundation {
|
|
|
18707
18699
|
return pixel;
|
|
18708
18700
|
}
|
|
18709
18701
|
calcTransformOrigin(position, triggerRect, translateX, translateY) {
|
|
18710
|
-
// eslint-disable-next-line
|
|
18711
18702
|
if (position && triggerRect && translateX != null && translateY != null) {
|
|
18712
18703
|
if (this.getProp('transformFromCenter')) {
|
|
18713
18704
|
if (['topLeft', 'bottomLeft'].includes(position)) {
|
|
@@ -18738,9 +18729,7 @@ class foundation_Tooltip extends foundation {
|
|
|
18738
18729
|
const triggerRect = (isEmpty_default()(props.triggerRect) ? props.triggerRect : this._adapter.getTriggerBounding()) || Object.assign({}, defaultRect);
|
|
18739
18730
|
const containerRect = (isEmpty_default()(props.containerRect) ? props.containerRect : this._adapter.getPopupContainerRect()) || Object.assign({}, defaultRect);
|
|
18740
18731
|
const wrapperRect = (isEmpty_default()(props.wrapperRect) ? props.wrapperRect : this._adapter.getWrapperBounding()) || Object.assign({}, defaultRect);
|
|
18741
|
-
// eslint-disable-next-line
|
|
18742
18732
|
const position = props.position != null ? props.position : this.getProp('position');
|
|
18743
|
-
// eslint-disable-next-line
|
|
18744
18733
|
const SPACING = spacing != null ? spacing : this.getProp('spacing');
|
|
18745
18734
|
const {
|
|
18746
18735
|
arrowPointAtCenter,
|
|
@@ -18918,7 +18907,6 @@ class foundation_Tooltip extends foundation {
|
|
|
18918
18907
|
top: this._roundPixel(top)
|
|
18919
18908
|
};
|
|
18920
18909
|
let transform = '';
|
|
18921
|
-
// eslint-disable-next-line
|
|
18922
18910
|
if (translateX != null) {
|
|
18923
18911
|
transform += `translateX(${translateX * 100}%) `;
|
|
18924
18912
|
Object.defineProperty(style, 'translateX', {
|
|
@@ -18926,7 +18914,6 @@ class foundation_Tooltip extends foundation {
|
|
|
18926
18914
|
value: translateX
|
|
18927
18915
|
});
|
|
18928
18916
|
}
|
|
18929
|
-
// eslint-disable-next-line
|
|
18930
18917
|
if (translateY != null) {
|
|
18931
18918
|
transform += `translateY(${translateY * 100}%) `;
|
|
18932
18919
|
Object.defineProperty(style, 'translateY', {
|
|
@@ -18934,7 +18921,6 @@ class foundation_Tooltip extends foundation {
|
|
|
18934
18921
|
value: translateY
|
|
18935
18922
|
});
|
|
18936
18923
|
}
|
|
18937
|
-
// eslint-disable-next-line
|
|
18938
18924
|
if (transformOrigin != null) {
|
|
18939
18925
|
style.transformOrigin = transformOrigin;
|
|
18940
18926
|
}
|
|
@@ -19663,8 +19649,6 @@ const findAll = _ref4 => {
|
|
|
19663
19649
|
|
|
19664
19650
|
|
|
19665
19651
|
|
|
19666
|
-
/* eslint-disable max-len */
|
|
19667
|
-
/* argus-disable unPkgSensitiveInfo */
|
|
19668
19652
|
|
|
19669
19653
|
|
|
19670
19654
|
|
|
@@ -20134,7 +20118,6 @@ var tooltip_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
20134
20118
|
}
|
|
20135
20119
|
return t;
|
|
20136
20120
|
};
|
|
20137
|
-
/* eslint-disable prefer-destructuring, max-lines-per-function, react/no-find-dom-node, max-len, @typescript-eslint/no-empty-function */
|
|
20138
20121
|
|
|
20139
20122
|
|
|
20140
20123
|
|
|
@@ -20412,12 +20395,10 @@ class Tooltip extends BaseComponent {
|
|
|
20412
20395
|
get adapter() {
|
|
20413
20396
|
var _this = this;
|
|
20414
20397
|
return Object.assign(Object.assign({}, super.adapter), {
|
|
20415
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
20416
20398
|
// @ts-ignore
|
|
20417
20399
|
on: function () {
|
|
20418
20400
|
return _this.eventManager.on(...arguments);
|
|
20419
20401
|
},
|
|
20420
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
20421
20402
|
// @ts-ignore
|
|
20422
20403
|
off: function () {
|
|
20423
20404
|
return _this.eventManager.off(...arguments);
|
|
@@ -20465,7 +20446,6 @@ class Tooltip extends BaseComponent {
|
|
|
20465
20446
|
});
|
|
20466
20447
|
},
|
|
20467
20448
|
getTriggerBounding: () => {
|
|
20468
|
-
// eslint-disable-next-line
|
|
20469
20449
|
// It may be a React component or an html element
|
|
20470
20450
|
// There is no guarantee that triggerE l.current can get the real dom, so call findDOMNode to ensure that you can get the real dom
|
|
20471
20451
|
const triggerDOM = this.adapter.getTriggerNode();
|
|
@@ -20719,7 +20699,6 @@ class Tooltip extends BaseComponent {
|
|
|
20719
20699
|
this.isWrapped = true;
|
|
20720
20700
|
}
|
|
20721
20701
|
}
|
|
20722
|
-
// eslint-disable-next-line prefer-const
|
|
20723
20702
|
let ariaAttribute = {};
|
|
20724
20703
|
// Take effect when used by Popover component
|
|
20725
20704
|
if (role === 'dialog') {
|
|
@@ -20828,7 +20807,6 @@ var copy_text_to_clipboard_default = /*#__PURE__*/__webpack_require__.n(copy_tex
|
|
|
20828
20807
|
/**
|
|
20829
20808
|
* no operation
|
|
20830
20809
|
*/
|
|
20831
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
20832
20810
|
function function_noop() {}
|
|
20833
20811
|
;// CONCATENATED MODULE: ./locale/context.tsx
|
|
20834
20812
|
|
|
@@ -24056,9 +24034,7 @@ const getRenderText = function (originEle, rows) {
|
|
|
24056
24034
|
let fixedContent = arguments.length > 3 ? arguments[3] : undefined;
|
|
24057
24035
|
let ellipsisStr = arguments.length > 4 ? arguments[4] : undefined;
|
|
24058
24036
|
let suffix = arguments.length > 5 ? arguments[5] : undefined;
|
|
24059
|
-
let ellipsisPos
|
|
24060
|
-
// eslint-disable-next-line max-params
|
|
24061
|
-
= arguments.length > 6 ? arguments[6] : undefined;
|
|
24037
|
+
let ellipsisPos = arguments.length > 6 ? arguments[6] : undefined;
|
|
24062
24038
|
if (content.length === 0) {
|
|
24063
24039
|
return '';
|
|
24064
24040
|
}
|
|
@@ -25103,7 +25079,6 @@ class ReactResizeObserver extends BaseComponent {
|
|
|
25103
25079
|
// using findDOMNode for two reasons:
|
|
25104
25080
|
// 1. cloning to insert a ref is unwieldy and not performant.
|
|
25105
25081
|
// 2. ensure that we resolve to an actual DOM node (instead of any JSX ref instance).
|
|
25106
|
-
// eslint-disable-next-line
|
|
25107
25082
|
return (0,external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_.findDOMNode)(this.childNode || this);
|
|
25108
25083
|
} catch (error) {
|
|
25109
25084
|
// swallow error if findDOMNode is run on unmounted component.
|
|
@@ -26644,7 +26619,6 @@ var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber);
|
|
|
26644
26619
|
|
|
26645
26620
|
|
|
26646
26621
|
|
|
26647
|
-
/* eslint-disable prefer-const, max-len */
|
|
26648
26622
|
|
|
26649
26623
|
|
|
26650
26624
|
|
|
@@ -27097,7 +27071,6 @@ var icon_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
27097
27071
|
}
|
|
27098
27072
|
return t;
|
|
27099
27073
|
};
|
|
27100
|
-
/* eslint-disable no-unused-vars */
|
|
27101
27074
|
|
|
27102
27075
|
|
|
27103
27076
|
let _id = -1;
|
|
@@ -27326,7 +27299,6 @@ class InputFoundation extends foundation {
|
|
|
27326
27299
|
this._timer = null;
|
|
27327
27300
|
}
|
|
27328
27301
|
}
|
|
27329
|
-
// eslint-disable-next-line
|
|
27330
27302
|
setDisable() {}
|
|
27331
27303
|
_setInitValue() {
|
|
27332
27304
|
const {
|
|
@@ -27406,7 +27378,6 @@ class InputFoundation extends foundation {
|
|
|
27406
27378
|
if (isNumber_default()(maxLength) && maxLength >= 0 && isFunction_default()(getValueLength) && isString_default()(value)) {
|
|
27407
27379
|
const valueLength = getValueLength(value);
|
|
27408
27380
|
if (valueLength > maxLength) {
|
|
27409
|
-
// eslint-disable-next-line max-len
|
|
27410
27381
|
console.warn('[Semi Input] The input character is truncated because the input length exceeds the maximum length limit');
|
|
27411
27382
|
const truncatedValue = this.handleTruncateValue(value, maxLength);
|
|
27412
27383
|
return truncatedValue;
|
|
@@ -27607,7 +27578,6 @@ var input_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
27607
27578
|
}
|
|
27608
27579
|
return t;
|
|
27609
27580
|
};
|
|
27610
|
-
/* eslint-disable no-unused-vars, max-len, @typescript-eslint/no-unused-vars */
|
|
27611
27581
|
|
|
27612
27582
|
|
|
27613
27583
|
|
|
@@ -28082,7 +28052,6 @@ const ForwardInput = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_r
|
|
|
28082
28052
|
/* harmony default export */ const input_0 = (ForwardInput);
|
|
28083
28053
|
|
|
28084
28054
|
;// CONCATENATED MODULE: ./trigger/index.tsx
|
|
28085
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
28086
28055
|
var trigger_rest = undefined && undefined.__rest || function (s, e) {
|
|
28087
28056
|
var t = {};
|
|
28088
28057
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -28098,7 +28067,6 @@ var trigger_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
28098
28067
|
*/
|
|
28099
28068
|
class Trigger extends (external_root_React_commonjs2_react_commonjs_react_amd_react_default()).PureComponent {
|
|
28100
28069
|
render() {
|
|
28101
|
-
// eslint-disable-next-line no-unused-vars
|
|
28102
28070
|
const _a = this.props,
|
|
28103
28071
|
{
|
|
28104
28072
|
triggerRender,
|
|
@@ -28135,7 +28103,6 @@ var option_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
28135
28103
|
}
|
|
28136
28104
|
return t;
|
|
28137
28105
|
};
|
|
28138
|
-
/* eslint-disable max-len */
|
|
28139
28106
|
|
|
28140
28107
|
|
|
28141
28108
|
|
|
@@ -28297,7 +28264,6 @@ var autoComplete = __webpack_require__("PyaV");
|
|
|
28297
28264
|
;// CONCATENATED MODULE: ./autoComplete/index.tsx
|
|
28298
28265
|
|
|
28299
28266
|
|
|
28300
|
-
/* eslint-disable @typescript-eslint/ban-types, max-len */
|
|
28301
28267
|
|
|
28302
28268
|
|
|
28303
28269
|
|
|
@@ -28720,7 +28686,6 @@ const avatar_constants_cssClasses = {
|
|
|
28720
28686
|
const avatar_constants_strings = {
|
|
28721
28687
|
SHAPE: ['circle', 'square'],
|
|
28722
28688
|
SIZE: ['extra-extra-small', 'extra-small', 'small', 'default', 'medium', 'large', 'extra-large'],
|
|
28723
|
-
// eslint-disable-next-line max-len
|
|
28724
28689
|
COLOR: ['grey', 'red', 'pink', 'purple', 'violet', 'indigo', 'blue', 'light-blue', 'cyan', 'teal', 'green', 'light-green', 'lime', 'yellow', 'amber', 'orange', 'white'],
|
|
28725
28690
|
OVERLAP_FROM: ['start', 'end']
|
|
28726
28691
|
};
|
|
@@ -28747,8 +28712,8 @@ class AvatarFoundation extends foundation {
|
|
|
28747
28712
|
this._adapter.setFocusVisible(false);
|
|
28748
28713
|
};
|
|
28749
28714
|
}
|
|
28750
|
-
init() {}
|
|
28751
|
-
destroy() {}
|
|
28715
|
+
init() {}
|
|
28716
|
+
destroy() {}
|
|
28752
28717
|
handleImgLoadError() {
|
|
28753
28718
|
const {
|
|
28754
28719
|
onError
|
|
@@ -28957,7 +28922,6 @@ class Avatar extends BaseComponent {
|
|
|
28957
28922
|
}
|
|
28958
28923
|
}
|
|
28959
28924
|
render() {
|
|
28960
|
-
// eslint-disable-next-line max-len, no-unused-vars
|
|
28961
28925
|
const _a = this.props,
|
|
28962
28926
|
{
|
|
28963
28927
|
shape,
|
|
@@ -29103,7 +29067,6 @@ class AvatarGroup extends external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
29103
29067
|
return moreAvatar;
|
|
29104
29068
|
}
|
|
29105
29069
|
render() {
|
|
29106
|
-
// eslint-disable-next-line no-unused-vars
|
|
29107
29070
|
const _a = this.props,
|
|
29108
29071
|
{
|
|
29109
29072
|
children,
|
|
@@ -29221,7 +29184,6 @@ function getEasing(easing) {
|
|
|
29221
29184
|
if (name === 'cubic-bezier' || name === 'cubicBezier') {
|
|
29222
29185
|
return src_default()(...(args.length ? args : easingMap.linear));
|
|
29223
29186
|
} else {
|
|
29224
|
-
// eslint-disable-next-line eqeqeq
|
|
29225
29187
|
if (!name || typeof name !== 'string' || typeof name === 'string' && easingMap[name] == null) {
|
|
29226
29188
|
name = 'linear';
|
|
29227
29189
|
}
|
|
@@ -29263,12 +29225,10 @@ class Event_Event {
|
|
|
29263
29225
|
const callbacks = this._eventMap.get(event);
|
|
29264
29226
|
if (Array.isArray(callbacks) && callbacks.length) {
|
|
29265
29227
|
let index = -1;
|
|
29266
|
-
// eslint-disable-next-line max-depth
|
|
29267
29228
|
while ((index = callbacks.findIndex(cb => cb === callback)) > -1) {
|
|
29268
29229
|
callbacks.splice(index, 1);
|
|
29269
29230
|
}
|
|
29270
29231
|
}
|
|
29271
|
-
// eslint-disable-next-line eqeqeq
|
|
29272
29232
|
} else if (callback == null) {
|
|
29273
29233
|
this._eventMap.delete(event);
|
|
29274
29234
|
}
|
|
@@ -29304,7 +29264,6 @@ function shouldUseBezier(config) {
|
|
|
29304
29264
|
*
|
|
29305
29265
|
* @returns {boolean}
|
|
29306
29266
|
*/
|
|
29307
|
-
// eslint-disable-next-line max-len
|
|
29308
29267
|
function shouldStopAnimation(currentStyle, style, currentVelocity, startTime, nowTime) {
|
|
29309
29268
|
for (const key of Object.keys(style)) {
|
|
29310
29269
|
const styleValue = style[key];
|
|
@@ -29328,7 +29287,6 @@ function shouldStopAnimation(currentStyle, style, currentVelocity, startTime, no
|
|
|
29328
29287
|
return true;
|
|
29329
29288
|
}
|
|
29330
29289
|
;// CONCATENATED MODULE: ../semi-animation/lib/es/src/stripStyle.js
|
|
29331
|
-
/* eslint-disable no-restricted-syntax */
|
|
29332
29290
|
function stripStyle(style) {
|
|
29333
29291
|
const ret = {};
|
|
29334
29292
|
for (const key in style) {
|
|
@@ -29360,7 +29318,6 @@ const reusedTuple = [0, 0];
|
|
|
29360
29318
|
* @param {number} b
|
|
29361
29319
|
* @param {number} precision
|
|
29362
29320
|
*/
|
|
29363
|
-
// eslint-disable-next-line max-len
|
|
29364
29321
|
function stepper(secondPerFrame, x, v, destX, k, b, precision) {
|
|
29365
29322
|
// Spring stiffness, in kg / s^2
|
|
29366
29323
|
// for animations, destX is really spring length (spring at rest). initial
|
|
@@ -29462,9 +29419,6 @@ function wrapValue(val) {
|
|
|
29462
29419
|
return wrapped;
|
|
29463
29420
|
}
|
|
29464
29421
|
;// CONCATENATED MODULE: ../semi-animation/lib/es/src/Animation.js
|
|
29465
|
-
/* eslint-disable max-depth */
|
|
29466
|
-
/* eslint-disable eqeqeq */
|
|
29467
|
-
/* eslint-disable max-lines-per-function */
|
|
29468
29422
|
|
|
29469
29423
|
|
|
29470
29424
|
|
|
@@ -29842,7 +29796,6 @@ var Button_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
29842
29796
|
}
|
|
29843
29797
|
return t;
|
|
29844
29798
|
};
|
|
29845
|
-
/* eslint-disable react/destructuring-assignment */
|
|
29846
29799
|
|
|
29847
29800
|
|
|
29848
29801
|
|
|
@@ -29895,18 +29848,14 @@ class Button_Button extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
29895
29848
|
if (!(className && className.includes('-with-icon'))) {
|
|
29896
29849
|
xSemiProps['x-semi-prop'] = this.props['x-semi-children-alias'] || 'children';
|
|
29897
29850
|
}
|
|
29898
|
-
return (
|
|
29899
|
-
|
|
29900
|
-
|
|
29901
|
-
|
|
29902
|
-
|
|
29903
|
-
|
|
29904
|
-
|
|
29905
|
-
|
|
29906
|
-
className: `${prefixCls}-content`,
|
|
29907
|
-
onClick: e => disabled && e.stopPropagation()
|
|
29908
|
-
}, xSemiProps), children))
|
|
29909
|
-
);
|
|
29851
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", Object.assign({}, baseProps, {
|
|
29852
|
+
onClick: this.props.onClick,
|
|
29853
|
+
onMouseDown: this.props.onMouseDown,
|
|
29854
|
+
style: style
|
|
29855
|
+
}), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", Object.assign({
|
|
29856
|
+
className: `${prefixCls}-content`,
|
|
29857
|
+
onClick: e => disabled && e.stopPropagation()
|
|
29858
|
+
}, xSemiProps), children));
|
|
29910
29859
|
}
|
|
29911
29860
|
}
|
|
29912
29861
|
Button_Button.defaultProps = {
|
|
@@ -29953,7 +29902,6 @@ var iconButton_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
29953
29902
|
}
|
|
29954
29903
|
return t;
|
|
29955
29904
|
};
|
|
29956
|
-
/* eslint-disable eqeqeq */
|
|
29957
29905
|
|
|
29958
29906
|
|
|
29959
29907
|
|
|
@@ -30117,7 +30065,6 @@ class BackTop extends BaseComponent {
|
|
|
30117
30065
|
});
|
|
30118
30066
|
}
|
|
30119
30067
|
render() {
|
|
30120
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
30121
30068
|
const _a = this.props,
|
|
30122
30069
|
{
|
|
30123
30070
|
children,
|
|
@@ -30198,7 +30145,6 @@ class Badge extends external_root_React_commonjs2_react_commonjs_react_amd_react
|
|
|
30198
30145
|
} = this.context;
|
|
30199
30146
|
// DefaultPosition here, static can't get this
|
|
30200
30147
|
const defaultPosition = direction === 'rtl' ? 'leftTop' : 'rightTop';
|
|
30201
|
-
// eslint-disable-next-line max-len
|
|
30202
30148
|
const _a = this.props,
|
|
30203
30149
|
{
|
|
30204
30150
|
count,
|
|
@@ -30285,7 +30231,6 @@ class BannerFoundation extends foundation {
|
|
|
30285
30231
|
// EXTERNAL MODULE: ../semi-foundation/banner/banner.scss
|
|
30286
30232
|
var banner = __webpack_require__("9wFu");
|
|
30287
30233
|
;// CONCATENATED MODULE: ./banner/index.tsx
|
|
30288
|
-
/* eslint-disable max-len */
|
|
30289
30234
|
|
|
30290
30235
|
|
|
30291
30236
|
|
|
@@ -30456,7 +30401,6 @@ Banner.propTypes = {
|
|
|
30456
30401
|
bordered: (prop_types_default()).bool
|
|
30457
30402
|
};
|
|
30458
30403
|
Banner.defaultProps = {
|
|
30459
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
30460
30404
|
onClose: () => {},
|
|
30461
30405
|
type: 'info',
|
|
30462
30406
|
fullMode: true
|
|
@@ -30471,7 +30415,6 @@ const breadcrumb_constants_strings = {
|
|
|
30471
30415
|
};
|
|
30472
30416
|
|
|
30473
30417
|
;// CONCATENATED MODULE: ../semi-foundation/breadcrumb/foundation.ts
|
|
30474
|
-
/* eslint-disable prefer-const */
|
|
30475
30418
|
|
|
30476
30419
|
|
|
30477
30420
|
class BreadcrumbFoundation extends foundation {
|
|
@@ -30717,7 +30660,6 @@ BreadcrumbItem.defaultProps = {
|
|
|
30717
30660
|
};
|
|
30718
30661
|
;// CONCATENATED MODULE: ./breadcrumb/index.tsx
|
|
30719
30662
|
|
|
30720
|
-
/* eslint-disable max-len */
|
|
30721
30663
|
|
|
30722
30664
|
|
|
30723
30665
|
|
|
@@ -30777,7 +30719,6 @@ class Breadcrumb extends BaseComponent {
|
|
|
30777
30719
|
key: key,
|
|
30778
30720
|
active: idx === items.length - 1,
|
|
30779
30721
|
route: route._origin,
|
|
30780
|
-
// eslint-disable-next-line max-len
|
|
30781
30722
|
shouldRenderSeparator: !(shouldCollapse && (hasRenderMore || moreTypeIsPopover) && inCollapseArea)
|
|
30782
30723
|
}), renderItem ? renderItem(route._origin) : route.name);
|
|
30783
30724
|
});
|
|
@@ -34423,7 +34364,6 @@ const filterEvents = (events, start, end) => {
|
|
|
34423
34364
|
* @returns {arr}
|
|
34424
34365
|
* filter out event that is not in the week range
|
|
34425
34366
|
*/
|
|
34426
|
-
// eslint-disable-next-line max-len
|
|
34427
34367
|
const filterWeeklyEvents = (events, weekStart, weekStartsOn) => filterEvents(events, weekStart, addDays(endOfWeek(weekStart, {
|
|
34428
34368
|
weekStartsOn
|
|
34429
34369
|
}), 1));
|
|
@@ -34487,7 +34427,6 @@ const collectDailyEvents = events => {
|
|
|
34487
34427
|
return collections;
|
|
34488
34428
|
};
|
|
34489
34429
|
const renderDailyEvent = event => {
|
|
34490
|
-
// eslint-disable-next-line prefer-const
|
|
34491
34430
|
let {
|
|
34492
34431
|
start,
|
|
34493
34432
|
end,
|
|
@@ -34525,7 +34464,6 @@ class CalendarFoundation extends foundation {
|
|
|
34525
34464
|
constructor(adapter) {
|
|
34526
34465
|
super(Object.assign({}, adapter));
|
|
34527
34466
|
}
|
|
34528
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
34529
34467
|
init() {}
|
|
34530
34468
|
destroy() {
|
|
34531
34469
|
this.raf && cancelAnimationFrame(this.raf);
|
|
@@ -34894,7 +34832,7 @@ const calendar_constants_strings = {
|
|
|
34894
34832
|
// EXTERNAL MODULE: ../semi-foundation/calendar/calendar.scss
|
|
34895
34833
|
var calendar = __webpack_require__("uW5I");
|
|
34896
34834
|
;// CONCATENATED MODULE: ./calendar/dayCol.tsx
|
|
34897
|
-
/* eslint-disable
|
|
34835
|
+
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
|
|
34898
34836
|
|
|
34899
34837
|
|
|
34900
34838
|
|
|
@@ -35138,14 +35076,10 @@ class DayCalendar extends BaseComponent {
|
|
|
35138
35076
|
children,
|
|
35139
35077
|
key
|
|
35140
35078
|
} = event;
|
|
35141
|
-
return (
|
|
35142
|
-
|
|
35143
|
-
|
|
35144
|
-
|
|
35145
|
-
className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-allday`,
|
|
35146
|
-
key: key || `allDay-${ind}`
|
|
35147
|
-
}, children)
|
|
35148
|
-
);
|
|
35079
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
35080
|
+
className: `${calendar_constants_cssClasses.PREFIX}-event-item ${calendar_constants_cssClasses.PREFIX}-event-allday`,
|
|
35081
|
+
key: key || `allDay-${ind}`
|
|
35082
|
+
}, children);
|
|
35149
35083
|
});
|
|
35150
35084
|
return list;
|
|
35151
35085
|
};
|
|
@@ -35226,7 +35160,6 @@ class DayCalendar extends BaseComponent {
|
|
|
35226
35160
|
this.foundation.destroy();
|
|
35227
35161
|
}
|
|
35228
35162
|
render() {
|
|
35229
|
-
// eslint-disable-next-line max-len
|
|
35230
35163
|
const {
|
|
35231
35164
|
dateGridRender,
|
|
35232
35165
|
displayValue,
|
|
@@ -35581,7 +35514,6 @@ WeekCalendar.contextType = locale_context;
|
|
|
35581
35514
|
|
|
35582
35515
|
|
|
35583
35516
|
|
|
35584
|
-
// eslint-disable-next-line max-len
|
|
35585
35517
|
|
|
35586
35518
|
|
|
35587
35519
|
|
|
@@ -35756,15 +35688,11 @@ class monthCalendar extends BaseComponent {
|
|
|
35756
35688
|
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
35757
35689
|
}, "\u00A0", date), locale.datestring));
|
|
35758
35690
|
}
|
|
35759
|
-
return (
|
|
35760
|
-
|
|
35761
|
-
|
|
35762
|
-
|
|
35763
|
-
|
|
35764
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
35765
|
-
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
35766
|
-
}, date))
|
|
35767
|
-
);
|
|
35691
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
35692
|
+
className: `${monthCalendar_prefixCls}-date`
|
|
35693
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
35694
|
+
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
35695
|
+
}, date));
|
|
35768
35696
|
};
|
|
35769
35697
|
this.renderCusDateGrid = date => {
|
|
35770
35698
|
const {
|
|
@@ -35855,7 +35783,6 @@ class monthCalendar extends BaseComponent {
|
|
|
35855
35783
|
registerClickOutsideHandler: (key, cb) => {
|
|
35856
35784
|
const clickOutsideHandler = e => {
|
|
35857
35785
|
const cardInstance = this.cardRef && this.cardRef.get(key);
|
|
35858
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
35859
35786
|
const cardDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(cardInstance);
|
|
35860
35787
|
if (cardDom && !cardDom.contains(e.target)) {
|
|
35861
35788
|
cb();
|
|
@@ -35986,7 +35913,6 @@ monthCalendar.contextType = locale_context;
|
|
|
35986
35913
|
|
|
35987
35914
|
|
|
35988
35915
|
|
|
35989
|
-
// eslint-disable-next-line max-len
|
|
35990
35916
|
|
|
35991
35917
|
|
|
35992
35918
|
|
|
@@ -37241,7 +37167,6 @@ var carousel = __webpack_require__("sXY8");
|
|
|
37241
37167
|
;// CONCATENATED MODULE: ./carousel/index.tsx
|
|
37242
37168
|
|
|
37243
37169
|
|
|
37244
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
37245
37170
|
|
|
37246
37171
|
|
|
37247
37172
|
|
|
@@ -37576,7 +37501,6 @@ function treeUtil_isValid(val) {
|
|
|
37576
37501
|
* @param filteredShownKeys
|
|
37577
37502
|
* need expanded keys, provides `true` means all expanded
|
|
37578
37503
|
*/
|
|
37579
|
-
// eslint-disable-next-line max-len
|
|
37580
37504
|
function flattenTreeData(treeNodeList, expandedKeys) {
|
|
37581
37505
|
let filteredShownKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
37582
37506
|
const flattenList = [];
|
|
@@ -37599,7 +37523,6 @@ function flattenTreeData(treeNodeList, expandedKeys) {
|
|
|
37599
37523
|
flattenList.push(flattenNode);
|
|
37600
37524
|
}
|
|
37601
37525
|
// Loop treeNode children
|
|
37602
|
-
// eslint-disable-next-line max-len
|
|
37603
37526
|
if (expandedKeys.has(mergedKey) && (!filterSearch || !isBooleanFilteredShownKeys && filteredShownKeys.has(mergedKey))) {
|
|
37604
37527
|
flattenNode.children = flatten(treeNode.children || [], flattenNode);
|
|
37605
37528
|
} else {
|
|
@@ -37896,7 +37819,6 @@ function calcExpandedKeys() {
|
|
|
37896
37819
|
return new Set(keyList);
|
|
37897
37820
|
}
|
|
37898
37821
|
/* Calculate the expanded node by value */
|
|
37899
|
-
// eslint-disable-next-line max-len
|
|
37900
37822
|
function calcExpandedKeysForValues(value, keyEntities, isMultiple, valueEntities) {
|
|
37901
37823
|
const keys = findKeysForValues(value, valueEntities, isMultiple);
|
|
37902
37824
|
return new Set(findAncestorKeys(keys, keyEntities, false));
|
|
@@ -38004,7 +37926,6 @@ function getMotionKeys(eventKey, expandedKeys, keyEntities) {
|
|
|
38004
37926
|
getChild(eventKey);
|
|
38005
37927
|
return res;
|
|
38006
37928
|
}
|
|
38007
|
-
// eslint-disable-next-line max-len
|
|
38008
37929
|
function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKeys) {
|
|
38009
37930
|
const descendantKeys = findDescendantKeys([key], keyEntities, true);
|
|
38010
37931
|
const nodeItem = keyEntities[key];
|
|
@@ -38013,12 +37934,10 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
|
|
|
38013
37934
|
if (!node.parent) {
|
|
38014
37935
|
return;
|
|
38015
37936
|
}
|
|
38016
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
38017
37937
|
const {
|
|
38018
37938
|
key
|
|
38019
37939
|
} = node;
|
|
38020
37940
|
const siblingKeys = findSiblingKeys([key], keyEntities);
|
|
38021
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
38022
37941
|
const allChecked = siblingKeys.every(key => checkedKeys.has(key));
|
|
38023
37942
|
if (!allChecked) {
|
|
38024
37943
|
const ancestorKeys = findAncestorKeys([key], keyEntities, false);
|
|
@@ -38035,7 +37954,6 @@ function calcCheckedKeysForChecked(key, keyEntities, checkedKeys, halfCheckedKey
|
|
|
38035
37954
|
halfCheckedKeys
|
|
38036
37955
|
};
|
|
38037
37956
|
}
|
|
38038
|
-
// eslint-disable-next-line max-len
|
|
38039
37957
|
function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedKeys) {
|
|
38040
37958
|
const descendantKeys = findDescendantKeys([key], keyEntities, true);
|
|
38041
37959
|
const nodeItem = keyEntities[key];
|
|
@@ -38058,12 +37976,10 @@ function calcCheckedKeysForUnchecked(key, keyEntities, checkedKeys, halfCheckedK
|
|
|
38058
37976
|
return;
|
|
38059
37977
|
}
|
|
38060
37978
|
// Has a parent node, and the parent node is checked or halfChecked
|
|
38061
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
38062
37979
|
const {
|
|
38063
37980
|
key
|
|
38064
37981
|
} = node;
|
|
38065
37982
|
const siblingKeys = findSiblingKeys([key], keyEntities);
|
|
38066
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
38067
37983
|
const anyChecked = siblingKeys.some(key => checkedKeys.has(key) || halfCheckedKeys.has(key));
|
|
38068
37984
|
const ancestorKeys = findAncestorKeys([key], keyEntities, false);
|
|
38069
37985
|
// If there is checked or halfChecked in the sibling node, you need to change the parent node to halfChecked
|
|
@@ -38288,7 +38204,6 @@ function calcMergeType(autoMergeValue, leafOnly) {
|
|
|
38288
38204
|
|
|
38289
38205
|
|
|
38290
38206
|
|
|
38291
|
-
// eslint-disable-next-line max-len
|
|
38292
38207
|
class CascaderFoundation extends foundation {
|
|
38293
38208
|
constructor(adapter) {
|
|
38294
38209
|
super(Object.assign({}, adapter));
|
|
@@ -38323,7 +38238,6 @@ class CascaderFoundation extends foundation {
|
|
|
38323
38238
|
const valueProp = onChangeWithObject ? [] : 'value';
|
|
38324
38239
|
if (multiple) {
|
|
38325
38240
|
const valuePath = [];
|
|
38326
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
38327
38241
|
// @ts-ignore
|
|
38328
38242
|
item.forEach(checkedKey => {
|
|
38329
38243
|
const valuePathItem = this.getItemPropPath(checkedKey, valueProp);
|
|
@@ -38390,9 +38304,7 @@ class CascaderFoundation extends foundation {
|
|
|
38390
38304
|
if (isEmpty_default()(keyEntities[selectedKey])) {
|
|
38391
38305
|
if (includes_default()(selectedKey, 'not-exist-')) {
|
|
38392
38306
|
/* Get the value behind not-exist- */
|
|
38393
|
-
// eslint-disable-next-line prefer-destructuring
|
|
38394
38307
|
const targetValue = selectedKey.match(/not-exist-(\S*)/)[1];
|
|
38395
|
-
// eslint-disable-next-line max-depth
|
|
38396
38308
|
if (isEmpty_default()(keyEntities[targetValue])) {
|
|
38397
38309
|
cacheValue = targetValue;
|
|
38398
38310
|
} else {
|
|
@@ -39080,7 +38992,6 @@ class CascaderFoundation extends foundation {
|
|
|
39080
38992
|
return this.getFilteredData();
|
|
39081
38993
|
}
|
|
39082
38994
|
return Object.values(keyEntities).filter(item => item.parentKey === null && !item._notExist)
|
|
39083
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
39084
38995
|
// @ts-ignore
|
|
39085
38996
|
.sort((a, b) => parseInt(a.ind, 10) - parseInt(b.ind, 10));
|
|
39086
38997
|
}
|
|
@@ -39272,7 +39183,6 @@ class CheckboxFoundation extends foundation {
|
|
|
39272
39183
|
setChecked(checked) {
|
|
39273
39184
|
this._adapter.setNativeControlChecked(checked);
|
|
39274
39185
|
}
|
|
39275
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
39276
39186
|
destroy() {}
|
|
39277
39187
|
}
|
|
39278
39188
|
/* harmony default export */ const checkboxFoundation = (CheckboxFoundation);
|
|
@@ -39282,7 +39192,6 @@ const Context = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_
|
|
|
39282
39192
|
|
|
39283
39193
|
;// CONCATENATED MODULE: ./checkbox/checkboxInner.tsx
|
|
39284
39194
|
|
|
39285
|
-
/* eslint-disable no-nested-ternary */
|
|
39286
39195
|
|
|
39287
39196
|
|
|
39288
39197
|
|
|
@@ -39387,7 +39296,6 @@ var checkbox_checkbox = __webpack_require__("tdZr");
|
|
|
39387
39296
|
|
|
39388
39297
|
|
|
39389
39298
|
|
|
39390
|
-
/* eslint-disable max-len */
|
|
39391
39299
|
|
|
39392
39300
|
|
|
39393
39301
|
|
|
@@ -39720,13 +39628,11 @@ class CheckboxGroupFoundation extends foundation {
|
|
|
39720
39628
|
warning(true, 'Warning: [Semi CheckboxGroup] value should be an Array');
|
|
39721
39629
|
}
|
|
39722
39630
|
}
|
|
39723
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
39724
39631
|
destroy() {}
|
|
39725
39632
|
}
|
|
39726
39633
|
/* harmony default export */ const checkboxGroupFoundation = (CheckboxGroupFoundation);
|
|
39727
39634
|
;// CONCATENATED MODULE: ./checkbox/checkboxGroup.tsx
|
|
39728
39635
|
|
|
39729
|
-
/* eslint-disable max-len */
|
|
39730
39636
|
|
|
39731
39637
|
|
|
39732
39638
|
|
|
@@ -39867,7 +39773,6 @@ CheckboxGroup.propTypes = {
|
|
|
39867
39773
|
};
|
|
39868
39774
|
CheckboxGroup.defaultProps = {
|
|
39869
39775
|
disabled: false,
|
|
39870
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
39871
39776
|
onChange: () => {},
|
|
39872
39777
|
type: checkbox_constants_strings.TYPE_DEFAULT,
|
|
39873
39778
|
defaultValue: [],
|
|
@@ -40213,7 +40118,6 @@ Item.defaultProps = {
|
|
|
40213
40118
|
empty: false
|
|
40214
40119
|
};
|
|
40215
40120
|
;// CONCATENATED MODULE: ../semi-foundation/tag/constants.ts
|
|
40216
|
-
/* eslint-disable max-len */
|
|
40217
40121
|
|
|
40218
40122
|
const tag_constants_cssClasses = {
|
|
40219
40123
|
PREFIX: `${BASE_CLASS_PREFIX}-tag`
|
|
@@ -40237,7 +40141,6 @@ var tag_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
40237
40141
|
}
|
|
40238
40142
|
return t;
|
|
40239
40143
|
};
|
|
40240
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
40241
40144
|
|
|
40242
40145
|
|
|
40243
40146
|
|
|
@@ -40374,7 +40277,7 @@ class Tag extends external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
|
40374
40277
|
const wrapProps = clickable ? Object.assign(Object.assign({}, baseProps), a11yProps) : baseProps;
|
|
40375
40278
|
const closeIcon = closable ?
|
|
40376
40279
|
/*#__PURE__*/
|
|
40377
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
40280
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
40378
40281
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
40379
40282
|
className: `${tag_prefixCls}-close`,
|
|
40380
40283
|
onClick: e => this.close(e, children, tagKey)
|
|
@@ -40556,10 +40459,8 @@ class TagInputFoundation extends foundation {
|
|
|
40556
40459
|
const maxLen = Math.max(valueArr.length, inputArr.length);
|
|
40557
40460
|
for (let i = 0; i < maxLen; i++) {
|
|
40558
40461
|
// When the input length is increasing
|
|
40559
|
-
// eslint-disable-next-line max-len
|
|
40560
40462
|
if (!isUndefined_default()(valueArr[i]) && (isUndefined_default()(inputArr[i]) || valueArr[i].length > inputArr[i].length)) {
|
|
40561
40463
|
// When the input length exceeds maxLength
|
|
40562
|
-
// eslint-disable-next-line max-depth
|
|
40563
40464
|
if (valueArr[i].length > maxLength) {
|
|
40564
40465
|
allowChange = false;
|
|
40565
40466
|
isFunction_default()(onInputExceed) && onInputExceed(value);
|
|
@@ -42918,7 +42819,6 @@ class TagInput extends BaseComponent {
|
|
|
42918
42819
|
const prefixWrapperCls = classnames_default()(`${tagInput_prefixCls}-prefix`, {
|
|
42919
42820
|
[`${tagInput_prefixCls}-inset-label`]: insetLabel,
|
|
42920
42821
|
[`${tagInput_prefixCls}-prefix-text`]: labelNode && isString_default()(labelNode),
|
|
42921
|
-
// eslint-disable-next-line max-len
|
|
42922
42822
|
[`${tagInput_prefixCls}-prefix-icon`]: isSemiIcon(labelNode)
|
|
42923
42823
|
});
|
|
42924
42824
|
return (
|
|
@@ -42942,7 +42842,6 @@ class TagInput extends BaseComponent {
|
|
|
42942
42842
|
}
|
|
42943
42843
|
const suffixWrapperCls = classnames_default()(`${tagInput_prefixCls}-suffix`, {
|
|
42944
42844
|
[`${tagInput_prefixCls}-suffix-text`]: suffix && isString_default()(suffix),
|
|
42945
|
-
// eslint-disable-next-line max-len
|
|
42946
42845
|
[`${tagInput_prefixCls}-suffix-icon`]: isSemiIcon(suffix)
|
|
42947
42846
|
});
|
|
42948
42847
|
return (
|
|
@@ -44624,7 +44523,6 @@ class Collapse extends BaseComponent {
|
|
|
44624
44523
|
this.foundation.destroy();
|
|
44625
44524
|
}
|
|
44626
44525
|
render() {
|
|
44627
|
-
// eslint-disable-next-line max-len
|
|
44628
44526
|
const _a = this.props,
|
|
44629
44527
|
{
|
|
44630
44528
|
defaultActiveKey,
|
|
@@ -44754,8 +44652,6 @@ var has = __webpack_require__("1mr4");
|
|
|
44754
44652
|
|
|
44755
44653
|
|
|
44756
44654
|
|
|
44757
|
-
/* eslint-disable max-len */
|
|
44758
|
-
/* argus-disable unPkgSensitiveInfo */
|
|
44759
44655
|
const pathToArrayElem = path => {
|
|
44760
44656
|
const pathArray = toPath_default()(path);
|
|
44761
44657
|
// internal-issues:673
|
|
@@ -44802,7 +44698,6 @@ function cleanup(obj, path) {
|
|
|
44802
44698
|
// lodashRemove(target, (value, index, array) => index > lastIndex);
|
|
44803
44699
|
// }
|
|
44804
44700
|
// Delete object if its empty
|
|
44805
|
-
// eslint-disable-next-line
|
|
44806
44701
|
if (Array.isArray(target) && target.every(e => e == null)) {
|
|
44807
44702
|
unset_default()(obj, path);
|
|
44808
44703
|
} else if (isEmptyObject(target)) {
|
|
@@ -45054,8 +44949,6 @@ function isTimestamp(ts) {
|
|
|
45054
44949
|
// EXTERNAL MODULE: ../../node_modules/date-fns-tz/index.js
|
|
45055
44950
|
var date_fns_tz = __webpack_require__("NyOe");
|
|
45056
44951
|
;// CONCATENATED MODULE: ../semi-foundation/utils/date-fns-extra.ts
|
|
45057
|
-
/* eslint-disable max-len */
|
|
45058
|
-
/* eslint-disable eqeqeq */
|
|
45059
44952
|
|
|
45060
44953
|
|
|
45061
44954
|
/**
|
|
@@ -48674,8 +48567,6 @@ function isValidTimeZone(timeZone) {
|
|
|
48674
48567
|
|
|
48675
48568
|
|
|
48676
48569
|
|
|
48677
|
-
/* eslint-disable no-nested-ternary */
|
|
48678
|
-
/* eslint-disable max-len, max-depth, */
|
|
48679
48570
|
|
|
48680
48571
|
|
|
48681
48572
|
|
|
@@ -49051,7 +48942,6 @@ class DatePickerFoundation extends foundation {
|
|
|
49051
48942
|
* @param {String} input
|
|
49052
48943
|
* @param {Event} e
|
|
49053
48944
|
*/
|
|
49054
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
49055
48945
|
handleInputBlur() {
|
|
49056
48946
|
let input = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
49057
48947
|
let e = arguments.length > 1 ? arguments[1] : undefined;
|
|
@@ -49104,7 +48994,6 @@ class DatePickerFoundation extends foundation {
|
|
|
49104
48994
|
this._adapter.setRangeInputFocus(false);
|
|
49105
48995
|
this._adapter.notifyClear(e);
|
|
49106
48996
|
}
|
|
49107
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
49108
48997
|
handleRangeInputBlur(value, e) {}
|
|
49109
48998
|
// Parses input only after user returns
|
|
49110
48999
|
handleInputComplete() {
|
|
@@ -50024,7 +49913,6 @@ function getDefaultPickerDate(options) {
|
|
|
50024
49913
|
|
|
50025
49914
|
|
|
50026
49915
|
|
|
50027
|
-
/* eslint-disable max-len */
|
|
50028
49916
|
|
|
50029
49917
|
|
|
50030
49918
|
|
|
@@ -50041,9 +49929,7 @@ class inputFoundation_InputFoundation extends foundation {
|
|
|
50041
49929
|
constructor(adapter) {
|
|
50042
49930
|
super(Object.assign({}, adapter));
|
|
50043
49931
|
}
|
|
50044
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
50045
49932
|
init() {}
|
|
50046
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
50047
49933
|
destroy() {}
|
|
50048
49934
|
handleClick(e) {
|
|
50049
49935
|
this._adapter.notifyClick(e);
|
|
@@ -50406,8 +50292,6 @@ var dateInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
50406
50292
|
};
|
|
50407
50293
|
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
50408
50294
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
50409
|
-
/* eslint-disable max-lines-per-function */
|
|
50410
|
-
/* eslint-disable no-unused-vars */
|
|
50411
50295
|
|
|
50412
50296
|
|
|
50413
50297
|
|
|
@@ -50501,7 +50385,6 @@ class DateInput extends BaseComponent {
|
|
|
50501
50385
|
this.foundation.destroy();
|
|
50502
50386
|
}
|
|
50503
50387
|
formatText(value) {
|
|
50504
|
-
// eslint-disable-next-line max-len
|
|
50505
50388
|
return value && value.length ? this.foundation.formatShowText(value) : '';
|
|
50506
50389
|
}
|
|
50507
50390
|
renderRangePrefix() {
|
|
@@ -51240,7 +51123,6 @@ const getMonthTable = (month, weekStartsOn) => {
|
|
|
51240
51123
|
|
|
51241
51124
|
|
|
51242
51125
|
|
|
51243
|
-
/* eslint-disable max-len */
|
|
51244
51126
|
|
|
51245
51127
|
|
|
51246
51128
|
|
|
@@ -51420,7 +51302,6 @@ class MonthsGridFoundation extends foundation {
|
|
|
51420
51302
|
_initDateTimeRangePickerFormValue(values) {
|
|
51421
51303
|
this._initDateRangePickerFromValue(values, true);
|
|
51422
51304
|
}
|
|
51423
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
51424
51305
|
destroy() {}
|
|
51425
51306
|
/**
|
|
51426
51307
|
* sync change another panel month when change months from the else yam panel
|
|
@@ -52328,7 +52209,6 @@ class CalendarMonthFoundation extends foundation {
|
|
|
52328
52209
|
});
|
|
52329
52210
|
this._adapter.setWeekDays(weekdays);
|
|
52330
52211
|
}
|
|
52331
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
52332
52212
|
destroy() {}
|
|
52333
52213
|
handleClick(day) {
|
|
52334
52214
|
this._adapter.notifyDayClick(day);
|
|
@@ -52435,7 +52315,6 @@ function isBetween(day, _ref) {
|
|
|
52435
52315
|
|
|
52436
52316
|
|
|
52437
52317
|
/* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions */
|
|
52438
|
-
/* eslint-disable max-len */
|
|
52439
52318
|
|
|
52440
52319
|
|
|
52441
52320
|
|
|
@@ -52545,7 +52424,6 @@ class Month extends BaseComponent {
|
|
|
52545
52424
|
// The range selects the hover date, and the normal hover is .semi-datepicker-main: hover
|
|
52546
52425
|
const _isHoverDay = isSameDay_isSameDay(hoverDay, fullDate);
|
|
52547
52426
|
// When one is selected
|
|
52548
|
-
// eslint-disable-next-line one-var
|
|
52549
52427
|
let _isHoverAfterStart, _isHoverBeforeEnd, isSelectedStart, isSelectedEnd, isHoverDayAroundOneSelected;
|
|
52550
52428
|
if (rangeStart) {
|
|
52551
52429
|
isSelectedStart = isSameDay_isSameDay(fullDate, rangeStart);
|
|
@@ -52568,13 +52446,11 @@ class Month extends BaseComponent {
|
|
|
52568
52446
|
if (!_isDateRangeSelected && _isDateRangeAnySelected) {
|
|
52569
52447
|
isHoverDayAroundOneSelected = _isHoverDay;
|
|
52570
52448
|
}
|
|
52571
|
-
// eslint-disable-next-line one-var
|
|
52572
52449
|
let isHover;
|
|
52573
52450
|
if (!_isOffsetDateRangeAnyExist) {
|
|
52574
52451
|
isHover = _isHoverAfterStart || _isHoverBeforeEnd || _isHoverDay;
|
|
52575
52452
|
}
|
|
52576
52453
|
// Select all
|
|
52577
|
-
// eslint-disable-next-line one-var
|
|
52578
52454
|
let isInRange, isSelectedStartAfterHover, isSelectedEndBeforeHover, isHoverDayInStartSelection, isHoverDayInEndSelection, isHoverDayInRange;
|
|
52579
52455
|
if (_isDateRangeSelected) {
|
|
52580
52456
|
isInRange = isBetween(fullDate, {
|
|
@@ -53324,7 +53200,6 @@ class ScrollItem extends BaseComponent {
|
|
|
53324
53200
|
this.scrollToIndex = (selectedIndex, duration) => {
|
|
53325
53201
|
// move to selected item
|
|
53326
53202
|
duration = typeof duration === 'number' ? duration : scrollList_constants_numbers.DEFAULT_SCROLL_DURATION;
|
|
53327
|
-
// eslint-disable-next-line
|
|
53328
53203
|
selectedIndex = selectedIndex == null ? this.props.selectedIndex : selectedIndex;
|
|
53329
53204
|
// this.isWheelMode() && this.addClassToNode();
|
|
53330
53205
|
this.scrollToNode(this.selectedNode, duration);
|
|
@@ -53430,11 +53305,9 @@ class ScrollItem extends BaseComponent {
|
|
|
53430
53305
|
if (typeof transform === 'function') {
|
|
53431
53306
|
text = transform(item.value, item.text);
|
|
53432
53307
|
} else {
|
|
53433
|
-
// eslint-disable-next-line
|
|
53434
53308
|
text = item.text == null ? item.value : item.text;
|
|
53435
53309
|
}
|
|
53436
53310
|
} else {
|
|
53437
|
-
// eslint-disable-next-line
|
|
53438
53311
|
text = item.text == null ? item.value : item.text;
|
|
53439
53312
|
}
|
|
53440
53313
|
const events = {};
|
|
@@ -53872,8 +53745,6 @@ class ComboboxFoundation extends foundation {
|
|
|
53872
53745
|
/* harmony default export */ const ComboxFoundation = (ComboboxFoundation);
|
|
53873
53746
|
;// CONCATENATED MODULE: ./timePicker/Combobox.tsx
|
|
53874
53747
|
|
|
53875
|
-
/* eslint-disable max-len */
|
|
53876
|
-
/* eslint-disable react/no-did-update-set-state */
|
|
53877
53748
|
|
|
53878
53749
|
|
|
53879
53750
|
|
|
@@ -53906,7 +53777,6 @@ class Combobox extends BaseComponent {
|
|
|
53906
53777
|
value,
|
|
53907
53778
|
disabled
|
|
53908
53779
|
} = _ref;
|
|
53909
|
-
// eslint-disable-next-line prefer-const
|
|
53910
53780
|
let {
|
|
53911
53781
|
onChange,
|
|
53912
53782
|
use12Hours,
|
|
@@ -54178,9 +54048,7 @@ class YearAndMonthFoundation extends foundation {
|
|
|
54178
54048
|
constructor(adapter) {
|
|
54179
54049
|
super(Object.assign({}, adapter));
|
|
54180
54050
|
}
|
|
54181
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
54182
54051
|
init() {}
|
|
54183
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
54184
54052
|
destroy() {}
|
|
54185
54053
|
selectYear(item, panelType) {
|
|
54186
54054
|
// const year = item.value;
|
|
@@ -54296,7 +54164,6 @@ const getYears = (startYear, endYear) => {
|
|
|
54296
54164
|
|
|
54297
54165
|
|
|
54298
54166
|
|
|
54299
|
-
/* eslint-disable max-len */
|
|
54300
54167
|
|
|
54301
54168
|
|
|
54302
54169
|
|
|
@@ -54588,11 +54455,7 @@ YearAndMonth.defaultProps = {
|
|
|
54588
54455
|
;// CONCATENATED MODULE: ./datePicker/monthsGrid.tsx
|
|
54589
54456
|
|
|
54590
54457
|
|
|
54591
|
-
/* eslint-disable jsx-a11y/interactive-supports-focus
|
|
54592
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
54593
|
-
/* eslint-disable react/no-did-update-set-state */
|
|
54594
|
-
/* eslint-disable max-len */
|
|
54595
|
-
/* eslint-disable no-nested-ternary */
|
|
54458
|
+
/* eslint-disable jsx-a11y/interactive-supports-focus */
|
|
54596
54459
|
|
|
54597
54460
|
|
|
54598
54461
|
|
|
@@ -55355,9 +55218,6 @@ var datePicker_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
55355
55218
|
return t;
|
|
55356
55219
|
};
|
|
55357
55220
|
/* eslint-disable jsx-a11y/click-events-have-key-events,jsx-a11y/interactive-supports-focus */
|
|
55358
|
-
/* eslint-disable max-len */
|
|
55359
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
55360
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
55361
55221
|
|
|
55362
55222
|
|
|
55363
55223
|
|
|
@@ -56913,7 +56773,6 @@ var ModalContent_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
56913
56773
|
}
|
|
56914
56774
|
return t;
|
|
56915
56775
|
};
|
|
56916
|
-
/* eslint-disable eqeqeq */
|
|
56917
56776
|
|
|
56918
56777
|
|
|
56919
56778
|
|
|
@@ -56922,7 +56781,6 @@ var ModalContent_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
56922
56781
|
|
|
56923
56782
|
|
|
56924
56783
|
|
|
56925
|
-
// eslint-disable-next-line max-len
|
|
56926
56784
|
|
|
56927
56785
|
|
|
56928
56786
|
|
|
@@ -57212,7 +57070,6 @@ class ModalContent extends BaseComponent {
|
|
|
57212
57070
|
onClick: maskClosable ? this.onMaskClick : null,
|
|
57213
57071
|
onMouseUp: maskClosable ? this.onMaskMouseUp : null
|
|
57214
57072
|
}, this.props.contentExtraProps), this.getDialogElement()));
|
|
57215
|
-
// eslint-disable-next-line max-len
|
|
57216
57073
|
return containerContext && containerContext.Provider ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(containerContext.Provider, {
|
|
57217
57074
|
value: containerContext.value
|
|
57218
57075
|
}, elem) : elem;
|
|
@@ -57242,8 +57099,6 @@ var ConfirmModal_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
57242
57099
|
}
|
|
57243
57100
|
return t;
|
|
57244
57101
|
};
|
|
57245
|
-
/* eslint-disable react/destructuring-assignment */
|
|
57246
|
-
/* eslint-disable eqeqeq */
|
|
57247
57102
|
|
|
57248
57103
|
|
|
57249
57104
|
|
|
@@ -57345,7 +57200,6 @@ function confirm_confirm(props) {
|
|
|
57345
57200
|
}
|
|
57346
57201
|
for (let i = 0; i < destroyFns.length; i++) {
|
|
57347
57202
|
const fn = destroyFns[i];
|
|
57348
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
57349
57203
|
if (fn === close) {
|
|
57350
57204
|
destroyFns.splice(i, 1);
|
|
57351
57205
|
break;
|
|
@@ -57427,7 +57281,6 @@ var HookModal_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
57427
57281
|
};
|
|
57428
57282
|
|
|
57429
57283
|
|
|
57430
|
-
// eslint-disable-next-line max-len
|
|
57431
57284
|
const HookModal = (_a, ref) => {
|
|
57432
57285
|
var {
|
|
57433
57286
|
afterClose,
|
|
@@ -57472,12 +57325,10 @@ function usePatchElement() {
|
|
|
57472
57325
|
}
|
|
57473
57326
|
function useModal() {
|
|
57474
57327
|
const [elements, patchElement] = usePatchElement();
|
|
57475
|
-
// eslint-disable-next-line max-len
|
|
57476
57328
|
function getConfirmFunc(withFunc) {
|
|
57477
57329
|
return function hookConfirm(config) {
|
|
57478
57330
|
useModal_uuid += 1;
|
|
57479
57331
|
const modalRef = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createRef();
|
|
57480
|
-
// eslint-disable-next-line prefer-const
|
|
57481
57332
|
let closeFunc;
|
|
57482
57333
|
const modal = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(useModal_HookModal, {
|
|
57483
57334
|
key: `semi-modal-${useModal_uuid}`,
|
|
@@ -57520,7 +57371,6 @@ var Modal_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
57520
57371
|
}
|
|
57521
57372
|
return t;
|
|
57522
57373
|
};
|
|
57523
|
-
/* eslint-disable react/destructuring-assignment, prefer-const, @typescript-eslint/no-unused-vars */
|
|
57524
57374
|
|
|
57525
57375
|
|
|
57526
57376
|
|
|
@@ -59363,7 +59213,6 @@ var inputGroup_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
59363
59213
|
}
|
|
59364
59214
|
return t;
|
|
59365
59215
|
};
|
|
59366
|
-
/* eslint-disable max-len */
|
|
59367
59216
|
|
|
59368
59217
|
|
|
59369
59218
|
|
|
@@ -59375,7 +59224,6 @@ const inputGroup_prefixCls = input_constants_cssClasses.PREFIX;
|
|
|
59375
59224
|
const inputGroup_sizeSet = input_constants_strings.SIZE;
|
|
59376
59225
|
class inputGroup extends BaseComponent {
|
|
59377
59226
|
renderGroupWithLabel(inner) {
|
|
59378
|
-
// eslint-disable-next-line no-unused-vars
|
|
59379
59227
|
const _a = this.props,
|
|
59380
59228
|
{
|
|
59381
59229
|
size,
|
|
@@ -59628,7 +59476,6 @@ class TextAreaFoundation extends foundation {
|
|
|
59628
59476
|
init() {
|
|
59629
59477
|
this.setInitValue();
|
|
59630
59478
|
}
|
|
59631
|
-
// eslint-disable-next-line
|
|
59632
59479
|
destroy() {}
|
|
59633
59480
|
setInitValue() {
|
|
59634
59481
|
const {
|
|
@@ -59700,7 +59547,6 @@ class TextAreaFoundation extends foundation {
|
|
|
59700
59547
|
if (isNumber_default()(maxLength) && maxLength >= 0 && isFunction_default()(getValueLength) && isString_default()(value)) {
|
|
59701
59548
|
const valueLength = getValueLength(value);
|
|
59702
59549
|
if (valueLength > maxLength) {
|
|
59703
|
-
// eslint-disable-next-line max-len
|
|
59704
59550
|
console.warn('[Semi TextArea] The input character is truncated because the input length exceeds the maximum length limit');
|
|
59705
59551
|
const truncatedValue = this.handleTruncateValue(value, maxLength);
|
|
59706
59552
|
return truncatedValue;
|
|
@@ -59813,7 +59659,6 @@ var textarea_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
59813
59659
|
}
|
|
59814
59660
|
return t;
|
|
59815
59661
|
};
|
|
59816
|
-
/* eslint-disable no-unused-vars */
|
|
59817
59662
|
|
|
59818
59663
|
|
|
59819
59664
|
|
|
@@ -60145,9 +59990,6 @@ function minus(num1, num2) {
|
|
|
60145
59990
|
|
|
60146
59991
|
|
|
60147
59992
|
|
|
60148
|
-
/* eslint-disable max-len */
|
|
60149
|
-
/* eslint-disable no-param-reassign */
|
|
60150
|
-
/* eslint-disable eqeqeq */
|
|
60151
59993
|
|
|
60152
59994
|
|
|
60153
59995
|
|
|
@@ -60274,7 +60116,6 @@ class InputNumberFoundation extends foundation {
|
|
|
60274
60116
|
const dotBeginStr = dotIndex > -1 ? valueAfterParser.slice(dotIndex) : '';
|
|
60275
60117
|
formattedNum += dotBeginStr;
|
|
60276
60118
|
} else if (precLength < lengthAfterDot) {
|
|
60277
|
-
// eslint-disable-next-line max-depth
|
|
60278
60119
|
for (let i = 0; i < lengthAfterDot - precLength; i++) {
|
|
60279
60120
|
formattedNum += '0';
|
|
60280
60121
|
}
|
|
@@ -60342,7 +60183,6 @@ class InputNumberFoundation extends foundation {
|
|
|
60342
60183
|
}
|
|
60343
60184
|
|
|
60344
60185
|
if (willSetNum != null) {
|
|
60345
|
-
// eslint-disable-next-line max-depth
|
|
60346
60186
|
if (!this._isControlledComponent('value')) {
|
|
60347
60187
|
this._adapter.setNumber(willSetNum);
|
|
60348
60188
|
}
|
|
@@ -60702,11 +60542,6 @@ var inputNumber_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
60702
60542
|
return t;
|
|
60703
60543
|
};
|
|
60704
60544
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
60705
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
60706
|
-
/* eslint-disable no-unused-vars */
|
|
60707
|
-
/* eslint-disable max-depth */
|
|
60708
|
-
/* eslint-disable react/no-did-update-set-state */
|
|
60709
|
-
/* eslint-disable max-len */
|
|
60710
60545
|
|
|
60711
60546
|
|
|
60712
60547
|
|
|
@@ -61211,9 +61046,7 @@ const DEFAULT_TOGGLE_ICON = {
|
|
|
61211
61046
|
class NavItem {
|
|
61212
61047
|
constructor() {
|
|
61213
61048
|
let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
61214
|
-
// eslint-disable-next-line eqeqeq
|
|
61215
61049
|
if (options == null || typeof options !== 'object') {
|
|
61216
|
-
// eslint-disable-next-line no-param-reassign
|
|
61217
61050
|
options = {
|
|
61218
61051
|
text: options,
|
|
61219
61052
|
itemKey: options,
|
|
@@ -61246,8 +61079,6 @@ class NavItem {
|
|
|
61246
61079
|
}
|
|
61247
61080
|
;// CONCATENATED MODULE: ../semi-foundation/navigation/foundation.ts
|
|
61248
61081
|
|
|
61249
|
-
/* eslint-disable max-depth */
|
|
61250
|
-
/* eslint-disable max-len */
|
|
61251
61082
|
|
|
61252
61083
|
|
|
61253
61084
|
|
|
@@ -61405,7 +61236,7 @@ class NavigationFoundation extends foundation {
|
|
|
61405
61236
|
}
|
|
61406
61237
|
return [...willOpenKeySet];
|
|
61407
61238
|
}
|
|
61408
|
-
destroy() {}
|
|
61239
|
+
destroy() {}
|
|
61409
61240
|
selectLevelZeroParentKeys(itemKeysMap) {
|
|
61410
61241
|
const _itemKeysMap = isNullOrUndefined(itemKeysMap) ? this.getState('itemKeysMap') : itemKeysMap;
|
|
61411
61242
|
// console.log(itemKeysMap);
|
|
@@ -61495,7 +61326,7 @@ class SubNavFoundation extends foundation {
|
|
|
61495
61326
|
// this.log('invoke SubNavFoundation init()');
|
|
61496
61327
|
this._timer = null;
|
|
61497
61328
|
}
|
|
61498
|
-
destroy() {}
|
|
61329
|
+
destroy() {}
|
|
61499
61330
|
clearDelayTimer() {
|
|
61500
61331
|
if (this._timer) {
|
|
61501
61332
|
clearTimeout(this._timer);
|
|
@@ -61503,7 +61334,6 @@ class SubNavFoundation extends foundation {
|
|
|
61503
61334
|
}
|
|
61504
61335
|
}
|
|
61505
61336
|
isValidKey(itemKey) {
|
|
61506
|
-
// eslint-disable-next-line eqeqeq
|
|
61507
61337
|
return itemKey != null && (typeof itemKey === 'number' || typeof itemKey === 'string');
|
|
61508
61338
|
}
|
|
61509
61339
|
handleDropdownVisibleChange(visible) {
|
|
@@ -61590,7 +61420,6 @@ class itemFoundation_ItemFoundation extends foundation {
|
|
|
61590
61420
|
this._mounted = false;
|
|
61591
61421
|
}
|
|
61592
61422
|
isValidKey(itemKey) {
|
|
61593
|
-
// eslint-disable-next-line eqeqeq
|
|
61594
61423
|
return itemKey != null && (typeof itemKey === 'string' || typeof itemKey === 'number');
|
|
61595
61424
|
}
|
|
61596
61425
|
handleClick(e) {
|
|
@@ -61659,8 +61488,6 @@ const NavContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_rea
|
|
|
61659
61488
|
;// CONCATENATED MODULE: ./navigation/Item.tsx
|
|
61660
61489
|
|
|
61661
61490
|
|
|
61662
|
-
/* eslint-disable max-len */
|
|
61663
|
-
/* eslint-disable no-nested-ternary */
|
|
61664
61491
|
|
|
61665
61492
|
|
|
61666
61493
|
|
|
@@ -61923,8 +61750,6 @@ Item_NavItem.defaultProps = {
|
|
|
61923
61750
|
;// CONCATENATED MODULE: ./navigation/SubNav.tsx
|
|
61924
61751
|
|
|
61925
61752
|
|
|
61926
|
-
/* eslint-disable max-len */
|
|
61927
|
-
/* eslint-disable no-nested-ternary */
|
|
61928
61753
|
|
|
61929
61754
|
|
|
61930
61755
|
|
|
@@ -62482,7 +62307,6 @@ var navigation_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
62482
62307
|
}
|
|
62483
62308
|
return t;
|
|
62484
62309
|
};
|
|
62485
|
-
/* eslint-disable max-lines-per-function */
|
|
62486
62310
|
|
|
62487
62311
|
|
|
62488
62312
|
|
|
@@ -62855,7 +62679,6 @@ Nav.defaultProps = {
|
|
|
62855
62679
|
|
|
62856
62680
|
/* harmony default export */ const navigation_0 = (Nav);
|
|
62857
62681
|
;// CONCATENATED MODULE: ../semi-foundation/notification/notificationListFoundation.ts
|
|
62858
|
-
/* eslint-disable no-useless-constructor */
|
|
62859
62682
|
|
|
62860
62683
|
class NotificationListFoundation extends foundation {
|
|
62861
62684
|
addNotice(opts) {
|
|
@@ -62963,7 +62786,6 @@ var notice_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
62963
62786
|
}
|
|
62964
62787
|
return t;
|
|
62965
62788
|
};
|
|
62966
|
-
/* eslint-disable no-unreachable */
|
|
62967
62789
|
|
|
62968
62790
|
|
|
62969
62791
|
|
|
@@ -63084,39 +62906,35 @@ class Notice extends BaseComponent {
|
|
|
63084
62906
|
[`${notice_prefixCls}-rtl`]: direction === 'rtl'
|
|
63085
62907
|
});
|
|
63086
62908
|
const titleID = getUuidShort({});
|
|
63087
|
-
return (
|
|
63088
|
-
|
|
63089
|
-
|
|
63090
|
-
|
|
63091
|
-
|
|
63092
|
-
|
|
63093
|
-
|
|
63094
|
-
|
|
63095
|
-
|
|
63096
|
-
|
|
63097
|
-
|
|
63098
|
-
|
|
63099
|
-
|
|
63100
|
-
|
|
63101
|
-
|
|
63102
|
-
|
|
63103
|
-
|
|
63104
|
-
|
|
63105
|
-
|
|
63106
|
-
|
|
63107
|
-
|
|
63108
|
-
|
|
63109
|
-
|
|
63110
|
-
|
|
63111
|
-
|
|
63112
|
-
|
|
63113
|
-
|
|
63114
|
-
|
|
63115
|
-
|
|
63116
|
-
size: "small",
|
|
63117
|
-
onClick: this.close
|
|
63118
|
-
})))
|
|
63119
|
-
);
|
|
62909
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62910
|
+
className: wrapper,
|
|
62911
|
+
style: style,
|
|
62912
|
+
onMouseEnter: this.clearCloseTimer,
|
|
62913
|
+
onMouseLeave: this.startCloseTimer,
|
|
62914
|
+
onClick: this.notifyClick,
|
|
62915
|
+
"aria-labelledby": titleID,
|
|
62916
|
+
role: 'alert',
|
|
62917
|
+
onAnimationEnd: this.props.onAnimationEnd,
|
|
62918
|
+
onAnimationStart: this.props.onAnimationStart
|
|
62919
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", null, this.renderTypeIcon()), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62920
|
+
className: `${notice_prefixCls}-inner`
|
|
62921
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62922
|
+
className: `${notice_prefixCls}-content-wrapper`
|
|
62923
|
+
}, title ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62924
|
+
id: titleID,
|
|
62925
|
+
className: `${notice_prefixCls}-title`,
|
|
62926
|
+
"x-semi-prop": "title"
|
|
62927
|
+
}, title) : '', content ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
62928
|
+
className: `${notice_prefixCls}-content`,
|
|
62929
|
+
"x-semi-prop": "content"
|
|
62930
|
+
}, content) : ''), showClose && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(iconButton_0, {
|
|
62931
|
+
className: `${notice_prefixCls}-icon-close`,
|
|
62932
|
+
type: "tertiary",
|
|
62933
|
+
icon: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconClose, null),
|
|
62934
|
+
theme: "borderless",
|
|
62935
|
+
size: "small",
|
|
62936
|
+
onClick: this.close
|
|
62937
|
+
})));
|
|
63120
62938
|
}
|
|
63121
62939
|
}
|
|
63122
62940
|
Notice.contextType = context;
|
|
@@ -63241,6 +63059,7 @@ function useNotification_usePatchElement() {
|
|
|
63241
63059
|
const pos = obj[0];
|
|
63242
63060
|
const notices = obj[1];
|
|
63243
63061
|
// @ts-ignore
|
|
63062
|
+
// eslint-disable-next-line react/no-unknown-property
|
|
63244
63063
|
return Array.isArray(notices) && notices.length ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
63245
63064
|
key: pos,
|
|
63246
63065
|
className: classnames_default()(notification_constants_cssClasses.LIST),
|
|
@@ -63258,7 +63077,6 @@ function useNotification() {
|
|
|
63258
63077
|
const mergeConfig = Object.assign(Object.assign({}, config), {
|
|
63259
63078
|
id
|
|
63260
63079
|
});
|
|
63261
|
-
// eslint-disable-next-line prefer-const
|
|
63262
63080
|
let closeFunc;
|
|
63263
63081
|
const ref = ele => {
|
|
63264
63082
|
noticeRef.set(id, ele);
|
|
@@ -63792,7 +63610,6 @@ var overflowList = __webpack_require__("iETl");
|
|
|
63792
63610
|
|
|
63793
63611
|
|
|
63794
63612
|
|
|
63795
|
-
/* eslint-disable arrow-body-style */
|
|
63796
63613
|
|
|
63797
63614
|
|
|
63798
63615
|
|
|
@@ -66114,8 +65931,6 @@ const pagination_constants_numbers = {
|
|
|
66114
65931
|
};
|
|
66115
65932
|
|
|
66116
65933
|
;// CONCATENATED MODULE: ../semi-foundation/pagination/foundation.ts
|
|
66117
|
-
/* eslint-disable max-len */
|
|
66118
|
-
/* eslint-disable no-param-reassign */
|
|
66119
65934
|
|
|
66120
65935
|
|
|
66121
65936
|
class PaginationFoundation extends foundation {
|
|
@@ -66214,6 +66029,22 @@ class PaginationFoundation extends foundation {
|
|
|
66214
66029
|
this._adapter.setCurrentPage(targetPageIndex);
|
|
66215
66030
|
this._adapter.updatePageSize(pageSize);
|
|
66216
66031
|
}
|
|
66032
|
+
updateAllPageNumbers(total, pageSize) {
|
|
66033
|
+
// only need to update in small size
|
|
66034
|
+
const {
|
|
66035
|
+
size,
|
|
66036
|
+
hoverShowPageSelect,
|
|
66037
|
+
disabled
|
|
66038
|
+
} = this.getProps();
|
|
66039
|
+
if (size !== 'small' || !hoverShowPageSelect || disabled) {
|
|
66040
|
+
return;
|
|
66041
|
+
} else {
|
|
66042
|
+
const pageNumbers = Array.from({
|
|
66043
|
+
length: Math.ceil(total / pageSize)
|
|
66044
|
+
}, (v, i) => i + 1);
|
|
66045
|
+
this._adapter.updateAllPageNumbers(pageNumbers);
|
|
66046
|
+
}
|
|
66047
|
+
}
|
|
66217
66048
|
goPrev() {
|
|
66218
66049
|
const {
|
|
66219
66050
|
currentPage
|
|
@@ -66343,7 +66174,6 @@ class PaginationFoundation extends foundation {
|
|
|
66343
66174
|
this._adapter.notifyChange(newCurrentPage, newPageSize);
|
|
66344
66175
|
}
|
|
66345
66176
|
// TODO handle tab/enter events
|
|
66346
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
66347
66177
|
handleKeyDown() {}
|
|
66348
66178
|
// If pageSize is not in the Opts array, insert it
|
|
66349
66179
|
pageSizeInOpts() {
|
|
@@ -66417,8 +66247,6 @@ var foundation_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
66417
66247
|
}
|
|
66418
66248
|
return t;
|
|
66419
66249
|
};
|
|
66420
|
-
/* argus-disable unPkgSensitiveInfo */
|
|
66421
|
-
/* eslint-disable max-len */
|
|
66422
66250
|
|
|
66423
66251
|
|
|
66424
66252
|
|
|
@@ -66429,7 +66257,6 @@ class SelectFoundation extends foundation {
|
|
|
66429
66257
|
constructor(adapter) {
|
|
66430
66258
|
super(Object.assign({}, adapter));
|
|
66431
66259
|
// keyboard event listner
|
|
66432
|
-
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
66433
66260
|
this._keydownHandler = null;
|
|
66434
66261
|
}
|
|
66435
66262
|
init() {
|
|
@@ -67298,7 +67125,6 @@ class SelectFoundation extends foundation {
|
|
|
67298
67125
|
index = index - 1;
|
|
67299
67126
|
targetLabel = keys[index];
|
|
67300
67127
|
targetItem = selections.get(targetLabel);
|
|
67301
|
-
// eslint-disable-next-line
|
|
67302
67128
|
if (index == 0 && targetItem.disabled) {
|
|
67303
67129
|
isAllDisabled = true;
|
|
67304
67130
|
}
|
|
@@ -67338,7 +67164,6 @@ class SelectFoundation extends foundation {
|
|
|
67338
67164
|
}
|
|
67339
67165
|
}
|
|
67340
67166
|
_removeInternalKey(option) {
|
|
67341
|
-
// eslint-disable-next-line
|
|
67342
67167
|
let newOption = Object.assign({}, option);
|
|
67343
67168
|
delete newOption._parentGroup;
|
|
67344
67169
|
delete newOption._show;
|
|
@@ -67748,7 +67573,6 @@ const getOptionsFromGroup = selectChildren => {
|
|
|
67748
67573
|
_show: false
|
|
67749
67574
|
};
|
|
67750
67575
|
// avoid null
|
|
67751
|
-
// eslint-disable-next-line max-len
|
|
67752
67576
|
let childNodes = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(selectChildren);
|
|
67753
67577
|
childNodes = childNodes.filter(childNode => childNode && childNode.props);
|
|
67754
67578
|
let type = '';
|
|
@@ -67763,7 +67587,6 @@ const getOptionsFromGroup = selectChildren => {
|
|
|
67763
67587
|
} else if (child.type.isSelectOptionGroup) {
|
|
67764
67588
|
type = 'group';
|
|
67765
67589
|
// Avoid saving children (reactNode) by... removing other props from the group except children, causing performance problems
|
|
67766
|
-
// eslint-disable-next-line prefer-const
|
|
67767
67590
|
let _a = child.props,
|
|
67768
67591
|
{
|
|
67769
67592
|
children
|
|
@@ -67818,7 +67641,6 @@ var select_option_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
67818
67641
|
}
|
|
67819
67642
|
return t;
|
|
67820
67643
|
};
|
|
67821
|
-
/* eslint-disable max-len */
|
|
67822
67644
|
|
|
67823
67645
|
|
|
67824
67646
|
|
|
@@ -68028,8 +67850,6 @@ var select_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
68028
67850
|
}
|
|
68029
67851
|
return t;
|
|
68030
67852
|
};
|
|
68031
|
-
/* eslint-disable max-len */
|
|
68032
|
-
/* eslint-disable max-lines-per-function */
|
|
68033
67853
|
|
|
68034
67854
|
|
|
68035
67855
|
|
|
@@ -68171,7 +67991,6 @@ class Select extends BaseComponent {
|
|
|
68171
67991
|
focusIndex
|
|
68172
67992
|
});
|
|
68173
67993
|
},
|
|
68174
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
68175
67994
|
scrollToFocusOption: () => {}
|
|
68176
67995
|
};
|
|
68177
67996
|
const filterAdapter = {
|
|
@@ -68205,7 +68024,6 @@ class Select extends BaseComponent {
|
|
|
68205
68024
|
const clickOutsideHandler = e => {
|
|
68206
68025
|
const optionInstance = this.optionsRef && this.optionsRef.current;
|
|
68207
68026
|
const triggerDom = this.triggerRef && this.triggerRef.current;
|
|
68208
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
68209
68027
|
const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(optionInstance);
|
|
68210
68028
|
// let isInPanel = optionsDom && optionsDom.contains(e.target);
|
|
68211
68029
|
// let isInTrigger = triggerDom && triggerDom.contains(e.target);
|
|
@@ -68378,14 +68196,12 @@ class Select extends BaseComponent {
|
|
|
68378
68196
|
return this.state.isFocusInContainer;
|
|
68379
68197
|
},
|
|
68380
68198
|
updateScrollTop: index => {
|
|
68381
|
-
// eslint-disable-next-line max-len
|
|
68382
68199
|
let optionClassName = `.${select_prefixcls}-option-selected`;
|
|
68383
68200
|
if (index !== undefined) {
|
|
68384
68201
|
optionClassName = `.${select_prefixcls}-option:nth-child(${index})`;
|
|
68385
68202
|
}
|
|
68386
68203
|
let destNode = document.querySelector(`#${select_prefixcls}-${this.selectOptionListID} ${optionClassName}`);
|
|
68387
68204
|
if (Array.isArray(destNode)) {
|
|
68388
|
-
// eslint-disable-next-line prefer-destructuring
|
|
68389
68205
|
destNode = destNode[0];
|
|
68390
68206
|
}
|
|
68391
68207
|
if (destNode) {
|
|
@@ -69364,7 +69180,6 @@ var pagination_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
69364
69180
|
}
|
|
69365
69181
|
return t;
|
|
69366
69182
|
};
|
|
69367
|
-
/* eslint-disable max-len */
|
|
69368
69183
|
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
|
|
69369
69184
|
|
|
69370
69185
|
|
|
@@ -69389,18 +69204,25 @@ const {
|
|
|
69389
69204
|
class Pagination extends BaseComponent {
|
|
69390
69205
|
constructor(props) {
|
|
69391
69206
|
super(props);
|
|
69207
|
+
const total = props.total;
|
|
69208
|
+
const pageSize = props.pageSize || props.pageSizeOpts[0] || pagination_constants_numbers.DEFAULT_PAGE_SIZE; // Use pageSize first, use the first of pageSizeOpts when not, use the default value when none
|
|
69209
|
+
const shouldFillAllNumber = props.size === 'small' && props.hoverShowPageSelect && !props.disabled;
|
|
69392
69210
|
this.state = {
|
|
69393
|
-
total
|
|
69211
|
+
total,
|
|
69394
69212
|
showTotal: props.showTotal,
|
|
69395
69213
|
currentPage: props.currentPage || props.defaultCurrentPage,
|
|
69396
|
-
pageSize
|
|
69214
|
+
pageSize,
|
|
69397
69215
|
pageList: [],
|
|
69398
69216
|
prevDisabled: false,
|
|
69399
69217
|
nextDisabled: false,
|
|
69400
69218
|
restLeftPageList: [],
|
|
69401
69219
|
restRightPageList: [],
|
|
69402
|
-
quickJumpPage: ''
|
|
69220
|
+
quickJumpPage: '',
|
|
69221
|
+
allPageNumbers: shouldFillAllNumber ? Array.from({
|
|
69222
|
+
length: Math.ceil(total / pageSize)
|
|
69223
|
+
}, (v, i) => i + 1) : [] // only need to count in smallPage mode, when props.size = small
|
|
69403
69224
|
};
|
|
69225
|
+
|
|
69404
69226
|
this.foundation = new pagination_foundation(this.adapter);
|
|
69405
69227
|
this.renderDefaultPage = this.renderDefaultPage.bind(this);
|
|
69406
69228
|
this.renderSmallPage = this.renderSmallPage.bind(this);
|
|
@@ -69435,7 +69257,9 @@ class Pagination extends BaseComponent {
|
|
|
69435
69257
|
updateQuickJumpPage: quickJumpPage => this.setState({
|
|
69436
69258
|
quickJumpPage
|
|
69437
69259
|
}),
|
|
69438
|
-
|
|
69260
|
+
updateAllPageNumbers: allPageNumbers => this.setState({
|
|
69261
|
+
allPageNumbers
|
|
69262
|
+
}),
|
|
69439
69263
|
setCurrentPage: pageIndex => {
|
|
69440
69264
|
this.setState({
|
|
69441
69265
|
currentPage: pageIndex
|
|
@@ -69471,6 +69295,7 @@ class Pagination extends BaseComponent {
|
|
|
69471
69295
|
pageSize: this.props.pageSize
|
|
69472
69296
|
};
|
|
69473
69297
|
let pagerHasChanged = false;
|
|
69298
|
+
let allPageNumberNeedUpdate = false;
|
|
69474
69299
|
if (prevProps.currentPage !== this.props.currentPage) {
|
|
69475
69300
|
pagerHasChanged = true;
|
|
69476
69301
|
// this.foundation.updatePage(this.props.currentPage);
|
|
@@ -69478,13 +69303,18 @@ class Pagination extends BaseComponent {
|
|
|
69478
69303
|
|
|
69479
69304
|
if (prevProps.total !== this.props.total) {
|
|
69480
69305
|
pagerHasChanged = true;
|
|
69306
|
+
allPageNumberNeedUpdate = true;
|
|
69481
69307
|
}
|
|
69482
69308
|
if (prevProps.pageSize !== this.props.pageSize) {
|
|
69483
69309
|
pagerHasChanged = true;
|
|
69310
|
+
allPageNumberNeedUpdate = true;
|
|
69484
69311
|
}
|
|
69485
69312
|
if (pagerHasChanged) {
|
|
69486
69313
|
this.foundation.updatePage(pagerProps.currentPage, pagerProps.total, pagerProps.pageSize);
|
|
69487
69314
|
}
|
|
69315
|
+
if (allPageNumberNeedUpdate) {
|
|
69316
|
+
this.foundation.updateAllPageNumbers(pagerProps.total, pagerProps.pageSize);
|
|
69317
|
+
}
|
|
69488
69318
|
}
|
|
69489
69319
|
renderPrevBtn() {
|
|
69490
69320
|
const {
|
|
@@ -69687,6 +69517,13 @@ class Pagination extends BaseComponent {
|
|
|
69687
69517
|
}, row)
|
|
69688
69518
|
);
|
|
69689
69519
|
}
|
|
69520
|
+
renderSmallPageSelect(content) {
|
|
69521
|
+
const allPageNumbers = this.state.allPageNumbers;
|
|
69522
|
+
const pageList = this.renderRestPageList(allPageNumbers);
|
|
69523
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(popover_0, {
|
|
69524
|
+
content: pageList
|
|
69525
|
+
}, content);
|
|
69526
|
+
}
|
|
69690
69527
|
renderSmallPage(locale) {
|
|
69691
69528
|
const _a = this.props,
|
|
69692
69529
|
{
|
|
@@ -69710,24 +69547,18 @@ class Pagination extends BaseComponent {
|
|
|
69710
69547
|
if (totalPageNum < 2 && hideOnSinglePage && !showSizeChanger) {
|
|
69711
69548
|
return null;
|
|
69712
69549
|
}
|
|
69713
|
-
const pageNumbers = Array.from({
|
|
69714
|
-
length: Math.ceil(total / pageSize)
|
|
69715
|
-
}, (v, i) => i + 1);
|
|
69716
|
-
const pageList = this.renderRestPageList(pageNumbers);
|
|
69717
69550
|
const pageCls = classnames_default()({
|
|
69718
69551
|
[`${pagination_prefixCls}-item`]: true,
|
|
69719
69552
|
[`${pagination_prefixCls}-item-small`]: true,
|
|
69720
69553
|
[`${pagination_prefixCls}-item-all-disabled`]: disabled
|
|
69721
69554
|
});
|
|
69722
|
-
const
|
|
69555
|
+
const content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
69723
69556
|
className: pageCls
|
|
69724
69557
|
}, currentPage, "/", totalPageNum, " ");
|
|
69725
69558
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({
|
|
69726
69559
|
className: paginationCls,
|
|
69727
69560
|
style: style
|
|
69728
|
-
}, this.getDataAttr(rest)), this.renderPrevBtn(), hoverShowPageSelect && !disabled ?
|
|
69729
|
-
content: pageList
|
|
69730
|
-
}, page) : page, this.renderNextBtn(), this.renderQuickJump(locale));
|
|
69561
|
+
}, this.getDataAttr(rest)), this.renderPrevBtn(), hoverShowPageSelect && !disabled ? this.renderSmallPageSelect(content) : content, this.renderNextBtn(), this.renderQuickJump(locale));
|
|
69731
69562
|
}
|
|
69732
69563
|
renderDefaultPage(locale) {
|
|
69733
69564
|
const {
|
|
@@ -69828,7 +69659,6 @@ const popconfirm_constants_numbers = {
|
|
|
69828
69659
|
|
|
69829
69660
|
;// CONCATENATED MODULE: ../semi-foundation/popconfirm/popconfirmFoundation.ts
|
|
69830
69661
|
|
|
69831
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
69832
69662
|
|
|
69833
69663
|
|
|
69834
69664
|
class PopConfirmFoundation extends foundation {
|
|
@@ -69903,7 +69733,6 @@ var popconfirm_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
69903
69733
|
}
|
|
69904
69734
|
return t;
|
|
69905
69735
|
};
|
|
69906
|
-
/* eslint-disable max-len */
|
|
69907
69736
|
|
|
69908
69737
|
|
|
69909
69738
|
|
|
@@ -70416,7 +70245,6 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70416
70245
|
}
|
|
70417
70246
|
if (prevProps.percent !== this.props.percent) {
|
|
70418
70247
|
if (!this.props.motion) {
|
|
70419
|
-
// eslint-disable-next-line
|
|
70420
70248
|
this.setState({
|
|
70421
70249
|
percentNumber: this.props.percent
|
|
70422
70250
|
});
|
|
@@ -70785,7 +70613,6 @@ class RadioGroupFoundation extends foundation {
|
|
|
70785
70613
|
_setValue(value) {
|
|
70786
70614
|
this._adapter.setValue(value);
|
|
70787
70615
|
}
|
|
70788
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
70789
70616
|
destroy() {}
|
|
70790
70617
|
}
|
|
70791
70618
|
;// CONCATENATED MODULE: ../semi-foundation/radio/radioFoundation.ts
|
|
@@ -70875,7 +70702,6 @@ class RadioInnerFoundation extends foundation {
|
|
|
70875
70702
|
this._adapter.notifyChange(cbValue);
|
|
70876
70703
|
}
|
|
70877
70704
|
}
|
|
70878
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
70879
70705
|
destroy() {}
|
|
70880
70706
|
}
|
|
70881
70707
|
;// CONCATENATED MODULE: ./radio/context.ts
|
|
@@ -71020,7 +70846,6 @@ var radio_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
71020
70846
|
}
|
|
71021
70847
|
return t;
|
|
71022
70848
|
};
|
|
71023
|
-
/* eslint-disable prefer-destructuring */
|
|
71024
70849
|
|
|
71025
70850
|
|
|
71026
70851
|
|
|
@@ -71469,7 +71294,6 @@ const rating_constants_strings = {
|
|
|
71469
71294
|
// EXTERNAL MODULE: ../semi-foundation/rating/rating.scss
|
|
71470
71295
|
var rating = __webpack_require__("FII7");
|
|
71471
71296
|
;// CONCATENATED MODULE: ../semi-foundation/rating/foundation.ts
|
|
71472
|
-
/* eslint-disable no-param-reassign */
|
|
71473
71297
|
|
|
71474
71298
|
|
|
71475
71299
|
class RatingFoundation extends foundation {
|
|
@@ -72079,7 +71903,6 @@ class Rating extends BaseComponent {
|
|
|
72079
71903
|
},
|
|
72080
71904
|
getStarDOM: index => {
|
|
72081
71905
|
const instance = this.stars && this.stars[index];
|
|
72082
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
72083
71906
|
return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(instance);
|
|
72084
71907
|
},
|
|
72085
71908
|
notifyHoverChange: (hoverValue, clearedValue) => {
|
|
@@ -72478,7 +72301,6 @@ var sideSheet_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
72478
72301
|
}
|
|
72479
72302
|
return t;
|
|
72480
72303
|
};
|
|
72481
|
-
/* eslint-disable no-nested-ternary */
|
|
72482
72304
|
|
|
72483
72305
|
|
|
72484
72306
|
|
|
@@ -72773,9 +72595,6 @@ const touchEventPolyfill = (touch, touchEvent) => {
|
|
|
72773
72595
|
};
|
|
72774
72596
|
/* harmony default export */ const touchPolyfill = (touchEventPolyfill);
|
|
72775
72597
|
;// CONCATENATED MODULE: ../semi-foundation/slider/foundation.ts
|
|
72776
|
-
/* eslint-disable no-param-reassign */
|
|
72777
|
-
/* eslint-disable max-len */
|
|
72778
|
-
/* eslint-disable no-nested-ternary */
|
|
72779
72598
|
|
|
72780
72599
|
|
|
72781
72600
|
|
|
@@ -72932,7 +72751,6 @@ class SliderFoundation extends foundation {
|
|
|
72932
72751
|
startPos = vertical ? sliderY : sliderX;
|
|
72933
72752
|
}
|
|
72934
72753
|
// startPos = chooseMovePos === 'max' && isDrag ? currentPos[0] : startPos;
|
|
72935
|
-
// eslint-disable-next-line one-var
|
|
72936
72754
|
let endPos;
|
|
72937
72755
|
if (vertical && verticalReverse) {
|
|
72938
72756
|
endPos = sliderY;
|
|
@@ -72988,8 +72806,6 @@ class SliderFoundation extends foundation {
|
|
|
72988
72806
|
} else {
|
|
72989
72807
|
stepValue = (pos - startPos) / len * (max - min) + min;
|
|
72990
72808
|
}
|
|
72991
|
-
// debugger
|
|
72992
|
-
// eslint-disable-next-line one-var
|
|
72993
72809
|
let compareValue;
|
|
72994
72810
|
if (range) {
|
|
72995
72811
|
compareValue = isMin ? currentValue[0] : currentValue[1];
|
|
@@ -73392,7 +73208,6 @@ class SliderFoundation extends foundation {
|
|
|
73392
73208
|
handlePrevent(event);
|
|
73393
73209
|
}
|
|
73394
73210
|
};
|
|
73395
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
73396
73211
|
this.onFocus = (e, handler) => {
|
|
73397
73212
|
handlePrevent(e);
|
|
73398
73213
|
const {
|
|
@@ -73541,8 +73356,6 @@ var slider_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
73541
73356
|
}
|
|
73542
73357
|
return t;
|
|
73543
73358
|
};
|
|
73544
|
-
/* eslint-disable max-lines-per-function */
|
|
73545
|
-
/* eslint-disable react/no-find-dom-node */
|
|
73546
73359
|
|
|
73547
73360
|
|
|
73548
73361
|
|
|
@@ -73863,7 +73676,6 @@ class Slider extends BaseComponent {
|
|
|
73863
73676
|
value = this.props.defaultValue;
|
|
73864
73677
|
}
|
|
73865
73678
|
this.state = {
|
|
73866
|
-
// eslint-disable-next-line no-nested-ternary
|
|
73867
73679
|
currentValue: value ? value : this.props.range ? [0, 0] : 0,
|
|
73868
73680
|
min: this.props.min || 0,
|
|
73869
73681
|
max: this.props.max || 0,
|
|
@@ -74939,7 +74751,6 @@ class SwitchFoundation extends foundation {
|
|
|
74939
74751
|
this._adapter.notifyChange(checked, e);
|
|
74940
74752
|
}
|
|
74941
74753
|
}
|
|
74942
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
74943
74754
|
destroy() {}
|
|
74944
74755
|
}
|
|
74945
74756
|
;// CONCATENATED MODULE: ../semi-foundation/switch/constants.ts
|
|
@@ -74975,7 +74786,6 @@ var switch_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
74975
74786
|
}
|
|
74976
74787
|
return t;
|
|
74977
74788
|
};
|
|
74978
|
-
/* eslint-disable max-len */
|
|
74979
74789
|
|
|
74980
74790
|
|
|
74981
74791
|
|
|
@@ -75150,7 +74960,6 @@ var filter_default = /*#__PURE__*/__webpack_require__.n(lodash_filter);
|
|
|
75150
74960
|
var isEqualWith = __webpack_require__("6OdC");
|
|
75151
74961
|
var isEqualWith_default = /*#__PURE__*/__webpack_require__.n(isEqualWith);
|
|
75152
74962
|
;// CONCATENATED MODULE: ../semi-foundation/table/constants.ts
|
|
75153
|
-
/* eslint-disable max-len */
|
|
75154
74963
|
|
|
75155
74964
|
const table_constants_cssClasses = {
|
|
75156
74965
|
PREFIX: `${BASE_CLASS_PREFIX}-table`,
|
|
@@ -75313,9 +75122,6 @@ class Logger {
|
|
|
75313
75122
|
|
|
75314
75123
|
|
|
75315
75124
|
|
|
75316
|
-
/* eslint-disable max-len */
|
|
75317
|
-
/* eslint-disable no-param-reassign */
|
|
75318
|
-
/* eslint-disable eqeqeq */
|
|
75319
75125
|
|
|
75320
75126
|
|
|
75321
75127
|
|
|
@@ -75862,13 +75668,6 @@ function withOrderSort(fn) {
|
|
|
75862
75668
|
|
|
75863
75669
|
|
|
75864
75670
|
|
|
75865
|
-
/* eslint-disable prefer-destructuring */
|
|
75866
|
-
/* eslint-disable max-depth */
|
|
75867
|
-
/* eslint-disable max-nested-callbacks */
|
|
75868
|
-
/* eslint-disable max-len */
|
|
75869
|
-
/* eslint-disable no-param-reassign */
|
|
75870
|
-
/* eslint-disable eqeqeq */
|
|
75871
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
75872
75671
|
|
|
75873
75672
|
|
|
75874
75673
|
|
|
@@ -76683,7 +76482,6 @@ class TableFoundation extends foundation {
|
|
|
76683
76482
|
toggleShowFilter(dataIndex, visible) {
|
|
76684
76483
|
let filterObj = this.getQuery(dataIndex);
|
|
76685
76484
|
const filterDropdownVisible = visible;
|
|
76686
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76687
76485
|
filterObj = Object.assign(Object.assign({}, filterObj), {
|
|
76688
76486
|
filterDropdownVisible
|
|
76689
76487
|
});
|
|
@@ -76883,7 +76681,6 @@ function getColumns(children) {
|
|
|
76883
76681
|
}
|
|
76884
76682
|
;// CONCATENATED MODULE: ./table/table-context.ts
|
|
76885
76683
|
|
|
76886
|
-
/* eslint-disable max-len */
|
|
76887
76684
|
|
|
76888
76685
|
const TableContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({
|
|
76889
76686
|
headWidths: [],
|
|
@@ -76941,7 +76738,6 @@ class TableSelectionCellFoundation extends foundation {
|
|
|
76941
76738
|
}
|
|
76942
76739
|
;// CONCATENATED MODULE: ./table/ColumnSelection.tsx
|
|
76943
76740
|
|
|
76944
|
-
/* eslint-disable max-len */
|
|
76945
76741
|
|
|
76946
76742
|
|
|
76947
76743
|
|
|
@@ -77015,7 +76811,6 @@ TableSelectionCell.defaultProps = {
|
|
|
77015
76811
|
;// CONCATENATED MODULE: ./table/TablePagination.tsx
|
|
77016
76812
|
|
|
77017
76813
|
|
|
77018
|
-
/* eslint-disable max-len */
|
|
77019
76814
|
|
|
77020
76815
|
|
|
77021
76816
|
|
|
@@ -77053,8 +76848,6 @@ TablePagination.defaultProps = {
|
|
|
77053
76848
|
};
|
|
77054
76849
|
;// CONCATENATED MODULE: ./table/ColumnFilter.tsx
|
|
77055
76850
|
|
|
77056
|
-
/* eslint-disable no-nested-ternary */
|
|
77057
|
-
/* eslint-disable eqeqeq */
|
|
77058
76851
|
|
|
77059
76852
|
|
|
77060
76853
|
|
|
@@ -77356,7 +77149,6 @@ class ColGroup extends (external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
77356
77149
|
prefixCls,
|
|
77357
77150
|
components
|
|
77358
77151
|
} = this.props;
|
|
77359
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
77360
77152
|
const ColGroup = get_default()(components, 'colgroup.wrapper', 'colgroup');
|
|
77361
77153
|
const Col = get_default()(components, 'colgroup.col', 'col');
|
|
77362
77154
|
const cols = flattenColumns(columns).map((column, idx) => {
|
|
@@ -77407,7 +77199,6 @@ var TableHeaderRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
77407
77199
|
}
|
|
77408
77200
|
return t;
|
|
77409
77201
|
};
|
|
77410
|
-
/* eslint-disable eqeqeq */
|
|
77411
77202
|
|
|
77412
77203
|
|
|
77413
77204
|
|
|
@@ -77587,7 +77378,6 @@ TableHeaderRow.defaultProps = {
|
|
|
77587
77378
|
;// CONCATENATED MODULE: ./table/TableHeader.tsx
|
|
77588
77379
|
|
|
77589
77380
|
|
|
77590
|
-
/* eslint-disable max-len */
|
|
77591
77381
|
|
|
77592
77382
|
|
|
77593
77383
|
|
|
@@ -77596,7 +77386,6 @@ TableHeaderRow.defaultProps = {
|
|
|
77596
77386
|
|
|
77597
77387
|
function parseHeaderRows(columns) {
|
|
77598
77388
|
const rows = [];
|
|
77599
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
77600
77389
|
function fillRowCells(columns, colIndex) {
|
|
77601
77390
|
let parents = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
77602
77391
|
let rowIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
@@ -77664,7 +77453,6 @@ function parseHeaderRows(columns) {
|
|
|
77664
77453
|
for (let rowIndex = 0; rowIndex < rowCount; rowIndex += 1) {
|
|
77665
77454
|
rows[rowIndex].forEach(cell => {
|
|
77666
77455
|
if (!('rowSpan' in cell) && !cell.hasSubColumns) {
|
|
77667
|
-
// eslint-disable-next-line no-param-reassign
|
|
77668
77456
|
cell.rowSpan = rowCount - rowIndex;
|
|
77669
77457
|
}
|
|
77670
77458
|
});
|
|
@@ -77735,7 +77523,6 @@ TableHeader.defaultProps = {
|
|
|
77735
77523
|
;// CONCATENATED MODULE: ./table/HeadTable.tsx
|
|
77736
77524
|
|
|
77737
77525
|
|
|
77738
|
-
/* eslint-disable max-len */
|
|
77739
77526
|
|
|
77740
77527
|
|
|
77741
77528
|
|
|
@@ -77866,7 +77653,6 @@ class TableBodyFoundation extends foundation {
|
|
|
77866
77653
|
this._adapter.setCachedExpandBtnShouldInRow(cachedExpandBtnShouldInRow);
|
|
77867
77654
|
if (!isObject_default()(newExpandRelatedProps) && !newExpandRelatedProps) {
|
|
77868
77655
|
const expandRelatedProps = table_constants_strings.EXPAND_RELATED_PROPS;
|
|
77869
|
-
// eslint-disable-next-line no-param-reassign
|
|
77870
77656
|
newExpandRelatedProps = expandRelatedProps.map(key => get_default()(props, key, undefined));
|
|
77871
77657
|
}
|
|
77872
77658
|
this._adapter.setCachedExpandRelatedProps(newExpandRelatedProps);
|
|
@@ -78105,7 +77891,6 @@ function shallowEqualObjects(objA, objB) {
|
|
|
78105
77891
|
}
|
|
78106
77892
|
;// CONCATENATED MODULE: ../semi-foundation/table/tableRowFoundation.ts
|
|
78107
77893
|
|
|
78108
|
-
// eslint-disable-next-line max-len
|
|
78109
77894
|
class TableRowFoundation extends foundation {
|
|
78110
77895
|
handleClick(e) {
|
|
78111
77896
|
const {
|
|
@@ -78140,8 +77925,6 @@ class TableCellFoundation extends foundation {
|
|
|
78140
77925
|
|
|
78141
77926
|
|
|
78142
77927
|
|
|
78143
|
-
/* eslint-disable prefer-destructuring */
|
|
78144
|
-
/* eslint-disable eqeqeq */
|
|
78145
77928
|
|
|
78146
77929
|
|
|
78147
77930
|
|
|
@@ -78325,7 +78108,6 @@ class TableCell extends BaseComponent {
|
|
|
78325
78108
|
}
|
|
78326
78109
|
text = render(text, record, index, renderOptions);
|
|
78327
78110
|
if (isInvalidRenderCellText(text)) {
|
|
78328
|
-
// eslint-disable-next-line no-param-reassign
|
|
78329
78111
|
tdProps = text.props ? merge_default()(tdProps, text.props) : tdProps;
|
|
78330
78112
|
colSpan = tdProps.colSpan;
|
|
78331
78113
|
rowSpan = tdProps.rowSpan;
|
|
@@ -78507,8 +78289,6 @@ var BaseRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
78507
78289
|
}
|
|
78508
78290
|
return t;
|
|
78509
78291
|
};
|
|
78510
|
-
/* eslint-disable max-len */
|
|
78511
|
-
/* eslint-disable eqeqeq */
|
|
78512
78292
|
|
|
78513
78293
|
|
|
78514
78294
|
|
|
@@ -78830,7 +78610,6 @@ var ExpandedRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
78830
78610
|
}
|
|
78831
78611
|
return t;
|
|
78832
78612
|
};
|
|
78833
|
-
/* eslint-disable max-len */
|
|
78834
78613
|
|
|
78835
78614
|
|
|
78836
78615
|
|
|
@@ -78874,7 +78653,6 @@ class TableExpandedRow extends external_root_React_commonjs2_react_commonjs_reac
|
|
|
78874
78653
|
} else if ( /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(cell)) {
|
|
78875
78654
|
children = cell;
|
|
78876
78655
|
} else if (cell && Object.prototype.toString.call(cell) === '[object Object]') {
|
|
78877
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
78878
78656
|
const _a = cell,
|
|
78879
78657
|
{
|
|
78880
78658
|
children: cellChildren,
|
|
@@ -78961,9 +78739,6 @@ var SectionRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
78961
78739
|
}
|
|
78962
78740
|
return t;
|
|
78963
78741
|
};
|
|
78964
|
-
/* eslint-disable max-len */
|
|
78965
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
78966
|
-
/* eslint-disable eqeqeq */
|
|
78967
78742
|
|
|
78968
78743
|
|
|
78969
78744
|
|
|
@@ -79149,9 +78924,6 @@ var Body_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
79149
78924
|
}
|
|
79150
78925
|
return t;
|
|
79151
78926
|
};
|
|
79152
|
-
/* eslint-disable eqeqeq */
|
|
79153
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
79154
|
-
/* eslint-disable max-len */
|
|
79155
78927
|
|
|
79156
78928
|
|
|
79157
78929
|
|
|
@@ -79265,7 +79037,6 @@ class Body extends BaseComponent {
|
|
|
79265
79037
|
flattenedColumns
|
|
79266
79038
|
} = this.context;
|
|
79267
79039
|
const virtualizedItem = get_default()(virtualizedData, [index], {});
|
|
79268
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
79269
79040
|
const {
|
|
79270
79041
|
key,
|
|
79271
79042
|
parentKeys,
|
|
@@ -79284,7 +79055,6 @@ class Body extends BaseComponent {
|
|
|
79284
79055
|
index,
|
|
79285
79056
|
expandBtnShouldInRow
|
|
79286
79057
|
});
|
|
79287
|
-
// eslint-disable-next-line no-nested-ternary
|
|
79288
79058
|
return sectionRow ? this.renderSectionRow(props) : expandedRow ? this.renderExpandedRow(props) : this.renderBaseRow(props);
|
|
79289
79059
|
};
|
|
79290
79060
|
// virtualized List innerElementType
|
|
@@ -79309,14 +79079,12 @@ class Body extends BaseComponent {
|
|
|
79309
79079
|
children
|
|
79310
79080
|
} = props,
|
|
79311
79081
|
rest = Body_rest(props, ["children"]);
|
|
79312
|
-
// eslint-disable-next-line react/no-this-in-sfc
|
|
79313
79082
|
const {
|
|
79314
79083
|
handleWheel,
|
|
79315
79084
|
prefixCls,
|
|
79316
79085
|
emptySlot,
|
|
79317
79086
|
dataSource
|
|
79318
79087
|
} = this.props;
|
|
79319
|
-
// eslint-disable-next-line react/no-this-in-sfc
|
|
79320
79088
|
const tableWidth = this.getVirtualizedRowWidth();
|
|
79321
79089
|
const tableCls = classnames_default()(`${prefixCls}`, `${prefixCls}-fixed`);
|
|
79322
79090
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({}, rest, {
|
|
@@ -79330,7 +79098,6 @@ class Body extends BaseComponent {
|
|
|
79330
79098
|
}
|
|
79331
79099
|
},
|
|
79332
79100
|
onScroll: function () {
|
|
79333
|
-
// eslint-disable-next-line react/no-this-in-sfc
|
|
79334
79101
|
_this.handleVirtualizedBodyScroll(...arguments);
|
|
79335
79102
|
if (rest.onScroll) {
|
|
79336
79103
|
rest.onScroll(...arguments);
|
|
@@ -79894,15 +79661,7 @@ var Table_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
79894
79661
|
}
|
|
79895
79662
|
return t;
|
|
79896
79663
|
};
|
|
79897
|
-
/* eslint-disable no-nested-ternary */
|
|
79898
|
-
/* eslint-disable prefer-const */
|
|
79899
|
-
/* eslint-disable prefer-destructuring */
|
|
79900
|
-
/* eslint-disable no-shadow */
|
|
79901
|
-
/* eslint-disable no-param-reassign */
|
|
79902
|
-
/* eslint-disable max-len */
|
|
79903
79664
|
/* eslint-disable react/no-did-update-set-state */
|
|
79904
|
-
/* eslint-disable eqeqeq */
|
|
79905
|
-
/* eslint-disable max-lines-per-function */
|
|
79906
79665
|
|
|
79907
79666
|
|
|
79908
79667
|
|
|
@@ -80735,7 +80494,6 @@ class Table extends BaseComponent {
|
|
|
80735
80494
|
} = this.props;
|
|
80736
80495
|
const childrenColumnName = 'children';
|
|
80737
80496
|
let columns = cloneDeep(cachedColumns);
|
|
80738
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
80739
80497
|
const addFns = function () {
|
|
80740
80498
|
let columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
80741
80499
|
if (Array.isArray(columns) && columns.length) {
|
|
@@ -81012,7 +80770,6 @@ class Table extends BaseComponent {
|
|
|
81012
80770
|
}
|
|
81013
80771
|
if (Object.keys(states).length) {
|
|
81014
80772
|
const {
|
|
81015
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
81016
80773
|
pagination: mergedStatePagination = null,
|
|
81017
80774
|
queries: stateQueries = null,
|
|
81018
80775
|
dataSource: stateDataSource = null
|
|
@@ -81371,11 +81128,7 @@ var ResizableTable_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81371
81128
|
}
|
|
81372
81129
|
return t;
|
|
81373
81130
|
};
|
|
81374
|
-
/* eslint-disable max-len */
|
|
81375
|
-
/* eslint-disable @typescript-eslint/no-shadow */
|
|
81376
81131
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
81377
|
-
/* eslint-disable react/destructuring-assignment */
|
|
81378
|
-
/* eslint-disable max-lines-per-function */
|
|
81379
81132
|
|
|
81380
81133
|
|
|
81381
81134
|
|
|
@@ -81855,7 +81608,6 @@ class TabBar extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
|
|
|
81855
81608
|
this.props.onTabClick(itemKey, e);
|
|
81856
81609
|
if (this.props.collapsible) {
|
|
81857
81610
|
const key = this._getItemKey(itemKey);
|
|
81858
|
-
// eslint-disable-next-line max-len
|
|
81859
81611
|
const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${tabs_constants_cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
|
|
81860
81612
|
tabItem.scrollIntoView({
|
|
81861
81613
|
behavior: 'smooth',
|
|
@@ -81894,7 +81646,6 @@ class TabBar extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
|
|
|
81894
81646
|
return;
|
|
81895
81647
|
}
|
|
81896
81648
|
const key = this._getItemKey(lastItem.itemKey);
|
|
81897
|
-
// eslint-disable-next-line max-len
|
|
81898
81649
|
const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${tabs_constants_cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
|
|
81899
81650
|
tabItem.scrollIntoView({
|
|
81900
81651
|
behavior: 'smooth',
|
|
@@ -82731,7 +82482,6 @@ Timeline.defaultProps = {
|
|
|
82731
82482
|
/* harmony default export */ const timeline_0 = (Timeline);
|
|
82732
82483
|
;// CONCATENATED MODULE: ../semi-foundation/timePicker/utils/index.ts
|
|
82733
82484
|
|
|
82734
|
-
/* eslint-disable max-len */
|
|
82735
82485
|
|
|
82736
82486
|
|
|
82737
82487
|
|
|
@@ -82862,7 +82612,6 @@ const isTimeFormatLike = (time, formatToken) => {
|
|
|
82862
82612
|
;// CONCATENATED MODULE: ../semi-foundation/timePicker/foundation.ts
|
|
82863
82613
|
|
|
82864
82614
|
|
|
82865
|
-
/* eslint-disable max-len */
|
|
82866
82615
|
|
|
82867
82616
|
|
|
82868
82617
|
|
|
@@ -83240,9 +82989,7 @@ class inputFoundation_TimePickerFoundation extends foundation {
|
|
|
83240
82989
|
constructor(adapter) {
|
|
83241
82990
|
super(Object.assign({}, adapter));
|
|
83242
82991
|
}
|
|
83243
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
83244
82992
|
init() {}
|
|
83245
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
83246
82993
|
destroy() {}
|
|
83247
82994
|
handleFocus(e) {
|
|
83248
82995
|
this.storeCursor();
|
|
@@ -83293,7 +83040,6 @@ var TimeInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
83293
83040
|
}
|
|
83294
83041
|
return t;
|
|
83295
83042
|
};
|
|
83296
|
-
/* eslint-disable no-unused-vars */
|
|
83297
83043
|
|
|
83298
83044
|
|
|
83299
83045
|
|
|
@@ -83496,7 +83242,6 @@ var TimePicker_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
83496
83242
|
}
|
|
83497
83243
|
return t;
|
|
83498
83244
|
};
|
|
83499
|
-
/* eslint-disable no-unused-vars */
|
|
83500
83245
|
|
|
83501
83246
|
|
|
83502
83247
|
|
|
@@ -84065,7 +83810,6 @@ class ToastFoundation extends foundation {
|
|
|
84065
83810
|
}
|
|
84066
83811
|
;// CONCATENATED MODULE: ./toast/toast.tsx
|
|
84067
83812
|
|
|
84068
|
-
/* eslint-disable max-len */
|
|
84069
83813
|
|
|
84070
83814
|
|
|
84071
83815
|
|
|
@@ -84287,7 +84031,6 @@ function useToast() {
|
|
|
84287
84031
|
const mergeConfig = Object.assign(Object.assign({}, config), {
|
|
84288
84032
|
id
|
|
84289
84033
|
});
|
|
84290
|
-
// eslint-disable-next-line prefer-const
|
|
84291
84034
|
let closeFunc;
|
|
84292
84035
|
const toast = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(useToast_HookToast, Object.assign({}, mergeConfig, {
|
|
84293
84036
|
key: id,
|
|
@@ -84329,7 +84072,6 @@ function useToast() {
|
|
|
84329
84072
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, Array.isArray(elements) && elements.length ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, elements.map(item => item.element)) : null)];
|
|
84330
84073
|
}
|
|
84331
84074
|
;// CONCATENATED MODULE: ./toast/index.tsx
|
|
84332
|
-
/* eslint-disable no-param-reassign */
|
|
84333
84075
|
|
|
84334
84076
|
|
|
84335
84077
|
|
|
@@ -84984,7 +84726,6 @@ class TreeFoundation extends foundation {
|
|
|
84984
84726
|
node: data
|
|
84985
84727
|
});
|
|
84986
84728
|
}
|
|
84987
|
-
// eslint-disable-next-line max-len
|
|
84988
84729
|
handleNodeLoad(loadedKeys, loadingKeys, data, resolve) {
|
|
84989
84730
|
const {
|
|
84990
84731
|
loadData,
|
|
@@ -85582,7 +85323,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
85582
85323
|
className: `${treeNode_prefixcls}-item-icon`
|
|
85583
85324
|
});
|
|
85584
85325
|
} else {
|
|
85585
|
-
// eslint-disable-next-line max-len
|
|
85586
85326
|
itemIcon = expanded ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconFolderOpen, {
|
|
85587
85327
|
className: `${treeNode_prefixcls}-item-icon`
|
|
85588
85328
|
}) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconFolder, {
|
|
@@ -85607,7 +85347,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
85607
85347
|
"x-semi-prop": "emptyContent"
|
|
85608
85348
|
}, emptyContent));
|
|
85609
85349
|
}
|
|
85610
|
-
// eslint-disable-next-line max-lines-per-function
|
|
85611
85350
|
render() {
|
|
85612
85351
|
const _a = this.props,
|
|
85613
85352
|
{
|
|
@@ -85622,7 +85361,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
85622
85361
|
empty,
|
|
85623
85362
|
filtered,
|
|
85624
85363
|
treeNodeFilterProp,
|
|
85625
|
-
// eslint-disable-next-line no-unused-vars
|
|
85626
85364
|
display,
|
|
85627
85365
|
style
|
|
85628
85366
|
} = _a,
|
|
@@ -85902,7 +85640,6 @@ var tree_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
85902
85640
|
}
|
|
85903
85641
|
return t;
|
|
85904
85642
|
};
|
|
85905
|
-
/* eslint-disable max-lines-per-function */
|
|
85906
85643
|
|
|
85907
85644
|
|
|
85908
85645
|
|
|
@@ -86120,7 +85857,6 @@ class Tree extends BaseComponent {
|
|
|
86120
85857
|
};
|
|
86121
85858
|
// Update the data of tree in state
|
|
86122
85859
|
if (needUpdate('treeData') || props.draggable && needUpdateData()) {
|
|
86123
|
-
// eslint-disable-next-line prefer-destructuring
|
|
86124
85860
|
treeData = props.treeData;
|
|
86125
85861
|
newState.treeData = treeData;
|
|
86126
85862
|
const entitiesMap = convertDataToEntities(treeData);
|
|
@@ -86660,7 +86396,6 @@ const treeSelect_constants_numbers = {};
|
|
|
86660
86396
|
|
|
86661
86397
|
|
|
86662
86398
|
|
|
86663
|
-
// eslint-disable-next-line max-len
|
|
86664
86399
|
class TreeSelectFoundation extends foundation {
|
|
86665
86400
|
constructor(adapter) {
|
|
86666
86401
|
super(Object.assign({}, adapter));
|
|
@@ -87598,7 +87333,6 @@ class TreeSelect extends BaseComponent {
|
|
|
87598
87333
|
renderKeys = [...realCheckedKeys];
|
|
87599
87334
|
}
|
|
87600
87335
|
const tagList = [];
|
|
87601
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87602
87336
|
renderKeys.forEach((key, index) => {
|
|
87603
87337
|
const item = keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key);
|
|
87604
87338
|
const onClose = (tagContent, e) => {
|
|
@@ -87817,7 +87551,6 @@ class TreeSelect extends BaseComponent {
|
|
|
87817
87551
|
const triggerRenderKeys = multiple ? normalizeKeyList([...checkedKeys], keyEntities, leafOnly, true) : selectedKeys;
|
|
87818
87552
|
const inner = useCustomTrigger ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(trigger, {
|
|
87819
87553
|
inputValue: inputValue,
|
|
87820
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87821
87554
|
value: triggerRenderKeys.map(key => get_default()(keyEntities, [key, 'data'])),
|
|
87822
87555
|
disabled: disabled,
|
|
87823
87556
|
placeholder: placeholder,
|
|
@@ -87864,7 +87597,6 @@ class TreeSelect extends BaseComponent {
|
|
|
87864
87597
|
"aria-required": this.props['aria-required']
|
|
87865
87598
|
}, mouseEvent, this.getDataAttr(rest)), inner);
|
|
87866
87599
|
};
|
|
87867
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87868
87600
|
this.renderTagItem = (key, idx) => {
|
|
87869
87601
|
const {
|
|
87870
87602
|
keyEntities,
|
|
@@ -88088,7 +87820,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88088
87820
|
const {
|
|
88089
87821
|
data
|
|
88090
87822
|
} = treeNode;
|
|
88091
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
88092
87823
|
const {
|
|
88093
87824
|
key
|
|
88094
87825
|
} = data;
|
|
@@ -88112,7 +87843,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88112
87843
|
const {
|
|
88113
87844
|
data
|
|
88114
87845
|
} = treeNode;
|
|
88115
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
88116
87846
|
const {
|
|
88117
87847
|
key
|
|
88118
87848
|
} = data;
|
|
@@ -88300,7 +88030,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88300
88030
|
this.adapter.rePositionDropdown();
|
|
88301
88031
|
};
|
|
88302
88032
|
}
|
|
88303
|
-
// eslint-disable-next-line max-lines-per-function
|
|
88304
88033
|
static getDerivedStateFromProps(props, prevState) {
|
|
88305
88034
|
const {
|
|
88306
88035
|
prevProps,
|
|
@@ -88429,7 +88158,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88429
88158
|
const clickOutsideHandler = e => {
|
|
88430
88159
|
const optionInstance = this.optionsRef && this.optionsRef.current;
|
|
88431
88160
|
const triggerDom = this.triggerRef && this.triggerRef.current;
|
|
88432
|
-
// eslint-disable-next-line
|
|
88433
88161
|
const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(optionInstance);
|
|
88434
88162
|
const target = e.target;
|
|
88435
88163
|
if (optionsDom && (!optionsDom.contains(target) || !optionsDom.contains(target.parentNode)) && triggerDom && !triggerDom.contains(target)) {
|
|
@@ -90210,7 +89938,6 @@ var upload_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
90210
89938
|
}
|
|
90211
89939
|
return t;
|
|
90212
89940
|
};
|
|
90213
|
-
/* eslint-disable max-len */
|
|
90214
89941
|
|
|
90215
89942
|
|
|
90216
89943
|
|
|
@@ -90913,7 +90640,6 @@ function _generateSelectedItems(value, data) {
|
|
|
90913
90640
|
|
|
90914
90641
|
|
|
90915
90642
|
|
|
90916
|
-
// eslint-disable-next-line max-len
|
|
90917
90643
|
class TransferFoundation extends foundation {
|
|
90918
90644
|
constructor(adapter) {
|
|
90919
90645
|
super(Object.assign({}, adapter));
|
|
@@ -91169,7 +90895,6 @@ const transfer_SortableList = sortableContainer(_ref => {
|
|
|
91169
90895
|
index: index,
|
|
91170
90896
|
item: item
|
|
91171
90897
|
})))
|
|
91172
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
91173
90898
|
// @ts-ignore see reasons: https://github.com/clauderic/react-sortable-hoc/issues/206
|
|
91174
90899
|
;
|
|
91175
90900
|
}, {
|
|
@@ -91192,12 +90917,10 @@ class Transfer extends BaseComponent {
|
|
|
91192
90917
|
inputValue: ''
|
|
91193
90918
|
};
|
|
91194
90919
|
if (Boolean(dataSource) && isArray_default()(dataSource)) {
|
|
91195
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
91196
90920
|
// @ts-ignore Avoid reporting errors this.state.xxx is read-only
|
|
91197
90921
|
this.state.data = _generateDataByType(dataSource, type);
|
|
91198
90922
|
}
|
|
91199
90923
|
if (Boolean(defaultValue) && isArray_default()(defaultValue)) {
|
|
91200
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
91201
90924
|
// @ts-ignore Avoid reporting errors this.state.xxx is read-only
|
|
91202
90925
|
this.state.selectedItems = _generateSelectedItems(defaultValue, this.state.data);
|
|
91203
90926
|
}
|
|
@@ -93269,9 +92992,6 @@ var form_utils_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
93269
92992
|
}
|
|
93270
92993
|
return t;
|
|
93271
92994
|
};
|
|
93272
|
-
/* eslint-disable prefer-destructuring */
|
|
93273
|
-
/* eslint-disable prefer-const */
|
|
93274
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
93275
92995
|
|
|
93276
92996
|
/**
|
|
93277
92997
|
*
|
|
@@ -93456,7 +93176,6 @@ function bothEmptyArray(val, otherVal) {
|
|
|
93456
93176
|
|
|
93457
93177
|
|
|
93458
93178
|
|
|
93459
|
-
/* eslint-disable prefer-const, max-len */
|
|
93460
93179
|
|
|
93461
93180
|
|
|
93462
93181
|
|
|
@@ -93608,13 +93327,15 @@ class FormFoundation extends foundation {
|
|
|
93608
93327
|
maybePromisedErrors = errors;
|
|
93609
93328
|
}
|
|
93610
93329
|
if (!maybePromisedErrors) {
|
|
93611
|
-
|
|
93330
|
+
const _values = this._adapter.cloneDeep(values);
|
|
93331
|
+
resolve(_values);
|
|
93612
93332
|
this.injectErrorToField({});
|
|
93613
93333
|
} else if (isPromise(maybePromisedErrors)) {
|
|
93614
93334
|
maybePromisedErrors.then(result => {
|
|
93615
93335
|
// validate success,clear error
|
|
93616
93336
|
if (!result) {
|
|
93617
|
-
|
|
93337
|
+
const _values = this._adapter.cloneDeep(values);
|
|
93338
|
+
resolve(_values);
|
|
93618
93339
|
this.injectErrorToField({});
|
|
93619
93340
|
} else {
|
|
93620
93341
|
this.data.errors = result;
|
|
@@ -93668,7 +93389,8 @@ class FormFoundation extends foundation {
|
|
|
93668
93389
|
this._adapter.forceUpdate();
|
|
93669
93390
|
const errors = this.getError();
|
|
93670
93391
|
if (this._isValid(targetFields)) {
|
|
93671
|
-
|
|
93392
|
+
const _values = this._adapter.cloneDeep(values);
|
|
93393
|
+
resolve(_values);
|
|
93672
93394
|
} else {
|
|
93673
93395
|
this._autoScroll();
|
|
93674
93396
|
reject(errors);
|
|
@@ -94144,7 +93866,6 @@ class FormFoundation extends foundation {
|
|
|
94144
93866
|
}
|
|
94145
93867
|
}
|
|
94146
93868
|
;// CONCATENATED MODULE: ./form/context.tsx
|
|
94147
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
94148
93869
|
|
|
94149
93870
|
const FormStateContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({});
|
|
94150
93871
|
FormStateContext.displayName = 'FormState';
|
|
@@ -94157,7 +93878,6 @@ const ArrayFieldContext = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
94157
93878
|
});
|
|
94158
93879
|
|
|
94159
93880
|
;// CONCATENATED MODULE: ./form/errorMessage.tsx
|
|
94160
|
-
/* eslint-disable prefer-template */
|
|
94161
93881
|
|
|
94162
93882
|
|
|
94163
93883
|
|
|
@@ -94254,7 +93974,6 @@ var slot_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
94254
93974
|
}
|
|
94255
93975
|
return t;
|
|
94256
93976
|
};
|
|
94257
|
-
/* eslint-disable max-lines-per-function, prefer-destructuring, prefer-const, @typescript-eslint/no-unused-vars */
|
|
94258
93977
|
|
|
94259
93978
|
|
|
94260
93979
|
|
|
@@ -94275,7 +93994,6 @@ const FormSlot = props => {
|
|
|
94275
93994
|
labelAlign = formProps.labelAlign;
|
|
94276
93995
|
labelPosition = formProps.labelPosition ? formProps.labelPosition : labelPosition;
|
|
94277
93996
|
} catch (error) {}
|
|
94278
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
94279
93997
|
props.labelPosition ? labelPosition = props.labelPosition : null;
|
|
94280
93998
|
let {
|
|
94281
93999
|
children,
|
|
@@ -94381,7 +94099,6 @@ const FormSlot = props => {
|
|
|
94381
94099
|
};
|
|
94382
94100
|
/* harmony default export */ const slot = (FormSlot);
|
|
94383
94101
|
;// CONCATENATED MODULE: ./form/section.tsx
|
|
94384
|
-
/* eslint-disable prefer-template */
|
|
94385
94102
|
|
|
94386
94103
|
|
|
94387
94104
|
|
|
@@ -94431,7 +94148,6 @@ var group_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
94431
94148
|
}
|
|
94432
94149
|
return t;
|
|
94433
94150
|
};
|
|
94434
|
-
/* eslint-disable react/destructuring-assignment */
|
|
94435
94151
|
|
|
94436
94152
|
|
|
94437
94153
|
|
|
@@ -94591,7 +94307,7 @@ function useStateWithGetter(initial) {
|
|
|
94591
94307
|
return [state, set, get];
|
|
94592
94308
|
}
|
|
94593
94309
|
;// CONCATENATED MODULE: ./form/hoc/withField.tsx
|
|
94594
|
-
/* eslint-disable
|
|
94310
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
94595
94311
|
|
|
94596
94312
|
|
|
94597
94313
|
|
|
@@ -94744,9 +94460,7 @@ function withField(Component, opts) {
|
|
|
94744
94460
|
const rootPromise = new Promise((resolve, reject) => {
|
|
94745
94461
|
validator.validate(model, {
|
|
94746
94462
|
first: stopValidateWithError
|
|
94747
|
-
},
|
|
94748
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
94749
|
-
(errors, fields) => {}).then(res => {
|
|
94463
|
+
}, (errors, fields) => {}).then(res => {
|
|
94750
94464
|
if (validatePromise.current !== rootPromise) {
|
|
94751
94465
|
return;
|
|
94752
94466
|
}
|
|
@@ -94765,7 +94479,6 @@ function withField(Component, opts) {
|
|
|
94765
94479
|
if (errors && fields) {
|
|
94766
94480
|
let messages = errors.map(e => e.message);
|
|
94767
94481
|
if (messages.length === 1) {
|
|
94768
|
-
// eslint-disable-next-line prefer-destructuring
|
|
94769
94482
|
messages = messages[0];
|
|
94770
94483
|
}
|
|
94771
94484
|
updateError(messages, callOpts);
|
|
@@ -94942,7 +94655,6 @@ function withField(Component, opts) {
|
|
|
94942
94655
|
useIsomorphicEffect(() => {
|
|
94943
94656
|
// register
|
|
94944
94657
|
if (typeof field === 'undefined') {
|
|
94945
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
94946
94658
|
return () => {};
|
|
94947
94659
|
}
|
|
94948
94660
|
// log('register: ' + field);
|
|
@@ -95106,7 +94818,6 @@ function withField(Component, opts) {
|
|
|
95106
94818
|
// eslint-disable-next-line
|
|
95107
94819
|
/* harmony default export */ const hoc_withField = (withField);
|
|
95108
94820
|
;// CONCATENATED MODULE: ./form/field.tsx
|
|
95109
|
-
/* eslint-disable max-len */
|
|
95110
94821
|
|
|
95111
94822
|
// Basic component
|
|
95112
94823
|
|
|
@@ -95184,7 +94895,6 @@ var baseForm_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
95184
94895
|
}
|
|
95185
94896
|
return t;
|
|
95186
94897
|
};
|
|
95187
|
-
/* eslint-disable prefer-template, max-len, @typescript-eslint/no-unused-vars */
|
|
95188
94898
|
|
|
95189
94899
|
|
|
95190
94900
|
|
|
@@ -95501,7 +95211,6 @@ function withFormApi(Component) {
|
|
|
95501
95211
|
;// CONCATENATED MODULE: ./form/arrayField.tsx
|
|
95502
95212
|
|
|
95503
95213
|
|
|
95504
|
-
/* eslint-disable react/destructuring-assignment */
|
|
95505
95214
|
|
|
95506
95215
|
|
|
95507
95216
|
|
|
@@ -96947,7 +96656,6 @@ class PreviewInnerFoundation extends foundation {
|
|
|
96947
96656
|
;// CONCATENATED MODULE: ./image/previewInner.tsx
|
|
96948
96657
|
|
|
96949
96658
|
|
|
96950
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
96951
96659
|
|
|
96952
96660
|
|
|
96953
96661
|
|
|
@@ -97455,8 +97163,6 @@ var image_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
97455
97163
|
}
|
|
97456
97164
|
return t;
|
|
97457
97165
|
};
|
|
97458
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
97459
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
97460
97166
|
|
|
97461
97167
|
|
|
97462
97168
|
|
|
@@ -97620,36 +97326,31 @@ class image_Image extends BaseComponent {
|
|
|
97620
97326
|
const showPreviewCursor = preview && loadStatus === "success";
|
|
97621
97327
|
const previewSrc = isObject_default()(preview) ? (_a = preview.src) !== null && _a !== void 0 ? _a : src : src;
|
|
97622
97328
|
const previewProps = isObject_default()(preview) ? preview : {};
|
|
97623
|
-
return (
|
|
97624
|
-
|
|
97625
|
-
|
|
97626
|
-
|
|
97627
|
-
|
|
97628
|
-
|
|
97629
|
-
|
|
97630
|
-
|
|
97631
|
-
|
|
97632
|
-
|
|
97633
|
-
}
|
|
97634
|
-
|
|
97635
|
-
|
|
97636
|
-
|
|
97637
|
-
|
|
97638
|
-
|
|
97639
|
-
|
|
97640
|
-
|
|
97641
|
-
|
|
97642
|
-
|
|
97643
|
-
|
|
97644
|
-
|
|
97645
|
-
|
|
97646
|
-
|
|
97647
|
-
|
|
97648
|
-
visible: previewVisible,
|
|
97649
|
-
onVisibleChange: this.handlePreviewVisibleChange,
|
|
97650
|
-
crossOrigin: !isUndefined_default()(crossOrigin) ? crossOrigin : previewProps === null || previewProps === void 0 ? void 0 : previewProps.crossOrigin
|
|
97651
|
-
})))
|
|
97652
|
-
);
|
|
97329
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
97330
|
+
style: outerStyle,
|
|
97331
|
+
className: outerCls,
|
|
97332
|
+
onClick: this.handleClick
|
|
97333
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", Object.assign({
|
|
97334
|
+
ref: this.imgRef
|
|
97335
|
+
}, restProps, {
|
|
97336
|
+
src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
|
|
97337
|
+
"data-src": src,
|
|
97338
|
+
alt: alt,
|
|
97339
|
+
className: classnames_default()(`${image_prefixCls}-img`, {
|
|
97340
|
+
[`${image_prefixCls}-img-preview`]: showPreviewCursor,
|
|
97341
|
+
[`${image_prefixCls}-img-error`]: loadStatus === "error"
|
|
97342
|
+
}),
|
|
97343
|
+
width: width,
|
|
97344
|
+
height: height,
|
|
97345
|
+
crossOrigin: crossOrigin,
|
|
97346
|
+
onError: this.handleError,
|
|
97347
|
+
onLoad: this.handleLoaded
|
|
97348
|
+
})), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(PreviewInner, Object.assign({}, previewProps, {
|
|
97349
|
+
src: previewSrc,
|
|
97350
|
+
visible: previewVisible,
|
|
97351
|
+
onVisibleChange: this.handlePreviewVisibleChange,
|
|
97352
|
+
crossOrigin: !isUndefined_default()(crossOrigin) ? crossOrigin : previewProps === null || previewProps === void 0 ? void 0 : previewProps.crossOrigin
|
|
97353
|
+
})));
|
|
97653
97354
|
}
|
|
97654
97355
|
}
|
|
97655
97356
|
image_Image.isSemiImage = true;
|