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,66 +1,71 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { render as
|
|
5
|
-
import { composeRef as
|
|
6
|
-
import { clsx as
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import H from "../../../../@rc-component/motion/es/CSSMotion.js";
|
|
3
|
+
import p from "../../../../@rc-component/util/es/raf.js";
|
|
4
|
+
import { render as _, unmount as j } from "../../../../@rc-component/util/es/React/render.js";
|
|
5
|
+
import { composeRef as D } from "../../../../@rc-component/util/es/ref.js";
|
|
6
|
+
import { clsx as G } from "../../../../clsx/dist/clsx.js";
|
|
7
|
+
import "../../config-provider/index.js";
|
|
8
|
+
import { genCssVar as M } from "../../theme/util/genStyleUtils.js";
|
|
9
|
+
import { TARGET_CLS as V } from "./interface.js";
|
|
10
|
+
import { getTargetWaveColor as $ } from "./util.js";
|
|
11
|
+
import { ConfigContext as I } from "../../config-provider/context.js";
|
|
9
12
|
function c(s) {
|
|
10
13
|
return Number.isNaN(s) ? 0 : s;
|
|
11
14
|
}
|
|
12
|
-
const
|
|
15
|
+
const J = (s) => {
|
|
13
16
|
const {
|
|
14
17
|
className: i,
|
|
15
|
-
target:
|
|
18
|
+
target: t,
|
|
16
19
|
component: n,
|
|
17
|
-
colorSource:
|
|
18
|
-
} = s,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
colorSource: d
|
|
21
|
+
} = s, m = e.useRef(null), {
|
|
22
|
+
getPrefixCls: b
|
|
23
|
+
} = e.useContext(I), h = b(), [R] = M(h, "wave"), [f, v] = e.useState(null), [S, C] = e.useState([]), [N, y] = e.useState(0), [x, E] = e.useState(0), [g, w] = e.useState(0), [T, W] = e.useState(0), [L, k] = e.useState(!1), l = {
|
|
24
|
+
left: N,
|
|
25
|
+
top: x,
|
|
26
|
+
width: g,
|
|
27
|
+
height: T,
|
|
28
|
+
borderRadius: S.map((r) => `${r}px`).join(" ")
|
|
24
29
|
};
|
|
25
|
-
f && (
|
|
30
|
+
f && (l[R("color")] = f);
|
|
26
31
|
function u() {
|
|
27
|
-
const r = getComputedStyle(
|
|
28
|
-
|
|
32
|
+
const r = getComputedStyle(t);
|
|
33
|
+
v($(t, d));
|
|
29
34
|
const o = r.position === "static", {
|
|
30
35
|
borderLeftWidth: a,
|
|
31
|
-
borderTopWidth:
|
|
36
|
+
borderTopWidth: z
|
|
32
37
|
} = r;
|
|
33
|
-
|
|
38
|
+
y(o ? t.offsetLeft : c(-Number.parseFloat(a))), E(o ? t.offsetTop : c(-Number.parseFloat(z))), w(t.offsetWidth), W(t.offsetHeight);
|
|
34
39
|
const {
|
|
35
|
-
borderTopLeftRadius:
|
|
36
|
-
borderTopRightRadius:
|
|
37
|
-
borderBottomLeftRadius:
|
|
38
|
-
borderBottomRightRadius:
|
|
40
|
+
borderTopLeftRadius: A,
|
|
41
|
+
borderTopRightRadius: F,
|
|
42
|
+
borderBottomLeftRadius: O,
|
|
43
|
+
borderBottomRightRadius: P
|
|
39
44
|
} = r;
|
|
40
|
-
|
|
45
|
+
C([A, F, P, O].map((q) => c(Number.parseFloat(q))));
|
|
41
46
|
}
|
|
42
|
-
if (
|
|
43
|
-
if (
|
|
44
|
-
const r =
|
|
45
|
-
u(),
|
|
47
|
+
if (e.useEffect(() => {
|
|
48
|
+
if (t) {
|
|
49
|
+
const r = p(() => {
|
|
50
|
+
u(), k(!0);
|
|
46
51
|
});
|
|
47
52
|
let o;
|
|
48
|
-
return typeof ResizeObserver < "u" && (o = new ResizeObserver(u), o.observe(
|
|
49
|
-
|
|
53
|
+
return typeof ResizeObserver < "u" && (o = new ResizeObserver(u), o.observe(t)), () => {
|
|
54
|
+
p.cancel(r), o?.disconnect();
|
|
50
55
|
};
|
|
51
56
|
}
|
|
52
|
-
}, [
|
|
57
|
+
}, [t]), !L)
|
|
53
58
|
return null;
|
|
54
|
-
const
|
|
55
|
-
return /* @__PURE__ */
|
|
59
|
+
const B = (n === "Checkbox" || n === "Radio") && t?.classList.contains(V);
|
|
60
|
+
return /* @__PURE__ */ e.createElement(H, {
|
|
56
61
|
visible: !0,
|
|
57
62
|
motionAppear: !0,
|
|
58
63
|
motionName: "wave-motion",
|
|
59
64
|
motionDeadline: 5e3,
|
|
60
65
|
onAppearEnd: (r, o) => {
|
|
61
66
|
if (o.deadline || o.propertyName === "opacity") {
|
|
62
|
-
const a =
|
|
63
|
-
|
|
67
|
+
const a = m.current?.parentElement;
|
|
68
|
+
j(a).then(() => {
|
|
64
69
|
a?.remove();
|
|
65
70
|
});
|
|
66
71
|
}
|
|
@@ -68,26 +73,26 @@ const M = (s) => {
|
|
|
68
73
|
}
|
|
69
74
|
}, ({
|
|
70
75
|
className: r
|
|
71
|
-
}, o) => /* @__PURE__ */
|
|
72
|
-
ref:
|
|
73
|
-
className:
|
|
74
|
-
"wave-quick":
|
|
76
|
+
}, o) => /* @__PURE__ */ e.createElement("div", {
|
|
77
|
+
ref: D(m, o),
|
|
78
|
+
className: G(i, r, {
|
|
79
|
+
"wave-quick": B
|
|
75
80
|
}),
|
|
76
|
-
style:
|
|
81
|
+
style: l
|
|
77
82
|
}));
|
|
78
|
-
},
|
|
83
|
+
}, se = (s, i) => {
|
|
79
84
|
const {
|
|
80
|
-
component:
|
|
85
|
+
component: t
|
|
81
86
|
} = i;
|
|
82
|
-
if (
|
|
87
|
+
if (t === "Checkbox" && !s.querySelector("input")?.checked)
|
|
83
88
|
return;
|
|
84
89
|
const n = document.createElement("div");
|
|
85
|
-
n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", s?.insertBefore(n, s?.firstChild),
|
|
90
|
+
n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", s?.insertBefore(n, s?.firstChild), _(/* @__PURE__ */ e.createElement(J, {
|
|
86
91
|
...i,
|
|
87
92
|
target: s
|
|
88
93
|
}), n);
|
|
89
94
|
};
|
|
90
95
|
export {
|
|
91
|
-
|
|
96
|
+
se as default
|
|
92
97
|
};
|
|
93
98
|
//# sourceMappingURL=WaveEffect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WaveEffect.js","sources":["../../../../../../node_modules/antd/es/_util/wave/WaveEffect.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CSSMotion from '@rc-component/motion';\nimport raf from \"@rc-component/util/es/raf\";\nimport { render, unmount } from \"@rc-component/util/es/React/render\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport { TARGET_CLS } from './interface';\nimport { getTargetWaveColor } from './util';\nfunction validateNum(value) {\n return Number.isNaN(value) ? 0 : value;\n}\nconst WaveEffect = props => {\n const {\n className,\n target,\n component,\n colorSource\n } = props;\n const divRef = React.useRef(null);\n // ===================== Effect =====================\n const [color, setWaveColor] = React.useState(null);\n const [borderRadius, setBorderRadius] = React.useState([]);\n const [left, setLeft] = React.useState(0);\n const [top, setTop] = React.useState(0);\n const [width, setWidth] = React.useState(0);\n const [height, setHeight] = React.useState(0);\n const [enabled, setEnabled] = React.useState(false);\n const waveStyle = {\n left,\n top,\n width,\n height,\n borderRadius: borderRadius.map(radius => `${radius}px`).join(' ')\n };\n if (color) {\n waveStyle['
|
|
1
|
+
{"version":3,"file":"WaveEffect.js","sources":["../../../../../../node_modules/antd/es/_util/wave/WaveEffect.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CSSMotion from '@rc-component/motion';\nimport raf from \"@rc-component/util/es/raf\";\nimport { render, unmount } from \"@rc-component/util/es/React/render\";\nimport { composeRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../../config-provider';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nimport { TARGET_CLS } from './interface';\nimport { getTargetWaveColor } from './util';\nfunction validateNum(value) {\n return Number.isNaN(value) ? 0 : value;\n}\nconst WaveEffect = props => {\n const {\n className,\n target,\n component,\n colorSource\n } = props;\n const divRef = React.useRef(null);\n const {\n getPrefixCls\n } = React.useContext(ConfigContext);\n const rootPrefixCls = getPrefixCls();\n const [varName] = genCssVar(rootPrefixCls, 'wave');\n // ===================== Effect =====================\n const [color, setWaveColor] = React.useState(null);\n const [borderRadius, setBorderRadius] = React.useState([]);\n const [left, setLeft] = React.useState(0);\n const [top, setTop] = React.useState(0);\n const [width, setWidth] = React.useState(0);\n const [height, setHeight] = React.useState(0);\n const [enabled, setEnabled] = React.useState(false);\n const waveStyle = {\n left,\n top,\n width,\n height,\n borderRadius: borderRadius.map(radius => `${radius}px`).join(' ')\n };\n if (color) {\n waveStyle[varName('color')] = color;\n }\n function syncPos() {\n const nodeStyle = getComputedStyle(target);\n // Get wave color from target\n setWaveColor(getTargetWaveColor(target, colorSource));\n const isStatic = nodeStyle.position === 'static';\n // Rect\n const {\n borderLeftWidth,\n borderTopWidth\n } = nodeStyle;\n setLeft(isStatic ? target.offsetLeft : validateNum(-Number.parseFloat(borderLeftWidth)));\n setTop(isStatic ? target.offsetTop : validateNum(-Number.parseFloat(borderTopWidth)));\n setWidth(target.offsetWidth);\n setHeight(target.offsetHeight);\n // Get border radius\n const {\n borderTopLeftRadius,\n borderTopRightRadius,\n borderBottomLeftRadius,\n borderBottomRightRadius\n } = nodeStyle;\n setBorderRadius([borderTopLeftRadius, borderTopRightRadius, borderBottomRightRadius, borderBottomLeftRadius].map(radius => validateNum(Number.parseFloat(radius))));\n }\n React.useEffect(() => {\n if (target) {\n // We need delay to check position here\n // since UI may change after click\n const id = raf(() => {\n syncPos();\n setEnabled(true);\n });\n // Add resize observer to follow size\n let resizeObserver;\n if (typeof ResizeObserver !== 'undefined') {\n resizeObserver = new ResizeObserver(syncPos);\n resizeObserver.observe(target);\n }\n return () => {\n raf.cancel(id);\n resizeObserver?.disconnect();\n };\n }\n }, [target]);\n if (!enabled) {\n return null;\n }\n const isSmallComponent = (component === 'Checkbox' || component === 'Radio') && target?.classList.contains(TARGET_CLS);\n return /*#__PURE__*/React.createElement(CSSMotion, {\n visible: true,\n motionAppear: true,\n motionName: \"wave-motion\",\n motionDeadline: 5000,\n onAppearEnd: (_, event) => {\n if (event.deadline || event.propertyName === 'opacity') {\n const holder = divRef.current?.parentElement;\n unmount(holder).then(() => {\n holder?.remove();\n });\n }\n return false;\n }\n }, ({\n className: motionClassName\n }, ref) => (/*#__PURE__*/React.createElement(\"div\", {\n ref: composeRef(divRef, ref),\n className: clsx(className, motionClassName, {\n 'wave-quick': isSmallComponent\n }),\n style: waveStyle\n })));\n};\nconst showWaveEffect = (target, info) => {\n const {\n component\n } = info;\n // Skip for unchecked checkbox\n if (component === 'Checkbox' && !target.querySelector('input')?.checked) {\n return;\n }\n // Create holder\n const holder = document.createElement('div');\n holder.style.position = 'absolute';\n holder.style.left = '0px';\n holder.style.top = '0px';\n target?.insertBefore(holder, target?.firstChild);\n render(/*#__PURE__*/React.createElement(WaveEffect, {\n ...info,\n target: target\n }), holder);\n};\nexport default showWaveEffect;"],"names":["validateNum","value","WaveEffect","props","className","target","component","colorSource","divRef","React","getPrefixCls","ConfigContext","rootPrefixCls","varName","genCssVar","color","setWaveColor","borderRadius","setBorderRadius","left","setLeft","top","setTop","width","setWidth","height","setHeight","enabled","setEnabled","waveStyle","radius","syncPos","nodeStyle","getTargetWaveColor","isStatic","borderLeftWidth","borderTopWidth","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","id","raf","resizeObserver","isSmallComponent","TARGET_CLS","CSSMotion","_","event","holder","unmount","motionClassName","ref","composeRef","clsx","showWaveEffect","info","render"],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -16,7 +16,7 @@ const k = (l) => {
|
|
|
16
16
|
colorSource: d
|
|
17
17
|
} = l, {
|
|
18
18
|
getPrefixCls: m
|
|
19
|
-
} = b(_), o = v(null), s = m("wave"),
|
|
19
|
+
} = b(_), o = v(null), s = m("wave"), u = w(s), f = W(o, R(s, u), a, d);
|
|
20
20
|
if (c.useEffect(() => {
|
|
21
21
|
const e = o.current;
|
|
22
22
|
if (!e || e.nodeType !== window.Node.ELEMENT_NODE || r)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/_util/wave/index.js"],"sourcesContent":["import React, { useContext, useRef } from 'react';\nimport isVisible from \"@rc-component/util/es/Dom/isVisible\";\nimport { composeRef, getNodeRef, supportRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../../config-provider';\nimport { cloneElement } from '../reactNode';\nimport useStyle from './style';\nimport useWave from './useWave';\nconst Wave = props => {\n const {\n children,\n disabled,\n component,\n colorSource\n } = props;\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const containerRef = useRef(null);\n // ============================== Style ===============================\n const prefixCls = getPrefixCls('wave');\n const
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/_util/wave/index.js"],"sourcesContent":["import React, { useContext, useRef } from 'react';\nimport isVisible from \"@rc-component/util/es/Dom/isVisible\";\nimport { composeRef, getNodeRef, supportRef } from \"@rc-component/util/es/ref\";\nimport { clsx } from 'clsx';\nimport { ConfigContext } from '../../config-provider';\nimport { cloneElement } from '../reactNode';\nimport useStyle from './style';\nimport useWave from './useWave';\nconst Wave = props => {\n const {\n children,\n disabled,\n component,\n colorSource\n } = props;\n const {\n getPrefixCls\n } = useContext(ConfigContext);\n const containerRef = useRef(null);\n // ============================== Style ===============================\n const prefixCls = getPrefixCls('wave');\n const hashId = useStyle(prefixCls);\n // =============================== Wave ===============================\n const showWave = useWave(containerRef, clsx(prefixCls, hashId), component, colorSource);\n // ============================== Effect ==============================\n React.useEffect(() => {\n const node = containerRef.current;\n if (!node || node.nodeType !== window.Node.ELEMENT_NODE || disabled) {\n return;\n }\n // Click handler\n const onClick = e => {\n // Fix radio button click twice\n if (!isVisible(e.target) ||\n // No need wave\n !node.getAttribute || node.getAttribute('disabled') || node.disabled || node.className.includes('disabled') && !node.className.includes('disabled:') || node.getAttribute('aria-disabled') === 'true' || node.className.includes('-leave')) {\n return;\n }\n showWave(e);\n };\n // Bind events\n node.addEventListener('click', onClick, true);\n return () => {\n node.removeEventListener('click', onClick, true);\n };\n }, [disabled]);\n // ============================== Render ==============================\n if (! /*#__PURE__*/React.isValidElement(children)) {\n return children ?? null;\n }\n const ref = supportRef(children) ? composeRef(getNodeRef(children), containerRef) : containerRef;\n return cloneElement(children, {\n ref\n });\n};\nif (process.env.NODE_ENV !== 'production') {\n Wave.displayName = 'Wave';\n}\nexport default Wave;"],"names":["Wave","props","children","disabled","component","colorSource","getPrefixCls","useContext","ConfigContext","containerRef","useRef","prefixCls","hashId","useStyle","showWave","useWave","clsx","React","node","onClick","e","isVisible","ref","supportRef","composeRef","getNodeRef","cloneElement","process"],"mappings":";;;;;;;;;;AAQK,MAACA,IAAO,CAAAC,MAAS;AACpB,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAC;AAAA,EACJ,IAAMJ,GACE;AAAA,IACJ,cAAAK;AAAA,EACJ,IAAMC,EAAWC,CAAa,GACtBC,IAAeC,EAAO,IAAI,GAE1BC,IAAYL,EAAa,MAAM,GAC/BM,IAASC,EAASF,CAAS,GAE3BG,IAAWC,EAAQN,GAAcO,EAAKL,GAAWC,CAAM,GAAGR,GAAWC,CAAW;AAwBtF,MAtBAY,EAAM,UAAU,MAAM;AACpB,UAAMC,IAAOT,EAAa;AAC1B,QAAI,CAACS,KAAQA,EAAK,aAAa,OAAO,KAAK,gBAAgBf;AACzD;AAGF,UAAMgB,IAAU,CAAAC,MAAK;AAEnB,MAAI,CAACC,EAAUD,EAAE,MAAM;AAAA,MAEvB,CAACF,EAAK,gBAAgBA,EAAK,aAAa,UAAU,KAAKA,EAAK,YAAYA,EAAK,UAAU,SAAS,UAAU,KAAK,CAACA,EAAK,UAAU,SAAS,WAAW,KAAKA,EAAK,aAAa,eAAe,MAAM,UAAUA,EAAK,UAAU,SAAS,QAAQ,KAGzOJ,EAASM,CAAC;AAAA,IACZ;AAEA,WAAAF,EAAK,iBAAiB,SAASC,GAAS,EAAI,GACrC,MAAM;AACX,MAAAD,EAAK,oBAAoB,SAASC,GAAS,EAAI;AAAA,IACjD;AAAA,EACF,GAAG,CAAChB,CAAQ,CAAC,GAET,CAAec,gBAAAA,EAAM,eAAef,CAAQ;AAC9C,WAAOA,KAAY;AAErB,QAAMoB,IAAMC,EAAWrB,CAAQ,IAAIsB,EAAWC,EAAWvB,CAAQ,GAAGO,CAAY,IAAIA;AACpF,SAAOiB,EAAaxB,GAAU;AAAA,IAC5B,KAAAoB;AAAA,EACJ,CAAG;AACH;AACIK,EAAQ,IAAI,aAAa,iBAC3B3B,EAAK,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { genComponentStyleHook as
|
|
2
|
-
const
|
|
1
|
+
import { genComponentStyleHook as i, genCssVar as e } from "../../theme/util/genStyleUtils.js";
|
|
2
|
+
const s = (o) => {
|
|
3
3
|
const {
|
|
4
4
|
componentCls: t,
|
|
5
|
-
colorPrimary:
|
|
6
|
-
|
|
5
|
+
colorPrimary: n,
|
|
6
|
+
antCls: a
|
|
7
|
+
} = o, [, r] = e(a, "wave");
|
|
7
8
|
return {
|
|
8
9
|
[t]: {
|
|
9
10
|
position: "absolute",
|
|
10
11
|
background: "transparent",
|
|
11
12
|
pointerEvents: "none",
|
|
12
13
|
boxSizing: "border-box",
|
|
13
|
-
color:
|
|
14
|
+
color: r("color", n),
|
|
14
15
|
boxShadow: "0 0 0 0 currentcolor",
|
|
15
16
|
opacity: 0.2,
|
|
16
17
|
// =================== Motion ===================
|
|
@@ -26,8 +27,8 @@ const i = (o) => {
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
};
|
|
29
|
-
},
|
|
30
|
+
}, l = i("Wave", s);
|
|
30
31
|
export {
|
|
31
|
-
|
|
32
|
+
l as default
|
|
32
33
|
};
|
|
33
34
|
//# sourceMappingURL=style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":["../../../../../../node_modules/antd/es/_util/wave/style.js"],"sourcesContent":["import { genComponentStyleHook } from '../../theme/internal';\nconst genWaveStyle = token => {\n const {\n componentCls,\n colorPrimary\n } = token;\n return {\n [componentCls]: {\n position: 'absolute',\n background: 'transparent',\n pointerEvents: 'none',\n boxSizing: 'border-box',\n color:
|
|
1
|
+
{"version":3,"file":"style.js","sources":["../../../../../../node_modules/antd/es/_util/wave/style.js"],"sourcesContent":["import { genComponentStyleHook } from '../../theme/internal';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nconst genWaveStyle = token => {\n const {\n componentCls,\n colorPrimary,\n antCls\n } = token;\n const [, varRef] = genCssVar(antCls, 'wave');\n return {\n [componentCls]: {\n position: 'absolute',\n background: 'transparent',\n pointerEvents: 'none',\n boxSizing: 'border-box',\n color: varRef('color', colorPrimary),\n boxShadow: `0 0 0 0 currentcolor`,\n opacity: 0.2,\n // =================== Motion ===================\n '&.wave-motion-appear': {\n transition: [`box-shadow 0.4s ${token.motionEaseOutCirc}`, `opacity 2s ${token.motionEaseOutCirc}`].join(','),\n '&-active': {\n boxShadow: `0 0 0 6px currentcolor`,\n opacity: 0\n },\n '&.wave-quick': {\n transition: [`box-shadow ${token.motionDurationSlow} ${token.motionEaseInOut}`, `opacity ${token.motionDurationSlow} ${token.motionEaseInOut}`].join(',')\n }\n }\n }\n };\n};\nexport default genComponentStyleHook('Wave', genWaveStyle);"],"names":["genWaveStyle","token","componentCls","colorPrimary","antCls","varRef","genCssVar","useStyle","genComponentStyleHook"],"mappings":";AAEA,MAAMA,IAAe,CAAAC,MAAS;AAC5B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMH,GACE,CAAA,EAAGI,CAAM,IAAIC,EAAUF,GAAQ,MAAM;AAC3C,SAAO;AAAA,IACL,CAACF,CAAY,GAAG;AAAA,MACd,UAAU;AAAA,MACV,YAAY;AAAA,MACZ,eAAe;AAAA,MACf,WAAW;AAAA,MACX,OAAOG,EAAO,SAASF,CAAY;AAAA,MACnC,WAAW;AAAA,MACX,SAAS;AAAA;AAAA,MAET,wBAAwB;AAAA,QACtB,YAAY,CAAC,mBAAmBF,EAAM,iBAAiB,IAAI,cAAcA,EAAM,iBAAiB,EAAE,EAAE,KAAK,GAAG;AAAA,QAC5G,YAAY;AAAA,UACV,WAAW;AAAA,UACX,SAAS;AAAA,QACnB;AAAA,QACQ,gBAAgB;AAAA,UACd,YAAY,CAAC,cAAcA,EAAM,kBAAkB,IAAIA,EAAM,eAAe,IAAI,WAAWA,EAAM,kBAAkB,IAAIA,EAAM,eAAe,EAAE,EAAE,KAAK,GAAG;AAAA,QAClK;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA,GACAM,IAAeC,EAAsB,QAAQR,CAAY;","x_google_ignoreList":[0]}
|
|
@@ -1,132 +1,133 @@
|
|
|
1
|
-
import
|
|
1
|
+
import j from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { composeRef as
|
|
11
|
-
import { clsx as
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
|
|
18
|
-
const Ne = {
|
|
19
|
-
success: ne,
|
|
20
|
-
info: ae,
|
|
21
|
-
error: le,
|
|
22
|
-
warning: ce
|
|
23
|
-
}, Ie = (s) => {
|
|
3
|
+
import ae from "../../../@ant-design/icons/es/icons/CheckCircleFilled.js";
|
|
4
|
+
import ie from "../../../@ant-design/icons/es/icons/CloseCircleFilled.js";
|
|
5
|
+
import me from "../../../@ant-design/icons/es/icons/CloseOutlined.js";
|
|
6
|
+
import fe from "../../../@ant-design/icons/es/icons/ExclamationCircleFilled.js";
|
|
7
|
+
import ue from "../../../@ant-design/icons/es/icons/InfoCircleFilled.js";
|
|
8
|
+
import de from "../../../@rc-component/motion/es/CSSMotion.js";
|
|
9
|
+
import A from "../../../@rc-component/util/es/pickAttrs.js";
|
|
10
|
+
import { composeRef as pe } from "../../../@rc-component/util/es/ref.js";
|
|
11
|
+
import { clsx as a } from "../../../clsx/dist/clsx.js";
|
|
12
|
+
import Ie from "../_util/isNonNullable.js";
|
|
13
|
+
import { devUseWarning as Ce } from "../_util/warning.js";
|
|
14
|
+
import { useComponentConfig as ye } from "../config-provider/context.js";
|
|
15
|
+
import Ne from "./style/index.js";
|
|
16
|
+
import { useMergeSemantic as Ee } from "../_util/hooks/useMergeSemantic.js";
|
|
17
|
+
const be = (s) => {
|
|
24
18
|
const {
|
|
25
|
-
icon:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
19
|
+
icon: d,
|
|
20
|
+
type: r,
|
|
21
|
+
className: i,
|
|
22
|
+
style: p,
|
|
23
|
+
successIcon: I,
|
|
24
|
+
infoIcon: l,
|
|
25
|
+
warningIcon: C,
|
|
26
|
+
errorIcon: y
|
|
27
|
+
} = s, b = {
|
|
28
|
+
success: I ?? /* @__PURE__ */ e.createElement(ae, null),
|
|
29
|
+
info: l ?? /* @__PURE__ */ e.createElement(ue, null),
|
|
30
|
+
error: y ?? /* @__PURE__ */ e.createElement(ie, null),
|
|
31
|
+
warning: C ?? /* @__PURE__ */ e.createElement(fe, null)
|
|
32
|
+
};
|
|
33
|
+
return /* @__PURE__ */ e.createElement("span", {
|
|
34
|
+
className: i,
|
|
35
|
+
style: p
|
|
36
|
+
}, d ?? b[r]);
|
|
37
|
+
}, ge = (s) => {
|
|
41
38
|
const {
|
|
42
|
-
isClosable:
|
|
43
|
-
prefixCls:
|
|
44
|
-
closeIcon:
|
|
39
|
+
isClosable: d,
|
|
40
|
+
prefixCls: r,
|
|
41
|
+
closeIcon: i,
|
|
45
42
|
handleClose: p,
|
|
46
|
-
ariaProps:
|
|
47
|
-
className:
|
|
48
|
-
style:
|
|
49
|
-
} = s,
|
|
50
|
-
return
|
|
43
|
+
ariaProps: I,
|
|
44
|
+
className: l,
|
|
45
|
+
style: C
|
|
46
|
+
} = s, y = i === !0 || i === void 0 ? /* @__PURE__ */ e.createElement(me, null) : i;
|
|
47
|
+
return d ? /* @__PURE__ */ e.createElement("button", {
|
|
51
48
|
type: "button",
|
|
52
49
|
onClick: p,
|
|
53
|
-
className:
|
|
50
|
+
className: a(`${r}-close-icon`, l),
|
|
54
51
|
tabIndex: 0,
|
|
55
|
-
style:
|
|
56
|
-
...
|
|
57
|
-
},
|
|
58
|
-
},
|
|
52
|
+
style: C,
|
|
53
|
+
...I
|
|
54
|
+
}, y) : null;
|
|
55
|
+
}, xe = /* @__PURE__ */ e.forwardRef((s, d) => {
|
|
59
56
|
const {
|
|
60
|
-
description:
|
|
61
|
-
prefixCls:
|
|
57
|
+
description: r,
|
|
58
|
+
prefixCls: i,
|
|
62
59
|
message: p,
|
|
63
|
-
title:
|
|
64
|
-
banner:
|
|
65
|
-
className:
|
|
66
|
-
rootClassName:
|
|
67
|
-
style:
|
|
60
|
+
title: I,
|
|
61
|
+
banner: l,
|
|
62
|
+
className: C,
|
|
63
|
+
rootClassName: y,
|
|
64
|
+
style: b,
|
|
68
65
|
onMouseEnter: k,
|
|
69
66
|
onMouseLeave: L,
|
|
70
|
-
onClick:
|
|
71
|
-
afterClose:
|
|
72
|
-
showIcon:
|
|
67
|
+
onClick: H,
|
|
68
|
+
afterClose: O,
|
|
69
|
+
showIcon: v,
|
|
73
70
|
closable: t,
|
|
74
|
-
closeText:
|
|
75
|
-
closeIcon:
|
|
76
|
-
action:
|
|
77
|
-
id:
|
|
71
|
+
closeText: N,
|
|
72
|
+
closeIcon: u,
|
|
73
|
+
action: h,
|
|
74
|
+
id: T,
|
|
78
75
|
styles: V,
|
|
79
76
|
classNames: D,
|
|
80
77
|
..._
|
|
81
|
-
} = s,
|
|
82
|
-
if (
|
|
83
|
-
const n =
|
|
84
|
-
[["closeText", "closable.closeIcon"], ["message", "title"]].forEach(([
|
|
85
|
-
n.deprecated(!(
|
|
78
|
+
} = s, w = I ?? p, [M, z] = e.useState(!1);
|
|
79
|
+
if (j.env.NODE_ENV !== "production") {
|
|
80
|
+
const n = Ce("Alert");
|
|
81
|
+
[["closeText", "closable.closeIcon"], ["message", "title"]].forEach(([E, $]) => {
|
|
82
|
+
n.deprecated(!(E in s), E, $);
|
|
86
83
|
});
|
|
87
84
|
}
|
|
88
85
|
const R = e.useRef(null);
|
|
89
|
-
e.useImperativeHandle(
|
|
86
|
+
e.useImperativeHandle(d, () => ({
|
|
90
87
|
nativeElement: R.current
|
|
91
88
|
}));
|
|
92
89
|
const {
|
|
93
90
|
getPrefixCls: F,
|
|
94
91
|
direction: U,
|
|
95
|
-
closable:
|
|
92
|
+
closable: c,
|
|
96
93
|
closeIcon: S,
|
|
97
94
|
className: W,
|
|
98
95
|
style: q,
|
|
99
96
|
classNames: B,
|
|
100
|
-
styles: G
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
97
|
+
styles: G,
|
|
98
|
+
successIcon: J,
|
|
99
|
+
infoIcon: K,
|
|
100
|
+
warningIcon: Q,
|
|
101
|
+
errorIcon: X
|
|
102
|
+
} = ye("alert"), o = F("alert", i), [Y, Z] = Ne(o), {
|
|
103
|
+
onClose: ee,
|
|
104
|
+
afterClose: oe
|
|
105
|
+
} = t && typeof t == "object" ? t : {}, te = (n) => {
|
|
106
|
+
z(!0), (ee ?? s.onClose)?.(n);
|
|
107
|
+
}, g = e.useMemo(() => s.type !== void 0 ? s.type : l ? "warning" : "info", [s.type, l]), P = e.useMemo(() => typeof t == "object" && t.closeIcon || N ? !0 : typeof t == "boolean" ? t : u !== !1 && Ie(u) ? !0 : !!c, [N, u, t, c]), x = l && v === void 0 ? !0 : v, se = {
|
|
107
108
|
...s,
|
|
108
109
|
prefixCls: o,
|
|
109
|
-
type:
|
|
110
|
+
type: g,
|
|
110
111
|
showIcon: x,
|
|
111
|
-
closable:
|
|
112
|
-
}, [
|
|
113
|
-
props:
|
|
114
|
-
}),
|
|
115
|
-
[`${o}-with-description`]: !!
|
|
112
|
+
closable: P
|
|
113
|
+
}, [m, f] = Ee([B, D], [G, V], {
|
|
114
|
+
props: se
|
|
115
|
+
}), ne = a(o, `${o}-${g}`, {
|
|
116
|
+
[`${o}-with-description`]: !!r,
|
|
116
117
|
[`${o}-no-icon`]: !x,
|
|
117
|
-
[`${o}-banner`]: !!
|
|
118
|
+
[`${o}-banner`]: !!l,
|
|
118
119
|
[`${o}-rtl`]: U === "rtl"
|
|
119
|
-
}, W,
|
|
120
|
+
}, W, C, y, m.root, Z, Y), re = A(_, {
|
|
120
121
|
aria: !0,
|
|
121
122
|
data: !0
|
|
122
|
-
}),
|
|
123
|
-
const n = t ??
|
|
124
|
-
return typeof n == "object" ?
|
|
123
|
+
}), le = e.useMemo(() => typeof t == "object" && t.closeIcon ? t.closeIcon : N || (u !== void 0 ? u : typeof c == "object" && c.closeIcon ? c.closeIcon : S), [u, t, c, N, S]), ce = e.useMemo(() => {
|
|
124
|
+
const n = t ?? c;
|
|
125
|
+
return typeof n == "object" ? A(n, {
|
|
125
126
|
data: !0,
|
|
126
127
|
aria: !0
|
|
127
128
|
}) : {};
|
|
128
|
-
}, [t,
|
|
129
|
-
return /* @__PURE__ */ e.createElement(
|
|
129
|
+
}, [t, c]);
|
|
130
|
+
return /* @__PURE__ */ e.createElement(de, {
|
|
130
131
|
visible: !M,
|
|
131
132
|
motionName: `${o}-motion`,
|
|
132
133
|
motionAppear: !1,
|
|
@@ -134,57 +135,61 @@ const Ne = {
|
|
|
134
135
|
onLeaveStart: (n) => ({
|
|
135
136
|
maxHeight: n.offsetHeight
|
|
136
137
|
}),
|
|
137
|
-
onLeaveEnd:
|
|
138
|
+
onLeaveEnd: oe ?? O
|
|
138
139
|
}, ({
|
|
139
140
|
className: n,
|
|
140
|
-
style:
|
|
141
|
-
},
|
|
142
|
-
id:
|
|
143
|
-
ref:
|
|
141
|
+
style: E
|
|
142
|
+
}, $) => /* @__PURE__ */ e.createElement("div", {
|
|
143
|
+
id: T,
|
|
144
|
+
ref: pe(R, $),
|
|
144
145
|
"data-show": !M,
|
|
145
|
-
className:
|
|
146
|
+
className: a(ne, n),
|
|
146
147
|
style: {
|
|
147
|
-
...
|
|
148
|
+
...f.root,
|
|
148
149
|
...q,
|
|
149
|
-
...
|
|
150
|
-
...
|
|
150
|
+
...b,
|
|
151
|
+
...E
|
|
151
152
|
},
|
|
152
153
|
onMouseEnter: k,
|
|
153
154
|
onMouseLeave: L,
|
|
154
|
-
onClick:
|
|
155
|
+
onClick: H,
|
|
155
156
|
role: "alert",
|
|
156
|
-
...
|
|
157
|
-
}, x ? /* @__PURE__ */ e.createElement(
|
|
158
|
-
className:
|
|
159
|
-
style:
|
|
160
|
-
description:
|
|
157
|
+
...re
|
|
158
|
+
}, x ? /* @__PURE__ */ e.createElement(be, {
|
|
159
|
+
className: a(`${o}-icon`, m.icon),
|
|
160
|
+
style: f.icon,
|
|
161
|
+
description: r,
|
|
161
162
|
icon: s.icon,
|
|
162
163
|
prefixCls: o,
|
|
163
|
-
type:
|
|
164
|
+
type: g,
|
|
165
|
+
successIcon: J,
|
|
166
|
+
infoIcon: K,
|
|
167
|
+
warningIcon: Q,
|
|
168
|
+
errorIcon: X
|
|
164
169
|
}) : null, /* @__PURE__ */ e.createElement("div", {
|
|
165
|
-
className:
|
|
166
|
-
style:
|
|
167
|
-
},
|
|
168
|
-
className:
|
|
169
|
-
style:
|
|
170
|
-
},
|
|
171
|
-
className:
|
|
172
|
-
style:
|
|
173
|
-
},
|
|
174
|
-
className:
|
|
175
|
-
style:
|
|
176
|
-
},
|
|
177
|
-
className:
|
|
178
|
-
style:
|
|
179
|
-
isClosable:
|
|
170
|
+
className: a(`${o}-section`, m.section),
|
|
171
|
+
style: f.section
|
|
172
|
+
}, w ? /* @__PURE__ */ e.createElement("div", {
|
|
173
|
+
className: a(`${o}-title`, m.title),
|
|
174
|
+
style: f.title
|
|
175
|
+
}, w) : null, r ? /* @__PURE__ */ e.createElement("div", {
|
|
176
|
+
className: a(`${o}-description`, m.description),
|
|
177
|
+
style: f.description
|
|
178
|
+
}, r) : null), h ? /* @__PURE__ */ e.createElement("div", {
|
|
179
|
+
className: a(`${o}-actions`, m.actions),
|
|
180
|
+
style: f.actions
|
|
181
|
+
}, h) : null, /* @__PURE__ */ e.createElement(ge, {
|
|
182
|
+
className: m.close,
|
|
183
|
+
style: f.close,
|
|
184
|
+
isClosable: P,
|
|
180
185
|
prefixCls: o,
|
|
181
|
-
closeIcon:
|
|
182
|
-
handleClose:
|
|
183
|
-
ariaProps:
|
|
186
|
+
closeIcon: le,
|
|
187
|
+
handleClose: te,
|
|
188
|
+
ariaProps: ce
|
|
184
189
|
})));
|
|
185
190
|
});
|
|
186
|
-
|
|
191
|
+
j.env.NODE_ENV !== "production" && (xe.displayName = "Alert");
|
|
187
192
|
export {
|
|
188
|
-
|
|
193
|
+
xe as default
|
|
189
194
|
};
|
|
190
195
|
//# sourceMappingURL=Alert.js.map
|