ods-component-lib 1.22.1 → 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/README.md +54 -41
- package/dist/_virtual/es.array.index-of.js +3 -0
- package/dist/_virtual/es.array.index-of.js.map +1 -0
- package/dist/_virtual/es.array.index-of2.js +5 -0
- package/dist/_virtual/es.array.index-of2.js.map +1 -0
- package/dist/_virtual/es.array.iterator.js +3 -0
- package/dist/_virtual/es.array.iterator.js.map +1 -0
- package/dist/_virtual/es.array.reduce.js +3 -0
- package/dist/_virtual/es.array.reduce.js.map +1 -0
- package/dist/_virtual/es.array.reduce2.js +5 -0
- package/dist/_virtual/es.array.reduce2.js.map +1 -0
- package/dist/_virtual/es.array.reverse.js +3 -0
- package/dist/_virtual/es.array.reverse.js.map +1 -0
- package/dist/_virtual/es.array.reverse2.js +5 -0
- package/dist/_virtual/es.array.reverse2.js.map +1 -0
- package/dist/_virtual/es.promise.all.js +5 -0
- package/dist/_virtual/es.promise.all.js.map +1 -0
- package/dist/_virtual/es.promise.catch.js +5 -0
- package/dist/_virtual/es.promise.catch.js.map +1 -0
- package/dist/_virtual/es.promise.constructor.js +5 -0
- package/dist/_virtual/es.promise.constructor.js.map +1 -0
- package/dist/_virtual/es.promise.js +3 -0
- package/dist/_virtual/es.promise.js.map +1 -0
- package/dist/_virtual/es.promise.race.js +5 -0
- package/dist/_virtual/es.promise.race.js.map +1 -0
- package/dist/_virtual/es.promise.reject.js +5 -0
- package/dist/_virtual/es.promise.reject.js.map +1 -0
- package/dist/_virtual/es.promise.resolve.js +5 -0
- package/dist/_virtual/es.promise.resolve.js.map +1 -0
- package/dist/_virtual/es.promise2.js +5 -0
- package/dist/_virtual/es.promise2.js.map +1 -0
- package/dist/_virtual/es.regexp.exec.js +5 -0
- package/dist/_virtual/es.regexp.exec.js.map +1 -0
- package/dist/_virtual/es.regexp.to-string.js +3 -0
- package/dist/_virtual/es.regexp.to-string.js.map +1 -0
- package/dist/_virtual/es.regexp.to-string2.js +5 -0
- package/dist/_virtual/es.regexp.to-string2.js.map +1 -0
- package/dist/_virtual/es.string.ends-with.js +3 -0
- package/dist/_virtual/es.string.ends-with.js.map +1 -0
- package/dist/_virtual/es.string.ends-with2.js +5 -0
- package/dist/_virtual/es.string.ends-with2.js.map +1 -0
- package/dist/_virtual/es.string.includes.js +3 -0
- package/dist/_virtual/es.string.includes.js.map +1 -0
- package/dist/_virtual/es.string.includes2.js +5 -0
- package/dist/_virtual/es.string.includes2.js.map +1 -0
- package/dist/_virtual/es.string.match.js +3 -0
- package/dist/_virtual/es.string.match.js.map +1 -0
- package/dist/_virtual/es.string.match2.js +5 -0
- package/dist/_virtual/es.string.match2.js.map +1 -0
- package/dist/_virtual/es.string.replace.js +3 -0
- package/dist/_virtual/es.string.replace.js.map +1 -0
- package/dist/_virtual/es.string.replace2.js +5 -0
- package/dist/_virtual/es.string.replace2.js.map +1 -0
- package/dist/_virtual/es.string.split.js +3 -0
- package/dist/_virtual/es.string.split.js.map +1 -0
- package/dist/_virtual/es.string.split2.js +5 -0
- package/dist/_virtual/es.string.split2.js.map +1 -0
- package/dist/_virtual/es.string.starts-with.js +3 -0
- package/dist/_virtual/es.string.starts-with.js.map +1 -0
- package/dist/_virtual/es.string.starts-with2.js +5 -0
- package/dist/_virtual/es.string.starts-with2.js.map +1 -0
- package/dist/_virtual/es.string.trim.js +3 -0
- package/dist/_virtual/es.string.trim.js.map +1 -0
- package/dist/_virtual/es.string.trim2.js +5 -0
- package/dist/_virtual/es.string.trim2.js.map +1 -0
- 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/_virtual/make-built-in.js +5 -0
- package/dist/_virtual/make-built-in.js.map +1 -0
- package/dist/_virtual/new-promise-capability.js +5 -0
- package/dist/_virtual/new-promise-capability.js.map +1 -0
- package/dist/_virtual/object-define-properties.js +5 -0
- package/dist/_virtual/object-define-properties.js.map +1 -0
- package/dist/_virtual/object-define-property.js +5 -0
- package/dist/_virtual/object-define-property.js.map +1 -0
- package/dist/_virtual/object-get-own-property-descriptor.js +5 -0
- package/dist/_virtual/object-get-own-property-descriptor.js.map +1 -0
- package/dist/_virtual/object-get-own-property-names.js +5 -0
- package/dist/_virtual/object-get-own-property-names.js.map +1 -0
- package/dist/_virtual/object-get-own-property-symbols.js +5 -0
- package/dist/_virtual/object-get-own-property-symbols.js.map +1 -0
- package/dist/_virtual/object-property-is-enumerable.js +5 -0
- package/dist/_virtual/object-property-is-enumerable.js.map +1 -0
- package/dist/_virtual/shared-store.js +5 -0
- package/dist/_virtual/shared-store.js.map +1 -0
- package/dist/_virtual/web.dom-collections.iterator.js +3 -0
- package/dist/_virtual/web.dom-collections.iterator.js.map +1 -0
- package/dist/_virtual/web.dom-collections.iterator2.js +5 -0
- package/dist/_virtual/web.dom-collections.iterator2.js.map +1 -0
- package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
- package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
- package/dist/components/devextreme/DataGrid/OdsDataGrid/index.js +8 -9
- package/dist/components/devextreme/DataGrid/OdsDataGrid/index.js.map +1 -1
- package/dist/components/devextreme/DataGrid/OdsDataGridV2/index.js +21 -0
- package/dist/components/devextreme/DataGrid/OdsDataGridV2/index.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +46 -44
- package/dist/index.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 +100 -86
- 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/core-js/internals/a-callable.js +16 -0
- package/dist/node_modules/core-js/internals/a-callable.js.map +1 -0
- package/dist/node_modules/core-js/internals/a-constructor.js +16 -0
- package/dist/node_modules/core-js/internals/a-constructor.js.map +1 -0
- package/dist/node_modules/core-js/internals/a-possible-prototype.js +15 -0
- package/dist/node_modules/core-js/internals/a-possible-prototype.js.map +1 -0
- package/dist/node_modules/core-js/internals/add-to-unscopables.js +19 -0
- package/dist/node_modules/core-js/internals/add-to-unscopables.js.map +1 -0
- package/dist/node_modules/core-js/internals/advance-string-index.js +14 -0
- package/dist/node_modules/core-js/internals/advance-string-index.js.map +1 -0
- package/dist/node_modules/core-js/internals/an-instance.js +15 -0
- package/dist/node_modules/core-js/internals/an-instance.js.map +1 -0
- package/dist/node_modules/core-js/internals/an-object.js +15 -0
- package/dist/node_modules/core-js/internals/an-object.js.map +1 -0
- package/dist/node_modules/core-js/internals/array-includes.js +33 -0
- package/dist/node_modules/core-js/internals/array-includes.js.map +1 -0
- package/dist/node_modules/core-js/internals/array-method-is-strict.js +19 -0
- package/dist/node_modules/core-js/internals/array-method-is-strict.js.map +1 -0
- package/dist/node_modules/core-js/internals/array-reduce.js +38 -0
- package/dist/node_modules/core-js/internals/array-reduce.js.map +1 -0
- package/dist/node_modules/core-js/internals/array-slice.js +12 -0
- package/dist/node_modules/core-js/internals/array-slice.js.map +1 -0
- package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js +47 -0
- package/dist/node_modules/core-js/internals/check-correctness-of-iteration.js.map +1 -0
- package/dist/node_modules/core-js/internals/classof-raw.js +14 -0
- package/dist/node_modules/core-js/internals/classof-raw.js.map +1 -0
- package/dist/node_modules/core-js/internals/classof.js +25 -0
- package/dist/node_modules/core-js/internals/classof.js.map +1 -0
- package/dist/node_modules/core-js/internals/copy-constructor-properties.js +20 -0
- package/dist/node_modules/core-js/internals/copy-constructor-properties.js.map +1 -0
- package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js +23 -0
- package/dist/node_modules/core-js/internals/correct-is-regexp-logic.js.map +1 -0
- package/dist/node_modules/core-js/internals/correct-prototype-getter.js +16 -0
- package/dist/node_modules/core-js/internals/correct-prototype-getter.js.map +1 -0
- package/dist/node_modules/core-js/internals/create-iter-result-object.js +10 -0
- package/dist/node_modules/core-js/internals/create-iter-result-object.js.map +1 -0
- package/dist/node_modules/core-js/internals/create-non-enumerable-property.js +18 -0
- package/dist/node_modules/core-js/internals/create-non-enumerable-property.js.map +1 -0
- package/dist/node_modules/core-js/internals/create-property-descriptor.js +15 -0
- package/dist/node_modules/core-js/internals/create-property-descriptor.js.map +1 -0
- package/dist/node_modules/core-js/internals/define-built-in-accessor.js +15 -0
- package/dist/node_modules/core-js/internals/define-built-in-accessor.js.map +1 -0
- package/dist/node_modules/core-js/internals/define-built-in.js +33 -0
- package/dist/node_modules/core-js/internals/define-built-in.js.map +1 -0
- package/dist/node_modules/core-js/internals/define-global-property.js +19 -0
- package/dist/node_modules/core-js/internals/define-global-property.js.map +1 -0
- package/dist/node_modules/core-js/internals/descriptors.js +16 -0
- package/dist/node_modules/core-js/internals/descriptors.js.map +1 -0
- package/dist/node_modules/core-js/internals/document-create-element.js +15 -0
- package/dist/node_modules/core-js/internals/document-create-element.js.map +1 -0
- package/dist/node_modules/core-js/internals/dom-iterables.js +40 -0
- package/dist/node_modules/core-js/internals/dom-iterables.js.map +1 -0
- package/dist/node_modules/core-js/internals/dom-token-list-prototype.js +12 -0
- package/dist/node_modules/core-js/internals/dom-token-list-prototype.js.map +1 -0
- package/dist/node_modules/core-js/internals/enum-bug-keys.js +16 -0
- package/dist/node_modules/core-js/internals/enum-bug-keys.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js +12 -0
- package/dist/node_modules/core-js/internals/environment-is-ios-pebble.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment-is-ios.js +12 -0
- package/dist/node_modules/core-js/internals/environment-is-ios.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment-is-node.js +12 -0
- package/dist/node_modules/core-js/internals/environment-is-node.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js +12 -0
- package/dist/node_modules/core-js/internals/environment-is-webos-webkit.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment-user-agent.js +12 -0
- package/dist/node_modules/core-js/internals/environment-user-agent.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment-v8-version.js +13 -0
- package/dist/node_modules/core-js/internals/environment-v8-version.js.map +1 -0
- package/dist/node_modules/core-js/internals/environment.js +18 -0
- package/dist/node_modules/core-js/internals/environment.js.map +1 -0
- package/dist/node_modules/core-js/internals/export.js +27 -0
- package/dist/node_modules/core-js/internals/export.js.map +1 -0
- package/dist/node_modules/core-js/internals/fails.js +14 -0
- package/dist/node_modules/core-js/internals/fails.js.map +1 -0
- package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js +44 -0
- package/dist/node_modules/core-js/internals/fix-regexp-well-known-symbol-logic.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-apply.js +14 -0
- package/dist/node_modules/core-js/internals/function-apply.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-bind-context.js +18 -0
- package/dist/node_modules/core-js/internals/function-bind-context.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-bind-native.js +16 -0
- package/dist/node_modules/core-js/internals/function-bind-native.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-call.js +14 -0
- package/dist/node_modules/core-js/internals/function-call.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-name.js +18 -0
- package/dist/node_modules/core-js/internals/function-name.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js +18 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this-accessor.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js +15 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this-clause.js.map +1 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this.js +16 -0
- package/dist/node_modules/core-js/internals/function-uncurry-this.js.map +1 -0
- package/dist/node_modules/core-js/internals/get-built-in.js +17 -0
- package/dist/node_modules/core-js/internals/get-built-in.js.map +1 -0
- package/dist/node_modules/core-js/internals/get-iterator-method.js +18 -0
- package/dist/node_modules/core-js/internals/get-iterator-method.js.map +1 -0
- package/dist/node_modules/core-js/internals/get-iterator.js +20 -0
- package/dist/node_modules/core-js/internals/get-iterator.js.map +1 -0
- package/dist/node_modules/core-js/internals/get-method.js +16 -0
- package/dist/node_modules/core-js/internals/get-method.js.map +1 -0
- package/dist/node_modules/core-js/internals/get-substitution.js +40 -0
- package/dist/node_modules/core-js/internals/get-substitution.js.map +1 -0
- package/dist/node_modules/core-js/internals/global-this.js +19 -0
- package/dist/node_modules/core-js/internals/global-this.js.map +1 -0
- package/dist/node_modules/core-js/internals/has-own-property.js +15 -0
- package/dist/node_modules/core-js/internals/has-own-property.js.map +1 -0
- package/dist/node_modules/core-js/internals/hidden-keys.js +8 -0
- package/dist/node_modules/core-js/internals/hidden-keys.js.map +1 -0
- package/dist/node_modules/core-js/internals/host-report-errors.js +13 -0
- package/dist/node_modules/core-js/internals/host-report-errors.js.map +1 -0
- package/dist/node_modules/core-js/internals/html.js +12 -0
- package/dist/node_modules/core-js/internals/html.js.map +1 -0
- package/dist/node_modules/core-js/internals/ie8-dom-define.js +20 -0
- package/dist/node_modules/core-js/internals/ie8-dom-define.js.map +1 -0
- package/dist/node_modules/core-js/internals/indexed-object.js +18 -0
- package/dist/node_modules/core-js/internals/indexed-object.js.map +1 -0
- package/dist/node_modules/core-js/internals/inspect-source.js +16 -0
- package/dist/node_modules/core-js/internals/inspect-source.js.map +1 -0
- package/dist/node_modules/core-js/internals/internal-state.js +55 -0
- package/dist/node_modules/core-js/internals/internal-state.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-array-iterator-method.js +15 -0
- package/dist/node_modules/core-js/internals/is-array-iterator-method.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-array.js +14 -0
- package/dist/node_modules/core-js/internals/is-array.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-callable.js +15 -0
- package/dist/node_modules/core-js/internals/is-callable.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-constructor.js +43 -0
- package/dist/node_modules/core-js/internals/is-constructor.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-forced.js +18 -0
- package/dist/node_modules/core-js/internals/is-forced.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-null-or-undefined.js +10 -0
- package/dist/node_modules/core-js/internals/is-null-or-undefined.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-object.js +14 -0
- package/dist/node_modules/core-js/internals/is-object.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-possible-prototype.js +14 -0
- package/dist/node_modules/core-js/internals/is-possible-prototype.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-pure.js +8 -0
- package/dist/node_modules/core-js/internals/is-pure.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-regexp.js +17 -0
- package/dist/node_modules/core-js/internals/is-regexp.js.map +1 -0
- package/dist/node_modules/core-js/internals/is-symbol.js +20 -0
- package/dist/node_modules/core-js/internals/is-symbol.js.map +1 -0
- package/dist/node_modules/core-js/internals/iterate.js +51 -0
- package/dist/node_modules/core-js/internals/iterate.js.map +1 -0
- package/dist/node_modules/core-js/internals/iterator-close.js +29 -0
- package/dist/node_modules/core-js/internals/iterator-close.js.map +1 -0
- package/dist/node_modules/core-js/internals/iterator-create-constructor.js +21 -0
- package/dist/node_modules/core-js/internals/iterator-create-constructor.js.map +1 -0
- package/dist/node_modules/core-js/internals/iterator-define.js +61 -0
- package/dist/node_modules/core-js/internals/iterator-define.js.map +1 -0
- package/dist/node_modules/core-js/internals/iterators-core.js +29 -0
- package/dist/node_modules/core-js/internals/iterators-core.js.map +1 -0
- package/dist/node_modules/core-js/internals/iterators.js +8 -0
- package/dist/node_modules/core-js/internals/iterators.js.map +1 -0
- package/dist/node_modules/core-js/internals/length-of-array-like.js +14 -0
- package/dist/node_modules/core-js/internals/length-of-array-like.js.map +1 -0
- package/dist/node_modules/core-js/internals/make-built-in.js +33 -0
- package/dist/node_modules/core-js/internals/make-built-in.js.map +1 -0
- package/dist/node_modules/core-js/internals/math-trunc.js +14 -0
- package/dist/node_modules/core-js/internals/math-trunc.js.map +1 -0
- package/dist/node_modules/core-js/internals/microtask.js +42 -0
- package/dist/node_modules/core-js/internals/microtask.js.map +1 -0
- package/dist/node_modules/core-js/internals/new-promise-capability.js +21 -0
- package/dist/node_modules/core-js/internals/new-promise-capability.js.map +1 -0
- package/dist/node_modules/core-js/internals/not-a-regexp.js +16 -0
- package/dist/node_modules/core-js/internals/not-a-regexp.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-create.js +39 -0
- package/dist/node_modules/core-js/internals/object-create.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-define-properties.js +22 -0
- package/dist/node_modules/core-js/internals/object-define-properties.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-define-property.js +34 -0
- package/dist/node_modules/core-js/internals/object-define-property.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js +26 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-descriptor.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-names.js +16 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-names.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js +9 -0
- package/dist/node_modules/core-js/internals/object-get-own-property-symbols.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-get-prototype-of.js +21 -0
- package/dist/node_modules/core-js/internals/object-get-prototype-of.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-is-prototype-of.js +12 -0
- package/dist/node_modules/core-js/internals/object-is-prototype-of.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-keys-internal.js +21 -0
- package/dist/node_modules/core-js/internals/object-keys-internal.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-keys.js +15 -0
- package/dist/node_modules/core-js/internals/object-keys.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-property-is-enumerable.js +15 -0
- package/dist/node_modules/core-js/internals/object-property-is-enumerable.js.map +1 -0
- package/dist/node_modules/core-js/internals/object-set-prototype-of.js +24 -0
- package/dist/node_modules/core-js/internals/object-set-prototype-of.js.map +1 -0
- package/dist/node_modules/core-js/internals/ordinary-to-primitive.js +18 -0
- package/dist/node_modules/core-js/internals/ordinary-to-primitive.js.map +1 -0
- package/dist/node_modules/core-js/internals/own-keys.js +19 -0
- package/dist/node_modules/core-js/internals/own-keys.js.map +1 -0
- package/dist/node_modules/core-js/internals/path.js +12 -0
- package/dist/node_modules/core-js/internals/path.js.map +1 -0
- package/dist/node_modules/core-js/internals/perform.js +14 -0
- package/dist/node_modules/core-js/internals/perform.js.map +1 -0
- package/dist/node_modules/core-js/internals/promise-constructor-detection.js +39 -0
- package/dist/node_modules/core-js/internals/promise-constructor-detection.js.map +1 -0
- package/dist/node_modules/core-js/internals/promise-native-constructor.js +12 -0
- package/dist/node_modules/core-js/internals/promise-native-constructor.js.map +1 -0
- package/dist/node_modules/core-js/internals/promise-resolve.js +18 -0
- package/dist/node_modules/core-js/internals/promise-resolve.js.map +1 -0
- package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js +17 -0
- package/dist/node_modules/core-js/internals/promise-statics-incorrect-iteration.js.map +1 -0
- package/dist/node_modules/core-js/internals/queue.js +25 -0
- package/dist/node_modules/core-js/internals/queue.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-exec-abstract.js +24 -0
- package/dist/node_modules/core-js/internals/regexp-exec-abstract.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-exec.js +37 -0
- package/dist/node_modules/core-js/internals/regexp-exec.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-flags-detection.js +35 -0
- package/dist/node_modules/core-js/internals/regexp-flags-detection.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-flags.js +15 -0
- package/dist/node_modules/core-js/internals/regexp-flags.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-get-flags.js +20 -0
- package/dist/node_modules/core-js/internals/regexp-get-flags.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js +25 -0
- package/dist/node_modules/core-js/internals/regexp-sticky-helpers.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js +17 -0
- package/dist/node_modules/core-js/internals/regexp-unsupported-dot-all.js.map +1 -0
- package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js +16 -0
- package/dist/node_modules/core-js/internals/regexp-unsupported-ncg.js.map +1 -0
- package/dist/node_modules/core-js/internals/require-object-coercible.js +15 -0
- package/dist/node_modules/core-js/internals/require-object-coercible.js.map +1 -0
- package/dist/node_modules/core-js/internals/safe-get-built-in.js +17 -0
- package/dist/node_modules/core-js/internals/safe-get-built-in.js.map +1 -0
- package/dist/node_modules/core-js/internals/set-species.js +23 -0
- package/dist/node_modules/core-js/internals/set-species.js.map +1 -0
- package/dist/node_modules/core-js/internals/set-to-string-tag.js +16 -0
- package/dist/node_modules/core-js/internals/set-to-string-tag.js.map +1 -0
- package/dist/node_modules/core-js/internals/shared-key.js +15 -0
- package/dist/node_modules/core-js/internals/shared-key.js.map +1 -0
- package/dist/node_modules/core-js/internals/shared-store.js +21 -0
- package/dist/node_modules/core-js/internals/shared-store.js.map +1 -0
- package/dist/node_modules/core-js/internals/shared.js +14 -0
- package/dist/node_modules/core-js/internals/shared.js.map +1 -0
- package/dist/node_modules/core-js/internals/species-constructor.js +18 -0
- package/dist/node_modules/core-js/internals/species-constructor.js.map +1 -0
- package/dist/node_modules/core-js/internals/string-multibyte.js +27 -0
- package/dist/node_modules/core-js/internals/string-multibyte.js.map +1 -0
- package/dist/node_modules/core-js/internals/string-trim-forced.js +18 -0
- package/dist/node_modules/core-js/internals/string-trim-forced.js.map +1 -0
- package/dist/node_modules/core-js/internals/string-trim.js +30 -0
- package/dist/node_modules/core-js/internals/string-trim.js.map +1 -0
- package/dist/node_modules/core-js/internals/symbol-constructor-detection.js +18 -0
- package/dist/node_modules/core-js/internals/symbol-constructor-detection.js.map +1 -0
- package/dist/node_modules/core-js/internals/task.js +61 -0
- package/dist/node_modules/core-js/internals/task.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-absolute-index.js +15 -0
- package/dist/node_modules/core-js/internals/to-absolute-index.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-indexed-object.js +15 -0
- package/dist/node_modules/core-js/internals/to-indexed-object.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-integer-or-infinity.js +15 -0
- package/dist/node_modules/core-js/internals/to-integer-or-infinity.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-length.js +15 -0
- package/dist/node_modules/core-js/internals/to-length.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-object.js +14 -0
- package/dist/node_modules/core-js/internals/to-object.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-primitive.js +25 -0
- package/dist/node_modules/core-js/internals/to-primitive.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-property-key.js +16 -0
- package/dist/node_modules/core-js/internals/to-property-key.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-string-tag-support.js +12 -0
- package/dist/node_modules/core-js/internals/to-string-tag-support.js.map +1 -0
- package/dist/node_modules/core-js/internals/to-string.js +15 -0
- package/dist/node_modules/core-js/internals/to-string.js.map +1 -0
- package/dist/node_modules/core-js/internals/try-to-string.js +17 -0
- package/dist/node_modules/core-js/internals/try-to-string.js.map +1 -0
- package/dist/node_modules/core-js/internals/uid.js +14 -0
- package/dist/node_modules/core-js/internals/uid.js.map +1 -0
- package/dist/node_modules/core-js/internals/use-symbol-as-uid.js +12 -0
- package/dist/node_modules/core-js/internals/use-symbol-as-uid.js.map +1 -0
- package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js +19 -0
- package/dist/node_modules/core-js/internals/v8-prototype-define-bug.js.map +1 -0
- package/dist/node_modules/core-js/internals/validate-arguments-length.js +14 -0
- package/dist/node_modules/core-js/internals/validate-arguments-length.js.map +1 -0
- package/dist/node_modules/core-js/internals/weak-map-basic-detection.js +13 -0
- package/dist/node_modules/core-js/internals/weak-map-basic-detection.js.map +1 -0
- package/dist/node_modules/core-js/internals/well-known-symbol.js +19 -0
- package/dist/node_modules/core-js/internals/well-known-symbol.js.map +1 -0
- package/dist/node_modules/core-js/internals/whitespaces.js +9 -0
- package/dist/node_modules/core-js/internals/whitespaces.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.array.index-of.js +21 -0
- package/dist/node_modules/core-js/modules/es.array.index-of.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.array.iterator.js +47 -0
- package/dist/node_modules/core-js/modules/es.array.iterator.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.array.reduce.js +22 -0
- package/dist/node_modules/core-js/modules/es.array.reduce.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.array.reverse.js +19 -0
- package/dist/node_modules/core-js/modules/es.array.reverse.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.all.js +32 -0
- package/dist/node_modules/core-js/modules/es.promise.all.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.catch.js +27 -0
- package/dist/node_modules/core-js/modules/es.promise.catch.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.constructor.js +143 -0
- package/dist/node_modules/core-js/modules/es.promise.constructor.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.js +15 -0
- package/dist/node_modules/core-js/modules/es.promise.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.race.js +29 -0
- package/dist/node_modules/core-js/modules/es.promise.race.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.reject.js +20 -0
- package/dist/node_modules/core-js/modules/es.promise.reject.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.promise.resolve.js +22 -0
- package/dist/node_modules/core-js/modules/es.promise.resolve.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.regexp.exec.js +16 -0
- package/dist/node_modules/core-js/modules/es.regexp.exec.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.regexp.to-string.js +23 -0
- package/dist/node_modules/core-js/modules/es.regexp.to-string.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.ends-with.js +31 -0
- package/dist/node_modules/core-js/modules/es.string.ends-with.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.includes.js +26 -0
- package/dist/node_modules/core-js/modules/es.string.includes.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.match.js +48 -0
- package/dist/node_modules/core-js/modules/es.string.match.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.replace.js +81 -0
- package/dist/node_modules/core-js/modules/es.string.replace.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.split.js +75 -0
- package/dist/node_modules/core-js/modules/es.string.split.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.starts-with.js +31 -0
- package/dist/node_modules/core-js/modules/es.string.starts-with.js.map +1 -0
- package/dist/node_modules/core-js/modules/es.string.trim.js +19 -0
- package/dist/node_modules/core-js/modules/es.string.trim.js.map +1 -0
- package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js +37 -0
- package/dist/node_modules/core-js/modules/web.dom-collections.iterator.js.map +1 -0
- 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/dist/ods-component-lib.css +1 -0
- package/package.json +2 -1
- package/dist/components/antd/change/OdsChange.module.css +0 -1
- package/dist/components/devextreme/DataGrid/styles/OdsDataGrid.css +0 -1
- package/dist/components/devextreme/DxDataGrid.module.css +0 -1
- package/dist/components/devextreme/OdsBasicDataGrid/OdsBasicDataGrid.module.css +0 -1
- package/dist/components/devextreme/OdsBatchEditDataGrid/OdsBatchEditDataGrid.module.css +0 -1
- package/dist/components/devextreme/OdsInlineEditDataGrid/styles.module.css +0 -1
- package/dist/components/devextreme/OdsMergeCellDataGrid/OdsMergeCellDataGrid.module.css +0 -1
- package/dist/components/devextreme/OdsServerSideDatagrid/OdsServerSideDatagrid.module.css +0 -1
- package/dist/components/devextreme/OdsTimelineTable/OdsTimelineTable.module.css +0 -1
- package/dist/components/devextreme/Transfer.module.css +0 -1
- package/dist/components/filter/styles.module.css +0 -1
- package/dist/components/filter/stylesPlus.module.css +0 -1
- package/dist/components/helpers/toolbarSearchBox/ToolbarSearchBox.module.css +0 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
- package/dist/node_modules/react-phone-input-2/lib/style.css +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
|
@@ -4,36 +4,39 @@ import { updateCSS as T, removeCSS as q } from "../../../../@rc-component/util/e
|
|
|
4
4
|
import * as F from "react";
|
|
5
5
|
import U from "../../../../@emotion/unitless/dist/unitless.browser.esm.js";
|
|
6
6
|
import V, { ATTR_MARK as R, CSS_IN_JS_INSTANCE as W, ATTR_CACHE_PATH as Y } from "../StyleContext.js";
|
|
7
|
-
import { isClientSide as O } from "../util/index.js";
|
|
8
|
-
import { CSS_FILE_STYLE as
|
|
9
|
-
import
|
|
10
|
-
import { serialize as
|
|
7
|
+
import { isClientSide as O, isNonNullable as G, where as J } from "../util/index.js";
|
|
8
|
+
import { CSS_FILE_STYLE as X, existPath as Z, getStyleAndHash as B } from "../util/cacheMapUtil.js";
|
|
9
|
+
import Q from "./useGlobalCache.js";
|
|
10
|
+
import { serialize as v, stringify as w } from "../../../../stylis/src/Serializer.js";
|
|
11
11
|
import { compile as z } from "../../../../stylis/src/Parser.js";
|
|
12
|
-
import { middleware as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
12
|
+
import { middleware as ee, prefixer as te } from "../../../../stylis/src/Middleware.js";
|
|
13
|
+
import re from "../linters/contentQuotesLinter.js";
|
|
14
|
+
import ne from "../linters/hashedAnimationLinter.js";
|
|
15
15
|
const D = "_skip_check_", K = "_multi_value_";
|
|
16
|
-
function H(
|
|
17
|
-
return (c ?
|
|
16
|
+
function H(r, c) {
|
|
17
|
+
return (c ? v(z(r), ee([te, w])) : v(z(r), w)).replace(/\{%%%\:[^;];}/g, ";");
|
|
18
18
|
}
|
|
19
|
-
function
|
|
20
|
-
return typeof
|
|
19
|
+
function oe(r) {
|
|
20
|
+
return typeof r == "object" && r && (D in r || K in r);
|
|
21
21
|
}
|
|
22
|
-
function k(
|
|
22
|
+
function k(r, c, h = "high") {
|
|
23
23
|
if (!c)
|
|
24
|
-
return
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
24
|
+
return r;
|
|
25
|
+
const C = J({
|
|
26
|
+
hashCls: c,
|
|
27
|
+
hashPriority: h
|
|
28
|
+
});
|
|
29
|
+
return r.split(",").map((f) => {
|
|
30
|
+
const m = f.trim().split(/\s+/);
|
|
31
|
+
let u = m[0] || "";
|
|
32
|
+
const _ = u.match(/^\w+/)?.[0] || "";
|
|
33
|
+
return u = `${_}${C}${u.slice(_.length)}`, [u, ...m.slice(1)].join(" ");
|
|
31
34
|
}).join(",");
|
|
32
35
|
}
|
|
33
|
-
const x = (
|
|
36
|
+
const x = (r, c = {}, {
|
|
34
37
|
root: h,
|
|
35
|
-
injectHash:
|
|
36
|
-
parentSelectors:
|
|
38
|
+
injectHash: C,
|
|
39
|
+
parentSelectors: N
|
|
37
40
|
} = {
|
|
38
41
|
root: !0,
|
|
39
42
|
parentSelectors: []
|
|
@@ -41,159 +44,159 @@ const x = (t, c = {}, {
|
|
|
41
44
|
const {
|
|
42
45
|
hashId: f,
|
|
43
46
|
layer: m,
|
|
44
|
-
path:
|
|
45
|
-
hashPriority:
|
|
46
|
-
transformers:
|
|
47
|
-
linters:
|
|
47
|
+
path: u,
|
|
48
|
+
hashPriority: _,
|
|
49
|
+
transformers: P = [],
|
|
50
|
+
linters: g = []
|
|
48
51
|
} = c;
|
|
49
|
-
let p = "",
|
|
50
|
-
function
|
|
52
|
+
let p = "", E = {};
|
|
53
|
+
function b(n) {
|
|
51
54
|
const a = n.getName(f);
|
|
52
|
-
if (
|
|
55
|
+
if (!E[a]) {
|
|
53
56
|
const [o] = x(n.style, c, {
|
|
54
57
|
root: !1,
|
|
55
|
-
parentSelectors:
|
|
58
|
+
parentSelectors: N
|
|
56
59
|
});
|
|
57
|
-
|
|
60
|
+
E[a] = `@keyframes ${n.getName(f)}${o}`;
|
|
58
61
|
}
|
|
59
62
|
}
|
|
60
|
-
function
|
|
63
|
+
function j(n, a = []) {
|
|
61
64
|
return n.forEach((o) => {
|
|
62
|
-
Array.isArray(o) ?
|
|
65
|
+
Array.isArray(o) ? j(o, a) : o && a.push(o);
|
|
63
66
|
}), a;
|
|
64
67
|
}
|
|
65
|
-
return
|
|
68
|
+
return j(Array.isArray(r) ? r : [r]).forEach((n) => {
|
|
66
69
|
const a = typeof n == "string" && !h ? {} : n;
|
|
67
70
|
if (typeof a == "string")
|
|
68
71
|
p += `${a}
|
|
69
72
|
`;
|
|
70
73
|
else if (a._keyframe)
|
|
71
|
-
|
|
74
|
+
b(a);
|
|
72
75
|
else {
|
|
73
|
-
const o =
|
|
76
|
+
const o = P.reduce((s, e) => e?.visit?.(s) || s, a);
|
|
74
77
|
Object.keys(o).forEach((s) => {
|
|
75
78
|
const e = o[s];
|
|
76
|
-
if (typeof e == "object" && e && (s !== "animationName" || !e._keyframe) && !
|
|
77
|
-
let y = !1,
|
|
78
|
-
(h ||
|
|
79
|
-
const [l,
|
|
79
|
+
if (typeof e == "object" && e && (s !== "animationName" || !e._keyframe) && !oe(e)) {
|
|
80
|
+
let y = !1, t = s.trim(), i = !1;
|
|
81
|
+
(h || C) && f ? t.startsWith("@") ? y = !0 : t === "&" ? t = k("", f, _) : t = k(s, f, _) : h && !f && (t === "&" || t === "") && (t = "", i = !0);
|
|
82
|
+
const [l, $] = x(e, c, {
|
|
80
83
|
root: i,
|
|
81
84
|
injectHash: y,
|
|
82
|
-
parentSelectors: [...
|
|
85
|
+
parentSelectors: [...N, t]
|
|
83
86
|
});
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}, p += `${
|
|
87
|
+
E = {
|
|
88
|
+
...E,
|
|
89
|
+
...$
|
|
90
|
+
}, p += `${t}${l}`;
|
|
88
91
|
} else {
|
|
89
92
|
let y = function(i, l) {
|
|
90
|
-
L.env.NODE_ENV !== "production" && (typeof e != "object" || !e?.[D]) && [
|
|
91
|
-
path:
|
|
93
|
+
L.env.NODE_ENV !== "production" && (typeof e != "object" || !e?.[D]) && [re, ne, ...g].forEach((A) => A(i, l, {
|
|
94
|
+
path: u,
|
|
92
95
|
hashId: f,
|
|
93
|
-
parentSelectors:
|
|
96
|
+
parentSelectors: N
|
|
94
97
|
}));
|
|
95
|
-
const
|
|
98
|
+
const $ = i.replace(/[A-Z]/g, (A) => `-${A.toLowerCase()}`);
|
|
96
99
|
let S = l;
|
|
97
|
-
!U[i] && typeof S == "number" && S !== 0 && (S = `${S}px`), i === "animationName" && l?._keyframe && (
|
|
100
|
+
!U[i] && typeof S == "number" && S !== 0 && (S = `${S}px`), i === "animationName" && l?._keyframe && (b(l), S = l.getName(f)), p += `${$}:${S};`;
|
|
98
101
|
};
|
|
99
|
-
const
|
|
100
|
-
typeof e == "object" && e?.[K] && Array.isArray(
|
|
102
|
+
const t = e?.value ?? e;
|
|
103
|
+
typeof e == "object" && e?.[K] && Array.isArray(t) ? t.forEach((i) => {
|
|
101
104
|
y(s, i);
|
|
102
|
-
}) : y(s,
|
|
105
|
+
}) : G(t) && y(s, t);
|
|
103
106
|
}
|
|
104
107
|
});
|
|
105
108
|
}
|
|
106
|
-
}), h ? m && (p && (p = `@layer ${m.name} {${p}}`), m.dependencies && (
|
|
107
|
-
`))) : p = `{${p}}`, [p,
|
|
109
|
+
}), h ? m && (p && (p = `@layer ${m.name} {${p}}`), m.dependencies && (E[`@layer ${m.name}`] = m.dependencies.map((n) => `@layer ${n}, ${m.name};`).join(`
|
|
110
|
+
`))) : p = `{${p}}`, [p, E];
|
|
108
111
|
};
|
|
109
|
-
function
|
|
110
|
-
return M(`${
|
|
112
|
+
function se(r, c) {
|
|
113
|
+
return M(`${r.join("%")}${c}`);
|
|
111
114
|
}
|
|
112
|
-
const
|
|
113
|
-
function $e(
|
|
115
|
+
const ie = "style";
|
|
116
|
+
function $e(r, c) {
|
|
114
117
|
const {
|
|
115
118
|
path: h,
|
|
116
|
-
hashId:
|
|
117
|
-
layer:
|
|
119
|
+
hashId: C,
|
|
120
|
+
layer: N,
|
|
118
121
|
nonce: f,
|
|
119
122
|
clientOnly: m,
|
|
120
|
-
order:
|
|
121
|
-
} =
|
|
122
|
-
mock:
|
|
123
|
-
hashPriority:
|
|
124
|
-
container:
|
|
123
|
+
order: u = 0
|
|
124
|
+
} = r, {
|
|
125
|
+
mock: _,
|
|
126
|
+
hashPriority: P,
|
|
127
|
+
container: g,
|
|
125
128
|
transformers: p,
|
|
126
|
-
linters:
|
|
127
|
-
cache:
|
|
128
|
-
layer:
|
|
129
|
-
autoPrefix:
|
|
130
|
-
} = F.useContext(V), n = [
|
|
131
|
-
|
|
129
|
+
linters: E,
|
|
130
|
+
cache: b,
|
|
131
|
+
layer: j,
|
|
132
|
+
autoPrefix: I
|
|
133
|
+
} = F.useContext(V), n = [C || ""];
|
|
134
|
+
j && n.push("layer"), n.push(...h);
|
|
132
135
|
let a = O;
|
|
133
|
-
L.env.NODE_ENV !== "production" &&
|
|
134
|
-
|
|
136
|
+
L.env.NODE_ENV !== "production" && _ !== void 0 && (a = _ === "client"), Q(
|
|
137
|
+
ie,
|
|
135
138
|
n,
|
|
136
139
|
// Create cache if needed
|
|
137
140
|
() => {
|
|
138
141
|
const o = n.join("|");
|
|
139
|
-
if (
|
|
140
|
-
const [l,
|
|
142
|
+
if (Z(o)) {
|
|
143
|
+
const [l, $] = B(o);
|
|
141
144
|
if (l)
|
|
142
|
-
return [l,
|
|
145
|
+
return [l, $, {}, m, u];
|
|
143
146
|
}
|
|
144
147
|
const s = c(), [e, y] = x(s, {
|
|
145
|
-
hashId:
|
|
146
|
-
hashPriority:
|
|
147
|
-
layer:
|
|
148
|
+
hashId: C,
|
|
149
|
+
hashPriority: P,
|
|
150
|
+
layer: j ? N : void 0,
|
|
148
151
|
path: h.join("-"),
|
|
149
152
|
transformers: p,
|
|
150
|
-
linters:
|
|
151
|
-
}),
|
|
152
|
-
return [
|
|
153
|
+
linters: E
|
|
154
|
+
}), t = H(e, I || !1), i = se(n, t);
|
|
155
|
+
return [t, i, y, m, u];
|
|
153
156
|
},
|
|
154
157
|
// Remove cache if no need
|
|
155
158
|
(o, s) => {
|
|
156
159
|
const [, e] = o;
|
|
157
160
|
s && O && q(e, {
|
|
158
161
|
mark: R,
|
|
159
|
-
attachTo:
|
|
162
|
+
attachTo: g
|
|
160
163
|
});
|
|
161
164
|
},
|
|
162
165
|
// Effect: Inject style here
|
|
163
166
|
(o) => {
|
|
164
|
-
const [s, e, y, ,
|
|
165
|
-
if (a && s !==
|
|
167
|
+
const [s, e, y, , t] = o;
|
|
168
|
+
if (a && s !== X) {
|
|
166
169
|
const i = {
|
|
167
170
|
mark: R,
|
|
168
|
-
prepend:
|
|
169
|
-
attachTo:
|
|
170
|
-
priority:
|
|
171
|
+
prepend: j ? !1 : "queue",
|
|
172
|
+
attachTo: g,
|
|
173
|
+
priority: t
|
|
171
174
|
}, l = typeof f == "function" ? f() : f;
|
|
172
175
|
l && (i.csp = {
|
|
173
176
|
nonce: l
|
|
174
177
|
});
|
|
175
|
-
const
|
|
178
|
+
const $ = [], S = [];
|
|
176
179
|
Object.keys(y).forEach((d) => {
|
|
177
|
-
d.startsWith("@layer") ?
|
|
178
|
-
}),
|
|
179
|
-
T(H(y[d],
|
|
180
|
+
d.startsWith("@layer") ? $.push(d) : S.push(d);
|
|
181
|
+
}), $.forEach((d) => {
|
|
182
|
+
T(H(y[d], I || !1), `_layer-${d}`, {
|
|
180
183
|
...i,
|
|
181
184
|
prepend: !0
|
|
182
185
|
});
|
|
183
186
|
});
|
|
184
|
-
const
|
|
185
|
-
|
|
186
|
-
T(H(y[d],
|
|
187
|
+
const A = T(s, e, i);
|
|
188
|
+
A[W] = b.instanceId, L.env.NODE_ENV !== "production" && A.setAttribute(Y, n.join("|")), S.forEach((d) => {
|
|
189
|
+
T(H(y[d], I || !1), `_effect-${d}`, i);
|
|
187
190
|
});
|
|
188
191
|
}
|
|
189
192
|
}
|
|
190
193
|
);
|
|
191
194
|
}
|
|
192
195
|
export {
|
|
193
|
-
|
|
196
|
+
ie as STYLE_PREFIX,
|
|
194
197
|
$e as default,
|
|
195
198
|
H as normalizeStyle,
|
|
196
199
|
x as parseStyle,
|
|
197
|
-
|
|
200
|
+
se as uniqueHash
|
|
198
201
|
};
|
|
199
202
|
//# sourceMappingURL=useStyleRegister.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStyleRegister.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport * as React from 'react';\n// @ts-ignore\nimport unitless from '@emotion/unitless';\nimport { compile, middleware, prefixer, serialize, stringify } from 'stylis';\nimport { contentQuotesLinter, hashedAnimationLinter } from \"../linters\";\nimport StyleContext, { ATTR_CACHE_PATH, ATTR_MARK, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { isClientSide, toStyleStr } from \"../util\";\nimport { CSS_FILE_STYLE, existPath, getStyleAndHash } from \"../util/cacheMapUtil\";\nimport useGlobalCache from \"./useGlobalCache\";\nconst SKIP_CHECK = '_skip_check_';\nconst MULTI_VALUE = '_multi_value_';\n// ============================================================================\n// == Parser ==\n// ============================================================================\n// Preprocessor style content to browser support one\nexport function normalizeStyle(styleStr, autoPrefix) {\n const serialized = autoPrefix ? serialize(compile(styleStr), middleware([prefixer, stringify])) : serialize(compile(styleStr), stringify);\n return serialized.replace(/\\{%%%\\:[^;];}/g, ';');\n}\nfunction isCompoundCSSProperty(value) {\n return typeof value === 'object' && value && (SKIP_CHECK in value || MULTI_VALUE in value);\n}\n\n// 注入 hash 值\nfunction injectSelectorHash(key, hashId, hashPriority) {\n if (!hashId) {\n return key;\n }\n const hashClassName = `.${hashId}`;\n const hashSelector = hashPriority === 'low' ? `:where(${hashClassName})` : hashClassName;\n\n // 注入 hashId\n const keys = key.split(',').map(k => {\n const fullPath = k.trim().split(/\\s+/);\n\n // 如果 Selector 第一个是 HTML Element,那我们就插到它的后面。反之,就插到最前面。\n let firstPath = fullPath[0] || '';\n const htmlElement = firstPath.match(/^\\w+/)?.[0] || '';\n firstPath = `${htmlElement}${hashSelector}${firstPath.slice(htmlElement.length)}`;\n return [firstPath, ...fullPath.slice(1)].join(' ');\n });\n return keys.join(',');\n}\n// Parse CSSObject to style content\nexport const parseStyle = (interpolation, config = {}, {\n root,\n injectHash,\n parentSelectors\n} = {\n root: true,\n parentSelectors: []\n}) => {\n const {\n hashId,\n layer,\n path,\n hashPriority,\n transformers = [],\n linters = []\n } = config;\n let styleStr = '';\n let effectStyle = {};\n function parseKeyframes(keyframes) {\n const animationName = keyframes.getName(hashId);\n if (!effectStyle[animationName]) {\n const [parsedStr] = parseStyle(keyframes.style, config, {\n root: false,\n parentSelectors\n });\n effectStyle[animationName] = `@keyframes ${keyframes.getName(hashId)}${parsedStr}`;\n }\n }\n function flattenList(list, fullList = []) {\n list.forEach(item => {\n if (Array.isArray(item)) {\n flattenList(item, fullList);\n } else if (item) {\n fullList.push(item);\n }\n });\n return fullList;\n }\n const flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);\n flattenStyleList.forEach(originStyle => {\n // Only root level can use raw string\n const style = typeof originStyle === 'string' && !root ? {} : originStyle;\n if (typeof style === 'string') {\n styleStr += `${style}\\n`;\n } else if (style._keyframe) {\n // Keyframe\n parseKeyframes(style);\n } else {\n const mergedStyle = transformers.reduce((prev, trans) => trans?.visit?.(prev) || prev, style);\n\n // Normal CSSObject\n Object.keys(mergedStyle).forEach(key => {\n const value = mergedStyle[key];\n if (typeof value === 'object' && value && (key !== 'animationName' || !value._keyframe) && !isCompoundCSSProperty(value)) {\n let subInjectHash = false;\n\n // 当成嵌套对象来处理\n let mergedKey = key.trim();\n // Whether treat child as root. In most case it is false.\n let nextRoot = false;\n\n // 拆分多个选择器\n if ((root || injectHash) && hashId) {\n if (mergedKey.startsWith('@')) {\n // 略过媒体查询,交给子节点继续插入 hashId\n subInjectHash = true;\n } else if (mergedKey === '&') {\n // 抹掉 root selector 上的单个 &\n mergedKey = injectSelectorHash('', hashId, hashPriority);\n } else {\n // 注入 hashId\n mergedKey = injectSelectorHash(key, hashId, hashPriority);\n }\n } else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {\n // In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,\n // we will get `&{a:{color:red;}}` or `{a:{color:red;}}` string for stylis to compile.\n // But it does not conform to stylis syntax,\n // and finally we will get `{color:red;}` as css, which is wrong.\n // So we need to remove key in root, and treat child `{ a: { color: 'red' } }` as root.\n mergedKey = '';\n nextRoot = true;\n }\n const [parsedStr, childEffectStyle] = parseStyle(value, config, {\n root: nextRoot,\n injectHash: subInjectHash,\n parentSelectors: [...parentSelectors, mergedKey]\n });\n effectStyle = {\n ...effectStyle,\n ...childEffectStyle\n };\n styleStr += `${mergedKey}${parsedStr}`;\n } else {\n function appendStyle(cssKey, cssValue) {\n if (process.env.NODE_ENV !== 'production' && (typeof value !== 'object' || !value?.[SKIP_CHECK])) {\n [contentQuotesLinter, hashedAnimationLinter, ...linters].forEach(linter => linter(cssKey, cssValue, {\n path,\n hashId,\n parentSelectors\n }));\n }\n\n // 如果是样式则直接插入\n const styleName = cssKey.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`);\n\n // Auto suffix with px\n let formatValue = cssValue;\n if (!unitless[cssKey] && typeof formatValue === 'number' && formatValue !== 0) {\n formatValue = `${formatValue}px`;\n }\n\n // handle animationName & Keyframe value\n if (cssKey === 'animationName' && cssValue?._keyframe) {\n parseKeyframes(cssValue);\n formatValue = cssValue.getName(hashId);\n }\n styleStr += `${styleName}:${formatValue};`;\n }\n const actualValue = value?.value ?? value;\n if (typeof value === 'object' && value?.[MULTI_VALUE] && Array.isArray(actualValue)) {\n actualValue.forEach(item => {\n appendStyle(key, item);\n });\n } else {\n appendStyle(key, actualValue);\n }\n }\n });\n }\n });\n if (!root) {\n styleStr = `{${styleStr}}`;\n } else if (layer) {\n // fixme: https://github.com/thysultan/stylis/pull/339\n if (styleStr) {\n styleStr = `@layer ${layer.name} {${styleStr}}`;\n }\n if (layer.dependencies) {\n effectStyle[`@layer ${layer.name}`] = layer.dependencies.map(deps => `@layer ${deps}, ${layer.name};`).join('\\n');\n }\n }\n return [styleStr, effectStyle];\n};\n\n// ============================================================================\n// == Register ==\n// ============================================================================\nexport function uniqueHash(path, styleStr) {\n return hash(`${path.join('%')}${styleStr}`);\n}\nexport const STYLE_PREFIX = 'style';\n/**\n * Register a style to the global style sheet.\n */\nexport default function useStyleRegister(info, styleFn) {\n const {\n path,\n hashId,\n layer,\n nonce,\n clientOnly,\n order = 0\n } = info;\n const {\n mock,\n hashPriority,\n container,\n transformers,\n linters,\n cache,\n layer: enableLayer,\n autoPrefix\n } = React.useContext(StyleContext);\n const fullPath = [hashId || ''];\n if (enableLayer) {\n fullPath.push('layer');\n }\n fullPath.push(...path);\n\n // Check if need insert style\n let isMergedClientSide = isClientSide;\n if (process.env.NODE_ENV !== 'production' && mock !== undefined) {\n isMergedClientSide = mock === 'client';\n }\n useGlobalCache(STYLE_PREFIX, fullPath,\n // Create cache if needed\n () => {\n const cachePath = fullPath.join('|');\n\n // Get style from SSR inline style directly\n if (existPath(cachePath)) {\n const [inlineCacheStyleStr, styleHash] = getStyleAndHash(cachePath);\n if (inlineCacheStyleStr) {\n return [inlineCacheStyleStr, styleHash, {}, clientOnly, order];\n }\n }\n\n // Generate style\n const styleObj = styleFn();\n const [parsedStyle, effectStyle] = parseStyle(styleObj, {\n hashId,\n hashPriority,\n layer: enableLayer ? layer : undefined,\n path: path.join('-'),\n transformers,\n linters\n });\n const styleStr = normalizeStyle(parsedStyle, autoPrefix || false);\n const styleId = uniqueHash(fullPath, styleStr);\n return [styleStr, styleId, effectStyle, clientOnly, order];\n },\n // Remove cache if no need\n (cacheValue, fromHMR) => {\n const [, styleId] = cacheValue;\n if (fromHMR && isClientSide) {\n removeCSS(styleId, {\n mark: ATTR_MARK,\n attachTo: container\n });\n }\n },\n // Effect: Inject style here\n cacheValue => {\n const [styleStr, styleId, effectStyle,, priority] = cacheValue;\n if (isMergedClientSide && styleStr !== CSS_FILE_STYLE) {\n const mergedCSSConfig = {\n mark: ATTR_MARK,\n prepend: enableLayer ? false : 'queue',\n attachTo: container,\n priority\n };\n const nonceStr = typeof nonce === 'function' ? nonce() : nonce;\n if (nonceStr) {\n mergedCSSConfig.csp = {\n nonce: nonceStr\n };\n }\n\n // ================= Split Effect Style =================\n // We will split effectStyle here since @layer should be at the top level\n const effectLayerKeys = [];\n const effectRestKeys = [];\n Object.keys(effectStyle).forEach(key => {\n if (key.startsWith('@layer')) {\n effectLayerKeys.push(key);\n } else {\n effectRestKeys.push(key);\n }\n });\n\n // ================= Inject Layer Style =================\n // Inject layer style\n effectLayerKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_layer-${effectKey}`, {\n ...mergedCSSConfig,\n prepend: true\n });\n });\n\n // ==================== Inject Style ====================\n // Inject style\n const style = updateCSS(styleStr, styleId, mergedCSSConfig);\n style[CSS_IN_JS_INSTANCE] = cache.instanceId;\n\n // Debug usage. Dev only\n if (process.env.NODE_ENV !== 'production') {\n style.setAttribute(ATTR_CACHE_PATH, fullPath.join('|'));\n }\n\n // ================ Inject Effect Style =================\n // Inject client side effect style\n effectRestKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_effect-${effectKey}`, mergedCSSConfig);\n });\n }\n });\n}\nexport const extract = (cache, effectStyles, options) => {\n const [styleStr, styleId, effectStyle, clientOnly, order] = cache;\n const {\n plain,\n autoPrefix\n } = options || {};\n\n // Skip client only style\n if (clientOnly) {\n return null;\n }\n let keyStyleText = styleStr;\n\n // ====================== Share ======================\n // Used for @rc-component/util\n const sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': `${order}`\n };\n\n // ====================== Style ======================\n keyStyleText = toStyleStr(styleStr, undefined, styleId, sharedAttrs, plain);\n\n // =============== Create effect style ===============\n if (effectStyle) {\n Object.keys(effectStyle).forEach(effectKey => {\n // Effect style can be reused\n if (!effectStyles[effectKey]) {\n effectStyles[effectKey] = true;\n const effectStyleStr = normalizeStyle(effectStyle[effectKey], autoPrefix || false);\n const effectStyleHTML = toStyleStr(effectStyleStr, undefined, `_effect-${effectKey}`, sharedAttrs, plain);\n if (effectKey.startsWith('@layer')) {\n keyStyleText = effectStyleHTML + keyStyleText;\n } else {\n keyStyleText += effectStyleHTML;\n }\n }\n });\n }\n return [order, styleId, keyStyleText];\n};"],"names":["SKIP_CHECK","MULTI_VALUE","normalizeStyle","styleStr","autoPrefix","serialize","compile","middleware","prefixer","stringify","isCompoundCSSProperty","value","injectSelectorHash","key","hashId","hashPriority","hashClassName","hashSelector","k","fullPath","firstPath","htmlElement","parseStyle","interpolation","config","root","injectHash","parentSelectors","layer","path","transformers","linters","effectStyle","parseKeyframes","keyframes","animationName","parsedStr","flattenList","list","fullList","item","originStyle","style","mergedStyle","prev","trans","subInjectHash","mergedKey","nextRoot","childEffectStyle","appendStyle","cssKey","cssValue","process","contentQuotesLinter","hashedAnimationLinter","linter","styleName","match","formatValue","unitless","actualValue","deps","uniqueHash","hash","STYLE_PREFIX","useStyleRegister","info","styleFn","nonce","clientOnly","order","mock","container","cache","enableLayer","React","StyleContext","isMergedClientSide","isClientSide","useGlobalCache","cachePath","existPath","inlineCacheStyleStr","styleHash","getStyleAndHash","styleObj","parsedStyle","styleId","cacheValue","fromHMR","removeCSS","ATTR_MARK","priority","CSS_FILE_STYLE","mergedCSSConfig","nonceStr","effectLayerKeys","effectRestKeys","effectKey","updateCSS","CSS_IN_JS_INSTANCE","ATTR_CACHE_PATH"],"mappings":";;;;;;;;;;;;;;AAWA,MAAMA,IAAa,gBACbC,IAAc;AAKb,SAASC,EAAeC,GAAUC,GAAY;AAEnD,UADmBA,IAAaC,EAAUC,EAAQH,CAAQ,GAAGI,EAAW,CAACC,GAAUC,CAAS,CAAC,CAAC,IAAIJ,EAAUC,EAAQH,CAAQ,GAAGM,CAAS,GACtH,QAAQ,kBAAkB,GAAG;AACjD;AACA,SAASC,GAAsBC,GAAO;AACpC,SAAO,OAAOA,KAAU,YAAYA,MAAUX,KAAcW,KAASV,KAAeU;AACtF;AAGA,SAASC,EAAmBC,GAAKC,GAAQC,GAAc;AACrD,MAAI,CAACD;AACH,WAAOD;AAET,QAAMG,IAAgB,IAAIF,CAAM,IAC1BG,IAAeF,MAAiB,QAAQ,UAAUC,CAAa,MAAMA;AAY3E,SATaH,EAAI,MAAM,GAAG,EAAE,IAAI,CAAAK,MAAK;AACnC,UAAMC,IAAWD,EAAE,KAAI,EAAG,MAAM,KAAK;AAGrC,QAAIE,IAAYD,EAAS,CAAC,KAAK;AAC/B,UAAME,IAAcD,EAAU,MAAM,MAAM,IAAI,CAAC,KAAK;AACpD,WAAAA,IAAY,GAAGC,CAAW,GAAGJ,CAAY,GAAGG,EAAU,MAAMC,EAAY,MAAM,CAAC,IACxE,CAACD,GAAW,GAAGD,EAAS,MAAM,CAAC,CAAC,EAAE,KAAK,GAAG;AAAA,EACnD,CAAC,EACW,KAAK,GAAG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c;AACZ,YAAM,CAACtF,GAAUqF,GAASxD,GAAW,EAAG6D,CAAQ,IAAIJ;AACpD,UAAIX,KAAsB3E,MAAa2F,GAAgB;AACrD,cAAMC,IAAkB;AAAA,UACtB,MAAMH;AAAA,UACN,SAASjB,IAAc,KAAQ;AAAA,UAC/B,UAAUF;AAAA,UACV,UAAAoB;AAAA,QACR,GACYG,IAAW,OAAO3B,KAAU,aAAaA,EAAK,IAAKA;AACzD,QAAI2B,MACFD,EAAgB,MAAM;AAAA,UACpB,OAAOC;AAAA,QACjB;AAKM,cAAMC,IAAkB,CAAA,GAClBC,IAAiB,CAAA;AACvB,eAAO,KAAKlE,CAAW,EAAE,QAAQ,CAAAnB,MAAO;AACtC,UAAIA,EAAI,WAAW,QAAQ,IACzBoF,EAAgB,KAAKpF,CAAG,IAExBqF,EAAe,KAAKrF,CAAG;AAAA,QAE3B,CAAC,GAIDoF,EAAgB,QAAQ,CAAAE,MAAa;AACnC,UAAAC,EAAUlG,EAAe8B,EAAYmE,CAAS,GAAG/F,KAAc,EAAK,GAAG,UAAU+F,CAAS,IAAI;AAAA,YAC5F,GAAGJ;AAAA,YACH,SAAS;AAAA,UACnB,CAAS;AAAA,QACH,CAAC;AAID,cAAMrD,IAAQ0D,EAAUjG,GAAUqF,GAASO,CAAe;AAC1D,QAAArD,EAAM2D,CAAkB,IAAI3B,EAAM,YAG9BrB,EAAQ,IAAI,aAAa,gBAC3BX,EAAM,aAAa4D,GAAiBnF,EAAS,KAAK,GAAG,CAAC,GAKxD+E,EAAe,QAAQ,CAAAC,MAAa;AAClC,UAAAC,EAAUlG,EAAe8B,EAAYmE,CAAS,GAAG/F,KAAc,EAAK,GAAG,WAAW+F,CAAS,IAAIJ,CAAe;AAAA,QAChH,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EAAC;AACH;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"useStyleRegister.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport * as React from 'react';\n// @ts-ignore\nimport unitless from '@emotion/unitless';\nimport { compile, middleware, prefixer, serialize, stringify } from 'stylis';\nimport { contentQuotesLinter, hashedAnimationLinter } from \"../linters\";\nimport StyleContext, { ATTR_CACHE_PATH, ATTR_MARK, CSS_IN_JS_INSTANCE } from \"../StyleContext\";\nimport { isClientSide, isNonNullable, toStyleStr, where } from \"../util\";\nimport { CSS_FILE_STYLE, existPath, getStyleAndHash } from \"../util/cacheMapUtil\";\nimport useGlobalCache from \"./useGlobalCache\";\nconst SKIP_CHECK = '_skip_check_';\nconst MULTI_VALUE = '_multi_value_';\n// ============================================================================\n// == Parser ==\n// ============================================================================\n// Preprocessor style content to browser support one\nexport function normalizeStyle(styleStr, autoPrefix) {\n const serialized = autoPrefix ? serialize(compile(styleStr), middleware([prefixer, stringify])) : serialize(compile(styleStr), stringify);\n return serialized.replace(/\\{%%%\\:[^;];}/g, ';');\n}\nfunction isCompoundCSSProperty(value) {\n return typeof value === 'object' && value && (SKIP_CHECK in value || MULTI_VALUE in value);\n}\n\n// 注入 hash 值\nfunction injectSelectorHash(key, hashId, hashPriority = 'high') {\n if (!hashId) {\n return key;\n }\n const hashSelector = where({\n hashCls: hashId,\n hashPriority\n });\n\n // 注入 hashId\n const keys = key.split(',').map(k => {\n const fullPath = k.trim().split(/\\s+/);\n\n // 如果 Selector 第一个是 HTML Element,那我们就插到它的后面。反之,就插到最前面。\n let firstPath = fullPath[0] || '';\n const htmlElement = firstPath.match(/^\\w+/)?.[0] || '';\n firstPath = `${htmlElement}${hashSelector}${firstPath.slice(htmlElement.length)}`;\n return [firstPath, ...fullPath.slice(1)].join(' ');\n });\n return keys.join(',');\n}\n// Parse CSSObject to style content\nexport const parseStyle = (interpolation, config = {}, {\n root,\n injectHash,\n parentSelectors\n} = {\n root: true,\n parentSelectors: []\n}) => {\n const {\n hashId,\n layer,\n path,\n hashPriority,\n transformers = [],\n linters = []\n } = config;\n let styleStr = '';\n let effectStyle = {};\n function parseKeyframes(keyframes) {\n const animationName = keyframes.getName(hashId);\n if (!effectStyle[animationName]) {\n const [parsedStr] = parseStyle(keyframes.style, config, {\n root: false,\n parentSelectors\n });\n effectStyle[animationName] = `@keyframes ${keyframes.getName(hashId)}${parsedStr}`;\n }\n }\n function flattenList(list, fullList = []) {\n list.forEach(item => {\n if (Array.isArray(item)) {\n flattenList(item, fullList);\n } else if (item) {\n fullList.push(item);\n }\n });\n return fullList;\n }\n const flattenStyleList = flattenList(Array.isArray(interpolation) ? interpolation : [interpolation]);\n flattenStyleList.forEach(originStyle => {\n // Only root level can use raw string\n const style = typeof originStyle === 'string' && !root ? {} : originStyle;\n if (typeof style === 'string') {\n styleStr += `${style}\\n`;\n } else if (style._keyframe) {\n // Keyframe\n parseKeyframes(style);\n } else {\n const mergedStyle = transformers.reduce((prev, trans) => trans?.visit?.(prev) || prev, style);\n\n // Normal CSSObject\n Object.keys(mergedStyle).forEach(key => {\n const value = mergedStyle[key];\n if (typeof value === 'object' && value && (key !== 'animationName' || !value._keyframe) && !isCompoundCSSProperty(value)) {\n let subInjectHash = false;\n\n // 当成嵌套对象来处理\n let mergedKey = key.trim();\n // Whether treat child as root. In most case it is false.\n let nextRoot = false;\n\n // 拆分多个选择器\n if ((root || injectHash) && hashId) {\n if (mergedKey.startsWith('@')) {\n // 略过媒体查询,交给子节点继续插入 hashId\n subInjectHash = true;\n } else if (mergedKey === '&') {\n // 抹掉 root selector 上的单个 &\n mergedKey = injectSelectorHash('', hashId, hashPriority);\n } else {\n // 注入 hashId\n mergedKey = injectSelectorHash(key, hashId, hashPriority);\n }\n } else if (root && !hashId && (mergedKey === '&' || mergedKey === '')) {\n // In case of `{ '&': { a: { color: 'red' } } }` or `{ '': { a: { color: 'red' } } }` without hashId,\n // we will get `&{a:{color:red;}}` or `{a:{color:red;}}` string for stylis to compile.\n // But it does not conform to stylis syntax,\n // and finally we will get `{color:red;}` as css, which is wrong.\n // So we need to remove key in root, and treat child `{ a: { color: 'red' } }` as root.\n mergedKey = '';\n nextRoot = true;\n }\n const [parsedStr, childEffectStyle] = parseStyle(value, config, {\n root: nextRoot,\n injectHash: subInjectHash,\n parentSelectors: [...parentSelectors, mergedKey]\n });\n effectStyle = {\n ...effectStyle,\n ...childEffectStyle\n };\n styleStr += `${mergedKey}${parsedStr}`;\n } else {\n function appendStyle(cssKey, cssValue) {\n if (process.env.NODE_ENV !== 'production' && (typeof value !== 'object' || !value?.[SKIP_CHECK])) {\n [contentQuotesLinter, hashedAnimationLinter, ...linters].forEach(linter => linter(cssKey, cssValue, {\n path,\n hashId,\n parentSelectors\n }));\n }\n\n // 如果是样式则直接插入\n const styleName = cssKey.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`);\n\n // Auto suffix with px\n let formatValue = cssValue;\n if (!unitless[cssKey] && typeof formatValue === 'number' && formatValue !== 0) {\n formatValue = `${formatValue}px`;\n }\n\n // handle animationName & Keyframe value\n if (cssKey === 'animationName' && cssValue?._keyframe) {\n parseKeyframes(cssValue);\n formatValue = cssValue.getName(hashId);\n }\n styleStr += `${styleName}:${formatValue};`;\n }\n const actualValue = value?.value ?? value;\n if (typeof value === 'object' && value?.[MULTI_VALUE] && Array.isArray(actualValue)) {\n actualValue.forEach(item => {\n appendStyle(key, item);\n });\n } else {\n if (isNonNullable(actualValue)) {\n appendStyle(key, actualValue);\n }\n }\n }\n });\n }\n });\n if (!root) {\n styleStr = `{${styleStr}}`;\n } else if (layer) {\n // fixme: https://github.com/thysultan/stylis/pull/339\n if (styleStr) {\n styleStr = `@layer ${layer.name} {${styleStr}}`;\n }\n if (layer.dependencies) {\n effectStyle[`@layer ${layer.name}`] = layer.dependencies.map(deps => `@layer ${deps}, ${layer.name};`).join('\\n');\n }\n }\n return [styleStr, effectStyle];\n};\n\n// ============================================================================\n// == Register ==\n// ============================================================================\nexport function uniqueHash(path, styleStr) {\n return hash(`${path.join('%')}${styleStr}`);\n}\nexport const STYLE_PREFIX = 'style';\n/**\n * Register a style to the global style sheet.\n */\nexport default function useStyleRegister(info, styleFn) {\n const {\n path,\n hashId,\n layer,\n nonce,\n clientOnly,\n order = 0\n } = info;\n const {\n mock,\n hashPriority,\n container,\n transformers,\n linters,\n cache,\n layer: enableLayer,\n autoPrefix\n } = React.useContext(StyleContext);\n const fullPath = [hashId || ''];\n if (enableLayer) {\n fullPath.push('layer');\n }\n fullPath.push(...path);\n\n // Check if need insert style\n let isMergedClientSide = isClientSide;\n if (process.env.NODE_ENV !== 'production' && mock !== undefined) {\n isMergedClientSide = mock === 'client';\n }\n useGlobalCache(STYLE_PREFIX, fullPath,\n // Create cache if needed\n () => {\n const cachePath = fullPath.join('|');\n\n // Get style from SSR inline style directly\n if (existPath(cachePath)) {\n const [inlineCacheStyleStr, styleHash] = getStyleAndHash(cachePath);\n if (inlineCacheStyleStr) {\n return [inlineCacheStyleStr, styleHash, {}, clientOnly, order];\n }\n }\n\n // Generate style\n const styleObj = styleFn();\n const [parsedStyle, effectStyle] = parseStyle(styleObj, {\n hashId,\n hashPriority,\n layer: enableLayer ? layer : undefined,\n path: path.join('-'),\n transformers,\n linters\n });\n const styleStr = normalizeStyle(parsedStyle, autoPrefix || false);\n const styleId = uniqueHash(fullPath, styleStr);\n return [styleStr, styleId, effectStyle, clientOnly, order];\n },\n // Remove cache if no need\n (cacheValue, fromHMR) => {\n const [, styleId] = cacheValue;\n if (fromHMR && isClientSide) {\n removeCSS(styleId, {\n mark: ATTR_MARK,\n attachTo: container\n });\n }\n },\n // Effect: Inject style here\n cacheValue => {\n const [styleStr, styleId, effectStyle,, priority] = cacheValue;\n if (isMergedClientSide && styleStr !== CSS_FILE_STYLE) {\n const mergedCSSConfig = {\n mark: ATTR_MARK,\n prepend: enableLayer ? false : 'queue',\n attachTo: container,\n priority\n };\n const nonceStr = typeof nonce === 'function' ? nonce() : nonce;\n if (nonceStr) {\n mergedCSSConfig.csp = {\n nonce: nonceStr\n };\n }\n\n // ================= Split Effect Style =================\n // We will split effectStyle here since @layer should be at the top level\n const effectLayerKeys = [];\n const effectRestKeys = [];\n Object.keys(effectStyle).forEach(key => {\n if (key.startsWith('@layer')) {\n effectLayerKeys.push(key);\n } else {\n effectRestKeys.push(key);\n }\n });\n\n // ================= Inject Layer Style =================\n // Inject layer style\n effectLayerKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_layer-${effectKey}`, {\n ...mergedCSSConfig,\n prepend: true\n });\n });\n\n // ==================== Inject Style ====================\n // Inject style\n const style = updateCSS(styleStr, styleId, mergedCSSConfig);\n style[CSS_IN_JS_INSTANCE] = cache.instanceId;\n\n // Debug usage. Dev only\n if (process.env.NODE_ENV !== 'production') {\n style.setAttribute(ATTR_CACHE_PATH, fullPath.join('|'));\n }\n\n // ================ Inject Effect Style =================\n // Inject client side effect style\n effectRestKeys.forEach(effectKey => {\n updateCSS(normalizeStyle(effectStyle[effectKey], autoPrefix || false), `_effect-${effectKey}`, mergedCSSConfig);\n });\n }\n });\n}\nexport const extract = (cache, effectStyles, options) => {\n const [styleStr, styleId, effectStyle, clientOnly, order] = cache;\n const {\n plain,\n autoPrefix\n } = options || {};\n\n // Skip client only style\n if (clientOnly) {\n return null;\n }\n let keyStyleText = styleStr;\n\n // ====================== Share ======================\n // Used for @rc-component/util\n const sharedAttrs = {\n 'data-rc-order': 'prependQueue',\n 'data-rc-priority': `${order}`\n };\n\n // ====================== Style ======================\n keyStyleText = toStyleStr(styleStr, undefined, styleId, sharedAttrs, plain);\n\n // =============== Create effect style ===============\n if (effectStyle) {\n Object.keys(effectStyle).forEach(effectKey => {\n // Effect style can be reused\n if (!effectStyles[effectKey]) {\n effectStyles[effectKey] = true;\n const effectStyleStr = normalizeStyle(effectStyle[effectKey], autoPrefix || false);\n const effectStyleHTML = toStyleStr(effectStyleStr, undefined, `_effect-${effectKey}`, sharedAttrs, plain);\n if (effectKey.startsWith('@layer')) {\n keyStyleText = effectStyleHTML + keyStyleText;\n } else {\n keyStyleText += effectStyleHTML;\n }\n }\n });\n }\n return [order, styleId, keyStyleText];\n};"],"names":["SKIP_CHECK","MULTI_VALUE","normalizeStyle","styleStr","autoPrefix","serialize","compile","middleware","prefixer","stringify","isCompoundCSSProperty","value","injectSelectorHash","key","hashId","hashPriority","hashSelector","where","k","fullPath","firstPath","htmlElement","parseStyle","interpolation","config","root","injectHash","parentSelectors","layer","path","transformers","linters","effectStyle","parseKeyframes","keyframes","animationName","parsedStr","flattenList","list","fullList","item","originStyle","style","mergedStyle","prev","trans","subInjectHash","mergedKey","nextRoot","childEffectStyle","appendStyle","cssKey","cssValue","process","contentQuotesLinter","hashedAnimationLinter","linter","styleName","match","formatValue","unitless","actualValue","isNonNullable","deps","uniqueHash","hash","STYLE_PREFIX","useStyleRegister","info","styleFn","nonce","clientOnly","order","mock","container","cache","enableLayer","React","StyleContext","isMergedClientSide","isClientSide","useGlobalCache","cachePath","existPath","inlineCacheStyleStr","styleHash","getStyleAndHash","styleObj","parsedStyle","styleId","cacheValue","fromHMR","removeCSS","ATTR_MARK","priority","CSS_FILE_STYLE","mergedCSSConfig","nonceStr","effectLayerKeys","effectRestKeys","effectKey","updateCSS","CSS_IN_JS_INSTANCE","ATTR_CACHE_PATH"],"mappings":";;;;;;;;;;;;;;AAWA,MAAMA,IAAa,gBACbC,IAAc;AAKb,SAASC,EAAeC,GAAUC,GAAY;AAEnD,UADmBA,IAAaC,EAAUC,EAAQH,CAAQ,GAAGI,GAAW,CAACC,IAAUC,CAAS,CAAC,CAAC,IAAIJ,EAAUC,EAAQH,CAAQ,GAAGM,CAAS,GACtH,QAAQ,kBAAkB,GAAG;AACjD;AACA,SAASC,GAAsBC,GAAO;AACpC,SAAO,OAAOA,KAAU,YAAYA,MAAUX,KAAcW,KAASV,KAAeU;AACtF;AAGA,SAASC,EAAmBC,GAAKC,GAAQC,IAAe,QAAQ;AAC9D,MAAI,CAACD;AACH,W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A,QACH,CAAC;AAID,cAAMtD,IAAQ2D,EAAUlG,GAAUsF,GAASO,CAAe;AAC1D,QAAAtD,EAAM4D,CAAkB,IAAI3B,EAAM,YAG9BtB,EAAQ,IAAI,aAAa,gBAC3BX,EAAM,aAAa6D,GAAiBpF,EAAS,KAAK,GAAG,CAAC,GAKxDgF,EAAe,QAAQ,CAAAC,MAAa;AAClC,UAAAC,EAAUnG,EAAe8B,EAAYoE,CAAS,GAAGhG,KAAc,EAAK,GAAG,WAAWgG,CAAS,IAAIJ,CAAe;AAAA,QAChH,CAAC;AAAA,MACH;AAAA,IACF;AAAA,EAAC;AACH;","x_google_ignoreList":[0]}
|
|
@@ -1,46 +1,48 @@
|
|
|
1
1
|
import c from "../../../../@emotion/hash/dist/hash.browser.esm.js";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
function w(
|
|
6
|
-
let r =
|
|
7
|
-
for (let n = 0; n <
|
|
8
|
-
const o =
|
|
2
|
+
import u from "../../../../@rc-component/util/es/Dom/canUseDom.js";
|
|
3
|
+
import l from "../theme/Theme.js";
|
|
4
|
+
const a = /* @__PURE__ */ new WeakMap(), s = {};
|
|
5
|
+
function w(e, t) {
|
|
6
|
+
let r = a;
|
|
7
|
+
for (let n = 0; n < t.length; n += 1) {
|
|
8
|
+
const o = t[n];
|
|
9
9
|
r.has(o) || r.set(o, /* @__PURE__ */ new WeakMap()), r = r.get(o);
|
|
10
10
|
}
|
|
11
|
-
return r.has(s) || r.set(s,
|
|
11
|
+
return r.has(s) || r.set(s, e()), r.get(s);
|
|
12
12
|
}
|
|
13
13
|
const i = /* @__PURE__ */ new WeakMap();
|
|
14
|
-
function f(
|
|
15
|
-
let
|
|
16
|
-
return
|
|
17
|
-
const n =
|
|
18
|
-
|
|
19
|
-
}),
|
|
14
|
+
function f(e) {
|
|
15
|
+
let t = i.get(e) || "";
|
|
16
|
+
return t || (Object.keys(e).forEach((r) => {
|
|
17
|
+
const n = e[r];
|
|
18
|
+
t += r, n instanceof l ? t += n.id : n && typeof n == "object" ? t += f(n) : t += n;
|
|
19
|
+
}), t = c(t), i.set(e, t)), t;
|
|
20
20
|
}
|
|
21
|
-
function $(
|
|
22
|
-
return c(`${
|
|
21
|
+
function $(e, t) {
|
|
22
|
+
return c(`${t}_${f(e)}`);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
function
|
|
26
|
-
return typeof
|
|
24
|
+
const b = u();
|
|
25
|
+
function d(e) {
|
|
26
|
+
return typeof e == "number" ? `${e}px` : e;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function g(e) {
|
|
29
29
|
const {
|
|
30
|
-
hashCls:
|
|
30
|
+
hashCls: t,
|
|
31
31
|
hashPriority: r = "low"
|
|
32
|
-
} =
|
|
33
|
-
if (!
|
|
32
|
+
} = e || {};
|
|
33
|
+
if (!t)
|
|
34
34
|
return "";
|
|
35
|
-
const n = `.${
|
|
35
|
+
const n = `.${t}`;
|
|
36
36
|
return r === "low" ? `:where(${n})` : n;
|
|
37
37
|
}
|
|
38
|
+
const k = (e) => e != null;
|
|
38
39
|
export {
|
|
39
40
|
f as flattenToken,
|
|
40
|
-
|
|
41
|
+
b as isClientSide,
|
|
42
|
+
k as isNonNullable,
|
|
41
43
|
w as memoResult,
|
|
42
44
|
$ as token2key,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
d as unit,
|
|
46
|
+
g as where
|
|
45
47
|
};
|
|
46
48
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/util/index.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport canUseDom from \"@rc-component/util/es/Dom/canUseDom\";\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport { ATTR_MARK, ATTR_TOKEN } from \"../StyleContext\";\nimport { Theme } from \"../theme\";\n\n// Create a cache for memo concat\n\nconst resultCache = new WeakMap();\nconst RESULT_VALUE = {};\nexport function memoResult(callback, deps) {\n let current = resultCache;\n for (let i = 0; i < deps.length; i += 1) {\n const dep = deps[i];\n if (!current.has(dep)) {\n current.set(dep, new WeakMap());\n }\n current = current.get(dep);\n }\n if (!current.has(RESULT_VALUE)) {\n current.set(RESULT_VALUE, callback());\n }\n return current.get(RESULT_VALUE);\n}\n\n// Create a cache here to avoid always loop generate\nconst flattenTokenCache = new WeakMap();\n\n/**\n * Flatten token to string, this will auto cache the result when token not change\n */\nexport function flattenToken(token) {\n let str = flattenTokenCache.get(token) || '';\n if (!str) {\n Object.keys(token).forEach(key => {\n const value = token[key];\n str += key;\n if (value instanceof Theme) {\n str += value.id;\n } else if (value && typeof value === 'object') {\n str += flattenToken(value);\n } else {\n str += value;\n }\n });\n\n // https://github.com/ant-design/ant-design/issues/48386\n // Should hash the string to avoid style tag name too long\n str = hash(str);\n\n // Put in cache\n flattenTokenCache.set(token, str);\n }\n return str;\n}\n\n/**\n * Convert derivative token to key string\n */\nexport function token2key(token, salt) {\n return hash(`${salt}_${flattenToken(token)}`);\n}\nconst randomSelectorKey = `random-${Date.now()}-${Math.random()}`.replace(/\\./g, '');\n\n// Magic `content` for detect selector support\nconst checkContent = '_bAmBoO_';\nfunction supportSelector(styleStr, handleElement, supportCheck) {\n if (canUseDom()) {\n updateCSS(styleStr, randomSelectorKey);\n const ele = document.createElement('div');\n ele.style.position = 'fixed';\n ele.style.left = '0';\n ele.style.top = '0';\n handleElement?.(ele);\n document.body.appendChild(ele);\n if (process.env.NODE_ENV !== 'production') {\n ele.innerHTML = 'Test';\n ele.style.zIndex = '9999999';\n }\n const support = supportCheck ? supportCheck(ele) : getComputedStyle(ele).content?.includes(checkContent);\n ele.parentNode?.removeChild(ele);\n removeCSS(randomSelectorKey);\n return support;\n }\n return false;\n}\nlet canLayer = undefined;\nexport function supportLayer() {\n if (canLayer === undefined) {\n canLayer = supportSelector(`@layer ${randomSelectorKey} { .${randomSelectorKey} { content: \"${checkContent}\"!important; } }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canLayer;\n}\nlet canWhere = undefined;\nexport function supportWhere() {\n if (canWhere === undefined) {\n canWhere = supportSelector(`:where(.${randomSelectorKey}) { content: \"${checkContent}\"!important; }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canWhere;\n}\nlet canLogic = undefined;\nexport function supportLogicProps() {\n if (canLogic === undefined) {\n canLogic = supportSelector(`.${randomSelectorKey} { inset-block: 93px !important; }`, ele => {\n ele.className = randomSelectorKey;\n }, ele => getComputedStyle(ele).bottom === '93px');\n }\n return canLogic;\n}\nexport const isClientSide = canUseDom();\nexport function unit(num) {\n if (typeof num === 'number') {\n return `${num}px`;\n }\n return num;\n}\nexport function toStyleStr(style, tokenKey, styleId, customizeAttrs = {}, plain = false) {\n if (plain) {\n return style;\n }\n const attrs = {\n ...customizeAttrs,\n [ATTR_TOKEN]: tokenKey,\n [ATTR_MARK]: styleId\n };\n const attrStr = Object.keys(attrs).map(attr => {\n const val = attrs[attr];\n return val ? `${attr}=\"${val}\"` : null;\n }).filter(v => v).join(' ');\n return `<style ${attrStr}>${style}</style>`;\n}\nexport function where(options) {\n const {\n hashCls,\n hashPriority = 'low'\n } = options || {};\n if (!hashCls) {\n return '';\n }\n const hashSelector = `.${hashCls}`;\n return hashPriority === 'low' ? `:where(${hashSelector})` : hashSelector;\n}"],"names":["resultCache","RESULT_VALUE","memoResult","callback","deps","current","i","dep","flattenTokenCache","flattenToken","token","str","key","value","Theme","hash","token2key","salt","isClientSide","canUseDom","unit","num","where","options","hashCls","hashPriority","hashSelector"],"mappings":";;;AAQA,MAAMA,IAAc,oBAAI,QAAO,GACzBC,IAAe,CAAA;AACd,SAASC,EAAWC,GAAUC,GAAM;AACzC,MAAIC,IAAUL;AACd,WAASM,IAAI,GAAGA,IAAIF,EAAK,QAAQE,KAAK,GAAG;AACvC,UAAMC,IAAMH,EAAKE,CAAC;AAClB,IAAKD,EAAQ,IAAIE,CAAG,KAClBF,EAAQ,IAAIE,GAAK,oBAAI,QAAO,CAAE,GAEhCF,IAAUA,EAAQ,IAAIE,CAAG;AAAA,EAC3B;AACA,SAAKF,EAAQ,IAAIJ,CAAY,KAC3BI,EAAQ,IAAIJ,GAAcE,GAAU,GAE/BE,EAAQ,IAAIJ,CAAY;AACjC;AAGA,MAAMO,IAAoB,oBAAI,QAAO;AAK9B,SAASC,EAAaC,GAAO;AAClC,MAAIC,IAAMH,EAAkB,IAAIE,CAAK,KAAK;AAC1C,SAAKC,MACH,OAAO,KAAKD,CAAK,EAAE,QAAQ,CAAAE,MAAO;AAChC,UAAMC,IAAQH,EAAME,CAAG;AACvB,IAAAD,KAAOC,GACHC,aAAiBC,IACnBH,KAAOE,EAAM,KACJA,KAAS,OAAOA,KAAU,WACnCF,KAAOF,EAAaI,CAAK,IAEzBF,KAAOE;AAAA,EAEX,CAAC,GAIDF,IAAMI,EAAKJ,CAAG,GAGdH,EAAkB,IAAIE,GAAOC,CAAG,IAE3BA;AACT;AAKO,SAASK,EAAUN,GAAOO,GAAM;AACrC,SAAOF,EAAK,GAAGE,CAAI,IAAIR,EAAaC,CAAK,CAAC,EAAE;AAC9C;AAoDY,MAACQ,IAAeC,EAAS;AAC9B,SAASC,EAAKC,GAAK;AACxB,SAAI,OAAOA,KAAQ,WACV,GAAGA,CAAG,OAERA;AACT;AAgBO,SAASC,EAAMC,GAAS;AAC7B,QAAM;AAAA,IACJ,SAAAC;AAAA,IACA,cAAAC,IAAe;AAAA,EACnB,IAAMF,KAAW,CAAA;AACf,MAAI,CAACC;AACH,WAAO;AAET,QAAME,IAAe,IAAIF,CAAO;AAChC,SAAOC,MAAiB,QAAQ,UAAUC,CAAY,MAAMA;AAC9D;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@ant-design/cssinjs/es/util/index.js"],"sourcesContent":["import hash from '@emotion/hash';\nimport canUseDom from \"@rc-component/util/es/Dom/canUseDom\";\nimport { removeCSS, updateCSS } from \"@rc-component/util/es/Dom/dynamicCSS\";\nimport { ATTR_MARK, ATTR_TOKEN } from \"../StyleContext\";\nimport { Theme } from \"../theme\";\n\n// Create a cache for memo concat\n\nconst resultCache = new WeakMap();\nconst RESULT_VALUE = {};\nexport function memoResult(callback, deps) {\n let current = resultCache;\n for (let i = 0; i < deps.length; i += 1) {\n const dep = deps[i];\n if (!current.has(dep)) {\n current.set(dep, new WeakMap());\n }\n current = current.get(dep);\n }\n if (!current.has(RESULT_VALUE)) {\n current.set(RESULT_VALUE, callback());\n }\n return current.get(RESULT_VALUE);\n}\n\n// Create a cache here to avoid always loop generate\nconst flattenTokenCache = new WeakMap();\n\n/**\n * Flatten token to string, this will auto cache the result when token not change\n */\nexport function flattenToken(token) {\n let str = flattenTokenCache.get(token) || '';\n if (!str) {\n Object.keys(token).forEach(key => {\n const value = token[key];\n str += key;\n if (value instanceof Theme) {\n str += value.id;\n } else if (value && typeof value === 'object') {\n str += flattenToken(value);\n } else {\n str += value;\n }\n });\n\n // https://github.com/ant-design/ant-design/issues/48386\n // Should hash the string to avoid style tag name too long\n str = hash(str);\n\n // Put in cache\n flattenTokenCache.set(token, str);\n }\n return str;\n}\n\n/**\n * Convert derivative token to key string\n */\nexport function token2key(token, salt) {\n return hash(`${salt}_${flattenToken(token)}`);\n}\nconst randomSelectorKey = `random-${Date.now()}-${Math.random()}`.replace(/\\./g, '');\n\n// Magic `content` for detect selector support\nconst checkContent = '_bAmBoO_';\nfunction supportSelector(styleStr, handleElement, supportCheck) {\n if (canUseDom()) {\n updateCSS(styleStr, randomSelectorKey);\n const ele = document.createElement('div');\n ele.style.position = 'fixed';\n ele.style.left = '0';\n ele.style.top = '0';\n handleElement?.(ele);\n document.body.appendChild(ele);\n if (process.env.NODE_ENV !== 'production') {\n ele.innerHTML = 'Test';\n ele.style.zIndex = '9999999';\n }\n const support = supportCheck ? supportCheck(ele) : getComputedStyle(ele).content?.includes(checkContent);\n ele.parentNode?.removeChild(ele);\n removeCSS(randomSelectorKey);\n return support;\n }\n return false;\n}\nlet canLayer = undefined;\nexport function supportLayer() {\n if (canLayer === undefined) {\n canLayer = supportSelector(`@layer ${randomSelectorKey} { .${randomSelectorKey} { content: \"${checkContent}\"!important; } }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canLayer;\n}\nlet canWhere = undefined;\nexport function supportWhere() {\n if (canWhere === undefined) {\n canWhere = supportSelector(`:where(.${randomSelectorKey}) { content: \"${checkContent}\"!important; }`, ele => {\n ele.className = randomSelectorKey;\n });\n }\n return canWhere;\n}\nlet canLogic = undefined;\nexport function supportLogicProps() {\n if (canLogic === undefined) {\n canLogic = supportSelector(`.${randomSelectorKey} { inset-block: 93px !important; }`, ele => {\n ele.className = randomSelectorKey;\n }, ele => getComputedStyle(ele).bottom === '93px');\n }\n return canLogic;\n}\nexport const isClientSide = canUseDom();\nexport function unit(num) {\n if (typeof num === 'number') {\n return `${num}px`;\n }\n return num;\n}\nexport function toStyleStr(style, tokenKey, styleId, customizeAttrs = {}, plain = false) {\n if (plain) {\n return style;\n }\n const attrs = {\n ...customizeAttrs,\n [ATTR_TOKEN]: tokenKey,\n [ATTR_MARK]: styleId\n };\n const attrStr = Object.keys(attrs).map(attr => {\n const val = attrs[attr];\n return val ? `${attr}=\"${val}\"` : null;\n }).filter(v => v).join(' ');\n return `<style ${attrStr}>${style}</style>`;\n}\nexport function where(options) {\n const {\n hashCls,\n hashPriority = 'low'\n } = options || {};\n if (!hashCls) {\n return '';\n }\n const hashSelector = `.${hashCls}`;\n return hashPriority === 'low' ? `:where(${hashSelector})` : hashSelector;\n}\nexport const isNonNullable = val => {\n return val !== undefined && val !== null;\n};"],"names":["resultCache","RESULT_VALUE","memoResult","callback","deps","current","i","dep","flattenTokenCache","flattenToken","token","str","key","value","Theme","hash","token2key","salt","isClientSide","canUseDom","unit","num","where","options","hashCls","hashPriority","hashSelector","isNonNullable","val"],"mappings":";;;AAQA,MAAMA,IAAc,oBAAI,Q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,QAAQ,UAAUC,CAAY,MAAMA;AAC9D;AACY,MAACC,IAAgB,CAAAC,MACCA,KAAQ;","x_google_ignoreList":[0]}
|
|
@@ -33,9 +33,9 @@ var M = /* @__PURE__ */ (function() {
|
|
|
33
33
|
key: "validate",
|
|
34
34
|
value: function(t) {
|
|
35
35
|
var u = this, m = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, k = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function() {
|
|
36
|
-
},
|
|
36
|
+
}, f = t, n = m, E = k;
|
|
37
37
|
if (typeof n == "function" && (E = n, n = {}), !this.rules || Object.keys(this.rules).length === 0)
|
|
38
|
-
return E && E(null,
|
|
38
|
+
return E && E(null, f), Promise.resolve(f);
|
|
39
39
|
function B(r) {
|
|
40
40
|
var a = [], e = {};
|
|
41
41
|
function v(o) {
|
|
@@ -47,7 +47,7 @@ var M = /* @__PURE__ */ (function() {
|
|
|
47
47
|
}
|
|
48
48
|
for (var i = 0; i < r.length; i++)
|
|
49
49
|
v(r[i]);
|
|
50
|
-
a.length ? (e = N(a), E(a, e)) : E(null,
|
|
50
|
+
a.length ? (e = N(a), E(a, e)) : E(null, f);
|
|
51
51
|
}
|
|
52
52
|
if (n.messages) {
|
|
53
53
|
var j = this.messages();
|
|
@@ -56,38 +56,38 @@ var M = /* @__PURE__ */ (function() {
|
|
|
56
56
|
n.messages = this.messages();
|
|
57
57
|
var O = {}, D = n.keys || Object.keys(this.rules);
|
|
58
58
|
return D.forEach(function(r) {
|
|
59
|
-
var a = u.rules[r], e =
|
|
59
|
+
var a = u.rules[r], e = f[r];
|
|
60
60
|
a.forEach(function(v) {
|
|
61
61
|
var i = v;
|
|
62
|
-
typeof i.transform == "function" && (
|
|
62
|
+
typeof i.transform == "function" && (f === t && (f = b({}, f)), e = f[r] = i.transform(e), e != null && (i.type = i.type || (Array.isArray(e) ? "array" : C(e)))), typeof i == "function" ? i = {
|
|
63
63
|
validator: i
|
|
64
64
|
} : i = b({}, i), i.validator = u.getValidationMethod(i), i.validator && (i.field = r, i.fullField = i.fullField || r, i.type = u.getType(i), O[r] = O[r] || [], O[r].push({
|
|
65
65
|
rule: i,
|
|
66
66
|
value: e,
|
|
67
|
-
source:
|
|
67
|
+
source: f,
|
|
68
68
|
field: r
|
|
69
69
|
}));
|
|
70
70
|
});
|
|
71
71
|
}), K(O, n, function(r, a) {
|
|
72
72
|
var e = r.rule, v = (e.type === "object" || e.type === "array") && (C(e.fields) === "object" || C(e.defaultField) === "object");
|
|
73
73
|
v = v && (e.required || !e.required && r.value), e.field = r.field;
|
|
74
|
-
function i(
|
|
74
|
+
function i(l, y) {
|
|
75
75
|
return b(b({}, y), {}, {
|
|
76
|
-
fullField: "".concat(e.fullField, ".").concat(
|
|
77
|
-
fullFields: e.fullFields ? [].concat(q(e.fullFields), [
|
|
76
|
+
fullField: "".concat(e.fullField, ".").concat(l),
|
|
77
|
+
fullFields: e.fullFields ? [].concat(q(e.fullFields), [l]) : [l]
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
80
|
function o() {
|
|
81
|
-
var
|
|
82
|
-
!n.suppressWarning && y.length && h.warning("async-validator:", y), y.length && e.message !== void 0 && (y = [].concat(e.message));
|
|
83
|
-
var p = y.map(W(e,
|
|
81
|
+
var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], y = Array.isArray(l) ? l : [l];
|
|
82
|
+
!n.suppressWarning && y.length && h.warning("async-validator:", y), y.length && e.message !== void 0 && e.message !== null && (y = [].concat(e.message));
|
|
83
|
+
var p = y.map(W(e, f));
|
|
84
84
|
if (n.first && p.length)
|
|
85
85
|
return a(p);
|
|
86
86
|
if (!v)
|
|
87
87
|
a(p);
|
|
88
88
|
else {
|
|
89
89
|
if (e.required && !r.value)
|
|
90
|
-
return e.message !== void 0 ? p = [].concat(e.message).map(W(e,
|
|
90
|
+
return e.message !== void 0 ? p = [].concat(e.message).map(W(e, f)) : n.error && (p = [n.error(e, U(n.messages.required, e.field))]), a(p);
|
|
91
91
|
var A = {};
|
|
92
92
|
e.defaultField && Object.keys(r.value).map(function(d) {
|
|
93
93
|
A[d] = e.defaultField;
|
|
@@ -110,22 +110,22 @@ var M = /* @__PURE__ */ (function() {
|
|
|
110
110
|
else if (e.validator) {
|
|
111
111
|
try {
|
|
112
112
|
s = e.validator(e, r.value, o, r.source, n);
|
|
113
|
-
} catch (
|
|
113
|
+
} catch (l) {
|
|
114
114
|
var V, _;
|
|
115
|
-
(V = (_ = console).error) === null || V === void 0 || V.call(_,
|
|
116
|
-
throw
|
|
117
|
-
}, 0), o(
|
|
115
|
+
(V = (_ = console).error) === null || V === void 0 || V.call(_, l), n.suppressValidatorError || setTimeout(function() {
|
|
116
|
+
throw l;
|
|
117
|
+
}, 0), o(l.message);
|
|
118
118
|
}
|
|
119
119
|
s === !0 ? o() : s === !1 ? o(typeof e.message == "function" ? e.message(e.fullField || e.field) : e.message || "".concat(e.fullField || e.field, " fails")) : s instanceof Array ? o(s) : s instanceof Error && o(s.message);
|
|
120
120
|
}
|
|
121
121
|
s && s.then && s.then(function() {
|
|
122
122
|
return o();
|
|
123
|
-
}, function(
|
|
124
|
-
return o(
|
|
123
|
+
}, function(l) {
|
|
124
|
+
return o(l);
|
|
125
125
|
});
|
|
126
126
|
}, function(r) {
|
|
127
127
|
B(r);
|
|
128
|
-
},
|
|
128
|
+
}, f);
|
|
129
129
|
}
|
|
130
130
|
}, {
|
|
131
131
|
key: "getType",
|