ods-component-lib 1.22.2 → 1.22.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/_virtual/index5.js +2 -3
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +3 -2
- package/dist/_virtual/index6.js.map +1 -1
- package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
- package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
- 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/util/index.js +29 -27
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.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/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/form/es/hooks/useForm.js +115 -100
- package/dist/node_modules/@rc-component/form/es/hooks/useForm.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/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/portal/es/useEscKeyDown.js +42 -22
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
- 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/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/index.js +85 -80
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +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/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 +27 -27
- 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/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/ref.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/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/variant.js +132 -132
- 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 +15 -7
- 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/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/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/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/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/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/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 +98 -132
- 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/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 +104 -98
- package/dist/node_modules/antd/es/select/style/select-input.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/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 +50 -50
- 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/tree/DirectoryTree.js +42 -41
- package/dist/node_modules/antd/es/tree/DirectoryTree.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/canvg/lib/index.es.js +84 -84
- package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
- package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
- package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/fflate/esm/browser.js +295 -335
- package/dist/node_modules/fflate/esm/browser.js.map +1 -1
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
- package/dist/node_modules/raf/index.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterDropdown.js","sources":["../../../../../../../node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport FilterFilled from \"@ant-design/icons/es/icons/FilterFilled\";\nimport isEqual from \"@rc-component/util/es/isEqual\";\nimport { clsx } from 'clsx';\nimport extendsObject from '../../../_util/extendsObject';\nimport { useSyncState } from '../../../_util/hooks';\nimport { devUseWarning } from '../../../_util/warning';\nimport Button from '../../../button/Button';\nimport Checkbox from '../../../checkbox';\nimport { ConfigContext } from '../../../config-provider/context';\nimport Dropdown from '../../../dropdown';\nimport Empty from '../../../empty';\nimport Menu from '../../../menu';\nimport { OverrideProvider } from '../../../menu/OverrideContext';\nimport Radio from '../../../radio';\nimport Tree from '../../../tree';\nimport FilterSearch from './FilterSearch';\nimport FilterDropdownMenuWrapper from './FilterWrapper';\nexport function flattenKeys(filters) {\n let keys = [];\n (filters || []).forEach(({\n value,\n children\n }) => {\n keys.push(value);\n if (children) {\n keys = [].concat(_toConsumableArray(keys), _toConsumableArray(flattenKeys(children)));\n }\n });\n return keys;\n}\nfunction hasSubMenu(filters) {\n return filters.some(({\n children\n }) => children);\n}\nfunction searchValueMatched(searchValue, text) {\n if (typeof text === 'string' || typeof text === 'number') {\n return text?.toString().toLowerCase().includes(searchValue.trim().toLowerCase());\n }\n return false;\n}\nfunction renderFilterItems({\n filters,\n prefixCls,\n filteredKeys,\n filterMultiple,\n searchValue,\n filterSearch\n}) {\n return filters.map((filter, index) => {\n const key = String(filter.value);\n if (filter.children) {\n return {\n key: key || index,\n label: filter.text,\n popupClassName: `${prefixCls}-dropdown-submenu`,\n children: renderFilterItems({\n filters: filter.children,\n prefixCls,\n filteredKeys,\n filterMultiple,\n searchValue,\n filterSearch\n })\n };\n }\n const Component = filterMultiple ? Checkbox : Radio;\n const item = {\n key: filter.value !== undefined ? key : index,\n label: (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Component, {\n checked: filteredKeys.includes(key)\n }), /*#__PURE__*/React.createElement(\"span\", null, filter.text)))\n };\n if (searchValue.trim()) {\n if (typeof filterSearch === 'function') {\n return filterSearch(searchValue, filter) ? item : null;\n }\n return searchValueMatched(searchValue, filter.text) ? item : null;\n }\n return item;\n });\n}\nfunction wrapStringListType(keys) {\n return keys || [];\n}\nconst FilterDropdown = props => {\n const {\n tablePrefixCls,\n prefixCls,\n column,\n dropdownPrefixCls,\n columnKey,\n filterOnClose,\n filterMultiple,\n filterMode = 'menu',\n filterSearch = false,\n filterState,\n triggerFilter,\n locale,\n children,\n getPopupContainer,\n rootClassName\n } = props;\n const {\n filterResetToDefaultFilteredValue,\n defaultFilteredValue,\n filterDropdownProps = {},\n // Deprecated\n filterDropdownOpen,\n onFilterDropdownOpenChange\n } = column;\n const [visible, setVisible] = React.useState(false);\n const filtered = !!(filterState && (filterState.filteredKeys?.length || filterState.forceFiltered));\n const triggerVisible = newVisible => {\n setVisible(newVisible);\n filterDropdownProps.onOpenChange?.(newVisible);\n // deprecated\n onFilterDropdownOpenChange?.(newVisible);\n };\n // =================Warning===================\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Table');\n const deprecatedList = [['filterDropdownOpen', 'filterDropdownProps.open'], ['onFilterDropdownOpenChange', 'filterDropdownProps.onOpenChange']];\n deprecatedList.forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in column), deprecatedName, newName);\n });\n warning.deprecated(!('filterCheckall' in locale), 'filterCheckall', 'locale.filterCheckAll');\n }\n const mergedVisible = filterDropdownProps.open ?? filterDropdownOpen ??\n // deprecated\n visible; // inner state\n // ===================== Select Keys =====================\n const propFilteredKeys = filterState?.filteredKeys;\n const [getFilteredKeysSync, setFilteredKeysSync] = useSyncState(wrapStringListType(propFilteredKeys));\n const onSelectKeys = ({\n selectedKeys\n }) => {\n setFilteredKeysSync(selectedKeys);\n };\n const onCheck = (keys, {\n node,\n checked\n }) => {\n if (!filterMultiple) {\n onSelectKeys({\n selectedKeys: checked && node.key ? [node.key] : []\n });\n } else {\n onSelectKeys({\n selectedKeys: keys\n });\n }\n };\n React.useEffect(() => {\n if (!visible) {\n return;\n }\n onSelectKeys({\n selectedKeys: wrapStringListType(propFilteredKeys)\n });\n }, [propFilteredKeys]);\n // ====================== Open Keys ======================\n const [openKeys, setOpenKeys] = React.useState([]);\n const onOpenChange = keys => {\n setOpenKeys(keys);\n };\n // search in tree mode column filter\n const [searchValue, setSearchValue] = React.useState('');\n const onSearch = e => {\n const {\n value\n } = e.target;\n setSearchValue(value);\n };\n // clear search value after close filter dropdown\n React.useEffect(() => {\n if (!visible) {\n setSearchValue('');\n }\n }, [visible]);\n // ======================= Submit ========================\n const internalTriggerFilter = keys => {\n const mergedKeys = keys?.length ? keys : null;\n if (mergedKeys === null && (!filterState || !filterState.filteredKeys)) {\n return null;\n }\n if (isEqual(mergedKeys, filterState?.filteredKeys, true)) {\n return null;\n }\n triggerFilter({\n column,\n key: columnKey,\n filteredKeys: mergedKeys\n });\n };\n const onConfirm = () => {\n triggerVisible(false);\n internalTriggerFilter(getFilteredKeysSync());\n };\n const onReset = ({\n confirm,\n closeDropdown\n } = {\n confirm: false,\n closeDropdown: false\n }) => {\n if (confirm) {\n internalTriggerFilter([]);\n }\n if (closeDropdown) {\n triggerVisible(false);\n }\n setSearchValue('');\n if (filterResetToDefaultFilteredValue) {\n setFilteredKeysSync((defaultFilteredValue || []).map(key => String(key)));\n } else {\n setFilteredKeysSync([]);\n }\n };\n const doFilter = ({\n closeDropdown\n } = {\n closeDropdown: true\n }) => {\n if (closeDropdown) {\n triggerVisible(false);\n }\n internalTriggerFilter(getFilteredKeysSync());\n };\n const onVisibleChange = (newVisible, info) => {\n if (info.source === 'trigger') {\n if (newVisible && propFilteredKeys !== undefined) {\n // Sync filteredKeys on appear in controlled mode (propFilteredKeys !== undefined)\n setFilteredKeysSync(wrapStringListType(propFilteredKeys));\n }\n triggerVisible(newVisible);\n if (!newVisible && !column.filterDropdown && filterOnClose) {\n onConfirm();\n }\n }\n };\n // ======================== Style ========================\n const dropdownMenuClass = clsx({\n [`${dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(column.filters || [])\n });\n const onCheckAll = e => {\n if (e.target.checked) {\n const allFilterKeys = flattenKeys(column?.filters).map(key => String(key));\n setFilteredKeysSync(allFilterKeys);\n } else {\n setFilteredKeysSync([]);\n }\n };\n const getTreeData = ({\n filters\n }) => (filters || []).map((filter, index) => {\n const key = String(filter.value);\n const item = {\n title: filter.text,\n key: filter.value !== undefined ? key : String(index)\n };\n if (filter.children) {\n item.children = getTreeData({\n filters: filter.children\n });\n }\n return item;\n });\n const getFilterData = node => ({\n ...node,\n text: node.title,\n value: node.key,\n children: node.children?.map(item => getFilterData(item)) || []\n });\n let dropdownContent;\n const {\n direction,\n renderEmpty\n } = React.useContext(ConfigContext);\n if (typeof column.filterDropdown === 'function') {\n dropdownContent = column.filterDropdown({\n prefixCls: `${dropdownPrefixCls}-custom`,\n setSelectedKeys: selectedKeys => onSelectKeys({\n selectedKeys: selectedKeys\n }),\n selectedKeys: getFilteredKeysSync(),\n confirm: doFilter,\n clearFilters: onReset,\n filters: column.filters,\n visible: mergedVisible,\n close: () => {\n triggerVisible(false);\n }\n });\n } else if (column.filterDropdown) {\n dropdownContent = column.filterDropdown;\n } else {\n const selectedKeys = getFilteredKeysSync() || [];\n const getFilterComponent = () => {\n const empty = renderEmpty?.('Table.filter') ?? (/*#__PURE__*/React.createElement(Empty, {\n image: Empty.PRESENTED_IMAGE_SIMPLE,\n description: locale.filterEmptyText,\n styles: {\n image: {\n height: 24\n }\n },\n style: {\n margin: 0,\n padding: '16px 0'\n }\n }));\n if ((column.filters || []).length === 0) {\n return empty;\n }\n if (filterMode === 'tree') {\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FilterSearch, {\n filterSearch: filterSearch,\n value: searchValue,\n onChange: onSearch,\n tablePrefixCls: tablePrefixCls,\n locale: locale\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: `${tablePrefixCls}-filter-dropdown-tree`\n }, filterMultiple ? (/*#__PURE__*/React.createElement(Checkbox, {\n checked: selectedKeys.length === flattenKeys(column.filters).length,\n indeterminate: selectedKeys.length > 0 && selectedKeys.length < flattenKeys(column.filters).length,\n className: `${tablePrefixCls}-filter-dropdown-checkall`,\n onChange: onCheckAll\n }, locale?.filterCheckall ?? locale?.filterCheckAll)) : null, /*#__PURE__*/React.createElement(Tree, {\n checkable: true,\n selectable: false,\n blockNode: true,\n multiple: filterMultiple,\n checkStrictly: !filterMultiple,\n className: `${dropdownPrefixCls}-menu`,\n onCheck: onCheck,\n checkedKeys: selectedKeys,\n selectedKeys: selectedKeys,\n showIcon: false,\n treeData: getTreeData({\n filters: column.filters\n }),\n autoExpandParent: true,\n defaultExpandAll: true,\n filterTreeNode: searchValue.trim() ? node => {\n if (typeof filterSearch === 'function') {\n return filterSearch(searchValue, getFilterData(node));\n }\n return searchValueMatched(searchValue, node.title);\n } : undefined\n })));\n }\n const items = renderFilterItems({\n filters: column.filters || [],\n filterSearch,\n prefixCls,\n filteredKeys: getFilteredKeysSync(),\n filterMultiple,\n searchValue\n });\n const isEmpty = items.every(item => item === null);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FilterSearch, {\n filterSearch: filterSearch,\n value: searchValue,\n onChange: onSearch,\n tablePrefixCls: tablePrefixCls,\n locale: locale\n }), isEmpty ? empty : (/*#__PURE__*/React.createElement(Menu, {\n selectable: true,\n multiple: filterMultiple,\n prefixCls: `${dropdownPrefixCls}-menu`,\n className: dropdownMenuClass,\n onSelect: onSelectKeys,\n onDeselect: onSelectKeys,\n selectedKeys: selectedKeys,\n getPopupContainer: getPopupContainer,\n openKeys: openKeys,\n onOpenChange: onOpenChange,\n items: items\n })));\n };\n const getResetDisabled = () => {\n if (filterResetToDefaultFilteredValue) {\n return isEqual((defaultFilteredValue || []).map(key => String(key)), selectedKeys, true);\n }\n return selectedKeys.length === 0;\n };\n dropdownContent = /*#__PURE__*/React.createElement(React.Fragment, null, getFilterComponent(), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-dropdown-btns`\n }, /*#__PURE__*/React.createElement(Button, {\n type: \"link\",\n size: \"small\",\n disabled: getResetDisabled(),\n onClick: () => onReset()\n }, locale.filterReset), /*#__PURE__*/React.createElement(Button, {\n type: \"primary\",\n size: \"small\",\n onClick: onConfirm\n }, locale.filterConfirm)));\n }\n // We should not block customize Menu with additional props\n if (column.filterDropdown) {\n dropdownContent = /*#__PURE__*/React.createElement(OverrideProvider, {\n selectable: undefined\n }, dropdownContent);\n }\n dropdownContent = /*#__PURE__*/React.createElement(FilterDropdownMenuWrapper, {\n className: `${prefixCls}-dropdown`\n }, dropdownContent);\n const getDropdownTrigger = () => {\n let filterIcon;\n if (typeof column.filterIcon === 'function') {\n filterIcon = column.filterIcon(filtered);\n } else if (column.filterIcon) {\n filterIcon = column.filterIcon;\n } else {\n filterIcon = /*#__PURE__*/React.createElement(FilterFilled, null);\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n role: \"button\",\n tabIndex: -1,\n className: clsx(`${prefixCls}-trigger`, {\n active: filtered\n }),\n onClick: e => {\n e.stopPropagation();\n }\n }, filterIcon);\n };\n const mergedDropdownProps = extendsObject({\n trigger: ['click'],\n placement: direction === 'rtl' ? 'bottomLeft' : 'bottomRight',\n children: getDropdownTrigger(),\n getPopupContainer\n }, {\n ...filterDropdownProps,\n rootClassName: clsx(rootClassName, filterDropdownProps.rootClassName),\n open: mergedVisible,\n onOpenChange: onVisibleChange,\n popupRender: () => {\n if (typeof filterDropdownProps?.dropdownRender === 'function') {\n return filterDropdownProps.dropdownRender(dropdownContent);\n }\n return dropdownContent;\n }\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-column`\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: `${tablePrefixCls}-column-title`\n }, children), /*#__PURE__*/React.createElement(Dropdown, {\n ...mergedDropdownProps\n }));\n};\nexport default FilterDropdown;"],"names":["flattenKeys","filters","keys","value","children","_toConsumableArray","hasSubMenu","searchValueMatched","searchValue","text","renderFilterItems","prefixCls","filteredKeys","filterMultiple","filterSearch","filter","index","key","Component","Checkbox","Radio","item","React","wrapStringListType","FilterDropdown","props","tablePrefixCls","column","dropdownPrefixCls","columnKey","filterOnClose","filterMode","filterState","triggerFilter","locale","getPopupContainer","rootClassName","filterResetToDefaultFilteredValue","defaultFilteredValue","filterDropdownProps","filterDropdownOpen","onFilterDropdownOpenChange","visible","setVisible","filtered","triggerVisible","newVisible","process","warning","devUseWarning","deprecatedName","newName","mergedVisible","propFilteredKeys","getFilteredKeysSync","setFilteredKeysSync","useSyncState","onSelectKeys","selectedKeys","onCheck","node","checked","openKeys","setOpenKeys","onOpenChange","setSearchValue","onSearch","internalTriggerFilter","mergedKeys","isEqual","onConfirm","onReset","confirm","closeDropdown","doFilter","onVisibleChange","info","dropdownMenuClass","clsx","onCheckAll","allFilterKeys","getTreeData","getFilterData","dropdownContent","direction","renderEmpty","ConfigContext","getFilterComponent","empty","Empty","FilterSearch","Tree","items","isEmpty","Menu","getResetDisabled","Button","OverrideProvider","FilterDropdownMenuWrapper","mergedDropdownProps","extendsObject","filterIcon","FilterFilled","e","Dropdown"],"mappings":";;;;;;;;;;;;;;;;;;;;AAqBO,SAASA,EAAYC,GAAS;AACnC,MAAIC,IAAO,CAAA;AACX,UAACD,KAAW,IAAI,QAAQ,CAAC;AAAA,IACvB,OAAAE;AAAA,IACA,UAAAC;AAAA,EACJ,MAAQ;AACJ,IAAAF,EAAK,KAAKC,CAAK,GACXC,MACFF,IAAO,CAAA,EAAG,OAAOG,EAAmBH,CAAI,GAAGG,EAAmBL,EAAYI,CAAQ,CAAC,CAAC;AAAA,EAExF,CAAC,GACMF;AACT;AACA,SAASI,GAAWL,GAAS;AAC3B,SAAOA,EAAQ,KAAK,CAAC;AAAA,IACnB,UAAAG;AAAA,EACJ,MAAQA,CAAQ;AAChB;AACA,SAASG,EAAmBC,GAAaC,GAAM;AAC7C,SAAI,OAAOA,KAAS,YAAY,OAAOA,KAAS,WACvCA,GAAM,SAAQ,EAAG,YAAW,EAAG,SAASD,EAAY,OAAO,aAAa,IAE1E;AACT;AACA,SAASE,EAAkB;AAAA,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J;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"FilterDropdown.js","sources":["../../../../../../../node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport FilterFilled from \"@ant-design/icons/es/icons/FilterFilled\";\nimport isEqual from \"@rc-component/util/es/isEqual\";\nimport { clsx } from 'clsx';\nimport extendsObject from '../../../_util/extendsObject';\nimport { useSyncState } from '../../../_util/hooks';\nimport { devUseWarning } from '../../../_util/warning';\nimport Button from '../../../button/Button';\nimport Checkbox from '../../../checkbox';\nimport { ConfigContext } from '../../../config-provider/context';\nimport Dropdown from '../../../dropdown';\nimport Empty from '../../../empty';\nimport Menu from '../../../menu';\nimport { OverrideProvider } from '../../../menu/OverrideContext';\nimport Radio from '../../../radio';\nimport Tree from '../../../tree';\nimport TableMeasureRowContext from '../../TableMeasureRowContext';\nimport FilterSearch from './FilterSearch';\nimport FilterDropdownMenuWrapper from './FilterWrapper';\nexport function flattenKeys(filters) {\n let keys = [];\n (filters || []).forEach(({\n value,\n children\n }) => {\n keys.push(value);\n if (children) {\n keys = [].concat(_toConsumableArray(keys), _toConsumableArray(flattenKeys(children)));\n }\n });\n return keys;\n}\nfunction hasSubMenu(filters) {\n return filters.some(({\n children\n }) => children);\n}\nfunction searchValueMatched(searchValue, text) {\n if (typeof text === 'string' || typeof text === 'number') {\n return text?.toString().toLowerCase().includes(searchValue.trim().toLowerCase());\n }\n return false;\n}\nfunction renderFilterItems({\n filters,\n prefixCls,\n filteredKeys,\n filterMultiple,\n searchValue,\n filterSearch\n}) {\n return filters.map((filter, index) => {\n const key = String(filter.value);\n if (filter.children) {\n return {\n key: key || index,\n label: filter.text,\n popupClassName: `${prefixCls}-dropdown-submenu`,\n children: renderFilterItems({\n filters: filter.children,\n prefixCls,\n filteredKeys,\n filterMultiple,\n searchValue,\n filterSearch\n })\n };\n }\n const Component = filterMultiple ? Checkbox : Radio;\n const item = {\n key: filter.value !== undefined ? key : index,\n label: (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Component, {\n checked: filteredKeys.includes(key)\n }), /*#__PURE__*/React.createElement(\"span\", null, filter.text)))\n };\n if (searchValue.trim()) {\n if (typeof filterSearch === 'function') {\n return filterSearch(searchValue, filter) ? item : null;\n }\n return searchValueMatched(searchValue, filter.text) ? item : null;\n }\n return item;\n });\n}\nfunction wrapStringListType(keys) {\n return keys || [];\n}\nconst FilterDropdown = props => {\n const {\n tablePrefixCls,\n prefixCls,\n column,\n dropdownPrefixCls,\n columnKey,\n filterOnClose,\n filterMultiple,\n filterMode = 'menu',\n filterSearch = false,\n filterState,\n triggerFilter,\n locale,\n children,\n getPopupContainer,\n rootClassName\n } = props;\n const {\n filterResetToDefaultFilteredValue,\n defaultFilteredValue,\n filterDropdownProps = {},\n // Deprecated\n filterDropdownOpen,\n onFilterDropdownOpenChange\n } = column;\n const [visible, setVisible] = React.useState(false);\n const inMeasureRow = React.useContext(TableMeasureRowContext);\n const filtered = !!(filterState && (filterState.filteredKeys?.length || filterState.forceFiltered));\n const triggerVisible = newVisible => {\n setVisible(newVisible);\n filterDropdownProps.onOpenChange?.(newVisible);\n // deprecated\n onFilterDropdownOpenChange?.(newVisible);\n };\n // =================Warning===================\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Table');\n const deprecatedList = [['filterDropdownOpen', 'filterDropdownProps.open'], ['onFilterDropdownOpenChange', 'filterDropdownProps.onOpenChange']];\n deprecatedList.forEach(([deprecatedName, newName]) => {\n warning.deprecated(!(deprecatedName in column), deprecatedName, newName);\n });\n warning.deprecated(!('filterCheckall' in locale), 'filterCheckall', 'locale.filterCheckAll');\n }\n const mergedVisible = filterDropdownProps.open ?? filterDropdownOpen ??\n // deprecated\n visible; // inner state\n // ===================== Select Keys =====================\n const propFilteredKeys = filterState?.filteredKeys;\n const [getFilteredKeysSync, setFilteredKeysSync] = useSyncState(wrapStringListType(propFilteredKeys));\n const onSelectKeys = ({\n selectedKeys\n }) => {\n setFilteredKeysSync(selectedKeys);\n };\n const onCheck = (keys, {\n node,\n checked\n }) => {\n if (!filterMultiple) {\n onSelectKeys({\n selectedKeys: checked && node.key ? [node.key] : []\n });\n } else {\n onSelectKeys({\n selectedKeys: keys\n });\n }\n };\n React.useEffect(() => {\n if (!visible) {\n return;\n }\n onSelectKeys({\n selectedKeys: wrapStringListType(propFilteredKeys)\n });\n }, [propFilteredKeys]);\n // ====================== Open Keys ======================\n const [openKeys, setOpenKeys] = React.useState([]);\n const onOpenChange = keys => {\n setOpenKeys(keys);\n };\n // search in tree mode column filter\n const [searchValue, setSearchValue] = React.useState('');\n const onSearch = e => {\n const {\n value\n } = e.target;\n setSearchValue(value);\n };\n // clear search value after close filter dropdown\n React.useEffect(() => {\n if (!visible) {\n setSearchValue('');\n }\n }, [visible]);\n // ======================= Submit ========================\n const internalTriggerFilter = keys => {\n const mergedKeys = keys?.length ? keys : null;\n if (mergedKeys === null && (!filterState || !filterState.filteredKeys)) {\n return null;\n }\n if (isEqual(mergedKeys, filterState?.filteredKeys, true)) {\n return null;\n }\n triggerFilter({\n column,\n key: columnKey,\n filteredKeys: mergedKeys\n });\n };\n const onConfirm = () => {\n triggerVisible(false);\n internalTriggerFilter(getFilteredKeysSync());\n };\n const onReset = ({\n confirm,\n closeDropdown\n } = {\n confirm: false,\n closeDropdown: false\n }) => {\n if (confirm) {\n internalTriggerFilter([]);\n }\n if (closeDropdown) {\n triggerVisible(false);\n }\n setSearchValue('');\n if (filterResetToDefaultFilteredValue) {\n setFilteredKeysSync((defaultFilteredValue || []).map(key => String(key)));\n } else {\n setFilteredKeysSync([]);\n }\n };\n const doFilter = ({\n closeDropdown\n } = {\n closeDropdown: true\n }) => {\n if (closeDropdown) {\n triggerVisible(false);\n }\n internalTriggerFilter(getFilteredKeysSync());\n };\n const onVisibleChange = (newVisible, info) => {\n if (info.source === 'trigger') {\n if (newVisible && propFilteredKeys !== undefined) {\n // Sync filteredKeys on appear in controlled mode (propFilteredKeys !== undefined)\n setFilteredKeysSync(wrapStringListType(propFilteredKeys));\n }\n triggerVisible(newVisible);\n if (!newVisible && !column.filterDropdown && filterOnClose) {\n onConfirm();\n }\n }\n };\n // ======================== Style ========================\n const dropdownMenuClass = clsx({\n [`${dropdownPrefixCls}-menu-without-submenu`]: !hasSubMenu(column.filters || [])\n });\n const onCheckAll = e => {\n if (e.target.checked) {\n const allFilterKeys = flattenKeys(column?.filters).map(key => String(key));\n setFilteredKeysSync(allFilterKeys);\n } else {\n setFilteredKeysSync([]);\n }\n };\n const getTreeData = ({\n filters\n }) => (filters || []).map((filter, index) => {\n const key = String(filter.value);\n const item = {\n title: filter.text,\n key: filter.value !== undefined ? key : String(index)\n };\n if (filter.children) {\n item.children = getTreeData({\n filters: filter.children\n });\n }\n return item;\n });\n const getFilterData = node => ({\n ...node,\n text: node.title,\n value: node.key,\n children: node.children?.map(item => getFilterData(item)) || []\n });\n let dropdownContent;\n const {\n direction,\n renderEmpty\n } = React.useContext(ConfigContext);\n if (typeof column.filterDropdown === 'function') {\n dropdownContent = column.filterDropdown({\n prefixCls: `${dropdownPrefixCls}-custom`,\n setSelectedKeys: selectedKeys => onSelectKeys({\n selectedKeys: selectedKeys\n }),\n selectedKeys: getFilteredKeysSync(),\n confirm: doFilter,\n clearFilters: onReset,\n filters: column.filters,\n visible: mergedVisible,\n close: () => {\n triggerVisible(false);\n }\n });\n } else if (column.filterDropdown) {\n dropdownContent = column.filterDropdown;\n } else {\n const selectedKeys = getFilteredKeysSync() || [];\n const getFilterComponent = () => {\n const empty = renderEmpty?.('Table.filter') ?? (/*#__PURE__*/React.createElement(Empty, {\n image: Empty.PRESENTED_IMAGE_SIMPLE,\n description: locale.filterEmptyText,\n styles: {\n image: {\n height: 24\n }\n },\n style: {\n margin: 0,\n padding: '16px 0'\n }\n }));\n if ((column.filters || []).length === 0) {\n return empty;\n }\n if (filterMode === 'tree') {\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FilterSearch, {\n filterSearch: filterSearch,\n value: searchValue,\n onChange: onSearch,\n tablePrefixCls: tablePrefixCls,\n locale: locale\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: `${tablePrefixCls}-filter-dropdown-tree`\n }, filterMultiple ? (/*#__PURE__*/React.createElement(Checkbox, {\n checked: selectedKeys.length === flattenKeys(column.filters).length,\n indeterminate: selectedKeys.length > 0 && selectedKeys.length < flattenKeys(column.filters).length,\n className: `${tablePrefixCls}-filter-dropdown-checkall`,\n onChange: onCheckAll\n }, locale?.filterCheckall ?? locale?.filterCheckAll)) : null, /*#__PURE__*/React.createElement(Tree, {\n checkable: true,\n selectable: false,\n blockNode: true,\n multiple: filterMultiple,\n checkStrictly: !filterMultiple,\n className: `${dropdownPrefixCls}-menu`,\n onCheck: onCheck,\n checkedKeys: selectedKeys,\n selectedKeys: selectedKeys,\n showIcon: false,\n treeData: getTreeData({\n filters: column.filters\n }),\n autoExpandParent: true,\n defaultExpandAll: true,\n filterTreeNode: searchValue.trim() ? node => {\n if (typeof filterSearch === 'function') {\n return filterSearch(searchValue, getFilterData(node));\n }\n return searchValueMatched(searchValue, node.title);\n } : undefined\n })));\n }\n const items = renderFilterItems({\n filters: column.filters || [],\n filterSearch,\n prefixCls,\n filteredKeys: getFilteredKeysSync(),\n filterMultiple,\n searchValue\n });\n const isEmpty = items.every(item => item === null);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(FilterSearch, {\n filterSearch: filterSearch,\n value: searchValue,\n onChange: onSearch,\n tablePrefixCls: tablePrefixCls,\n locale: locale\n }), isEmpty ? empty : (/*#__PURE__*/React.createElement(Menu, {\n selectable: true,\n multiple: filterMultiple,\n prefixCls: `${dropdownPrefixCls}-menu`,\n className: dropdownMenuClass,\n onSelect: onSelectKeys,\n onDeselect: onSelectKeys,\n selectedKeys: selectedKeys,\n getPopupContainer: getPopupContainer,\n openKeys: openKeys,\n onOpenChange: onOpenChange,\n items: items\n })));\n };\n const getResetDisabled = () => {\n if (filterResetToDefaultFilteredValue) {\n return isEqual((defaultFilteredValue || []).map(key => String(key)), selectedKeys, true);\n }\n return selectedKeys.length === 0;\n };\n dropdownContent = /*#__PURE__*/React.createElement(React.Fragment, null, getFilterComponent(), /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-dropdown-btns`\n }, /*#__PURE__*/React.createElement(Button, {\n type: \"link\",\n size: \"small\",\n disabled: getResetDisabled(),\n onClick: () => onReset()\n }, locale.filterReset), /*#__PURE__*/React.createElement(Button, {\n type: \"primary\",\n size: \"small\",\n onClick: onConfirm\n }, locale.filterConfirm)));\n }\n // We should not block customize Menu with additional props\n if (column.filterDropdown) {\n dropdownContent = /*#__PURE__*/React.createElement(OverrideProvider, {\n selectable: undefined\n }, dropdownContent);\n }\n dropdownContent = /*#__PURE__*/React.createElement(FilterDropdownMenuWrapper, {\n className: `${prefixCls}-dropdown`\n }, dropdownContent);\n const getDropdownTrigger = () => {\n let filterIcon;\n if (typeof column.filterIcon === 'function') {\n filterIcon = column.filterIcon(filtered);\n } else if (column.filterIcon) {\n filterIcon = column.filterIcon;\n } else {\n filterIcon = /*#__PURE__*/React.createElement(FilterFilled, null);\n }\n return /*#__PURE__*/React.createElement(\"span\", {\n role: \"button\",\n tabIndex: -1,\n className: clsx(`${prefixCls}-trigger`, {\n active: filtered\n }),\n onClick: e => {\n e.stopPropagation();\n }\n }, filterIcon);\n };\n const triggerNode = getDropdownTrigger();\n // MeasureRow:仅渲染静态 trigger,不渲染 Dropdown 实例\n if (inMeasureRow) {\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-column`\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: `${tablePrefixCls}-column-title`\n }, children), triggerNode);\n }\n const mergedDropdownProps = extendsObject({\n trigger: ['click'],\n placement: direction === 'rtl' ? 'bottomLeft' : 'bottomRight',\n children: triggerNode,\n getPopupContainer\n }, {\n ...filterDropdownProps,\n rootClassName: clsx(rootClassName, filterDropdownProps.rootClassName),\n open: mergedVisible,\n onOpenChange: onVisibleChange,\n popupRender: () => {\n if (typeof filterDropdownProps?.dropdownRender === 'function') {\n return filterDropdownProps.dropdownRender(dropdownContent);\n }\n return dropdownContent;\n }\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: `${prefixCls}-column`\n }, /*#__PURE__*/React.createElement(\"span\", {\n className: `${tablePrefixCls}-column-title`\n }, children), /*#__PURE__*/React.createElement(Dropdown, {\n ...mergedDropdownProps\n }));\n};\nexport default FilterDropdown;"],"names":["flattenKeys","filters","keys","value","children","_toConsumableArray","hasSubMenu","searchValueMatched","searchValue","text","renderFilterItems","prefixCls","filteredKeys","filterMultiple","filterSearch","filter","index","key","Component","Checkbox","Radio","item","React","wrapStringListType","FilterDropdown","props","tablePrefixCls","column","dropdownPrefixCls","columnKey","filterOnClose","filterMode","filterState","triggerFilter","locale","getPopupContainer","rootClassName","filterResetToDefaultFilteredValue","defaultFilteredValue","filterDropdownProps","filterDropdownOpen","onFilterDropdownOpenChange","visible","setVisible","inMeasureRow","TableMeasureRowContext","filtered","triggerVisible","newVisible","process","warning","devUseWarning","deprecatedName","newName","mergedVisible","propFilteredKeys","getFilteredKeysSync","setFilteredKeysSync","useSyncState","onSelectKeys","selectedKeys","onCheck","node","checked","openKeys","setOpenKeys","onOpenChange","setSearchValue","onSearch","internalTriggerFilter","mergedKeys","isEqual","onConfirm","onReset","confirm","closeDropdown","doFilter","onVisibleChange","info","dropdownMenuClass","clsx","onCheckAll","allFilterKeys","getTreeData","getFilterData","dropdownContent","direction","renderEmpty","ConfigContext","getFilterComponent","empty","Empty","FilterSearch","Tree","items","isEmpty","Menu","getResetDisabled","Button","OverrideProvider","FilterDropdownMenuWrapper","triggerNode","filterIcon","FilterFilled","e","mergedDropdownProps","extendsObject","Dropdown"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBO,SAASA,EAAYC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C,MAAI1D;AACF,WAAoB,gBAAAtB,EAAM,cAAc,OAAO;AAAA,MAC7C,WAAW,GAAGX,CAAS;AAAA,IAC7B,GAAoB,gBAAAW,EAAM,cAAc,QAAQ;AAAA,MAC1C,WAAW,GAAGI,CAAc;AAAA,IAClC,GAAOtB,CAAQ,GAAGiG,CAAW;AAE3B,QAAMI,KAAsBC,GAAc;AAAA,IACxC,SAAS,CAAC,OAAO;AAAA,IACjB,WAAWpB,OAAc,QAAQ,eAAe;AAAA,IAChD,UAAUe;AAAA,IACV,mBAAAlE;AAAA,EACJ,GAAK;AAAA,IACD,GAAGI;AAAA,IACH,eAAeyC,EAAK5C,IAAeG,EAAoB,aAAa;AAAA,IACpE,MAAMe;AAAA,IACN,cAAcuB;AAAA,IACd,aAAa,MACP,OAAOtC,GAAqB,kBAAmB,aAC1CA,EAAoB,eAAe8C,CAAe,IAEpDA;AAAA,EAEb,CAAG;AACD,SAAoB,gBAAA/D,EAAM,cAAc,OAAO;AAAA,IAC7C,WAAW,GAAGX,CAAS;AAAA,EAC3B,GAAkB,gBAAAW,EAAM,cAAc,QAAQ;AAAA,IAC1C,WAAW,GAAGI,CAAc;AAAA,EAChC,GAAKtB,CAAQ,GAAgB,gBAAAkB,EAAM,cAAcqF,IAAU;AAAA,IACvD,GAAGF;AAAA,EACP,CAAG,CAAC;AACJ;","x_google_ignoreList":[0]}
|
|
@@ -88,7 +88,7 @@ const re = (r) => {
|
|
|
88
88
|
textAlign: "start",
|
|
89
89
|
background: m,
|
|
90
90
|
borderBottom: S,
|
|
91
|
-
transition: `background ${c} ease`,
|
|
91
|
+
transition: `background-color ${c} ease`,
|
|
92
92
|
"&[colspan]:not([colspan='1'])": {
|
|
93
93
|
textAlign: "center"
|
|
94
94
|
},
|
|
@@ -112,7 +112,7 @@ const re = (r) => {
|
|
|
112
112
|
[`${e}-tbody`]: {
|
|
113
113
|
"> tr": {
|
|
114
114
|
"> th, > td": {
|
|
115
|
-
transition: `background ${c}, border-color ${c}`,
|
|
115
|
+
transition: `background-color ${c}, border-color ${c}`,
|
|
116
116
|
borderBottom: S,
|
|
117
117
|
// ========================= Nest Table ===========================
|
|
118
118
|
[`
|
|
@@ -139,7 +139,7 @@ const re = (r) => {
|
|
|
139
139
|
textAlign: "start",
|
|
140
140
|
background: m,
|
|
141
141
|
borderBottom: S,
|
|
142
|
-
transition: `background ${c} ease`
|
|
142
|
+
transition: `background-color ${c} ease`
|
|
143
143
|
},
|
|
144
144
|
// measure cell styles
|
|
145
145
|
[`& > ${e}-measure-cell`]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/table/style/index.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { FastColor } from '@ant-design/fast-color';\nimport { clearFix, resetComponent } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genBorderedStyle from './bordered';\nimport genEllipsisStyle from './ellipsis';\nimport genEmptyStyle from './empty';\nimport genExpandStyle from './expand';\nimport genFilterStyle from './filter';\nimport genFixedStyle from './fixed';\nimport genPaginationStyle from './pagination';\nimport genRadiusStyle from './radius';\nimport genRtlStyle from './rtl';\nimport genSelectionStyle from './selection';\nimport genSizeStyle from './size';\nimport genSorterStyle from './sorter';\nimport genStickyStyle from './sticky';\nimport genSummaryStyle from './summary';\nimport genVirtualStyle from './virtual';\nconst genTableStyle = token => {\n const {\n componentCls,\n fontWeightStrong,\n tablePaddingVertical,\n tablePaddingHorizontal,\n tableExpandColumnWidth,\n lineWidth,\n lineType,\n tableBorderColor,\n tableFontSize,\n tableBg,\n tableRadius,\n tableHeaderTextColor,\n motionDurationMid,\n tableHeaderBg,\n tableHeaderCellSplitColor,\n tableFooterTextColor,\n tableFooterBg,\n calc\n } = token;\n const tableBorder = `${unit(lineWidth)} ${lineType} ${tableBorderColor}`;\n return {\n [`${componentCls}-wrapper`]: {\n clear: 'both',\n maxWidth: '100%',\n // fix https://github.com/ant-design/ant-design/issues/46177\n ['--rc-virtual-list-scrollbar-bg']: token.tableScrollBg,\n ...clearFix(),\n [componentCls]: {\n ...resetComponent(token),\n fontSize: tableFontSize,\n background: tableBg,\n borderRadius: `${unit(tableRadius)} ${unit(tableRadius)} 0 0`,\n // https://github.com/ant-design/ant-design/issues/47486\n scrollbarColor: `${token.tableScrollThumbBg} ${token.tableScrollBg}`\n },\n // https://github.com/ant-design/ant-design/issues/17611\n table: {\n width: '100%',\n textAlign: 'start',\n borderRadius: `${unit(tableRadius)} ${unit(tableRadius)} 0 0`,\n borderCollapse: 'separate',\n borderSpacing: 0\n },\n // ============================= Cell ==============================\n [`\n ${componentCls}-cell,\n ${componentCls}-thead > tr > th,\n ${componentCls}-tbody > tr > th,\n ${componentCls}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]: {\n position: 'relative',\n padding: `${unit(tablePaddingVertical)} ${unit(tablePaddingHorizontal)}`,\n overflowWrap: 'break-word'\n },\n // ============================ Title =============================\n [`${componentCls}-title`]: {\n padding: `${unit(tablePaddingVertical)} ${unit(tablePaddingHorizontal)}`\n },\n // ============================ Header ============================\n [`${componentCls}-thead`]: {\n [`\n > tr > th,\n > tr > td\n `]: {\n position: 'relative',\n color: tableHeaderTextColor,\n fontWeight: fontWeightStrong,\n textAlign: 'start',\n background: tableHeaderBg,\n borderBottom: tableBorder,\n transition: `background ${motionDurationMid} ease`,\n \"&[colspan]:not([colspan='1'])\": {\n textAlign: 'center'\n },\n [`&:not(:last-child):not(${componentCls}-selection-column):not(${componentCls}-row-expand-icon-cell):not([colspan])::before`]: {\n position: 'absolute',\n top: '50%',\n insetInlineEnd: 0,\n width: 1,\n height: '1.6em',\n backgroundColor: tableHeaderCellSplitColor,\n transform: 'translateY(-50%)',\n transition: `background-color ${motionDurationMid}`,\n content: '\"\"'\n }\n },\n '> tr:not(:last-child) > th[colspan]': {\n borderBottom: 0\n }\n },\n // ============================ Body ============================\n [`${componentCls}-tbody`]: {\n '> tr': {\n '> th, > td': {\n transition: `background ${motionDurationMid}, border-color ${motionDurationMid}`,\n borderBottom: tableBorder,\n // ========================= Nest Table ===========================\n [`\n > ${componentCls}-wrapper:only-child,\n > ${componentCls}-expanded-row-fixed > ${componentCls}-wrapper:only-child\n `]: {\n [componentCls]: {\n marginBlock: unit(calc(tablePaddingVertical).mul(-1).equal()),\n marginInline: `${unit(calc(tableExpandColumnWidth).sub(tablePaddingHorizontal).equal())}\n ${unit(calc(tablePaddingHorizontal).mul(-1).equal())}`,\n [`${componentCls}-tbody > tr:last-child > td`]: {\n borderBottomWidth: 0,\n '&:first-child, &:last-child': {\n borderRadius: 0\n }\n }\n }\n }\n },\n '> th': {\n position: 'relative',\n color: tableHeaderTextColor,\n fontWeight: fontWeightStrong,\n textAlign: 'start',\n background: tableHeaderBg,\n borderBottom: tableBorder,\n transition: `background ${motionDurationMid} ease`\n },\n // measure cell styles\n [`& > ${componentCls}-measure-cell`]: {\n paddingBlock: `0 !important`,\n borderBlock: `0 !important`,\n [`${componentCls}-measure-cell-content`]: {\n height: 0,\n overflow: 'hidden',\n pointerEvents: 'none'\n }\n }\n }\n },\n // ============================ Footer ============================\n [`${componentCls}-footer`]: {\n padding: `${unit(tablePaddingVertical)} ${unit(tablePaddingHorizontal)}`,\n color: tableFooterTextColor,\n background: tableFooterBg\n }\n }\n };\n};\nexport const prepareComponentToken = token => {\n const {\n colorFillAlter,\n colorBgContainer,\n colorTextHeading,\n colorFillSecondary,\n colorFillContent,\n controlItemBgActive,\n controlItemBgActiveHover,\n padding,\n paddingSM,\n paddingXS,\n colorBorderSecondary,\n borderRadiusLG,\n controlHeight,\n colorTextPlaceholder,\n fontSize,\n fontSizeSM,\n lineHeight,\n lineWidth,\n colorIcon,\n colorIconHover,\n opacityLoading,\n controlInteractiveSize\n } = token;\n const colorFillSecondarySolid = new FastColor(colorFillSecondary).onBackground(colorBgContainer).toHexString();\n const colorFillContentSolid = new FastColor(colorFillContent).onBackground(colorBgContainer).toHexString();\n const colorFillAlterSolid = new FastColor(colorFillAlter).onBackground(colorBgContainer).toHexString();\n const baseColorAction = new FastColor(colorIcon);\n const baseColorActionHover = new FastColor(colorIconHover);\n const expandIconHalfInner = controlInteractiveSize / 2 - lineWidth;\n const expandIconSize = expandIconHalfInner * 2 + lineWidth * 3;\n return {\n headerBg: colorFillAlterSolid,\n headerColor: colorTextHeading,\n headerSortActiveBg: colorFillSecondarySolid,\n headerSortHoverBg: colorFillContentSolid,\n bodySortBg: colorFillAlterSolid,\n rowHoverBg: colorFillAlterSolid,\n rowSelectedBg: controlItemBgActive,\n rowSelectedHoverBg: controlItemBgActiveHover,\n rowExpandedBg: colorFillAlter,\n cellPaddingBlock: padding,\n cellPaddingInline: padding,\n cellPaddingBlockMD: paddingSM,\n cellPaddingInlineMD: paddingXS,\n cellPaddingBlockSM: paddingXS,\n cellPaddingInlineSM: paddingXS,\n borderColor: colorBorderSecondary,\n headerBorderRadius: borderRadiusLG,\n footerBg: colorFillAlterSolid,\n footerColor: colorTextHeading,\n cellFontSize: fontSize,\n cellFontSizeMD: fontSize,\n cellFontSizeSM: fontSize,\n headerSplitColor: colorBorderSecondary,\n fixedHeaderSortActiveBg: colorFillSecondarySolid,\n headerFilterHoverBg: colorFillContent,\n filterDropdownMenuBg: colorBgContainer,\n filterDropdownBg: colorBgContainer,\n expandIconBg: colorBgContainer,\n selectionColumnWidth: controlHeight,\n stickyScrollBarBg: colorTextPlaceholder,\n stickyScrollBarBorderRadius: 100,\n expandIconMarginTop: (fontSize * lineHeight - lineWidth * 3) / 2 - Math.ceil((fontSizeSM * 1.4 - lineWidth * 3) / 2),\n headerIconColor: baseColorAction.clone().setA(baseColorAction.a * opacityLoading).toRgbString(),\n headerIconHoverColor: baseColorActionHover.clone().setA(baseColorActionHover.a * opacityLoading).toRgbString(),\n expandIconHalfInner,\n expandIconSize,\n expandIconScale: controlInteractiveSize / expandIconSize\n };\n};\nconst zIndexTableFixed = 2;\n// ============================== Export ==============================\nexport default genStyleHooks('Table', token => {\n const {\n colorTextHeading,\n colorSplit,\n colorBgContainer,\n controlInteractiveSize: checkboxSize,\n headerBg,\n headerColor,\n headerSortActiveBg,\n headerSortHoverBg,\n bodySortBg,\n rowHoverBg,\n rowSelectedBg,\n rowSelectedHoverBg,\n rowExpandedBg,\n cellPaddingBlock,\n cellPaddingInline,\n cellPaddingBlockMD,\n cellPaddingInlineMD,\n cellPaddingBlockSM,\n cellPaddingInlineSM,\n borderColor,\n footerBg,\n footerColor,\n headerBorderRadius,\n cellFontSize,\n cellFontSizeMD,\n cellFontSizeSM,\n headerSplitColor,\n fixedHeaderSortActiveBg,\n headerFilterHoverBg,\n filterDropdownBg,\n expandIconBg,\n selectionColumnWidth,\n stickyScrollBarBg,\n calc\n } = token;\n const tableToken = mergeToken(token, {\n tableFontSize: cellFontSize,\n tableBg: colorBgContainer,\n tableRadius: headerBorderRadius,\n tablePaddingVertical: cellPaddingBlock,\n tablePaddingHorizontal: cellPaddingInline,\n tablePaddingVerticalMiddle: cellPaddingBlockMD,\n tablePaddingHorizontalMiddle: cellPaddingInlineMD,\n tablePaddingVerticalSmall: cellPaddingBlockSM,\n tablePaddingHorizontalSmall: cellPaddingInlineSM,\n tableBorderColor: borderColor,\n tableHeaderTextColor: headerColor,\n tableHeaderBg: headerBg,\n tableFooterTextColor: footerColor,\n tableFooterBg: footerBg,\n tableHeaderCellSplitColor: headerSplitColor,\n tableHeaderSortBg: headerSortActiveBg,\n tableHeaderSortHoverBg: headerSortHoverBg,\n tableBodySortBg: bodySortBg,\n tableFixedHeaderSortActiveBg: fixedHeaderSortActiveBg,\n tableHeaderFilterActiveBg: headerFilterHoverBg,\n tableFilterDropdownBg: filterDropdownBg,\n tableRowHoverBg: rowHoverBg,\n tableSelectedRowBg: rowSelectedBg,\n tableSelectedRowHoverBg: rowSelectedHoverBg,\n zIndexTableFixed,\n tableFontSizeMiddle: cellFontSizeMD,\n tableFontSizeSmall: cellFontSizeSM,\n tableSelectionColumnWidth: selectionColumnWidth,\n tableExpandIconBg: expandIconBg,\n tableExpandColumnWidth: calc(checkboxSize).add(calc(token.padding).mul(2)).equal(),\n tableExpandedRowBg: rowExpandedBg,\n // Dropdown\n tableFilterDropdownWidth: 120,\n tableFilterDropdownHeight: 264,\n tableFilterDropdownSearchWidth: 140,\n // Virtual Scroll Bar\n tableScrollThumbSize: 8,\n // Mac scroll bar size\n tableScrollThumbBg: stickyScrollBarBg,\n tableScrollThumbBgHover: colorTextHeading,\n tableScrollBg: colorSplit\n });\n return [genTableStyle(tableToken), genPaginationStyle(tableToken), genSummaryStyle(tableToken), genSorterStyle(tableToken), genFilterStyle(tableToken), genBorderedStyle(tableToken), genRadiusStyle(tableToken), genExpandStyle(tableToken), genSummaryStyle(tableToken), genEmptyStyle(tableToken), genSelectionStyle(tableToken), genFixedStyle(tableToken), genStickyStyle(tableToken), genEllipsisStyle(tableToken), genSizeStyle(tableToken), genRtlStyle(tableToken), genVirtualStyle(tableToken)];\n}, prepareComponentToken, {\n resetFont: false,\n unitless: {\n expandIconScale: true\n }\n});"],"names":["genTableStyle","token","componentCls","fontWeightStrong","tablePaddingVertical","tablePaddingHorizontal","tableExpandColumnWidth","lineWidth","lineType","tableBorderColor","tableFontSize","tableBg","tableRadius","tableHeaderTextColor","motionDurationMid","tableHeaderBg","tableHeaderCellSplitColor","tableFooterTextColor","tableFooterBg","calc","tableBorder","unit","clearFix","resetComponent","prepareComponentToken","colorFillAlter","colorBgContainer","colorTextHeading","colorFillSecondary","colorFillContent","controlItemBgActive","controlItemBgActiveHover","padding","paddingSM","paddingXS","colorBorderSecondary","borderRadiusLG","controlHeight","colorTextPlaceholder","fontSize","fontSizeSM","lineHeight","colorIcon","colorIconHover","opacityLoading","controlInteractiveSize","colorFillSecondarySolid","FastColor","colorFillContentSolid","colorFillAlterSolid","baseColorAction","baseColorActionHover","expandIconHalfInner","expandIconSize","zIndexTableFixed","useStyle","genStyleHooks","colorSplit","checkboxSize","headerBg","headerColor","headerSortActiveBg","headerSortHoverBg","bodySortBg","rowHoverBg","rowSelectedBg","rowSelectedHoverBg","rowExpandedBg","cellPaddingBlock","cellPaddingInline","cellPaddingBlockMD","cellPaddingInlineMD","cellPaddingBlockSM","cellPaddingInlineSM","borderColor","footerBg","footerColor","headerBorderRadius","cellFontSize","cellFontSizeMD","cellFontSizeSM","headerSplitColor","fixedHeaderSortActiveBg","headerFilterHoverBg","filterDropdownBg","expandIconBg","selectionColumnWidth","stickyScrollBarBg","tableToken","mergeToken","genPaginationStyle","genSummaryStyle","genSorterStyle","genFilterStyle","genBorderedStyle","genRadiusStyle","genExpandStyle","genEmptyStyle","genSelectionStyle","genFixedStyle","genStickyStyle","genEllipsisStyle","genSizeStyle","genRtlStyle","genVirtualStyle"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAMA,KAAgB,CAAAC,MAAS;AAC7B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,SAAAC;AAAA,IACA,aAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,2BAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,MAAAC;AAAA,EACJ,IAAMlB,GACEmB,IAAc,GAAGC,EAAKd,CAAS,CAAC,IAAIC,CAAQ,IAAIC,CAAgB;AACtE,SAAO;AAAA,IACL,CAAC,GAAGP,CAAY,UAAU,GAAG;AAAA,MAC3B,OAAO;AAAA,MACP,UAAU;AAAA;AAAA,MAET,kCAAmCD,EAAM;AAAA,MAC1C,GAAGqB,EAAQ;AAAA,MACX,CAACpB,CAAY,GAAG;AAAA,QACd,GAAGqB,EAAetB,CAAK;AAAA,QACvB,UAAUS;AAAA,QACV,YAAYC;AAAA,QACZ,cAAc,GAAGU,E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GE,EAAmBF,CAAU,GAAGG,EAAgBH,CAAU,GAAGI,EAAeJ,CAAU,GAAGK,EAAeL,CAAU,GAAGM,EAAiBN,CAAU,GAAGO,EAAeP,CAAU,GAAGQ,EAAeR,CAAU,GAAGG,EAAgBH,CAAU,GAAGS,EAAcT,CAAU,GAAGU,EAAkBV,CAAU,GAAGW,EAAcX,CAAU,GAAGY,GAAeZ,CAAU,GAAGa,EAAiBb,CAAU,GAAGc,EAAad,CAAU,GAAGe,EAAYf,CAAU,GAAGgB,GAAgBhB,CAAU,CAAC;AAC1e,GAAGhE,IAAuB;AAAA,EACxB,WAAW;AAAA,EACX,UAAU;AAAA,IACR,iBAAiB;AAAA,EACrB;AACA,CAAC;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/table/style/index.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nimport { FastColor } from '@ant-design/fast-color';\nimport { clearFix, resetComponent } from '../../style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport genBorderedStyle from './bordered';\nimport genEllipsisStyle from './ellipsis';\nimport genEmptyStyle from './empty';\nimport genExpandStyle from './expand';\nimport genFilterStyle from './filter';\nimport genFixedStyle from './fixed';\nimport genPaginationStyle from './pagination';\nimport genRadiusStyle from './radius';\nimport genRtlStyle from './rtl';\nimport genSelectionStyle from './selection';\nimport genSizeStyle from './size';\nimport genSorterStyle from './sorter';\nimport genStickyStyle from './sticky';\nimport genSummaryStyle from './summary';\nimport genVirtualStyle from './virtual';\nconst genTableStyle = token => {\n const {\n componentCls,\n fontWeightStrong,\n tablePaddingVertical,\n tablePaddingHorizontal,\n tableExpandColumnWidth,\n lineWidth,\n lineType,\n tableBorderColor,\n tableFontSize,\n tableBg,\n tableRadius,\n tableHeaderTextColor,\n motionDurationMid,\n tableHeaderBg,\n tableHeaderCellSplitColor,\n tableFooterTextColor,\n tableFooterBg,\n calc\n } = token;\n const tableBorder = `${unit(lineWidth)} ${lineType} ${tableBorderColor}`;\n return {\n [`${componentCls}-wrapper`]: {\n clear: 'both',\n maxWidth: '100%',\n // fix https://github.com/ant-design/ant-design/issues/46177\n ['--rc-virtual-list-scrollbar-bg']: token.tableScrollBg,\n ...clearFix(),\n [componentCls]: {\n ...resetComponent(token),\n fontSize: tableFontSize,\n background: tableBg,\n borderRadius: `${unit(tableRadius)} ${unit(tableRadius)} 0 0`,\n // https://github.com/ant-design/ant-design/issues/47486\n scrollbarColor: `${token.tableScrollThumbBg} ${token.tableScrollBg}`\n },\n // https://github.com/ant-design/ant-design/issues/17611\n table: {\n width: '100%',\n textAlign: 'start',\n borderRadius: `${unit(tableRadius)} ${unit(tableRadius)} 0 0`,\n borderCollapse: 'separate',\n borderSpacing: 0\n },\n // ============================= Cell ==============================\n [`\n ${componentCls}-cell,\n ${componentCls}-thead > tr > th,\n ${componentCls}-tbody > tr > th,\n ${componentCls}-tbody > tr > td,\n tfoot > tr > th,\n tfoot > tr > td\n `]: {\n position: 'relative',\n padding: `${unit(tablePaddingVertical)} ${unit(tablePaddingHorizontal)}`,\n overflowWrap: 'break-word'\n },\n // ============================ Title =============================\n [`${componentCls}-title`]: {\n padding: `${unit(tablePaddingVertical)} ${unit(tablePaddingHorizontal)}`\n },\n // ============================ Header ============================\n [`${componentCls}-thead`]: {\n [`\n > tr > th,\n > tr > td\n `]: {\n position: 'relative',\n color: tableHeaderTextColor,\n fontWeight: fontWeightStrong,\n textAlign: 'start',\n background: tableHeaderBg,\n borderBottom: tableBorder,\n transition: `background-color ${motionDurationMid} ease`,\n \"&[colspan]:not([colspan='1'])\": {\n textAlign: 'center'\n },\n [`&:not(:last-child):not(${componentCls}-selection-column):not(${componentCls}-row-expand-icon-cell):not([colspan])::before`]: {\n position: 'absolute',\n top: '50%',\n insetInlineEnd: 0,\n width: 1,\n height: '1.6em',\n backgroundColor: tableHeaderCellSplitColor,\n transform: 'translateY(-50%)',\n transition: `background-color ${motionDurationMid}`,\n content: '\"\"'\n }\n },\n '> tr:not(:last-child) > th[colspan]': {\n borderBottom: 0\n }\n },\n // ============================ Body ============================\n [`${componentCls}-tbody`]: {\n '> tr': {\n '> th, > td': {\n transition: `background-color ${motionDurationMid}, border-color ${motionDurationMid}`,\n borderBottom: tableBorder,\n // ========================= Nest Table ===========================\n [`\n > ${componentCls}-wrapper:only-child,\n > ${componentCls}-expanded-row-fixed > ${componentCls}-wrapper:only-child\n `]: {\n [componentCls]: {\n marginBlock: unit(calc(tablePaddingVertical).mul(-1).equal()),\n marginInline: `${unit(calc(tableExpandColumnWidth).sub(tablePaddingHorizontal).equal())}\n ${unit(calc(tablePaddingHorizontal).mul(-1).equal())}`,\n [`${componentCls}-tbody > tr:last-child > td`]: {\n borderBottomWidth: 0,\n '&:first-child, &:last-child': {\n borderRadius: 0\n }\n }\n }\n }\n },\n '> th': {\n position: 'relative',\n color: tableHeaderTextColor,\n fontWeight: fontWeightStrong,\n textAlign: 'start',\n background: tableHeaderBg,\n borderBottom: tableBorder,\n transition: `background-color ${motionDurationMid} ease`\n },\n // measure cell styles\n [`& > ${componentCls}-measure-cell`]: {\n paddingBlock: `0 !important`,\n borderBlock: `0 !important`,\n [`${componentCls}-measure-cell-content`]: {\n height: 0,\n overflow: 'hidden',\n pointerEvents: 'none'\n }\n }\n }\n },\n // ============================ Footer ============================\n [`${componentCls}-footer`]: {\n padding: `${unit(tablePaddingVertical)} ${unit(tablePaddingHorizontal)}`,\n color: tableFooterTextColor,\n background: tableFooterBg\n }\n }\n };\n};\nexport const prepareComponentToken = token => {\n const {\n colorFillAlter,\n colorBgContainer,\n colorTextHeading,\n colorFillSecondary,\n colorFillContent,\n controlItemBgActive,\n controlItemBgActiveHover,\n padding,\n paddingSM,\n paddingXS,\n colorBorderSecondary,\n borderRadiusLG,\n controlHeight,\n colorTextPlaceholder,\n fontSize,\n fontSizeSM,\n lineHeight,\n lineWidth,\n colorIcon,\n colorIconHover,\n opacityLoading,\n controlInteractiveSize\n } = token;\n const colorFillSecondarySolid = new FastColor(colorFillSecondary).onBackground(colorBgContainer).toHexString();\n const colorFillContentSolid = new FastColor(colorFillContent).onBackground(colorBgContainer).toHexString();\n const colorFillAlterSolid = new FastColor(colorFillAlter).onBackground(colorBgContainer).toHexString();\n const baseColorAction = new FastColor(colorIcon);\n const baseColorActionHover = new FastColor(colorIconHover);\n const expandIconHalfInner = controlInteractiveSize / 2 - lineWidth;\n const expandIconSize = expandIconHalfInner * 2 + lineWidth * 3;\n return {\n headerBg: colorFillAlterSolid,\n headerColor: colorTextHeading,\n headerSortActiveBg: colorFillSecondarySolid,\n headerSortHoverBg: colorFillContentSolid,\n bodySortBg: colorFillAlterSolid,\n rowHoverBg: colorFillAlterSolid,\n rowSelectedBg: controlItemBgActive,\n rowSelectedHoverBg: controlItemBgActiveHover,\n rowExpandedBg: colorFillAlter,\n cellPaddingBlock: padding,\n cellPaddingInline: padding,\n cellPaddingBlockMD: paddingSM,\n cellPaddingInlineMD: paddingXS,\n cellPaddingBlockSM: paddingXS,\n cellPaddingInlineSM: paddingXS,\n borderColor: colorBorderSecondary,\n headerBorderRadius: borderRadiusLG,\n footerBg: colorFillAlterSolid,\n footerColor: colorTextHeading,\n cellFontSize: fontSize,\n cellFontSizeMD: fontSize,\n cellFontSizeSM: fontSize,\n headerSplitColor: colorBorderSecondary,\n fixedHeaderSortActiveBg: colorFillSecondarySolid,\n headerFilterHoverBg: colorFillContent,\n filterDropdownMenuBg: colorBgContainer,\n filterDropdownBg: colorBgContainer,\n expandIconBg: colorBgContainer,\n selectionColumnWidth: controlHeight,\n stickyScrollBarBg: colorTextPlaceholder,\n stickyScrollBarBorderRadius: 100,\n expandIconMarginTop: (fontSize * lineHeight - lineWidth * 3) / 2 - Math.ceil((fontSizeSM * 1.4 - lineWidth * 3) / 2),\n headerIconColor: baseColorAction.clone().setA(baseColorAction.a * opacityLoading).toRgbString(),\n headerIconHoverColor: baseColorActionHover.clone().setA(baseColorActionHover.a * opacityLoading).toRgbString(),\n expandIconHalfInner,\n expandIconSize,\n expandIconScale: controlInteractiveSize / expandIconSize\n };\n};\nconst zIndexTableFixed = 2;\n// ============================== Export ==============================\nexport default genStyleHooks('Table', token => {\n const {\n colorTextHeading,\n colorSplit,\n colorBgContainer,\n controlInteractiveSize: checkboxSize,\n headerBg,\n headerColor,\n headerSortActiveBg,\n headerSortHoverBg,\n bodySortBg,\n rowHoverBg,\n rowSelectedBg,\n rowSelectedHoverBg,\n rowExpandedBg,\n cellPaddingBlock,\n cellPaddingInline,\n cellPaddingBlockMD,\n cellPaddingInlineMD,\n cellPaddingBlockSM,\n cellPaddingInlineSM,\n borderColor,\n footerBg,\n footerColor,\n headerBorderRadius,\n cellFontSize,\n cellFontSizeMD,\n cellFontSizeSM,\n headerSplitColor,\n fixedHeaderSortActiveBg,\n headerFilterHoverBg,\n filterDropdownBg,\n expandIconBg,\n selectionColumnWidth,\n stickyScrollBarBg,\n calc\n } = token;\n const tableToken = mergeToken(token, {\n tableFontSize: cellFontSize,\n tableBg: colorBgContainer,\n tableRadius: headerBorderRadius,\n tablePaddingVertical: cellPaddingBlock,\n tablePaddingHorizontal: cellPaddingInline,\n tablePaddingVerticalMiddle: cellPaddingBlockMD,\n tablePaddingHorizontalMiddle: cellPaddingInlineMD,\n tablePaddingVerticalSmall: cellPaddingBlockSM,\n tablePaddingHorizontalSmall: cellPaddingInlineSM,\n tableBorderColor: borderColor,\n tableHeaderTextColor: headerColor,\n tableHeaderBg: headerBg,\n tableFooterTextColor: footerColor,\n tableFooterBg: footerBg,\n tableHeaderCellSplitColor: headerSplitColor,\n tableHeaderSortBg: headerSortActiveBg,\n tableHeaderSortHoverBg: headerSortHoverBg,\n tableBodySortBg: bodySortBg,\n tableFixedHeaderSortActiveBg: fixedHeaderSortActiveBg,\n tableHeaderFilterActiveBg: headerFilterHoverBg,\n tableFilterDropdownBg: filterDropdownBg,\n tableRowHoverBg: rowHoverBg,\n tableSelectedRowBg: rowSelectedBg,\n tableSelectedRowHoverBg: rowSelectedHoverBg,\n zIndexTableFixed,\n tableFontSizeMiddle: cellFontSizeMD,\n tableFontSizeSmall: cellFontSizeSM,\n tableSelectionColumnWidth: selectionColumnWidth,\n tableExpandIconBg: expandIconBg,\n tableExpandColumnWidth: calc(checkboxSize).add(calc(token.padding).mul(2)).equal(),\n tableExpandedRowBg: rowExpandedBg,\n // Dropdown\n tableFilterDropdownWidth: 120,\n tableFilterDropdownHeight: 264,\n tableFilterDropdownSearchWidth: 140,\n // Virtual Scroll Bar\n tableScrollThumbSize: 8,\n // Mac scroll bar size\n tableScrollThumbBg: stickyScrollBarBg,\n tableScrollThumbBgHover: colorTextHeading,\n tableScrollBg: colorSplit\n });\n return [genTableStyle(tableToken), genPaginationStyle(tableToken), genSummaryStyle(tableToken), genSorterStyle(tableToken), genFilterStyle(tableToken), genBorderedStyle(tableToken), genRadiusStyle(tableToken), genExpandStyle(tableToken), genSummaryStyle(tableToken), genEmptyStyle(tableToken), genSelectionStyle(tableToken), genFixedStyle(tableToken), genStickyStyle(tableToken), genEllipsisStyle(tableToken), genSizeStyle(tableToken), genRtlStyle(tableToken), genVirtualStyle(tableToken)];\n}, prepareComponentToken, {\n resetFont: false,\n unitless: {\n expandIconScale: true\n }\n});"],"names":["genTableStyle","token","componentCls","fontWeightStrong","tablePaddingVertical","tablePaddingHorizontal","tableExpandColumnWidth","lineWidth","lineType","tableBorderColor","tableFontSize","tableBg","tableRadius","tableHeaderTextColor","motionDurationMid","tableHeaderBg","tableHeaderCellSplitColor","tableFooterTextColor","tableFooterBg","calc","tableBorder","unit","clearFix","resetComponent","prepareComponentToken","colorFillAlter","colorBgContainer","colorTextHeading","colorFillSecondary","colorFillContent","controlItemBgActive","controlItemBgActiveHover","padding","paddingSM","paddingXS","colorBorderSecondary","borderRadiusLG","controlHeight","colorTextPlaceholder","fontSize","fontSizeSM","lineHeight","colorIcon","colorIconHover","opacityLoading","controlInteractiveSize","colorFillSecondarySolid","FastColor","colorFillContentSolid","colorFillAlterSolid","baseColorAction","baseColorActionHover","expandIconHalfInner","expandIconSize","zIndexTableFixed","useStyle","genStyleHooks","colorSplit","checkboxSize","headerBg","headerColor","headerSortActiveBg","headerSortHoverBg","bodySortBg","rowHoverBg","rowSelectedBg","rowSelectedHoverBg","rowExpandedBg","cellPaddingBlock","cellPaddingInline","cellPaddingBlockMD","cellPaddingInlineMD","cellPaddingBlockSM","cellPaddingInlineSM","borderColor","footerBg","footerColor","headerBorderRadius","cellFontSize","cellFontSizeMD","cellFontSizeSM","headerSplitColor","fixedHeaderSortActiveBg","headerFilterHoverBg","filterDropdownBg","expandIconBg","selectionColumnWidth","stickyScrollBarBg","tableToken","mergeToken","genPaginationStyle","genSummaryStyle","genSorterStyle","genFilterStyle","genBorderedStyle","genRadiusStyle","genExpandStyle","genEmptyStyle","genSelectionStyle","genFixedStyle","genStickyStyle","genEllipsisStyle","genSizeStyle","genRtlStyle","genVirtualStyle"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,MAAMA,KAAgB,CAAAC,MAAS;AAC7B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,SAAAC;AAAA,IACA,aAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,2BAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,MAAAC;AAAA,EACJ,IAAMlB,GACEmB,IAAc,GAAGC,EAAKd,CAAS,CAAC,IAAIC,CAAQ,IAAIC,CAAgB;AACtE,SAAO;AAAA,IACL,CAAC,GAAGP,CAAY,UAAU,GAAG;AAAA,MAC3B,OAAO;AAAA,MACP,UAAU;AAAA;AAAA,MAET,kCAAmCD,EAAM;AAAA,MAC1C,GAAGqB,EAAQ;AAAA,MACX,CAACpB,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AEtB,oBAAoBoB;AAAA,IACpB,yBAAyB5D;AAAA,IACzB,eAAe8B;AAAA,EACnB,CAAG;AACD,SAAO,CAACzD,GAAcwF,CAAU,GAAGE,EAAmBF,CAAU,GAAGG,EAAgBH,CAAU,GAAGI,EAAeJ,CAAU,GAAGK,EAAeL,CAAU,GAAGM,EAAiBN,CAAU,GAAGO,EAAeP,CAAU,GAAGQ,EAAeR,CAAU,GAAGG,EAAgBH,CAAU,GAAGS,EAAcT,CAAU,GAAGU,EAAkBV,CAAU,GAAGW,EAAcX,CAAU,GAAGY,GAAeZ,CAAU,GAAGa,EAAiBb,CAAU,GAAGc,EAAad,CAAU,GAAGe,EAAYf,CAAU,GAAGgB,GAAgBhB,CAAU,CAAC;AAC1e,GAAGhE,IAAuB;AAAA,EACxB,WAAW;AAAA,EACX,UAAU;AAAA,IACR,iBAAiB;AAAA,EACrB;AACA,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -27,6 +27,16 @@ const i = (a) => {
|
|
|
27
27
|
"&-container": {
|
|
28
28
|
borderStartStartRadius: t,
|
|
29
29
|
borderStartEndRadius: t,
|
|
30
|
+
"&::before": {
|
|
31
|
+
borderStartStartRadius: t
|
|
32
|
+
},
|
|
33
|
+
"&::after": {
|
|
34
|
+
borderStartEndRadius: t
|
|
35
|
+
},
|
|
36
|
+
[`> ${r}-content`]: {
|
|
37
|
+
borderStartStartRadius: t,
|
|
38
|
+
borderStartEndRadius: t
|
|
39
|
+
},
|
|
30
40
|
"table > thead > tr:first-child": {
|
|
31
41
|
"> *:first-child": {
|
|
32
42
|
borderStartStartRadius: t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radius.js","sources":["../../../../../../node_modules/antd/es/table/style/radius.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nconst genRadiusStyle = token => {\n const {\n componentCls,\n tableRadius\n } = token;\n return {\n [`${componentCls}-wrapper`]: {\n [componentCls]: {\n // https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574\n [`${componentCls}-title, ${componentCls}-header`]: {\n borderRadius: `${unit(tableRadius)} ${unit(tableRadius)} 0 0`\n },\n [`${componentCls}-title + ${componentCls}-container`]: {\n borderStartStartRadius: 0,\n borderStartEndRadius: 0,\n // https://github.com/ant-design/ant-design/issues/41975\n [`${componentCls}-header, table`]: {\n borderRadius: 0\n },\n 'table > thead > tr:first-child': {\n 'th:first-child, th:last-child, td:first-child, td:last-child': {\n borderRadius: 0\n }\n }\n },\n '&-container': {\n borderStartStartRadius: tableRadius,\n borderStartEndRadius: tableRadius,\n 'table > thead > tr:first-child': {\n '> *:first-child': {\n borderStartStartRadius: tableRadius\n },\n '> *:last-child': {\n borderStartEndRadius: tableRadius\n }\n }\n },\n '&-footer': {\n borderRadius: `0 0 ${unit(tableRadius)} ${unit(tableRadius)}`\n }\n }\n }\n };\n};\nexport default genRadiusStyle;"],"names":["genRadiusStyle","token","componentCls","tableRadius","unit"],"mappings":";AACK,MAACA,IAAiB,CAAAC,MAAS;AAC9B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,aAAAC;AAAA,EACJ,IAAMF;AACJ,SAAO;AAAA,IACL,CAAC,GAAGC,CAAY,UAAU,GAAG;AAAA,MAC3B,CAACA,CAAY,GAAG;AAAA;AAAA,QAEd,CAAC,GAAGA,CAAY,WAAWA,CAAY,SAAS,GAAG;AAAA,UACjD,cAAc,GAAGE,EAAKD,CAAW,CAAC,IAAIC,EAAKD,CAAW,CAAC;AAAA,QACjE;AAAA,QACQ,CAAC,GAAGD,CAAY,YAAYA,CAAY,YAAY,GAAG;AAAA,UACrD,wBAAwB;AAAA,UACxB,sBAAsB;AAAA;AAAA,UAEtB,CAAC,GAAGA,CAAY,gBAAgB,GAAG;AAAA,YACjC,cAAc;AAAA,UAC1B;AAAA,UACU,kCAAkC;AAAA,YAChC,gEAAgE;AAAA,cAC9D,cAAc;AAAA,YAC5B;AAAA,UACA;AAAA,QACA;AAAA,QACQ,eAAe;AAAA,UACb,wBAAwBC;AAAA,UACxB,sBAAsBA;AAAA,UACtB,kCAAkC;AAAA,YAChC,mBAAmB;AAAA,cACjB,wBAAwBA;AAAA,YACtC;AAAA,YACY,kBAAkB;AAAA,cAChB,sBAAsBA;AAAA,YACpC;AAAA,UACA;AAAA,QACA;AAAA,QACQ,YAAY;AAAA,UACV,cAAc,OAAOC,EAAKD,CAAW,CAAC,IAAIC,EAAKD,CAAW,CAAC;AAAA,QACrE;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"radius.js","sources":["../../../../../../node_modules/antd/es/table/style/radius.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nconst genRadiusStyle = token => {\n const {\n componentCls,\n tableRadius\n } = token;\n return {\n [`${componentCls}-wrapper`]: {\n [componentCls]: {\n // https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574\n [`${componentCls}-title, ${componentCls}-header`]: {\n borderRadius: `${unit(tableRadius)} ${unit(tableRadius)} 0 0`\n },\n [`${componentCls}-title + ${componentCls}-container`]: {\n borderStartStartRadius: 0,\n borderStartEndRadius: 0,\n // https://github.com/ant-design/ant-design/issues/41975\n [`${componentCls}-header, table`]: {\n borderRadius: 0\n },\n 'table > thead > tr:first-child': {\n 'th:first-child, th:last-child, td:first-child, td:last-child': {\n borderRadius: 0\n }\n }\n },\n '&-container': {\n borderStartStartRadius: tableRadius,\n borderStartEndRadius: tableRadius,\n '&::before': {\n borderStartStartRadius: tableRadius\n },\n '&::after': {\n borderStartEndRadius: tableRadius\n },\n [`> ${componentCls}-content`]: {\n borderStartStartRadius: tableRadius,\n borderStartEndRadius: tableRadius\n },\n 'table > thead > tr:first-child': {\n '> *:first-child': {\n borderStartStartRadius: tableRadius\n },\n '> *:last-child': {\n borderStartEndRadius: tableRadius\n }\n }\n },\n '&-footer': {\n borderRadius: `0 0 ${unit(tableRadius)} ${unit(tableRadius)}`\n }\n }\n }\n };\n};\nexport default genRadiusStyle;"],"names":["genRadiusStyle","token","componentCls","tableRadius","unit"],"mappings":";AACK,MAACA,IAAiB,CAAAC,MAAS;AAC9B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,aAAAC;AAAA,EACJ,IAAMF;AACJ,SAAO;AAAA,IACL,CAAC,GAAGC,CAAY,UAAU,GAAG;AAAA,MAC3B,CAACA,CAAY,GAAG;AAAA;AAAA,QAEd,CAAC,GAAGA,CAAY,WAAWA,CAAY,SAAS,GAAG;AAAA,UACjD,cAAc,GAAGE,EAAKD,CAAW,CAAC,IAAIC,EAAKD,CAAW,CAAC;AAAA,QACjE;AAAA,QACQ,CAAC,GAAGD,CAAY,YAAYA,CAAY,YAAY,GAAG;AAAA,UACrD,wBAAwB;AAAA,UACxB,sBAAsB;AAAA;AAAA,UAEtB,CAAC,GAAGA,CAAY,gBAAgB,GAAG;AAAA,YACjC,cAAc;AAAA,UAC1B;AAAA,UACU,kCAAkC;AAAA,YAChC,gEAAgE;AAAA,cAC9D,cAAc;AAAA,YAC5B;AAAA,UACA;AAAA,QACA;AAAA,QACQ,eAAe;AAAA,UACb,wBAAwBC;AAAA,UACxB,sBAAsBA;AAAA,UACtB,aAAa;AAAA,YACX,wBAAwBA;AAAA,UACpC;AAAA,UACU,YAAY;AAAA,YACV,sBAAsBA;AAAA,UAClC;AAAA,UACU,CAAC,KAAKD,CAAY,UAAU,GAAG;AAAA,YAC7B,wBAAwBC;AAAA,YACxB,sBAAsBA;AAAA,UAClC;AAAA,UACU,kCAAkC;AAAA,YAChC,mBAAmB;AAAA,cACjB,wBAAwBA;AAAA,YACtC;AAAA,YACY,kBAAkB;AAAA,cAChB,sBAAsBA;AAAA,YACpC;AAAA,UACA;AAAA,QACA;AAAA,QACQ,YAAY;AAAA,UACV,cAAc,OAAOC,EAAKD,CAAW,CAAC,IAAIC,EAAKD,CAAW,CAAC;AAAA,QACrE;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { unit as n } from "../../../../@ant-design/cssinjs/es/util/index.js";
|
|
2
|
-
const c = (
|
|
2
|
+
const c = (l) => {
|
|
3
3
|
const {
|
|
4
4
|
componentCls: o,
|
|
5
|
-
motionDurationMid:
|
|
5
|
+
motionDurationMid: i,
|
|
6
6
|
lineWidth: t,
|
|
7
7
|
lineType: d,
|
|
8
8
|
tableBorderColor: a,
|
|
9
9
|
calc: $
|
|
10
|
-
} =
|
|
10
|
+
} = l, e = `${n(t)} ${d} ${a}`, r = `${o}-expanded-row-cell`;
|
|
11
11
|
return {
|
|
12
12
|
[`${o}-wrapper`]: {
|
|
13
13
|
// ========================== Row ==========================
|
|
14
14
|
[`${o}-tbody-virtual`]: {
|
|
15
15
|
[`${o}-tbody-virtual-holder-inner`]: {
|
|
16
16
|
[`
|
|
17
|
-
& > ${o}-row,
|
|
17
|
+
& > ${o}-row,
|
|
18
18
|
& > div:not(${o}-row) > ${o}-row
|
|
19
19
|
`]: {
|
|
20
20
|
display: "flex",
|
|
@@ -24,7 +24,7 @@ const c = (i) => {
|
|
|
24
24
|
},
|
|
25
25
|
[`${o}-cell`]: {
|
|
26
26
|
borderBottom: e,
|
|
27
|
-
transition: `background ${
|
|
27
|
+
transition: `background-color ${i}`
|
|
28
28
|
},
|
|
29
29
|
[`${o}-expanded-row`]: {
|
|
30
30
|
[`${r}${r}-fixed`]: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual.js","sources":["../../../../../../node_modules/antd/es/table/style/virtual.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nconst genVirtualStyle = token => {\n const {\n componentCls,\n motionDurationMid,\n lineWidth,\n lineType,\n tableBorderColor,\n calc\n } = token;\n const tableBorder = `${unit(lineWidth)} ${lineType} ${tableBorderColor}`;\n const rowCellCls = `${componentCls}-expanded-row-cell`;\n return {\n [`${componentCls}-wrapper`]: {\n // ========================== Row ==========================\n [`${componentCls}-tbody-virtual`]: {\n [`${componentCls}-tbody-virtual-holder-inner`]: {\n [`\n & > ${componentCls}-row
|
|
1
|
+
{"version":3,"file":"virtual.js","sources":["../../../../../../node_modules/antd/es/table/style/virtual.js"],"sourcesContent":["import { unit } from '@ant-design/cssinjs';\nconst genVirtualStyle = token => {\n const {\n componentCls,\n motionDurationMid,\n lineWidth,\n lineType,\n tableBorderColor,\n calc\n } = token;\n const tableBorder = `${unit(lineWidth)} ${lineType} ${tableBorderColor}`;\n const rowCellCls = `${componentCls}-expanded-row-cell`;\n return {\n [`${componentCls}-wrapper`]: {\n // ========================== Row ==========================\n [`${componentCls}-tbody-virtual`]: {\n [`${componentCls}-tbody-virtual-holder-inner`]: {\n [`\n & > ${componentCls}-row,\n & > div:not(${componentCls}-row) > ${componentCls}-row\n `]: {\n display: 'flex',\n boxSizing: 'border-box',\n width: '100%'\n }\n },\n [`${componentCls}-cell`]: {\n borderBottom: tableBorder,\n transition: `background-color ${motionDurationMid}`\n },\n [`${componentCls}-expanded-row`]: {\n [`${rowCellCls}${rowCellCls}-fixed`]: {\n position: 'sticky',\n insetInlineStart: 0,\n overflow: 'hidden',\n width: `calc(var(--virtual-width) - ${unit(lineWidth)})`,\n borderInlineEnd: 'none'\n }\n }\n },\n // ======================== Border =========================\n [`${componentCls}-bordered`]: {\n [`${componentCls}-tbody-virtual`]: {\n '&:after': {\n content: '\"\"',\n insetInline: 0,\n bottom: 0,\n borderBottom: tableBorder,\n position: 'absolute'\n },\n [`${componentCls}-cell`]: {\n borderInlineEnd: tableBorder,\n [`&${componentCls}-cell-fix-right-first:before`]: {\n content: '\"\"',\n position: 'absolute',\n insetBlock: 0,\n insetInlineStart: calc(lineWidth).mul(-1).equal(),\n borderInlineStart: tableBorder\n }\n }\n },\n // Empty placeholder\n [`&${componentCls}-virtual`]: {\n [`${componentCls}-placeholder ${componentCls}-cell`]: {\n borderInlineEnd: tableBorder,\n borderBottom: tableBorder\n }\n }\n }\n }\n };\n};\nexport default genVirtualStyle;"],"names":["genVirtualStyle","token","componentCls","motionDurationMid","lineWidth","lineType","tableBorderColor","calc","tableBorder","unit","rowCellCls"],"mappings":";AACK,MAACA,IAAkB,CAAAC,MAAS;AAC/B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,WAAAC;AAAA,IACA,UAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,MAAAC;AAAA,EACJ,IAAMN,GACEO,IAAc,GAAGC,EAAKL,CAAS,CAAC,IAAIC,CAAQ,IAAIC,CAAgB,IAChEI,IAAa,GAAGR,CAAY;AAClC,SAAO;AAAA,IACL,CAAC,GAAGA,CAAY,UAAU,GAAG;AAAA;AAAA,MAE3B,CAAC,GAAGA,CAAY,gBAAgB,GAAG;AAAA,QACjC,CAAC,GAAGA,CAAY,6BAA6B,GAAG;AAAA,UAC9C,CAAC;AAAA,kBACOA,CAAY;AAAA,0BACJA,CAAY,WAAWA,CAAY;AAAA,WAClD,GAAG;AAAA,YACF,SAAS;AAAA,YACT,WAAW;AAAA,YACX,OAAO;AAAA,UACnB;AAAA,QACA;AAAA,QACQ,CAAC,GAAGA,CAAY,OAAO,GAAG;AAAA,UACxB,cAAcM;AAAA,UACd,YAAY,oBAAoBL,CAAiB;AAAA,QAC3D;AAAA,QACQ,CAAC,GAAGD,CAAY,eAAe,GAAG;AAAA,UAChC,CAAC,GAAGQ,CAAU,GAAGA,CAAU,QAAQ,GAAG;AAAA,YACpC,UAAU;AAAA,YACV,kBAAkB;AAAA,YAClB,UAAU;AAAA,YACV,OAAO,+BAA+BD,EAAKL,CAAS,CAAC;AAAA,YACrD,iBAAiB;AAAA,UAC7B;AAAA,QACA;AAAA,MACA;AAAA;AAAA,MAEM,CAAC,GAAGF,CAAY,WAAW,GAAG;AAAA,QAC5B,CAAC,GAAGA,CAAY,gBAAgB,GAAG;AAAA,UACjC,WAAW;AAAA,YACT,SAAS;AAAA,YACT,aAAa;AAAA,YACb,QAAQ;AAAA,YACR,cAAcM;AAAA,YACd,UAAU;AAAA,UACtB;AAAA,UACU,CAAC,GAAGN,CAAY,OAAO,GAAG;AAAA,YACxB,iBAAiBM;AAAA,YACjB,CAAC,IAAIN,CAAY,8BAA8B,GAAG;AAAA,cAChD,SAAS;AAAA,cACT,UAAU;AAAA,cACV,YAAY;AAAA,cACZ,kBAAkBK,EAAKH,CAAS,EAAE,IAAI,EAAE,EAAE,MAAK;AAAA,cAC/C,mBAAmBI;AAAA,YACjC;AAAA,UACA;AAAA,QACA;AAAA;AAAA,QAEQ,CAAC,IAAIN,CAAY,UAAU,GAAG;AAAA,UAC5B,CAAC,GAAGA,CAAY,gBAAgBA,CAAY,OAAO,GAAG;AAAA,YACpD,iBAAiBM;AAAA,YACjB,cAAcA;AAAA,UAC1B;AAAA,QACA;AAAA,MACA;AAAA,IACA;AAAA,EACA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,59 +1,56 @@
|
|
|
1
1
|
import { useContext as l } from "react";
|
|
2
|
-
import { ConfigContext as
|
|
3
|
-
import { genCommonStyle as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
import { ConfigContext as m, defaultIconPrefixCls as c } from "../../config-provider/context.js";
|
|
3
|
+
import { genCommonStyle as f, genLinkStyle as u, genIconStyle as C } from "../../style/index.js";
|
|
4
|
+
import g, { unitless as p } from "../useToken.js";
|
|
5
|
+
import x from "../../../../@ant-design/cssinjs-utils/es/util/genStyleUtils.js";
|
|
6
6
|
const {
|
|
7
7
|
genStyleHooks: k,
|
|
8
|
-
genComponentStyleHook:
|
|
9
|
-
genSubStyleComponent:
|
|
10
|
-
} =
|
|
8
|
+
genComponentStyleHook: v,
|
|
9
|
+
genSubStyleComponent: R
|
|
10
|
+
} = x({
|
|
11
11
|
usePrefix: () => {
|
|
12
12
|
const {
|
|
13
13
|
getPrefixCls: e,
|
|
14
|
-
iconPrefixCls:
|
|
15
|
-
} = l(
|
|
14
|
+
iconPrefixCls: o
|
|
15
|
+
} = l(m);
|
|
16
16
|
return {
|
|
17
17
|
rootPrefixCls: e(),
|
|
18
|
-
iconPrefixCls:
|
|
18
|
+
iconPrefixCls: o
|
|
19
19
|
};
|
|
20
20
|
},
|
|
21
21
|
useToken: () => {
|
|
22
|
-
const [e,
|
|
22
|
+
const [e, o, t, n, s, r] = g();
|
|
23
23
|
return {
|
|
24
24
|
theme: e,
|
|
25
|
-
realToken:
|
|
26
|
-
hashId:
|
|
27
|
-
token:
|
|
25
|
+
realToken: o,
|
|
26
|
+
hashId: t,
|
|
27
|
+
token: n,
|
|
28
28
|
cssVar: s,
|
|
29
|
-
zeroRuntime:
|
|
29
|
+
zeroRuntime: r
|
|
30
30
|
};
|
|
31
31
|
},
|
|
32
32
|
useCSP: () => {
|
|
33
33
|
const {
|
|
34
34
|
csp: e
|
|
35
|
-
} = l(
|
|
35
|
+
} = l(m);
|
|
36
36
|
return e ?? {};
|
|
37
37
|
},
|
|
38
|
-
getResetStyles: (e,
|
|
39
|
-
const
|
|
40
|
-
return [
|
|
41
|
-
"&":
|
|
42
|
-
}, C(
|
|
38
|
+
getResetStyles: (e, o) => {
|
|
39
|
+
const t = u(e);
|
|
40
|
+
return [t, {
|
|
41
|
+
"&": t
|
|
42
|
+
}, C(o?.prefix.iconPrefixCls ?? c)];
|
|
43
43
|
},
|
|
44
|
-
getCommonStyle:
|
|
45
|
-
getCompUnitless: () =>
|
|
46
|
-
}),
|
|
47
|
-
const
|
|
48
|
-
return (r
|
|
49
|
-
const n = `${o}${r}`;
|
|
50
|
-
return s ? `var(${n})` : n;
|
|
51
|
-
};
|
|
44
|
+
getCommonStyle: f,
|
|
45
|
+
getCompUnitless: () => p
|
|
46
|
+
}), h = (e, o) => {
|
|
47
|
+
const t = `--${e.replace(/\./g, "")}-${o}-`;
|
|
48
|
+
return [(r) => `${t}${r}`, (r, i) => i ? `var(${t}${r}, ${i})` : `var(${t}${r})`];
|
|
52
49
|
};
|
|
53
50
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
v as genComponentStyleHook,
|
|
52
|
+
h as genCssVar,
|
|
56
53
|
k as genStyleHooks,
|
|
57
|
-
|
|
54
|
+
R as genSubStyleComponent
|
|
58
55
|
};
|
|
59
56
|
//# sourceMappingURL=genStyleUtils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"genStyleUtils.js","sources":["../../../../../../node_modules/antd/es/theme/util/genStyleUtils.js"],"sourcesContent":["import { useContext } from 'react';\nimport { genStyleUtils } from '@ant-design/cssinjs-utils';\nimport { ConfigContext, defaultIconPrefixCls } from '../../config-provider/context';\nimport { genCommonStyle, genIconStyle, genLinkStyle } from '../../style';\nimport useLocalToken, { unitless } from '../useToken';\nexport const {\n genStyleHooks,\n genComponentStyleHook,\n genSubStyleComponent\n} = genStyleUtils({\n usePrefix: () => {\n const {\n getPrefixCls,\n iconPrefixCls\n } = useContext(ConfigContext);\n const rootPrefixCls = getPrefixCls();\n return {\n rootPrefixCls,\n iconPrefixCls\n };\n },\n useToken: () => {\n const [theme, realToken, hashId, token, cssVar, zeroRuntime] = useLocalToken();\n return {\n theme,\n realToken,\n hashId,\n token,\n cssVar,\n zeroRuntime\n };\n },\n useCSP: () => {\n const {\n csp\n } = useContext(ConfigContext);\n return csp ?? {};\n },\n getResetStyles: (token, config) => {\n const linkStyle = genLinkStyle(token);\n return [linkStyle, {\n '&': linkStyle\n }, genIconStyle(config?.prefix.iconPrefixCls ?? defaultIconPrefixCls)];\n },\n getCommonStyle: genCommonStyle,\n getCompUnitless: () => unitless\n});\nexport const genCssVar = (antCls,
|
|
1
|
+
{"version":3,"file":"genStyleUtils.js","sources":["../../../../../../node_modules/antd/es/theme/util/genStyleUtils.js"],"sourcesContent":["import { useContext } from 'react';\nimport { genStyleUtils } from '@ant-design/cssinjs-utils';\nimport { ConfigContext, defaultIconPrefixCls } from '../../config-provider/context';\nimport { genCommonStyle, genIconStyle, genLinkStyle } from '../../style';\nimport useLocalToken, { unitless } from '../useToken';\nexport const {\n genStyleHooks,\n genComponentStyleHook,\n genSubStyleComponent\n} = genStyleUtils({\n usePrefix: () => {\n const {\n getPrefixCls,\n iconPrefixCls\n } = useContext(ConfigContext);\n const rootPrefixCls = getPrefixCls();\n return {\n rootPrefixCls,\n iconPrefixCls\n };\n },\n useToken: () => {\n const [theme, realToken, hashId, token, cssVar, zeroRuntime] = useLocalToken();\n return {\n theme,\n realToken,\n hashId,\n token,\n cssVar,\n zeroRuntime\n };\n },\n useCSP: () => {\n const {\n csp\n } = useContext(ConfigContext);\n return csp ?? {};\n },\n getResetStyles: (token, config) => {\n const linkStyle = genLinkStyle(token);\n return [linkStyle, {\n '&': linkStyle\n }, genIconStyle(config?.prefix.iconPrefixCls ?? defaultIconPrefixCls)];\n },\n getCommonStyle: genCommonStyle,\n getCompUnitless: () => unitless\n});\nexport const genCssVar = (antCls, component) => {\n const cssPrefix = `--${antCls.replace(/\\./g, '')}-${component}-`;\n const varName = name => {\n return `${cssPrefix}${name}`;\n };\n const varRef = (name, fallback) => {\n return fallback ? `var(${cssPrefix}${name}, ${fallback})` : `var(${cssPrefix}${name})`;\n };\n return [varName, varRef];\n};"],"names":["genStyleHooks","genComponentStyleHook","genSubStyleComponent","genStyleUtils","getPrefixCls","iconPrefixCls","useContext","ConfigContext","theme","realToken","hashId","token","cssVar","zeroRuntime","useLocalToken","csp","config","linkStyle","genLinkStyle","genIconStyle","defaultIconPrefixCls","genCommonStyle","unitless","genCssVar","antCls","component","cssPrefix","name","fallback"],"mappings":";;;;;AAKY,MAAC;AAAA,EACX,eAAAA;AAAA,EACA,uBAAAC;AAAA,EACA,sBAAAC;AACF,IAAIC,EAAc;AAAA,EAChB,WAAW,MAAM;AACf,UAAM;AAAA,MACJ,cAAAC;AAAA,MACA,eAAAC;AAAA,IACN,IAAQC,EAAWC,CAAa;AAE5B,WAAO;AAAA,MACL,eAFoBH,EAAY;AAAA,MAGhC,eAAAC;AAAA,IACN;AAAA,EACE;AAAA,EACA,UAAU,MAAM;AACd,UAAM,CAACG,GAAOC,GAAW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