tntd 2.0.1 → 2.0.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/es/ellipsis/index.js +1 -1
- package/es/ellipsis/index.js.map +1 -1
- package/es/exception/exception.js +34 -0
- package/es/exception/exception.js.map +1 -0
- package/es/exception/exception.less +29 -0
- package/es/exception/index.js +5 -0
- package/es/exception/index.js.map +1 -0
- package/es/handle/index.js +52 -33
- package/es/handle/index.js.map +1 -1
- package/es/index.js +2 -0
- package/es/index.js.map +1 -1
- package/es/locale/default.js +3 -2
- package/es/locale/default.js.map +1 -1
- package/es/locale/en_US.js +13 -1
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +13 -1
- package/es/locale/zh_CN.js.map +1 -1
- package/es/page/index.js +1 -1
- package/es/page/index.js.map +1 -1
- package/es/prev-locale.js +7 -1
- package/es/prev-locale.js.map +1 -1
- package/es/steps/index.js +3 -2
- package/es/steps/index.js.map +1 -1
- package/es/steps/steps.js +46 -0
- package/es/steps/steps.js.map +1 -0
- package/es/steps/style/index.less +11 -0
- package/es/steps/style/nav.less +273 -0
- package/es/steps/style/small.less +5 -0
- package/es/tntd-cascader/AntdCascader/component/DisabledContext.js +8 -0
- package/es/tntd-cascader/AntdCascader/component/DisabledContext.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/FormItemInputContext.js +3 -0
- package/es/tntd-cascader/AntdCascader/component/FormItemInputContext.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/SizeContext.js +3 -0
- package/es/tntd-cascader/AntdCascader/component/SizeContext.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/context.js +14 -0
- package/es/tntd-cascader/AntdCascader/component/context.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +20 -0
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +52 -0
- package/es/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +24 -0
- package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/config/utils.js +24 -0
- package/es/tntd-cascader/AntdCascader/config/utils.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/config/warning.js +15 -0
- package/es/tntd-cascader/AntdCascader/config/warning.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/index.css +2327 -0
- package/es/tntd-cascader/AntdCascader/index.js +149 -0
- package/es/tntd-cascader/AntdCascader/index.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/interface.js +5 -0
- package/es/tntd-cascader/AntdCascader/interface.js.map +1 -0
- package/es/tntd-cascader/img/no-data-s.png +0 -0
- package/es/tntd-cascader/index.js +2 -0
- package/es/tntd-cascader/index.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/Cascader.js +270 -0
- package/es/tntd-cascader/rc-cascader/Cascader.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +14 -0
- package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +126 -0
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +140 -0
- package/es/tntd-cascader/rc-cascader/OptionList/index.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +24 -0
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +145 -0
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/context.js +4 -0
- package/es/tntd-cascader/rc-cascader/context.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +41 -0
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +30 -0
- package/es/tntd-cascader/rc-cascader/hooks/useEntities.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +19 -0
- package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +15 -0
- package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +26 -0
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +46 -0
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/index.js +3 -0
- package/es/tntd-cascader/rc-cascader/index.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/index.less +19 -0
- package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +41 -0
- package/es/tntd-cascader/rc-cascader/utils/commonUtil.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +37 -0
- package/es/tntd-cascader/rc-cascader/utils/treeUtil.js.map +1 -0
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +30 -0
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js.map +1 -0
- package/es/tntd-layout/Avatar.js +25 -19
- package/es/tntd-layout/Avatar.js.map +1 -1
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +10 -8
- package/es/tntd-layout/EnterpriseLayout/Avatar.js.map +1 -1
- package/es/tntd-layout/EnterpriseLayout/Language.js +5 -4
- package/es/tntd-layout/EnterpriseLayout/Language.js.map +1 -1
- package/es/tntd-layout/EnterpriseLayout/Theme.js +7 -6
- package/es/tntd-layout/EnterpriseLayout/Theme.js.map +1 -1
- package/es/tntd-layout/HeaderActions.js +5 -4
- package/es/tntd-layout/HeaderActions.js.map +1 -1
- package/es/tntd-layout/Layout.js +2 -2
- package/es/tntd-layout/Layout.js.map +1 -1
- package/es/tntd-layout/SideMenu.js.map +1 -1
- package/es/tntd-layout/index.js +2 -2
- package/es/tntd-layout/index.js.map +1 -1
- package/es/tntd-layout/storage.js +10 -2
- package/es/tntd-layout/storage.js.map +1 -1
- package/lib/ellipsis/index.js +1 -1
- package/lib/ellipsis/index.js.map +1 -1
- package/lib/exception/exception.d.ts +16 -0
- package/lib/exception/exception.d.ts.map +1 -0
- package/lib/exception/exception.js +41 -0
- package/lib/exception/exception.js.map +1 -0
- package/lib/exception/exception.less +29 -0
- package/lib/exception/index.d.ts +5 -0
- package/lib/exception/index.d.ts.map +1 -0
- package/lib/exception/index.js +21 -0
- package/lib/exception/index.js.map +1 -0
- package/lib/handle/index.d.ts.map +1 -1
- package/lib/handle/index.js +52 -33
- package/lib/handle/index.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +5 -1
- package/lib/index.js.map +1 -1
- package/lib/locale/default.d.ts +13 -1
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/default.js +3 -3
- package/lib/locale/default.js.map +1 -1
- package/lib/locale/en_US.d.ts +13 -1
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +13 -2
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +13 -1
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +13 -2
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/page/index.js +1 -1
- package/lib/page/index.js.map +1 -1
- package/lib/prev-locale.d.ts +6 -0
- package/lib/prev-locale.d.ts.map +1 -1
- package/lib/prev-locale.js +7 -1
- package/lib/prev-locale.js.map +1 -1
- package/lib/steps/index.d.ts +3 -2
- package/lib/steps/index.d.ts.map +1 -1
- package/lib/steps/index.js +4 -6
- package/lib/steps/index.js.map +1 -1
- package/lib/steps/steps.d.ts +12 -0
- package/lib/steps/steps.d.ts.map +1 -0
- package/lib/steps/steps.js +67 -0
- package/lib/steps/steps.js.map +1 -0
- package/lib/steps/style/index.less +11 -0
- package/lib/steps/style/nav.less +273 -0
- package/lib/steps/style/small.less +5 -0
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.d.ts +10 -0
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +35 -0
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.d.ts +4 -0
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +29 -0
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.d.ts +4 -0
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +29 -0
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/context.d.ts +42 -0
- package/lib/tntd-cascader/AntdCascader/component/context.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/context.js +20 -0
- package/lib/tntd-cascader/AntdCascader/component/context.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts +5 -0
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +48 -0
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/getIcons.d.ts +25 -0
- package/lib/tntd-cascader/AntdCascader/component/getIcons.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +78 -0
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.d.ts +9 -0
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +54 -0
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/config/utils.d.ts +6 -0
- package/lib/tntd-cascader/AntdCascader/config/utils.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/config/utils.js +34 -0
- package/lib/tntd-cascader/AntdCascader/config/utils.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/config/warning.d.ts +4 -0
- package/lib/tntd-cascader/AntdCascader/config/warning.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/config/warning.js +40 -0
- package/lib/tntd-cascader/AntdCascader/config/warning.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/index.css +2327 -0
- package/lib/tntd-cascader/AntdCascader/index.d.ts +44 -0
- package/lib/tntd-cascader/AntdCascader/index.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/index.js +177 -0
- package/lib/tntd-cascader/AntdCascader/index.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/interface.d.ts +25 -0
- package/lib/tntd-cascader/AntdCascader/interface.d.ts.map +1 -0
- package/lib/tntd-cascader/AntdCascader/interface.js +9 -0
- package/lib/tntd-cascader/AntdCascader/interface.js.map +1 -0
- package/lib/tntd-cascader/img/no-data-s.png +0 -0
- package/lib/tntd-cascader/index.d.ts +2 -0
- package/lib/tntd-cascader/index.d.ts.map +1 -0
- package/lib/tntd-cascader/index.js +9 -0
- package/lib/tntd-cascader/index.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/Cascader.d.ts +92 -0
- package/lib/tntd-cascader/rc-cascader/Cascader.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/Cascader.js +298 -0
- package/lib/tntd-cascader/rc-cascader/Cascader.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts +10 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +43 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts +26 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +156 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/index.d.ts +5 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/index.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +168 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.d.ts +7 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +52 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.d.ts +6 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +173 -0
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/context.d.ts +26 -0
- package/lib/tntd-cascader/rc-cascader/context.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/context.js +29 -0
- package/lib/tntd-cascader/rc-cascader/context.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.d.ts +11 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +66 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.d.ts +11 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +55 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.d.ts +4 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +44 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.d.ts +6 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +41 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.d.ts +3 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +55 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.d.ts +5 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +72 -0
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/index.d.ts +4 -0
- package/lib/tntd-cascader/rc-cascader/index.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/index.js +8 -0
- package/lib/tntd-cascader/rc-cascader/index.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/index.less +19 -0
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.d.ts +11 -0
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +50 -0
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.d.ts +10 -0
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +42 -0
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js.map +1 -0
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.d.ts +5 -0
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.d.ts.map +1 -0
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +37 -0
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js.map +1 -0
- package/lib/tntd-layout/Avatar.d.ts.map +1 -1
- package/lib/tntd-layout/Avatar.js +25 -19
- package/lib/tntd-layout/Avatar.js.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Avatar.d.ts.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +10 -8
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Language.js +4 -3
- package/lib/tntd-layout/EnterpriseLayout/Language.js.map +1 -1
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -5
- package/lib/tntd-layout/EnterpriseLayout/Theme.js.map +1 -1
- package/lib/tntd-layout/HeaderActions.js +5 -4
- package/lib/tntd-layout/HeaderActions.js.map +1 -1
- package/lib/tntd-layout/Layout.js +2 -2
- package/lib/tntd-layout/Layout.js.map +1 -1
- package/lib/tntd-layout/SideMenu.js.map +1 -1
- package/lib/tntd-layout/index.d.ts.map +1 -1
- package/lib/tntd-layout/index.js +2 -2
- package/lib/tntd-layout/index.js.map +1 -1
- package/lib/tntd-layout/storage.d.ts +3 -2
- package/lib/tntd-layout/storage.d.ts.map +1 -1
- package/lib/tntd-layout/storage.js +15 -3
- package/lib/tntd-layout/storage.js.map +1 -1
- package/package.json +11 -2
- package/es/array-input/style/index.js +0 -2
- package/es/array-input/style/index.js.map +0 -1
- package/es/auth-context/style/index.js +0 -2
- package/es/auth-context/style/index.js.map +0 -1
- package/es/development-login/style/index.js +0 -2
- package/es/development-login/style/index.js.map +0 -1
- package/es/ellipsis/style/index.js +0 -2
- package/es/ellipsis/style/index.js.map +0 -1
- package/es/empty/render-empty.js +0 -19
- package/es/empty/render-empty.js.map +0 -1
- package/es/empty/style/index.js +0 -3
- package/es/empty/style/index.js.map +0 -1
- package/es/handle/style/index.js +0 -2
- package/es/handle/style/index.js.map +0 -1
- package/es/icon-list/style/index.js +0 -120
- package/es/icon-list/style/index.js.map +0 -1
- package/es/img/style/index.js +0 -2
- package/es/img/style/index.js.map +0 -1
- package/es/loading-button/style/index.js +0 -2
- package/es/loading-button/style/index.js.map +0 -1
- package/es/page/style/index.js +0 -2
- package/es/page/style/index.js.map +0 -1
- package/es/query-form/style/index.js +0 -2
- package/es/query-form/style/index.js.map +0 -1
- package/es/query-list-scene/style/index.js +0 -2
- package/es/query-list-scene/style/index.js.map +0 -1
- package/es/render-empty/style/index.js +0 -2
- package/es/render-empty/style/index.js.map +0 -1
- package/es/table/style/index.js +0 -3
- package/es/table/style/index.js.map +0 -1
- package/es/title/style/index.js +0 -2
- package/es/title/style/index.js.map +0 -1
- package/es/tntd-icon/style/index.js +0 -2
- package/es/tntd-icon/style/index.js.map +0 -1
- package/es/tntd-layout/style/index.js +0 -2
- package/es/tntd-layout/style/index.js.map +0 -1
- package/es/tntd-modal/style/index.js +0 -2
- package/es/tntd-modal/style/index.js.map +0 -1
- package/es/tntd-select/style/index.js +0 -2
- package/es/tntd-select/style/index.js.map +0 -1
- package/lib/array-input/style/index.d.ts +0 -1
- package/lib/array-input/style/index.d.ts.map +0 -1
- package/lib/array-input/style/index.js +0 -2
- package/lib/array-input/style/index.js.map +0 -1
- package/lib/auth-context/style/index.d.ts +0 -1
- package/lib/auth-context/style/index.d.ts.map +0 -1
- package/lib/auth-context/style/index.js +0 -2
- package/lib/auth-context/style/index.js.map +0 -1
- package/lib/development-login/style/index.d.ts +0 -1
- package/lib/development-login/style/index.d.ts.map +0 -1
- package/lib/development-login/style/index.js +0 -2
- package/lib/development-login/style/index.js.map +0 -1
- package/lib/ellipsis/style/index.d.ts +0 -1
- package/lib/ellipsis/style/index.d.ts.map +0 -1
- package/lib/ellipsis/style/index.js +0 -2
- package/lib/ellipsis/style/index.js.map +0 -1
- package/lib/empty/render-empty.d.ts +0 -3
- package/lib/empty/render-empty.d.ts.map +0 -1
- package/lib/empty/render-empty.js +0 -26
- package/lib/empty/render-empty.js.map +0 -1
- package/lib/empty/style/index.d.ts +0 -3
- package/lib/empty/style/index.d.ts.map +0 -1
- package/lib/empty/style/index.js +0 -5
- package/lib/empty/style/index.js.map +0 -1
- package/lib/handle/style/index.d.ts +0 -1
- package/lib/handle/style/index.d.ts.map +0 -1
- package/lib/handle/style/index.js +0 -2
- package/lib/handle/style/index.js.map +0 -1
- package/lib/icon-list/style/index.d.ts +0 -3
- package/lib/icon-list/style/index.d.ts.map +0 -1
- package/lib/icon-list/style/index.js +0 -122
- package/lib/icon-list/style/index.js.map +0 -1
- package/lib/img/style/index.d.ts +0 -1
- package/lib/img/style/index.d.ts.map +0 -1
- package/lib/img/style/index.js +0 -2
- package/lib/img/style/index.js.map +0 -1
- package/lib/loading-button/style/index.d.ts +0 -1
- package/lib/loading-button/style/index.d.ts.map +0 -1
- package/lib/loading-button/style/index.js +0 -2
- package/lib/loading-button/style/index.js.map +0 -1
- package/lib/page/style/index.d.ts +0 -1
- package/lib/page/style/index.d.ts.map +0 -1
- package/lib/page/style/index.js +0 -2
- package/lib/page/style/index.js.map +0 -1
- package/lib/query-form/style/index.d.ts +0 -1
- package/lib/query-form/style/index.d.ts.map +0 -1
- package/lib/query-form/style/index.js +0 -2
- package/lib/query-form/style/index.js.map +0 -1
- package/lib/query-list-scene/style/index.d.ts +0 -1
- package/lib/query-list-scene/style/index.d.ts.map +0 -1
- package/lib/query-list-scene/style/index.js +0 -2
- package/lib/query-list-scene/style/index.js.map +0 -1
- package/lib/render-empty/style/index.d.ts +0 -2
- package/lib/render-empty/style/index.d.ts.map +0 -1
- package/lib/render-empty/style/index.js +0 -4
- package/lib/render-empty/style/index.js.map +0 -1
- package/lib/table/style/index.d.ts +0 -3
- package/lib/table/style/index.d.ts.map +0 -1
- package/lib/table/style/index.js +0 -5
- package/lib/table/style/index.js.map +0 -1
- package/lib/title/style/index.d.ts +0 -1
- package/lib/title/style/index.d.ts.map +0 -1
- package/lib/title/style/index.js +0 -2
- package/lib/title/style/index.js.map +0 -1
- package/lib/tntd-icon/style/index.d.ts +0 -1
- package/lib/tntd-icon/style/index.d.ts.map +0 -1
- package/lib/tntd-icon/style/index.js +0 -2
- package/lib/tntd-icon/style/index.js.map +0 -1
- package/lib/tntd-layout/style/index.d.ts +0 -1
- package/lib/tntd-layout/style/index.d.ts.map +0 -1
- package/lib/tntd-layout/style/index.js +0 -2
- package/lib/tntd-layout/style/index.js.map +0 -1
- package/lib/tntd-modal/style/index.d.ts +0 -1
- package/lib/tntd-modal/style/index.d.ts.map +0 -1
- package/lib/tntd-modal/style/index.js +0 -2
- package/lib/tntd-modal/style/index.js.map +0 -1
- package/lib/tntd-select/style/index.d.ts +0 -1
- package/lib/tntd-select/style/index.d.ts.map +0 -1
- package/lib/tntd-select/style/index.js +0 -2
- package/lib/tntd-select/style/index.js.map +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { BaseOptionType, DefaultOptionType, FieldNames, MultipleCascaderProps as RcMultipleCascaderProps, SingleCascaderProps as RcSingleCascaderProps } from '../rc-cascader';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import type { SizeType } from './interface';
|
|
4
|
+
import type { SelectCommonPlacement } from './interface';
|
|
5
|
+
import type { InputStatus } from './interface';
|
|
6
|
+
import './index.css';
|
|
7
|
+
export { BaseOptionType, DefaultOptionType };
|
|
8
|
+
export declare type FieldNamesType = FieldNames;
|
|
9
|
+
export declare type FilledFieldNamesType = Required<FieldNamesType>;
|
|
10
|
+
declare type SingleCascaderProps = Omit<RcSingleCascaderProps, 'checkable' | 'options'> & {
|
|
11
|
+
multiple?: false;
|
|
12
|
+
};
|
|
13
|
+
declare type MultipleCascaderProps = Omit<RcMultipleCascaderProps, 'checkable' | 'options'> & {
|
|
14
|
+
multiple: true;
|
|
15
|
+
};
|
|
16
|
+
declare type UnionCascaderProps = SingleCascaderProps | MultipleCascaderProps;
|
|
17
|
+
export declare type CascaderProps<DataNodeType> = UnionCascaderProps & {
|
|
18
|
+
multiple?: boolean;
|
|
19
|
+
size?: SizeType;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
bordered?: boolean;
|
|
22
|
+
placement?: SelectCommonPlacement;
|
|
23
|
+
suffixIcon?: React.ReactNode;
|
|
24
|
+
options?: DataNodeType[];
|
|
25
|
+
status?: InputStatus;
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated `dropdownClassName` is deprecated which will be removed in next major
|
|
28
|
+
* version.Please use `popupClassName` instead.
|
|
29
|
+
*/
|
|
30
|
+
dropdownClassName?: string;
|
|
31
|
+
};
|
|
32
|
+
export interface CascaderRef {
|
|
33
|
+
focus: () => void;
|
|
34
|
+
blur: () => void;
|
|
35
|
+
}
|
|
36
|
+
declare const Cascader: (<OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & {
|
|
37
|
+
ref?: React.Ref<CascaderRef> | undefined;
|
|
38
|
+
}) => React.ReactElement) & {
|
|
39
|
+
displayName: string;
|
|
40
|
+
SHOW_PARENT: "SHOW_PARENT";
|
|
41
|
+
SHOW_CHILD: "SHOW_CHILD";
|
|
42
|
+
};
|
|
43
|
+
export default Cascader;
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tntd-cascader/AntdCascader/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,UAAU,EACV,qBAAqB,IAAI,uBAAuB,EAEhD,mBAAmB,IAAI,qBAAqB,EAC7C,MAAM,gBAAgB,CAAC;AAGxB,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK5C,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAOzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,OAAO,aAAa,CAAC;AAOrB,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC;AAE7C,oBAAY,cAAc,GAAG,UAAU,CAAC;AAExC,oBAAY,oBAAoB,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAC;AAyD5D,aAAK,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG;IAChF,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CAAC;AACF,aAAK,qBAAqB,GAAG,IAAI,CAAC,uBAAuB,EAAE,WAAW,GAAG,SAAS,CAAC,GAAG;IACpF,QAAQ,EAAE,IAAI,CAAC;CAChB,CAAC;AAEF,aAAK,kBAAkB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC;AAEtE,oBAAY,aAAa,CAAC,YAAY,IAAI,kBAAkB,GAAG;IAC7D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAClC,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,IAAI,EAAE,MAAM,IAAI,CAAC;CAClB;AAED,QAAA,MAAM,QAAQ;;MA6LT,MAAM,YAAY;iBACR,MAAM;;;CAGpB,CAAC;AAOF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
const antd_1 = require("antd");
|
|
41
|
+
const classnames_1 = __importDefault(require("classnames"));
|
|
42
|
+
const rc_cascader_1 = __importDefault(require("../rc-cascader"));
|
|
43
|
+
const omit_1 = __importDefault(require("rc-util/lib/omit"));
|
|
44
|
+
const React = __importStar(require("react"));
|
|
45
|
+
const react_1 = require("react");
|
|
46
|
+
const context_1 = require("./component/context");
|
|
47
|
+
const defaultRenderEmpty_1 = __importDefault(require("./component/defaultRenderEmpty"));
|
|
48
|
+
const DisabledContext_1 = __importDefault(require("./component/DisabledContext"));
|
|
49
|
+
const SizeContext_1 = require("./component/SizeContext");
|
|
50
|
+
const useCompactItemContext_1 = require("./component/useCompactItemContext");
|
|
51
|
+
const FormItemInputContext_1 = require("./component/FormItemInputContext");
|
|
52
|
+
const getIcons_1 = __importDefault(require("./component/getIcons"));
|
|
53
|
+
const utils_1 = require("./config/utils");
|
|
54
|
+
const warning_1 = __importDefault(require("./config/warning"));
|
|
55
|
+
require("./index.css");
|
|
56
|
+
const { SHOW_CHILD, SHOW_PARENT } = rc_cascader_1.default;
|
|
57
|
+
function highlightKeyword(str, lowerKeyword, prefixCls) {
|
|
58
|
+
const cells = str
|
|
59
|
+
.toLowerCase()
|
|
60
|
+
.split(lowerKeyword)
|
|
61
|
+
.reduce((list, cur, index) => (index === 0 ? [cur] : [...list, lowerKeyword, cur]), []);
|
|
62
|
+
const fillCells = [];
|
|
63
|
+
let start = 0;
|
|
64
|
+
cells.forEach((cell, index) => {
|
|
65
|
+
const end = start + cell.length;
|
|
66
|
+
let originWorld = str.slice(start, end);
|
|
67
|
+
start = end;
|
|
68
|
+
if (index % 2 === 1) {
|
|
69
|
+
originWorld = (
|
|
70
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
71
|
+
React.createElement("span", { className: `${prefixCls}-menu-item-keyword`, key: `seperator-${index}` }, originWorld));
|
|
72
|
+
}
|
|
73
|
+
fillCells.push(originWorld);
|
|
74
|
+
});
|
|
75
|
+
return fillCells;
|
|
76
|
+
}
|
|
77
|
+
const defaultSearchRender = (inputValue, path, prefixCls, fieldNames) => {
|
|
78
|
+
const optionList = [];
|
|
79
|
+
// We do lower here to save perf
|
|
80
|
+
const lower = inputValue.toLowerCase();
|
|
81
|
+
path.forEach((node, index) => {
|
|
82
|
+
if (index !== 0) {
|
|
83
|
+
optionList.push(' / ');
|
|
84
|
+
}
|
|
85
|
+
let label = node[fieldNames.label];
|
|
86
|
+
const type = typeof label;
|
|
87
|
+
if (type === 'string' || type === 'number') {
|
|
88
|
+
label = highlightKeyword(String(label), lower, prefixCls);
|
|
89
|
+
}
|
|
90
|
+
optionList.push(label);
|
|
91
|
+
});
|
|
92
|
+
return optionList;
|
|
93
|
+
};
|
|
94
|
+
const Cascader = React.forwardRef((props, ref) => {
|
|
95
|
+
const { prefixCls: customizePrefixCls, size: customizeSize, disabled: customDisabled, className, multiple, bordered = true, transitionName, choiceTransitionName = '', popupClassName, dropdownClassName, expandIcon, placement, showSearch, allowClear = true, notFoundContent, direction, getPopupContainer, status: customStatus, showArrow } = props, rest = __rest(props, ["prefixCls", "size", "disabled", "className", "multiple", "bordered", "transitionName", "choiceTransitionName", "popupClassName", "dropdownClassName", "expandIcon", "placement", "showSearch", "allowClear", "notFoundContent", "direction", "getPopupContainer", "status", "showArrow"]);
|
|
96
|
+
const restProps = (0, omit_1.default)(rest, ['suffixIcon']);
|
|
97
|
+
const { getPopupContainer: getContextPopupContainer, getPrefixCls, renderEmpty, direction: rootDirection,
|
|
98
|
+
// virtual,
|
|
99
|
+
// dropdownMatchSelectWidth,
|
|
100
|
+
} = (0, react_1.useContext)(context_1.ConfigContext);
|
|
101
|
+
const mergedDirection = direction || rootDirection;
|
|
102
|
+
const isRtl = mergedDirection === 'rtl';
|
|
103
|
+
// =================== Form =====================
|
|
104
|
+
const { status: contextStatus, hasFeedback, isFormItemInput, feedbackIcon, } = (0, react_1.useContext)(FormItemInputContext_1.FormItemInputContext);
|
|
105
|
+
const mergedStatus = (0, utils_1.getMergedStatus)(contextStatus, customStatus);
|
|
106
|
+
// =================== Warning =====================
|
|
107
|
+
(0, warning_1.default)(!dropdownClassName, 'Cascader', '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.');
|
|
108
|
+
(0, warning_1.default)(!multiple || !props.displayRender, 'Cascader', '`displayRender` not work on `multiple`. Please use `tagRender` instead.');
|
|
109
|
+
// =================== No Found ====================
|
|
110
|
+
const mergedNotFoundContent = notFoundContent || (renderEmpty || defaultRenderEmpty_1.default)('Cascader');
|
|
111
|
+
// ==================== Prefix =====================
|
|
112
|
+
const rootPrefixCls = getPrefixCls();
|
|
113
|
+
const prefixCls = getPrefixCls('select', customizePrefixCls);
|
|
114
|
+
const cascaderPrefixCls = getPrefixCls('cascader', customizePrefixCls);
|
|
115
|
+
const { compactSize, compactItemClassnames } = (0, useCompactItemContext_1.useCompactItemContext)(prefixCls, direction);
|
|
116
|
+
// =================== Dropdown ====================
|
|
117
|
+
const mergedDropdownClassName = (0, classnames_1.default)(popupClassName || dropdownClassName, `${cascaderPrefixCls}-dropdown`, {
|
|
118
|
+
[`${cascaderPrefixCls}-dropdown-rtl`]: mergedDirection === 'rtl',
|
|
119
|
+
});
|
|
120
|
+
// ==================== Search =====================
|
|
121
|
+
const mergedShowSearch = React.useMemo(() => {
|
|
122
|
+
if (!showSearch) {
|
|
123
|
+
return showSearch;
|
|
124
|
+
}
|
|
125
|
+
let searchConfig = {
|
|
126
|
+
render: defaultSearchRender,
|
|
127
|
+
};
|
|
128
|
+
if (typeof showSearch === 'object') {
|
|
129
|
+
searchConfig = Object.assign(Object.assign({}, searchConfig), showSearch);
|
|
130
|
+
}
|
|
131
|
+
return searchConfig;
|
|
132
|
+
}, [showSearch]);
|
|
133
|
+
// ===================== Size ======================
|
|
134
|
+
const size = React.useContext(SizeContext_1.SizeContext);
|
|
135
|
+
const mergedSize = compactSize || customizeSize || size;
|
|
136
|
+
// ===================== Disabled =====================
|
|
137
|
+
const disabled = React.useContext(DisabledContext_1.default);
|
|
138
|
+
const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;
|
|
139
|
+
// ===================== Icon ======================
|
|
140
|
+
let mergedExpandIcon = expandIcon;
|
|
141
|
+
if (!expandIcon) {
|
|
142
|
+
mergedExpandIcon = isRtl ? React.createElement(antd_1.Icon, { type: "left" }) : React.createElement(antd_1.Icon, { type: "right" });
|
|
143
|
+
}
|
|
144
|
+
const loadingIcon = (React.createElement("span", { className: `${prefixCls}-menu-item-loading-icon` },
|
|
145
|
+
React.createElement(antd_1.Icon, { type: "loading" })));
|
|
146
|
+
// =================== Multiple ====================
|
|
147
|
+
const checkable = React.useMemo(() => (multiple ? React.createElement("span", { className: `${cascaderPrefixCls}-checkbox-inner` }) : false), [multiple]);
|
|
148
|
+
// ===================== Icons =====================
|
|
149
|
+
const mergedShowArrow = showArrow !== undefined ? showArrow : props.loading || !multiple;
|
|
150
|
+
const { suffixIcon, removeIcon, clearIcon } = (0, getIcons_1.default)(Object.assign(Object.assign({}, props), { hasFeedback,
|
|
151
|
+
feedbackIcon, showArrow: mergedShowArrow, multiple,
|
|
152
|
+
prefixCls }));
|
|
153
|
+
// ===================== Placement =====================
|
|
154
|
+
const getPlacement = () => {
|
|
155
|
+
if (placement !== undefined) {
|
|
156
|
+
return placement;
|
|
157
|
+
}
|
|
158
|
+
return direction === 'rtl'
|
|
159
|
+
? 'bottomRight'
|
|
160
|
+
: 'bottomLeft';
|
|
161
|
+
};
|
|
162
|
+
// ==================== Render =====================
|
|
163
|
+
return (React.createElement(rc_cascader_1.default, Object.assign({ prefixCls: prefixCls, className: (0, classnames_1.default)(!customizePrefixCls && cascaderPrefixCls, {
|
|
164
|
+
[`${prefixCls}-lg`]: mergedSize === 'large',
|
|
165
|
+
[`${prefixCls}-sm`]: mergedSize === 'small',
|
|
166
|
+
[`${prefixCls}-rtl`]: isRtl,
|
|
167
|
+
[`${prefixCls}-borderless`]: !bordered,
|
|
168
|
+
[`${prefixCls}-in-form-item`]: isFormItemInput,
|
|
169
|
+
}, (0, utils_1.getStatusClassNames)(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, className), disabled: mergedDisabled }, restProps, { direction: mergedDirection, placement: getPlacement(), notFoundContent: mergedNotFoundContent, allowClear: allowClear, showSearch: mergedShowSearch, expandIcon: mergedExpandIcon, inputIcon: suffixIcon, removeIcon: removeIcon, clearIcon: clearIcon, loadingIcon: loadingIcon, checkable: checkable, dropdownClassName: mergedDropdownClassName, dropdownPrefixCls: customizePrefixCls || cascaderPrefixCls, choiceTransitionName: (0, utils_1.getTransitionName)(rootPrefixCls, '', choiceTransitionName), transitionName: (0, utils_1.getTransitionName)(rootPrefixCls, (0, utils_1.getTransitionDirection)(placement), transitionName), getPopupContainer: getPopupContainer || getContextPopupContainer, ref: ref, showArrow: hasFeedback || showArrow })));
|
|
170
|
+
});
|
|
171
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
172
|
+
Cascader.displayName = 'Cascader';
|
|
173
|
+
}
|
|
174
|
+
Cascader.SHOW_PARENT = SHOW_PARENT;
|
|
175
|
+
Cascader.SHOW_CHILD = SHOW_CHILD;
|
|
176
|
+
exports.default = Cascader;
|
|
177
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tntd-cascader/AntdCascader/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAA4B;AAC5B,4DAAoC;AASpC,iEAAwC;AACxC,4DAAoC;AACpC,6CAA+B;AAC/B,iCAAmC;AACnC,iDAAoD;AACpD,wFAAgE;AAChE,kFAA0D;AAE1D,yDAAsD;AACtD,6EAA0E;AAC1E,2EAAwE;AACxE,oEAA4C;AAE5C,0CAKwB;AAExB,+DAAuC;AACvC,uBAAqB;AAarB,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,qBAAU,CAAC;AAE/C,SAAS,gBAAgB,CAAC,GAAW,EAAE,YAAoB,EAAE,SAA6B;IACxF,MAAM,KAAK,GAAG,GAAG;SACd,WAAW,EAAE;SACb,KAAK,CAAC,YAAY,CAAC;SACnB,MAAM,CACL,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,YAAY,EAAE,GAAG,CAAC,CAAC,EAC1E,EAAc,CACf,CAAC;IACJ,MAAM,SAAS,GAAsB,EAAE,CAAC;IACxC,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE;QAC5C,MAAM,GAAG,GAAG,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;QAChC,IAAI,WAA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AC;AACnC,QAAQ,CAAC,UAAU,GAAG,UAAU,CAAC;AAEjC,kBAAe,QAAQ,CAAC","sourcesContent":["import { Icon } from 'antd';\nimport classNames from 'classnames';\nimport type {\n BaseOptionType,\n DefaultOptionType,\n FieldNames,\n MultipleCascaderProps as RcMultipleCascaderProps,\n ShowSearchType,\n SingleCascaderProps as RcSingleCascaderProps,\n} from '../rc-cascader';\nimport RcCascader from '../rc-cascader';\nimport omit from 'rc-util/lib/omit';\nimport * as React from 'react';\nimport { useContext } from 'react';\nimport { ConfigContext } from './component/context';\nimport defaultRenderEmpty from './component/defaultRenderEmpty';\nimport DisabledContext from './component/DisabledContext';\nimport type { SizeType } from './interface';\nimport { SizeContext } from './component/SizeContext';\nimport { useCompactItemContext } from './component/useCompactItemContext';\nimport { FormItemInputContext } from './component/FormItemInputContext';\nimport getIcons from './component/getIcons';\nimport type { SelectCommonPlacement } from './interface';\nimport {\n getTransitionDirection,\n getTransitionName,\n getMergedStatus,\n getStatusClassNames,\n} from './config/utils';\nimport type { InputStatus } from './interface';\nimport warning from './config/warning';\nimport './index.css';\n\n// Align the design since we use `rc-select` in root. This help:\n// - List search content will show all content\n// - Hover opacity style\n// - Search filter match case\n\nexport { BaseOptionType, DefaultOptionType };\n\nexport type FieldNamesType = FieldNames;\n\nexport type FilledFieldNamesType = Required<FieldNamesType>;\n\nconst { SHOW_CHILD, SHOW_PARENT } = RcCascader;\n\nfunction highlightKeyword(str: string, lowerKeyword: string, prefixCls: string | undefined) {\n const cells = str\n .toLowerCase()\n .split(lowerKeyword)\n .reduce(\n (list, cur, index) => (index === 0 ? [cur] : [...list, lowerKeyword, cur]),\n [] as string[],\n );\n const fillCells: React.ReactNode[] = [];\n let start = 0;\n\n cells.forEach((cell: string, index: number) => {\n const end = start + cell.length;\n let originWorld: React.ReactNode = str.slice(start, end);\n start = end;\n\n if (index % 2 === 1) {\n originWorld = (\n // eslint-disable-next-line react/no-array-index-key\n <span className={`${prefixCls}-menu-item-keyword`} key={`seperator-${index}`}>\n {originWorld}\n </span>\n );\n }\n\n fillCells.push(originWorld);\n });\n\n return fillCells;\n}\n\nconst defaultSearchRender: ShowSearchType['render'] = (inputValue, path, prefixCls, fieldNames) => {\n const optionList: React.ReactNode[] = [];\n\n // We do lower here to save perf\n const lower = inputValue.toLowerCase();\n\n path.forEach((node, index) => {\n if (index !== 0) {\n optionList.push(' / ');\n }\n\n let label = (node as any)[fieldNames.label!];\n const type = typeof label;\n if (type === 'string' || type === 'number') {\n label = highlightKeyword(String(label), lower, prefixCls);\n }\n\n optionList.push(label);\n });\n return optionList;\n};\n\ntype SingleCascaderProps = Omit<RcSingleCascaderProps, 'checkable' | 'options'> & {\n multiple?: false;\n};\ntype MultipleCascaderProps = Omit<RcMultipleCascaderProps, 'checkable' | 'options'> & {\n multiple: true;\n};\n\ntype UnionCascaderProps = SingleCascaderProps | MultipleCascaderProps;\n\nexport type CascaderProps<DataNodeType> = UnionCascaderProps & {\n multiple?: boolean;\n size?: SizeType;\n disabled?: boolean;\n bordered?: boolean;\n placement?: SelectCommonPlacement;\n suffixIcon?: React.ReactNode;\n options?: DataNodeType[];\n status?: InputStatus;\n /**\n * @deprecated `dropdownClassName` is deprecated which will be removed in next major\n * version.Please use `popupClassName` instead.\n */\n dropdownClassName?: string;\n};\n\nexport interface CascaderRef {\n focus: () => void;\n blur: () => void;\n}\n\nconst Cascader = React.forwardRef((props: CascaderProps<any>, ref: React.Ref<CascaderRef>) => {\n const {\n prefixCls: customizePrefixCls,\n size: customizeSize,\n disabled: customDisabled,\n className,\n multiple,\n bordered = true,\n transitionName,\n choiceTransitionName = '',\n popupClassName,\n dropdownClassName,\n expandIcon,\n placement,\n showSearch,\n allowClear = true,\n notFoundContent,\n direction,\n getPopupContainer,\n status: customStatus,\n showArrow,\n ...rest\n } = props;\n\n const restProps = omit(rest, ['suffixIcon' as any]);\n\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n renderEmpty,\n direction: rootDirection,\n // virtual,\n // dropdownMatchSelectWidth,\n } = useContext(ConfigContext);\n\n const mergedDirection = direction || rootDirection;\n const isRtl = mergedDirection === 'rtl';\n\n // =================== Form =====================\n const {\n status: contextStatus,\n hasFeedback,\n isFormItemInput,\n feedbackIcon,\n } = useContext(FormItemInputContext);\n const mergedStatus = getMergedStatus(contextStatus, customStatus);\n\n // =================== Warning =====================\n warning(\n !dropdownClassName,\n 'Cascader',\n '`dropdownClassName` is deprecated which will be removed in next major version. Please use `popupClassName` instead.',\n );\n\n warning(\n !multiple || !props.displayRender,\n 'Cascader',\n '`displayRender` not work on `multiple`. Please use `tagRender` instead.',\n );\n\n // =================== No Found ====================\n const mergedNotFoundContent = notFoundContent || (renderEmpty || defaultRenderEmpty)('Cascader');\n\n // ==================== Prefix =====================\n const rootPrefixCls = getPrefixCls();\n const prefixCls = getPrefixCls('select', customizePrefixCls);\n const cascaderPrefixCls = getPrefixCls('cascader', customizePrefixCls);\n const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction);\n // =================== Dropdown ====================\n const mergedDropdownClassName = classNames(\n popupClassName || dropdownClassName,\n `${cascaderPrefixCls}-dropdown`,\n {\n [`${cascaderPrefixCls}-dropdown-rtl`]: mergedDirection === 'rtl',\n },\n );\n\n // ==================== Search =====================\n const mergedShowSearch = React.useMemo(() => {\n if (!showSearch) {\n return showSearch;\n }\n\n let searchConfig: ShowSearchType = {\n render: defaultSearchRender,\n };\n\n if (typeof showSearch === 'object') {\n searchConfig = {\n ...searchConfig,\n ...showSearch,\n };\n }\n\n return searchConfig;\n }, [showSearch]);\n\n // ===================== Size ======================\n const size = React.useContext(SizeContext);\n const mergedSize = compactSize || customizeSize || size;\n\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n const mergedDisabled = customDisabled ?? disabled;\n\n // ===================== Icon ======================\n let mergedExpandIcon = expandIcon;\n if (!expandIcon) {\n mergedExpandIcon = isRtl ? <Icon type=\"left\" /> : <Icon type=\"right\" />;\n }\n\n const loadingIcon = (\n <span className={`${prefixCls}-menu-item-loading-icon`}>\n <Icon type=\"loading\" />\n </span>\n );\n\n // =================== Multiple ====================\n const checkable = React.useMemo(\n () => (multiple ? <span className={`${cascaderPrefixCls}-checkbox-inner`} /> : false),\n [multiple],\n );\n\n // ===================== Icons =====================\n const mergedShowArrow = showArrow !== undefined ? showArrow : props.loading || !multiple;\n const { suffixIcon, removeIcon, clearIcon } = getIcons({\n ...props,\n hasFeedback,\n feedbackIcon,\n showArrow: mergedShowArrow,\n multiple,\n prefixCls,\n });\n\n // ===================== Placement =====================\n const getPlacement = () => {\n if (placement !== undefined) {\n return placement;\n }\n return direction === 'rtl'\n ? ('bottomRight' as SelectCommonPlacement)\n : ('bottomLeft' as SelectCommonPlacement);\n };\n\n // ==================== Render =====================\n return (\n <RcCascader\n prefixCls={prefixCls}\n className={classNames(\n !customizePrefixCls && cascaderPrefixCls,\n {\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-rtl`]: isRtl,\n [`${prefixCls}-borderless`]: !bordered,\n [`${prefixCls}-in-form-item`]: isFormItemInput,\n },\n getStatusClassNames(prefixCls, mergedStatus, hasFeedback),\n compactItemClassnames,\n className,\n )}\n disabled={mergedDisabled}\n {...(restProps as any)}\n direction={mergedDirection}\n placement={getPlacement()}\n notFoundContent={mergedNotFoundContent}\n allowClear={allowClear}\n showSearch={mergedShowSearch}\n expandIcon={mergedExpandIcon}\n inputIcon={suffixIcon}\n removeIcon={removeIcon}\n clearIcon={clearIcon}\n loadingIcon={loadingIcon}\n checkable={checkable}\n dropdownClassName={mergedDropdownClassName}\n dropdownPrefixCls={customizePrefixCls || cascaderPrefixCls}\n choiceTransitionName={getTransitionName(rootPrefixCls, '', choiceTransitionName)}\n transitionName={getTransitionName(\n rootPrefixCls,\n getTransitionDirection(placement),\n transitionName,\n )}\n getPopupContainer={getPopupContainer || getContextPopupContainer}\n ref={ref}\n showArrow={hasFeedback || showArrow}\n />\n );\n}) as unknown as (<OptionType extends BaseOptionType | DefaultOptionType = DefaultOptionType>(\n props: React.PropsWithChildren<CascaderProps<OptionType>> & { ref?: React.Ref<CascaderRef> },\n) => React.ReactElement) & {\n displayName: string;\n SHOW_PARENT: typeof SHOW_PARENT;\n SHOW_CHILD: typeof SHOW_CHILD;\n};\nif (process.env.NODE_ENV !== 'production') {\n Cascader.displayName = 'Cascader';\n}\nCascader.SHOW_PARENT = SHOW_PARENT;\nCascader.SHOW_CHILD = SHOW_CHILD;\n\nexport default Cascader;\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ReactElement, JSXElementConstructor } from 'react';
|
|
2
|
+
export declare type SizeType = 'small' | 'middle' | 'large' | undefined;
|
|
3
|
+
export declare type DirectionType = 'ltr' | 'rtl' | undefined;
|
|
4
|
+
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
5
|
+
declare const ValidateStatuses: ["success", "warning", "error", "validating", ""];
|
|
6
|
+
export declare type ValidateStatus = typeof ValidateStatuses[number];
|
|
7
|
+
declare const SelectPlacements: ["bottomLeft", "bottomRight", "topLeft", "topRight"];
|
|
8
|
+
export declare type SelectCommonPlacement = typeof SelectPlacements[number];
|
|
9
|
+
declare const InputStatuses: ["warning", "error", ""];
|
|
10
|
+
export declare type InputStatus = typeof InputStatuses[number];
|
|
11
|
+
export interface SpaceCompactItemContextType {
|
|
12
|
+
compactSize?: SizeType;
|
|
13
|
+
compactDirection?: 'horizontal' | 'vertical';
|
|
14
|
+
isFirstItem?: boolean;
|
|
15
|
+
isLastItem?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface FormItemStatusContextProps {
|
|
18
|
+
isFormItemInput?: boolean;
|
|
19
|
+
status?: ValidateStatus;
|
|
20
|
+
hasFeedback?: boolean;
|
|
21
|
+
feedbackIcon?: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
export declare type DropdownRender = (menu: ReactElement<any, string | JSXElementConstructor<any>>) => ReactElement<any, string | JSXElementConstructor<any>>;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../src/tntd-cascader/AntdCascader/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAEjE,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAC;AAEhE,oBAAY,aAAa,GAAG,KAAK,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtD,eAAO,MAAM,KAAK,uCAA2C,CAAC;AAE9D,QAAA,MAAM,gBAAgB,mDAAyD,CAAC;AAEhF,oBAAY,cAAc,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAE7D,QAAA,MAAM,gBAAgB,sDAA4D,CAAC;AAEnF,oBAAY,qBAAqB,GAAG,OAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;AAEpE,QAAA,MAAM,aAAa,0BAAgC,CAAC;AAEpD,oBAAY,WAAW,GAAG,OAAO,aAAa,CAAC,MAAM,CAAC,CAAC;AAEvD,MAAM,WAAW,2BAA2B;IAC1C,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,gBAAgB,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IACzC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAChC;AAED,oBAAY,cAAc,GAAG,CAC3B,IAAI,EAAE,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,KACzD,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.tuple = void 0;
|
|
4
|
+
const tuple = (...args) => args;
|
|
5
|
+
exports.tuple = tuple;
|
|
6
|
+
const ValidateStatuses = (0, exports.tuple)('success', 'warning', 'error', 'validating', '');
|
|
7
|
+
const SelectPlacements = (0, exports.tuple)('bottomLeft', 'bottomRight', 'topLeft', 'topRight');
|
|
8
|
+
const InputStatuses = (0, exports.tuple)('warning', 'error', '');
|
|
9
|
+
//# sourceMappingURL=interface.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.js","sourceRoot":"","sources":["../../../src/tntd-cascader/AntdCascader/interface.ts"],"names":[],"mappings":";;;AAMO,MAAM,KAAK,GAAG,CAAqB,GAAG,IAAO,EAAE,EAAE,CAAC,IAAI,CAAC;AAAjD,QAAA,KAAK,SAA4C;AAE9D,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;AAIhF,MAAM,gBAAgB,GAAG,IAAA,aAAK,EAAC,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAInF,MAAM,aAAa,GAAG,IAAA,aAAK,EAAC,SAAS,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC","sourcesContent":["import type { ReactElement, JSXElementConstructor } from 'react';\n\nexport type SizeType = 'small' | 'middle' | 'large' | undefined;\n\nexport type DirectionType = 'ltr' | 'rtl' | undefined;\n\nexport const tuple = <T extends string[]>(...args: T) => args;\n\nconst ValidateStatuses = tuple('success', 'warning', 'error', 'validating', '');\n\nexport type ValidateStatus = typeof ValidateStatuses[number];\n\nconst SelectPlacements = tuple('bottomLeft', 'bottomRight', 'topLeft', 'topRight');\n\nexport type SelectCommonPlacement = typeof SelectPlacements[number];\n\nconst InputStatuses = tuple('warning', 'error', '');\n\nexport type InputStatus = typeof InputStatuses[number];\n\nexport interface SpaceCompactItemContextType {\n compactSize?: SizeType;\n compactDirection?: 'horizontal' | 'vertical';\n isFirstItem?: boolean;\n isLastItem?: boolean;\n}\n\nexport interface FormItemStatusContextProps {\n isFormItemInput?: boolean;\n status?: ValidateStatus;\n hasFeedback?: boolean;\n feedbackIcon?: React.ReactNode;\n}\n\nexport type DropdownRender = (\n menu: ReactElement<any, string | JSXElementConstructor<any>>,\n) => ReactElement<any, string | JSXElementConstructor<any>>;\n"]}
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-cascader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var AntdCascader_1 = require("./AntdCascader");
|
|
8
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return __importDefault(AntdCascader_1).default; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tntd-cascader/index.tsx"],"names":[],"mappings":";;;;;;AAAA,+CAAyC;AAAhC,wHAAA,OAAO,OAAA","sourcesContent":["export { default } from './AntdCascader';\n"]}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import type { BaseSelectPropsWithoutPrivate, BaseSelectRef } from 'rc-select';
|
|
2
|
+
import type { Placement } from 'rc-select/lib/BaseSelect';
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { SHOW_CHILD, SHOW_PARENT } from './utils/commonUtil';
|
|
5
|
+
import { RenderItem } from './context';
|
|
6
|
+
import './index.less';
|
|
7
|
+
export interface ShowSearchType<OptionType extends BaseOptionType = DefaultOptionType> {
|
|
8
|
+
filter?: (inputValue: string, options: OptionType[], fieldNames: FieldNames) => boolean;
|
|
9
|
+
render?: (inputValue: string, path: OptionType[], prefixCls: string, fieldNames: FieldNames) => React.ReactNode;
|
|
10
|
+
sort?: (a: OptionType[], b: OptionType[], inputValue: string, fieldNames: FieldNames) => number;
|
|
11
|
+
matchInputWidth?: boolean;
|
|
12
|
+
limit?: number | false;
|
|
13
|
+
}
|
|
14
|
+
export interface FieldNames {
|
|
15
|
+
label?: string;
|
|
16
|
+
value?: string;
|
|
17
|
+
children?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface InternalFieldNames extends Required<FieldNames> {
|
|
20
|
+
key: string;
|
|
21
|
+
}
|
|
22
|
+
export declare type SingleValueType = (string | number)[];
|
|
23
|
+
export declare type ValueType = SingleValueType | SingleValueType[];
|
|
24
|
+
export declare type ShowCheckedStrategy = typeof SHOW_PARENT | typeof SHOW_CHILD;
|
|
25
|
+
export interface BaseOptionType {
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
[name: string]: any;
|
|
28
|
+
}
|
|
29
|
+
export interface DefaultOptionType extends BaseOptionType {
|
|
30
|
+
label: React.ReactNode;
|
|
31
|
+
value?: string | number | null;
|
|
32
|
+
children?: DefaultOptionType[];
|
|
33
|
+
}
|
|
34
|
+
interface BaseCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends Omit<BaseSelectPropsWithoutPrivate, 'tokenSeparators' | 'labelInValue' | 'mode' | 'showSearch'> {
|
|
35
|
+
id?: string;
|
|
36
|
+
prefixCls?: string;
|
|
37
|
+
fieldNames?: FieldNames;
|
|
38
|
+
children?: React.ReactElement;
|
|
39
|
+
value?: ValueType;
|
|
40
|
+
defaultValue?: ValueType;
|
|
41
|
+
changeOnSelect?: boolean;
|
|
42
|
+
displayRender?: (label: string[], selectedOptions?: OptionType[]) => React.ReactNode;
|
|
43
|
+
checkable?: boolean | React.ReactNode;
|
|
44
|
+
showCheckedStrategy?: ShowCheckedStrategy;
|
|
45
|
+
showSearch?: boolean | ShowSearchType<OptionType>;
|
|
46
|
+
searchValue?: string;
|
|
47
|
+
onSearch?: (value: string) => void;
|
|
48
|
+
expandTrigger?: 'hover' | 'click';
|
|
49
|
+
options?: OptionType[];
|
|
50
|
+
/** @private Internal usage. Do not use in your production. */
|
|
51
|
+
dropdownPrefixCls?: string;
|
|
52
|
+
loadData?: (selectOptions: OptionType[]) => void;
|
|
53
|
+
/** @deprecated Use `open` instead */
|
|
54
|
+
popupVisible?: boolean;
|
|
55
|
+
/** @deprecated Use `dropdownClassName` instead */
|
|
56
|
+
popupClassName?: string;
|
|
57
|
+
dropdownClassName?: string;
|
|
58
|
+
dropdownMenuColumnStyle?: React.CSSProperties;
|
|
59
|
+
/** @deprecated Use `placement` instead */
|
|
60
|
+
popupPlacement?: Placement;
|
|
61
|
+
placement?: Placement;
|
|
62
|
+
/** @deprecated Use `onDropdownVisibleChange` instead */
|
|
63
|
+
onPopupVisibleChange?: (open: boolean) => void;
|
|
64
|
+
onDropdownVisibleChange?: (open: boolean) => void;
|
|
65
|
+
renderItem?: (item: RenderItem) => React.ReactNode;
|
|
66
|
+
expandIcon?: React.ReactNode;
|
|
67
|
+
loadingIcon?: React.ReactNode;
|
|
68
|
+
}
|
|
69
|
+
declare type OnSingleChange<OptionType> = (value: SingleValueType, selectOptions: OptionType[]) => void;
|
|
70
|
+
declare type OnMultipleChange<OptionType> = (value: SingleValueType[], selectOptions: OptionType[][]) => void;
|
|
71
|
+
export interface SingleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends BaseCascaderProps<OptionType> {
|
|
72
|
+
checkable?: false;
|
|
73
|
+
onChange?: OnSingleChange<OptionType>;
|
|
74
|
+
}
|
|
75
|
+
export interface MultipleCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> extends BaseCascaderProps<OptionType> {
|
|
76
|
+
checkable: true | React.ReactNode;
|
|
77
|
+
onChange?: OnMultipleChange<OptionType>;
|
|
78
|
+
}
|
|
79
|
+
export declare type CascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>;
|
|
80
|
+
export declare type InternalCascaderProps<OptionType extends BaseOptionType = DefaultOptionType> = Omit<SingleCascaderProps<OptionType> | MultipleCascaderProps<OptionType>, 'onChange'> & {
|
|
81
|
+
onChange?: (value: SingleValueType | SingleValueType[], selectOptions: OptionType[] | OptionType[][]) => void;
|
|
82
|
+
};
|
|
83
|
+
export declare type CascaderRef = Omit<BaseSelectRef, 'scrollTo'>;
|
|
84
|
+
declare const Cascader: (<OptionType extends DefaultOptionType | BaseOptionType = DefaultOptionType>(props: React.PropsWithChildren<CascaderProps<OptionType>> & {
|
|
85
|
+
ref?: React.Ref<BaseSelectRef> | undefined;
|
|
86
|
+
}) => React.ReactElement) & {
|
|
87
|
+
displayName?: string | undefined;
|
|
88
|
+
SHOW_PARENT: typeof SHOW_PARENT;
|
|
89
|
+
SHOW_CHILD: typeof SHOW_CHILD;
|
|
90
|
+
};
|
|
91
|
+
export default Cascader;
|
|
92
|
+
//# sourceMappingURL=Cascader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cascader.d.ts","sourceRoot":"","sources":["../../../src/tntd-cascader/rc-cascader/Cascader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAmB,6BAA6B,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/F,OAAO,KAAK,EAAoB,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAI5E,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAS/B,OAAO,EAAkB,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