ods-component-lib 1.21.2 → 1.21.3
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/components/antd/currencyInput/CurrencySelect.js +16 -11
- package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.js +32 -43
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.js.map +1 -1
- package/dist/components/devextreme/OdsDataGrid.Legacy.js +4 -4
- package/dist/components/devextreme/OdsRemoteDataGrid.js +1 -1
- package/dist/index.js +10 -10
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs-utils/es/util/getComponentToken.js +1 -1
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.js +66 -45
- package/dist/node_modules/@ant-design/fast-color/es/FastColor.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/FrownOutlined.js +5 -8
- package/dist/node_modules/@ant-design/icons/es/icons/HeartOutlined.js +3 -6
- package/dist/node_modules/@ant-design/icons/es/icons/MehOutlined.js +12 -15
- package/dist/node_modules/@ant-design/icons/es/icons/SmileOutlined.js +8 -11
- package/dist/node_modules/@ant-design/icons/es/utils.js +2 -9
- package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -1
- package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js +1 -9
- package/dist/node_modules/@emotion/stylis/dist/stylis.browser.esm.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
- package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
- package/dist/node_modules/@rc-component/collapse/es/Collapse.js +1 -1
- package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
- package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
- package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
- package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
- package/dist/node_modules/@rc-component/dropdown/es/Dropdown.js +2 -2
- package/dist/node_modules/@rc-component/form/es/Field.js +9 -9
- package/dist/node_modules/@rc-component/form/es/FieldContext.js +2 -3
- package/dist/node_modules/@rc-component/form/es/FieldContext.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/Form.js +78 -92
- package/dist/node_modules/@rc-component/form/es/Form.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/List.js +1 -1
- package/dist/node_modules/@rc-component/form/es/{useForm.js → hooks/useForm.js} +136 -143
- package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -0
- package/dist/node_modules/@rc-component/form/es/hooks/useNotifyWatch.js +43 -0
- package/dist/node_modules/@rc-component/form/es/hooks/useNotifyWatch.js.map +1 -0
- package/dist/node_modules/@rc-component/form/es/{useWatch.js → hooks/useWatch.js} +7 -7
- package/dist/node_modules/@rc-component/form/es/hooks/useWatch.js.map +1 -0
- package/dist/node_modules/@rc-component/form/es/index.js +2 -2
- package/dist/node_modules/@rc-component/form/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
- package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
- package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/validateUtil.js +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/valueUtil.js.map +1 -1
- package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
- package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
- package/dist/node_modules/@rc-component/input-number/es/hooks/useCursor.js +1 -1
- package/dist/node_modules/@rc-component/menu/es/Menu.js +1 -1
- package/dist/node_modules/@rc-component/menu/es/MenuItem.js +1 -1
- package/dist/node_modules/@rc-component/menu/es/SubMenu/index.js +1 -1
- package/dist/node_modules/@rc-component/menu/es/hooks/useKeyRecords.js +1 -1
- package/dist/node_modules/@rc-component/menu/es/placements.js +0 -1
- package/dist/node_modules/@rc-component/menu/es/utils/warnUtil.js +1 -1
- package/dist/node_modules/@rc-component/pagination/es/Pagination.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerInput/RangePicker.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerInput/Selector/hooks/useClearIcon.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerInput/Selector/hooks/useInputProps.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/useCellRender.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/useFilledProps.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerInput/hooks/usePresets.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/PickerPanel/index.js +1 -1
- package/dist/node_modules/@rc-component/picker/es/hooks/useTimeInfo.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/Portal.js +41 -35
- package/dist/node_modules/@rc-component/portal/es/Portal.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +48 -0
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -0
- package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
- package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
- package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
- package/dist/node_modules/@rc-component/select/es/BaseSelect/index.js +141 -140
- package/dist/node_modules/@rc-component/select/es/BaseSelect/index.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/OptionList.js +92 -91
- package/dist/node_modules/@rc-component/select/es/OptionList.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/Select.js +5 -5
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/SingleContent.js +41 -47
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/SingleContent.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/hooks/useOpen.js +27 -26
- package/dist/node_modules/@rc-component/select/es/hooks/useOpen.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/utils/valueUtil.js +1 -1
- package/dist/node_modules/@rc-component/select/es/utils/warningPropsUtil.js +6 -6
- package/dist/node_modules/@rc-component/table/es/Cell/useCellRender.js +1 -1
- package/dist/node_modules/@rc-component/table/es/Table.js +1 -1
- package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
- package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
- package/dist/node_modules/@rc-component/table/es/VirtualTable/index.js +1 -1
- package/dist/node_modules/@rc-component/table/es/hooks/useColumns/index.js +1 -1
- package/dist/node_modules/@rc-component/table/es/hooks/useExpand.js +1 -1
- package/dist/node_modules/@rc-component/table/es/utils/legacyUtil.js +1 -1
- package/dist/node_modules/@rc-component/tabs/es/hooks/useAnimateConfig.js +1 -1
- package/dist/node_modules/@rc-component/tooltip/es/placements.js +0 -1
- package/dist/node_modules/@rc-component/tree/es/Tree.js +1 -1
- package/dist/node_modules/@rc-component/tree/es/util.js +1 -1
- package/dist/node_modules/@rc-component/tree/es/utils/conductUtil.js +1 -1
- package/dist/node_modules/@rc-component/tree/es/utils/treeUtil.js +1 -1
- package/dist/node_modules/@rc-component/tree-select/es/TreeSelect.js +1 -1
- package/dist/node_modules/@rc-component/tree-select/es/hooks/useDataEntities.js +1 -1
- package/dist/node_modules/@rc-component/tree-select/es/utils/legacyUtil.js +1 -1
- package/dist/node_modules/@rc-component/tree-select/es/utils/warningPropsUtil.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
- package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +126 -123
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
- package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/util.js +35 -34
- package/dist/node_modules/@rc-component/trigger/es/util.js.map +1 -1
- package/dist/node_modules/@rc-component/upload/es/attr-accept.js +1 -1
- package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
- package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/KeyCode.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/hooks/useId.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/hooks/useState.js +6 -6
- package/dist/node_modules/@rc-component/util/es/hooks/useState.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/hooks/useSyncState.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/isEqual.js +1 -1
- package/dist/node_modules/@rc-component/util/es/utils/set.js +21 -21
- package/dist/node_modules/@rc-component/util/es/utils/set.js.map +1 -1
- package/dist/node_modules/@rc-component/virtual-list/es/hooks/useScrollTo.js +1 -1
- package/dist/node_modules/antd/es/_util/warning.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/index.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/index.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
- package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
- package/dist/node_modules/antd/es/alert/Alert.js +133 -128
- package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
- package/dist/node_modules/antd/es/badge/Badge.js +29 -28
- package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
- package/dist/node_modules/antd/es/badge/style/index.js +1 -1
- package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
- package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
- package/dist/node_modules/antd/es/button/style/compact.js +45 -36
- package/dist/node_modules/antd/es/button/style/compact.js.map +1 -1
- package/dist/node_modules/antd/es/button/style/variant.js +100 -90
- package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
- package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
- package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
- package/dist/node_modules/antd/es/card/style/index.js +23 -11
- package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
- package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
- package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
- package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
- package/dist/node_modules/antd/es/color-picker/color.js +9 -9
- package/dist/node_modules/antd/es/color-picker/color.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js +76 -71
- package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
- package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
- package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
- package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
- package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
- package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
- package/dist/node_modules/antd/es/empty/empty.js +27 -32
- package/dist/node_modules/antd/es/empty/empty.js.map +1 -1
- package/dist/node_modules/antd/es/empty/simple.js +2 -2
- package/dist/node_modules/antd/es/empty/simple.js.map +1 -1
- package/dist/node_modules/antd/es/form/hooks/useForm.js +2 -2
- package/dist/node_modules/antd/es/form/index.js +1 -1
- package/dist/node_modules/antd/es/form/style/index.js +24 -24
- package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/grid/col.js +56 -54
- package/dist/node_modules/antd/es/grid/col.js.map +1 -1
- package/dist/node_modules/antd/es/grid/style/index.js +50 -50
- package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/TextArea.js +16 -15
- package/dist/node_modules/antd/es/input/TextArea.js.map +1 -1
- package/dist/node_modules/antd/es/input/style/index.js +1 -0
- package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input-number/index.js +91 -91
- package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
- package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
- package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/layout/Sider.js +1 -2
- package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
- package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
- package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
- package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/index.js +58 -58
- package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/message/index.js +1 -1
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js +115 -109
- package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/confirm.js +3 -3
- package/dist/node_modules/antd/es/modal/style/index.js +83 -80
- package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
- package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
- package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/style/index.js +100 -133
- package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/popover/index.js +77 -82
- package/dist/node_modules/antd/es/popover/index.js.map +1 -1
- package/dist/node_modules/antd/es/popover/style/index.js +65 -63
- package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/progress/progress.js +4 -4
- package/dist/node_modules/antd/es/radio/context.js +3 -3
- package/dist/node_modules/antd/es/radio/context.js.map +1 -1
- package/dist/node_modules/antd/es/radio/group.js +31 -29
- package/dist/node_modules/antd/es/radio/group.js.map +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
- package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/select-input.js +113 -98
- package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
- package/dist/node_modules/antd/es/skeleton/Image.js +9 -9
- package/dist/node_modules/antd/es/skeleton/Image.js.map +1 -1
- package/dist/node_modules/antd/es/space/Item.js +2 -2
- package/dist/node_modules/antd/es/space/Item.js.map +1 -1
- package/dist/node_modules/antd/es/space/index.js +4 -4
- package/dist/node_modules/antd/es/space/index.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/addon.js +47 -46
- package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
- package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
- package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
- package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/index.js +108 -106
- package/dist/node_modules/antd/es/steps/index.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
- package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
- package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/index.js +41 -41
- package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
- package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
- package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
- package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
- package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
- package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
- package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
- package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/small.js +21 -16
- package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/status.js +187 -176
- package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/util.js +18 -16
- package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
- package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
- package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
- package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
- package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
- package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
- package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/index.js +3 -3
- package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/radius.js +10 -0
- package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
- package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
- package/dist/node_modules/antd/es/tag/style/index.js +5 -5
- package/dist/node_modules/antd/es/tag/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
- package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
- package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
- package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
- package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
- package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js +52 -51
- package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
- package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js +13 -12
- package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
- package/dist/node_modules/antd/es/transfer/ListBody.js +16 -16
- package/dist/node_modules/antd/es/transfer/ListBody.js.map +1 -1
- package/dist/node_modules/antd/es/transfer/ListItem.js +43 -43
- package/dist/node_modules/antd/es/transfer/ListItem.js.map +1 -1
- package/dist/node_modules/antd/es/transfer/style/index.js +1 -1
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
- package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
- package/dist/node_modules/antd/es/typography/Base/index.js +43 -42
- package/dist/node_modules/antd/es/typography/Base/index.js.map +1 -1
- package/dist/node_modules/antd/es/typography/style/index.js +43 -43
- package/dist/node_modules/antd/es/typography/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/typography/style/mixins.js +1 -1
- package/dist/node_modules/antd/es/typography/style/mixins.js.map +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/antd/es/version/version.js.map +1 -1
- package/dist/node_modules/antd/es/watermark/context.js +5 -6
- package/dist/node_modules/antd/es/watermark/context.js.map +1 -1
- package/dist/node_modules/antd-style/node_modules/@ant-design/cssinjs/es/StyleContext.js +1 -2
- package/dist/node_modules/antd-style/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
- package/dist/node_modules/exceljs/dist/exceljs.min.js +91 -508
- package/dist/node_modules/exceljs/dist/exceljs.min.js.map +1 -1
- package/dist/node_modules/html2canvas/dist/html2canvas.esm.js +5 -55
- package/dist/node_modules/html2canvas/dist/html2canvas.esm.js.map +1 -1
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js +8 -53
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
- package/dist/node_modules/lodash/lodash.js +295 -278
- package/dist/node_modules/lodash/lodash.js.map +1 -1
- package/dist/node_modules/moment/dist/moment.js +2 -8
- package/dist/node_modules/moment/dist/moment.js.map +1 -1
- package/dist/node_modules/rc-util/es/isEqual.js +1 -1
- package/package.json +1 -1
- package/dist/node_modules/@rc-component/form/es/BatchUpdate.js +0 -21
- package/dist/node_modules/@rc-component/form/es/BatchUpdate.js.map +0 -1
- package/dist/node_modules/@rc-component/form/es/useForm.js.map +0 -1
- package/dist/node_modules/@rc-component/form/es/useWatch.js.map +0 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.js","sources":["../../../../../../node_modules/@rc-component/async-validator/es/rule/type.js"],"sourcesContent":["import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { format } from \"../util\";\nimport required from \"./required\";\nimport getUrlRegex from \"./url\";\n/* eslint max-len:0 */\n\nvar pattern = {\n // http://emailregex.com/\n email: /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+\\.)+[a-zA-Z\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]{2,}))$/,\n // url: new RegExp(\n // '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\\\S+(?::\\\\S*)?@)?(?:(?:(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[0-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))|localhost)(?::\\\\d{2,5})?(?:(/|\\\\?|#)[^\\\\s]*)?$',\n // 'i',\n // ),\n hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i\n};\nvar types = {\n integer: function integer(value) {\n return types.number(value) && parseInt(value, 10) === value;\n },\n float: function float(value) {\n return types.number(value) && !types.integer(value);\n },\n array: function array(value) {\n return Array.isArray(value);\n },\n regexp: function regexp(value) {\n if (value instanceof RegExp) {\n return true;\n }\n try {\n return !!new RegExp(value);\n } catch (e) {\n return false;\n }\n },\n date: function date(value) {\n return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());\n },\n number: function number(value) {\n if (isNaN(value)) {\n return false;\n }\n return typeof value === 'number';\n },\n object: function object(value) {\n return _typeof(value) === 'object' && !types.array(value);\n },\n method: function method(value) {\n return typeof value === 'function';\n },\n email: function email(value) {\n return typeof value === 'string' && value.length <= 320 && !!value.match(pattern.email);\n },\n url: function url(value) {\n return typeof value === 'string' && value.length <= 2048 && !!value.match(getUrlRegex());\n },\n hex: function hex(value) {\n return typeof value === 'string' && !!value.match(pattern.hex);\n }\n};\nvar type = function type(rule, value, source, errors, options) {\n if (rule.required && value === undefined) {\n required(rule, value, source, errors, options);\n return;\n }\n var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'number', 'date', 'url', 'hex'];\n var ruleType = rule.type;\n if (custom.indexOf(ruleType) > -1) {\n if (!types[ruleType](value)) {\n errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));\n }\n // straight typeof check\n } else if (ruleType && _typeof(value) !== rule.type) {\n errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));\n }\n};\nexport default type;"],"names":["pattern","types","value","_typeof","getUrlRegex","type","rule","source","errors","options","required","custom","ruleType","format"],"mappings":";;;;AAMA,IAAIA,IAAU;AAAA;AAAA,EAEZ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"type.js","sources":["../../../../../../node_modules/@rc-component/async-validator/es/rule/type.js"],"sourcesContent":["import _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport { format } from \"../util\";\nimport required from \"./required\";\nimport getUrlRegex from \"./url\";\n/* eslint max-len:0 */\n\nvar pattern = {\n // http://emailregex.com/\n email: /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+\\.)+[a-zA-Z\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]{2,}))$/,\n // url: new RegExp(\n // '^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\\\S+(?::\\\\S*)?@)?(?:(?:(?:[1-9]\\\\d?|1\\\\d\\\\d|2[01]\\\\d|22[0-3])(?:\\\\.(?:1?\\\\d{1,2}|2[0-4]\\\\d|25[0-5])){2}(?:\\\\.(?:[0-9]\\\\d?|1\\\\d\\\\d|2[0-4]\\\\d|25[0-4]))|(?:(?:[a-z\\\\u00a1-\\\\uffff0-9]+-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff0-9]+-*)*[a-z\\\\u00a1-\\\\uffff0-9]+)*(?:\\\\.(?:[a-z\\\\u00a1-\\\\uffff]{2,})))|localhost)(?::\\\\d{2,5})?(?:(/|\\\\?|#)[^\\\\s]*)?$',\n // 'i',\n // ),\n /**\n * Phone number regex, support country code, brackets, spaces, and dashes (or non-breaking hyphen \\u2011).\n * @see https://regexr.com/3c53v\n * @see https://ihateregex.io/expr/phone/\n * @see https://developers.google.com/style/phone-numbers using non-breaking hyphen \\u2011\n */\n tel: /^(\\+[0-9]{1,3}[-\\s\\u2011]?)?(\\([0-9]{1,4}\\)[-\\s\\u2011]?)?([0-9]+[-\\s\\u2011]?)*[0-9]+$/,\n hex: /^#?([a-f0-9]{6}|[a-f0-9]{3})$/i\n};\nvar types = {\n integer: function integer(value) {\n return types.number(value) && parseInt(value, 10) === value;\n },\n float: function float(value) {\n return types.number(value) && !types.integer(value);\n },\n array: function array(value) {\n return Array.isArray(value);\n },\n regexp: function regexp(value) {\n if (value instanceof RegExp) {\n return true;\n }\n try {\n return !!new RegExp(value);\n } catch (e) {\n return false;\n }\n },\n date: function date(value) {\n return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());\n },\n number: function number(value) {\n if (isNaN(value)) {\n return false;\n }\n return typeof value === 'number';\n },\n object: function object(value) {\n return _typeof(value) === 'object' && !types.array(value);\n },\n method: function method(value) {\n return typeof value === 'function';\n },\n email: function email(value) {\n return typeof value === 'string' && value.length <= 320 && !!value.match(pattern.email);\n },\n tel: function tel(value) {\n return typeof value === 'string' && value.length <= 32 && !!value.match(pattern.tel);\n },\n url: function url(value) {\n return typeof value === 'string' && value.length <= 2048 && !!value.match(getUrlRegex());\n },\n hex: function hex(value) {\n return typeof value === 'string' && !!value.match(pattern.hex);\n }\n};\nvar type = function type(rule, value, source, errors, options) {\n if (rule.required && value === undefined) {\n required(rule, value, source, errors, options);\n return;\n }\n var custom = ['integer', 'float', 'array', 'regexp', 'object', 'method', 'email', 'tel', 'number', 'date', 'url', 'hex'];\n var ruleType = rule.type;\n if (custom.indexOf(ruleType) > -1) {\n if (!types[ruleType](value)) {\n errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));\n }\n // straight typeof check\n } else if (ruleType && _typeof(value) !== rule.type) {\n errors.push(format(options.messages.types[ruleType], rule.fullField, rule.type));\n }\n};\nexport default type;"],"names":["pattern","types","value","_typeof","getUrlRegex","type","rule","source","errors","options","required","custom","ruleType","format"],"mappings":";;;;AAMA,IAAIA,IAAU;AAAA;AAAA,EAEZ,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWP,KAAK;AAAA,EACL,KAAK;AACP,GACIC,IAAQ;AAAA,EACV,SAAS,SAAiBC,GAAO;AAC/B,WAAOD,EAAM,OAAOC,CAAK,KAAK,SAASA,GAAO,EAAE,MAAMA;AAAA,EACxD;AAAA,EACA,OAAO,SAAeA,GAAO;AAC3B,WAAOD,EAAM,OAAOC,CAAK,KAAK,CAACD,EAAM,QAAQC,CAAK;AAAA,EACpD;AAAA,EACA,OAAO,SAAeA,GAAO;AAC3B,WAAO,MAAM,QAAQA,CAAK;AAAA,E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J,GAAMJ,GAAOK,GAAQC,GAAQC,CAAO;AAC7C;AAAA,EACF;AACA,MAAIE,IAAS,CAAC,WAAW,SAAS,SAAS,UAAU,UAAU,UAAU,SAAS,OAAO,UAAU,QAAQ,OAAO,KAAK,GACnHC,IAAWN,EAAK;AACpB,EAAIK,EAAO,QAAQC,CAAQ,IAAI,KACxBX,EAAMW,CAAQ,EAAEV,CAAK,KACxBM,EAAO,KAAKK,EAAOJ,EAAQ,SAAS,MAAMG,CAAQ,GAAGN,EAAK,WAAWA,EAAK,IAAI,CAAC,IAGxEM,KAAYT,EAAQD,CAAK,MAAMI,EAAK,QAC7CE,EAAO,KAAKK,EAAOJ,EAAQ,SAAS,MAAMG,CAAQ,GAAGN,EAAK,WAAWA,EAAK,IAAI,CAAC;AAEnF;","x_google_ignoreList":[0]}
|
|
@@ -57,7 +57,7 @@ function U(r) {
|
|
|
57
57
|
return r;
|
|
58
58
|
}
|
|
59
59
|
function I(r) {
|
|
60
|
-
return r === "string" || r === "url" || r === "hex" || r === "email" || r === "date" || r === "pattern";
|
|
60
|
+
return r === "string" || r === "url" || r === "hex" || r === "email" || r === "date" || r === "pattern" || r === "tel";
|
|
61
61
|
}
|
|
62
62
|
function X(r, t) {
|
|
63
63
|
return !!(r == null || t === "array" && Array.isArray(r) && !r.length || I(t) && typeof r == "string" && !r);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../node_modules/@rc-component/async-validator/es/util.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _wrapNativeSuper from \"@babel/runtime/helpers/esm/wrapNativeSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\n/* eslint no-console:0 */\n\nvar formatRegExp = /%[sdj%]/g;\nexport var warning = function warning() {};\n\n// don't print warning message when in production env or node runtime\nif (typeof process !== 'undefined' && process.env && process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {\n warning = function warning(type, errors) {\n if (typeof console !== 'undefined' && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === 'undefined') {\n if (errors.every(function (e) {\n return typeof e === 'string';\n })) {\n console.warn(type, errors);\n }\n }\n };\n}\nexport function convertFieldsError(errors) {\n if (!errors || !errors.length) return null;\n var fields = {};\n errors.forEach(function (error) {\n var field = error.field;\n fields[field] = fields[field] || [];\n fields[field].push(error);\n });\n return fields;\n}\nexport function format(template) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var i = 0;\n var len = args.length;\n if (typeof template === 'function') {\n // eslint-disable-next-line prefer-spread\n return template.apply(null, args);\n }\n if (typeof template === 'string') {\n var str = template.replace(formatRegExp, function (x) {\n if (x === '%%') {\n return '%';\n }\n if (i >= len) {\n return x;\n }\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n break;\n default:\n return x;\n }\n });\n return str;\n }\n return template;\n}\nfunction isNativeStringType(type) {\n return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';\n}\nexport function isEmptyValue(value, type) {\n if (value === undefined || value === null) {\n return true;\n }\n if (type === 'array' && Array.isArray(value) && !value.length) {\n return true;\n }\n if (isNativeStringType(type) && typeof value === 'string' && !value) {\n return true;\n }\n return false;\n}\nexport function isEmptyObject(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction asyncParallelArray(arr, func, callback) {\n var results = [];\n var total = 0;\n var arrLength = arr.length;\n function count(errors) {\n results.push.apply(results, _toConsumableArray(errors || []));\n total++;\n if (total === arrLength) {\n callback(results);\n }\n }\n arr.forEach(function (a) {\n func(a, count);\n });\n}\nfunction asyncSerialArray(arr, func, callback) {\n var index = 0;\n var arrLength = arr.length;\n function next(errors) {\n if (errors && errors.length) {\n callback(errors);\n return;\n }\n var original = index;\n index = index + 1;\n if (original < arrLength) {\n func(arr[original], next);\n } else {\n callback([]);\n }\n }\n next([]);\n}\nfunction flattenObjArr(objArr) {\n var ret = [];\n Object.keys(objArr).forEach(function (k) {\n ret.push.apply(ret, _toConsumableArray(objArr[k] || []));\n });\n return ret;\n}\nexport var AsyncValidationError = /*#__PURE__*/function (_Error) {\n _inherits(AsyncValidationError, _Error);\n var _super = _createSuper(AsyncValidationError);\n function AsyncValidationError(errors, fields) {\n var _this;\n _classCallCheck(this, AsyncValidationError);\n _this = _super.call(this, 'Async Validation Error');\n _defineProperty(_assertThisInitialized(_this), \"errors\", void 0);\n _defineProperty(_assertThisInitialized(_this), \"fields\", void 0);\n _this.errors = errors;\n _this.fields = fields;\n return _this;\n }\n return _createClass(AsyncValidationError);\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nexport function asyncMap(objArr, option, func, callback, source) {\n if (option.first) {\n var _pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n callback(errors);\n return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);\n };\n var flattenArr = flattenObjArr(objArr);\n asyncSerialArray(flattenArr, func, next);\n });\n _pending.catch(function (e) {\n return e;\n });\n return _pending;\n }\n var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];\n var objArrKeys = Object.keys(objArr);\n var objArrLength = objArrKeys.length;\n var total = 0;\n var results = [];\n var pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n // eslint-disable-next-line prefer-spread\n results.push.apply(results, errors);\n total++;\n if (total === objArrLength) {\n callback(results);\n return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);\n }\n };\n if (!objArrKeys.length) {\n callback(results);\n resolve(source);\n }\n objArrKeys.forEach(function (key) {\n var arr = objArr[key];\n if (firstFields.indexOf(key) !== -1) {\n asyncSerialArray(arr, func, next);\n } else {\n asyncParallelArray(arr, func, next);\n }\n });\n });\n pending.catch(function (e) {\n return e;\n });\n return pending;\n}\nfunction isErrorObj(obj) {\n return !!(obj && obj.message !== undefined);\n}\nfunction getValue(value, path) {\n var v = value;\n for (var i = 0; i < path.length; i++) {\n if (v == undefined) {\n return v;\n }\n v = v[path[i]];\n }\n return v;\n}\nexport function complementError(rule, source) {\n return function (oe) {\n var fieldValue;\n if (rule.fullFields) {\n fieldValue = getValue(source, rule.fullFields);\n } else {\n fieldValue = source[oe.field || rule.fullField];\n }\n if (isErrorObj(oe)) {\n oe.field = oe.field || rule.fullField;\n oe.fieldValue = fieldValue;\n return oe;\n }\n return {\n message: typeof oe === 'function' ? oe() : oe,\n fieldValue: fieldValue,\n field: oe.field || rule.fullField\n };\n };\n}\nexport function deepMerge(target, source) {\n if (source) {\n for (var s in source) {\n if (source.hasOwnProperty(s)) {\n var value = source[s];\n if (_typeof(value) === 'object' && _typeof(target[s]) === 'object') {\n target[s] = _objectSpread(_objectSpread({}, target[s]), value);\n } else {\n target[s] = value;\n }\n }\n }\n }\n return target;\n}"],"names":["formatRegExp","warning","process","type","errors","convertFieldsError","fields","error","field","format","template","_len","args","_key","i","len","str","x","isNativeStringType","isEmptyValue","value","asyncParallelArray","arr","func","callback","results","total","arrLength","count","_toConsumableArray","a","asyncSerialArray","index","next","original","flattenObjArr","objArr","ret","k","AsyncValidationError","_Error","_inherits","_super","_createSuper","_this","_classCallCheck","_defineProperty","_assertThisInitialized","_createClass","_wrapNativeSuper","asyncMap","option","source","_pending","resolve","reject","flattenArr","e","firstFields","objArrKeys","objArrLength","pending","key","isErrorObj","obj","getValue","path","v","complementError","rule","oe","fieldValue","deepMerge","target","s","_typeof","_objectSpread"],"mappings":";;;;;;;;;;;AAYA,IAAIA,IAAe,YACRC,IAAU,WAAmB;AAAC;AAGrC,OAAOC,IAAY,OAAeA,EAAQ,OAAOA,EAAQ,IAAI,aAAa,gBAAgB,OAAO,SAAW,OAAe,OAAO,WAAa,QACjJD,IAAU,SAAiBE,GAAMC,GAAQ;AACvC,EAAI,OAAO,UAAY,OAAe,QAAQ,QAAQ,OAAO,6BAA+B,OACtFA,EAAO,MAAM,SAAU,GAAG;AAC5B,WAAO,OAAO,KAAM;AAAA,EACtB,CAAC;AAIL;AAEK,SAASC,EAAmBD,GAAQ;AACzC,MAAI,CAACA,KAAU,CAACA,EAAO,OAAQ,QAAO;AACtC,MAAIE,IAAS,CAAA;AACb,SAAAF,EAAO,QAAQ,SAAUG,GAAO;AAC9B,QAAIC,IAAQD,EAAM;AAClB,IAAAD,EAAOE,CAAK,IAAIF,EAAOE,CAAK,KAAK,CAAA,GACjCF,EAAOE,CAAK,EAAE,KAAKD,CAAK;AAAA,EAC1B,CAAC,GACMD;AACT;AACO,SAASG,EAAOC,GAAU;AAC/B,WAASC,IAAO,UAAU,QAAQC,IAAO,IAAI,MAAMD,IAAO,IAAIA,IAAO,IAAI,CAAC,GAAGE,IAAO,GAAGA,IAAOF,GAAME;AAClG,IAAAD,EAAKC,IAAO,CAAC,IAAI,UAAUA,CAAI;AAEjC,MAAIC,IAAI,GACJC,IAAMH,EAAK;AACf,MAAI,OAAOF,KAAa;AAEtB,WAAOA,EAAS,MAAM,MAAME,CAAI;AAElC,MAAI,OAAOF,KAAa,UAAU;AAChC,QAAIM,IAAMN,EAAS,QAAQV,GAAc,SAAUiB,GAAG;AACpD,UAAIA,MAAM;AACR,eAAO;AAET,UAAIH,KAAKC;AACP,eAAOE;AAET,cAAQA,GAAC;AAAA,QACP,KAAK;AACH,iBAAO,OAAOL,EAAKE,GAAG,CAAC;AAAA,QACz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E,IAAanB,EAAOkB,EAAG,SAASD,EAAK,SAAS,GAE5CN,EAAWO,CAAE,KACfA,EAAG,QAAQA,EAAG,SAASD,EAAK,WAC5BC,EAAG,aAAaC,GACTD,KAEF;AAAA,MACL,SAAS,OAAOA,KAAO,aAAaA,EAAE,IAAKA;AAAA,MAC3C,YAAYC;AAAA,MACZ,OAAOD,EAAG,SAASD,EAAK;AAAA,IAC9B;AAAA,EACE;AACF;AACO,SAASG,GAAUC,GAAQrB,GAAQ;AACxC,MAAIA;AACF,aAASsB,KAAKtB;AACZ,UAAIA,EAAO,eAAesB,CAAC,GAAG;AAC5B,YAAItD,IAAQgC,EAAOsB,CAAC;AACpB,QAAIC,EAAQvD,CAAK,MAAM,YAAYuD,EAAQF,EAAOC,CAAC,CAAC,MAAM,WACxDD,EAAOC,CAAC,IAAIE,EAAcA,EAAc,CAAA,GAAIH,EAAOC,CAAC,CAAC,GAAGtD,CAAK,IAE7DqD,EAAOC,CAAC,IAAItD;AAAA,MAEhB;AAAA;AAGJ,SAAOqD;AACT;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../../../node_modules/@rc-component/async-validator/es/util.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/esm/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport _wrapNativeSuper from \"@babel/runtime/helpers/esm/wrapNativeSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\n/* eslint no-console:0 */\n\nvar formatRegExp = /%[sdj%]/g;\nexport var warning = function warning() {};\n\n// don't print warning message when in production env or node runtime\nif (typeof process !== 'undefined' && process.env && process.env.NODE_ENV !== 'production' && typeof window !== 'undefined' && typeof document !== 'undefined') {\n warning = function warning(type, errors) {\n if (typeof console !== 'undefined' && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === 'undefined') {\n if (errors.every(function (e) {\n return typeof e === 'string';\n })) {\n console.warn(type, errors);\n }\n }\n };\n}\nexport function convertFieldsError(errors) {\n if (!errors || !errors.length) return null;\n var fields = {};\n errors.forEach(function (error) {\n var field = error.field;\n fields[field] = fields[field] || [];\n fields[field].push(error);\n });\n return fields;\n}\nexport function format(template) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n var i = 0;\n var len = args.length;\n if (typeof template === 'function') {\n // eslint-disable-next-line prefer-spread\n return template.apply(null, args);\n }\n if (typeof template === 'string') {\n var str = template.replace(formatRegExp, function (x) {\n if (x === '%%') {\n return '%';\n }\n if (i >= len) {\n return x;\n }\n switch (x) {\n case '%s':\n return String(args[i++]);\n case '%d':\n return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n break;\n default:\n return x;\n }\n });\n return str;\n }\n return template;\n}\nfunction isNativeStringType(type) {\n return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern' || type === 'tel';\n}\nexport function isEmptyValue(value, type) {\n if (value === undefined || value === null) {\n return true;\n }\n if (type === 'array' && Array.isArray(value) && !value.length) {\n return true;\n }\n if (isNativeStringType(type) && typeof value === 'string' && !value) {\n return true;\n }\n return false;\n}\nexport function isEmptyObject(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction asyncParallelArray(arr, func, callback) {\n var results = [];\n var total = 0;\n var arrLength = arr.length;\n function count(errors) {\n results.push.apply(results, _toConsumableArray(errors || []));\n total++;\n if (total === arrLength) {\n callback(results);\n }\n }\n arr.forEach(function (a) {\n func(a, count);\n });\n}\nfunction asyncSerialArray(arr, func, callback) {\n var index = 0;\n var arrLength = arr.length;\n function next(errors) {\n if (errors && errors.length) {\n callback(errors);\n return;\n }\n var original = index;\n index = index + 1;\n if (original < arrLength) {\n func(arr[original], next);\n } else {\n callback([]);\n }\n }\n next([]);\n}\nfunction flattenObjArr(objArr) {\n var ret = [];\n Object.keys(objArr).forEach(function (k) {\n ret.push.apply(ret, _toConsumableArray(objArr[k] || []));\n });\n return ret;\n}\nexport var AsyncValidationError = /*#__PURE__*/function (_Error) {\n _inherits(AsyncValidationError, _Error);\n var _super = _createSuper(AsyncValidationError);\n function AsyncValidationError(errors, fields) {\n var _this;\n _classCallCheck(this, AsyncValidationError);\n _this = _super.call(this, 'Async Validation Error');\n _defineProperty(_assertThisInitialized(_this), \"errors\", void 0);\n _defineProperty(_assertThisInitialized(_this), \"fields\", void 0);\n _this.errors = errors;\n _this.fields = fields;\n return _this;\n }\n return _createClass(AsyncValidationError);\n}( /*#__PURE__*/_wrapNativeSuper(Error));\nexport function asyncMap(objArr, option, func, callback, source) {\n if (option.first) {\n var _pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n callback(errors);\n return errors.length ? reject(new AsyncValidationError(errors, convertFieldsError(errors))) : resolve(source);\n };\n var flattenArr = flattenObjArr(objArr);\n asyncSerialArray(flattenArr, func, next);\n });\n _pending.catch(function (e) {\n return e;\n });\n return _pending;\n }\n var firstFields = option.firstFields === true ? Object.keys(objArr) : option.firstFields || [];\n var objArrKeys = Object.keys(objArr);\n var objArrLength = objArrKeys.length;\n var total = 0;\n var results = [];\n var pending = new Promise(function (resolve, reject) {\n var next = function next(errors) {\n // eslint-disable-next-line prefer-spread\n results.push.apply(results, errors);\n total++;\n if (total === objArrLength) {\n callback(results);\n return results.length ? reject(new AsyncValidationError(results, convertFieldsError(results))) : resolve(source);\n }\n };\n if (!objArrKeys.length) {\n callback(results);\n resolve(source);\n }\n objArrKeys.forEach(function (key) {\n var arr = objArr[key];\n if (firstFields.indexOf(key) !== -1) {\n asyncSerialArray(arr, func, next);\n } else {\n asyncParallelArray(arr, func, next);\n }\n });\n });\n pending.catch(function (e) {\n return e;\n });\n return pending;\n}\nfunction isErrorObj(obj) {\n return !!(obj && obj.message !== undefined);\n}\nfunction getValue(value, path) {\n var v = value;\n for (var i = 0; i < path.length; i++) {\n if (v == undefined) {\n return v;\n }\n v = v[path[i]];\n }\n return v;\n}\nexport function complementError(rule, source) {\n return function (oe) {\n var fieldValue;\n if (rule.fullFields) {\n fieldValue = getValue(source, rule.fullFields);\n } else {\n fieldValue = source[oe.field || rule.fullField];\n }\n if (isErrorObj(oe)) {\n oe.field = oe.field || rule.fullField;\n oe.fieldValue = fieldValue;\n return oe;\n }\n return {\n message: typeof oe === 'function' ? oe() : oe,\n fieldValue: fieldValue,\n field: oe.field || rule.fullField\n };\n };\n}\nexport function deepMerge(target, source) {\n if (source) {\n for (var s in source) {\n if (source.hasOwnProperty(s)) {\n var value = source[s];\n if (_typeof(value) === 'object' && _typeof(target[s]) === 'object') {\n target[s] = _objectSpread(_objectSpread({}, target[s]), value);\n } else {\n target[s] = value;\n }\n }\n }\n }\n return target;\n}"],"names":["formatRegExp","warning","process","type","errors","convertFieldsError","fields","error","field","format","template","_len","args","_key","i","len","str","x","isNativeStringType","isEmptyValue","value","asyncParallelArray","arr","func","callback","results","total","arrLength","count","_toConsumableArray","a","asyncSerialArray","index","next","original","flattenObjArr","objArr","ret","k","AsyncValidationError","_Error","_inherits","_super","_createSuper","_this","_classCallCheck","_defineProperty","_assertThisInitialized","_createClass","_wrapNativeSuper","asyncMap","option","source","_pending","resolve","reject","flattenArr","e","firstFields","objArrKeys","objArrLength","pending","key","isErrorObj","obj","getValue","path","v","complementError","rule","oe","fieldValue","deepMerge","target","s","_typeof","_objectSpread"],"mappings":";;;;;;;;;;;AAYA,IAAIA,IAAe,YACRC,IAAU,WAAmB;AAAC;AAGrC,OAAOC,IAAY,OAAeA,EAAQ,OAAOA,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,aAAaA,EAAE,IAAKA;AAAA,MAC3C,YAAYC;AAAA,MACZ,OAAOD,EAAG,SAASD,EAAK;AAAA,IAC9B;AAAA,EACE;AACF;AACO,SAASG,GAAUC,GAAQrB,GAAQ;AACxC,MAAIA;AACF,aAASsB,KAAKtB;AACZ,UAAIA,EAAO,eAAesB,CAAC,GAAG;AAC5B,YAAItD,IAAQgC,EAAOsB,CAAC;AACpB,QAAIC,EAAQvD,CAAK,MAAM,YAAYuD,EAAQF,EAAOC,CAAC,CAAC,MAAM,WACxDD,EAAOC,CAAC,IAAIE,EAAcA,EAAc,CAAA,GAAIH,EAAOC,CAAC,CAAC,GAAGtD,CAAK,IAE7DqD,EAAOC,CAAC,IAAItD;AAAA,MAEhB;AAAA;AAGJ,SAAOqD;AACT;","x_google_ignoreList":[0]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@rc-component/async-validator/es/validator/index.js"],"sourcesContent":["import any from \"./any\";\nimport array from \"./array\";\nimport boolean from \"./boolean\";\nimport date from \"./date\";\nimport enumValidator from \"./enum\";\nimport float from \"./float\";\nimport integer from \"./integer\";\nimport method from \"./method\";\nimport number from \"./number\";\nimport object from \"./object\";\nimport pattern from \"./pattern\";\nimport regexp from \"./regexp\";\nimport required from \"./required\";\nimport string from \"./string\";\nimport type from \"./type\";\nexport default {\n string: string,\n method: method,\n number: number,\n boolean: boolean,\n regexp: regexp,\n integer: integer,\n float: float,\n array: array,\n object: object,\n enum: enumValidator,\n pattern: pattern,\n date: date,\n url: type,\n hex: type,\n email: type,\n required: required,\n any: any\n};"],"names":["validators","string","method","number","boolean","regexp","integer","float","array","object","enumValidator","pattern","date","type","required","any"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAAA,IAAe;AAAA,EACb,QAAQC;AAAA,EACR,QAAQC;AAAA,EACR,QAAQC;AAAA,EACR,SAASC;AAAA,EACT,QAAQC;AAAA,EACR,SAASC;AAAA,EACT,OAAOC;AAAAA,EACP,OAAOC;AAAA,EACP,QAAQC;AAAA,EACR,MAAMC;AAAAA,EACN,SAASC;AAAA,EACT,MAAMC;AAAA,EACN,KAAKC;AAAA,EACL,KAAKA;AAAA,EACL,OAAOA;AAAA,EACP,UAAUC;AAAA,EACV,KAAKC;AACP;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@rc-component/async-validator/es/validator/index.js"],"sourcesContent":["import any from \"./any\";\nimport array from \"./array\";\nimport boolean from \"./boolean\";\nimport date from \"./date\";\nimport enumValidator from \"./enum\";\nimport float from \"./float\";\nimport integer from \"./integer\";\nimport method from \"./method\";\nimport number from \"./number\";\nimport object from \"./object\";\nimport pattern from \"./pattern\";\nimport regexp from \"./regexp\";\nimport required from \"./required\";\nimport string from \"./string\";\nimport type from \"./type\";\nexport default {\n string: string,\n method: method,\n number: number,\n boolean: boolean,\n regexp: regexp,\n integer: integer,\n float: float,\n array: array,\n object: object,\n enum: enumValidator,\n pattern: pattern,\n date: date,\n url: type,\n hex: type,\n email: type,\n tel: type,\n required: required,\n any: any\n};"],"names":["validators","string","method","number","boolean","regexp","integer","float","array","object","enumValidator","pattern","date","type","required","any"],"mappings":";;;;;;;;;;;;;;;AAeA,MAAAA,IAAe;AAAA,EACb,QAAQC;AAAA,EACR,QAAQC;AAAA,EACR,QAAQC;AAAA,EACR,SAASC;AAAA,EACT,QAAQC;AAAA,EACR,SAASC;AAAA,EACT,OAAOC;AAAAA,EACP,OAAOC;AAAA,EACP,QAAQC;AAAA,EACR,MAAMC;AAAAA,EACN,SAASC;AAAA,EACT,MAAMC;AAAA,EACN,KAAKC;AAAA,EACL,KAAKA;AAAA,EACL,OAAOA;AAAA,EACP,KAAKA;AAAA,EACL,UAAUC;AAAA,EACV,KAAKC;AACP;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import P from "../../../@babel/runtime/helpers/esm/extends.js";
|
|
2
2
|
import { clsx as _ } from "../../../clsx/dist/clsx.js";
|
|
3
|
-
import
|
|
3
|
+
import j from "../../util/es/warning.js";
|
|
4
4
|
import c from "react";
|
|
5
5
|
import E from "./hooks/useItems.js";
|
|
6
6
|
import R from "./Panel.js";
|
|
@@ -1,99 +1,119 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import E from "../../../../@babel/runtime/helpers/esm/extends.js";
|
|
2
|
+
import j from "../../../util/es/Children/toArray.js";
|
|
3
3
|
import A from "react";
|
|
4
4
|
import D from "../Panel.js";
|
|
5
|
-
|
|
5
|
+
import { clsx as M } from "../../../../clsx/dist/clsx.js";
|
|
6
|
+
function w(e, n, s) {
|
|
7
|
+
if (!e || !n)
|
|
8
|
+
return e || n;
|
|
9
|
+
const t = Array.from(/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(n)])), o = {};
|
|
10
|
+
return t.forEach((r) => {
|
|
11
|
+
o[r] = s(e[r], n[r]);
|
|
12
|
+
}), o;
|
|
13
|
+
}
|
|
14
|
+
function P(e, n) {
|
|
15
|
+
return w(e, n, (s, t) => M(s, t));
|
|
16
|
+
}
|
|
17
|
+
function _(e, n) {
|
|
18
|
+
return w(e, n, (s, t) => ({
|
|
19
|
+
...s,
|
|
20
|
+
...t
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
const R = (e, n) => {
|
|
6
24
|
const {
|
|
7
|
-
prefixCls:
|
|
25
|
+
prefixCls: s,
|
|
8
26
|
accordion: t,
|
|
9
27
|
collapsible: o,
|
|
10
|
-
destroyOnHidden:
|
|
11
|
-
onItemClick:
|
|
28
|
+
destroyOnHidden: r,
|
|
29
|
+
onItemClick: y,
|
|
12
30
|
activeKey: d,
|
|
13
|
-
openMotion:
|
|
14
|
-
expandIcon:
|
|
15
|
-
classNames:
|
|
16
|
-
styles:
|
|
17
|
-
} =
|
|
18
|
-
return e.map((
|
|
31
|
+
openMotion: m,
|
|
32
|
+
expandIcon: f,
|
|
33
|
+
classNames: C,
|
|
34
|
+
styles: u
|
|
35
|
+
} = n;
|
|
36
|
+
return e.map((k, i) => {
|
|
19
37
|
const {
|
|
20
|
-
children:
|
|
21
|
-
label:
|
|
22
|
-
key:
|
|
23
|
-
collapsible:
|
|
38
|
+
children: b,
|
|
39
|
+
label: O,
|
|
40
|
+
key: I,
|
|
41
|
+
collapsible: x,
|
|
24
42
|
onItemClick: h,
|
|
25
43
|
destroyOnHidden: c,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
44
|
+
classNames: p,
|
|
45
|
+
styles: H,
|
|
46
|
+
...a
|
|
47
|
+
} = k, l = String(I ?? i), S = x ?? o, K = c ?? r, v = (g) => {
|
|
48
|
+
S !== "disabled" && (y(g), h?.(g));
|
|
29
49
|
};
|
|
30
|
-
let
|
|
31
|
-
return t ?
|
|
32
|
-
classNames:
|
|
33
|
-
styles:
|
|
34
|
-
prefixCls:
|
|
35
|
-
key:
|
|
36
|
-
panelKey:
|
|
37
|
-
isActive:
|
|
50
|
+
let N = !1;
|
|
51
|
+
return t ? N = d[0] === l : N = d.indexOf(l) > -1, /* @__PURE__ */ A.createElement(D, E({}, a, {
|
|
52
|
+
classNames: P(C, p),
|
|
53
|
+
styles: _(u, H),
|
|
54
|
+
prefixCls: s,
|
|
55
|
+
key: l,
|
|
56
|
+
panelKey: l,
|
|
57
|
+
isActive: N,
|
|
38
58
|
accordion: t,
|
|
39
|
-
openMotion:
|
|
40
|
-
expandIcon:
|
|
41
|
-
header:
|
|
42
|
-
collapsible:
|
|
43
|
-
onItemClick:
|
|
44
|
-
destroyOnHidden:
|
|
45
|
-
}),
|
|
59
|
+
openMotion: m,
|
|
60
|
+
expandIcon: f,
|
|
61
|
+
header: O,
|
|
62
|
+
collapsible: S,
|
|
63
|
+
onItemClick: v,
|
|
64
|
+
destroyOnHidden: K
|
|
65
|
+
}), b);
|
|
46
66
|
});
|
|
47
|
-
},
|
|
67
|
+
}, T = (e, n, s) => {
|
|
48
68
|
if (!e)
|
|
49
69
|
return null;
|
|
50
70
|
const {
|
|
51
71
|
prefixCls: t,
|
|
52
72
|
accordion: o,
|
|
53
|
-
collapsible:
|
|
54
|
-
destroyOnHidden:
|
|
73
|
+
collapsible: r,
|
|
74
|
+
destroyOnHidden: y,
|
|
55
75
|
onItemClick: d,
|
|
56
|
-
activeKey:
|
|
57
|
-
openMotion:
|
|
58
|
-
expandIcon:
|
|
59
|
-
classNames:
|
|
60
|
-
styles:
|
|
61
|
-
} =
|
|
62
|
-
header:
|
|
63
|
-
headerClass:
|
|
64
|
-
destroyOnHidden:
|
|
65
|
-
collapsible:
|
|
76
|
+
activeKey: m,
|
|
77
|
+
openMotion: f,
|
|
78
|
+
expandIcon: C,
|
|
79
|
+
classNames: u,
|
|
80
|
+
styles: k
|
|
81
|
+
} = s, i = e.key || String(n), {
|
|
82
|
+
header: b,
|
|
83
|
+
headerClass: O,
|
|
84
|
+
destroyOnHidden: I,
|
|
85
|
+
collapsible: x,
|
|
66
86
|
onItemClick: h
|
|
67
87
|
} = e.props;
|
|
68
88
|
let c = !1;
|
|
69
|
-
o ? c =
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
key:
|
|
74
|
-
panelKey:
|
|
75
|
-
header:
|
|
76
|
-
headerClass:
|
|
77
|
-
classNames:
|
|
78
|
-
styles:
|
|
89
|
+
o ? c = m[0] === i : c = m.indexOf(i) > -1;
|
|
90
|
+
const p = x ?? r, H = (l) => {
|
|
91
|
+
p !== "disabled" && (d(l), h?.(l));
|
|
92
|
+
}, a = {
|
|
93
|
+
key: i,
|
|
94
|
+
panelKey: i,
|
|
95
|
+
header: b,
|
|
96
|
+
headerClass: O,
|
|
97
|
+
classNames: u,
|
|
98
|
+
styles: k,
|
|
79
99
|
isActive: c,
|
|
80
100
|
prefixCls: t,
|
|
81
|
-
destroyOnHidden:
|
|
82
|
-
openMotion:
|
|
101
|
+
destroyOnHidden: I ?? y,
|
|
102
|
+
openMotion: f,
|
|
83
103
|
accordion: o,
|
|
84
104
|
children: e.props.children,
|
|
85
|
-
onItemClick:
|
|
86
|
-
expandIcon:
|
|
87
|
-
collapsible:
|
|
105
|
+
onItemClick: H,
|
|
106
|
+
expandIcon: C,
|
|
107
|
+
collapsible: p
|
|
88
108
|
};
|
|
89
|
-
return typeof e.type == "string" ? e : (Object.keys(
|
|
90
|
-
typeof
|
|
91
|
-
}), /* @__PURE__ */ A.cloneElement(e,
|
|
109
|
+
return typeof e.type == "string" ? e : (Object.keys(a).forEach((l) => {
|
|
110
|
+
typeof a[l] > "u" && delete a[l];
|
|
111
|
+
}), /* @__PURE__ */ A.cloneElement(e, a));
|
|
92
112
|
};
|
|
93
|
-
function
|
|
94
|
-
return Array.isArray(e) ?
|
|
113
|
+
function J(e, n, s) {
|
|
114
|
+
return Array.isArray(e) ? R(e, s) : j(n).map((t, o) => T(t, o, s));
|
|
95
115
|
}
|
|
96
116
|
export {
|
|
97
|
-
|
|
117
|
+
J as default
|
|
98
118
|
};
|
|
99
119
|
//# sourceMappingURL=useItems.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useItems.js","sources":["../../../../../../node_modules/@rc-component/collapse/es/hooks/useItems.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport toArray from \"@rc-component/util/es/Children/toArray\";\nimport React from 'react';\nimport CollapsePanel from \"../Panel\";\nconst convertItemsToNodes = (items, props) => {\n const {\n prefixCls,\n accordion,\n collapsible,\n destroyOnHidden,\n onItemClick,\n activeKey,\n openMotion,\n expandIcon,\n classNames: collapseClassNames,\n styles\n } = props;\n return items.map((item, index) => {\n const {\n children,\n label,\n key: rawKey,\n collapsible: rawCollapsible,\n onItemClick: rawOnItemClick,\n destroyOnHidden: rawDestroyOnHidden,\n ...restProps\n } = item;\n\n // You may be puzzled why you want to convert them all into strings, me too.\n // Maybe: https://github.com/react-component/collapse/blob/aac303a8b6ff30e35060b4f8fecde6f4556fcbe2/src/Collapse.tsx#L15\n const key = String(rawKey ?? index);\n const mergeCollapsible = rawCollapsible ?? collapsible;\n const mergedDestroyOnHidden = rawDestroyOnHidden ?? destroyOnHidden;\n const handleItemClick = value => {\n if (mergeCollapsible === 'disabled') {\n return;\n }\n onItemClick(value);\n rawOnItemClick?.(value);\n };\n let isActive = false;\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n return /*#__PURE__*/React.createElement(CollapsePanel, _extends({}, restProps, {\n classNames: collapseClassNames,\n styles: styles,\n prefixCls: prefixCls,\n key: key,\n panelKey: key,\n isActive: isActive,\n accordion: accordion,\n openMotion: openMotion,\n expandIcon: expandIcon,\n header: label,\n collapsible: mergeCollapsible,\n onItemClick: handleItemClick,\n destroyOnHidden: mergedDestroyOnHidden\n }), children);\n });\n};\n\n/**\n * @deprecated The next major version will be removed\n */\nconst getNewChild = (child, index, props) => {\n if (!child) {\n return null;\n }\n const {\n prefixCls,\n accordion,\n collapsible,\n destroyOnHidden,\n onItemClick,\n activeKey,\n openMotion,\n expandIcon,\n classNames: collapseClassNames,\n styles\n } = props;\n const key = child.key || String(index);\n const {\n header,\n headerClass,\n destroyOnHidden: childDestroyOnHidden,\n collapsible: childCollapsible,\n onItemClick: childOnItemClick\n } = child.props;\n let isActive = false;\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n const mergeCollapsible = childCollapsible ?? collapsible;\n const handleItemClick = value => {\n if (mergeCollapsible === 'disabled') {\n return;\n }\n onItemClick(value);\n childOnItemClick?.(value);\n };\n const childProps = {\n key,\n panelKey: key,\n header,\n headerClass,\n classNames: collapseClassNames,\n styles,\n isActive,\n prefixCls,\n destroyOnHidden: childDestroyOnHidden ?? destroyOnHidden,\n openMotion,\n accordion,\n children: child.props.children,\n onItemClick: handleItemClick,\n expandIcon,\n collapsible: mergeCollapsible\n };\n\n // https://github.com/ant-design/ant-design/issues/20479\n if (typeof child.type === 'string') {\n return child;\n }\n Object.keys(childProps).forEach(propName => {\n if (typeof childProps[propName] === 'undefined') {\n delete childProps[propName];\n }\n });\n return /*#__PURE__*/React.cloneElement(child, childProps);\n};\nfunction useItems(items, rawChildren, props) {\n if (Array.isArray(items)) {\n return convertItemsToNodes(items, props);\n }\n return toArray(rawChildren).map((child, index) => getNewChild(child, index, props));\n}\nexport default useItems;"],"names":["convertItemsToNodes","items","props","prefixCls","accordion","collapsible","destroyOnHidden","onItemClick","activeKey","openMotion","expandIcon","collapseClassNames","
|
|
1
|
+
{"version":3,"file":"useItems.js","sources":["../../../../../../node_modules/@rc-component/collapse/es/hooks/useItems.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport toArray from \"@rc-component/util/es/Children/toArray\";\nimport React from 'react';\nimport CollapsePanel from \"../Panel\";\nimport clsx from 'clsx';\nfunction mergeSemantic(src, tgt, mergeFn) {\n if (!src || !tgt) {\n return src || tgt;\n }\n const keys = Array.from(new Set([...Object.keys(src), ...Object.keys(tgt)]));\n const result = {};\n keys.forEach(key => {\n result[key] = mergeFn(src[key], tgt[key]);\n });\n return result;\n}\nfunction mergeSemanticClassNames(src, tgt) {\n return mergeSemantic(src, tgt, (a, b) => clsx(a, b));\n}\nfunction mergeSemanticStyles(src, tgt) {\n return mergeSemantic(src, tgt, (a, b) => ({\n ...a,\n ...b\n }));\n}\nconst convertItemsToNodes = (items, props) => {\n const {\n prefixCls,\n accordion,\n collapsible,\n destroyOnHidden,\n onItemClick,\n activeKey,\n openMotion,\n expandIcon,\n classNames: collapseClassNames,\n styles: collapseStyles\n } = props;\n return items.map((item, index) => {\n const {\n children,\n label,\n key: rawKey,\n collapsible: rawCollapsible,\n onItemClick: rawOnItemClick,\n destroyOnHidden: rawDestroyOnHidden,\n classNames,\n styles,\n ...restProps\n } = item;\n\n // You may be puzzled why you want to convert them all into strings, me too.\n // Maybe: https://github.com/react-component/collapse/blob/aac303a8b6ff30e35060b4f8fecde6f4556fcbe2/src/Collapse.tsx#L15\n const key = String(rawKey ?? index);\n const mergeCollapsible = rawCollapsible ?? collapsible;\n const mergedDestroyOnHidden = rawDestroyOnHidden ?? destroyOnHidden;\n const handleItemClick = value => {\n if (mergeCollapsible === 'disabled') {\n return;\n }\n onItemClick(value);\n rawOnItemClick?.(value);\n };\n let isActive = false;\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n return /*#__PURE__*/React.createElement(CollapsePanel, _extends({}, restProps, {\n classNames: mergeSemanticClassNames(collapseClassNames, classNames),\n styles: mergeSemanticStyles(collapseStyles, styles),\n prefixCls: prefixCls,\n key: key,\n panelKey: key,\n isActive: isActive,\n accordion: accordion,\n openMotion: openMotion,\n expandIcon: expandIcon,\n header: label,\n collapsible: mergeCollapsible,\n onItemClick: handleItemClick,\n destroyOnHidden: mergedDestroyOnHidden\n }), children);\n });\n};\n\n/**\n * @deprecated The next major version will be removed\n */\nconst getNewChild = (child, index, props) => {\n if (!child) {\n return null;\n }\n const {\n prefixCls,\n accordion,\n collapsible,\n destroyOnHidden,\n onItemClick,\n activeKey,\n openMotion,\n expandIcon,\n classNames: collapseClassNames,\n styles\n } = props;\n const key = child.key || String(index);\n const {\n header,\n headerClass,\n destroyOnHidden: childDestroyOnHidden,\n collapsible: childCollapsible,\n onItemClick: childOnItemClick\n } = child.props;\n let isActive = false;\n if (accordion) {\n isActive = activeKey[0] === key;\n } else {\n isActive = activeKey.indexOf(key) > -1;\n }\n const mergeCollapsible = childCollapsible ?? collapsible;\n const handleItemClick = value => {\n if (mergeCollapsible === 'disabled') {\n return;\n }\n onItemClick(value);\n childOnItemClick?.(value);\n };\n const childProps = {\n key,\n panelKey: key,\n header,\n headerClass,\n classNames: collapseClassNames,\n styles,\n isActive,\n prefixCls,\n destroyOnHidden: childDestroyOnHidden ?? destroyOnHidden,\n openMotion,\n accordion,\n children: child.props.children,\n onItemClick: handleItemClick,\n expandIcon,\n collapsible: mergeCollapsible\n };\n\n // https://github.com/ant-design/ant-design/issues/20479\n if (typeof child.type === 'string') {\n return child;\n }\n Object.keys(childProps).forEach(propName => {\n if (typeof childProps[propName] === 'undefined') {\n delete childProps[propName];\n }\n });\n return /*#__PURE__*/React.cloneElement(child, childProps);\n};\nfunction useItems(items, rawChildren, props) {\n if (Array.isArray(items)) {\n return convertItemsToNodes(items, props);\n }\n return toArray(rawChildren).map((child, index) => getNewChild(child, index, props));\n}\nexport default useItems;"],"names":["mergeSemantic","src","tgt","mergeFn","keys","result","key","mergeSemanticClassNames","a","b","clsx","mergeSemanticStyles","convertItemsToNodes","items","props","prefixCls","accordion","collapsible","destroyOnHidden","onItemClick","activeKey","openMotion","expandIcon","collapseClassNames","collapseStyles","item","index","children","label","rawKey","rawCollapsible","rawOnItemClick","rawDestroyOnHidden","classNames","styles","restProps","mergeCollapsible","mergedDestroyOnHidden","handleItemClick","value","isActive","React","CollapsePanel","_extends","getNewChild","child","header","headerClass","childDestroyOnHidden","childCollapsible","childOnItemClick","childProps","propName","useItems","rawChildren","toArray"],"mappings":";;;;;AAKA,SAASA,EAAcC,GAAKC,GAAKC,GAAS;AACxC,MAAI,CAACF,KAAO,CAACC;AACX,WAAOD,KAAOC;AAEhB,QAAME,IAAO,MAAM,KAAK,oBAAI,IAAI,CAAC,GAAG,OAAO,KAAKH,CAAG,GAAG,GAAG,OAAO,KAAKC,CAAG,CAAC,CAAC,CAAC,GACrEG,IAAS,CAAA;AACf,SAAAD,EAAK,QAAQ,CAAAE,MAAO;AAClB,IAAAD,EAAOC,CAAG,IAAIH,EAAQF,EAAIK,CAAG,GAAGJ,EAAII,CAAG,CAAC;AAAA,EAC1C,CAAC,GACMD;AACT;AACA,SAASE,EAAwBN,GAAKC,GAAK;AACzC,SAAOF,EAAcC,GAAKC,GAAK,CAACM,GAAGC,MAAMC,EAAKF,GAAGC,CAAC,CAAC;AACrD;AACA,SAASE,EAAoBV,GAAKC,GAAK;AACrC,SAAOF,EAAcC,GAAKC,GAAK,CAACM,GAAGC,OAAO;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,EAAWC,CAAQ;AAAA,EAE9B,CAAC,GACmBX,gBAAAA,EAAM,aAAaI,GAAOM,CAAU;AAC1D;AACA,SAASE,EAASxC,GAAOyC,GAAaxC,GAAO;AAC3C,SAAI,MAAM,QAAQD,CAAK,IACdD,EAAoBC,GAAOC,CAAK,IAElCyC,EAAQD,CAAW,EAAE,IAAI,CAACT,GAAOnB,MAAUkB,EAAYC,GAAOnB,GAAOZ,CAAK,CAAC;AACpF;","x_google_ignoreList":[0]}
|
|
@@ -1,137 +1,116 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { clsx as
|
|
3
|
-
import { useComposeRef as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import H from "../../../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
|
|
2
|
+
import { clsx as l } from "../../../../../clsx/dist/clsx.js";
|
|
3
|
+
import { useComposeRef as L } from "../../../../util/es/ref.js";
|
|
4
|
+
import { useLockFocus as T } from "../../../../util/es/Dom/focus.js";
|
|
5
|
+
import t, { useRef as V, useMemo as q } from "react";
|
|
6
|
+
import { RefContext as z } from "../../context.js";
|
|
7
|
+
import G from "./MemoChildren.js";
|
|
8
|
+
import J from "../../../../util/es/pickAttrs.js";
|
|
9
|
+
function i() {
|
|
10
|
+
return i = Object.assign ? Object.assign.bind() : function(c) {
|
|
11
|
+
for (var s = 1; s < arguments.length; s++) {
|
|
12
|
+
var e = arguments[s];
|
|
13
|
+
for (var n in e)
|
|
14
|
+
Object.prototype.hasOwnProperty.call(e, n) && (c[n] = e[n]);
|
|
14
15
|
}
|
|
15
16
|
return c;
|
|
16
|
-
},
|
|
17
|
+
}, i.apply(this, arguments);
|
|
17
18
|
}
|
|
18
|
-
const
|
|
19
|
-
width: 0,
|
|
20
|
-
height: 0,
|
|
21
|
-
overflow: "hidden",
|
|
22
|
-
outline: "none"
|
|
23
|
-
}, T = {
|
|
24
|
-
outline: "none"
|
|
25
|
-
}, W = /* @__PURE__ */ e.forwardRef((c, l) => {
|
|
19
|
+
const K = /* @__PURE__ */ t.forwardRef((c, s) => {
|
|
26
20
|
const {
|
|
27
|
-
prefixCls:
|
|
28
|
-
className:
|
|
29
|
-
style:
|
|
30
|
-
title:
|
|
31
|
-
ariaId:
|
|
32
|
-
footer:
|
|
21
|
+
prefixCls: e,
|
|
22
|
+
className: n,
|
|
23
|
+
style: g,
|
|
24
|
+
title: d,
|
|
25
|
+
ariaId: u,
|
|
26
|
+
footer: p,
|
|
33
27
|
closable: o,
|
|
34
28
|
closeIcon: b,
|
|
35
29
|
onClose: x,
|
|
36
|
-
children:
|
|
30
|
+
children: C,
|
|
37
31
|
bodyStyle: $,
|
|
38
|
-
bodyProps:
|
|
39
|
-
modalRender:
|
|
40
|
-
onMouseDown:
|
|
41
|
-
onMouseUp:
|
|
42
|
-
holderRef:
|
|
43
|
-
visible:
|
|
44
|
-
forceRender:
|
|
45
|
-
width:
|
|
46
|
-
height:
|
|
47
|
-
classNames:
|
|
48
|
-
styles: a
|
|
32
|
+
bodyProps: I,
|
|
33
|
+
modalRender: y,
|
|
34
|
+
onMouseDown: j,
|
|
35
|
+
onMouseUp: w,
|
|
36
|
+
holderRef: M,
|
|
37
|
+
visible: h,
|
|
38
|
+
forceRender: O,
|
|
39
|
+
width: N,
|
|
40
|
+
height: v,
|
|
41
|
+
classNames: r,
|
|
42
|
+
styles: a,
|
|
43
|
+
isFixedPos: P,
|
|
44
|
+
focusTrap: D
|
|
49
45
|
} = c, {
|
|
50
|
-
panel:
|
|
51
|
-
} =
|
|
52
|
-
|
|
46
|
+
panel: S
|
|
47
|
+
} = t.useContext(z), m = V(null), _ = L(M, S, m);
|
|
48
|
+
T(h && P && D !== !1, () => m.current), t.useImperativeHandle(s, () => ({
|
|
53
49
|
focus: () => {
|
|
54
|
-
|
|
55
|
-
preventScroll: !0
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
changeActive: (R) => {
|
|
59
|
-
const {
|
|
60
|
-
activeElement: C
|
|
61
|
-
} = document;
|
|
62
|
-
R && C === f.current ? i.current.focus({
|
|
63
|
-
preventScroll: !0
|
|
64
|
-
}) : !R && C === i.current && f.current.focus({
|
|
50
|
+
m.current?.focus({
|
|
65
51
|
preventScroll: !0
|
|
66
52
|
});
|
|
67
53
|
}
|
|
68
54
|
}));
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
const
|
|
72
|
-
className:
|
|
55
|
+
const f = {};
|
|
56
|
+
N !== void 0 && (f.width = N), v !== void 0 && (f.height = v);
|
|
57
|
+
const U = p ? /* @__PURE__ */ t.createElement("div", {
|
|
58
|
+
className: l(`${e}-footer`, r?.footer),
|
|
73
59
|
style: {
|
|
74
60
|
...a?.footer
|
|
75
61
|
}
|
|
76
|
-
},
|
|
77
|
-
className:
|
|
62
|
+
}, p) : null, k = d ? /* @__PURE__ */ t.createElement("div", {
|
|
63
|
+
className: l(`${e}-header`, r?.header),
|
|
78
64
|
style: {
|
|
79
65
|
...a?.header
|
|
80
66
|
}
|
|
81
|
-
}, /* @__PURE__ */
|
|
82
|
-
className:
|
|
83
|
-
id:
|
|
67
|
+
}, /* @__PURE__ */ t.createElement("div", {
|
|
68
|
+
className: l(`${e}-title`, r?.title),
|
|
69
|
+
id: u,
|
|
84
70
|
style: {
|
|
85
71
|
...a?.title
|
|
86
72
|
}
|
|
87
|
-
},
|
|
88
|
-
closeIcon: b ?? /* @__PURE__ */
|
|
89
|
-
className: `${
|
|
73
|
+
}, d)) : null, E = q(() => typeof o == "object" && o !== null ? o : o ? {
|
|
74
|
+
closeIcon: b ?? /* @__PURE__ */ t.createElement("span", {
|
|
75
|
+
className: `${e}-close-x`
|
|
90
76
|
})
|
|
91
|
-
} : {}, [o, b,
|
|
77
|
+
} : {}, [o, b, e]), F = J(E, !0), A = typeof o == "object" && o.disabled, B = o ? /* @__PURE__ */ t.createElement("button", i({
|
|
92
78
|
type: "button",
|
|
93
79
|
onClick: x,
|
|
94
80
|
"aria-label": "Close"
|
|
95
|
-
},
|
|
96
|
-
className: `${
|
|
97
|
-
disabled:
|
|
98
|
-
}), E.closeIcon) : null,
|
|
99
|
-
className:
|
|
81
|
+
}, F, {
|
|
82
|
+
className: `${e}-close`,
|
|
83
|
+
disabled: A
|
|
84
|
+
}), E.closeIcon) : null, R = /* @__PURE__ */ t.createElement("div", {
|
|
85
|
+
className: l(`${e}-container`, r?.container),
|
|
100
86
|
style: a?.container
|
|
101
|
-
},
|
|
102
|
-
className:
|
|
87
|
+
}, B, k, /* @__PURE__ */ t.createElement("div", i({
|
|
88
|
+
className: l(`${e}-body`, r?.body),
|
|
103
89
|
style: {
|
|
104
90
|
...$,
|
|
105
91
|
...a?.body
|
|
106
92
|
}
|
|
107
|
-
},
|
|
108
|
-
return /* @__PURE__ */
|
|
93
|
+
}, I), C), U);
|
|
94
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
109
95
|
key: "dialog-element",
|
|
110
96
|
role: "dialog",
|
|
111
|
-
"aria-labelledby":
|
|
97
|
+
"aria-labelledby": d ? u : null,
|
|
112
98
|
"aria-modal": "true",
|
|
113
|
-
ref:
|
|
99
|
+
ref: _,
|
|
114
100
|
style: {
|
|
115
|
-
...
|
|
116
|
-
...
|
|
101
|
+
...g,
|
|
102
|
+
...f
|
|
117
103
|
},
|
|
118
|
-
className:
|
|
119
|
-
onMouseDown:
|
|
120
|
-
onMouseUp:
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}, /* @__PURE__ */ e.createElement(K, {
|
|
126
|
-
shouldUpdate: D || _
|
|
127
|
-
}, h ? h(g) : g)), /* @__PURE__ */ e.createElement("div", {
|
|
128
|
-
tabIndex: 0,
|
|
129
|
-
ref: f,
|
|
130
|
-
style: Q
|
|
131
|
-
}));
|
|
104
|
+
className: l(e, n),
|
|
105
|
+
onMouseDown: j,
|
|
106
|
+
onMouseUp: w,
|
|
107
|
+
tabIndex: -1
|
|
108
|
+
}, /* @__PURE__ */ t.createElement(G, {
|
|
109
|
+
shouldUpdate: h || O
|
|
110
|
+
}, y ? y(R) : R));
|
|
132
111
|
});
|
|
133
|
-
|
|
112
|
+
H.env.NODE_ENV !== "production" && (K.displayName = "Panel");
|
|
134
113
|
export {
|
|
135
|
-
|
|
114
|
+
K as default
|
|
136
115
|
};
|
|
137
116
|
//# sourceMappingURL=Panel.js.map
|