@douyinfe/semi-ui 2.39.0 → 2.39.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/semi-ui.js +88 -419
- 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.js +1 -1
- 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.js +0 -1
- 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 {
|
|
@@ -66343,7 +66158,6 @@ class PaginationFoundation extends foundation {
|
|
|
66343
66158
|
this._adapter.notifyChange(newCurrentPage, newPageSize);
|
|
66344
66159
|
}
|
|
66345
66160
|
// TODO handle tab/enter events
|
|
66346
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
66347
66161
|
handleKeyDown() {}
|
|
66348
66162
|
// If pageSize is not in the Opts array, insert it
|
|
66349
66163
|
pageSizeInOpts() {
|
|
@@ -66417,8 +66231,6 @@ var foundation_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
66417
66231
|
}
|
|
66418
66232
|
return t;
|
|
66419
66233
|
};
|
|
66420
|
-
/* argus-disable unPkgSensitiveInfo */
|
|
66421
|
-
/* eslint-disable max-len */
|
|
66422
66234
|
|
|
66423
66235
|
|
|
66424
66236
|
|
|
@@ -66429,7 +66241,6 @@ class SelectFoundation extends foundation {
|
|
|
66429
66241
|
constructor(adapter) {
|
|
66430
66242
|
super(Object.assign({}, adapter));
|
|
66431
66243
|
// keyboard event listner
|
|
66432
|
-
// eslint-disable-next-line @typescript-eslint/member-ordering
|
|
66433
66244
|
this._keydownHandler = null;
|
|
66434
66245
|
}
|
|
66435
66246
|
init() {
|
|
@@ -67298,7 +67109,6 @@ class SelectFoundation extends foundation {
|
|
|
67298
67109
|
index = index - 1;
|
|
67299
67110
|
targetLabel = keys[index];
|
|
67300
67111
|
targetItem = selections.get(targetLabel);
|
|
67301
|
-
// eslint-disable-next-line
|
|
67302
67112
|
if (index == 0 && targetItem.disabled) {
|
|
67303
67113
|
isAllDisabled = true;
|
|
67304
67114
|
}
|
|
@@ -67338,7 +67148,6 @@ class SelectFoundation extends foundation {
|
|
|
67338
67148
|
}
|
|
67339
67149
|
}
|
|
67340
67150
|
_removeInternalKey(option) {
|
|
67341
|
-
// eslint-disable-next-line
|
|
67342
67151
|
let newOption = Object.assign({}, option);
|
|
67343
67152
|
delete newOption._parentGroup;
|
|
67344
67153
|
delete newOption._show;
|
|
@@ -67748,7 +67557,6 @@ const getOptionsFromGroup = selectChildren => {
|
|
|
67748
67557
|
_show: false
|
|
67749
67558
|
};
|
|
67750
67559
|
// avoid null
|
|
67751
|
-
// eslint-disable-next-line max-len
|
|
67752
67560
|
let childNodes = external_root_React_commonjs2_react_commonjs_react_amd_react_default().Children.toArray(selectChildren);
|
|
67753
67561
|
childNodes = childNodes.filter(childNode => childNode && childNode.props);
|
|
67754
67562
|
let type = '';
|
|
@@ -67763,7 +67571,6 @@ const getOptionsFromGroup = selectChildren => {
|
|
|
67763
67571
|
} else if (child.type.isSelectOptionGroup) {
|
|
67764
67572
|
type = 'group';
|
|
67765
67573
|
// Avoid saving children (reactNode) by... removing other props from the group except children, causing performance problems
|
|
67766
|
-
// eslint-disable-next-line prefer-const
|
|
67767
67574
|
let _a = child.props,
|
|
67768
67575
|
{
|
|
67769
67576
|
children
|
|
@@ -67818,7 +67625,6 @@ var select_option_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
67818
67625
|
}
|
|
67819
67626
|
return t;
|
|
67820
67627
|
};
|
|
67821
|
-
/* eslint-disable max-len */
|
|
67822
67628
|
|
|
67823
67629
|
|
|
67824
67630
|
|
|
@@ -68028,8 +67834,6 @@ var select_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
68028
67834
|
}
|
|
68029
67835
|
return t;
|
|
68030
67836
|
};
|
|
68031
|
-
/* eslint-disable max-len */
|
|
68032
|
-
/* eslint-disable max-lines-per-function */
|
|
68033
67837
|
|
|
68034
67838
|
|
|
68035
67839
|
|
|
@@ -68171,7 +67975,6 @@ class Select extends BaseComponent {
|
|
|
68171
67975
|
focusIndex
|
|
68172
67976
|
});
|
|
68173
67977
|
},
|
|
68174
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
68175
67978
|
scrollToFocusOption: () => {}
|
|
68176
67979
|
};
|
|
68177
67980
|
const filterAdapter = {
|
|
@@ -68205,7 +68008,6 @@ class Select extends BaseComponent {
|
|
|
68205
68008
|
const clickOutsideHandler = e => {
|
|
68206
68009
|
const optionInstance = this.optionsRef && this.optionsRef.current;
|
|
68207
68010
|
const triggerDom = this.triggerRef && this.triggerRef.current;
|
|
68208
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
68209
68011
|
const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(optionInstance);
|
|
68210
68012
|
// let isInPanel = optionsDom && optionsDom.contains(e.target);
|
|
68211
68013
|
// let isInTrigger = triggerDom && triggerDom.contains(e.target);
|
|
@@ -68378,14 +68180,12 @@ class Select extends BaseComponent {
|
|
|
68378
68180
|
return this.state.isFocusInContainer;
|
|
68379
68181
|
},
|
|
68380
68182
|
updateScrollTop: index => {
|
|
68381
|
-
// eslint-disable-next-line max-len
|
|
68382
68183
|
let optionClassName = `.${select_prefixcls}-option-selected`;
|
|
68383
68184
|
if (index !== undefined) {
|
|
68384
68185
|
optionClassName = `.${select_prefixcls}-option:nth-child(${index})`;
|
|
68385
68186
|
}
|
|
68386
68187
|
let destNode = document.querySelector(`#${select_prefixcls}-${this.selectOptionListID} ${optionClassName}`);
|
|
68387
68188
|
if (Array.isArray(destNode)) {
|
|
68388
|
-
// eslint-disable-next-line prefer-destructuring
|
|
68389
68189
|
destNode = destNode[0];
|
|
68390
68190
|
}
|
|
68391
68191
|
if (destNode) {
|
|
@@ -69364,7 +69164,6 @@ var pagination_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
69364
69164
|
}
|
|
69365
69165
|
return t;
|
|
69366
69166
|
};
|
|
69367
|
-
/* eslint-disable max-len */
|
|
69368
69167
|
/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */
|
|
69369
69168
|
|
|
69370
69169
|
|
|
@@ -69828,7 +69627,6 @@ const popconfirm_constants_numbers = {
|
|
|
69828
69627
|
|
|
69829
69628
|
;// CONCATENATED MODULE: ../semi-foundation/popconfirm/popconfirmFoundation.ts
|
|
69830
69629
|
|
|
69831
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
69832
69630
|
|
|
69833
69631
|
|
|
69834
69632
|
class PopConfirmFoundation extends foundation {
|
|
@@ -69903,7 +69701,6 @@ var popconfirm_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
69903
69701
|
}
|
|
69904
69702
|
return t;
|
|
69905
69703
|
};
|
|
69906
|
-
/* eslint-disable max-len */
|
|
69907
69704
|
|
|
69908
69705
|
|
|
69909
69706
|
|
|
@@ -70416,7 +70213,6 @@ class Progress extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
70416
70213
|
}
|
|
70417
70214
|
if (prevProps.percent !== this.props.percent) {
|
|
70418
70215
|
if (!this.props.motion) {
|
|
70419
|
-
// eslint-disable-next-line
|
|
70420
70216
|
this.setState({
|
|
70421
70217
|
percentNumber: this.props.percent
|
|
70422
70218
|
});
|
|
@@ -70785,7 +70581,6 @@ class RadioGroupFoundation extends foundation {
|
|
|
70785
70581
|
_setValue(value) {
|
|
70786
70582
|
this._adapter.setValue(value);
|
|
70787
70583
|
}
|
|
70788
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
70789
70584
|
destroy() {}
|
|
70790
70585
|
}
|
|
70791
70586
|
;// CONCATENATED MODULE: ../semi-foundation/radio/radioFoundation.ts
|
|
@@ -70875,7 +70670,6 @@ class RadioInnerFoundation extends foundation {
|
|
|
70875
70670
|
this._adapter.notifyChange(cbValue);
|
|
70876
70671
|
}
|
|
70877
70672
|
}
|
|
70878
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
70879
70673
|
destroy() {}
|
|
70880
70674
|
}
|
|
70881
70675
|
;// CONCATENATED MODULE: ./radio/context.ts
|
|
@@ -71020,7 +70814,6 @@ var radio_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
71020
70814
|
}
|
|
71021
70815
|
return t;
|
|
71022
70816
|
};
|
|
71023
|
-
/* eslint-disable prefer-destructuring */
|
|
71024
70817
|
|
|
71025
70818
|
|
|
71026
70819
|
|
|
@@ -71469,7 +71262,6 @@ const rating_constants_strings = {
|
|
|
71469
71262
|
// EXTERNAL MODULE: ../semi-foundation/rating/rating.scss
|
|
71470
71263
|
var rating = __webpack_require__("FII7");
|
|
71471
71264
|
;// CONCATENATED MODULE: ../semi-foundation/rating/foundation.ts
|
|
71472
|
-
/* eslint-disable no-param-reassign */
|
|
71473
71265
|
|
|
71474
71266
|
|
|
71475
71267
|
class RatingFoundation extends foundation {
|
|
@@ -72079,7 +71871,6 @@ class Rating extends BaseComponent {
|
|
|
72079
71871
|
},
|
|
72080
71872
|
getStarDOM: index => {
|
|
72081
71873
|
const instance = this.stars && this.stars[index];
|
|
72082
|
-
// eslint-disable-next-line react/no-find-dom-node
|
|
72083
71874
|
return external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(instance);
|
|
72084
71875
|
},
|
|
72085
71876
|
notifyHoverChange: (hoverValue, clearedValue) => {
|
|
@@ -72478,7 +72269,6 @@ var sideSheet_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
72478
72269
|
}
|
|
72479
72270
|
return t;
|
|
72480
72271
|
};
|
|
72481
|
-
/* eslint-disable no-nested-ternary */
|
|
72482
72272
|
|
|
72483
72273
|
|
|
72484
72274
|
|
|
@@ -72773,9 +72563,6 @@ const touchEventPolyfill = (touch, touchEvent) => {
|
|
|
72773
72563
|
};
|
|
72774
72564
|
/* harmony default export */ const touchPolyfill = (touchEventPolyfill);
|
|
72775
72565
|
;// 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
72566
|
|
|
72780
72567
|
|
|
72781
72568
|
|
|
@@ -72932,7 +72719,6 @@ class SliderFoundation extends foundation {
|
|
|
72932
72719
|
startPos = vertical ? sliderY : sliderX;
|
|
72933
72720
|
}
|
|
72934
72721
|
// startPos = chooseMovePos === 'max' && isDrag ? currentPos[0] : startPos;
|
|
72935
|
-
// eslint-disable-next-line one-var
|
|
72936
72722
|
let endPos;
|
|
72937
72723
|
if (vertical && verticalReverse) {
|
|
72938
72724
|
endPos = sliderY;
|
|
@@ -72988,8 +72774,6 @@ class SliderFoundation extends foundation {
|
|
|
72988
72774
|
} else {
|
|
72989
72775
|
stepValue = (pos - startPos) / len * (max - min) + min;
|
|
72990
72776
|
}
|
|
72991
|
-
// debugger
|
|
72992
|
-
// eslint-disable-next-line one-var
|
|
72993
72777
|
let compareValue;
|
|
72994
72778
|
if (range) {
|
|
72995
72779
|
compareValue = isMin ? currentValue[0] : currentValue[1];
|
|
@@ -73392,7 +73176,6 @@ class SliderFoundation extends foundation {
|
|
|
73392
73176
|
handlePrevent(event);
|
|
73393
73177
|
}
|
|
73394
73178
|
};
|
|
73395
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
73396
73179
|
this.onFocus = (e, handler) => {
|
|
73397
73180
|
handlePrevent(e);
|
|
73398
73181
|
const {
|
|
@@ -73541,8 +73324,6 @@ var slider_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
73541
73324
|
}
|
|
73542
73325
|
return t;
|
|
73543
73326
|
};
|
|
73544
|
-
/* eslint-disable max-lines-per-function */
|
|
73545
|
-
/* eslint-disable react/no-find-dom-node */
|
|
73546
73327
|
|
|
73547
73328
|
|
|
73548
73329
|
|
|
@@ -73863,7 +73644,6 @@ class Slider extends BaseComponent {
|
|
|
73863
73644
|
value = this.props.defaultValue;
|
|
73864
73645
|
}
|
|
73865
73646
|
this.state = {
|
|
73866
|
-
// eslint-disable-next-line no-nested-ternary
|
|
73867
73647
|
currentValue: value ? value : this.props.range ? [0, 0] : 0,
|
|
73868
73648
|
min: this.props.min || 0,
|
|
73869
73649
|
max: this.props.max || 0,
|
|
@@ -74939,7 +74719,6 @@ class SwitchFoundation extends foundation {
|
|
|
74939
74719
|
this._adapter.notifyChange(checked, e);
|
|
74940
74720
|
}
|
|
74941
74721
|
}
|
|
74942
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
74943
74722
|
destroy() {}
|
|
74944
74723
|
}
|
|
74945
74724
|
;// CONCATENATED MODULE: ../semi-foundation/switch/constants.ts
|
|
@@ -74975,7 +74754,6 @@ var switch_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
74975
74754
|
}
|
|
74976
74755
|
return t;
|
|
74977
74756
|
};
|
|
74978
|
-
/* eslint-disable max-len */
|
|
74979
74757
|
|
|
74980
74758
|
|
|
74981
74759
|
|
|
@@ -75150,7 +74928,6 @@ var filter_default = /*#__PURE__*/__webpack_require__.n(lodash_filter);
|
|
|
75150
74928
|
var isEqualWith = __webpack_require__("6OdC");
|
|
75151
74929
|
var isEqualWith_default = /*#__PURE__*/__webpack_require__.n(isEqualWith);
|
|
75152
74930
|
;// CONCATENATED MODULE: ../semi-foundation/table/constants.ts
|
|
75153
|
-
/* eslint-disable max-len */
|
|
75154
74931
|
|
|
75155
74932
|
const table_constants_cssClasses = {
|
|
75156
74933
|
PREFIX: `${BASE_CLASS_PREFIX}-table`,
|
|
@@ -75313,9 +75090,6 @@ class Logger {
|
|
|
75313
75090
|
|
|
75314
75091
|
|
|
75315
75092
|
|
|
75316
|
-
/* eslint-disable max-len */
|
|
75317
|
-
/* eslint-disable no-param-reassign */
|
|
75318
|
-
/* eslint-disable eqeqeq */
|
|
75319
75093
|
|
|
75320
75094
|
|
|
75321
75095
|
|
|
@@ -75862,13 +75636,6 @@ function withOrderSort(fn) {
|
|
|
75862
75636
|
|
|
75863
75637
|
|
|
75864
75638
|
|
|
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
75639
|
|
|
75873
75640
|
|
|
75874
75641
|
|
|
@@ -76683,7 +76450,6 @@ class TableFoundation extends foundation {
|
|
|
76683
76450
|
toggleShowFilter(dataIndex, visible) {
|
|
76684
76451
|
let filterObj = this.getQuery(dataIndex);
|
|
76685
76452
|
const filterDropdownVisible = visible;
|
|
76686
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
76687
76453
|
filterObj = Object.assign(Object.assign({}, filterObj), {
|
|
76688
76454
|
filterDropdownVisible
|
|
76689
76455
|
});
|
|
@@ -76883,7 +76649,6 @@ function getColumns(children) {
|
|
|
76883
76649
|
}
|
|
76884
76650
|
;// CONCATENATED MODULE: ./table/table-context.ts
|
|
76885
76651
|
|
|
76886
|
-
/* eslint-disable max-len */
|
|
76887
76652
|
|
|
76888
76653
|
const TableContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({
|
|
76889
76654
|
headWidths: [],
|
|
@@ -76941,7 +76706,6 @@ class TableSelectionCellFoundation extends foundation {
|
|
|
76941
76706
|
}
|
|
76942
76707
|
;// CONCATENATED MODULE: ./table/ColumnSelection.tsx
|
|
76943
76708
|
|
|
76944
|
-
/* eslint-disable max-len */
|
|
76945
76709
|
|
|
76946
76710
|
|
|
76947
76711
|
|
|
@@ -77015,7 +76779,6 @@ TableSelectionCell.defaultProps = {
|
|
|
77015
76779
|
;// CONCATENATED MODULE: ./table/TablePagination.tsx
|
|
77016
76780
|
|
|
77017
76781
|
|
|
77018
|
-
/* eslint-disable max-len */
|
|
77019
76782
|
|
|
77020
76783
|
|
|
77021
76784
|
|
|
@@ -77053,8 +76816,6 @@ TablePagination.defaultProps = {
|
|
|
77053
76816
|
};
|
|
77054
76817
|
;// CONCATENATED MODULE: ./table/ColumnFilter.tsx
|
|
77055
76818
|
|
|
77056
|
-
/* eslint-disable no-nested-ternary */
|
|
77057
|
-
/* eslint-disable eqeqeq */
|
|
77058
76819
|
|
|
77059
76820
|
|
|
77060
76821
|
|
|
@@ -77356,7 +77117,6 @@ class ColGroup extends (external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
77356
77117
|
prefixCls,
|
|
77357
77118
|
components
|
|
77358
77119
|
} = this.props;
|
|
77359
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
77360
77120
|
const ColGroup = get_default()(components, 'colgroup.wrapper', 'colgroup');
|
|
77361
77121
|
const Col = get_default()(components, 'colgroup.col', 'col');
|
|
77362
77122
|
const cols = flattenColumns(columns).map((column, idx) => {
|
|
@@ -77407,7 +77167,6 @@ var TableHeaderRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
77407
77167
|
}
|
|
77408
77168
|
return t;
|
|
77409
77169
|
};
|
|
77410
|
-
/* eslint-disable eqeqeq */
|
|
77411
77170
|
|
|
77412
77171
|
|
|
77413
77172
|
|
|
@@ -77587,7 +77346,6 @@ TableHeaderRow.defaultProps = {
|
|
|
77587
77346
|
;// CONCATENATED MODULE: ./table/TableHeader.tsx
|
|
77588
77347
|
|
|
77589
77348
|
|
|
77590
|
-
/* eslint-disable max-len */
|
|
77591
77349
|
|
|
77592
77350
|
|
|
77593
77351
|
|
|
@@ -77596,7 +77354,6 @@ TableHeaderRow.defaultProps = {
|
|
|
77596
77354
|
|
|
77597
77355
|
function parseHeaderRows(columns) {
|
|
77598
77356
|
const rows = [];
|
|
77599
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
77600
77357
|
function fillRowCells(columns, colIndex) {
|
|
77601
77358
|
let parents = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
77602
77359
|
let rowIndex = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
@@ -77664,7 +77421,6 @@ function parseHeaderRows(columns) {
|
|
|
77664
77421
|
for (let rowIndex = 0; rowIndex < rowCount; rowIndex += 1) {
|
|
77665
77422
|
rows[rowIndex].forEach(cell => {
|
|
77666
77423
|
if (!('rowSpan' in cell) && !cell.hasSubColumns) {
|
|
77667
|
-
// eslint-disable-next-line no-param-reassign
|
|
77668
77424
|
cell.rowSpan = rowCount - rowIndex;
|
|
77669
77425
|
}
|
|
77670
77426
|
});
|
|
@@ -77735,7 +77491,6 @@ TableHeader.defaultProps = {
|
|
|
77735
77491
|
;// CONCATENATED MODULE: ./table/HeadTable.tsx
|
|
77736
77492
|
|
|
77737
77493
|
|
|
77738
|
-
/* eslint-disable max-len */
|
|
77739
77494
|
|
|
77740
77495
|
|
|
77741
77496
|
|
|
@@ -77866,7 +77621,6 @@ class TableBodyFoundation extends foundation {
|
|
|
77866
77621
|
this._adapter.setCachedExpandBtnShouldInRow(cachedExpandBtnShouldInRow);
|
|
77867
77622
|
if (!isObject_default()(newExpandRelatedProps) && !newExpandRelatedProps) {
|
|
77868
77623
|
const expandRelatedProps = table_constants_strings.EXPAND_RELATED_PROPS;
|
|
77869
|
-
// eslint-disable-next-line no-param-reassign
|
|
77870
77624
|
newExpandRelatedProps = expandRelatedProps.map(key => get_default()(props, key, undefined));
|
|
77871
77625
|
}
|
|
77872
77626
|
this._adapter.setCachedExpandRelatedProps(newExpandRelatedProps);
|
|
@@ -78105,7 +77859,6 @@ function shallowEqualObjects(objA, objB) {
|
|
|
78105
77859
|
}
|
|
78106
77860
|
;// CONCATENATED MODULE: ../semi-foundation/table/tableRowFoundation.ts
|
|
78107
77861
|
|
|
78108
|
-
// eslint-disable-next-line max-len
|
|
78109
77862
|
class TableRowFoundation extends foundation {
|
|
78110
77863
|
handleClick(e) {
|
|
78111
77864
|
const {
|
|
@@ -78140,8 +77893,6 @@ class TableCellFoundation extends foundation {
|
|
|
78140
77893
|
|
|
78141
77894
|
|
|
78142
77895
|
|
|
78143
|
-
/* eslint-disable prefer-destructuring */
|
|
78144
|
-
/* eslint-disable eqeqeq */
|
|
78145
77896
|
|
|
78146
77897
|
|
|
78147
77898
|
|
|
@@ -78325,7 +78076,6 @@ class TableCell extends BaseComponent {
|
|
|
78325
78076
|
}
|
|
78326
78077
|
text = render(text, record, index, renderOptions);
|
|
78327
78078
|
if (isInvalidRenderCellText(text)) {
|
|
78328
|
-
// eslint-disable-next-line no-param-reassign
|
|
78329
78079
|
tdProps = text.props ? merge_default()(tdProps, text.props) : tdProps;
|
|
78330
78080
|
colSpan = tdProps.colSpan;
|
|
78331
78081
|
rowSpan = tdProps.rowSpan;
|
|
@@ -78507,8 +78257,6 @@ var BaseRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
78507
78257
|
}
|
|
78508
78258
|
return t;
|
|
78509
78259
|
};
|
|
78510
|
-
/* eslint-disable max-len */
|
|
78511
|
-
/* eslint-disable eqeqeq */
|
|
78512
78260
|
|
|
78513
78261
|
|
|
78514
78262
|
|
|
@@ -78830,7 +78578,6 @@ var ExpandedRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
78830
78578
|
}
|
|
78831
78579
|
return t;
|
|
78832
78580
|
};
|
|
78833
|
-
/* eslint-disable max-len */
|
|
78834
78581
|
|
|
78835
78582
|
|
|
78836
78583
|
|
|
@@ -78874,7 +78621,6 @@ class TableExpandedRow extends external_root_React_commonjs2_react_commonjs_reac
|
|
|
78874
78621
|
} else if ( /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(cell)) {
|
|
78875
78622
|
children = cell;
|
|
78876
78623
|
} else if (cell && Object.prototype.toString.call(cell) === '[object Object]') {
|
|
78877
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
78878
78624
|
const _a = cell,
|
|
78879
78625
|
{
|
|
78880
78626
|
children: cellChildren,
|
|
@@ -78961,9 +78707,6 @@ var SectionRow_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
78961
78707
|
}
|
|
78962
78708
|
return t;
|
|
78963
78709
|
};
|
|
78964
|
-
/* eslint-disable max-len */
|
|
78965
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
78966
|
-
/* eslint-disable eqeqeq */
|
|
78967
78710
|
|
|
78968
78711
|
|
|
78969
78712
|
|
|
@@ -79149,9 +78892,6 @@ var Body_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
79149
78892
|
}
|
|
79150
78893
|
return t;
|
|
79151
78894
|
};
|
|
79152
|
-
/* eslint-disable eqeqeq */
|
|
79153
|
-
/* eslint-disable @typescript-eslint/member-ordering */
|
|
79154
|
-
/* eslint-disable max-len */
|
|
79155
78895
|
|
|
79156
78896
|
|
|
79157
78897
|
|
|
@@ -79265,7 +79005,6 @@ class Body extends BaseComponent {
|
|
|
79265
79005
|
flattenedColumns
|
|
79266
79006
|
} = this.context;
|
|
79267
79007
|
const virtualizedItem = get_default()(virtualizedData, [index], {});
|
|
79268
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
79269
79008
|
const {
|
|
79270
79009
|
key,
|
|
79271
79010
|
parentKeys,
|
|
@@ -79284,7 +79023,6 @@ class Body extends BaseComponent {
|
|
|
79284
79023
|
index,
|
|
79285
79024
|
expandBtnShouldInRow
|
|
79286
79025
|
});
|
|
79287
|
-
// eslint-disable-next-line no-nested-ternary
|
|
79288
79026
|
return sectionRow ? this.renderSectionRow(props) : expandedRow ? this.renderExpandedRow(props) : this.renderBaseRow(props);
|
|
79289
79027
|
};
|
|
79290
79028
|
// virtualized List innerElementType
|
|
@@ -79309,14 +79047,12 @@ class Body extends BaseComponent {
|
|
|
79309
79047
|
children
|
|
79310
79048
|
} = props,
|
|
79311
79049
|
rest = Body_rest(props, ["children"]);
|
|
79312
|
-
// eslint-disable-next-line react/no-this-in-sfc
|
|
79313
79050
|
const {
|
|
79314
79051
|
handleWheel,
|
|
79315
79052
|
prefixCls,
|
|
79316
79053
|
emptySlot,
|
|
79317
79054
|
dataSource
|
|
79318
79055
|
} = this.props;
|
|
79319
|
-
// eslint-disable-next-line react/no-this-in-sfc
|
|
79320
79056
|
const tableWidth = this.getVirtualizedRowWidth();
|
|
79321
79057
|
const tableCls = classnames_default()(`${prefixCls}`, `${prefixCls}-fixed`);
|
|
79322
79058
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", Object.assign({}, rest, {
|
|
@@ -79330,7 +79066,6 @@ class Body extends BaseComponent {
|
|
|
79330
79066
|
}
|
|
79331
79067
|
},
|
|
79332
79068
|
onScroll: function () {
|
|
79333
|
-
// eslint-disable-next-line react/no-this-in-sfc
|
|
79334
79069
|
_this.handleVirtualizedBodyScroll(...arguments);
|
|
79335
79070
|
if (rest.onScroll) {
|
|
79336
79071
|
rest.onScroll(...arguments);
|
|
@@ -79894,15 +79629,7 @@ var Table_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
79894
79629
|
}
|
|
79895
79630
|
return t;
|
|
79896
79631
|
};
|
|
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
79632
|
/* eslint-disable react/no-did-update-set-state */
|
|
79904
|
-
/* eslint-disable eqeqeq */
|
|
79905
|
-
/* eslint-disable max-lines-per-function */
|
|
79906
79633
|
|
|
79907
79634
|
|
|
79908
79635
|
|
|
@@ -80735,7 +80462,6 @@ class Table extends BaseComponent {
|
|
|
80735
80462
|
} = this.props;
|
|
80736
80463
|
const childrenColumnName = 'children';
|
|
80737
80464
|
let columns = cloneDeep(cachedColumns);
|
|
80738
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
80739
80465
|
const addFns = function () {
|
|
80740
80466
|
let columns = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
80741
80467
|
if (Array.isArray(columns) && columns.length) {
|
|
@@ -81012,7 +80738,6 @@ class Table extends BaseComponent {
|
|
|
81012
80738
|
}
|
|
81013
80739
|
if (Object.keys(states).length) {
|
|
81014
80740
|
const {
|
|
81015
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
81016
80741
|
pagination: mergedStatePagination = null,
|
|
81017
80742
|
queries: stateQueries = null,
|
|
81018
80743
|
dataSource: stateDataSource = null
|
|
@@ -81371,11 +81096,7 @@ var ResizableTable_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81371
81096
|
}
|
|
81372
81097
|
return t;
|
|
81373
81098
|
};
|
|
81374
|
-
/* eslint-disable max-len */
|
|
81375
|
-
/* eslint-disable @typescript-eslint/no-shadow */
|
|
81376
81099
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
81377
|
-
/* eslint-disable react/destructuring-assignment */
|
|
81378
|
-
/* eslint-disable max-lines-per-function */
|
|
81379
81100
|
|
|
81380
81101
|
|
|
81381
81102
|
|
|
@@ -81855,7 +81576,6 @@ class TabBar extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
|
|
|
81855
81576
|
this.props.onTabClick(itemKey, e);
|
|
81856
81577
|
if (this.props.collapsible) {
|
|
81857
81578
|
const key = this._getItemKey(itemKey);
|
|
81858
|
-
// eslint-disable-next-line max-len
|
|
81859
81579
|
const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${tabs_constants_cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
|
|
81860
81580
|
tabItem.scrollIntoView({
|
|
81861
81581
|
behavior: 'smooth',
|
|
@@ -81894,7 +81614,6 @@ class TabBar extends (external_root_React_commonjs2_react_commonjs_react_amd_rea
|
|
|
81894
81614
|
return;
|
|
81895
81615
|
}
|
|
81896
81616
|
const key = this._getItemKey(lastItem.itemKey);
|
|
81897
|
-
// eslint-disable-next-line max-len
|
|
81898
81617
|
const tabItem = document.querySelector(`[data-uuid="${this.state.uuid}"] .${tabs_constants_cssClasses.TABS_TAB}[data-scrollkey="${key}"]`);
|
|
81899
81618
|
tabItem.scrollIntoView({
|
|
81900
81619
|
behavior: 'smooth',
|
|
@@ -82731,7 +82450,6 @@ Timeline.defaultProps = {
|
|
|
82731
82450
|
/* harmony default export */ const timeline_0 = (Timeline);
|
|
82732
82451
|
;// CONCATENATED MODULE: ../semi-foundation/timePicker/utils/index.ts
|
|
82733
82452
|
|
|
82734
|
-
/* eslint-disable max-len */
|
|
82735
82453
|
|
|
82736
82454
|
|
|
82737
82455
|
|
|
@@ -82862,7 +82580,6 @@ const isTimeFormatLike = (time, formatToken) => {
|
|
|
82862
82580
|
;// CONCATENATED MODULE: ../semi-foundation/timePicker/foundation.ts
|
|
82863
82581
|
|
|
82864
82582
|
|
|
82865
|
-
/* eslint-disable max-len */
|
|
82866
82583
|
|
|
82867
82584
|
|
|
82868
82585
|
|
|
@@ -83240,9 +82957,7 @@ class inputFoundation_TimePickerFoundation extends foundation {
|
|
|
83240
82957
|
constructor(adapter) {
|
|
83241
82958
|
super(Object.assign({}, adapter));
|
|
83242
82959
|
}
|
|
83243
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
83244
82960
|
init() {}
|
|
83245
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
83246
82961
|
destroy() {}
|
|
83247
82962
|
handleFocus(e) {
|
|
83248
82963
|
this.storeCursor();
|
|
@@ -83293,7 +83008,6 @@ var TimeInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
83293
83008
|
}
|
|
83294
83009
|
return t;
|
|
83295
83010
|
};
|
|
83296
|
-
/* eslint-disable no-unused-vars */
|
|
83297
83011
|
|
|
83298
83012
|
|
|
83299
83013
|
|
|
@@ -83496,7 +83210,6 @@ var TimePicker_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
83496
83210
|
}
|
|
83497
83211
|
return t;
|
|
83498
83212
|
};
|
|
83499
|
-
/* eslint-disable no-unused-vars */
|
|
83500
83213
|
|
|
83501
83214
|
|
|
83502
83215
|
|
|
@@ -84065,7 +83778,6 @@ class ToastFoundation extends foundation {
|
|
|
84065
83778
|
}
|
|
84066
83779
|
;// CONCATENATED MODULE: ./toast/toast.tsx
|
|
84067
83780
|
|
|
84068
|
-
/* eslint-disable max-len */
|
|
84069
83781
|
|
|
84070
83782
|
|
|
84071
83783
|
|
|
@@ -84287,7 +83999,6 @@ function useToast() {
|
|
|
84287
83999
|
const mergeConfig = Object.assign(Object.assign({}, config), {
|
|
84288
84000
|
id
|
|
84289
84001
|
});
|
|
84290
|
-
// eslint-disable-next-line prefer-const
|
|
84291
84002
|
let closeFunc;
|
|
84292
84003
|
const toast = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(useToast_HookToast, Object.assign({}, mergeConfig, {
|
|
84293
84004
|
key: id,
|
|
@@ -84329,7 +84040,6 @@ function useToast() {
|
|
|
84329
84040
|
}, /*#__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
84041
|
}
|
|
84331
84042
|
;// CONCATENATED MODULE: ./toast/index.tsx
|
|
84332
|
-
/* eslint-disable no-param-reassign */
|
|
84333
84043
|
|
|
84334
84044
|
|
|
84335
84045
|
|
|
@@ -84984,7 +84694,6 @@ class TreeFoundation extends foundation {
|
|
|
84984
84694
|
node: data
|
|
84985
84695
|
});
|
|
84986
84696
|
}
|
|
84987
|
-
// eslint-disable-next-line max-len
|
|
84988
84697
|
handleNodeLoad(loadedKeys, loadingKeys, data, resolve) {
|
|
84989
84698
|
const {
|
|
84990
84699
|
loadData,
|
|
@@ -85582,7 +85291,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
85582
85291
|
className: `${treeNode_prefixcls}-item-icon`
|
|
85583
85292
|
});
|
|
85584
85293
|
} else {
|
|
85585
|
-
// eslint-disable-next-line max-len
|
|
85586
85294
|
itemIcon = expanded ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconFolderOpen, {
|
|
85587
85295
|
className: `${treeNode_prefixcls}-item-icon`
|
|
85588
85296
|
}) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconFolder, {
|
|
@@ -85607,7 +85315,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
85607
85315
|
"x-semi-prop": "emptyContent"
|
|
85608
85316
|
}, emptyContent));
|
|
85609
85317
|
}
|
|
85610
|
-
// eslint-disable-next-line max-lines-per-function
|
|
85611
85318
|
render() {
|
|
85612
85319
|
const _a = this.props,
|
|
85613
85320
|
{
|
|
@@ -85622,7 +85329,6 @@ class TreeNode extends external_root_React_commonjs2_react_commonjs_react_amd_re
|
|
|
85622
85329
|
empty,
|
|
85623
85330
|
filtered,
|
|
85624
85331
|
treeNodeFilterProp,
|
|
85625
|
-
// eslint-disable-next-line no-unused-vars
|
|
85626
85332
|
display,
|
|
85627
85333
|
style
|
|
85628
85334
|
} = _a,
|
|
@@ -85902,7 +85608,6 @@ var tree_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
85902
85608
|
}
|
|
85903
85609
|
return t;
|
|
85904
85610
|
};
|
|
85905
|
-
/* eslint-disable max-lines-per-function */
|
|
85906
85611
|
|
|
85907
85612
|
|
|
85908
85613
|
|
|
@@ -86120,7 +85825,6 @@ class Tree extends BaseComponent {
|
|
|
86120
85825
|
};
|
|
86121
85826
|
// Update the data of tree in state
|
|
86122
85827
|
if (needUpdate('treeData') || props.draggable && needUpdateData()) {
|
|
86123
|
-
// eslint-disable-next-line prefer-destructuring
|
|
86124
85828
|
treeData = props.treeData;
|
|
86125
85829
|
newState.treeData = treeData;
|
|
86126
85830
|
const entitiesMap = convertDataToEntities(treeData);
|
|
@@ -86660,7 +86364,6 @@ const treeSelect_constants_numbers = {};
|
|
|
86660
86364
|
|
|
86661
86365
|
|
|
86662
86366
|
|
|
86663
|
-
// eslint-disable-next-line max-len
|
|
86664
86367
|
class TreeSelectFoundation extends foundation {
|
|
86665
86368
|
constructor(adapter) {
|
|
86666
86369
|
super(Object.assign({}, adapter));
|
|
@@ -87598,7 +87301,6 @@ class TreeSelect extends BaseComponent {
|
|
|
87598
87301
|
renderKeys = [...realCheckedKeys];
|
|
87599
87302
|
}
|
|
87600
87303
|
const tagList = [];
|
|
87601
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87602
87304
|
renderKeys.forEach((key, index) => {
|
|
87603
87305
|
const item = keyEntities[key] && keyEntities[key].data.key === key ? keyEntities[key].data : this.getDataForKeyNotInKeyEntities(key);
|
|
87604
87306
|
const onClose = (tagContent, e) => {
|
|
@@ -87817,7 +87519,6 @@ class TreeSelect extends BaseComponent {
|
|
|
87817
87519
|
const triggerRenderKeys = multiple ? normalizeKeyList([...checkedKeys], keyEntities, leafOnly, true) : selectedKeys;
|
|
87818
87520
|
const inner = useCustomTrigger ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(trigger, {
|
|
87819
87521
|
inputValue: inputValue,
|
|
87820
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87821
87522
|
value: triggerRenderKeys.map(key => get_default()(keyEntities, [key, 'data'])),
|
|
87822
87523
|
disabled: disabled,
|
|
87823
87524
|
placeholder: placeholder,
|
|
@@ -87864,7 +87565,6 @@ class TreeSelect extends BaseComponent {
|
|
|
87864
87565
|
"aria-required": this.props['aria-required']
|
|
87865
87566
|
}, mouseEvent, this.getDataAttr(rest)), inner);
|
|
87866
87567
|
};
|
|
87867
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
87868
87568
|
this.renderTagItem = (key, idx) => {
|
|
87869
87569
|
const {
|
|
87870
87570
|
keyEntities,
|
|
@@ -88088,7 +87788,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88088
87788
|
const {
|
|
88089
87789
|
data
|
|
88090
87790
|
} = treeNode;
|
|
88091
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
88092
87791
|
const {
|
|
88093
87792
|
key
|
|
88094
87793
|
} = data;
|
|
@@ -88112,7 +87811,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88112
87811
|
const {
|
|
88113
87812
|
data
|
|
88114
87813
|
} = treeNode;
|
|
88115
|
-
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
88116
87814
|
const {
|
|
88117
87815
|
key
|
|
88118
87816
|
} = data;
|
|
@@ -88300,7 +87998,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88300
87998
|
this.adapter.rePositionDropdown();
|
|
88301
87999
|
};
|
|
88302
88000
|
}
|
|
88303
|
-
// eslint-disable-next-line max-lines-per-function
|
|
88304
88001
|
static getDerivedStateFromProps(props, prevState) {
|
|
88305
88002
|
const {
|
|
88306
88003
|
prevProps,
|
|
@@ -88429,7 +88126,6 @@ class TreeSelect extends BaseComponent {
|
|
|
88429
88126
|
const clickOutsideHandler = e => {
|
|
88430
88127
|
const optionInstance = this.optionsRef && this.optionsRef.current;
|
|
88431
88128
|
const triggerDom = this.triggerRef && this.triggerRef.current;
|
|
88432
|
-
// eslint-disable-next-line
|
|
88433
88129
|
const optionsDom = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default().findDOMNode(optionInstance);
|
|
88434
88130
|
const target = e.target;
|
|
88435
88131
|
if (optionsDom && (!optionsDom.contains(target) || !optionsDom.contains(target.parentNode)) && triggerDom && !triggerDom.contains(target)) {
|
|
@@ -90210,7 +89906,6 @@ var upload_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
90210
89906
|
}
|
|
90211
89907
|
return t;
|
|
90212
89908
|
};
|
|
90213
|
-
/* eslint-disable max-len */
|
|
90214
89909
|
|
|
90215
89910
|
|
|
90216
89911
|
|
|
@@ -90913,7 +90608,6 @@ function _generateSelectedItems(value, data) {
|
|
|
90913
90608
|
|
|
90914
90609
|
|
|
90915
90610
|
|
|
90916
|
-
// eslint-disable-next-line max-len
|
|
90917
90611
|
class TransferFoundation extends foundation {
|
|
90918
90612
|
constructor(adapter) {
|
|
90919
90613
|
super(Object.assign({}, adapter));
|
|
@@ -91169,7 +90863,6 @@ const transfer_SortableList = sortableContainer(_ref => {
|
|
|
91169
90863
|
index: index,
|
|
91170
90864
|
item: item
|
|
91171
90865
|
})))
|
|
91172
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
91173
90866
|
// @ts-ignore see reasons: https://github.com/clauderic/react-sortable-hoc/issues/206
|
|
91174
90867
|
;
|
|
91175
90868
|
}, {
|
|
@@ -91192,12 +90885,10 @@ class Transfer extends BaseComponent {
|
|
|
91192
90885
|
inputValue: ''
|
|
91193
90886
|
};
|
|
91194
90887
|
if (Boolean(dataSource) && isArray_default()(dataSource)) {
|
|
91195
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
91196
90888
|
// @ts-ignore Avoid reporting errors this.state.xxx is read-only
|
|
91197
90889
|
this.state.data = _generateDataByType(dataSource, type);
|
|
91198
90890
|
}
|
|
91199
90891
|
if (Boolean(defaultValue) && isArray_default()(defaultValue)) {
|
|
91200
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
91201
90892
|
// @ts-ignore Avoid reporting errors this.state.xxx is read-only
|
|
91202
90893
|
this.state.selectedItems = _generateSelectedItems(defaultValue, this.state.data);
|
|
91203
90894
|
}
|
|
@@ -93269,9 +92960,6 @@ var form_utils_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
93269
92960
|
}
|
|
93270
92961
|
return t;
|
|
93271
92962
|
};
|
|
93272
|
-
/* eslint-disable prefer-destructuring */
|
|
93273
|
-
/* eslint-disable prefer-const */
|
|
93274
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
93275
92963
|
|
|
93276
92964
|
/**
|
|
93277
92965
|
*
|
|
@@ -93456,7 +93144,6 @@ function bothEmptyArray(val, otherVal) {
|
|
|
93456
93144
|
|
|
93457
93145
|
|
|
93458
93146
|
|
|
93459
|
-
/* eslint-disable prefer-const, max-len */
|
|
93460
93147
|
|
|
93461
93148
|
|
|
93462
93149
|
|
|
@@ -93608,13 +93295,15 @@ class FormFoundation extends foundation {
|
|
|
93608
93295
|
maybePromisedErrors = errors;
|
|
93609
93296
|
}
|
|
93610
93297
|
if (!maybePromisedErrors) {
|
|
93611
|
-
|
|
93298
|
+
const _values = this._adapter.cloneDeep(values);
|
|
93299
|
+
resolve(_values);
|
|
93612
93300
|
this.injectErrorToField({});
|
|
93613
93301
|
} else if (isPromise(maybePromisedErrors)) {
|
|
93614
93302
|
maybePromisedErrors.then(result => {
|
|
93615
93303
|
// validate success,clear error
|
|
93616
93304
|
if (!result) {
|
|
93617
|
-
|
|
93305
|
+
const _values = this._adapter.cloneDeep(values);
|
|
93306
|
+
resolve(_values);
|
|
93618
93307
|
this.injectErrorToField({});
|
|
93619
93308
|
} else {
|
|
93620
93309
|
this.data.errors = result;
|
|
@@ -93668,7 +93357,8 @@ class FormFoundation extends foundation {
|
|
|
93668
93357
|
this._adapter.forceUpdate();
|
|
93669
93358
|
const errors = this.getError();
|
|
93670
93359
|
if (this._isValid(targetFields)) {
|
|
93671
|
-
|
|
93360
|
+
const _values = this._adapter.cloneDeep(values);
|
|
93361
|
+
resolve(_values);
|
|
93672
93362
|
} else {
|
|
93673
93363
|
this._autoScroll();
|
|
93674
93364
|
reject(errors);
|
|
@@ -94144,7 +93834,6 @@ class FormFoundation extends foundation {
|
|
|
94144
93834
|
}
|
|
94145
93835
|
}
|
|
94146
93836
|
;// CONCATENATED MODULE: ./form/context.tsx
|
|
94147
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
94148
93837
|
|
|
94149
93838
|
const FormStateContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({});
|
|
94150
93839
|
FormStateContext.displayName = 'FormState';
|
|
@@ -94157,7 +93846,6 @@ const ArrayFieldContext = /*#__PURE__*/external_root_React_commonjs2_react_commo
|
|
|
94157
93846
|
});
|
|
94158
93847
|
|
|
94159
93848
|
;// CONCATENATED MODULE: ./form/errorMessage.tsx
|
|
94160
|
-
/* eslint-disable prefer-template */
|
|
94161
93849
|
|
|
94162
93850
|
|
|
94163
93851
|
|
|
@@ -94254,7 +93942,6 @@ var slot_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
94254
93942
|
}
|
|
94255
93943
|
return t;
|
|
94256
93944
|
};
|
|
94257
|
-
/* eslint-disable max-lines-per-function, prefer-destructuring, prefer-const, @typescript-eslint/no-unused-vars */
|
|
94258
93945
|
|
|
94259
93946
|
|
|
94260
93947
|
|
|
@@ -94275,7 +93962,6 @@ const FormSlot = props => {
|
|
|
94275
93962
|
labelAlign = formProps.labelAlign;
|
|
94276
93963
|
labelPosition = formProps.labelPosition ? formProps.labelPosition : labelPosition;
|
|
94277
93964
|
} catch (error) {}
|
|
94278
|
-
// eslint-disable-next-line react/destructuring-assignment
|
|
94279
93965
|
props.labelPosition ? labelPosition = props.labelPosition : null;
|
|
94280
93966
|
let {
|
|
94281
93967
|
children,
|
|
@@ -94381,7 +94067,6 @@ const FormSlot = props => {
|
|
|
94381
94067
|
};
|
|
94382
94068
|
/* harmony default export */ const slot = (FormSlot);
|
|
94383
94069
|
;// CONCATENATED MODULE: ./form/section.tsx
|
|
94384
|
-
/* eslint-disable prefer-template */
|
|
94385
94070
|
|
|
94386
94071
|
|
|
94387
94072
|
|
|
@@ -94431,7 +94116,6 @@ var group_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
94431
94116
|
}
|
|
94432
94117
|
return t;
|
|
94433
94118
|
};
|
|
94434
|
-
/* eslint-disable react/destructuring-assignment */
|
|
94435
94119
|
|
|
94436
94120
|
|
|
94437
94121
|
|
|
@@ -94591,7 +94275,7 @@ function useStateWithGetter(initial) {
|
|
|
94591
94275
|
return [state, set, get];
|
|
94592
94276
|
}
|
|
94593
94277
|
;// CONCATENATED MODULE: ./form/hoc/withField.tsx
|
|
94594
|
-
/* eslint-disable
|
|
94278
|
+
/* eslint-disable react-hooks/rules-of-hooks */
|
|
94595
94279
|
|
|
94596
94280
|
|
|
94597
94281
|
|
|
@@ -94744,9 +94428,7 @@ function withField(Component, opts) {
|
|
|
94744
94428
|
const rootPromise = new Promise((resolve, reject) => {
|
|
94745
94429
|
validator.validate(model, {
|
|
94746
94430
|
first: stopValidateWithError
|
|
94747
|
-
},
|
|
94748
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
94749
|
-
(errors, fields) => {}).then(res => {
|
|
94431
|
+
}, (errors, fields) => {}).then(res => {
|
|
94750
94432
|
if (validatePromise.current !== rootPromise) {
|
|
94751
94433
|
return;
|
|
94752
94434
|
}
|
|
@@ -94765,7 +94447,6 @@ function withField(Component, opts) {
|
|
|
94765
94447
|
if (errors && fields) {
|
|
94766
94448
|
let messages = errors.map(e => e.message);
|
|
94767
94449
|
if (messages.length === 1) {
|
|
94768
|
-
// eslint-disable-next-line prefer-destructuring
|
|
94769
94450
|
messages = messages[0];
|
|
94770
94451
|
}
|
|
94771
94452
|
updateError(messages, callOpts);
|
|
@@ -94942,7 +94623,6 @@ function withField(Component, opts) {
|
|
|
94942
94623
|
useIsomorphicEffect(() => {
|
|
94943
94624
|
// register
|
|
94944
94625
|
if (typeof field === 'undefined') {
|
|
94945
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
94946
94626
|
return () => {};
|
|
94947
94627
|
}
|
|
94948
94628
|
// log('register: ' + field);
|
|
@@ -95106,7 +94786,6 @@ function withField(Component, opts) {
|
|
|
95106
94786
|
// eslint-disable-next-line
|
|
95107
94787
|
/* harmony default export */ const hoc_withField = (withField);
|
|
95108
94788
|
;// CONCATENATED MODULE: ./form/field.tsx
|
|
95109
|
-
/* eslint-disable max-len */
|
|
95110
94789
|
|
|
95111
94790
|
// Basic component
|
|
95112
94791
|
|
|
@@ -95184,7 +94863,6 @@ var baseForm_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
95184
94863
|
}
|
|
95185
94864
|
return t;
|
|
95186
94865
|
};
|
|
95187
|
-
/* eslint-disable prefer-template, max-len, @typescript-eslint/no-unused-vars */
|
|
95188
94866
|
|
|
95189
94867
|
|
|
95190
94868
|
|
|
@@ -95501,7 +95179,6 @@ function withFormApi(Component) {
|
|
|
95501
95179
|
;// CONCATENATED MODULE: ./form/arrayField.tsx
|
|
95502
95180
|
|
|
95503
95181
|
|
|
95504
|
-
/* eslint-disable react/destructuring-assignment */
|
|
95505
95182
|
|
|
95506
95183
|
|
|
95507
95184
|
|
|
@@ -96947,7 +96624,6 @@ class PreviewInnerFoundation extends foundation {
|
|
|
96947
96624
|
;// CONCATENATED MODULE: ./image/previewInner.tsx
|
|
96948
96625
|
|
|
96949
96626
|
|
|
96950
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
96951
96627
|
|
|
96952
96628
|
|
|
96953
96629
|
|
|
@@ -97455,8 +97131,6 @@ var image_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
97455
97131
|
}
|
|
97456
97132
|
return t;
|
|
97457
97133
|
};
|
|
97458
|
-
/* eslint-disable jsx-a11y/click-events-have-key-events */
|
|
97459
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
97460
97134
|
|
|
97461
97135
|
|
|
97462
97136
|
|
|
@@ -97620,36 +97294,31 @@ class image_Image extends BaseComponent {
|
|
|
97620
97294
|
const showPreviewCursor = preview && loadStatus === "success";
|
|
97621
97295
|
const previewSrc = isObject_default()(preview) ? (_a = preview.src) !== null && _a !== void 0 ? _a : src : src;
|
|
97622
97296
|
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
|
-
);
|
|
97297
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
97298
|
+
style: outerStyle,
|
|
97299
|
+
className: outerCls,
|
|
97300
|
+
onClick: this.handleClick
|
|
97301
|
+
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("img", Object.assign({
|
|
97302
|
+
ref: this.imgRef
|
|
97303
|
+
}, restProps, {
|
|
97304
|
+
src: this.isInGroup() && this.isLazyLoad() ? undefined : src,
|
|
97305
|
+
"data-src": src,
|
|
97306
|
+
alt: alt,
|
|
97307
|
+
className: classnames_default()(`${image_prefixCls}-img`, {
|
|
97308
|
+
[`${image_prefixCls}-img-preview`]: showPreviewCursor,
|
|
97309
|
+
[`${image_prefixCls}-img-error`]: loadStatus === "error"
|
|
97310
|
+
}),
|
|
97311
|
+
width: width,
|
|
97312
|
+
height: height,
|
|
97313
|
+
crossOrigin: crossOrigin,
|
|
97314
|
+
onError: this.handleError,
|
|
97315
|
+
onLoad: this.handleLoaded
|
|
97316
|
+
})), loadStatus !== "success" && this.renderExtra(), canPreview && /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(PreviewInner, Object.assign({}, previewProps, {
|
|
97317
|
+
src: previewSrc,
|
|
97318
|
+
visible: previewVisible,
|
|
97319
|
+
onVisibleChange: this.handlePreviewVisibleChange,
|
|
97320
|
+
crossOrigin: !isUndefined_default()(crossOrigin) ? crossOrigin : previewProps === null || previewProps === void 0 ? void 0 : previewProps.crossOrigin
|
|
97321
|
+
})));
|
|
97653
97322
|
}
|
|
97654
97323
|
}
|
|
97655
97324
|
image_Image.isSemiImage = true;
|