@douyinfe/semi-ui 2.8.0-beta.1 → 2.8.2
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/_base/_story/index.scss +0 -1
- package/_base/baseComponent.tsx +2 -1
- package/_portal/index.tsx +2 -1
- package/anchor/index.tsx +2 -1
- package/anchor/link.tsx +2 -1
- package/autoComplete/index.tsx +2 -2
- package/avatar/interface.ts +2 -2
- package/backtop/index.tsx +1 -0
- package/badge/index.tsx +4 -2
- package/banner/index.tsx +1 -0
- package/breadcrumb/bread-context.tsx +2 -2
- package/breadcrumb/index.tsx +2 -2
- package/breadcrumb/item.tsx +11 -3
- package/button/Button.tsx +2 -1
- package/button/buttonGroup.tsx +2 -1
- package/calendar/_story/Demo.tsx +3 -3
- package/card/cardGroup.tsx +1 -0
- package/card/index.tsx +1 -0
- package/cascader/index.tsx +3 -2
- package/cascader/item.tsx +3 -1
- package/checkbox/checkbox.tsx +4 -2
- package/checkbox/checkboxGroup.tsx +1 -1
- package/checkbox/context.ts +3 -3
- package/collapse/index.tsx +1 -0
- package/collapse/item.tsx +3 -0
- package/collapsible/index.tsx +2 -2
- package/configProvider/context.tsx +1 -1
- package/datePicker/datePicker.tsx +2 -1
- package/descriptions/index.tsx +3 -2
- package/descriptions/item.tsx +4 -1
- package/dist/css/semi.css +1 -1
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +80 -43
- 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/dropdown/context.ts +6 -1
- package/dropdown/dropdownItem.tsx +2 -1
- package/dropdown/dropdownTitle.tsx +2 -1
- package/dropdown/index.tsx +3 -1
- package/empty/index.tsx +1 -1
- package/form/arrayField.tsx +1 -0
- package/form/baseForm.tsx +3 -2
- package/form/group.tsx +2 -0
- package/form/hoc/withField.tsx +1 -1
- package/form/label.tsx +1 -0
- package/form/section.tsx +1 -1
- package/form/slot.tsx +2 -0
- package/grid/col.tsx +3 -1
- package/grid/row.tsx +5 -1
- package/layout/Sider.tsx +3 -1
- package/layout/index.tsx +2 -0
- package/layout/layout-context.ts +1 -1
- package/lib/cjs/_base/baseComponent.d.ts +2 -1
- package/lib/cjs/_portal/index.d.ts +3 -1
- package/lib/cjs/anchor/index.d.ts +2 -1
- package/lib/cjs/anchor/link.d.ts +3 -2
- package/lib/cjs/autoComplete/index.d.ts +2 -2
- package/lib/cjs/avatar/avatarGroup.d.ts +1 -1
- package/lib/cjs/avatar/interface.d.ts +2 -2
- package/lib/cjs/backtop/index.d.ts +1 -0
- package/lib/cjs/badge/index.d.ts +4 -2
- package/lib/cjs/banner/index.d.ts +2 -1
- package/lib/cjs/breadcrumb/bread-context.d.ts +2 -2
- package/lib/cjs/breadcrumb/index.d.ts +2 -2
- package/lib/cjs/breadcrumb/item.d.ts +15 -3
- package/lib/cjs/button/Button.d.ts +2 -1
- package/lib/cjs/button/buttonGroup.d.ts +1 -0
- package/lib/cjs/calendar/timeCol.d.ts +1 -1
- package/lib/cjs/card/cardGroup.d.ts +1 -0
- package/lib/cjs/card/index.d.ts +2 -1
- package/lib/cjs/cascader/index.d.ts +5 -3
- package/lib/cjs/cascader/item.d.ts +3 -1
- package/lib/cjs/checkbox/checkbox.d.ts +5 -11
- package/lib/cjs/checkbox/checkbox.js +1 -1
- package/lib/cjs/checkbox/checkboxGroup.d.ts +1 -1
- package/lib/cjs/checkbox/checkboxInner.d.ts +1 -10
- package/lib/cjs/checkbox/context.d.ts +3 -3
- package/lib/cjs/collapse/index.d.ts +1 -0
- package/lib/cjs/collapse/item.d.ts +2 -0
- package/lib/cjs/collapsible/index.d.ts +1 -1
- package/lib/cjs/configProvider/index.d.ts +1 -1
- package/lib/cjs/datePicker/datePicker.d.ts +3 -1
- package/lib/cjs/datePicker/insetInput.d.ts +1 -0
- package/lib/cjs/descriptions/index.d.ts +3 -2
- package/lib/cjs/descriptions/item.d.ts +4 -1
- package/lib/cjs/dropdown/context.d.ts +5 -3
- package/lib/cjs/dropdown/dropdownItem.d.ts +3 -3
- package/lib/cjs/dropdown/dropdownMenu.d.ts +1 -0
- package/lib/cjs/dropdown/dropdownTitle.d.ts +3 -3
- package/lib/cjs/dropdown/index.d.ts +3 -3
- package/lib/cjs/empty/index.d.ts +1 -1
- package/lib/cjs/form/arrayField.d.ts +1 -0
- package/lib/cjs/form/baseForm.d.ts +1 -1
- package/lib/cjs/form/baseForm.js +1 -1
- package/lib/cjs/form/group.d.ts +3 -1
- package/lib/cjs/form/label.d.ts +1 -0
- package/lib/cjs/form/section.d.ts +1 -1
- package/lib/cjs/form/slot.js +2 -0
- package/lib/cjs/grid/col.d.ts +3 -3
- package/lib/cjs/grid/row.d.ts +4 -3
- package/lib/cjs/inputNumber/index.d.ts +1 -1
- package/lib/cjs/layout/Sider.d.ts +4 -1
- package/lib/cjs/layout/index.d.ts +2 -0
- package/lib/cjs/list/index.d.ts +1 -0
- package/lib/cjs/list/item.d.ts +5 -1
- package/lib/cjs/list/item.js +5 -1
- package/lib/cjs/modal/Modal.d.ts +1 -0
- package/lib/cjs/modal/ModalContent.d.ts +7 -2
- package/lib/cjs/modal/confirm.d.ts +5 -0
- package/lib/cjs/modal/useModal/index.d.ts +1 -0
- package/lib/cjs/navigation/Footer.d.ts +3 -5
- package/lib/cjs/navigation/Header.d.ts +3 -5
- package/lib/cjs/navigation/Item.d.ts +4 -6
- package/lib/cjs/navigation/OpenIconTransition.d.ts +2 -1
- package/lib/cjs/navigation/SubNav.d.ts +3 -5
- package/lib/cjs/navigation/SubNav.js +2 -2
- package/lib/cjs/navigation/SubNavTransition.d.ts +1 -1
- package/lib/cjs/navigation/nav-context.d.ts +21 -5
- package/lib/cjs/notification/NoticeTransition.d.ts +2 -2
- package/lib/cjs/notification/index.d.ts +3 -1
- package/lib/cjs/notification/notice.d.ts +3 -1
- package/lib/cjs/notification/useNotification/index.d.ts +1 -0
- package/lib/cjs/overflowList/intersectionObserver.d.ts +3 -2
- package/lib/cjs/pagination/index.d.ts +3 -1
- package/lib/cjs/pagination/index.js +15 -11
- package/lib/cjs/popconfirm/index.d.ts +4 -2
- package/lib/cjs/popover/index.d.ts +3 -1
- package/lib/cjs/radio/radio.d.ts +1 -0
- package/lib/cjs/radio/radioGroup.d.ts +1 -0
- package/lib/cjs/select/index.d.ts +3 -1
- package/lib/cjs/sideSheet/SideSheetContent.d.ts +1 -0
- package/lib/cjs/sideSheet/SideSheetTransition.d.ts +1 -1
- package/lib/cjs/sideSheet/index.d.ts +3 -1
- package/lib/cjs/table/Body/ExpandedRow.d.ts +3 -1
- package/lib/cjs/table/Body/SectionRow.d.ts +3 -1
- package/lib/cjs/table/Table.d.ts +5 -3
- package/lib/cjs/table/TableCell.d.ts +5 -3
- package/lib/cjs/table/TableHeaderRow.d.ts +3 -1
- package/lib/cjs/table/table-context.d.ts +7 -6
- package/lib/cjs/tabs/TabPane.d.ts +3 -1
- package/lib/cjs/tabs/interface.d.ts +2 -1
- package/lib/cjs/tag/group.d.ts +1 -1
- package/lib/cjs/timePicker/Combobox.d.ts +1 -0
- package/lib/cjs/timeline/index.d.ts +2 -1
- package/lib/cjs/timeline/item.d.ts +1 -0
- package/lib/cjs/toast/ToastTransition.d.ts +1 -1
- package/lib/cjs/toast/index.d.ts +8 -16
- package/lib/cjs/toast/toast.d.ts +4 -2
- package/lib/cjs/toast/useToast/index.d.ts +1 -0
- package/lib/cjs/tooltip/index.d.ts +3 -1
- package/lib/cjs/transfer/index.d.ts +3 -3
- package/lib/cjs/transfer/index.js +2 -1
- package/lib/cjs/tree/index.d.ts +13 -11
- package/lib/cjs/tree/nodeList.d.ts +1 -1
- package/lib/cjs/tree/treeContext.d.ts +10 -10
- package/lib/cjs/tree/treeNode.d.ts +11 -9
- package/lib/cjs/tree/treeNode.js +2 -0
- package/lib/cjs/treeSelect/index.d.ts +7 -5
- package/lib/cjs/typography/copyable.d.ts +1 -1
- package/lib/cjs/upload/index.d.ts +2 -2
- package/lib/es/_base/baseComponent.d.ts +2 -1
- package/lib/es/_portal/index.d.ts +3 -1
- package/lib/es/anchor/index.d.ts +2 -1
- package/lib/es/anchor/link.d.ts +3 -2
- package/lib/es/autoComplete/index.d.ts +2 -2
- package/lib/es/avatar/avatarGroup.d.ts +1 -1
- package/lib/es/avatar/interface.d.ts +2 -2
- package/lib/es/backtop/index.d.ts +1 -0
- package/lib/es/badge/index.d.ts +4 -2
- package/lib/es/banner/index.d.ts +2 -1
- package/lib/es/breadcrumb/bread-context.d.ts +2 -2
- package/lib/es/breadcrumb/index.d.ts +2 -2
- package/lib/es/breadcrumb/item.d.ts +15 -3
- package/lib/es/button/Button.d.ts +2 -1
- package/lib/es/button/buttonGroup.d.ts +1 -0
- package/lib/es/calendar/timeCol.d.ts +1 -1
- package/lib/es/card/cardGroup.d.ts +1 -0
- package/lib/es/card/index.d.ts +2 -1
- package/lib/es/cascader/index.d.ts +5 -3
- package/lib/es/cascader/item.d.ts +3 -1
- package/lib/es/checkbox/checkbox.d.ts +5 -11
- package/lib/es/checkbox/checkbox.js +1 -1
- package/lib/es/checkbox/checkboxGroup.d.ts +1 -1
- package/lib/es/checkbox/checkboxInner.d.ts +1 -10
- package/lib/es/checkbox/context.d.ts +3 -3
- package/lib/es/collapse/index.d.ts +1 -0
- package/lib/es/collapse/item.d.ts +2 -0
- package/lib/es/collapsible/index.d.ts +1 -1
- package/lib/es/configProvider/index.d.ts +1 -1
- package/lib/es/datePicker/datePicker.d.ts +3 -1
- package/lib/es/datePicker/insetInput.d.ts +1 -0
- package/lib/es/descriptions/index.d.ts +3 -2
- package/lib/es/descriptions/item.d.ts +4 -1
- package/lib/es/dropdown/context.d.ts +5 -3
- package/lib/es/dropdown/dropdownItem.d.ts +3 -3
- package/lib/es/dropdown/dropdownMenu.d.ts +1 -0
- package/lib/es/dropdown/dropdownTitle.d.ts +3 -3
- package/lib/es/dropdown/index.d.ts +3 -3
- package/lib/es/empty/index.d.ts +1 -1
- package/lib/es/form/arrayField.d.ts +1 -0
- package/lib/es/form/baseForm.d.ts +1 -1
- package/lib/es/form/baseForm.js +1 -1
- package/lib/es/form/group.d.ts +3 -1
- package/lib/es/form/label.d.ts +1 -0
- package/lib/es/form/section.d.ts +1 -1
- package/lib/es/form/slot.js +2 -0
- package/lib/es/grid/col.d.ts +3 -3
- package/lib/es/grid/row.d.ts +4 -3
- package/lib/es/inputNumber/index.d.ts +1 -1
- package/lib/es/layout/Sider.d.ts +4 -1
- package/lib/es/layout/index.d.ts +2 -0
- package/lib/es/list/index.d.ts +1 -0
- package/lib/es/list/item.d.ts +5 -1
- package/lib/es/list/item.js +5 -1
- package/lib/es/modal/Modal.d.ts +1 -0
- package/lib/es/modal/ModalContent.d.ts +7 -2
- package/lib/es/modal/confirm.d.ts +5 -0
- package/lib/es/modal/useModal/index.d.ts +1 -0
- package/lib/es/navigation/Footer.d.ts +3 -5
- package/lib/es/navigation/Header.d.ts +3 -5
- package/lib/es/navigation/Item.d.ts +4 -6
- package/lib/es/navigation/OpenIconTransition.d.ts +2 -1
- package/lib/es/navigation/SubNav.d.ts +3 -5
- package/lib/es/navigation/SubNav.js +2 -2
- package/lib/es/navigation/SubNavTransition.d.ts +1 -1
- package/lib/es/navigation/nav-context.d.ts +21 -5
- package/lib/es/notification/NoticeTransition.d.ts +2 -2
- package/lib/es/notification/index.d.ts +3 -1
- package/lib/es/notification/notice.d.ts +3 -1
- package/lib/es/notification/useNotification/index.d.ts +1 -0
- package/lib/es/overflowList/intersectionObserver.d.ts +3 -2
- package/lib/es/pagination/index.d.ts +3 -1
- package/lib/es/pagination/index.js +15 -11
- package/lib/es/popconfirm/index.d.ts +4 -2
- package/lib/es/popover/index.d.ts +3 -1
- package/lib/es/radio/radio.d.ts +1 -0
- package/lib/es/radio/radioGroup.d.ts +1 -0
- package/lib/es/select/index.d.ts +3 -1
- package/lib/es/sideSheet/SideSheetContent.d.ts +1 -0
- package/lib/es/sideSheet/SideSheetTransition.d.ts +1 -1
- package/lib/es/sideSheet/index.d.ts +3 -1
- package/lib/es/table/Body/ExpandedRow.d.ts +3 -1
- package/lib/es/table/Body/SectionRow.d.ts +3 -1
- package/lib/es/table/Table.d.ts +5 -3
- package/lib/es/table/TableCell.d.ts +5 -3
- package/lib/es/table/TableHeaderRow.d.ts +3 -1
- package/lib/es/table/table-context.d.ts +7 -6
- package/lib/es/tabs/TabPane.d.ts +3 -1
- package/lib/es/tabs/interface.d.ts +2 -1
- package/lib/es/tag/group.d.ts +1 -1
- package/lib/es/timePicker/Combobox.d.ts +1 -0
- package/lib/es/timeline/index.d.ts +2 -1
- package/lib/es/timeline/item.d.ts +1 -0
- package/lib/es/toast/ToastTransition.d.ts +1 -1
- package/lib/es/toast/index.d.ts +8 -16
- package/lib/es/toast/toast.d.ts +4 -2
- package/lib/es/toast/useToast/index.d.ts +1 -0
- package/lib/es/tooltip/index.d.ts +3 -1
- package/lib/es/transfer/index.d.ts +3 -3
- package/lib/es/transfer/index.js +3 -1
- package/lib/es/tree/index.d.ts +13 -11
- package/lib/es/tree/nodeList.d.ts +1 -1
- package/lib/es/tree/treeContext.d.ts +10 -10
- package/lib/es/tree/treeNode.d.ts +11 -9
- package/lib/es/tree/treeNode.js +2 -0
- package/lib/es/treeSelect/index.d.ts +7 -5
- package/lib/es/typography/copyable.d.ts +1 -1
- package/lib/es/upload/index.d.ts +2 -2
- package/list/index.tsx +1 -0
- package/list/item.tsx +6 -1
- package/modal/Modal.tsx +1 -0
- package/modal/ModalContent.tsx +9 -3
- package/navigation/Footer.tsx +3 -1
- package/navigation/Header.tsx +3 -1
- package/navigation/Item.tsx +4 -3
- package/navigation/OpenIconTransition.tsx +2 -1
- package/navigation/SubNav.tsx +4 -3
- package/navigation/SubNavTransition.tsx +1 -1
- package/navigation/nav-context.ts +22 -1
- package/notification/NoticeTransition.tsx +1 -1
- package/notification/index.tsx +3 -1
- package/notification/notice.tsx +3 -1
- package/overflowList/intersectionObserver.tsx +2 -1
- package/package.json +11 -11
- package/pagination/index.tsx +4 -1
- package/popconfirm/index.tsx +3 -1
- package/popover/index.tsx +3 -1
- package/radio/radio.tsx +1 -0
- package/radio/radioGroup.tsx +1 -0
- package/select/index.tsx +2 -1
- package/select/utils.tsx +1 -1
- package/sideSheet/SideSheetContent.tsx +1 -0
- package/sideSheet/SideSheetTransition.tsx +1 -1
- package/sideSheet/index.tsx +3 -2
- package/slider/index.tsx +1 -1
- package/table/Body/ExpandedRow.tsx +3 -1
- package/table/Body/SectionRow.tsx +3 -1
- package/table/Body/index.tsx +3 -2
- package/table/Table.tsx +4 -3
- package/table/TableCell.tsx +6 -4
- package/table/TableHeaderRow.tsx +3 -1
- package/table/table-context.ts +10 -6
- package/tabs/TabPane.tsx +2 -0
- package/tabs/index.tsx +2 -2
- package/tabs/interface.ts +2 -1
- package/tag/group.tsx +5 -5
- package/timePicker/TimePicker.tsx +1 -1
- package/timeline/index.tsx +1 -0
- package/timeline/item.tsx +1 -0
- package/toast/ToastTransition.tsx +1 -1
- package/toast/toast.tsx +3 -1
- package/tooltip/index.tsx +2 -1
- package/transfer/index.tsx +3 -1
- package/tree/index.tsx +12 -11
- package/tree/treeContext.tsx +10 -10
- package/tree/treeNode.tsx +10 -7
- package/treeSelect/index.tsx +5 -4
- package/upload/_story/upload.stories.js +2 -3
- package/upload/index.tsx +1 -1
package/dist/umd/semi-ui.js
CHANGED
|
@@ -45567,7 +45567,7 @@ class checkbox_Checkbox extends baseComponent_BaseComponent {
|
|
|
45567
45567
|
}
|
|
45568
45568
|
|
|
45569
45569
|
isInGroup() {
|
|
45570
|
-
return this.context && this.context.checkboxGroup;
|
|
45570
|
+
return Boolean(this.context && this.context.checkboxGroup);
|
|
45571
45571
|
}
|
|
45572
45572
|
|
|
45573
45573
|
focus() {
|
|
@@ -64250,7 +64250,10 @@ class item_ListItem extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
64250
64250
|
}, main) : null);
|
|
64251
64251
|
}
|
|
64252
64252
|
|
|
64253
|
-
let content =
|
|
64253
|
+
let content =
|
|
64254
|
+
/*#__PURE__*/
|
|
64255
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-noninteractive-element-interactions
|
|
64256
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement("li", {
|
|
64254
64257
|
className: itemCls,
|
|
64255
64258
|
style: style,
|
|
64256
64259
|
onClick: handleClick,
|
|
@@ -64276,6 +64279,7 @@ item_ListItem.propTypes = {
|
|
|
64276
64279
|
main: prop_types_default.a.node,
|
|
64277
64280
|
align: prop_types_default.a.oneOf(list_constants_strings.ALIGN),
|
|
64278
64281
|
className: prop_types_default.a.string,
|
|
64282
|
+
children: prop_types_default.a.node,
|
|
64279
64283
|
style: prop_types_default.a.object,
|
|
64280
64284
|
onClick: prop_types_default.a.func,
|
|
64281
64285
|
onRightClick: prop_types_default.a.func,
|
|
@@ -67864,12 +67868,12 @@ class SubNav_SubNav extends baseComponent_BaseComponent {
|
|
|
67864
67868
|
getIsSelected: itemKey => {
|
|
67865
67869
|
var _context;
|
|
67866
67870
|
|
|
67867
|
-
return Boolean(!isNullOrUndefined(itemKey) && includes_default()(_context = get_default()(this.context, 'selectedKeys', [])).call(_context, itemKey));
|
|
67871
|
+
return Boolean(!isNullOrUndefined(itemKey) && includes_default()(_context = get_default()(this.context, 'selectedKeys', [])).call(_context, String(itemKey)));
|
|
67868
67872
|
},
|
|
67869
67873
|
getIsOpen: () => {
|
|
67870
67874
|
var _context2;
|
|
67871
67875
|
|
|
67872
|
-
return Boolean(this.context && this.context.openKeys && includes_default()(_context2 = this.context.openKeys).call(_context2, this.props.itemKey));
|
|
67876
|
+
return Boolean(this.context && this.context.openKeys && includes_default()(_context2 = this.context.openKeys).call(_context2, String(this.props.itemKey)));
|
|
67873
67877
|
}
|
|
67874
67878
|
});
|
|
67875
67879
|
}
|
|
@@ -75734,17 +75738,21 @@ class pagination_Pagination extends baseComponent_BaseComponent {
|
|
|
75734
75738
|
|
|
75735
75739
|
const itemHeight = 32;
|
|
75736
75740
|
const listHeight = count >= 5 ? itemHeight * 5 : itemHeight * count;
|
|
75737
|
-
return
|
|
75738
|
-
|
|
75739
|
-
|
|
75740
|
-
|
|
75741
|
-
|
|
75742
|
-
|
|
75743
|
-
|
|
75744
|
-
|
|
75745
|
-
|
|
75746
|
-
|
|
75747
|
-
|
|
75741
|
+
return (
|
|
75742
|
+
/*#__PURE__*/
|
|
75743
|
+
// @ts-ignore skip type check cause react-window not update with @types/react 18
|
|
75744
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(FixedSizeList, {
|
|
75745
|
+
className: "".concat(pagination_prefixCls, "-rest-list"),
|
|
75746
|
+
itemData: restList,
|
|
75747
|
+
itemSize: itemHeight,
|
|
75748
|
+
width: 78,
|
|
75749
|
+
itemCount: count,
|
|
75750
|
+
height: listHeight,
|
|
75751
|
+
style: {
|
|
75752
|
+
direction
|
|
75753
|
+
}
|
|
75754
|
+
}, row)
|
|
75755
|
+
);
|
|
75748
75756
|
}
|
|
75749
75757
|
|
|
75750
75758
|
renderSmallPage(locale) {
|
|
@@ -93144,6 +93152,7 @@ class treeNode_TreeNode extends external_root_React_commonjs2_react_commonjs_rea
|
|
|
93144
93152
|
const customLabel = renderFullLabel(assign_default()({}, labelProps));
|
|
93145
93153
|
|
|
93146
93154
|
if (draggable) {
|
|
93155
|
+
// @ts-ignore skip cloneElement type check
|
|
93147
93156
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(customLabel, assign_default()({
|
|
93148
93157
|
ref: this.setRef
|
|
93149
93158
|
}, dragProps));
|
|
@@ -93152,6 +93161,7 @@ class treeNode_TreeNode extends external_root_React_commonjs2_react_commonjs_rea
|
|
|
93152
93161
|
return customLabel;
|
|
93153
93162
|
} else {
|
|
93154
93163
|
// In virtualization, props.style will contain location information
|
|
93164
|
+
// @ts-ignore skip cloneElement type check
|
|
93155
93165
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(customLabel, {
|
|
93156
93166
|
style: assign_default()(assign_default()({}, get_default()(customLabel, ['props', 'style'])), style)
|
|
93157
93167
|
});
|
|
@@ -99474,9 +99484,21 @@ function sortableHandle(WrappedComponent) {
|
|
|
99474
99484
|
_inherits(WithSortableHandle, _React$Component);
|
|
99475
99485
|
|
|
99476
99486
|
function WithSortableHandle() {
|
|
99487
|
+
var _getPrototypeOf2;
|
|
99488
|
+
|
|
99489
|
+
var _this;
|
|
99490
|
+
|
|
99477
99491
|
_classCallCheck(this, WithSortableHandle);
|
|
99478
99492
|
|
|
99479
|
-
|
|
99493
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
99494
|
+
args[_key] = arguments[_key];
|
|
99495
|
+
}
|
|
99496
|
+
|
|
99497
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WithSortableHandle)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
99498
|
+
|
|
99499
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "wrappedInstance", Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createRef"])());
|
|
99500
|
+
|
|
99501
|
+
return _this;
|
|
99480
99502
|
}
|
|
99481
99503
|
|
|
99482
99504
|
_createClass(WithSortableHandle, [{
|
|
@@ -99489,12 +99511,12 @@ function sortableHandle(WrappedComponent) {
|
|
|
99489
99511
|
key: "getWrappedInstance",
|
|
99490
99512
|
value: function getWrappedInstance() {
|
|
99491
99513
|
browser_default()(config.withRef, 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call');
|
|
99492
|
-
return this.
|
|
99514
|
+
return this.wrappedInstance.current;
|
|
99493
99515
|
}
|
|
99494
99516
|
}, {
|
|
99495
99517
|
key: "render",
|
|
99496
99518
|
value: function render() {
|
|
99497
|
-
var ref = config.withRef ?
|
|
99519
|
+
var ref = config.withRef ? this.wrappedInstance : null;
|
|
99498
99520
|
return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"])(WrappedComponent, _extends({
|
|
99499
99521
|
ref: ref
|
|
99500
99522
|
}, this.props));
|
|
@@ -99695,6 +99717,9 @@ function _finallyRethrows(body, finalizer) {
|
|
|
99695
99717
|
|
|
99696
99718
|
return finalizer(false, value);
|
|
99697
99719
|
}
|
|
99720
|
+
var SortableContext = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createContext"])({
|
|
99721
|
+
manager: {}
|
|
99722
|
+
});
|
|
99698
99723
|
function sortableContainer(WrappedComponent) {
|
|
99699
99724
|
var _class, _temp;
|
|
99700
99725
|
|
|
@@ -99933,7 +99958,7 @@ function sortableContainer(WrappedComponent) {
|
|
|
99933
99958
|
});
|
|
99934
99959
|
}
|
|
99935
99960
|
|
|
99936
|
-
_this.listenerNode = event.touches ?
|
|
99961
|
+
_this.listenerNode = event.touches ? event.target : _this.contentWindow;
|
|
99937
99962
|
|
|
99938
99963
|
if (_isKeySorting) {
|
|
99939
99964
|
_this.listenerNode.addEventListener('wheel', _this.handleKeyEnd, true);
|
|
@@ -100018,7 +100043,7 @@ function sortableContainer(WrappedComponent) {
|
|
|
100018
100043
|
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "handleSortMove", function (event) {
|
|
100019
100044
|
var onSortMove = _this.props.onSortMove;
|
|
100020
100045
|
|
|
100021
|
-
if (typeof event.preventDefault === 'function') {
|
|
100046
|
+
if (typeof event.preventDefault === 'function' && event.cancelable) {
|
|
100022
100047
|
event.preventDefault();
|
|
100023
100048
|
}
|
|
100024
100049
|
|
|
@@ -100265,8 +100290,13 @@ function sortableContainer(WrappedComponent) {
|
|
|
100265
100290
|
return node && node.sortableInfo && !node.sortableInfo.disabled && (useDragHandle ? isSortableHandle(target) : target.sortableInfo);
|
|
100266
100291
|
});
|
|
100267
100292
|
|
|
100293
|
+
var manager = new react_sortable_hoc_esm_Manager();
|
|
100268
100294
|
react_sortable_hoc_esm_validateProps(props);
|
|
100269
|
-
_this.manager =
|
|
100295
|
+
_this.manager = manager;
|
|
100296
|
+
_this.wrappedInstance = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createRef"])();
|
|
100297
|
+
_this.sortableContextValue = {
|
|
100298
|
+
manager: manager
|
|
100299
|
+
};
|
|
100270
100300
|
_this.events = {
|
|
100271
100301
|
end: _this.handleEnd,
|
|
100272
100302
|
move: _this.handleMove,
|
|
@@ -100276,13 +100306,6 @@ function sortableContainer(WrappedComponent) {
|
|
|
100276
100306
|
}
|
|
100277
100307
|
|
|
100278
100308
|
_createClass(WithSortableContainer, [{
|
|
100279
|
-
key: "getChildContext",
|
|
100280
|
-
value: function getChildContext() {
|
|
100281
|
-
return {
|
|
100282
|
-
manager: this.manager
|
|
100283
|
-
};
|
|
100284
|
-
}
|
|
100285
|
-
}, {
|
|
100286
100309
|
key: "componentDidMount",
|
|
100287
100310
|
value: function componentDidMount() {
|
|
100288
100311
|
var _this2 = this;
|
|
@@ -100533,7 +100556,7 @@ function sortableContainer(WrappedComponent) {
|
|
|
100533
100556
|
key: "getWrappedInstance",
|
|
100534
100557
|
value: function getWrappedInstance() {
|
|
100535
100558
|
browser_default()(config.withRef, 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call');
|
|
100536
|
-
return this.
|
|
100559
|
+
return this.wrappedInstance.current;
|
|
100537
100560
|
}
|
|
100538
100561
|
}, {
|
|
100539
100562
|
key: "getContainer",
|
|
@@ -100549,10 +100572,12 @@ function sortableContainer(WrappedComponent) {
|
|
|
100549
100572
|
}, {
|
|
100550
100573
|
key: "render",
|
|
100551
100574
|
value: function render() {
|
|
100552
|
-
var ref = config.withRef ?
|
|
100553
|
-
return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"])(
|
|
100575
|
+
var ref = config.withRef ? this.wrappedInstance : null;
|
|
100576
|
+
return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"])(SortableContext.Provider, {
|
|
100577
|
+
value: this.sortableContextValue
|
|
100578
|
+
}, Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"])(WrappedComponent, _extends({
|
|
100554
100579
|
ref: ref
|
|
100555
|
-
}, react_sortable_hoc_esm_omit(this.props, omittedProps)));
|
|
100580
|
+
}, react_sortable_hoc_esm_omit(this.props, omittedProps))));
|
|
100556
100581
|
}
|
|
100557
100582
|
}, {
|
|
100558
100583
|
key: "helperContainer",
|
|
@@ -100593,9 +100618,7 @@ function sortableContainer(WrappedComponent) {
|
|
|
100593
100618
|
}]);
|
|
100594
100619
|
|
|
100595
100620
|
return WithSortableContainer;
|
|
100596
|
-
}(external_root_React_commonjs2_react_commonjs_react_amd_react_["Component"]), _defineProperty(_class, "displayName", provideDisplayName('sortableList', WrappedComponent)), _defineProperty(_class, "defaultProps", react_sortable_hoc_esm_defaultProps), _defineProperty(_class, "propTypes", propTypes),
|
|
100597
|
-
manager: prop_types_default.a.object.isRequired
|
|
100598
|
-
}), _temp;
|
|
100621
|
+
}(external_root_React_commonjs2_react_commonjs_react_amd_react_["Component"]), _defineProperty(_class, "displayName", provideDisplayName('sortableList', WrappedComponent)), _defineProperty(_class, "defaultProps", react_sortable_hoc_esm_defaultProps), _defineProperty(_class, "propTypes", propTypes), _temp;
|
|
100599
100622
|
}
|
|
100600
100623
|
|
|
100601
100624
|
var propTypes$1 = {
|
|
@@ -100614,9 +100637,21 @@ function sortableElement(WrappedComponent) {
|
|
|
100614
100637
|
_inherits(WithSortableElement, _React$Component);
|
|
100615
100638
|
|
|
100616
100639
|
function WithSortableElement() {
|
|
100640
|
+
var _getPrototypeOf2;
|
|
100641
|
+
|
|
100642
|
+
var _this;
|
|
100643
|
+
|
|
100617
100644
|
_classCallCheck(this, WithSortableElement);
|
|
100618
100645
|
|
|
100619
|
-
|
|
100646
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
100647
|
+
args[_key] = arguments[_key];
|
|
100648
|
+
}
|
|
100649
|
+
|
|
100650
|
+
_this = _possibleConstructorReturn(this, (_getPrototypeOf2 = _getPrototypeOf(WithSortableElement)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
100651
|
+
|
|
100652
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "wrappedInstance", Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createRef"])());
|
|
100653
|
+
|
|
100654
|
+
return _this;
|
|
100620
100655
|
}
|
|
100621
100656
|
|
|
100622
100657
|
_createClass(WithSortableElement, [{
|
|
@@ -100677,12 +100712,12 @@ function sortableElement(WrappedComponent) {
|
|
|
100677
100712
|
key: "getWrappedInstance",
|
|
100678
100713
|
value: function getWrappedInstance() {
|
|
100679
100714
|
browser_default()(config.withRef, 'To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call');
|
|
100680
|
-
return this.
|
|
100715
|
+
return this.wrappedInstance.current;
|
|
100681
100716
|
}
|
|
100682
100717
|
}, {
|
|
100683
100718
|
key: "render",
|
|
100684
100719
|
value: function render() {
|
|
100685
|
-
var ref = config.withRef ?
|
|
100720
|
+
var ref = config.withRef ? this.wrappedInstance : null;
|
|
100686
100721
|
return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["createElement"])(WrappedComponent, _extends({
|
|
100687
100722
|
ref: ref
|
|
100688
100723
|
}, react_sortable_hoc_esm_omit(this.props, omittedProps$1)));
|
|
@@ -100690,9 +100725,7 @@ function sortableElement(WrappedComponent) {
|
|
|
100690
100725
|
}]);
|
|
100691
100726
|
|
|
100692
100727
|
return WithSortableElement;
|
|
100693
|
-
}(external_root_React_commonjs2_react_commonjs_react_amd_react_["Component"]), _defineProperty(_class, "displayName", provideDisplayName('sortableElement', WrappedComponent)), _defineProperty(_class, "
|
|
100694
|
-
manager: prop_types_default.a.object.isRequired
|
|
100695
|
-
}), _defineProperty(_class, "propTypes", propTypes$1), _defineProperty(_class, "defaultProps", {
|
|
100728
|
+
}(external_root_React_commonjs2_react_commonjs_react_amd_react_["Component"]), _defineProperty(_class, "displayName", provideDisplayName('sortableElement', WrappedComponent)), _defineProperty(_class, "contextType", SortableContext), _defineProperty(_class, "propTypes", propTypes$1), _defineProperty(_class, "defaultProps", {
|
|
100696
100729
|
collection: 0
|
|
100697
100730
|
}), _temp;
|
|
100698
100731
|
}
|
|
@@ -101612,6 +101645,7 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
101612
101645
|
}, map_default()(items).call(items, (item, index) =>
|
|
101613
101646
|
/*#__PURE__*/
|
|
101614
101647
|
// sortableElement will take over the property 'key', so use another '_optionKey' to pass
|
|
101648
|
+
// @ts-ignore skip SortableItem type check
|
|
101615
101649
|
external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SortableItem, assign_default()({
|
|
101616
101650
|
key: item.label,
|
|
101617
101651
|
index: index
|
|
@@ -101622,7 +101656,8 @@ class transfer_Transfer extends baseComponent_BaseComponent {
|
|
|
101622
101656
|
;
|
|
101623
101657
|
}, {
|
|
101624
101658
|
distance: 10
|
|
101625
|
-
});
|
|
101659
|
+
}); // @ts-ignore skip SortableItem type check
|
|
101660
|
+
|
|
101626
101661
|
const sortList = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(SortableList, {
|
|
101627
101662
|
useDragHandle: true,
|
|
101628
101663
|
onSortEnd: this.onSortEnd,
|
|
@@ -103038,12 +103073,14 @@ const FormSlot = props => {
|
|
|
103038
103073
|
break;
|
|
103039
103074
|
|
|
103040
103075
|
case isString_default()(label) || isNumber_default()(label):
|
|
103076
|
+
// @ts-ignore skip type check, the actual type is already determined
|
|
103041
103077
|
label = {
|
|
103042
103078
|
text: label
|
|
103043
103079
|
};
|
|
103044
103080
|
break;
|
|
103045
103081
|
|
|
103046
103082
|
case /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(label):
|
|
103083
|
+
// @ts-ignore skip type check, the actual type is already determined
|
|
103047
103084
|
label = {
|
|
103048
103085
|
text: label
|
|
103049
103086
|
};
|
|
@@ -104092,7 +104129,7 @@ class baseForm_Form extends baseComponent_BaseComponent {
|
|
|
104092
104129
|
};
|
|
104093
104130
|
|
|
104094
104131
|
if (component) {
|
|
104095
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(component, props
|
|
104132
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(component, props);
|
|
104096
104133
|
}
|
|
104097
104134
|
|
|
104098
104135
|
if (render) {
|