tntd 2.8.28 → 2.8.29
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/_util/context.js +13 -6
- package/es/_util/defaultRenderEmpty.js +35 -23
- package/es/_util/hooks/useFlexGapSupport.js +25 -7
- package/es/_util/hooks/useForceUpdate.js +22 -3
- package/es/_util/motion.js +31 -22
- package/es/_util/reactNode.js +17 -7
- package/es/_util/responsiveObserve.js +40 -29
- package/es/_util/styleChecker.js +21 -7
- package/es/_util/type.js +18 -2
- package/es/_util/warning.js +19 -5
- package/es/actions/index.js +29 -22
- package/es/affix/index.js +24 -4
- package/es/affix/style/index.js +4 -2
- package/es/alert/index.js +24 -4
- package/es/alert/style/index.js +4 -2
- package/es/anchor/index.js +24 -4
- package/es/anchor/style/index.js +5 -4
- package/es/array-input/index.js +230 -180
- package/es/auth-context/index.js +10 -2
- package/es/auto-complete/index.js +24 -4
- package/es/auto-complete/style/index.js +6 -5
- package/es/avatar/index.js +24 -4
- package/es/avatar/style/index.js +4 -2
- package/es/back-top/index.js +24 -4
- package/es/back-top/style/index.js +4 -2
- package/es/badge/index.js +24 -4
- package/es/badge/style/index.js +4 -2
- package/es/breadcrumb/index.js +24 -4
- package/es/breadcrumb/style/index.js +6 -4
- package/es/button/button.js +39 -20
- package/es/button/index.js +22 -5
- package/es/button/style/index.js +4 -2
- package/es/calendar/index.js +24 -4
- package/es/calendar/style/index.js +6 -5
- package/es/card/card.js +36 -17
- package/es/card/index.js +21 -4
- package/es/card/style/index.js +7 -6
- package/es/carousel/index.js +24 -4
- package/es/carousel/style/index.js +4 -2
- package/es/cascader/index.js +29 -7
- package/es/cascader/style/index.js +6 -5
- package/es/check-card/group.js +125 -91
- package/es/check-card/index.js +95 -84
- package/es/checkbox/checkbox-group.js +12 -5
- package/es/checkbox/index.js +38 -7
- package/es/checkbox/style/index.js +4 -2
- package/es/col/index.js +24 -4
- package/es/col/style/index.js +4 -4
- package/es/collapse/index.js +25 -5
- package/es/collapse/style/index.js +4 -2
- package/es/color-picker/ColorPicker.js +109 -87
- package/es/color-picker/index.js +16 -9
- package/es/columns/index.js +61 -54
- package/es/comment/index.js +24 -4
- package/es/comment/style/index.js +4 -2
- package/es/config-provider/DisabledContext.js +16 -8
- package/es/config-provider/SizeContext.js +21 -9
- package/es/config-provider/config-provider.js +13 -2
- package/es/config-provider/index.js +36 -5
- package/es/config-provider/style/index.js +3 -1
- package/es/connect/index.js +33 -18
- package/es/date-picker/index.js +47 -16
- package/es/date-picker/style/index.js +7 -7
- package/es/descriptions/descriptions.js +94 -74
- package/es/descriptions/index.js +22 -5
- package/es/descriptions/style/index.js +4 -2
- package/es/development-login/LoginModal.js +66 -43
- package/es/development-login/index.js +38 -14
- package/es/divider/index.js +24 -4
- package/es/divider/style/index.js +4 -2
- package/es/drawer/drawer.js +88 -74
- package/es/drawer/index.js +23 -5
- package/es/drawer/style/index.js +4 -3
- package/es/dropdown/index.js +24 -4
- package/es/dropdown/style/index.js +5 -4
- package/es/ellipsis/Svg/CopySVG.js +23 -16
- package/es/ellipsis/Svg/TickSVG.js +18 -11
- package/es/ellipsis/index.js +103 -71
- package/es/empty/empty.js +64 -42
- package/es/empty/empty.stories.js +18 -11
- package/es/empty/index.js +22 -5
- package/es/empty/style/index.js +4 -2
- package/es/exception/exception.js +35 -27
- package/es/exception/index.js +21 -4
- package/es/form/form.js +80 -58
- package/es/form/index.js +21 -4
- package/es/form/style/index.js +5 -4
- package/es/grid/index.js +24 -4
- package/es/grid/style/index.js +4 -2
- package/es/grid-v4/RowContext.js +9 -3
- package/es/grid-v4/col.js +52 -55
- package/es/grid-v4/hooks/useBreakpoint.js +20 -10
- package/es/grid-v4/index.js +26 -10
- package/es/grid-v4/row.js +113 -84
- package/es/grid-v4/style/index.js +3 -2
- package/es/handle/index.js +97 -72
- package/es/handle-icon/index.js +117 -97
- package/es/icon/IconFont.js +26 -18
- package/es/icon/components/Icon.js +110 -73
- package/es/icon/components/index.js +13 -1
- package/es/icon/components/utils.js +83 -44
- package/es/icon/index.js +81 -69
- package/es/icon/style/index.js +5 -3
- package/es/icon/twoTonePrimaryColor.js +14 -6
- package/es/icon/utils.js +25 -14
- package/es/icon-list/index.js +7 -1
- package/es/icon-old/index.js +24 -4
- package/es/icon-old/style/index.js +4 -2
- package/es/img/Contain.js +35 -29
- package/es/img/Cover.js +66 -51
- package/es/img/index.js +57 -34
- package/es/index.js +727 -110
- package/es/input/index.js +22 -5
- package/es/input/input.js +81 -89
- package/es/input/style/index.js +5 -4
- package/es/input-number/index.js +39 -17
- package/es/input-number/style/index.js +4 -2
- package/es/label/index.js +68 -65
- package/es/layout/index.js +24 -4
- package/es/layout/style/index.js +4 -2
- package/es/list/index.js +24 -4
- package/es/list/style/index.js +8 -7
- package/es/loading-button/index.js +40 -17
- package/es/locale/default.js +12 -5
- package/es/locale/en_US.js +12 -4
- package/es/locale/index.js +38 -3
- package/es/locale/zh_CN.js +11 -4
- package/es/locale-provider/index.js +27 -7
- package/es/locale-provider/style/index.js +3 -1
- package/es/mentions/index.js +24 -4
- package/es/mentions/style/index.js +5 -4
- package/es/menu/index.js +24 -4
- package/es/menu/style/index.js +5 -5
- package/es/message/index.js +25 -5
- package/es/message/style/index.js +4 -2
- package/es/modal/index.js +22 -5
- package/es/modal/modal.js +61 -41
- package/es/modal/style/index.js +5 -4
- package/es/notification/assets/index.js +20 -2
- package/es/notification/assets/svg-error-tip.js +13 -4
- package/es/notification/assets/svg-success-tip.js +13 -4
- package/es/notification/index.js +23 -4
- package/es/notification/notification.js +73 -48
- package/es/notification/style/index.js +4 -2
- package/es/page/Box.js +37 -25
- package/es/page/index.js +96 -78
- package/es/page/utils.js +18 -8
- package/es/page-container/index.js +22 -13
- package/es/page-header/index.js +24 -4
- package/es/page-header/style/index.js +5 -4
- package/es/page-loading/index.js +23 -18
- package/es/pagination/index.js +24 -4
- package/es/pagination/style/index.js +5 -4
- package/es/popconfirm/index.js +24 -4
- package/es/popconfirm/style/index.js +5 -5
- package/es/popover/index.js +24 -4
- package/es/popover/style/index.js +4 -4
- package/es/prev-locale.js +22 -10
- package/es/preview-text/index.js +174 -163
- package/es/progress/index.js +24 -4
- package/es/progress/style/index.js +4 -2
- package/es/query-form/Field/Checkbox.js +17 -12
- package/es/query-form/Field/Select.js +55 -34
- package/es/query-form/Field/SelectInput.js +59 -40
- package/es/query-form/Field/fieldsMap.js +30 -25
- package/es/query-form/Field/index.js +120 -90
- package/es/query-form/createActions.js +28 -21
- package/es/query-form/index.js +306 -270
- package/es/query-form/useForm.js +11 -4
- package/es/query-list-scene/List.js +251 -222
- package/es/query-list-scene/QueryForm.js +117 -96
- package/es/query-list-scene/QueryListScene.js +63 -34
- package/es/query-list-scene/Title.js +15 -7
- package/es/query-list-scene/Toolbar.js +22 -15
- package/es/query-list-scene/createActions.js +51 -32
- package/es/query-list-scene/index.js +26 -19
- package/es/query-list-scene/useActions.js +11 -4
- package/es/radio/index.js +27 -6
- package/es/radio/radio-group.js +12 -5
- package/es/radio/style/index.js +4 -2
- package/es/rate/index.js +24 -4
- package/es/rate/style/index.js +5 -4
- package/es/render-empty/index.js +8 -2
- package/es/render-empty/render-empty.js +31 -22
- package/es/result/index.js +24 -4
- package/es/result/style/index.js +4 -2
- package/es/row/index.js +24 -4
- package/es/row/style/index.js +4 -4
- package/es/segmented/index.js +52 -43
- package/es/select/index.js +23 -5
- package/es/select/select.js +50 -43
- package/es/select/style/index.js +5 -4
- package/es/skeleton/index.js +24 -4
- package/es/skeleton/style/index.js +4 -2
- package/es/slider/index.js +24 -4
- package/es/slider/style/index.js +5 -4
- package/es/spin/index.js +24 -4
- package/es/spin/style/index.js +4 -2
- package/es/statistic/index.js +24 -4
- package/es/statistic/style/index.js +4 -2
- package/es/steps/index.js +23 -6
- package/es/steps/steps.js +50 -35
- package/es/steps/style/index.js +4 -2
- package/es/style/index.js +3 -1
- package/es/style/v2-compatible-reset.js +3 -1
- package/es/svg-components/illustration-403.js +13 -4
- package/es/svg-components/illustration-404.js +13 -4
- package/es/svg-components/illustration-500.js +13 -4
- package/es/svg-components/illustration-empty.js +13 -4
- package/es/svg-components/illustration-failure.js +13 -4
- package/es/svg-components/illustration-no-access.js +13 -4
- package/es/svg-components/illustration-no-chart.js +13 -4
- package/es/svg-components/illustration-no-result.js +13 -4
- package/es/svg-components/illustration-offline.js +13 -4
- package/es/svg-components/illustration-success.js +13 -4
- package/es/svg-components/index.js +76 -10
- package/es/switch/index.js +23 -3
- package/es/switch/style/index.js +4 -2
- package/es/switch/switch.js +34 -9
- package/es/table/assets/image-loading-background.js +13 -4
- package/es/table/assets/image-loading.js +13 -4
- package/es/table/constants.js +7 -1
- package/es/table/context.js +8 -2
- package/es/table/hooks/index.js +27 -2
- package/es/table/hooks/use-column-setting.js +31 -8
- package/es/table/hooks/use-expand-fixed.js +77 -47
- package/es/table/index.js +23 -6
- package/es/table/resizableTable/index.js +80 -57
- package/es/table/style/index.js +10 -10
- package/es/table/table-hoc.js +19 -14
- package/es/table/table.js +133 -108
- package/es/table/table.stories.js +130 -97
- package/es/table/total-shower.js +14 -8
- package/es/table/utils.js +22 -13
- package/es/table-container/index.js +21 -12
- package/es/tabs/index.js +21 -4
- package/es/tabs/style/index.js +4 -2
- package/es/tabs/tabs.js +44 -24
- package/es/tabs-container/index.js +22 -13
- package/es/tag/index.js +22 -5
- package/es/tag/style/index.js +4 -2
- package/es/tag/tag.js +93 -81
- package/es/time-picker/index.js +26 -6
- package/es/time-picker/style/index.js +4 -2
- package/es/timeline/index.js +24 -4
- package/es/timeline/style/index.js +4 -2
- package/es/title/index.js +40 -32
- package/es/tntd-action/index.js +9 -4
- package/es/tntd-cascader/AntdCascader/component/DisabledContext.js +16 -8
- package/es/tntd-cascader/AntdCascader/component/FormItemInputContext.js +11 -2
- package/es/tntd-cascader/AntdCascader/component/SizeContext.js +11 -2
- package/es/tntd-cascader/AntdCascader/component/context.js +13 -6
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +30 -18
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +38 -28
- package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +25 -19
- package/es/tntd-cascader/AntdCascader/config/utils.js +24 -15
- package/es/tntd-cascader/AntdCascader/config/warning.js +15 -6
- package/es/tntd-cascader/AntdCascader/index.js +136 -128
- package/es/tntd-cascader/AntdCascader/interface.js +15 -4
- package/es/tntd-cascader/index.js +13 -1
- package/es/tntd-cascader/rc-cascader/Cascader.js +220 -171
- package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +26 -19
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +125 -110
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +140 -106
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +32 -16
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +150 -118
- package/es/tntd-cascader/rc-cascader/context.js +12 -3
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +45 -29
- package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +27 -14
- package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +21 -10
- package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +15 -5
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +17 -8
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +47 -24
- package/es/tntd-cascader/rc-cascader/index.js +9 -2
- package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +28 -17
- package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +30 -19
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +24 -17
- package/es/tntd-form/ErrorList.js +75 -58
- package/es/tntd-form/Form.js +120 -83
- package/es/tntd-form/FormItem/ItemHolder.js +96 -80
- package/es/tntd-form/FormItem/index.js +152 -115
- package/es/tntd-form/FormItemInput.js +56 -44
- package/es/tntd-form/FormItemLabel.js +58 -54
- package/es/tntd-form/FormList.js +42 -29
- package/es/tntd-form/context.js +29 -20
- package/es/tntd-form/hooks/useDebounce.js +24 -6
- package/es/tntd-form/hooks/useForm.js +55 -32
- package/es/tntd-form/hooks/useFormInstance.js +11 -6
- package/es/tntd-form/hooks/useFormItemStatus.js +16 -10
- package/es/tntd-form/hooks/useFrameState.js +34 -15
- package/es/tntd-form/hooks/useItemRef.js +19 -11
- package/es/tntd-form/index.js +26 -16
- package/es/tntd-form/interface.js +7 -2
- package/es/tntd-form/style/index.js +6 -5
- package/es/tntd-form/util.js +15 -8
- package/es/tntd-form/validateMessagesContext.js +8 -2
- package/es/tntd-icon/fonts/iconfont.js +7 -7
- package/es/tntd-icon/index.js +30 -17
- package/es/tntd-layout/ActionsContext.js +8 -2
- package/es/tntd-layout/AppList.js +107 -189
- package/es/tntd-layout/Application.js +74 -96
- package/es/tntd-layout/Avatar.js +72 -118
- package/es/tntd-layout/CompatibleLanguage.js +99 -161
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +84 -132
- package/es/tntd-layout/EnterpriseLayout/Language.js +58 -70
- package/es/tntd-layout/EnterpriseLayout/Theme.js +53 -80
- package/es/tntd-layout/EnterpriseLayout/index.js +22 -15
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +196 -221
- package/es/tntd-layout/GlobalNavigation/index.js +82 -96
- package/es/tntd-layout/Header.js +59 -120
- package/es/tntd-layout/HeaderActions.js +70 -95
- package/es/tntd-layout/HeaderNavs.js +64 -79
- package/es/tntd-layout/HeaderTabs.js +146 -249
- package/es/tntd-layout/Iconfont.js +12 -3
- package/es/tntd-layout/Language.js +55 -57
- package/es/tntd-layout/Layout.js +129 -157
- package/es/tntd-layout/Logo.js +52 -108
- package/es/tntd-layout/OrgAppList.js +107 -299
- package/es/tntd-layout/SideMenu.js +191 -375
- package/es/tntd-layout/Theme.js +64 -73
- package/es/tntd-layout/createActions.js +33 -17
- package/es/tntd-layout/images/index.js +63 -57
- package/es/tntd-layout/index.js +78 -51
- package/es/tntd-layout/paaslayout/CompactSideMenu.js +97 -165
- package/es/tntd-layout/paaslayout/Header.js +38 -58
- package/es/tntd-layout/paaslayout/Logo.js +16 -22
- package/es/tntd-layout/paaslayout/SideMenu.js +100 -135
- package/es/tntd-layout/paaslayout/index.js +137 -126
- package/es/tntd-layout/storage.js +47 -20
- package/es/tntd-modal/index.js +61 -42
- package/es/tntd-rc-select/_util/DisabledContext.js +16 -8
- package/es/tntd-rc-select/_util/FormItemInputContext.js +11 -2
- package/es/tntd-rc-select/_util/PurePanel.js +52 -28
- package/es/tntd-rc-select/_util/SizeContext.js +11 -2
- package/es/tntd-rc-select/_util/context.js +13 -6
- package/es/tntd-rc-select/_util/defaultRenderEmpty.js +35 -23
- package/es/tntd-rc-select/_util/getIcons.js +39 -29
- package/es/tntd-rc-select/_util/interface.js +15 -4
- package/es/tntd-rc-select/_util/motion.js +31 -22
- package/es/tntd-rc-select/_util/type.js +18 -2
- package/es/tntd-rc-select/_util/useCompactItemContext.js +25 -19
- package/es/tntd-rc-select/_util/warning.js +15 -6
- package/es/tntd-rc-select/index.js +98 -99
- package/es/tntd-reference/AHref/index.js +18 -13
- package/es/tntd-reference/ReferenceBatchCheck/index.js +85 -73
- package/es/tntd-reference/ReferenceBatchDrawer/index.js +78 -54
- package/es/tntd-reference/ReferenceCheck/index.js +69 -60
- package/es/tntd-reference/ReferenceDrawer/index.js +59 -35
- package/es/tntd-reference/ReferenceInfo/index.js +73 -59
- package/es/tntd-reference/index.js +19 -12
- package/es/tntd-second-page/index.js +41 -31
- package/es/tntd-select/DropDownWrap.js +86 -60
- package/es/tntd-select/index.js +418 -385
- package/es/tntd-virtual-tree/index.js +160 -123
- package/es/tntd-virtual-tree/utils.js +150 -93
- package/es/tntd-virtual-tree-select/index.js +105 -77
- package/es/tntd-virtual-tree-select/utils.js +43 -23
- package/es/tooltip/index.js +25 -5
- package/es/tooltip/style/index.js +4 -2
- package/es/tooltip/tooltip.js +41 -21
- package/es/transfer/index.js +24 -4
- package/es/transfer/style/index.js +8 -7
- package/es/tree/index.js +24 -4
- package/es/tree/style/index.js +4 -2
- package/es/tree-select/index.js +30 -8
- package/es/tree-select/style/index.js +6 -6
- package/es/typography/index.js +24 -4
- package/es/typography/style/index.js +6 -5
- package/es/upload/index.js +129 -89
- package/es/upload/style/index.js +6 -5
- package/es/upload/svg/UploadSVG.js +19 -12
- package/es/utils/checkAuth.js +23 -13
- package/es/utils/findMenuInfoByPath.js +22 -16
- package/es/utils/index.js +105 -33
- package/es/utils/lang.js +26 -16
- package/es/utils/simple-template.js +11 -2
- package/es/version/index.js +24 -4
- package/es/version/style/index.js +3 -2
- package/es/water-mark/index.js +85 -55
- package/lib/_util/context.js +5 -1
- package/lib/_util/defaultRenderEmpty.js +39 -4
- package/lib/_util/hooks/useFlexGapSupport.js +83 -9
- package/lib/_util/hooks/useForceUpdate.js +83 -9
- package/lib/_util/reactNode.js +34 -3
- package/lib/_util/responsiveObserve.js +37 -4
- package/lib/_util/styleChecker.js +5 -1
- package/lib/_util/warning.js +34 -3
- package/lib/actions/index.js +5 -1
- package/lib/affix/index.js +34 -3
- package/lib/alert/index.js +34 -3
- package/lib/anchor/index.js +34 -3
- package/lib/array-input/index.js +128 -17
- package/lib/auto-complete/index.js +34 -3
- package/lib/avatar/index.js +34 -3
- package/lib/back-top/index.js +34 -3
- package/lib/badge/index.js +34 -3
- package/lib/breadcrumb/index.js +34 -3
- package/lib/button/button.js +34 -3
- package/lib/calendar/index.js +34 -3
- package/lib/card/card.js +34 -3
- package/lib/carousel/index.js +34 -3
- package/lib/cascader/index.js +34 -3
- package/lib/check-card/group.js +100 -14
- package/lib/check-card/index.js +116 -13
- package/lib/checkbox/checkbox-group.js +5 -1
- package/lib/checkbox/index.js +34 -3
- package/lib/col/index.js +34 -3
- package/lib/collapse/index.js +34 -3
- package/lib/color-picker/ColorPicker.js +116 -13
- package/lib/color-picker/index.js +5 -1
- package/lib/columns/index.js +5 -1
- package/lib/comment/index.js +34 -3
- package/lib/config-provider/DisabledContext.js +34 -3
- package/lib/config-provider/SizeContext.js +34 -3
- package/lib/config-provider/config-provider.js +5 -1
- package/lib/config-provider/index.js +34 -3
- package/lib/date-picker/index.js +34 -3
- package/lib/descriptions/descriptions.js +70 -10
- package/lib/development-login/LoginModal.js +116 -13
- package/lib/development-login/index.js +85 -11
- package/lib/divider/index.js +34 -3
- package/lib/drawer/drawer.js +67 -7
- package/lib/dropdown/index.js +34 -3
- package/lib/ellipsis/Svg/CopySVG.js +5 -1
- package/lib/ellipsis/Svg/TickSVG.js +5 -1
- package/lib/ellipsis/index.js +92 -14
- package/lib/empty/empty.js +67 -7
- package/lib/empty/empty.stories.js +15 -2
- package/lib/exception/exception.js +5 -1
- package/lib/form/form.js +67 -7
- package/lib/grid/index.js +34 -3
- package/lib/grid-v4/col.js +67 -7
- package/lib/grid-v4/hooks/useBreakpoint.js +5 -1
- package/lib/grid-v4/index.js +5 -1
- package/lib/grid-v4/row.js +116 -13
- package/lib/handle/index.js +39 -5
- package/lib/handle-icon/index.js +15 -11
- package/lib/icon/IconFont.js +39 -4
- package/lib/icon/components/Icon.js +138 -16
- package/lib/icon/components/index.js +5 -1
- package/lib/icon/components/utils.js +70 -8
- package/lib/icon/index.js +92 -13
- package/lib/icon/twoTonePrimaryColor.js +5 -1
- package/lib/icon/utils.js +5 -1
- package/lib/icon-old/index.js +34 -3
- package/lib/img/Contain.js +5 -1
- package/lib/img/Cover.js +88 -10
- package/lib/img/index.js +88 -10
- package/lib/index.js +5 -1
- package/lib/input/input.js +67 -7
- package/lib/input-number/index.js +39 -4
- package/lib/label/index.js +67 -7
- package/lib/layout/index.js +34 -3
- package/lib/list/index.js +34 -3
- package/lib/loading-button/index.js +88 -10
- package/lib/locale/default.js +5 -1
- package/lib/locale/en_US.js +5 -1
- package/lib/locale/zh_CN.js +5 -1
- package/lib/locale-provider/index.js +34 -3
- package/lib/mentions/index.js +34 -3
- package/lib/menu/index.js +34 -3
- package/lib/message/index.js +34 -3
- package/lib/modal/modal.js +39 -4
- package/lib/notification/assets/index.js +5 -1
- package/lib/notification/assets/svg-error-tip.js +34 -3
- package/lib/notification/assets/svg-success-tip.js +34 -3
- package/lib/notification/index.js +5 -1
- package/lib/notification/notification.js +39 -4
- package/lib/page/Box.js +5 -1
- package/lib/page/index.js +67 -11
- package/lib/page-container/index.js +5 -1
- package/lib/page-header/index.js +34 -3
- package/lib/page-loading/index.js +5 -1
- package/lib/pagination/index.js +34 -3
- package/lib/popconfirm/index.js +34 -3
- package/lib/popover/index.js +34 -3
- package/lib/preview-text/index.js +45 -10
- package/lib/progress/index.js +34 -3
- package/lib/query-form/Field/Checkbox.js +5 -1
- package/lib/query-form/Field/Select.js +116 -13
- package/lib/query-form/Field/SelectInput.js +116 -13
- package/lib/query-form/Field/fieldsMap.js +5 -1
- package/lib/query-form/Field/index.js +143 -17
- package/lib/query-form/createActions.js +5 -1
- package/lib/query-form/index.js +143 -17
- package/lib/query-form/useForm.js +5 -1
- package/lib/query-list-scene/List.js +133 -20
- package/lib/query-list-scene/QueryForm.js +118 -15
- package/lib/query-list-scene/QueryListScene.js +118 -15
- package/lib/query-list-scene/Title.js +5 -1
- package/lib/query-list-scene/Toolbar.js +42 -5
- package/lib/query-list-scene/createActions.js +5 -1
- package/lib/query-list-scene/index.js +5 -1
- package/lib/query-list-scene/useActions.js +5 -1
- package/lib/radio/index.js +39 -4
- package/lib/radio/radio-group.js +5 -1
- package/lib/rate/index.js +34 -3
- package/lib/render-empty/render-empty.js +5 -1
- package/lib/result/index.js +34 -3
- package/lib/row/index.js +34 -3
- package/lib/segmented/index.js +67 -7
- package/lib/select/select.js +67 -7
- package/lib/skeleton/index.js +34 -3
- package/lib/slider/index.js +34 -3
- package/lib/spin/index.js +34 -3
- package/lib/statistic/index.js +34 -3
- package/lib/steps/steps.js +67 -7
- package/lib/svg-components/illustration-403.js +34 -3
- package/lib/svg-components/illustration-404.js +34 -3
- package/lib/svg-components/illustration-500.js +34 -3
- package/lib/svg-components/illustration-empty.js +34 -3
- package/lib/svg-components/illustration-failure.js +34 -3
- package/lib/svg-components/illustration-no-access.js +34 -3
- package/lib/svg-components/illustration-no-chart.js +34 -3
- package/lib/svg-components/illustration-no-result.js +34 -3
- package/lib/svg-components/illustration-offline.js +34 -3
- package/lib/svg-components/illustration-success.js +34 -3
- package/lib/svg-components/index.js +5 -1
- package/lib/switch/index.js +34 -3
- package/lib/switch/switch.js +39 -4
- package/lib/table/assets/image-loading-background.js +34 -3
- package/lib/table/assets/image-loading.js +34 -3
- package/lib/table/hooks/use-column-setting.js +49 -6
- package/lib/table/hooks/use-expand-fixed.js +392 -10
- package/lib/table/resizableTable/index.js +116 -13
- package/lib/table/table-hoc.js +5 -1
- package/lib/table/table.js +119 -16
- package/lib/table/table.stories.js +42 -5
- package/lib/table/total-shower.js +5 -1
- package/lib/table/utils.js +5 -1
- package/lib/table-container/index.js +5 -1
- package/lib/tabs/tabs.js +34 -3
- package/lib/tabs-container/index.js +5 -1
- package/lib/tag/tag.js +67 -7
- package/lib/time-picker/index.js +34 -3
- package/lib/timeline/index.js +34 -3
- package/lib/title/index.js +5 -1
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +34 -3
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +34 -3
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +34 -3
- package/lib/tntd-cascader/AntdCascader/component/context.js +5 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +39 -4
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +39 -4
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +67 -7
- package/lib/tntd-cascader/AntdCascader/config/utils.js +42 -5
- package/lib/tntd-cascader/AntdCascader/config/warning.js +34 -3
- package/lib/tntd-cascader/AntdCascader/index.js +92 -13
- package/lib/tntd-cascader/index.js +5 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.js +100 -14
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +67 -7
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +92 -13
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +128 -17
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +88 -10
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +100 -14
- package/lib/tntd-cascader/rc-cascader/context.js +34 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +59 -9
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +34 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +34 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +34 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +39 -4
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +87 -12
- package/lib/tntd-cascader/rc-cascader/index.js +5 -1
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +8 -4
- package/lib/tntd-form/ErrorList.js +92 -13
- package/lib/tntd-form/Form.js +116 -13
- package/lib/tntd-form/FormItem/ItemHolder.js +116 -13
- package/lib/tntd-form/FormItem/index.js +100 -14
- package/lib/tntd-form/FormItemInput.js +39 -4
- package/lib/tntd-form/FormItemLabel.js +67 -7
- package/lib/tntd-form/FormList.js +39 -4
- package/lib/tntd-form/context.js +39 -4
- package/lib/tntd-form/hooks/useDebounce.js +83 -9
- package/lib/tntd-form/hooks/useForm.js +88 -10
- package/lib/tntd-form/hooks/useFormItemStatus.js +5 -1
- package/lib/tntd-form/hooks/useFrameState.js +88 -10
- package/lib/tntd-form/hooks/useItemRef.js +34 -3
- package/lib/tntd-form/index.js +39 -4
- package/lib/tntd-icon/index.js +5 -1
- package/lib/tntd-layout/AppList.js +98 -11
- package/lib/tntd-layout/Application.js +98 -11
- package/lib/tntd-layout/Avatar.js +49 -5
- package/lib/tntd-layout/CompatibleLanguage.js +98 -11
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +49 -5
- package/lib/tntd-layout/EnterpriseLayout/Language.js +98 -11
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +98 -11
- package/lib/tntd-layout/EnterpriseLayout/index.js +5 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +98 -11
- package/lib/tntd-layout/GlobalNavigation/index.js +110 -15
- package/lib/tntd-layout/Header.js +49 -5
- package/lib/tntd-layout/HeaderActions.js +49 -5
- package/lib/tntd-layout/HeaderNavs.js +98 -11
- package/lib/tntd-layout/HeaderTabs.js +126 -14
- package/lib/tntd-layout/Iconfont.js +5 -1
- package/lib/tntd-layout/Language.js +98 -11
- package/lib/tntd-layout/Layout.js +98 -11
- package/lib/tntd-layout/Logo.js +49 -5
- package/lib/tntd-layout/OrgAppList.js +98 -11
- package/lib/tntd-layout/SideMenu.js +98 -11
- package/lib/tntd-layout/Theme.js +98 -11
- package/lib/tntd-layout/createActions.js +5 -1
- package/lib/tntd-layout/images/index.js +5 -1
- package/lib/tntd-layout/index.js +39 -4
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +98 -11
- package/lib/tntd-layout/paaslayout/Header.js +49 -5
- package/lib/tntd-layout/paaslayout/Logo.js +15 -2
- package/lib/tntd-layout/paaslayout/SideMenu.js +98 -11
- package/lib/tntd-layout/paaslayout/index.js +98 -11
- package/lib/tntd-layout/storage.js +5 -1
- package/lib/tntd-modal/index.js +116 -13
- package/lib/tntd-rc-select/_util/DisabledContext.js +34 -3
- package/lib/tntd-rc-select/_util/FormItemInputContext.js +34 -3
- package/lib/tntd-rc-select/_util/PurePanel.js +88 -10
- package/lib/tntd-rc-select/_util/SizeContext.js +34 -3
- package/lib/tntd-rc-select/_util/context.js +5 -1
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +39 -4
- package/lib/tntd-rc-select/_util/getIcons.js +39 -4
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +67 -7
- package/lib/tntd-rc-select/_util/warning.js +34 -3
- package/lib/tntd-rc-select/index.js +67 -7
- package/lib/tntd-reference/AHref/index.js +5 -1
- package/lib/tntd-reference/ReferenceBatchCheck/index.js +5 -1
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js +88 -10
- package/lib/tntd-reference/ReferenceCheck/index.js +5 -1
- package/lib/tntd-reference/ReferenceDrawer/index.js +88 -10
- package/lib/tntd-reference/ReferenceInfo/index.js +5 -1
- package/lib/tntd-reference/index.js +5 -1
- package/lib/tntd-second-page/index.js +5 -1
- package/lib/tntd-select/DropDownWrap.js +124 -15
- package/lib/tntd-select/index.js +129 -17
- package/lib/tntd-virtual-tree/index.js +106 -20
- package/lib/tntd-virtual-tree/utils.js +98 -29
- package/lib/tntd-virtual-tree-select/index.js +93 -15
- package/lib/tntd-virtual-tree-select/utils.js +29 -10
- package/lib/tooltip/index.js +34 -3
- package/lib/tooltip/tooltip.js +39 -4
- package/lib/transfer/index.js +34 -3
- package/lib/tree/index.js +34 -3
- package/lib/tree-select/index.js +34 -3
- package/lib/typography/index.js +34 -3
- package/lib/upload/index.js +139 -11
- package/lib/upload/svg/UploadSVG.js +5 -1
- package/lib/utils/checkAuth.js +8 -4
- package/lib/utils/index.js +29 -10
- package/lib/utils/lang.js +5 -1
- package/lib/version/index.js +34 -3
- package/lib/water-mark/index.js +88 -10
- package/package.json +3 -3
- package/CHANGELOG.json +0 -1034
- package/CHANGELOG.md +0 -605
- package/es/alert/alert.js +0 -71
- package/es/alert/alert.js.map +0 -1
- package/es/cascader/cascader.js +0 -30
- package/es/cascader/cascader.js.map +0 -1
- package/es/checkbox/checkbox.js +0 -48
- package/es/checkbox/checkbox.js.map +0 -1
- package/es/date-picker/DatePicker.js +0 -101
- package/es/date-picker/DatePicker.js.map +0 -1
- package/es/input-number/inputNumber.js +0 -34
- package/es/input-number/inputNumber.js.map +0 -1
- package/es/popconfirm/popconfirm.js +0 -43
- package/es/popconfirm/popconfirm.js.map +0 -1
- package/es/popover/popover.js +0 -34
- package/es/popover/popover.js.map +0 -1
- package/es/progress/progress.js +0 -132
- package/es/progress/progress.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.js +0 -302
- package/es/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/es/query-form/Field/Composition/FieldPopover.less +0 -35
- package/es/query-form/Field/Composition/Select.js +0 -122
- package/es/query-form/Field/Composition/Select.js.map +0 -1
- package/es/query-form/Field/Composition/ValueTag.js +0 -124
- package/es/query-form/Field/Composition/ValueTag.js.map +0 -1
- package/es/query-form/Field/Composition/index.js +0 -242
- package/es/query-form/Field/Composition/index.js.map +0 -1
- package/es/query-form/Field/Composition/index.less +0 -145
- package/es/query-form/Field/Composition/utils.js +0 -152
- package/es/query-form/Field/Composition/utils.js.map +0 -1
- package/es/query-form-v2/index.less +0 -133
- package/es/radio/radio.js +0 -57
- package/es/radio/radio.js.map +0 -1
- package/es/scroll-bar/Bar.js +0 -56
- package/es/scroll-bar/Bar.js.map +0 -1
- package/es/scroll-bar/Context.js +0 -6
- package/es/scroll-bar/Context.js.map +0 -1
- package/es/scroll-bar/ScrollBar.js +0 -86
- package/es/scroll-bar/ScrollBar.js.map +0 -1
- package/es/scroll-bar/Thumb.js +0 -105
- package/es/scroll-bar/Thumb.js.map +0 -1
- package/es/scroll-bar/index.js +0 -3
- package/es/scroll-bar/index.js.map +0 -1
- package/es/scroll-bar/scrollBar.less +0 -59
- package/es/scroll-bar/util.js +0 -31
- package/es/scroll-bar/util.js.map +0 -1
- package/es/spin/spin.js +0 -36
- package/es/spin/spin.js.map +0 -1
- package/es/time-picker/TimePicker.js +0 -36
- package/es/time-picker/TimePicker.js.map +0 -1
- package/es/tntd-action/Action.js +0 -117
- package/es/tntd-action/Action.js.map +0 -1
- package/lib/alert/alert.d.ts +0 -12
- package/lib/alert/alert.d.ts.map +0 -1
- package/lib/alert/alert.js +0 -93
- package/lib/alert/alert.js.map +0 -1
- package/lib/cascader/cascader.d.ts +0 -10
- package/lib/cascader/cascader.d.ts.map +0 -1
- package/lib/cascader/cascader.js +0 -49
- package/lib/cascader/cascader.js.map +0 -1
- package/lib/checkbox/checkbox.d.ts +0 -16
- package/lib/checkbox/checkbox.d.ts.map +0 -1
- package/lib/checkbox/checkbox.js +0 -65
- package/lib/checkbox/checkbox.js.map +0 -1
- package/lib/date-picker/DatePicker.d.ts +0 -21
- package/lib/date-picker/DatePicker.d.ts.map +0 -1
- package/lib/date-picker/DatePicker.js +0 -128
- package/lib/date-picker/DatePicker.js.map +0 -1
- package/lib/input-number/inputNumber.d.ts +0 -10
- package/lib/input-number/inputNumber.d.ts.map +0 -1
- package/lib/input-number/inputNumber.js +0 -54
- package/lib/input-number/inputNumber.js.map +0 -1
- package/lib/popconfirm/popconfirm.d.ts +0 -8
- package/lib/popconfirm/popconfirm.d.ts.map +0 -1
- package/lib/popconfirm/popconfirm.js +0 -61
- package/lib/popconfirm/popconfirm.js.map +0 -1
- package/lib/popover/popover.d.ts +0 -14
- package/lib/popover/popover.d.ts.map +0 -1
- package/lib/popover/popover.js +0 -55
- package/lib/popover/popover.js.map +0 -1
- package/lib/progress/progress.d.ts +0 -12
- package/lib/progress/progress.d.ts.map +0 -1
- package/lib/progress/progress.js +0 -148
- package/lib/progress/progress.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.js +0 -341
- package/lib/query-form/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/Select.js +0 -146
- package/lib/query-form/Field/Composition/Select.js.map +0 -1
- package/lib/query-form/Field/Composition/ValueTag.d.ts +0 -13
- package/lib/query-form/Field/Composition/ValueTag.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/ValueTag.js +0 -158
- package/lib/query-form/Field/Composition/ValueTag.js.map +0 -1
- package/lib/query-form/Field/Composition/index.d.ts +0 -13
- package/lib/query-form/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/index.js +0 -286
- package/lib/query-form/Field/Composition/index.js.map +0 -1
- package/lib/query-form/Field/Composition/index.less +0 -145
- package/lib/query-form/Field/Composition/utils.d.ts +0 -21
- package/lib/query-form/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form/Field/Composition/utils.js +0 -168
- package/lib/query-form/Field/Composition/utils.js.map +0 -1
- package/lib/query-form-v2/index.less +0 -133
- package/lib/radio/radio.d.ts +0 -17
- package/lib/radio/radio.d.ts.map +0 -1
- package/lib/radio/radio.js +0 -75
- package/lib/radio/radio.js.map +0 -1
- package/lib/scroll-bar/Bar.d.ts +0 -4
- package/lib/scroll-bar/Bar.d.ts.map +0 -1
- package/lib/scroll-bar/Bar.js +0 -91
- package/lib/scroll-bar/Bar.js.map +0 -1
- package/lib/scroll-bar/Context.d.ts +0 -7
- package/lib/scroll-bar/Context.d.ts.map +0 -1
- package/lib/scroll-bar/Context.js +0 -13
- package/lib/scroll-bar/Context.js.map +0 -1
- package/lib/scroll-bar/ScrollBar.d.ts +0 -4
- package/lib/scroll-bar/ScrollBar.d.ts.map +0 -1
- package/lib/scroll-bar/ScrollBar.js +0 -97
- package/lib/scroll-bar/ScrollBar.js.map +0 -1
- package/lib/scroll-bar/Thumb.d.ts +0 -3
- package/lib/scroll-bar/Thumb.d.ts.map +0 -1
- package/lib/scroll-bar/Thumb.js +0 -125
- package/lib/scroll-bar/Thumb.js.map +0 -1
- package/lib/scroll-bar/index.d.ts +0 -3
- package/lib/scroll-bar/index.d.ts.map +0 -1
- package/lib/scroll-bar/index.js +0 -10
- package/lib/scroll-bar/index.js.map +0 -1
- package/lib/scroll-bar/scrollBar.less +0 -59
- package/lib/scroll-bar/util.d.ts +0 -40
- package/lib/scroll-bar/util.d.ts.map +0 -1
- package/lib/scroll-bar/util.js +0 -39
- package/lib/scroll-bar/util.js.map +0 -1
- package/lib/spin/spin.d.ts +0 -9
- package/lib/spin/spin.d.ts.map +0 -1
- package/lib/spin/spin.js +0 -44
- package/lib/spin/spin.js.map +0 -1
- package/lib/time-picker/TimePicker.d.ts +0 -9
- package/lib/time-picker/TimePicker.d.ts.map +0 -1
- package/lib/time-picker/TimePicker.js +0 -55
- package/lib/time-picker/TimePicker.js.map +0 -1
- package/lib/tntd-action/Action.d.ts +0 -6
- package/lib/tntd-action/Action.d.ts.map +0 -1
- package/lib/tntd-action/Action.js +0 -141
- package/lib/tntd-action/Action.js.map +0 -1
|
@@ -4,13 +4,82 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getNodeValuess = exports.getNodeStr = exports.getNodeParentChoosed = exports.getNodeNoDisabledLastestChildrenValues = exports.getNodeNoDisabledChildrenValues = exports.getIndeterminate = exports.getFullExpandedKeys = exports.getFullCheckedKeys = exports.flatTreeData = exports.findNodeDetail = exports.addTreeNodeAttrs = void 0;
|
|
7
|
-
function _createForOfIteratorHelper(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
8
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
9
|
+
if (!it) {
|
|
10
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
11
|
+
if (it) o = it;
|
|
12
|
+
var i = 0;
|
|
13
|
+
var F = function F() {};
|
|
14
|
+
return {
|
|
15
|
+
s: F,
|
|
16
|
+
n: function n() {
|
|
17
|
+
if (i >= o.length) return {
|
|
18
|
+
done: true
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
done: false,
|
|
22
|
+
value: o[i++]
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
e: function e(_e) {
|
|
26
|
+
throw _e;
|
|
27
|
+
},
|
|
28
|
+
f: F
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32
|
+
}
|
|
33
|
+
var normalCompletion = true,
|
|
34
|
+
didErr = false,
|
|
35
|
+
err;
|
|
36
|
+
return {
|
|
37
|
+
s: function s() {
|
|
38
|
+
it = it.call(o);
|
|
39
|
+
},
|
|
40
|
+
n: function n() {
|
|
41
|
+
var step = it.next();
|
|
42
|
+
normalCompletion = step.done;
|
|
43
|
+
return step;
|
|
44
|
+
},
|
|
45
|
+
e: function e(_e2) {
|
|
46
|
+
didErr = true;
|
|
47
|
+
err = _e2;
|
|
48
|
+
},
|
|
49
|
+
f: function f() {
|
|
50
|
+
try {
|
|
51
|
+
if (!normalCompletion && it["return"] != null) it["return"]();
|
|
52
|
+
} finally {
|
|
53
|
+
if (didErr) throw err;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function _toConsumableArray(arr) {
|
|
59
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
60
|
+
}
|
|
61
|
+
function _nonIterableSpread() {
|
|
62
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
63
|
+
}
|
|
64
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
65
|
+
if (!o) return;
|
|
66
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
67
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
68
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
69
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
70
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
71
|
+
}
|
|
72
|
+
function _iterableToArray(iter) {
|
|
73
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
74
|
+
}
|
|
75
|
+
function _arrayWithoutHoles(arr) {
|
|
76
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
77
|
+
}
|
|
78
|
+
function _arrayLikeToArray(arr, len) {
|
|
79
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
80
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
81
|
+
return arr2;
|
|
82
|
+
}
|
|
14
83
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
15
84
|
var t = {};
|
|
16
85
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -29,7 +98,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
29
98
|
* 用于判断后续展开/收起
|
|
30
99
|
* @param {*} treeData
|
|
31
100
|
*/
|
|
32
|
-
var
|
|
101
|
+
var addTreeNodeAttrs = exports.addTreeNodeAttrs = function addTreeNodeAttrs(treeData) {
|
|
33
102
|
var fieldNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
34
103
|
title: 'title',
|
|
35
104
|
value: 'value',
|
|
@@ -60,28 +129,28 @@ var _addTreeNodeAttrs = exports.addTreeNodeAttrs = function addTreeNodeAttrs(tre
|
|
|
60
129
|
} else {
|
|
61
130
|
siblingsSum = [];
|
|
62
131
|
}
|
|
63
|
-
query.children =
|
|
132
|
+
query.children = addTreeNodeAttrs(children, fieldNames, siblingsSum);
|
|
64
133
|
}
|
|
65
134
|
return Object.assign(Object.assign({}, query), {
|
|
66
135
|
title: query[fieldNames['title']],
|
|
67
136
|
value: query[fieldNames['value']],
|
|
68
137
|
disabled: query[fieldNames['disabled']],
|
|
69
|
-
childrenValues:
|
|
70
|
-
titleTotal:
|
|
71
|
-
needCheckedLastestChildrenValues: !item[fieldNames['disabled']] ?
|
|
72
|
-
needCheckedChildrenValues: !item[fieldNames['disabled']] ?
|
|
138
|
+
childrenValues: getNodeValuess(query, false),
|
|
139
|
+
titleTotal: getNodeStr(query, fieldNames['title']),
|
|
140
|
+
needCheckedLastestChildrenValues: !item[fieldNames['disabled']] ? getNodeNoDisabledLastestChildrenValues(item, fieldNames) : [],
|
|
141
|
+
needCheckedChildrenValues: !item[fieldNames['disabled']] ? getNodeNoDisabledChildrenValues(item, fieldNames) : [],
|
|
73
142
|
needCheckedSiblingsValue: !item[fieldNames['disabled']] ? needCheckedSiblingsValue : []
|
|
74
143
|
});
|
|
75
144
|
});
|
|
76
145
|
}
|
|
77
146
|
return [];
|
|
78
147
|
};
|
|
79
|
-
var
|
|
148
|
+
var getNodeStr = exports.getNodeStr = function getNodeStr(node, key) {
|
|
80
149
|
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
81
150
|
result.push(node[key]);
|
|
82
151
|
if (Array.isArray(node.children) && !!node.children.length) {
|
|
83
152
|
node.children.forEach(function (element) {
|
|
84
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
153
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(getNodeStr(element, key)));
|
|
85
154
|
});
|
|
86
155
|
}
|
|
87
156
|
return result;
|
|
@@ -93,7 +162,7 @@ var _getNodeStr = exports.getNodeStr = function getNodeStr(node, key) {
|
|
|
93
162
|
* @param {*} result
|
|
94
163
|
* @returns []
|
|
95
164
|
*/
|
|
96
|
-
var
|
|
165
|
+
var getNodeValuess = exports.getNodeValuess = function getNodeValuess(node) {
|
|
97
166
|
var widthSelf = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
98
167
|
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
99
168
|
if (widthSelf) {
|
|
@@ -101,7 +170,7 @@ var _getNodeValuess = exports.getNodeValuess = function getNodeValuess(node) {
|
|
|
101
170
|
}
|
|
102
171
|
if (Array.isArray(node.children) && !!node.children.length) {
|
|
103
172
|
node.children.forEach(function (element) {
|
|
104
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
173
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(getNodeValuess(element)));
|
|
105
174
|
});
|
|
106
175
|
}
|
|
107
176
|
return result;
|
|
@@ -115,7 +184,7 @@ var _getNodeValuess = exports.getNodeValuess = function getNodeValuess(node) {
|
|
|
115
184
|
* @param {*} result
|
|
116
185
|
* @returns
|
|
117
186
|
*/
|
|
118
|
-
var
|
|
187
|
+
var flatTreeData = exports.flatTreeData = function flatTreeData(treeData) {
|
|
119
188
|
var filterKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
120
189
|
var expandedKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
121
190
|
var treeDefaultExpandAll = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
|
|
@@ -147,7 +216,7 @@ var _flatTreeData = exports.flatTreeData = function flatTreeData(treeData) {
|
|
|
147
216
|
}
|
|
148
217
|
var selfIn = Array.isArray(expandedKeys) ? expandedKeys.includes(value) : false;
|
|
149
218
|
if ((treeDefaultExpandAll || selfIn || transFilterKey && bingo) && Array.isArray(children) && !!children.length) {
|
|
150
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
219
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(flatTreeData(children, filterKey, expandedKeys, treeDefaultExpandAll, indexLevel + 1)));
|
|
151
220
|
}
|
|
152
221
|
}
|
|
153
222
|
} catch (err) {
|
|
@@ -165,7 +234,7 @@ var _flatTreeData = exports.flatTreeData = function flatTreeData(treeData) {
|
|
|
165
234
|
* @param {*} result
|
|
166
235
|
* @returns
|
|
167
236
|
*/
|
|
168
|
-
var
|
|
237
|
+
var getFullExpandedKeys = exports.getFullExpandedKeys = function getFullExpandedKeys(treeDataWithKeys) {
|
|
169
238
|
var treeExpandedKeys = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
170
239
|
var treeDefaultExpandAll = arguments.length > 2 ? arguments[2] : undefined;
|
|
171
240
|
var result = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
@@ -181,7 +250,7 @@ var _getFullExpandedKeys = exports.getFullExpandedKeys = function getFullExpande
|
|
|
181
250
|
})) {
|
|
182
251
|
result.push(value);
|
|
183
252
|
if (Array.isArray(children) && !!children.length) {
|
|
184
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
253
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(getFullExpandedKeys(children, treeExpandedKeys, treeDefaultExpandAll)));
|
|
185
254
|
}
|
|
186
255
|
}
|
|
187
256
|
});
|
|
@@ -194,7 +263,7 @@ var _getFullExpandedKeys = exports.getFullExpandedKeys = function getFullExpande
|
|
|
194
263
|
* @param {*} result
|
|
195
264
|
* @returns
|
|
196
265
|
*/
|
|
197
|
-
var
|
|
266
|
+
var getFullCheckedKeys = exports.getFullCheckedKeys = function getFullCheckedKeys(treeDataWithKeys, transCheckedKeys) {
|
|
198
267
|
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
199
268
|
if (!Array.isArray(treeDataWithKeys) || !treeDataWithKeys.length || !Array.isArray(transCheckedKeys) || !transCheckedKeys.length) {
|
|
200
269
|
return [];
|
|
@@ -215,7 +284,7 @@ var _getFullCheckedKeys = exports.getFullCheckedKeys = function getFullCheckedKe
|
|
|
215
284
|
})) {
|
|
216
285
|
result.push(value);
|
|
217
286
|
}
|
|
218
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
287
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(getFullCheckedKeys(children, transCheckedKeys)));
|
|
219
288
|
}
|
|
220
289
|
});
|
|
221
290
|
return result;
|
|
@@ -226,12 +295,12 @@ var _getFullCheckedKeys = exports.getFullCheckedKeys = function getFullCheckedKe
|
|
|
226
295
|
* @param {*} node
|
|
227
296
|
* @returns
|
|
228
297
|
*/
|
|
229
|
-
var
|
|
298
|
+
var getNodeNoDisabledLastestChildrenValues = exports.getNodeNoDisabledLastestChildrenValues = function getNodeNoDisabledLastestChildrenValues(node, fieldNames) {
|
|
230
299
|
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
231
300
|
if (Array.isArray(node.children) && !!node.children.length) {
|
|
232
301
|
node.children.forEach(function (element) {
|
|
233
302
|
if (!element[fieldNames['disabled']]) {
|
|
234
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
303
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(getNodeNoDisabledLastestChildrenValues(element, fieldNames)));
|
|
235
304
|
}
|
|
236
305
|
});
|
|
237
306
|
} else {
|
|
@@ -247,13 +316,13 @@ var _getNodeNoDisabledLastestChildrenValues = exports.getNodeNoDisabledLastestCh
|
|
|
247
316
|
* @param {*} node
|
|
248
317
|
* @returns
|
|
249
318
|
*/
|
|
250
|
-
var
|
|
319
|
+
var getNodeNoDisabledChildrenValues = exports.getNodeNoDisabledChildrenValues = function getNodeNoDisabledChildrenValues(node, fieldNames) {
|
|
251
320
|
var result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
252
321
|
if (Array.isArray(node.children) && !!node.children.length) {
|
|
253
322
|
node.children.forEach(function (element) {
|
|
254
323
|
if (!element[fieldNames['disabled']]) {
|
|
255
324
|
result.push(element[fieldNames['value']]);
|
|
256
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
325
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(getNodeNoDisabledChildrenValues(element, fieldNames)));
|
|
257
326
|
}
|
|
258
327
|
});
|
|
259
328
|
} else {
|
|
@@ -325,7 +394,7 @@ var getNodeParentChoosed = exports.getNodeParentChoosed = function getNodeParent
|
|
|
325
394
|
* @param {*} result
|
|
326
395
|
* @returns
|
|
327
396
|
*/
|
|
328
|
-
var
|
|
397
|
+
var findNodeDetail = exports.findNodeDetail = function findNodeDetail(tree, key, result) {
|
|
329
398
|
if (Array.isArray(tree) && !!key) {
|
|
330
399
|
var _iterator3 = _createForOfIteratorHelper(tree),
|
|
331
400
|
_step3;
|
|
@@ -337,7 +406,7 @@ var _findNodeDetail = exports.findNodeDetail = function findNodeDetail(tree, key
|
|
|
337
406
|
break;
|
|
338
407
|
}
|
|
339
408
|
if (Array.isArray(i.children) && !!i.children.length) {
|
|
340
|
-
result =
|
|
409
|
+
result = findNodeDetail(i.children, key);
|
|
341
410
|
if (result) {
|
|
342
411
|
break;
|
|
343
412
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) {
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function (o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
4
12
|
Object.defineProperty(exports, "__esModule", {
|
|
5
13
|
value: true
|
|
6
14
|
});
|
|
@@ -12,15 +20,85 @@ var _ellipsis = _interopRequireDefault(require("../ellipsis"));
|
|
|
12
20
|
var _tntdVirtualTree = _interopRequireDefault(require("../tntd-virtual-tree"));
|
|
13
21
|
var _utils = require("./utils.js");
|
|
14
22
|
require("./index.less");
|
|
15
|
-
function _interopRequireDefault(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
function _interopRequireDefault(obj) {
|
|
24
|
+
return obj && obj.__esModule ? obj : {
|
|
25
|
+
"default": obj
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function _getRequireWildcardCache(e) {
|
|
29
|
+
if ("function" != typeof WeakMap) return null;
|
|
30
|
+
var r = new WeakMap(),
|
|
31
|
+
t = new WeakMap();
|
|
32
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
33
|
+
return e ? t : r;
|
|
34
|
+
})(e);
|
|
35
|
+
}
|
|
36
|
+
function _interopRequireWildcard(e, r) {
|
|
37
|
+
if (!r && e && e.__esModule) return e;
|
|
38
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
39
|
+
"default": e
|
|
40
|
+
};
|
|
41
|
+
var t = _getRequireWildcardCache(r);
|
|
42
|
+
if (t && t.has(e)) return t.get(e);
|
|
43
|
+
var n = {
|
|
44
|
+
__proto__: null
|
|
45
|
+
},
|
|
46
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
47
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
48
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
49
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
50
|
+
}
|
|
51
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
52
|
+
}
|
|
53
|
+
function _slicedToArray(arr, i) {
|
|
54
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
55
|
+
}
|
|
56
|
+
function _nonIterableRest() {
|
|
57
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
58
|
+
}
|
|
59
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
60
|
+
if (!o) return;
|
|
61
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
62
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
63
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
64
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
65
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
66
|
+
}
|
|
67
|
+
function _arrayLikeToArray(arr, len) {
|
|
68
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
69
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
70
|
+
return arr2;
|
|
71
|
+
}
|
|
72
|
+
function _iterableToArrayLimit(r, l) {
|
|
73
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
74
|
+
if (null != t) {
|
|
75
|
+
var e,
|
|
76
|
+
n,
|
|
77
|
+
i,
|
|
78
|
+
u,
|
|
79
|
+
a = [],
|
|
80
|
+
f = !0,
|
|
81
|
+
o = !1;
|
|
82
|
+
try {
|
|
83
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
84
|
+
if (Object(t) !== t) return;
|
|
85
|
+
f = !1;
|
|
86
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
87
|
+
} catch (r) {
|
|
88
|
+
o = !0, n = r;
|
|
89
|
+
} finally {
|
|
90
|
+
try {
|
|
91
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
92
|
+
} finally {
|
|
93
|
+
if (o) throw n;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return a;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
function _arrayWithHoles(arr) {
|
|
100
|
+
if (Array.isArray(arr)) return arr;
|
|
101
|
+
}
|
|
24
102
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
25
103
|
var t = {};
|
|
26
104
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -72,7 +150,7 @@ var defaultDisplayRender = function defaultDisplayRender(selectValue, value, tre
|
|
|
72
150
|
}
|
|
73
151
|
return selectValue || undefined;
|
|
74
152
|
};
|
|
75
|
-
var
|
|
153
|
+
var TntdVirtualTreeSelect = function TntdVirtualTreeSelect(_a) {
|
|
76
154
|
var displayRender = _a.displayRender,
|
|
77
155
|
_a$indent = _a.indent,
|
|
78
156
|
indent = _a$indent === void 0 ? 24 : _a$indent,
|
|
@@ -120,7 +198,7 @@ var _TntdVirtualTreeSelect = function TntdVirtualTreeSelect(_a) {
|
|
|
120
198
|
return (0, _utils.getLableByValue)(treeList, value);
|
|
121
199
|
}
|
|
122
200
|
if (Array.isArray(value)) {
|
|
123
|
-
if (showCheckedStrategy ===
|
|
201
|
+
if (showCheckedStrategy === TntdVirtualTreeSelect.SHOW_ALL) {
|
|
124
202
|
return value.map(function (i) {
|
|
125
203
|
return (0, _utils.getLableByValue)(treeList, i);
|
|
126
204
|
});
|
|
@@ -213,6 +291,6 @@ var _TntdVirtualTreeSelect = function TntdVirtualTreeSelect(_a) {
|
|
|
213
291
|
}
|
|
214
292
|
}));
|
|
215
293
|
};
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
var _default = exports["default"] =
|
|
294
|
+
TntdVirtualTreeSelect.SHOW_CHILD = 'SHOW_CHILD';
|
|
295
|
+
TntdVirtualTreeSelect.SHOW_ALL = 'SHOW_ALL';
|
|
296
|
+
var _default = exports["default"] = TntdVirtualTreeSelect;
|
|
@@ -4,12 +4,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getLableByValue = exports.flatWithParents = exports.flatTreeData = exports.filterLastestNode = void 0;
|
|
7
|
-
function _toConsumableArray(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
function _toConsumableArray(arr) {
|
|
8
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
9
|
+
}
|
|
10
|
+
function _nonIterableSpread() {
|
|
11
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
12
|
+
}
|
|
13
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
14
|
+
if (!o) return;
|
|
15
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
16
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
17
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
18
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
19
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
20
|
+
}
|
|
21
|
+
function _iterableToArray(iter) {
|
|
22
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
23
|
+
}
|
|
24
|
+
function _arrayWithoutHoles(arr) {
|
|
25
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
26
|
+
}
|
|
27
|
+
function _arrayLikeToArray(arr, len) {
|
|
28
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
29
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
30
|
+
return arr2;
|
|
31
|
+
}
|
|
13
32
|
/**
|
|
14
33
|
* 给每个节点增加一个parent字段,记录其父节点用于showCheckedStrategy
|
|
15
34
|
* @param {*} treeData
|
|
@@ -17,7 +36,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
17
36
|
* @param {*} parents
|
|
18
37
|
* @returns
|
|
19
38
|
*/
|
|
20
|
-
var
|
|
39
|
+
var flatWithParents = exports.flatWithParents = function flatWithParents(treeData) {
|
|
21
40
|
var fieldNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
22
41
|
title: 'title',
|
|
23
42
|
value: 'value',
|
|
@@ -30,7 +49,7 @@ var _flatWithParents = exports.flatWithParents = function flatWithParents(treeDa
|
|
|
30
49
|
treeData.forEach(function (i) {
|
|
31
50
|
result[i[fieldNames['value']]] = parents;
|
|
32
51
|
if (Array.isArray(i[fieldNames['children']])) {
|
|
33
|
-
var list =
|
|
52
|
+
var list = flatWithParents(i[fieldNames['children']], fieldNames, [].concat(_toConsumableArray(parents), [i[fieldNames['value']]]));
|
|
34
53
|
result = Object.assign(Object.assign({}, result), list);
|
|
35
54
|
} else {}
|
|
36
55
|
});
|
|
@@ -52,7 +71,7 @@ var filterLastestNode = exports.filterLastestNode = function filterLastestNode(t
|
|
|
52
71
|
* @param {*} fieldNames 展开的节点
|
|
53
72
|
* @returns
|
|
54
73
|
*/
|
|
55
|
-
var
|
|
74
|
+
var flatTreeData = exports.flatTreeData = function flatTreeData(treeData) {
|
|
56
75
|
var fieldNames = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
57
76
|
title: 'title',
|
|
58
77
|
value: 'value',
|
|
@@ -67,7 +86,7 @@ var _flatTreeData = exports.flatTreeData = function flatTreeData(treeData) {
|
|
|
67
86
|
i['children'] = i[fieldNames['children']];
|
|
68
87
|
result.push(i);
|
|
69
88
|
if (Array.isArray(i.children) && !!i.children.length) {
|
|
70
|
-
result = [].concat(_toConsumableArray(result), _toConsumableArray(
|
|
89
|
+
result = [].concat(_toConsumableArray(result), _toConsumableArray(flatTreeData(i.children, fieldNames)));
|
|
71
90
|
}
|
|
72
91
|
});
|
|
73
92
|
}
|
package/lib/tooltip/index.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) {
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function (o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
4
12
|
Object.defineProperty(exports, "__esModule", {
|
|
5
13
|
value: true
|
|
6
14
|
});
|
|
@@ -20,6 +28,29 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
20
28
|
});
|
|
21
29
|
});
|
|
22
30
|
require("./index.less");
|
|
23
|
-
function _getRequireWildcardCache(e) {
|
|
24
|
-
|
|
31
|
+
function _getRequireWildcardCache(e) {
|
|
32
|
+
if ("function" != typeof WeakMap) return null;
|
|
33
|
+
var r = new WeakMap(),
|
|
34
|
+
t = new WeakMap();
|
|
35
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
36
|
+
return e ? t : r;
|
|
37
|
+
})(e);
|
|
38
|
+
}
|
|
39
|
+
function _interopRequireWildcard(e, r) {
|
|
40
|
+
if (!r && e && e.__esModule) return e;
|
|
41
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
42
|
+
"default": e
|
|
43
|
+
};
|
|
44
|
+
var t = _getRequireWildcardCache(r);
|
|
45
|
+
if (t && t.has(e)) return t.get(e);
|
|
46
|
+
var n = {
|
|
47
|
+
__proto__: null
|
|
48
|
+
},
|
|
49
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
50
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
51
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
52
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
53
|
+
}
|
|
54
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
55
|
+
}
|
|
25
56
|
var _default = exports["default"] = _tooltip["default"];
|
package/lib/tooltip/tooltip.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) {
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function (o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
4
12
|
Object.defineProperty(exports, "__esModule", {
|
|
5
13
|
value: true
|
|
6
14
|
});
|
|
@@ -21,9 +29,36 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
21
29
|
});
|
|
22
30
|
});
|
|
23
31
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
|
-
function _getRequireWildcardCache(e) {
|
|
25
|
-
|
|
26
|
-
|
|
32
|
+
function _getRequireWildcardCache(e) {
|
|
33
|
+
if ("function" != typeof WeakMap) return null;
|
|
34
|
+
var r = new WeakMap(),
|
|
35
|
+
t = new WeakMap();
|
|
36
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
37
|
+
return e ? t : r;
|
|
38
|
+
})(e);
|
|
39
|
+
}
|
|
40
|
+
function _interopRequireWildcard(e, r) {
|
|
41
|
+
if (!r && e && e.__esModule) return e;
|
|
42
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
43
|
+
"default": e
|
|
44
|
+
};
|
|
45
|
+
var t = _getRequireWildcardCache(r);
|
|
46
|
+
if (t && t.has(e)) return t.get(e);
|
|
47
|
+
var n = {
|
|
48
|
+
__proto__: null
|
|
49
|
+
},
|
|
50
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
51
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
52
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
53
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
54
|
+
}
|
|
55
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
56
|
+
}
|
|
57
|
+
function _interopRequireDefault(obj) {
|
|
58
|
+
return obj && obj.__esModule ? obj : {
|
|
59
|
+
"default": obj
|
|
60
|
+
};
|
|
61
|
+
}
|
|
27
62
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
28
63
|
var t = {};
|
|
29
64
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
package/lib/transfer/index.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) {
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function (o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
4
12
|
Object.defineProperty(exports, "__esModule", {
|
|
5
13
|
value: true
|
|
6
14
|
});
|
|
@@ -19,6 +27,29 @@ Object.keys(_transfer).forEach(function (key) {
|
|
|
19
27
|
});
|
|
20
28
|
});
|
|
21
29
|
require("./style");
|
|
22
|
-
function _getRequireWildcardCache(e) {
|
|
23
|
-
|
|
30
|
+
function _getRequireWildcardCache(e) {
|
|
31
|
+
if ("function" != typeof WeakMap) return null;
|
|
32
|
+
var r = new WeakMap(),
|
|
33
|
+
t = new WeakMap();
|
|
34
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
35
|
+
return e ? t : r;
|
|
36
|
+
})(e);
|
|
37
|
+
}
|
|
38
|
+
function _interopRequireWildcard(e, r) {
|
|
39
|
+
if (!r && e && e.__esModule) return e;
|
|
40
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
41
|
+
"default": e
|
|
42
|
+
};
|
|
43
|
+
var t = _getRequireWildcardCache(r);
|
|
44
|
+
if (t && t.has(e)) return t.get(e);
|
|
45
|
+
var n = {
|
|
46
|
+
__proto__: null
|
|
47
|
+
},
|
|
48
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
49
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
50
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
51
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
52
|
+
}
|
|
53
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
54
|
+
}
|
|
24
55
|
var _default = exports["default"] = _transfer["default"];
|