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":"index.js","sources":["../../../../../node_modules/antd/es/tooltip/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport RcTooltip from '@rc-component/tooltip';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport ContextIsolator from '../_util/ContextIsolator';\nimport { useMergeSemantic, useZIndex } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport zIndexContext from '../_util/zindexContext';\nimport { useComponentConfig } from '../config-provider/context';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport { useToken } from '../theme/internal';\nimport useMergedArrow from './hook/useMergedArrow';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport UniqueProvider from './UniqueProvider';\nimport { parseColor } from './util';\nconst InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n color,\n children,\n afterOpenChange,\n arrow: tooltipArrow,\n destroyTooltipOnHide,\n destroyOnHidden,\n title,\n overlay,\n trigger,\n builtinPlacements,\n autoAdjustOverflow = true,\n motion,\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n rootClassName,\n styles,\n classNames,\n onOpenChange,\n // Legacy\n overlayInnerStyle,\n overlayStyle,\n overlayClassName,\n ...restProps\n } = props;\n const [, token] = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('tooltip');\n const mergedArrow = useMergedArrow(tooltipArrow, contextArrow);\n const mergedShowArrow = mergedArrow.show;\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ============================== Ref ===============================\n const warning = devUseWarning('Tooltip');\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n tooltipRef.current?.forceAlign();\n };\n React.useImperativeHandle(ref, () => ({\n forceAlign,\n nativeElement: tooltipRef.current?.nativeElement,\n popupElement: tooltipRef.current?.popupElement\n }));\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['overlayStyle', 'styles.root'], ['overlayInnerStyle', 'styles.container'], ['overlayClassName', 'classNames.root'], ['destroyTooltipOnHide', 'destroyOnHidden']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onInternalOpenChange = vis => {\n setOpen(noTitle ? false : vis);\n if (!noTitle && onOpenChange) {\n onOpenChange(vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrow?.pointAtCenter ?? false,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [mergedArrow, builtinPlacements, token, mergedShowArrow, autoAdjustOverflow]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(ContextIsolator, {\n space: true\n }, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n trigger: mergedTrigger,\n color,\n placement,\n builtinPlacements,\n openClassName,\n arrow: tooltipArrow,\n autoAdjustOverflow,\n getPopupContainer,\n children,\n destroyTooltipOnHide,\n destroyOnHidden\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? clsx(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const rootCls = useCSSVarCls(prefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls, rootCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const themeCls = clsx(rootCls, hashId, cssVarCls);\n const rootClassNames = clsx(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, themeCls, contextClassName, mergedClassNames.root);\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tooltip', restProps.zIndex);\n const containerStyle = {\n ...mergedStyles.container,\n ...overlayInnerStyle,\n ...colorInfo.overlayStyle\n };\n const content = /*#__PURE__*/React.createElement(RcTooltip, {\n unique: true,\n ...restProps,\n trigger: mergedTrigger,\n zIndex: zIndex,\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow,\n uniqueContainer: clsx(themeCls, mergedClassNames.container)\n },\n styles: {\n root: {\n ...arrowContentStyle,\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: containerStyle,\n uniqueContainer: containerStyle,\n arrow: mergedStyles.arrow\n },\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onInternalOpenChange,\n afterVisibleChange: afterOpenChange,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', typeof motion?.motionName === 'string' ? motion?.motionName : undefined),\n motionDeadline: 1000\n },\n destroyOnHidden: destroyOnHidden ?? !!destroyTooltipOnHide\n }, tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n return /*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, content);\n});\nconst Tooltip = InternalTooltip;\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nTooltip.UniqueProvider = UniqueProvider;\nexport default Tooltip;"],"names":["InternalTooltip","React","props","ref","customizePrefixCls","openClassName","getTooltipContainer","color","children","afterOpenChange","tooltipArrow","destroyTooltipOnHide","destroyOnHidden","title","overlay","trigger","builtinPlacements","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","rootClassName","styles","classNames","onOpenChange","overlayInnerStyle","overlayStyle","overlayClassName","restProps","token","useToken","getContextPopupContainer","getPrefixCls","direction","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","mergedArrow","useMergedArrow","mergedShowArrow","mergedTrigger","warning","devUseWarning","tooltipRef","forceAlign","process","deprecatedName","newName","open","setOpen","useControlledState","noTitle","onInternalOpenChange","vis","tooltipPlacements","getPlacements","memoOverlay","memoOverlayWrapper","ContextIsolator","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","prefixCls","rootPrefixCls","injectFromPopover","tempOpen","child","isFragment","childProps","childCls","clsx","rootCls","useCSSVarCls","hashId","cssVarCls","useStyle","colorInfo","parseColor","arrowContentStyle","themeCls","rootClassNames","zIndex","contextZIndex","useZIndex","containerStyle","content","RcTooltip","getTransitionName","cloneElement","zIndexContext","Tooltip","PurePanel","UniqueProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,eAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAOC;AAAA,IACP,sBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,QAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,iBAAAC,IAAkB;AAAA,IAClB,iBAAAC,IAAkB;AAAA,IAClB,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA;AAAA,IAEA,mBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAM5B,GACE,CAAA,EAAG6B,CAAK,IAAIC,GAAQ,GACpB;AAAA,IACJ,mBAAmBC;AAAA,IACnB,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAWC;AAAA,IACX,OAAOC;AAAA,IACP,YAAYC;AAAA,IACZ,QAAQC;AAAA,IACR,OAAOC;AAAA,IACP,SAASC;AAAA,EACb,IAAMC,GAAmB,SAAS,GAC1BC,IAAcC,GAAelC,GAAc8B,EAAY,GACvDK,IAAkBF,EAAY,MAC9BG,IAAgB/B,KAAW0B,MAAkB,SAE7CM,IAAUC,GAAc,SAAS,GACjCC,IAAahD,EAAM,OAAO,IAAI,GAC9BiD,KAAa,MAAM;AACvB,IAAAD,EAAW,SAAS,WAAU;AAAA,EAChC;AACA,EAAAhD,EAAM,oBAAoBE,GAAK,OAAO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EACf,CAAG,IAAIH,CAAK;AACV,SAAoB,gBAAAxE,EAAM,cAAc+F,GAAc,UAAU;AAAA,IAC9D,OAAOP;AAAA,EACX,GAAKG,EAAO;AACZ,CAAC,GACKK,IAAUjG;AACZmD,EAAQ,IAAI,aAAa,iBAC3B8C,EAAQ,cAAc;AAExBA,EAAQ,yCAAyCC;AACjDD,EAAQ,iBAAiBE;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/tooltip/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport RcTooltip from '@rc-component/tooltip';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport ContextIsolator from '../_util/ContextIsolator';\nimport { useMergeSemantic, useZIndex } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport zIndexContext from '../_util/zindexContext';\nimport { useComponentConfig } from '../config-provider/context';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport { useToken } from '../theme/internal';\nimport useMergedArrow from './hook/useMergedArrow';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport UniqueProvider from './UniqueProvider';\nimport { parseColor } from './util';\nconst InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n color,\n children,\n afterOpenChange,\n arrow: tooltipArrow,\n destroyTooltipOnHide,\n destroyOnHidden,\n title,\n overlay,\n trigger,\n builtinPlacements,\n autoAdjustOverflow = true,\n motion,\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n rootClassName,\n styles,\n classNames,\n onOpenChange,\n // Legacy\n overlayInnerStyle,\n overlayStyle,\n overlayClassName,\n ...restProps\n } = props;\n const [, token] = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('tooltip');\n const mergedArrow = useMergedArrow(tooltipArrow, contextArrow);\n const mergedShowArrow = mergedArrow.show;\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ============================== Ref ===============================\n const warning = devUseWarning('Tooltip');\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n tooltipRef.current?.forceAlign();\n };\n React.useImperativeHandle(ref, () => ({\n forceAlign,\n nativeElement: tooltipRef.current?.nativeElement,\n popupElement: tooltipRef.current?.popupElement\n }));\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['overlayStyle', 'styles.root'], ['overlayInnerStyle', 'styles.container'], ['overlayClassName', 'classNames.root'], ['destroyTooltipOnHide', 'destroyOnHidden']].forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onInternalOpenChange = vis => {\n setOpen(noTitle ? false : vis);\n if (!noTitle && onOpenChange) {\n onOpenChange(vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrow?.pointAtCenter ?? false,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [mergedArrow, builtinPlacements, token, mergedShowArrow, autoAdjustOverflow]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(ContextIsolator, {\n space: true,\n form: true\n }, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n // =========== Merged Props for Semantic ===========\n const mergedProps = {\n ...props,\n trigger: mergedTrigger,\n color,\n placement,\n builtinPlacements,\n openClassName,\n arrow: tooltipArrow,\n autoAdjustOverflow,\n getPopupContainer,\n children,\n destroyTooltipOnHide,\n destroyOnHidden\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? clsx(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const rootCls = useCSSVarCls(prefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls, rootCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(rootPrefixCls, prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const themeCls = clsx(rootCls, hashId, cssVarCls);\n const rootClassNames = clsx(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, themeCls, contextClassName, mergedClassNames.root);\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tooltip', restProps.zIndex);\n const containerStyle = {\n ...mergedStyles.container,\n ...overlayInnerStyle,\n ...colorInfo.overlayStyle\n };\n const content = /*#__PURE__*/React.createElement(RcTooltip, {\n unique: true,\n ...restProps,\n trigger: mergedTrigger,\n zIndex: zIndex,\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow,\n uniqueContainer: clsx(themeCls, mergedClassNames.container)\n },\n styles: {\n root: {\n ...arrowContentStyle,\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: containerStyle,\n uniqueContainer: containerStyle,\n arrow: mergedStyles.arrow\n },\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onInternalOpenChange,\n afterVisibleChange: afterOpenChange,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', typeof motion?.motionName === 'string' ? motion?.motionName : undefined),\n motionDeadline: 1000\n },\n destroyOnHidden: destroyOnHidden ?? !!destroyTooltipOnHide\n }, tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n return /*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, content);\n});\nconst Tooltip = InternalTooltip;\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nTooltip.UniqueProvider = UniqueProvider;\nexport default Tooltip;"],"names":["InternalTooltip","React","props","ref","customizePrefixCls","openClassName","getTooltipContainer","color","children","afterOpenChange","tooltipArrow","destroyTooltipOnHide","destroyOnHidden","title","overlay","trigger","builtinPlacements","autoAdjustOverflow","motion","getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","rootClassName","styles","classNames","onOpenChange","overlayInnerStyle","overlayStyle","overlayClassName","restProps","token","useToken","getContextPopupContainer","getPrefixCls","direction","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","mergedArrow","useMergedArrow","mergedShowArrow","mergedTrigger","warning","devUseWarning","tooltipRef","forceAlign","process","deprecatedName","newName","open","setOpen","useControlledState","noTitle","onInternalOpenChange","vis","tooltipPlacements","getPlacements","memoOverlay","memoOverlayWrapper","ContextIsolator","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","prefixCls","rootPrefixCls","injectFromPopover","tempOpen","child","isFragment","childProps","childCls","clsx","rootCls","useCSSVarCls","hashId","cssVarCls","useStyle","colorInfo","parseColor","arrowContentStyle","themeCls","rootClassNames","zIndex","contextZIndex","useZIndex","containerStyle","content","RcTooltip","getTransitionName","cloneElement","zIndexContext","Tooltip","PurePanel","UniqueProvider"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,eAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAOC;AAAA,IACP,sBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,SAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,oBAAAC,IAAqB;AAAA,IACrB,QAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,iBAAAC,IAAkB;AAAA,IAClB,iBAAAC,IAAkB;AAAA,IAClB,eAAAC;AAAA,IACA,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,cAAAC;AAAA;AAAA,IAEA,mBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,GAAGC;AAAA,EACP,IAAM5B,GACE,CAAA,EAAG6B,CAAK,IAAIC,GAAQ,GACpB;AAAA,IACJ,mBAAmBC;AAAA,IACnB,cAAAC;AAAA,IACA,W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AAAA,IACnB,SAASG;AAAA,IACT,SAASS;AAAA,IACT,iBAAiBd;AAAA,IACjB,oBAAoBjD;AAAA,IACpB,cAA2B,gBAAAR,EAAM,cAAc,QAAQ;AAAA,MACrD,WAAW,GAAGoE,CAAS;AAAA,IAC7B,CAAK;AAAA,IACD,QAAQ;AAAA,MACN,YAAYyB,GAAkBxB,GAAe,iBAAiB,OAAOpD,GAAQ,cAAe,WAAWA,GAAQ,aAAa,MAAS;AAAA,MACrI,gBAAgB;AAAA,IACtB;AAAA,IACI,iBAAiBN,KAAmB,CAAC,CAACD;AAAA,EAC1C,GAAK6D,IAAWuB,GAAatB,GAAO;AAAA,IAChC,WAAWG;AAAA,EACf,CAAG,IAAIH,CAAK;AACV,SAAoB,gBAAAxE,EAAM,cAAc+F,GAAc,UAAU;AAAA,IAC9D,OAAOP;AAAA,EACX,GAAKG,EAAO;AACZ,CAAC,GACKK,IAAUjG;AACZmD,EAAQ,IAAI,aAAa,iBAC3B8C,EAAQ,cAAc;AAExBA,EAAQ,yCAAyCC;AACjDD,EAAQ,iBAAiBE;","x_google_ignoreList":[0]}
|
|
@@ -1,62 +1,63 @@
|
|
|
1
|
-
import { unit as
|
|
2
|
-
import { resetComponent as
|
|
3
|
-
import { initFadeMotion as
|
|
4
|
-
import { initZoomMotion as
|
|
5
|
-
import
|
|
6
|
-
import { getArrowToken as
|
|
7
|
-
import { genStyleHooks as
|
|
8
|
-
import
|
|
9
|
-
import { merge as
|
|
10
|
-
const
|
|
1
|
+
import { unit as b } from "../../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
|
+
import { resetComponent as T } from "../../style/index.js";
|
|
3
|
+
import { initFadeMotion as v } from "../../style/motion/fade.js";
|
|
4
|
+
import { initZoomMotion as C } from "../../style/motion/zoom.js";
|
|
5
|
+
import W, { MAX_VERTICAL_CONTENT_RADIUS as z, getArrowOffsetToken as B } from "../../style/placementArrow.js";
|
|
6
|
+
import { getArrowToken as M } from "../../style/roundedArrow.js";
|
|
7
|
+
import { genStyleHooks as I, genCssVar as O } from "../../theme/util/genStyleUtils.js";
|
|
8
|
+
import q from "../../theme/util/genPresetColor.js";
|
|
9
|
+
import { merge as x } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
|
|
10
|
+
const f = "50%", L = (o) => {
|
|
11
11
|
const {
|
|
12
12
|
calc: e,
|
|
13
13
|
componentCls: t,
|
|
14
14
|
// ant-tooltip
|
|
15
|
-
tooltipMaxWidth:
|
|
15
|
+
tooltipMaxWidth: c,
|
|
16
16
|
tooltipColor: i,
|
|
17
17
|
tooltipBg: n,
|
|
18
18
|
tooltipBorderRadius: r,
|
|
19
19
|
zIndexPopup: a,
|
|
20
|
-
controlHeight:
|
|
21
|
-
boxShadowSecondary:
|
|
22
|
-
paddingSM:
|
|
23
|
-
paddingXS:
|
|
24
|
-
arrowOffsetHorizontal:
|
|
25
|
-
sizePopupArrow:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
20
|
+
controlHeight: d,
|
|
21
|
+
boxShadowSecondary: s,
|
|
22
|
+
paddingSM: w,
|
|
23
|
+
paddingXS: S,
|
|
24
|
+
arrowOffsetHorizontal: y,
|
|
25
|
+
sizePopupArrow: m,
|
|
26
|
+
antCls: R
|
|
27
|
+
} = o, [p, l] = O(R, "tooltip"), $ = e(r).add(m).add(y).equal(), u = {
|
|
28
|
+
minWidth: e(r).mul(2).add(m).equal(),
|
|
29
|
+
minHeight: d,
|
|
30
|
+
padding: `${b(o.calc(w).div(2).equal())} ${b(S)}`,
|
|
31
|
+
color: l("overlay-color", i),
|
|
31
32
|
textAlign: "start",
|
|
32
33
|
textDecoration: "none",
|
|
33
34
|
wordWrap: "break-word",
|
|
34
35
|
backgroundColor: n,
|
|
35
36
|
borderRadius: r,
|
|
36
|
-
boxShadow:
|
|
37
|
+
boxShadow: s,
|
|
37
38
|
boxSizing: "border-box"
|
|
38
|
-
},
|
|
39
|
+
}, g = {
|
|
39
40
|
// When use `autoArrow`, origin will follow the arrow position
|
|
40
|
-
"
|
|
41
|
-
transformOrigin: ["
|
|
41
|
+
[p("valid-offset-x")]: l("arrow-offset-horizontal", "var(--arrow-x)"),
|
|
42
|
+
transformOrigin: [l("valid-offset-x", f), `var(--arrow-y, ${f})`].join(" ")
|
|
42
43
|
};
|
|
43
44
|
return [
|
|
44
45
|
{
|
|
45
46
|
[t]: {
|
|
46
|
-
...
|
|
47
|
+
...T(o),
|
|
47
48
|
position: "absolute",
|
|
48
49
|
zIndex: a,
|
|
49
50
|
display: "block",
|
|
50
51
|
width: "max-content",
|
|
51
|
-
maxWidth:
|
|
52
|
+
maxWidth: c,
|
|
52
53
|
visibility: "visible",
|
|
53
|
-
...
|
|
54
|
+
...g,
|
|
54
55
|
"&-hidden": {
|
|
55
56
|
display: "none"
|
|
56
57
|
},
|
|
57
|
-
"
|
|
58
|
+
[p("arrow-background-color")]: n,
|
|
58
59
|
// Wrapper for the tooltip content
|
|
59
|
-
[`${t}-container`]: [
|
|
60
|
+
[`${t}-container`]: [u, v(o, !0)],
|
|
60
61
|
[`&:has(~ ${t}-unique-container)`]: {
|
|
61
62
|
[`${t}-container`]: {
|
|
62
63
|
border: "none",
|
|
@@ -66,27 +67,27 @@ const B = (o) => {
|
|
|
66
67
|
},
|
|
67
68
|
// Align placement should have another min width
|
|
68
69
|
[["&-placement-topLeft", "&-placement-topRight", "&-placement-bottomLeft", "&-placement-bottomRight"].join(",")]: {
|
|
69
|
-
minWidth:
|
|
70
|
+
minWidth: $
|
|
70
71
|
},
|
|
71
72
|
// Limit left and right placement radius
|
|
72
73
|
[["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(",")]: {
|
|
73
74
|
[`${t}-inner`]: {
|
|
74
|
-
borderRadius: o.min(r,
|
|
75
|
+
borderRadius: o.min(r, z)
|
|
75
76
|
}
|
|
76
77
|
},
|
|
77
78
|
[`${t}-content`]: {
|
|
78
79
|
position: "relative"
|
|
79
80
|
},
|
|
80
81
|
// generator for preset color
|
|
81
|
-
...
|
|
82
|
-
darkColor:
|
|
82
|
+
...q(o, (A, {
|
|
83
|
+
darkColor: h
|
|
83
84
|
}) => ({
|
|
84
|
-
[`&${t}-${
|
|
85
|
+
[`&${t}-${A}`]: {
|
|
85
86
|
[`${t}-container`]: {
|
|
86
|
-
backgroundColor:
|
|
87
|
+
backgroundColor: h
|
|
87
88
|
},
|
|
88
89
|
[`${t}-arrow`]: {
|
|
89
|
-
"
|
|
90
|
+
[p("arrow-background-color")]: h
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
})),
|
|
@@ -97,7 +98,7 @@ const B = (o) => {
|
|
|
97
98
|
}
|
|
98
99
|
},
|
|
99
100
|
// Arrow Style
|
|
100
|
-
|
|
101
|
+
W(o, l("arrow-background-color")),
|
|
101
102
|
// Pure Render
|
|
102
103
|
{
|
|
103
104
|
[`${t}-pure`]: {
|
|
@@ -109,8 +110,8 @@ const B = (o) => {
|
|
|
109
110
|
// Unique Body
|
|
110
111
|
{
|
|
111
112
|
[`${t}-unique-container`]: {
|
|
112
|
-
...
|
|
113
|
-
...
|
|
113
|
+
...u,
|
|
114
|
+
...g,
|
|
114
115
|
position: "absolute",
|
|
115
116
|
zIndex: e(a).sub(1).equal(),
|
|
116
117
|
"&-hidden": {
|
|
@@ -122,35 +123,37 @@ const B = (o) => {
|
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
];
|
|
125
|
-
},
|
|
126
|
+
}, P = (o) => ({
|
|
126
127
|
zIndexPopup: o.zIndexPopupBase + 70,
|
|
127
|
-
|
|
128
|
+
maxWidth: 250,
|
|
129
|
+
...B({
|
|
128
130
|
contentRadius: o.borderRadius,
|
|
129
131
|
limitVerticalRadius: !0
|
|
130
132
|
}),
|
|
131
|
-
...
|
|
133
|
+
...M(x(o, {
|
|
132
134
|
borderRadiusOuter: Math.min(o.borderRadiusOuter, 4)
|
|
133
135
|
}))
|
|
134
|
-
}),
|
|
136
|
+
}), K = (o, e, t = !0) => I("Tooltip", (i) => {
|
|
135
137
|
const {
|
|
136
138
|
borderRadius: n,
|
|
137
139
|
colorTextLightSolid: r,
|
|
138
|
-
colorBgSpotlight: a
|
|
139
|
-
|
|
140
|
+
colorBgSpotlight: a,
|
|
141
|
+
maxWidth: d
|
|
142
|
+
} = i, s = x(i, {
|
|
140
143
|
// default variables
|
|
141
|
-
tooltipMaxWidth:
|
|
144
|
+
tooltipMaxWidth: d,
|
|
142
145
|
tooltipColor: r,
|
|
143
146
|
tooltipBorderRadius: n,
|
|
144
147
|
tooltipBg: a
|
|
145
148
|
});
|
|
146
|
-
return [
|
|
147
|
-
},
|
|
149
|
+
return [L(s), C(i, "zoom-big-fast")];
|
|
150
|
+
}, P, {
|
|
148
151
|
resetStyle: !1,
|
|
149
152
|
// Popover use Tooltip as internal component. We do not need to handle this.
|
|
150
153
|
injectStyle: t
|
|
151
154
|
})(o, e);
|
|
152
155
|
export {
|
|
153
|
-
|
|
154
|
-
|
|
156
|
+
K as default,
|
|
157
|
+
P as prepareComponentToken
|
|
155
158
|
};
|
|
156
159
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/tooltip/style/index.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion, initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken, MAX_VERTICAL_CONTENT_RADIUS } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nconst genTooltipStyle = token => {\n const {\n calc,\n componentCls,\n // ant-tooltip\n tooltipMaxWidth,\n tooltipColor,\n tooltipBg,\n tooltipBorderRadius,\n zIndexPopup,\n controlHeight,\n boxShadowSecondary,\n paddingSM,\n paddingXS,\n arrowOffsetHorizontal,\n sizePopupArrow\n } = token;\n // arrowOffsetHorizontal + arrowWidth + borderRadius\n const edgeAlignMinWidth = calc(tooltipBorderRadius).add(sizePopupArrow).add(arrowOffsetHorizontal).equal();\n // borderRadius * 2 + arrowWidth\n const centerAlignMinWidth = calc(tooltipBorderRadius).mul(2).add(sizePopupArrow).equal();\n const sharedBodyStyle = {\n minWidth: centerAlignMinWidth,\n minHeight: controlHeight,\n padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,\n color:
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/tooltip/style/index.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { resetComponent } from '../../style';\nimport { initFadeMotion, initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken, MAX_VERTICAL_CONTENT_RADIUS } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genPresetColor, genStyleHooks, mergeToken } from '../../theme/internal';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nconst FALL_BACK_ORIGIN = '50%';\nconst genTooltipStyle = token => {\n const {\n calc,\n componentCls,\n // ant-tooltip\n tooltipMaxWidth,\n tooltipColor,\n tooltipBg,\n tooltipBorderRadius,\n zIndexPopup,\n controlHeight,\n boxShadowSecondary,\n paddingSM,\n paddingXS,\n arrowOffsetHorizontal,\n sizePopupArrow,\n antCls\n } = token;\n const [varName, varRef] = genCssVar(antCls, 'tooltip');\n // arrowOffsetHorizontal + arrowWidth + borderRadius\n const edgeAlignMinWidth = calc(tooltipBorderRadius).add(sizePopupArrow).add(arrowOffsetHorizontal).equal();\n // borderRadius * 2 + arrowWidth\n const centerAlignMinWidth = calc(tooltipBorderRadius).mul(2).add(sizePopupArrow).equal();\n const sharedBodyStyle = {\n minWidth: centerAlignMinWidth,\n minHeight: controlHeight,\n padding: `${unit(token.calc(paddingSM).div(2).equal())} ${unit(paddingXS)}`,\n color: varRef('overlay-color', tooltipColor),\n textAlign: 'start',\n textDecoration: 'none',\n wordWrap: 'break-word',\n backgroundColor: tooltipBg,\n borderRadius: tooltipBorderRadius,\n boxShadow: boxShadowSecondary,\n boxSizing: 'border-box'\n };\n const sharedTransformOrigin = {\n // When use `autoArrow`, origin will follow the arrow position\n [varName('valid-offset-x')]: varRef('arrow-offset-horizontal', 'var(--arrow-x)'),\n transformOrigin: [varRef('valid-offset-x', FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(' ')\n };\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n zIndex: zIndexPopup,\n display: 'block',\n width: 'max-content',\n maxWidth: tooltipMaxWidth,\n visibility: 'visible',\n ...sharedTransformOrigin,\n '&-hidden': {\n display: 'none'\n },\n [varName('arrow-background-color')]: tooltipBg,\n // Wrapper for the tooltip content\n [`${componentCls}-container`]: [sharedBodyStyle, initFadeMotion(token, true)],\n [`&:has(~ ${componentCls}-unique-container)`]: {\n [`${componentCls}-container`]: {\n border: 'none',\n background: 'transparent',\n boxShadow: 'none'\n }\n },\n // Align placement should have another min width\n [[`&-placement-topLeft`, `&-placement-topRight`, `&-placement-bottomLeft`, `&-placement-bottomRight`].join(',')]: {\n minWidth: edgeAlignMinWidth\n },\n // Limit left and right placement radius\n [[`&-placement-left`, `&-placement-leftTop`, `&-placement-leftBottom`, `&-placement-right`, `&-placement-rightTop`, `&-placement-rightBottom`].join(',')]: {\n [`${componentCls}-inner`]: {\n borderRadius: token.min(tooltipBorderRadius, MAX_VERTICAL_CONTENT_RADIUS)\n }\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n // generator for preset color\n ...genPresetColor(token, (colorKey, {\n darkColor\n }) => ({\n [`&${componentCls}-${colorKey}`]: {\n [`${componentCls}-container`]: {\n backgroundColor: darkColor\n },\n [`${componentCls}-arrow`]: {\n [varName('arrow-background-color')]: darkColor\n }\n }\n })),\n // RTL\n '&-rtl': {\n direction: 'rtl'\n }\n }\n },\n // Arrow Style\n getArrowStyle(token, varRef('arrow-background-color')),\n // Pure Render\n {\n [`${componentCls}-pure`]: {\n position: 'relative',\n maxWidth: 'none',\n margin: token.sizePopupArrow\n }\n },\n // Unique Body\n {\n [`${componentCls}-unique-container`]: {\n ...sharedBodyStyle,\n ...sharedTransformOrigin,\n position: 'absolute',\n zIndex: calc(zIndexPopup).sub(1).equal(),\n '&-hidden': {\n display: 'none'\n },\n '&-visible': {\n transition: `all ${token.motionDurationSlow}`\n }\n }\n }];\n};\n// ============================== Export ==============================\nexport const prepareComponentToken = token => ({\n zIndexPopup: token.zIndexPopupBase + 70,\n maxWidth: 250,\n ...getArrowOffsetToken({\n contentRadius: token.borderRadius,\n limitVerticalRadius: true\n }),\n ...getArrowToken(mergeToken(token, {\n borderRadiusOuter: Math.min(token.borderRadiusOuter, 4)\n }))\n});\nexport default (prefixCls, rootCls, injectStyle = true) => {\n const useStyle = genStyleHooks('Tooltip', token => {\n const {\n borderRadius,\n colorTextLightSolid,\n colorBgSpotlight,\n maxWidth\n } = token;\n const TooltipToken = mergeToken(token, {\n // default variables\n tooltipMaxWidth: maxWidth,\n tooltipColor: colorTextLightSolid,\n tooltipBorderRadius: borderRadius,\n tooltipBg: colorBgSpotlight\n });\n return [genTooltipStyle(TooltipToken), initZoomMotion(token, 'zoom-big-fast')];\n }, prepareComponentToken, {\n resetStyle: false,\n // Popover use Tooltip as internal component. We do not need to handle this.\n injectStyle\n });\n return useStyle(prefixCls, rootCls);\n};"],"names":["FALL_BACK_ORIGIN","genTooltipStyle","token","calc","componentCls","tooltipMaxWidth","tooltipColor","tooltipBg","tooltipBorderRadius","zIndexPopup","controlHeight","boxShadowSecondary","paddingSM","paddingXS","arrowOffsetHorizontal","sizePopupArrow","antCls","varName","varRef","genCssVar","edgeAlignMinWidth","sharedBodyStyle","unit","sharedTransformOrigin","resetComponent","initFadeMotion","MAX_VERTICAL_CONTENT_RADIUS","genPresetColor","colorKey","darkColor","getArrowStyle","prepareComponentToken","getArrowOffsetToken","getArrowToken","mergeToken","useStyle","prefixCls","rootCls","injectStyle","genStyleHooks","borderRadius","colorTextLightSolid","colorBgSpotlight","maxWidth","TooltipToken","initZoomMotion"],"mappings":";;;;;;;;;AAOA,MAAMA,IAAmB,OACnBC,IAAkB,CAAAC,MAAS;AAC/B,QAAM;AAAA,IACJ,MAAAC;AAAA,IACA,cAAAC;AAAA;AAAA,IAEA,iBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,WAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,eAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,uBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,QAAAC;AAAA,EACJ,IAAMd,GACE,CAACe,GAASC,CAAM,IAAIC,EAAUH,GAAQ,SAAS,GAE/CI,IAAoBjB,EAAKK,CAAmB,EAAE,IAAIO,CAAc,EAAE,IAAID,CAAqB,EAAE,MAAK,GAGlGO,IAAkB;AAAA,IACtB,UAF0BlB,EAAKK,CAAmB,EAAE,IAAI,CAAC,EAAE,IAAIO,CAAc,EAAE,MAAK;AAAA,IAGpF,WAAWL;AAAA,IACX,SAAS,GAAGY,EAAKpB,EAAM,KAAKU,CAAS,EAAE,IAAI,CAAC,EAAE,MAAK,CAAE,CAAC,IAAIU,EAAKT,CAAS,CAAC;AAAA,IACzE,OAAOK,EAAO,iBAAiBZ,CAAY;AAAA,IAC3C,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,UAAU;AAAA,IACV,iBAAiBC;AAAA,IACjB,cAAcC;AAAA,IACd,WAAWG;AAAA,IACX,WAAW;AAAA,EACf,GACQY,IAAwB;AAAA;AAAA,IAE5B,CAACN,EAAQ,gBAAgB,CAAC,GAAGC,EAAO,2BAA2B,gBAAgB;AAAA,IAC/E,iBAAiB,CAACA,EAAO,kBAAkBlB,CAAgB,GAAG,kBAAkBA,CAAgB,GAAG,EAAE,KAAK,GAAG;AAAA,E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AWhC,GAAO;AAAA;AAAA,IAErC,iBAAiByC;AAAA,IACjB,cAAcF;AAAA,IACd,qBAAqBD;AAAA,IACrB,WAAWE;AAAA,EACjB,CAAK;AACD,SAAO,CAACzC,EAAgB2C,CAAY,GAAGC,EAAe3C,GAAO,eAAe,CAAC;AAC/E,GAAG6B,GAAuB;AAAA,EACxB,YAAY;AAAA;AAAA,EAEZ,aAAAO;AACJ,CAAG,EACeF,GAAWC,CAAO;","x_google_ignoreList":[0]}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { clsx as i } from "../../../clsx/dist/clsx.js";
|
|
2
|
-
import { isPresetColor as
|
|
3
|
-
import { generateColor as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
import { isPresetColor as g } from "../_util/colors.js";
|
|
3
|
+
import { generateColor as p } from "../color-picker/util.js";
|
|
4
|
+
import { genCssVar as C } from "../theme/util/genStyleUtils.js";
|
|
5
|
+
const x = (a, m, o) => {
|
|
6
|
+
const n = g(o), [e] = C(a, "tooltip"), c = i({
|
|
7
|
+
[`${m}-${o}`]: o && n
|
|
8
|
+
}), r = {}, s = {}, t = p(o).toRgb(), l = (0.299 * t.r + 0.587 * t.g + 0.114 * t.b) / 255 < 0.5 ? "#FFF" : "#000";
|
|
9
|
+
return o && !n && (r.background = o, r[e("overlay-color")] = l, s[e("arrow-background-color")] = o), {
|
|
10
|
+
className: c,
|
|
11
|
+
overlayStyle: r,
|
|
12
|
+
arrowStyle: s
|
|
12
13
|
};
|
|
13
|
-
}
|
|
14
|
+
};
|
|
14
15
|
export {
|
|
15
|
-
|
|
16
|
+
x as parseColor
|
|
16
17
|
};
|
|
17
18
|
//# sourceMappingURL=util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../node_modules/antd/es/tooltip/util.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { isPresetColor } from '../_util/colors';\nimport { generateColor } from '../color-picker/util';\nexport
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../../../node_modules/antd/es/tooltip/util.js"],"sourcesContent":["import { clsx } from 'clsx';\nimport { isPresetColor } from '../_util/colors';\nimport { generateColor } from '../color-picker/util';\nimport { genCssVar } from '../theme/util/genStyleUtils';\nexport const parseColor = (rootPrefixCls, prefixCls, color) => {\n const isInternalColor = isPresetColor(color);\n const [varName] = genCssVar(rootPrefixCls, 'tooltip');\n const className = clsx({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n const rgb = generateColor(color).toRgb();\n const luminance = (0.299 * rgb.r + 0.587 * rgb.g + 0.114 * rgb.b) / 255;\n const textColor = luminance < 0.5 ? '#FFF' : '#000';\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n overlayStyle[varName('overlay-color')] = textColor;\n arrowStyle[varName('arrow-background-color')] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n};"],"names":["parseColor","rootPrefixCls","prefixCls","color","isInternalColor","isPresetColor","varName","genCssVar","className","clsx","overlayStyle","arrowStyle","rgb","generateColor","textColor"],"mappings":";;;;AAIY,MAACA,IAAa,CAACC,GAAeC,GAAWC,MAAU;AAC7D,QAAMC,IAAkBC,EAAcF,CAAK,GACrC,CAACG,CAAO,IAAIC,EAAUN,GAAe,SAAS,GAC9CO,IAAYC,EAAK;AAAA,IACrB,CAAC,GAAGP,CAAS,IAAIC,CAAK,EAAE,GAAGA,KAASC;AAAA,EACxC,CAAG,GACKM,IAAe,CAAA,GACfC,IAAa,CAAA,GACbC,IAAMC,EAAcV,CAAK,EAAE,MAAK,GAEhCW,KADa,QAAQF,EAAI,IAAI,QAAQA,EAAI,IAAI,QAAQA,EAAI,KAAK,MACtC,MAAM,SAAS;AAC7C,SAAIT,KAAS,CAACC,MACZM,EAAa,aAAaP,GAC1BO,EAAaJ,EAAQ,eAAe,CAAC,IAAIQ,GACzCH,EAAWL,EAAQ,wBAAwB,CAAC,IAAIH,IAE3C;AAAA,IACL,WAAAK;AAAA,IACA,cAAAE;AAAA,IACA,YAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
1
|
+
import L from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { clsx as
|
|
3
|
+
import { clsx as b } from "../../../clsx/dist/clsx.js";
|
|
4
4
|
import x from "../pagination/Pagination.js";
|
|
5
5
|
import M from "./ListItem.js";
|
|
6
6
|
import $ from "../../../@rc-component/util/es/hooks/useControlledState.js";
|
|
7
|
-
const j = ["handleFilter", "handleClear", "checkedKeys"], B = (
|
|
7
|
+
const j = ["handleFilter", "handleClear", "checkedKeys"], B = (c) => ({
|
|
8
8
|
...{
|
|
9
9
|
simple: !0,
|
|
10
10
|
showSizeChanger: !1,
|
|
11
11
|
showLessItems: !1
|
|
12
12
|
},
|
|
13
|
-
...
|
|
14
|
-
}), S = (
|
|
13
|
+
...c
|
|
14
|
+
}), S = (c, g) => {
|
|
15
15
|
const {
|
|
16
16
|
prefixCls: l,
|
|
17
17
|
classNames: p,
|
|
@@ -24,11 +24,11 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
|
|
|
24
24
|
onScroll: I,
|
|
25
25
|
onItemSelect: w,
|
|
26
26
|
onItemRemove: z
|
|
27
|
-
} =
|
|
27
|
+
} = c, [a, m] = t.useState(1), s = t.useMemo(() => r ? B(typeof r == "object" ? r : {}) : null, [r]), [o, P] = $(10, s?.pageSize);
|
|
28
28
|
t.useEffect(() => {
|
|
29
29
|
if (s) {
|
|
30
30
|
const e = Math.ceil(n.length / o);
|
|
31
|
-
|
|
31
|
+
m(Math.min(a, e));
|
|
32
32
|
}
|
|
33
33
|
}, [n, s, o]);
|
|
34
34
|
const k = (e, i) => {
|
|
@@ -36,9 +36,9 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
|
|
|
36
36
|
}, v = (e) => {
|
|
37
37
|
z?.([e.key]);
|
|
38
38
|
}, E = (e) => {
|
|
39
|
-
|
|
39
|
+
m(e);
|
|
40
40
|
}, N = (e, i) => {
|
|
41
|
-
|
|
41
|
+
m(e), P(i);
|
|
42
42
|
}, C = t.useMemo(() => s ? n.slice((a - 1) * o, a * o) : n, [a, n, s, o]);
|
|
43
43
|
t.useImperativeHandle(g, () => ({
|
|
44
44
|
items: C
|
|
@@ -57,7 +57,7 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
|
|
|
57
57
|
onShowSizeChange: N
|
|
58
58
|
}) : null;
|
|
59
59
|
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("ul", {
|
|
60
|
-
className:
|
|
60
|
+
className: b(`${l}-content`, p.list, {
|
|
61
61
|
[`${l}-content-show-remove`]: y
|
|
62
62
|
}),
|
|
63
63
|
style: u.list,
|
|
@@ -65,23 +65,23 @@ const j = ["handleFilter", "handleClear", "checkedKeys"], B = (m) => ({
|
|
|
65
65
|
}, (C || []).map(({
|
|
66
66
|
renderedEl: e,
|
|
67
67
|
renderedText: i,
|
|
68
|
-
item:
|
|
68
|
+
item: d
|
|
69
69
|
}) => /* @__PURE__ */ t.createElement(M, {
|
|
70
|
-
key:
|
|
70
|
+
key: d.key,
|
|
71
71
|
prefixCls: l,
|
|
72
72
|
classNames: p,
|
|
73
73
|
styles: u,
|
|
74
|
-
item:
|
|
74
|
+
item: d,
|
|
75
75
|
renderedText: i,
|
|
76
76
|
renderedEl: e,
|
|
77
77
|
showRemove: y,
|
|
78
78
|
onClick: k,
|
|
79
79
|
onRemove: v,
|
|
80
|
-
checked: f.includes(
|
|
81
|
-
disabled: h
|
|
80
|
+
checked: f.includes(d.key),
|
|
81
|
+
disabled: h
|
|
82
82
|
}))), R);
|
|
83
83
|
};
|
|
84
|
-
|
|
84
|
+
L.env.NODE_ENV !== "production" && (S.displayName = "TransferListBody");
|
|
85
85
|
const H = /* @__PURE__ */ t.forwardRef(S);
|
|
86
86
|
export {
|
|
87
87
|
j as OmitProps,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListBody.js","sources":["../../../../../node_modules/antd/es/transfer/ListBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport Pagination from '../pagination';\nimport ListItem from './ListItem';\nexport const OmitProps = ['handleFilter', 'handleClear', 'checkedKeys'];\nconst parsePagination = pagination => {\n const defaultPagination = {\n simple: true,\n showSizeChanger: false,\n showLessItems: false\n };\n return {\n ...defaultPagination,\n ...pagination\n };\n};\nconst TransferListBody = (props, ref) => {\n const {\n prefixCls,\n classNames,\n styles,\n filteredRenderItems,\n selectedKeys,\n disabled: globalDisabled,\n showRemove,\n pagination,\n onScroll,\n onItemSelect,\n onItemRemove\n } = props;\n const [current, setCurrent] = React.useState(1);\n const mergedPagination = React.useMemo(() => {\n if (!pagination) {\n return null;\n }\n const convertPagination = typeof pagination === 'object' ? pagination : {};\n return parsePagination(convertPagination);\n }, [pagination]);\n const [pageSize, setPageSize] = useControlledState(10, mergedPagination?.pageSize);\n React.useEffect(() => {\n if (mergedPagination) {\n const maxPageCount = Math.ceil(filteredRenderItems.length / pageSize);\n setCurrent(Math.min(current, maxPageCount));\n }\n }, [filteredRenderItems, mergedPagination, pageSize]);\n const onInternalClick = (item, e) => {\n onItemSelect(item.key, !selectedKeys.includes(item.key), e);\n };\n const onRemove = item => {\n onItemRemove?.([item.key]);\n };\n const onPageChange = cur => {\n setCurrent(cur);\n };\n const onSizeChange = (cur, size) => {\n setCurrent(cur);\n setPageSize(size);\n };\n const memoizedItems = React.useMemo(() => {\n const displayItems = mergedPagination ? filteredRenderItems.slice((current - 1) * pageSize, current * pageSize) : filteredRenderItems;\n return displayItems;\n }, [current, filteredRenderItems, mergedPagination, pageSize]);\n React.useImperativeHandle(ref, () => ({\n items: memoizedItems\n }));\n const paginationNode = mergedPagination ? (/*#__PURE__*/React.createElement(Pagination, {\n size: \"small\",\n disabled: globalDisabled,\n simple: mergedPagination.simple,\n pageSize: pageSize,\n showLessItems: mergedPagination.showLessItems,\n showSizeChanger: mergedPagination.showSizeChanger,\n className: `${prefixCls}-pagination`,\n total: filteredRenderItems.length,\n current: current,\n onChange: onPageChange,\n onShowSizeChange: onSizeChange\n })) : null;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"ul\", {\n className: clsx(`${prefixCls}-content`, classNames.list, {\n [`${prefixCls}-content-show-remove`]: showRemove\n }),\n style: styles.list,\n onScroll: onScroll\n }, (memoizedItems || []).map(({\n renderedEl,\n renderedText,\n item\n }) => (/*#__PURE__*/React.createElement(ListItem, {\n key: item.key,\n prefixCls: prefixCls,\n classNames: classNames,\n styles: styles,\n item: item,\n renderedText: renderedText,\n renderedEl: renderedEl,\n showRemove: showRemove,\n onClick: onInternalClick,\n onRemove: onRemove,\n checked: selectedKeys.includes(item.key),\n disabled: globalDisabled
|
|
1
|
+
{"version":3,"file":"ListBody.js","sources":["../../../../../node_modules/antd/es/transfer/ListBody.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport Pagination from '../pagination';\nimport ListItem from './ListItem';\nexport const OmitProps = ['handleFilter', 'handleClear', 'checkedKeys'];\nconst parsePagination = pagination => {\n const defaultPagination = {\n simple: true,\n showSizeChanger: false,\n showLessItems: false\n };\n return {\n ...defaultPagination,\n ...pagination\n };\n};\nconst TransferListBody = (props, ref) => {\n const {\n prefixCls,\n classNames,\n styles,\n filteredRenderItems,\n selectedKeys,\n disabled: globalDisabled,\n showRemove,\n pagination,\n onScroll,\n onItemSelect,\n onItemRemove\n } = props;\n const [current, setCurrent] = React.useState(1);\n const mergedPagination = React.useMemo(() => {\n if (!pagination) {\n return null;\n }\n const convertPagination = typeof pagination === 'object' ? pagination : {};\n return parsePagination(convertPagination);\n }, [pagination]);\n const [pageSize, setPageSize] = useControlledState(10, mergedPagination?.pageSize);\n React.useEffect(() => {\n if (mergedPagination) {\n const maxPageCount = Math.ceil(filteredRenderItems.length / pageSize);\n setCurrent(Math.min(current, maxPageCount));\n }\n }, [filteredRenderItems, mergedPagination, pageSize]);\n const onInternalClick = (item, e) => {\n onItemSelect(item.key, !selectedKeys.includes(item.key), e);\n };\n const onRemove = item => {\n onItemRemove?.([item.key]);\n };\n const onPageChange = cur => {\n setCurrent(cur);\n };\n const onSizeChange = (cur, size) => {\n setCurrent(cur);\n setPageSize(size);\n };\n const memoizedItems = React.useMemo(() => {\n const displayItems = mergedPagination ? filteredRenderItems.slice((current - 1) * pageSize, current * pageSize) : filteredRenderItems;\n return displayItems;\n }, [current, filteredRenderItems, mergedPagination, pageSize]);\n React.useImperativeHandle(ref, () => ({\n items: memoizedItems\n }));\n const paginationNode = mergedPagination ? (/*#__PURE__*/React.createElement(Pagination, {\n size: \"small\",\n disabled: globalDisabled,\n simple: mergedPagination.simple,\n pageSize: pageSize,\n showLessItems: mergedPagination.showLessItems,\n showSizeChanger: mergedPagination.showSizeChanger,\n className: `${prefixCls}-pagination`,\n total: filteredRenderItems.length,\n current: current,\n onChange: onPageChange,\n onShowSizeChange: onSizeChange\n })) : null;\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"ul\", {\n className: clsx(`${prefixCls}-content`, classNames.list, {\n [`${prefixCls}-content-show-remove`]: showRemove\n }),\n style: styles.list,\n onScroll: onScroll\n }, (memoizedItems || []).map(({\n renderedEl,\n renderedText,\n item\n }) => (/*#__PURE__*/React.createElement(ListItem, {\n key: item.key,\n prefixCls: prefixCls,\n classNames: classNames,\n styles: styles,\n item: item,\n renderedText: renderedText,\n renderedEl: renderedEl,\n showRemove: showRemove,\n onClick: onInternalClick,\n onRemove: onRemove,\n checked: selectedKeys.includes(item.key),\n disabled: globalDisabled\n })))), paginationNode);\n};\nif (process.env.NODE_ENV !== 'production') {\n TransferListBody.displayName = 'TransferListBody';\n}\nexport default /*#__PURE__*/React.forwardRef(TransferListBody);"],"names":["OmitProps","parsePagination","pagination","TransferListBody","props","ref","prefixCls","classNames","styles","filteredRenderItems","selectedKeys","globalDisabled","showRemove","onScroll","onItemSelect","onItemRemove","current","setCurrent","React","mergedPagination","pageSize","setPageSize","useControlledState","maxPageCount","onInternalClick","item","e","onRemove","onPageChange","cur","onSizeChange","size","memoizedItems","paginationNode","Pagination","clsx","renderedEl","renderedText","ListItem","process","DefaultListBody"],"mappings":";;;;;;AAOY,MAACA,IAAY,CAAC,gBAAgB,eAAe,aAAa,GAChEC,IAAkB,CAAAC,OAMf;AAAA,EACL,GANwB;AAAA,IACxB,QAAQ;AAAA,IACR,iBAAiB;AAAA,IACjB,eAAe;AAAA,EACnB;AAAA,EAGI,GAAGA;AACP,IAEMC,IAAmB,CAACC,GAAOC,MAAQ;AACvC,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,qBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,UAAUC;AAAA,IACV,YAAAC;AAAA,IACA,YAAAV;AAAA,IACA,UAAAW;AAAA,IACA,cAAAC;AAAA,IACA,cAAAC;AAAA,EACJ,IAAMX,GACE,CAACY,GAASC,CAAU,IAAIC,EAAM,SAAS,CAAC,GACxCC,IAAmBD,EAAM,QAAQ,MAChChB,IAIED,EADmB,OAAOC,KAAe,WAAWA,IAAa,CAAA,CAChC,IAH/B,MAIR,CAACA,CAAU,CAAC,GACT,CAACkB,GAAUC,CAAW,IAAIC,EAAmB,IAAIH,GAAkB,QAAQ;AACjF,EAAAD,EAAM,UAAU,MAAM;AACpB,QAAIC,GAAkB;AACpB,YAAMI,IAAe,KAAK,KAAKd,EAAoB,SAASW,CAAQ;AACpE,MAAAH,EAAW,KAAK,IAAID,GAASO,CAAY,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O;AAAA,IACd,UAAUK;AAAA,EACd,IAAMmB,KAAiB,IAAI,IAAI,CAAC;AAAA,IAC5B,YAAAI;AAAA,IACA,cAAAC;AAAA,IACA,MAAAZ;AAAA,EACJ,MAAsB,gBAAAP,EAAM,cAAcoB,GAAU;AAAA,IAChD,KAAKb,EAAK;AAAA,IACV,WAAWnB;AAAA,IACX,YAAYC;AAAA,IACZ,QAAQC;AAAA,IACR,MAAMiB;AAAA,IACN,cAAcY;AAAA,IACd,YAAYD;AAAA,IACZ,YAAYxB;AAAA,IACZ,SAASY;AAAA,IACT,UAAUG;AAAA,IACV,SAASjB,EAAa,SAASe,EAAK,GAAG;AAAA,IACvC,UAAUd;AAAA,EACd,CAAG,CAAE,CAAC,GAAGsB,CAAc;AACvB;AACIM,EAAQ,IAAI,aAAa,iBAC3BpC,EAAiB,cAAc;AAEjC,MAAAqC,IAA4B,gBAAAtB,EAAM,WAAWf,CAAgB;","x_google_ignoreList":[0]}
|
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as e from "react";
|
|
2
|
+
import $ from "../../../@ant-design/icons/es/icons/DeleteOutlined.js";
|
|
3
3
|
import { clsx as i } from "../../../clsx/dist/clsx.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
4
|
+
import h from "../checkbox/index.js";
|
|
5
|
+
import N from "../locale/en_US.js";
|
|
6
|
+
import I from "../locale/useLocale.js";
|
|
7
|
+
const v = (f) => {
|
|
8
8
|
const {
|
|
9
|
-
prefixCls:
|
|
10
|
-
classNames:
|
|
11
|
-
styles:
|
|
9
|
+
prefixCls: t,
|
|
10
|
+
classNames: n,
|
|
11
|
+
styles: s,
|
|
12
12
|
renderedText: c,
|
|
13
|
-
renderedEl:
|
|
14
|
-
item:
|
|
15
|
-
checked:
|
|
16
|
-
disabled:
|
|
17
|
-
onClick:
|
|
18
|
-
onRemove:
|
|
19
|
-
showRemove:
|
|
20
|
-
} =
|
|
21
|
-
[`${
|
|
22
|
-
[`${
|
|
13
|
+
renderedEl: b,
|
|
14
|
+
item: l,
|
|
15
|
+
checked: r,
|
|
16
|
+
disabled: p,
|
|
17
|
+
onClick: u,
|
|
18
|
+
onRemove: k,
|
|
19
|
+
showRemove: x
|
|
20
|
+
} = f, o = p || l?.disabled, y = i(`${t}-content-item`, n.item, {
|
|
21
|
+
[`${t}-content-item-disabled`]: o,
|
|
22
|
+
[`${t}-content-item-checked`]: r && !o
|
|
23
23
|
});
|
|
24
|
-
let
|
|
25
|
-
(typeof c == "string" || typeof c == "number") && (
|
|
26
|
-
const [
|
|
27
|
-
className:
|
|
28
|
-
style:
|
|
29
|
-
title:
|
|
30
|
-
}, d = /* @__PURE__ */
|
|
31
|
-
className: i(`${
|
|
32
|
-
style:
|
|
33
|
-
},
|
|
34
|
-
return
|
|
24
|
+
let a;
|
|
25
|
+
(typeof c == "string" || typeof c == "number") && (a = String(c));
|
|
26
|
+
const [C] = I("Transfer", N.Transfer), m = {
|
|
27
|
+
className: y,
|
|
28
|
+
style: s.item,
|
|
29
|
+
title: a
|
|
30
|
+
}, d = /* @__PURE__ */ e.createElement("span", {
|
|
31
|
+
className: i(`${t}-content-item-text`, n.itemContent),
|
|
32
|
+
style: s.itemContent
|
|
33
|
+
}, b);
|
|
34
|
+
return x ? /* @__PURE__ */ e.createElement("li", {
|
|
35
35
|
...m
|
|
36
|
-
}, d, /* @__PURE__ */
|
|
36
|
+
}, d, /* @__PURE__ */ e.createElement("button", {
|
|
37
37
|
type: "button",
|
|
38
|
-
disabled:
|
|
39
|
-
className: `${
|
|
40
|
-
"aria-label":
|
|
41
|
-
onClick: () =>
|
|
42
|
-
}, /* @__PURE__ */
|
|
38
|
+
disabled: o,
|
|
39
|
+
className: `${t}-content-item-remove`,
|
|
40
|
+
"aria-label": C?.remove,
|
|
41
|
+
onClick: () => k?.(l)
|
|
42
|
+
}, /* @__PURE__ */ e.createElement($, null))) : (m.onClick = o ? void 0 : (E) => u(l, E), /* @__PURE__ */ e.createElement("li", {
|
|
43
43
|
...m
|
|
44
|
-
}, /* @__PURE__ */
|
|
45
|
-
className: i(`${
|
|
46
|
-
style:
|
|
47
|
-
checked:
|
|
48
|
-
disabled:
|
|
44
|
+
}, /* @__PURE__ */ e.createElement(h, {
|
|
45
|
+
className: i(`${t}-checkbox`, n.itemIcon),
|
|
46
|
+
style: s.itemIcon,
|
|
47
|
+
checked: r,
|
|
48
|
+
disabled: o
|
|
49
49
|
}), d));
|
|
50
|
-
},
|
|
50
|
+
}, D = /* @__PURE__ */ e.memo(v);
|
|
51
51
|
export {
|
|
52
|
-
|
|
52
|
+
D as default
|
|
53
53
|
};
|
|
54
54
|
//# sourceMappingURL=ListItem.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListItem.js","sources":["../../../../../node_modules/antd/es/transfer/ListItem.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport DeleteOutlined from \"@ant-design/icons/es/icons/DeleteOutlined\";\nimport { clsx } from 'clsx';\nimport Checkbox from '../checkbox';\nimport { useLocale } from '../locale';\nimport defaultLocale from '../locale/en_US';\nconst ListItem = props => {\n const {\n prefixCls,\n classNames,\n styles,\n renderedText,\n renderedEl,\n item,\n checked,\n disabled,\n onClick,\n onRemove,\n showRemove\n } = props;\n const classes = clsx(`${prefixCls}-content-item`, classNames.item, {\n [`${prefixCls}-content-item-disabled`]:
|
|
1
|
+
{"version":3,"file":"ListItem.js","sources":["../../../../../node_modules/antd/es/transfer/ListItem.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport DeleteOutlined from \"@ant-design/icons/es/icons/DeleteOutlined\";\nimport { clsx } from 'clsx';\nimport Checkbox from '../checkbox';\nimport { useLocale } from '../locale';\nimport defaultLocale from '../locale/en_US';\nconst ListItem = props => {\n const {\n prefixCls,\n classNames,\n styles,\n renderedText,\n renderedEl,\n item,\n checked,\n disabled,\n onClick,\n onRemove,\n showRemove\n } = props;\n const mergedDisabled = disabled || item?.disabled;\n const classes = clsx(`${prefixCls}-content-item`, classNames.item, {\n [`${prefixCls}-content-item-disabled`]: mergedDisabled,\n [`${prefixCls}-content-item-checked`]: checked && !mergedDisabled\n });\n let title;\n if (typeof renderedText === 'string' || typeof renderedText === 'number') {\n title = String(renderedText);\n }\n const [contextLocale] = useLocale('Transfer', defaultLocale.Transfer);\n const liProps = {\n className: classes,\n style: styles.item,\n title\n };\n const labelNode = /*#__PURE__*/React.createElement(\"span\", {\n className: clsx(`${prefixCls}-content-item-text`, classNames.itemContent),\n style: styles.itemContent\n }, renderedEl);\n if (showRemove) {\n return /*#__PURE__*/React.createElement(\"li\", {\n ...liProps\n }, labelNode, /*#__PURE__*/React.createElement(\"button\", {\n type: \"button\",\n disabled: mergedDisabled,\n className: `${prefixCls}-content-item-remove`,\n \"aria-label\": contextLocale?.remove,\n onClick: () => onRemove?.(item)\n }, /*#__PURE__*/React.createElement(DeleteOutlined, null)));\n }\n // Default click to select\n liProps.onClick = mergedDisabled ? undefined : event => onClick(item, event);\n return /*#__PURE__*/React.createElement(\"li\", {\n ...liProps\n }, /*#__PURE__*/React.createElement(Checkbox, {\n className: clsx(`${prefixCls}-checkbox`, classNames.itemIcon),\n style: styles.itemIcon,\n checked: checked,\n disabled: mergedDisabled\n }), labelNode);\n};\nexport default /*#__PURE__*/React.memo(ListItem);"],"names":["ListItem","props","prefixCls","classNames","styles","renderedText","renderedEl","item","checked","disabled","onClick","onRemove","showRemove","mergedDisabled","classes","clsx","title","contextLocale","useLocale","defaultLocale","liProps","labelNode","React","DeleteOutlined","event","Checkbox","ListItem$1"],"mappings":";;;;;;AAQA,MAAMA,IAAW,CAAAC,MAAS;AACxB,QAAM;AAAA,IACJ,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,MAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IAC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