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":"vertical.js","sources":["../../../../../../node_modules/antd/es/menu/style/vertical.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { textEllipsis } from '../../style';\nconst getVerticalInlineStyle = token => {\n const {\n componentCls,\n itemHeight,\n itemMarginInline,\n padding,\n menuArrowSize,\n marginXS,\n itemMarginBlock,\n itemWidth,\n itemPaddingInline\n } = token;\n const paddingWithArrow = token.calc(menuArrowSize).add(padding).add(marginXS).equal();\n return {\n [`${componentCls}-item`]: {\n position: 'relative',\n overflow: 'hidden'\n },\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n height: itemHeight,\n lineHeight: unit(itemHeight),\n paddingInline: itemPaddingInline,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n marginInline: itemMarginInline,\n marginBlock: itemMarginBlock,\n width: itemWidth\n },\n [`> ${componentCls}-item,\n > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n height: itemHeight,\n lineHeight: unit(itemHeight)\n },\n [`${componentCls}-item-group-list ${componentCls}-submenu-title,\n ${componentCls}-submenu-title`]: {\n paddingInlineEnd: paddingWithArrow\n }\n };\n};\nconst getVerticalStyle = token => {\n const {\n componentCls,\n iconCls,\n itemHeight,\n colorTextLightSolid,\n dropdownWidth,\n controlHeightLG,\n motionEaseOut,\n paddingXL,\n itemMarginInline,\n fontSizeLG,\n motionDurationFast,\n motionDurationSlow,\n paddingXS,\n boxShadowSecondary,\n collapsedWidth,\n collapsedIconSize\n } = token;\n const inlineItemStyle = {\n height: itemHeight,\n lineHeight: unit(itemHeight),\n listStylePosition: 'inside',\n listStyleType: 'disc'\n };\n return [{\n [componentCls]: {\n '&-inline, &-vertical': {\n [`&${componentCls}-root`]: {\n boxShadow: 'none'\n },\n ...getVerticalInlineStyle(token)\n }\n },\n [`${componentCls}-submenu-popup`]: {\n [`${componentCls}-vertical`]: {\n ...getVerticalInlineStyle(token),\n boxShadow: boxShadowSecondary\n }\n }\n },\n // Vertical only\n {\n [`${componentCls}-submenu-popup ${componentCls}-vertical${componentCls}-sub`]: {\n minWidth: dropdownWidth,\n maxHeight: `calc(100vh - ${unit(token.calc(controlHeightLG).mul(2.5).equal())})`,\n padding: '0',\n overflow: 'hidden',\n borderInlineEnd: 0,\n // https://github.com/ant-design/ant-design/issues/22244\n // https://github.com/ant-design/ant-design/issues/26812\n \"&:not([class*='-active'])\": {\n overflowX: 'hidden',\n overflowY: 'auto'\n }\n }\n },\n // Inline Only\n {\n [`${componentCls}-inline`]: {\n width: '100%',\n // Motion enhance for first level\n [`&${componentCls}-root`]: {\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n display: 'flex',\n alignItems: 'center',\n transition: [`border-color ${motionDurationSlow}`, `background ${motionDurationSlow}`, `padding ${motionDurationFast} ${motionEaseOut}`].join(','),\n [`> ${componentCls}-title-content`]: {\n flex: 'auto',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n '> *': {\n flex: 'none'\n }\n }\n },\n // >>>>> Sub\n [`${componentCls}-sub${componentCls}-inline`]: {\n padding: 0,\n border: 0,\n borderRadius: 0,\n boxShadow: 'none',\n [`& > ${componentCls}-submenu > ${componentCls}-submenu-title`]: inlineItemStyle,\n [`& ${componentCls}-item-group-title`]: {\n paddingInlineStart: paddingXL\n }\n },\n // >>>>> Item\n [`${componentCls}-item`]: inlineItemStyle\n }\n },\n // Inline Collapse Only\n {\n [`${componentCls}-inline-collapsed`]: {\n width: collapsedWidth,\n [`&${componentCls}-root`]: {\n [`${componentCls}-item, ${componentCls}-submenu ${componentCls}-submenu-title`]: {\n [`> ${componentCls}-inline-collapsed-noicon`]: {\n fontSize: fontSizeLG,\n textAlign: 'center'\n }\n }\n },\n [`> ${componentCls}-item,\n > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-item,\n > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-submenu > ${componentCls}-submenu-title,\n > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n insetInlineStart: 0,\n paddingInline: `calc(50% - ${unit(token.calc(collapsedIconSize).div(2).equal())} - ${unit(itemMarginInline)})`,\n textOverflow: 'clip',\n [`\n ${componentCls}-submenu-arrow,\n ${componentCls}-submenu-expand-icon\n `]: {\n opacity: 0\n },\n [`${componentCls}-item-icon, ${iconCls}`]: {\n margin: 0,\n fontSize: collapsedIconSize,\n lineHeight: unit(itemHeight),\n '+ span': {\n display: 'inline-block',\n opacity: 0\n }\n }\n },\n [`${componentCls}-item-icon, ${iconCls}`]: {\n display: 'inline-block'\n },\n '&-tooltip': {\n pointerEvents: 'none',\n [`${componentCls}-item-icon, ${iconCls}`]: {\n display: 'none'\n },\n 'a, a:hover': {\n color: colorTextLightSolid\n }\n },\n [`${componentCls}-item-group-title`]: {\n ...textEllipsis,\n paddingInline: paddingXS\n }\n }\n }];\n};\nexport default getVerticalStyle;"],"names":["getVerticalInlineStyle","token","componentCls","itemHeight","itemMarginInline","padding","menuArrowSize","marginXS","itemMarginBlock","itemWidth","itemPaddingInline","paddingWithArrow","unit","getVerticalStyle","iconCls","colorTextLightSolid","dropdownWidth","controlHeightLG","motionEaseOut","paddingXL","fontSizeLG","motionDurationFast","motionDurationSlow","paddingXS","boxShadowSecondary","collapsedWidth","collapsedIconSize","inlineItemStyle","textEllipsis"],"mappings":";;AAEA,MAAMA,IAAyB,CAAAC,MAAS;AACtC,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,SAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,mBAAAC;AAAA,EACJ,IAAMT,GACEU,IAAmBV,EAAM,KAAKK,CAAa,EAAE,IAAID,CAAO,EAAE,IAAIE,CAAQ,EAAE,MAAK;AACnF,SAAO;AAAA,IACL,CAAC,GAAGL,CAAY,OAAO,GAAG;AAAA,MACxB,UAAU;AAAA,MACV,UAAU;AAAA,IAChB;AAAA,IACI,CAAC,GAAGA,CAAY,UAAUA,CAAY,gBAAgB,GAAG;AAAA,MACvD,QAAQC;AAAA,MACR,YAAYS,EAAKT,CAAU;AAAA,MAC3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;AAAA,UACQ,cAAc;AAAA,YACZ,OAAOC;AAAA,UACjB;AAAA,QACA;AAAA,QACM,CAAC,GAAGb,CAAY,mBAAmB,GAAG;AAAA,UACpC,GAAG0B;AAAA,UACH,eAAeL;AAAA,QACvB;AAAA,MACA;AAAA,IACA;AAAA,EAAG;AACH;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"vertical.js","sources":["../../../../../../node_modules/antd/es/menu/style/vertical.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { textEllipsis } from '../../style';\nconst getVerticalInlineStyle = token => {\n const {\n componentCls,\n itemHeight,\n itemMarginInline,\n padding,\n menuArrowSize,\n marginXS,\n itemMarginBlock,\n itemWidth,\n itemPaddingInline\n } = token;\n const paddingWithArrow = token.calc(menuArrowSize).add(padding).add(marginXS).equal();\n return {\n [`${componentCls}-item`]: {\n position: 'relative',\n overflow: 'hidden'\n },\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n height: itemHeight,\n lineHeight: unit(itemHeight),\n paddingInline: itemPaddingInline,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n marginInline: itemMarginInline,\n marginBlock: itemMarginBlock,\n width: itemWidth\n },\n [`> ${componentCls}-item,\n > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n height: itemHeight,\n lineHeight: unit(itemHeight)\n },\n [`${componentCls}-item-group-list ${componentCls}-submenu-title,\n ${componentCls}-submenu-title`]: {\n paddingInlineEnd: paddingWithArrow\n }\n };\n};\nconst getVerticalStyle = token => {\n const {\n componentCls,\n iconCls,\n itemHeight,\n colorTextLightSolid,\n dropdownWidth,\n controlHeightLG,\n motionEaseOut,\n paddingXL,\n itemMarginInline,\n fontSizeLG,\n motionDurationFast,\n motionDurationSlow,\n paddingXS,\n boxShadowSecondary,\n collapsedWidth,\n collapsedIconSize\n } = token;\n const inlineItemStyle = {\n height: itemHeight,\n lineHeight: unit(itemHeight),\n listStylePosition: 'inside',\n listStyleType: 'disc'\n };\n return [{\n [componentCls]: {\n '&-inline, &-vertical': {\n [`&${componentCls}-root`]: {\n boxShadow: 'none'\n },\n ...getVerticalInlineStyle(token)\n }\n },\n [`${componentCls}-submenu-popup`]: {\n [`${componentCls}-vertical`]: {\n ...getVerticalInlineStyle(token),\n boxShadow: boxShadowSecondary\n }\n }\n },\n // Vertical only\n {\n [`${componentCls}-submenu-popup ${componentCls}-vertical${componentCls}-sub`]: {\n minWidth: dropdownWidth,\n maxHeight: `calc(100vh - ${unit(token.calc(controlHeightLG).mul(2.5).equal())})`,\n padding: '0',\n overflow: 'hidden',\n borderInlineEnd: 0,\n // https://github.com/ant-design/ant-design/issues/22244\n // https://github.com/ant-design/ant-design/issues/26812\n \"&:not([class*='-active'])\": {\n overflowX: 'hidden',\n overflowY: 'auto'\n }\n }\n },\n // Inline Only\n {\n [`${componentCls}-inline`]: {\n width: '100%',\n // Motion enhance for first level\n [`&${componentCls}-root`]: {\n [`${componentCls}-item, ${componentCls}-submenu-title`]: {\n display: 'flex',\n alignItems: 'center',\n transition: [`border-color ${motionDurationSlow}`, `background-color ${motionDurationSlow}`, `padding ${motionDurationFast} ${motionEaseOut}`].join(','),\n [`> ${componentCls}-title-content`]: {\n flex: 'auto',\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n '> *': {\n flex: 'none'\n }\n }\n },\n // >>>>> Sub\n [`${componentCls}-sub${componentCls}-inline`]: {\n padding: 0,\n border: 0,\n borderRadius: 0,\n boxShadow: 'none',\n [`& > ${componentCls}-submenu > ${componentCls}-submenu-title`]: inlineItemStyle,\n [`& ${componentCls}-item-group-title`]: {\n paddingInlineStart: paddingXL\n }\n },\n // >>>>> Item\n [`${componentCls}-item`]: inlineItemStyle\n }\n },\n // Inline Collapse Only\n {\n [`${componentCls}-inline-collapsed`]: {\n width: collapsedWidth,\n [`&${componentCls}-root`]: {\n [`${componentCls}-item, ${componentCls}-submenu ${componentCls}-submenu-title`]: {\n [`> ${componentCls}-inline-collapsed-noicon`]: {\n fontSize: fontSizeLG,\n textAlign: 'center'\n }\n }\n },\n [`> ${componentCls}-item,\n > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-item,\n > ${componentCls}-item-group > ${componentCls}-item-group-list > ${componentCls}-submenu > ${componentCls}-submenu-title,\n > ${componentCls}-submenu > ${componentCls}-submenu-title`]: {\n insetInlineStart: 0,\n paddingInline: `calc(50% - ${unit(token.calc(collapsedIconSize).div(2).equal())} - ${unit(itemMarginInline)})`,\n textOverflow: 'clip',\n [`\n ${componentCls}-submenu-arrow,\n ${componentCls}-submenu-expand-icon\n `]: {\n opacity: 0\n },\n [`${componentCls}-item-icon, ${iconCls}`]: {\n margin: 0,\n fontSize: collapsedIconSize,\n lineHeight: unit(itemHeight),\n '+ span': {\n display: 'inline-block',\n opacity: 0\n }\n }\n },\n [`${componentCls}-item-icon, ${iconCls}`]: {\n display: 'inline-block'\n },\n '&-tooltip': {\n pointerEvents: 'none',\n [`${componentCls}-item-icon, ${iconCls}`]: {\n display: 'none'\n },\n 'a, a:hover': {\n color: colorTextLightSolid\n }\n },\n [`${componentCls}-item-group-title`]: {\n ...textEllipsis,\n paddingInline: paddingXS\n }\n }\n }];\n};\nexport default getVerticalStyle;"],"names":["getVerticalInlineStyle","token","componentCls","itemHeight","itemMarginInline","padding","menuArrowSize","marginXS","itemMarginBlock","itemWidth","itemPaddingInline","paddingWithArrow","unit","getVerticalStyle","iconCls","colorTextLightSolid","dropdownWidth","controlHeightLG","motionEaseOut","paddingXL","fontSizeLG","motionDurationFast","motionDurationSlow","paddingXS","boxShadowSecondary","collapsedWidth","collapsedIconSize","inlineItemStyle","textEllipsis"],"mappings":";;AAEA,MAAMA,IAAyB,CAAAC,MAAS;AACtC,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,SAAAC;AAAA,IACA,eAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WAAAC;AA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;AAAA,YACR,UAAUY;AAAA,YACV,YAAYd,EAAKT,CAAU;AAAA,YAC3B,UAAU;AAAA,cACR,SAAS;AAAA,cACT,SAAS;AAAA,YACrB;AAAA,UACA;AAAA,QACA;AAAA,QACM,CAAC,GAAGD,CAAY,eAAeY,CAAO,EAAE,GAAG;AAAA,UACzC,SAAS;AAAA,QACjB;AAAA,QACM,aAAa;AAAA,UACX,eAAe;AAAA,UACf,CAAC,GAAGZ,CAAY,eAAeY,CAAO,EAAE,GAAG;AAAA,YACzC,SAAS;AAAA,UACnB;AAAA,UACQ,cAAc;AAAA,YACZ,OAAOC;AAAA,UACjB;AAAA,QACA;AAAA,QACM,CAAC,GAAGb,CAAY,mBAAmB,GAAG;AAAA,UACpC,GAAG0B;AAAA,UACH,eAAeL;AAAA,QACvB;AAAA,MACA;AAAA,IACA;AAAA,EAAG;AACH;","x_google_ignoreList":[0]}
|
|
@@ -3,7 +3,7 @@ import E from "../../../@babel/runtime/helpers/esm/toConsumableArray.js";
|
|
|
3
3
|
import c, { useContext as h } from "react";
|
|
4
4
|
import { render as M } from "../../../@rc-component/util/es/React/render.js";
|
|
5
5
|
import { AppConfigContext as v } from "../app/context.js";
|
|
6
|
-
import w, {
|
|
6
|
+
import w, { warnContext as R, globalConfig as x } from "../config-provider/index.js";
|
|
7
7
|
import _ from "./PurePanel.js";
|
|
8
8
|
import G, { useInternalMessage as I } from "./useMessage.js";
|
|
9
9
|
import { wrapPromiseFn as b } from "./util.js";
|
|
@@ -1,172 +1,177 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
1
|
+
import v from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
import R from "../../../@ant-design/icons/es/icons/CheckCircleFilled.js";
|
|
4
4
|
import S from "../../../@ant-design/icons/es/icons/CloseCircleFilled.js";
|
|
5
5
|
import _ from "../../../@ant-design/icons/es/icons/ExclamationCircleFilled.js";
|
|
6
6
|
import z from "../../../@ant-design/icons/es/icons/InfoCircleFilled.js";
|
|
7
|
-
import { clsx as
|
|
8
|
-
import { getTransitionName as
|
|
7
|
+
import { clsx as O } from "../../../clsx/dist/clsx.js";
|
|
8
|
+
import { getTransitionName as I } from "../_util/motion.js";
|
|
9
9
|
import { devUseWarning as D } from "../_util/warning.js";
|
|
10
10
|
import L from "../config-provider/index.js";
|
|
11
11
|
import { useComponentConfig as V } from "../config-provider/context.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { ModalContextProvider as
|
|
16
|
-
import
|
|
12
|
+
import A from "../theme/useToken.js";
|
|
13
|
+
import w from "./components/ConfirmCancelBtn.js";
|
|
14
|
+
import M from "./components/ConfirmOkBtn.js";
|
|
15
|
+
import { ModalContextProvider as W } from "./context.js";
|
|
16
|
+
import j from "./Modal.js";
|
|
17
17
|
import U from "./style/confirm.js";
|
|
18
18
|
import X from "../locale/useLocale.js";
|
|
19
19
|
import { CONTAINER_MAX_OFFSET as Z } from "../_util/hooks/useZIndex.js";
|
|
20
|
-
const q = (
|
|
20
|
+
const q = (t) => {
|
|
21
21
|
const {
|
|
22
|
-
prefixCls:
|
|
22
|
+
prefixCls: s,
|
|
23
23
|
icon: o,
|
|
24
|
-
okText:
|
|
25
|
-
cancelText:
|
|
26
|
-
confirmPrefixCls:
|
|
24
|
+
okText: i,
|
|
25
|
+
cancelText: m,
|
|
26
|
+
confirmPrefixCls: r,
|
|
27
27
|
type: k,
|
|
28
28
|
okCancel: E,
|
|
29
29
|
footer: a,
|
|
30
30
|
// Legacy for static function usage
|
|
31
|
-
locale:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
locale: T,
|
|
32
|
+
autoFocusButton: g,
|
|
33
|
+
focusable: p,
|
|
34
|
+
...f
|
|
35
|
+
} = t;
|
|
36
|
+
if (v.env.NODE_ENV !== "production") {
|
|
37
|
+
const c = D("Modal");
|
|
38
|
+
v.env.NODE_ENV !== "production" && c(!(typeof o == "string" && o.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${o}\` at https://ant.design/components/icon`);
|
|
37
39
|
}
|
|
38
|
-
let
|
|
40
|
+
let l = o;
|
|
39
41
|
if (!o && o !== null)
|
|
40
42
|
switch (k) {
|
|
41
43
|
case "info":
|
|
42
|
-
|
|
44
|
+
l = /* @__PURE__ */ e.createElement(z, null);
|
|
43
45
|
break;
|
|
44
46
|
case "success":
|
|
45
|
-
|
|
47
|
+
l = /* @__PURE__ */ e.createElement(R, null);
|
|
46
48
|
break;
|
|
47
49
|
case "error":
|
|
48
|
-
|
|
50
|
+
l = /* @__PURE__ */ e.createElement(S, null);
|
|
49
51
|
break;
|
|
50
52
|
default:
|
|
51
|
-
|
|
53
|
+
l = /* @__PURE__ */ e.createElement(_, null);
|
|
52
54
|
}
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
55
|
+
const u = E ?? k === "confirm", N = e.useMemo(() => {
|
|
56
|
+
const c = p?.autoFocusButton || g;
|
|
57
|
+
return c || c === null ? c : "ok";
|
|
58
|
+
}, [g, p?.autoFocusButton]), [h] = X("Modal"), n = T || h, x = i || (u ? n?.okText : n?.justOkText), y = m || n?.cancelText, {
|
|
59
|
+
closable: d
|
|
60
|
+
} = f, {
|
|
61
|
+
onClose: b
|
|
62
|
+
} = d && typeof d == "object" ? d : {}, P = e.useMemo(() => ({
|
|
58
63
|
autoFocusButton: N,
|
|
59
|
-
cancelTextLocale:
|
|
60
|
-
okTextLocale:
|
|
61
|
-
mergedOkCancel:
|
|
62
|
-
onClose:
|
|
63
|
-
...
|
|
64
|
-
}), [N,
|
|
65
|
-
return /* @__PURE__ */
|
|
66
|
-
className: `${
|
|
67
|
-
}, /* @__PURE__ */
|
|
68
|
-
className:
|
|
69
|
-
[`${
|
|
64
|
+
cancelTextLocale: y,
|
|
65
|
+
okTextLocale: x,
|
|
66
|
+
mergedOkCancel: u,
|
|
67
|
+
onClose: b,
|
|
68
|
+
...f
|
|
69
|
+
}), [N, y, x, u, b, f]), B = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(w, null), /* @__PURE__ */ e.createElement(M, null)), $ = t.title !== void 0 && t.title !== null, C = `${r}-body`;
|
|
70
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
71
|
+
className: `${r}-body-wrapper`
|
|
72
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
73
|
+
className: O(C, {
|
|
74
|
+
[`${C}-has-title`]: $
|
|
70
75
|
})
|
|
71
|
-
},
|
|
72
|
-
className: `${
|
|
73
|
-
},
|
|
74
|
-
className: `${
|
|
75
|
-
},
|
|
76
|
-
className: `${
|
|
77
|
-
},
|
|
78
|
-
value:
|
|
79
|
-
}, /* @__PURE__ */
|
|
80
|
-
className: `${
|
|
81
|
-
}, typeof a == "function" ? a(
|
|
82
|
-
OkBtn:
|
|
83
|
-
CancelBtn:
|
|
84
|
-
}) :
|
|
85
|
-
prefixCls:
|
|
76
|
+
}, l, /* @__PURE__ */ e.createElement("div", {
|
|
77
|
+
className: `${r}-paragraph`
|
|
78
|
+
}, $ && /* @__PURE__ */ e.createElement("span", {
|
|
79
|
+
className: `${r}-title`
|
|
80
|
+
}, t.title), /* @__PURE__ */ e.createElement("div", {
|
|
81
|
+
className: `${r}-content`
|
|
82
|
+
}, t.content))), a === void 0 || typeof a == "function" ? /* @__PURE__ */ e.createElement(W, {
|
|
83
|
+
value: P
|
|
84
|
+
}, /* @__PURE__ */ e.createElement("div", {
|
|
85
|
+
className: `${r}-btns`
|
|
86
|
+
}, typeof a == "function" ? a(B, {
|
|
87
|
+
OkBtn: M,
|
|
88
|
+
CancelBtn: w
|
|
89
|
+
}) : B)) : a, /* @__PURE__ */ e.createElement(U, {
|
|
90
|
+
prefixCls: s
|
|
86
91
|
}));
|
|
87
|
-
},
|
|
92
|
+
}, F = (t) => {
|
|
88
93
|
const {
|
|
89
|
-
close:
|
|
94
|
+
close: s,
|
|
90
95
|
zIndex: o,
|
|
91
|
-
maskStyle:
|
|
92
|
-
direction:
|
|
93
|
-
prefixCls:
|
|
96
|
+
maskStyle: i,
|
|
97
|
+
direction: m,
|
|
98
|
+
prefixCls: r,
|
|
94
99
|
wrapClassName: k,
|
|
95
100
|
rootPrefixCls: E,
|
|
96
101
|
bodyStyle: a,
|
|
97
|
-
closable:
|
|
98
|
-
onConfirm:
|
|
99
|
-
styles:
|
|
102
|
+
closable: T = !1,
|
|
103
|
+
onConfirm: g,
|
|
104
|
+
styles: p,
|
|
100
105
|
title: f,
|
|
101
|
-
okButtonProps:
|
|
102
|
-
cancelButtonProps:
|
|
103
|
-
} =
|
|
104
|
-
cancelButtonProps:
|
|
105
|
-
okButtonProps:
|
|
106
|
+
okButtonProps: l,
|
|
107
|
+
cancelButtonProps: u
|
|
108
|
+
} = t, {
|
|
109
|
+
cancelButtonProps: N,
|
|
110
|
+
okButtonProps: h
|
|
106
111
|
} = V("modal");
|
|
107
|
-
if (
|
|
108
|
-
const
|
|
109
|
-
[["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach(([
|
|
110
|
-
|
|
112
|
+
if (v.env.NODE_ENV !== "production") {
|
|
113
|
+
const $ = D("Modal");
|
|
114
|
+
[["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach(([C, c]) => {
|
|
115
|
+
$.deprecated(!(C in t), C, c);
|
|
111
116
|
});
|
|
112
117
|
}
|
|
113
|
-
const
|
|
114
|
-
[`${
|
|
115
|
-
},
|
|
116
|
-
return /* @__PURE__ */
|
|
117
|
-
...
|
|
118
|
-
className:
|
|
119
|
-
wrapClassName:
|
|
120
|
-
[`${
|
|
118
|
+
const n = `${r}-confirm`, x = t.width || 416, y = t.style || {}, d = O(n, `${n}-${t.type}`, {
|
|
119
|
+
[`${n}-rtl`]: m === "rtl"
|
|
120
|
+
}, t.className), b = t.maskClosable === void 0 ? !1 : t.maskClosable, [, P] = A(), B = e.useMemo(() => o !== void 0 ? o : P.zIndexPopupBase + Z, [o, P]);
|
|
121
|
+
return /* @__PURE__ */ e.createElement(j, {
|
|
122
|
+
...t,
|
|
123
|
+
className: d,
|
|
124
|
+
wrapClassName: O({
|
|
125
|
+
[`${n}-centered`]: !!t.centered
|
|
121
126
|
}, k),
|
|
122
127
|
onCancel: () => {
|
|
123
|
-
|
|
128
|
+
s?.({
|
|
124
129
|
triggerCancel: !0
|
|
125
|
-
}),
|
|
130
|
+
}), g?.(!1);
|
|
126
131
|
},
|
|
127
132
|
title: f,
|
|
128
133
|
footer: null,
|
|
129
|
-
transitionName:
|
|
130
|
-
maskTransitionName:
|
|
131
|
-
maskClosable:
|
|
132
|
-
style:
|
|
134
|
+
transitionName: I(E || "", "zoom", t.transitionName),
|
|
135
|
+
maskTransitionName: I(E || "", "fade", t.maskTransitionName),
|
|
136
|
+
maskClosable: b,
|
|
137
|
+
style: y,
|
|
133
138
|
styles: {
|
|
134
139
|
body: a,
|
|
135
|
-
mask:
|
|
136
|
-
...
|
|
140
|
+
mask: i,
|
|
141
|
+
...p
|
|
137
142
|
},
|
|
138
|
-
width:
|
|
139
|
-
zIndex:
|
|
140
|
-
closable:
|
|
141
|
-
}, /* @__PURE__ */
|
|
142
|
-
...
|
|
143
|
-
confirmPrefixCls:
|
|
143
|
+
width: x,
|
|
144
|
+
zIndex: B,
|
|
145
|
+
closable: T
|
|
146
|
+
}, /* @__PURE__ */ e.createElement(q, {
|
|
147
|
+
...t,
|
|
148
|
+
confirmPrefixCls: n,
|
|
144
149
|
okButtonProps: {
|
|
145
|
-
...
|
|
146
|
-
...
|
|
150
|
+
...h,
|
|
151
|
+
...l
|
|
147
152
|
},
|
|
148
153
|
cancelButtonProps: {
|
|
149
|
-
...
|
|
150
|
-
|
|
154
|
+
...N,
|
|
155
|
+
...u
|
|
151
156
|
}
|
|
152
157
|
}));
|
|
153
|
-
}, G = (
|
|
158
|
+
}, G = (t) => {
|
|
154
159
|
const {
|
|
155
|
-
rootPrefixCls:
|
|
160
|
+
rootPrefixCls: s,
|
|
156
161
|
iconPrefixCls: o,
|
|
157
|
-
direction:
|
|
158
|
-
theme:
|
|
159
|
-
} =
|
|
160
|
-
return /* @__PURE__ */
|
|
161
|
-
prefixCls:
|
|
162
|
+
direction: i,
|
|
163
|
+
theme: m
|
|
164
|
+
} = t;
|
|
165
|
+
return /* @__PURE__ */ e.createElement(L, {
|
|
166
|
+
prefixCls: s,
|
|
162
167
|
iconPrefixCls: o,
|
|
163
|
-
direction:
|
|
164
|
-
theme:
|
|
165
|
-
}, /* @__PURE__ */
|
|
166
|
-
...
|
|
168
|
+
direction: i,
|
|
169
|
+
theme: m
|
|
170
|
+
}, /* @__PURE__ */ e.createElement(F, {
|
|
171
|
+
...t
|
|
167
172
|
}));
|
|
168
173
|
};
|
|
169
|
-
|
|
174
|
+
v.env.NODE_ENV !== "production" && (F.displayName = "ConfirmDialog", G.displayName = "ConfirmDialogWrapper");
|
|
170
175
|
export {
|
|
171
176
|
q as ConfirmContent,
|
|
172
177
|
G as default
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmDialog.js","sources":["../../../../../node_modules/antd/es/modal/ConfirmDialog.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport { clsx } from 'clsx';\nimport { CONTAINER_MAX_OFFSET } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport { devUseWarning } from '../_util/warning';\nimport ConfigProvider from '../config-provider';\nimport { useComponentConfig } from '../config-provider/context';\nimport { useLocale } from '../locale';\nimport useToken from '../theme/useToken';\nimport CancelBtn from './components/ConfirmCancelBtn';\nimport OkBtn from './components/ConfirmOkBtn';\nimport { ModalContextProvider } from './context';\nimport Modal from './Modal';\nimport Confirm from './style/confirm';\nexport const ConfirmContent = props => {\n const {\n prefixCls,\n icon,\n okText,\n cancelText,\n confirmPrefixCls,\n type,\n okCancel,\n footer,\n // Legacy for static function usage\n locale: staticLocale,\n ...restProps\n } = props;\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Modal');\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'breaking', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n }\n // Icon\n let mergedIcon = icon;\n // 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon\n if (!icon && icon !== null) {\n switch (type) {\n case 'info':\n mergedIcon = /*#__PURE__*/React.createElement(InfoCircleFilled, null);\n break;\n case 'success':\n mergedIcon = /*#__PURE__*/React.createElement(CheckCircleFilled, null);\n break;\n case 'error':\n mergedIcon = /*#__PURE__*/React.createElement(CloseCircleFilled, null);\n break;\n default:\n mergedIcon = /*#__PURE__*/React.createElement(ExclamationCircleFilled, null);\n }\n }\n // 默认为 true,保持向下兼容\n const mergedOkCancel = okCancel ?? type === 'confirm';\n const autoFocusButton = props.autoFocusButton === null ? false : props.autoFocusButton || 'ok';\n const [locale] = useLocale('Modal');\n const mergedLocale = staticLocale || locale;\n // ================== Locale Text ==================\n const okTextLocale = okText || (mergedOkCancel ? mergedLocale?.okText : mergedLocale?.justOkText);\n const cancelTextLocale = cancelText || mergedLocale?.cancelText;\n // ================= Context Value =================\n const {\n closable\n } = restProps;\n const {\n onClose\n } = closable && typeof closable === 'object' ? closable : {};\n const memoizedValue = React.useMemo(() => {\n return {\n autoFocusButton,\n cancelTextLocale,\n okTextLocale,\n mergedOkCancel,\n onClose,\n ...restProps\n };\n }, [autoFocusButton, cancelTextLocale, okTextLocale, mergedOkCancel, onClose, restProps]);\n // ====================== Footer Origin Node ======================\n const footerOriginNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CancelBtn, null), /*#__PURE__*/React.createElement(OkBtn, null));\n const hasTitle = props.title !== undefined && props.title !== null;\n const bodyCls = `${confirmPrefixCls}-body`;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-body-wrapper`\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(bodyCls, {\n [`${bodyCls}-has-title`]: hasTitle\n })\n }, mergedIcon, /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-paragraph`\n }, hasTitle && /*#__PURE__*/React.createElement(\"span\", {\n className: `${confirmPrefixCls}-title`\n }, props.title), /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-content`\n }, props.content))), footer === undefined || typeof footer === 'function' ? (/*#__PURE__*/React.createElement(ModalContextProvider, {\n value: memoizedValue\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-btns`\n }, typeof footer === 'function' ? footer(footerOriginNode, {\n OkBtn,\n CancelBtn\n }) : footerOriginNode))) : footer, /*#__PURE__*/React.createElement(Confirm, {\n prefixCls: prefixCls\n }));\n};\nconst ConfirmDialog = props => {\n const {\n close,\n zIndex,\n maskStyle,\n direction,\n prefixCls,\n wrapClassName,\n rootPrefixCls,\n bodyStyle,\n closable = false,\n onConfirm,\n styles,\n title,\n okButtonProps,\n cancelButtonProps\n } = props;\n const {\n cancelButtonProps: contextCancelButtonProps,\n okButtonProps: contextOkButtonProps\n } = useComponentConfig('modal');\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Modal');\n [['bodyStyle', 'styles.body'], ['maskStyle', 'styles.mask']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n }\n const confirmPrefixCls = `${prefixCls}-confirm`;\n const width = props.width || 416;\n const style = props.style || {};\n // 默认为 false,保持旧版默认行为\n const maskClosable = props.maskClosable === undefined ? false : props.maskClosable;\n const classString = clsx(confirmPrefixCls, `${confirmPrefixCls}-${props.type}`, {\n [`${confirmPrefixCls}-rtl`]: direction === 'rtl'\n }, props.className);\n // ========================= zIndex =========================\n const [, token] = useToken();\n const mergedZIndex = React.useMemo(() => {\n if (zIndex !== undefined) {\n return zIndex;\n }\n // Static always use max zIndex\n return token.zIndexPopupBase + CONTAINER_MAX_OFFSET;\n }, [zIndex, token]);\n // ========================= Render =========================\n return /*#__PURE__*/React.createElement(Modal, {\n ...props,\n className: classString,\n wrapClassName: clsx({\n [`${confirmPrefixCls}-centered`]: !!props.centered\n }, wrapClassName),\n onCancel: () => {\n close?.({\n triggerCancel: true\n });\n onConfirm?.(false);\n },\n title: title,\n footer: null,\n transitionName: getTransitionName(rootPrefixCls || '', 'zoom', props.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls || '', 'fade', props.maskTransitionName),\n maskClosable: maskClosable,\n style: style,\n styles: {\n body: bodyStyle,\n mask: maskStyle,\n ...styles\n },\n width: width,\n zIndex: mergedZIndex,\n closable: closable\n }, /*#__PURE__*/React.createElement(ConfirmContent, {\n ...props,\n confirmPrefixCls: confirmPrefixCls,\n okButtonProps: {\n ...contextOkButtonProps,\n ...okButtonProps\n },\n cancelButtonProps: {\n ...contextCancelButtonProps,\n ...cancelButtonProps\n }\n }));\n};\nconst ConfirmDialogWrapper = props => {\n const {\n rootPrefixCls,\n iconPrefixCls,\n direction,\n theme\n } = props;\n return /*#__PURE__*/React.createElement(ConfigProvider, {\n prefixCls: rootPrefixCls,\n iconPrefixCls: iconPrefixCls,\n direction: direction,\n theme: theme\n }, /*#__PURE__*/React.createElement(ConfirmDialog, {\n ...props\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ConfirmDialog.displayName = 'ConfirmDialog';\n ConfirmDialogWrapper.displayName = 'ConfirmDialogWrapper';\n}\nexport default ConfirmDialogWrapper;"],"names":["ConfirmContent","props","prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","staticLocale","restProps","process","warning","devUseWarning","mergedIcon","React","InfoCircleFilled","CheckCircleFilled","CloseCircleFilled","ExclamationCircleFilled","mergedOkCancel","autoFocusButton","locale","useLocale","mergedLocale","okTextLocale","cancelTextLocale","closable","onClose","memoizedValue","footerOriginNode","CancelBtn","OkBtn","hasTitle","bodyCls","clsx","ModalContextProvider","Confirm","ConfirmDialog","close","zIndex","maskStyle","direction","wrapClassName","rootPrefixCls","bodyStyle","onConfirm","styles","title","okButtonProps","cancelButtonProps","contextCancelButtonProps","contextOkButtonProps","useComponentConfig","deprecatedName","newName","width","style","maskClosable","classString","token","useToken","mergedZIndex","CONTAINER_MAX_OFFSET","Modal","getTransitionName","ConfirmDialogWrapper","iconPrefixCls","theme","ConfigProvider"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBY,MAACA,IAAiB,CAAAC,MAAS;AACrC,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA;AAAA,IAEA,QAAQC;AAAA,IACR,GAAGC;AAAA,EACP,IAAMV;AACJ,MAAIW,EAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAUC,EAAc,OAAO;AACrCF,IAAAA,EAAQ,IAAI,aAAa,gBAAeC,EAAQ,EAAE,OAAOV,KAAS,YAAYA,EAAK,SAAS,IAAI,YAAY,8EAA8EA,CAAI,0CAA0C;AAAA,EAC1O;AAEA,MAAIY,IAAaZ;AAEjB,MAAI,CAACA,KAAQA,MAAS;AACpB,YAAQI,GAAI;AAAA,MACV,KAAK;AACH,QAAAQ,IAA0B,gBAAAC,EAAM,cAAcC,GAAkB,IAAI;AACpE;AAAA,MACF,KAAK;AACH,QAAAF,IAA0B,gBAAAC,EAAM,cAAcE,GAAmB,IAAI;AACrE;AAAA,MACF,KAAK;A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B,gBAAAZ,EAAM,cAAchB,GAAgB;AAAA,IAClD,GAAGC;AAAA,IACH,kBAAkBK;AAAA,IAClB,eAAe;AAAA,MACb,GAAG+C;AAAA,MACH,GAAGH;AAAA,IACT;AAAA,IACI,mBAAmB;AAAA,MACjB,GAAGE;AAAA,MACH,GAAGD;AAAA,IACT;AAAA,EACA,CAAG,CAAC;AACJ,GACMgB,IAAuB,CAAAlE,MAAS;AACpC,QAAM;AAAA,IACJ,eAAA4C;AAAA,IACA,eAAAuB;AAAA,IACA,WAAAzB;AAAA,IACA,OAAA0B;AAAA,EACJ,IAAMpE;AACJ,SAAoB,gBAAAe,EAAM,cAAcsD,GAAgB;AAAA,IACtD,WAAWzB;AAAA,IACX,eAAeuB;AAAA,IACf,WAAWzB;AAAA,IACX,OAAO0B;AAAA,EACX,GAAkB,gBAAArD,EAAM,cAAcuB,GAAe;AAAA,IACjD,GAAGtC;AAAA,EACP,CAAG,CAAC;AACJ;AACIW,EAAQ,IAAI,aAAa,iBAC3B2B,EAAc,cAAc,iBAC5B4B,EAAqB,cAAc;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.js","sources":["../../../../../node_modules/antd/es/modal/ConfirmDialog.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport InfoCircleFilled from \"@ant-design/icons/es/icons/InfoCircleFilled\";\nimport { clsx } from 'clsx';\nimport { CONTAINER_MAX_OFFSET } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport { devUseWarning } from '../_util/warning';\nimport ConfigProvider from '../config-provider';\nimport { useComponentConfig } from '../config-provider/context';\nimport { useLocale } from '../locale';\nimport useToken from '../theme/useToken';\nimport CancelBtn from './components/ConfirmCancelBtn';\nimport OkBtn from './components/ConfirmOkBtn';\nimport { ModalContextProvider } from './context';\nimport Modal from './Modal';\nimport Confirm from './style/confirm';\nexport const ConfirmContent = props => {\n const {\n prefixCls,\n icon,\n okText,\n cancelText,\n confirmPrefixCls,\n type,\n okCancel,\n footer,\n // Legacy for static function usage\n locale: staticLocale,\n autoFocusButton,\n focusable,\n ...restProps\n } = props;\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Modal');\n process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'breaking', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n }\n // Icon\n let mergedIcon = icon;\n // 支持传入{ icon: null }来隐藏`Modal.confirm`默认的Icon\n if (!icon && icon !== null) {\n switch (type) {\n case 'info':\n mergedIcon = /*#__PURE__*/React.createElement(InfoCircleFilled, null);\n break;\n case 'success':\n mergedIcon = /*#__PURE__*/React.createElement(CheckCircleFilled, null);\n break;\n case 'error':\n mergedIcon = /*#__PURE__*/React.createElement(CloseCircleFilled, null);\n break;\n default:\n mergedIcon = /*#__PURE__*/React.createElement(ExclamationCircleFilled, null);\n }\n }\n // 默认为 true,保持向下兼容\n const mergedOkCancel = okCancel ?? type === 'confirm';\n const mergedAutoFocusButton = React.useMemo(() => {\n const base = focusable?.autoFocusButton || autoFocusButton;\n return base || base === null ? base : 'ok';\n }, [autoFocusButton, focusable?.autoFocusButton]);\n const [locale] = useLocale('Modal');\n const mergedLocale = staticLocale || locale;\n // ================== Locale Text ==================\n const okTextLocale = okText || (mergedOkCancel ? mergedLocale?.okText : mergedLocale?.justOkText);\n const cancelTextLocale = cancelText || mergedLocale?.cancelText;\n // ================= Context Value =================\n const {\n closable\n } = restProps;\n const {\n onClose\n } = closable && typeof closable === 'object' ? closable : {};\n const memoizedValue = React.useMemo(() => {\n return {\n autoFocusButton: mergedAutoFocusButton,\n cancelTextLocale,\n okTextLocale,\n mergedOkCancel,\n onClose,\n ...restProps\n };\n }, [mergedAutoFocusButton, cancelTextLocale, okTextLocale, mergedOkCancel, onClose, restProps]);\n // ====================== Footer Origin Node ======================\n const footerOriginNode = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CancelBtn, null), /*#__PURE__*/React.createElement(OkBtn, null));\n const hasTitle = props.title !== undefined && props.title !== null;\n const bodyCls = `${confirmPrefixCls}-body`;\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-body-wrapper`\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: clsx(bodyCls, {\n [`${bodyCls}-has-title`]: hasTitle\n })\n }, mergedIcon, /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-paragraph`\n }, hasTitle && /*#__PURE__*/React.createElement(\"span\", {\n className: `${confirmPrefixCls}-title`\n }, props.title), /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-content`\n }, props.content))), footer === undefined || typeof footer === 'function' ? (/*#__PURE__*/React.createElement(ModalContextProvider, {\n value: memoizedValue\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: `${confirmPrefixCls}-btns`\n }, typeof footer === 'function' ? footer(footerOriginNode, {\n OkBtn,\n CancelBtn\n }) : footerOriginNode))) : footer, /*#__PURE__*/React.createElement(Confirm, {\n prefixCls: prefixCls\n }));\n};\nconst ConfirmDialog = props => {\n const {\n close,\n zIndex,\n maskStyle,\n direction,\n prefixCls,\n wrapClassName,\n rootPrefixCls,\n bodyStyle,\n closable = false,\n onConfirm,\n styles,\n title,\n okButtonProps,\n cancelButtonProps\n } = props;\n const {\n cancelButtonProps: contextCancelButtonProps,\n okButtonProps: contextOkButtonProps\n } = useComponentConfig('modal');\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Modal');\n [['bodyStyle', 'styles.body'], ['maskStyle', 'styles.mask']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n }\n const confirmPrefixCls = `${prefixCls}-confirm`;\n const width = props.width || 416;\n const style = props.style || {};\n const classString = clsx(confirmPrefixCls, `${confirmPrefixCls}-${props.type}`, {\n [`${confirmPrefixCls}-rtl`]: direction === 'rtl'\n }, props.className);\n // ========================== Mask ==========================\n // 默认为 false,保持旧版默认行为\n const maskClosable = props.maskClosable === undefined ? false : props.maskClosable;\n // ========================= zIndex =========================\n const [, token] = useToken();\n const mergedZIndex = React.useMemo(() => {\n if (zIndex !== undefined) {\n return zIndex;\n }\n // Static always use max zIndex\n return token.zIndexPopupBase + CONTAINER_MAX_OFFSET;\n }, [zIndex, token]);\n // ========================= Render =========================\n return /*#__PURE__*/React.createElement(Modal, {\n ...props,\n className: classString,\n wrapClassName: clsx({\n [`${confirmPrefixCls}-centered`]: !!props.centered\n }, wrapClassName),\n onCancel: () => {\n close?.({\n triggerCancel: true\n });\n onConfirm?.(false);\n },\n title: title,\n footer: null,\n transitionName: getTransitionName(rootPrefixCls || '', 'zoom', props.transitionName),\n maskTransitionName: getTransitionName(rootPrefixCls || '', 'fade', props.maskTransitionName),\n maskClosable: maskClosable,\n style: style,\n styles: {\n body: bodyStyle,\n mask: maskStyle,\n ...styles\n },\n width: width,\n zIndex: mergedZIndex,\n closable: closable\n }, /*#__PURE__*/React.createElement(ConfirmContent, {\n ...props,\n confirmPrefixCls: confirmPrefixCls,\n okButtonProps: {\n ...contextOkButtonProps,\n ...okButtonProps\n },\n cancelButtonProps: {\n ...contextCancelButtonProps,\n ...cancelButtonProps\n }\n }));\n};\nconst ConfirmDialogWrapper = props => {\n const {\n rootPrefixCls,\n iconPrefixCls,\n direction,\n theme\n } = props;\n return /*#__PURE__*/React.createElement(ConfigProvider, {\n prefixCls: rootPrefixCls,\n iconPrefixCls: iconPrefixCls,\n direction: direction,\n theme: theme\n }, /*#__PURE__*/React.createElement(ConfirmDialog, {\n ...props\n }));\n};\nif (process.env.NODE_ENV !== 'production') {\n ConfirmDialog.displayName = 'ConfirmDialog';\n ConfirmDialogWrapper.displayName = 'ConfirmDialogWrapper';\n}\nexport default ConfirmDialogWrapper;"],"names":["ConfirmContent","props","prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","staticLocale","autoFocusButton","focusable","restProps","process","warning","devUseWarning","mergedIcon","React","InfoCircleFilled","CheckCircleFilled","CloseCircleFilled","ExclamationCircleFilled","mergedOkCancel","mergedAutoFocusButton","base","locale","useLocale","mergedLocale","okTextLocale","cancelTextLocale","closable","onClose","memoizedValue","footerOriginNode","CancelBtn","OkBtn","hasTitle","bodyCls","clsx","ModalContextProvider","Confirm","ConfirmDialog","close","zIndex","maskStyle","direction","wrapClassName","rootPrefixCls","bodyStyle","onConfirm","styles","title","okButtonProps","cancelButtonProps","contextCancelButtonProps","contextOkButtonProps","useComponentConfig","deprecatedName","newName","width","style","classString","maskClosable","token","useToken","mergedZIndex","CONTAINER_MAX_OFFSET","Modal","getTransitionName","ConfirmDialogWrapper","iconPrefixCls","theme","ConfigProvider"],"mappings":";;;;;;;;;;;;;;;;;;;AAoBY,MAACA,IAAiB,CAAAC,MAAS;AACrC,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,MAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA;AAAA,IAEA,QAAQC;AAAA,IACR,iBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAMZ;AACJ,MAAIa,EAAQ,IAAI,aAAa,cAAc;AACzC,UAAMC,IAAUC,EAAc,OAAO;AACrCF,IAAAA,EAAQ,IAAI,aAAa,gBAAeC,EAAQ,EAAE,OAAOZ,KAAS,YAAYA,EAAK,SAAS,IAAI,YAAY,8EAA8EA,CAAI,0CAA0C;AAAA,EAC1O;AAEA,MAAIc,IAAad;AAEjB,MAAI,CAACA,KAAQA,MAAS;AACpB,YAAQI,GAAI;AAAA,MACV,KAAK;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