tntd 3.0.61 → 3.0.62
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 +1 -1
- package/es/_util/defaultRenderEmpty.js +1 -1
- package/es/_util/hooks/useFlexGapSupport.js +4 -4
- package/es/_util/hooks/useForceUpdate.js +4 -4
- package/es/_util/hooks/useScrollLock.js +5 -5
- package/es/_util/responsiveObserve.js +1 -1
- package/es/_util/styleChecker.js +1 -1
- package/es/actions/index.js +1 -1
- package/es/alert/alert.js +2 -2
- package/es/alert/index.js +1 -1
- package/es/anchor/anchor.js +5 -5
- package/es/array-input/index.js +9 -9
- package/es/button/button.js +2 -2
- package/es/cascader/cascader.js +1 -1
- package/es/check-card/group.js +8 -8
- package/es/check-card/index.js +6 -6
- package/es/checkbox/checkbox-group.js +16 -0
- package/es/checkbox/checkbox-group.js.map +1 -0
- package/es/checkbox/checkbox.js +1 -1
- package/es/color-picker/ColorPicker.js +6 -6
- package/es/color-picker/index.js +1 -1
- package/es/columns/index.js +1 -1
- package/es/config-provider/config-provider.js +1 -1
- package/es/date-picker/DatePicker.js +1 -1
- package/es/descriptions/descriptions.js +5 -5
- package/es/development-login/LoginModal.js +6 -6
- package/es/development-login/index.js +4 -4
- package/es/drawer/drawer.js +2 -2
- package/es/ellipsis/Svg/CopySVG.js +1 -1
- package/es/ellipsis/Svg/TickSVG.js +1 -1
- package/es/ellipsis/index.js +5 -5
- package/es/empty/empty.js +2 -2
- package/es/empty/empty.stories.js +2 -2
- package/es/exception/exception.js +1 -1
- package/es/form/form.js +2 -2
- package/es/grid-v4/col.js +2 -2
- package/es/grid-v4/hooks/useBreakpoint.js +1 -1
- package/es/grid-v4/index.js +1 -1
- package/es/grid-v4/row.js +6 -6
- package/es/handle/index.js +1 -1
- package/es/handle-icon/index.js +8 -8
- package/es/icon/IconFont.js +1 -1
- package/es/icon/components/Icon.js +9 -9
- package/es/icon/components/index.js +1 -1
- package/es/icon/components/utils.js +3 -3
- package/es/icon/index.js +7 -7
- package/es/icon/twoTonePrimaryColor.js +1 -1
- package/es/icon/utils.js +1 -1
- package/es/img/Contain.js +1 -1
- package/es/img/Cover.js +5 -5
- package/es/img/index.js +5 -5
- package/es/index.js +1 -1
- package/es/input/input.js +2 -2
- package/es/input-number/inputNumber.js +1 -1
- package/es/label/index.js +2 -2
- package/es/loading-button/index.js +5 -5
- package/es/locale/default.js +1 -1
- package/es/locale/en_US.js +1 -1
- package/es/locale/zh_CN.js +1 -1
- package/es/modal/modal.js +6 -4
- package/es/modal/modal.js.map +1 -1
- package/es/modal/modal.less +16 -0
- package/es/notification/assets/index.js +1 -1
- package/es/notification/index.js +1 -1
- package/es/notification/notification.js +1 -1
- package/es/page/Box.js +1 -1
- package/es/page/index.js +7 -7
- package/es/page-container/index.js +1 -1
- package/es/page-loading/index.js +1 -1
- package/es/popconfirm/popconfirm.js +1 -1
- package/es/popover/popover.js +1 -1
- package/es/preview-text/index.js +7 -7
- package/es/progress/progress.js +2 -2
- package/es/query-form/Field/Checkbox.js +1 -1
- package/es/query-form/Field/Composition/FieldPopover.js +31 -24
- package/es/query-form/Field/Composition/Select.js +31 -24
- package/es/query-form/Field/Composition/SelectInput.js +18 -17
- package/es/query-form/Field/Composition/ValueTag.js +18 -17
- package/es/query-form/Field/Composition/index.js +37 -30
- package/es/query-form/Field/Composition/utils.js +3 -3
- package/es/query-form/Field/Select.js +6 -6
- package/es/query-form/Field/SelectInput.js +6 -6
- package/es/query-form/Field/fieldsMap.js +1 -1
- package/es/query-form/Field/index.js +10 -10
- package/es/query-form/createActions.js +1 -1
- package/es/query-form/index.js +10 -10
- package/es/query-form/useForm.js +1 -1
- package/es/query-list-scene/List.js +13 -13
- package/es/query-list-scene/QueryForm.js +9 -9
- package/es/query-list-scene/QueryListScene.js +10 -10
- package/es/query-list-scene/Title.js +1 -1
- package/es/query-list-scene/Toolbar.js +2 -2
- package/es/query-list-scene/createActions.js +1 -1
- package/es/query-list-scene/index.js +1 -1
- package/es/query-list-scene/useActions.js +1 -1
- package/es/radio/radio-group.js +16 -0
- package/es/radio/radio-group.js.map +1 -0
- package/es/radio/radio.js +1 -1
- package/es/render-empty/render-empty.js +1 -1
- package/es/scroll-bar/Bar.js +5 -5
- package/es/scroll-bar/Context.js +1 -1
- package/es/scroll-bar/ScrollBar.js +1 -1
- package/es/scroll-bar/Thumb.js +5 -5
- package/es/scroll-bar/index.js +1 -1
- package/es/scroll-bar/util.js +1 -1
- package/es/segmented/index.js +2 -2
- package/es/select/select.js +2 -2
- package/es/spin/spin.js +1 -1
- package/es/steps/stepStyle/small.less +5 -0
- package/es/steps/steps.js +2 -2
- package/es/svg-components/index.js +1 -1
- package/es/table/hooks/use-column-setting.js +4 -4
- package/es/table/hooks/use-expand-fixed.js +6 -6
- package/es/table/resizableTable/index.js +6 -6
- package/es/table/table-hoc.js +1 -1
- package/es/table/table.js +9 -9
- package/es/table/table.stories.js +2 -2
- package/es/table/total-shower.js +20 -0
- package/es/table/total-shower.js.map +1 -0
- package/es/table/utils.js +1 -1
- package/es/table-container/index.js +1 -1
- package/es/tabs/tabs.js +2 -2
- package/es/tabs-container/index.js +1 -1
- package/es/tag/tag.js +2 -2
- package/es/time-picker/TimePicker.js +1 -1
- package/es/time-picker/index.js +1 -1
- package/es/title/index.js +1 -1
- package/es/tntd-action/Action.js +9 -9
- package/es/tntd-action/index.js +8 -8
- package/es/tntd-cascader/AntdCascader/component/context.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
- package/es/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
- package/es/tntd-cascader/AntdCascader/config/utils.js +2 -2
- package/es/tntd-cascader/AntdCascader/index.js +7 -7
- package/es/tntd-cascader/index.js +1 -1
- package/es/tntd-cascader/rc-cascader/Cascader.js +8 -8
- package/es/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
- package/es/tntd-cascader/rc-cascader/index.js +1 -1
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
- package/es/tntd-form/ErrorList.js +7 -7
- package/es/tntd-form/Form.js +6 -6
- package/es/tntd-form/FormItem/ItemHolder.js +6 -6
- package/es/tntd-form/FormItem/index.js +8 -8
- package/es/tntd-form/FormItemInput.js +1 -1
- package/es/tntd-form/FormItemLabel.js +2 -2
- package/es/tntd-form/FormList.js +1 -1
- package/es/tntd-form/context.js +1 -1
- package/es/tntd-form/hooks/useDebounce.js +4 -4
- package/es/tntd-form/hooks/useForm.js +5 -5
- package/es/tntd-form/hooks/useFormItemStatus.js +1 -1
- package/es/tntd-form/hooks/useFrameState.js +5 -5
- package/es/tntd-form/index.js +1 -1
- package/es/tntd-icon/index.js +1 -1
- package/es/tntd-layout/AppList.js +6 -6
- package/es/tntd-layout/Application.js +6 -6
- package/es/tntd-layout/Avatar.js +2 -2
- package/es/tntd-layout/CompatibleLanguage.js +6 -6
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
- package/es/tntd-layout/EnterpriseLayout/Language.js +6 -6
- package/es/tntd-layout/EnterpriseLayout/Theme.js +6 -6
- package/es/tntd-layout/EnterpriseLayout/index.js +1 -1
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
- package/es/tntd-layout/GlobalNavigation/index.js +9 -9
- package/es/tntd-layout/Header.js +2 -2
- package/es/tntd-layout/HeaderActions.js +2 -2
- package/es/tntd-layout/HeaderNavs.js +6 -6
- package/es/tntd-layout/HeaderTabs.js +7 -7
- package/es/tntd-layout/Iconfont.js +1 -1
- package/es/tntd-layout/Language.js +6 -6
- package/es/tntd-layout/Layout.js +6 -6
- package/es/tntd-layout/Logo.js +2 -2
- package/es/tntd-layout/OrgAppList.js +6 -6
- package/es/tntd-layout/SideMenu.js +6 -6
- package/es/tntd-layout/Theme.js +6 -6
- package/es/tntd-layout/createActions.js +1 -1
- package/es/tntd-layout/images/index.js +1 -1
- package/es/tntd-layout/index.js +1 -1
- package/es/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
- package/es/tntd-layout/paaslayout/Header.js +2 -2
- package/es/tntd-layout/paaslayout/Logo.js +2 -2
- package/es/tntd-layout/paaslayout/SideMenu.js +6 -6
- package/es/tntd-layout/paaslayout/index.js +6 -6
- package/es/tntd-layout/storage.js +1 -1
- package/es/tntd-modal/index.js +6 -6
- package/es/tntd-rc-select/_util/PurePanel.js +5 -5
- package/es/tntd-rc-select/_util/context.js +1 -1
- package/es/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
- package/es/tntd-rc-select/_util/getIcons.js +1 -1
- package/es/tntd-rc-select/_util/useCompactItemContext.js +2 -2
- package/es/tntd-rc-select/index.js +2 -2
- package/es/tntd-reference/AHref/index.js +1 -1
- package/es/tntd-reference/ReferenceBatchCheck/index.js +1 -1
- package/es/tntd-reference/ReferenceBatchDrawer/index.js +5 -5
- package/es/tntd-reference/ReferenceCheck/index.js +1 -1
- package/es/tntd-reference/ReferenceDrawer/index.js +5 -5
- package/es/tntd-reference/ReferenceInfo/index.js +1 -1
- package/es/tntd-reference/index.js +1 -1
- package/es/tntd-second-page/index.js +1 -1
- package/es/tntd-select/DropDownWrap.js +8 -8
- package/es/tntd-select/index.js +9 -10
- package/es/tntd-virtual-tree/index.js +8 -8
- package/es/tntd-virtual-tree/utils.js +28 -28
- package/es/tntd-virtual-tree-select/index.js +10 -10
- package/es/tntd-virtual-tree-select/utils.js +9 -9
- package/es/tooltip/tooltip.js +1 -1
- package/es/upload/index.js +6 -6
- package/es/upload/svg/UploadSVG.js +1 -1
- package/es/utils/checkAuth.js +4 -4
- package/es/utils/index.js +9 -9
- package/es/utils/lang.js +3 -3
- package/es/utils/simple-template.js +19 -0
- package/es/utils/simple-template.js.map +1 -0
- package/es/water-mark/index.js +5 -5
- package/lib/_util/context.js +3 -3
- package/lib/_util/defaultRenderEmpty.js +3 -3
- package/lib/_util/hooks/useFlexGapSupport.js +15 -14
- package/lib/_util/hooks/useForceUpdate.js +15 -14
- package/lib/_util/hooks/useScrollLock.js +18 -17
- package/lib/_util/responsiveObserve.js +13 -7
- package/lib/_util/styleChecker.js +3 -3
- package/lib/actions/index.js +3 -3
- package/lib/alert/alert.js +16 -10
- package/lib/alert/index.js +3 -3
- package/lib/anchor/anchor.js +18 -17
- package/lib/array-input/index.js +37 -30
- package/lib/button/button.js +16 -10
- package/lib/cascader/cascader.js +3 -3
- package/lib/check-card/group.js +24 -23
- package/lib/check-card/index.js +31 -24
- package/lib/checkbox/checkbox-group.d.ts +8 -0
- package/lib/checkbox/checkbox-group.d.ts.map +1 -0
- package/lib/checkbox/checkbox-group.js +16 -0
- package/lib/checkbox/checkbox-group.js.map +1 -0
- package/lib/checkbox/checkbox.js +3 -3
- package/lib/color-picker/ColorPicker.js +31 -24
- package/lib/color-picker/index.js +3 -3
- package/lib/columns/index.js +3 -3
- package/lib/config-provider/config-provider.js +3 -3
- package/lib/date-picker/DatePicker.js +3 -3
- package/lib/descriptions/descriptions.js +19 -13
- package/lib/development-login/LoginModal.js +31 -24
- package/lib/development-login/index.js +15 -14
- package/lib/drawer/drawer.js +16 -10
- package/lib/ellipsis/Svg/CopySVG.js +3 -3
- package/lib/ellipsis/Svg/TickSVG.js +3 -3
- package/lib/ellipsis/index.js +18 -17
- package/lib/empty/empty.js +16 -10
- package/lib/empty/empty.stories.js +9 -6
- package/lib/exception/exception.js +3 -3
- package/lib/form/form.js +16 -10
- package/lib/grid-v4/col.js +16 -10
- package/lib/grid-v4/hooks/useBreakpoint.js +3 -3
- package/lib/grid-v4/index.js +3 -3
- package/lib/grid-v4/row.js +31 -24
- package/lib/handle/index.js +3 -3
- package/lib/handle-icon/index.js +10 -10
- package/lib/icon/IconFont.js +3 -3
- package/lib/icon/components/Icon.js +70 -44
- package/lib/icon/components/index.js +3 -3
- package/lib/icon/components/utils.js +18 -10
- package/lib/icon/index.js +33 -26
- package/lib/icon/twoTonePrimaryColor.js +3 -3
- package/lib/icon/utils.js +3 -3
- package/lib/img/Contain.js +3 -3
- package/lib/img/Cover.js +18 -17
- package/lib/img/index.js +18 -17
- package/lib/index.js +3 -3
- package/lib/input/input.js +16 -10
- package/lib/input-number/inputNumber.js +3 -3
- package/lib/label/index.js +16 -10
- package/lib/loading-button/index.js +18 -17
- package/lib/locale/default.js +3 -3
- package/lib/locale/en_US.js +3 -3
- package/lib/locale/zh_CN.js +3 -3
- package/lib/modal/modal.d.ts +1 -0
- package/lib/modal/modal.d.ts.map +1 -1
- package/lib/modal/modal.js +8 -6
- package/lib/modal/modal.js.map +1 -1
- package/lib/modal/modal.less +16 -0
- package/lib/notification/assets/index.js +3 -3
- package/lib/notification/index.js +3 -3
- package/lib/notification/notification.js +3 -3
- package/lib/page/Box.js +3 -3
- package/lib/page/index.js +33 -26
- package/lib/page-container/index.js +3 -3
- package/lib/page-loading/index.js +3 -3
- package/lib/popconfirm/popconfirm.js +3 -3
- package/lib/popover/popover.js +3 -3
- package/lib/preview-text/index.js +9 -9
- package/lib/progress/progress.js +16 -10
- package/lib/query-form/Field/Checkbox.js +3 -3
- package/lib/query-form/Field/Composition/FieldPopover.js +31 -24
- package/lib/query-form/Field/Composition/Select.js +31 -24
- package/lib/query-form/Field/Composition/SelectInput.js +18 -17
- package/lib/query-form/Field/Composition/ValueTag.js +18 -17
- package/lib/query-form/Field/Composition/index.js +37 -30
- package/lib/query-form/Field/Composition/utils.js +3 -3
- package/lib/query-form/Field/Select.js +31 -24
- package/lib/query-form/Field/SelectInput.js +31 -24
- package/lib/query-form/Field/fieldsMap.js +3 -3
- package/lib/query-form/Field/index.js +73 -47
- package/lib/query-form/createActions.js +3 -3
- package/lib/query-form/index.js +70 -44
- package/lib/query-form/useForm.js +3 -3
- package/lib/query-list-scene/List.js +61 -41
- package/lib/query-list-scene/QueryForm.js +57 -37
- package/lib/query-list-scene/QueryListScene.js +70 -44
- package/lib/query-list-scene/Title.js +3 -3
- package/lib/query-list-scene/Toolbar.js +16 -10
- package/lib/query-list-scene/createActions.js +3 -3
- package/lib/query-list-scene/index.js +3 -3
- package/lib/query-list-scene/useActions.js +3 -3
- package/lib/radio/radio-group.d.ts +8 -0
- package/lib/radio/radio-group.d.ts.map +1 -0
- package/lib/radio/radio-group.js +16 -0
- package/lib/radio/radio-group.js.map +1 -0
- package/lib/radio/radio.js +3 -3
- package/lib/render-empty/render-empty.js +3 -3
- package/lib/scroll-bar/Bar.js +18 -17
- package/lib/scroll-bar/Context.js +3 -3
- package/lib/scroll-bar/ScrollBar.js +3 -3
- package/lib/scroll-bar/Thumb.js +18 -17
- package/lib/scroll-bar/index.js +3 -3
- package/lib/scroll-bar/util.js +13 -7
- package/lib/segmented/index.js +16 -10
- package/lib/select/select.js +16 -10
- package/lib/spin/spin.js +3 -3
- package/lib/steps/stepStyle/small.less +5 -0
- package/lib/steps/steps.js +16 -10
- package/lib/svg-components/index.js +3 -3
- package/lib/table/hooks/use-column-setting.js +15 -14
- package/lib/table/hooks/use-expand-fixed.js +36 -30
- package/lib/table/resizableTable/index.js +31 -24
- package/lib/table/table-hoc.js +3 -3
- package/lib/table/table.js +34 -27
- package/lib/table/table.stories.js +16 -10
- package/lib/table/total-shower.d.ts +9 -0
- package/lib/table/total-shower.d.ts.map +1 -0
- package/lib/table/total-shower.js +20 -0
- package/lib/table/total-shower.js.map +1 -0
- package/lib/table/utils.js +3 -3
- package/lib/table-container/index.js +3 -3
- package/lib/tabs/tabs.js +16 -10
- package/lib/tabs-container/index.js +3 -3
- package/lib/tag/tag.js +16 -10
- package/lib/time-picker/TimePicker.js +3 -3
- package/lib/time-picker/index.js +3 -3
- package/lib/title/index.js +3 -3
- package/lib/tntd-action/Action.js +22 -21
- package/lib/tntd-action/index.js +21 -20
- package/lib/tntd-cascader/AntdCascader/component/context.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +3 -3
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +16 -10
- package/lib/tntd-cascader/AntdCascader/config/utils.js +16 -10
- package/lib/tntd-cascader/AntdCascader/index.js +33 -26
- package/lib/tntd-cascader/index.js +3 -3
- package/lib/tntd-cascader/rc-cascader/Cascader.js +24 -23
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +16 -10
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +33 -26
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +37 -30
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +18 -17
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +24 -23
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +17 -16
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +30 -23
- package/lib/tntd-cascader/rc-cascader/index.js +3 -3
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +6 -6
- package/lib/tntd-form/ErrorList.js +33 -26
- package/lib/tntd-form/Form.js +31 -24
- package/lib/tntd-form/FormItem/ItemHolder.js +31 -24
- package/lib/tntd-form/FormItem/index.js +24 -23
- package/lib/tntd-form/FormItemInput.js +3 -3
- package/lib/tntd-form/FormItemLabel.js +16 -10
- package/lib/tntd-form/FormList.js +3 -3
- package/lib/tntd-form/context.js +3 -3
- package/lib/tntd-form/hooks/useDebounce.js +15 -14
- package/lib/tntd-form/hooks/useForm.js +18 -17
- package/lib/tntd-form/hooks/useFormItemStatus.js +3 -3
- package/lib/tntd-form/hooks/useFrameState.js +18 -17
- package/lib/tntd-form/index.js +3 -3
- package/lib/tntd-icon/index.js +3 -3
- package/lib/tntd-layout/AppList.js +24 -20
- package/lib/tntd-layout/Application.js +24 -20
- package/lib/tntd-layout/Avatar.js +9 -6
- package/lib/tntd-layout/CompatibleLanguage.js +24 -20
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +9 -6
- package/lib/tntd-layout/EnterpriseLayout/Language.js +24 -20
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +24 -20
- package/lib/tntd-layout/EnterpriseLayout/index.js +3 -3
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +24 -20
- package/lib/tntd-layout/GlobalNavigation/index.js +30 -26
- package/lib/tntd-layout/Header.js +9 -6
- package/lib/tntd-layout/HeaderActions.js +9 -6
- package/lib/tntd-layout/HeaderNavs.js +24 -20
- package/lib/tntd-layout/HeaderTabs.js +37 -27
- package/lib/tntd-layout/Iconfont.js +3 -3
- package/lib/tntd-layout/Language.js +24 -20
- package/lib/tntd-layout/Layout.js +24 -20
- package/lib/tntd-layout/Logo.js +9 -6
- package/lib/tntd-layout/OrgAppList.js +24 -20
- package/lib/tntd-layout/SideMenu.js +24 -20
- package/lib/tntd-layout/Theme.js +24 -20
- package/lib/tntd-layout/createActions.js +3 -3
- package/lib/tntd-layout/images/index.js +3 -3
- package/lib/tntd-layout/index.js +3 -3
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +24 -20
- package/lib/tntd-layout/paaslayout/Header.js +9 -6
- package/lib/tntd-layout/paaslayout/Logo.js +9 -6
- package/lib/tntd-layout/paaslayout/SideMenu.js +24 -20
- package/lib/tntd-layout/paaslayout/index.js +24 -20
- package/lib/tntd-layout/storage.js +3 -3
- package/lib/tntd-modal/index.js +31 -24
- package/lib/tntd-rc-select/_util/PurePanel.js +18 -17
- package/lib/tntd-rc-select/_util/context.js +3 -3
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +3 -3
- package/lib/tntd-rc-select/_util/getIcons.js +3 -3
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +16 -10
- package/lib/tntd-rc-select/index.js +16 -10
- package/lib/tntd-reference/AHref/index.js +3 -3
- package/lib/tntd-reference/ReferenceBatchCheck/index.js +3 -3
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js +18 -17
- package/lib/tntd-reference/ReferenceCheck/index.js +3 -3
- package/lib/tntd-reference/ReferenceDrawer/index.js +18 -17
- package/lib/tntd-reference/ReferenceInfo/index.js +3 -3
- package/lib/tntd-reference/index.js +3 -3
- package/lib/tntd-second-page/index.js +3 -3
- package/lib/tntd-select/DropDownWrap.js +54 -34
- package/lib/tntd-select/index.js +57 -40
- package/lib/tntd-virtual-tree/index.js +24 -23
- package/lib/tntd-virtual-tree/utils.js +66 -62
- package/lib/tntd-virtual-tree-select/index.js +23 -22
- package/lib/tntd-virtual-tree-select/utils.js +21 -20
- package/lib/tooltip/tooltip.js +3 -3
- package/lib/upload/index.js +45 -41
- package/lib/upload/svg/UploadSVG.js +3 -3
- package/lib/utils/checkAuth.js +6 -6
- package/lib/utils/index.js +21 -20
- package/lib/utils/lang.js +5 -5
- package/lib/utils/simple-template.d.ts +9 -0
- package/lib/utils/simple-template.d.ts.map +1 -0
- package/lib/utils/simple-template.js +19 -0
- package/lib/utils/simple-template.js.map +1 -0
- package/lib/water-mark/index.js +18 -17
- package/package.json +2 -2
package/es/modal/modal.js
CHANGED
|
@@ -25,7 +25,7 @@ Object.keys(_modal).forEach(function (key) {
|
|
|
25
25
|
});
|
|
26
26
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
27
27
|
var _utils = require("../utils");
|
|
28
|
-
function _interopRequireDefault(
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
29
29
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
30
30
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
31
31
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
@@ -40,7 +40,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
40
40
|
* @Author: 周泽飞 zefei.zhou@tongdun.net
|
|
41
41
|
* @Date: 2023-03-08 17:45:01
|
|
42
42
|
* @LastEditors: 郑泳健
|
|
43
|
-
* @LastEditTime:
|
|
43
|
+
* @LastEditTime: 2025-06-23 17:30:37
|
|
44
44
|
* @FilePath: /tntd/packages/tntd/src/modal/modal.tsx
|
|
45
45
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
46
46
|
*/
|
|
@@ -53,14 +53,16 @@ var Modal = exports.Modal = (0, _react.forwardRef)(function (_a, ref) {
|
|
|
53
53
|
cancelButtonProps = _a.cancelButtonProps,
|
|
54
54
|
okButtonProps = _a.okButtonProps,
|
|
55
55
|
closeIcon = _a.closeIcon,
|
|
56
|
-
|
|
56
|
+
_a$innerScroll = _a.innerScroll,
|
|
57
|
+
innerScroll = _a$innerScroll === void 0 ? true : _a$innerScroll,
|
|
58
|
+
rest = __rest(_a, ["title", "className", "upperCaseIgnore", "unUpperConverted", "cancelButtonProps", "okButtonProps", "closeIcon", "innerScroll"]);
|
|
57
59
|
return _react["default"].createElement(_configProvider.ConfigConsumer, null, function (_ref) {
|
|
58
60
|
var getPrefixCls = _ref.getPrefixCls;
|
|
59
61
|
return _react["default"].createElement(_modal["default"], Object.assign({
|
|
60
62
|
closeIcon: _react["default"].createElement(_icon["default"], {
|
|
61
63
|
type: "close"
|
|
62
64
|
}),
|
|
63
|
-
className: (0, _classnames["default"])('tntd-modal', className),
|
|
65
|
+
className: (0, _classnames["default"])('tntd-modal', innerScroll && 'modal-inner-scroll', className),
|
|
64
66
|
cancelButtonProps: Object.assign({
|
|
65
67
|
type: 'tertiary',
|
|
66
68
|
className: (0, _classnames["default"])('tnt-btn', {
|
package/es/modal/modal.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAiC,MAAM,eAAe,CAAA;AAkB7D,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EASC,EACD,GAAG,EACH,EAAE;QAXF,EACE,KAAK,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,OAEV,EADI,IAAI,cART,gHASC,CADQ;IAIT,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,oBAAC,SAA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,iBACtB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,QAAQ,GAAG,EACpD,iBAAiB,EAAE,gBACjB,IAAI,EAAE,UAAU,EAChB,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;gBAC/B,kBAAkB,EAChB,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,UAAU,IAAI,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAA;gBAChF,cAAc,EAAE,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,MAAM;aAC/D,CAAC,IACC,iBAAiB,CACA,EACtB,aAAa,kBACX,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;gBAC/B,kBAAkB,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,UAAU;gBAClE,cAAc,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,MAAM;aAC3D,CAAC,IACC,aAAa,KAEf,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2024-03-20 11:28:43\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/es/modal'\nimport type { NativeButtonProps } from 'antd/es/button/button'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/es/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/es/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/es/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n (\n {\n title,\n className,\n upperCaseIgnore,\n unUpperConverted,\n cancelButtonProps,\n okButtonProps,\n closeIcon,\n ...rest\n },\n ref\n ) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n closeIcon={<Icon type=\"close\" />}\n className={classNames('tntd-modal', className)}\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' ||\n !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = ({ okButtonProps, ...props }) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.success = ({ okButtonProps, ...props }) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.error = ({ okButtonProps, ...props }) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warning = ({ okButtonProps, ...props }) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warn = ({ okButtonProps, ...props }) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.confirm = ({ cancelButtonProps, okButtonProps, ...props }) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n cancelButtonProps: {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
|
1
|
+
{"version":3,"file":"modal.js","sourceRoot":"","sources":["../../src/modal/modal.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACpD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AACvC,cAAc,eAAe,CAAA;AAC7B,OAAO,EAAiC,MAAM,eAAe,CAAA;AAmB7D,MAAM,CAAC,MAAM,KAAK,GAAG,UAAU,CAC7B,CACE,EAUC,EACD,GAAG,EACH,EAAE;QAZF,EACE,KAAK,EACL,SAAS,EACT,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,WAAW,GAAG,IAAI,OAEnB,EADI,IAAI,cATT,+HAUC,CADQ;IAIT,OAAO,CACL,oBAAC,cAAc,QACZ,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;QACpB,OAAO,CACL,oBAAC,SAAS,kBACR,SAAS,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,OAAO,GAAG,EAChC,SAAS,EAAE,UAAU,CAAC,YAAY,EAAE,WAAW,IAAI,oBAAoB,EAAE,SAAS,CAAC,EACnF,iBAAiB,EACf,gBAC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,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;gBAC/B,kBAAkB,EAChB,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,UAAU,IAAI,CAAC,CAAA,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAI,CAAA;gBAChF,cAAc,EAAE,CAAC,iBAAiB,aAAjB,iBAAiB,uBAAjB,iBAAiB,CAAE,IAAe,MAAK,MAAM;aAC/D,CAAC,IACC,iBAAiB,CACA,EACtB,aAAa,kBACX,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE;gBAC/B,kBAAkB,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,UAAU;gBAClE,cAAc,EAAE,CAAC,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,IAAe,MAAK,MAAM;aAC3D,CAAC,IACC,aAAa,KAEf,KAAK,EACR,CAAA;AACJ,CAAC,CAAA;AAED,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,UAAU,CAAA","sourcesContent":["/*\n * @Author: 周泽飞 zefei.zhou@tongdun.net\n * @Date: 2023-03-08 17:45:01\n * @LastEditors: 郑泳健\n * @LastEditTime: 2025-06-23 17:30:37\n * @FilePath: /tntd/packages/tntd/src/modal/modal.tsx\n * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE\n */\nimport React, { forwardRef } from 'react'\nimport type { ModalProps as AntdModalProps } from 'antd/es/modal'\nimport type { NativeButtonProps } from 'antd/es/button/button'\nimport classNames from 'classnames'\nimport { ConfigConsumer } from '../config-provider'\nimport { default as AntdModal } from 'antd/es/modal'\nimport { default as Icon } from '../icon'\nimport { doUpperTitle } from '../utils'\nexport * from 'antd/es/modal'\nexport { ActionButtonProps, ModalProps } from 'antd/es/modal'\n\nexport interface CurModalProps extends AntdModalProps {\n upperCaseIgnore?: []\n unUpperConverted?: boolean\n innerScroll?: boolean\n}\n\ninterface ModalComponent\n extends React.ForwardRefExoticComponent<CurModalProps & React.RefAttributes<AntdModal>> {\n info: typeof AntdModal.info\n success: typeof AntdModal.success\n error: typeof AntdModal.error\n warning: typeof AntdModal.warning\n warn: typeof AntdModal.warn\n confirm: typeof AntdModal.confirm\n destroyAll: typeof AntdModal.destroyAll\n}\n\nexport const Modal = forwardRef<AntdModal, CurModalProps>(\n (\n {\n title,\n className,\n upperCaseIgnore,\n unUpperConverted,\n cancelButtonProps,\n okButtonProps,\n closeIcon,\n innerScroll = true,\n ...rest\n },\n ref\n ) => {\n return (\n <ConfigConsumer>\n {({ getPrefixCls }) => {\n return (\n <AntdModal\n closeIcon={<Icon type=\"close\" />}\n className={classNames('tntd-modal', innerScroll && 'modal-inner-scroll', className)}\n cancelButtonProps={\n {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' ||\n !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps\n }\n okButtonProps={{\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n }}\n {...rest}\n title={!unUpperConverted ? doUpperTitle(title, upperCaseIgnore) : title}\n ref={ref}\n />\n )\n }}\n </ConfigConsumer>\n )\n }\n) as ModalComponent\n\nModal.info = ({ okButtonProps, ...props }) => {\n return AntdModal.info({\n icon: <Icon type=\"info-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.success = ({ okButtonProps, ...props }) => {\n return AntdModal.success({\n icon: <Icon type=\"check-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.error = ({ okButtonProps, ...props }) => {\n return AntdModal.error({\n icon: <Icon type=\"close-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warning = ({ okButtonProps, ...props }) => {\n return AntdModal.warning({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.warn = ({ okButtonProps, ...props }) => {\n return AntdModal.warn({\n icon: <Icon type=\"exclamation-circle\" theme=\"filled\" />,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.confirm = ({ cancelButtonProps, okButtonProps, ...props }) => {\n return AntdModal.confirm({\n icon: <Icon type=\"question-circle\" theme=\"filled\" />,\n cancelButtonProps: {\n type: 'tertiary',\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary':\n (cancelButtonProps?.type as string) === 'tertiary' || !cancelButtonProps?.type,\n 'tnt-btn-mini': (cancelButtonProps?.size as string) === 'mini',\n }),\n ...cancelButtonProps,\n } as NativeButtonProps,\n okButtonProps: {\n className: classNames('tnt-btn', {\n 'tnt-btn-tertiary': (okButtonProps?.type as string) === 'tertiary',\n 'tnt-btn-mini': (okButtonProps?.size as string) === 'mini',\n }),\n ...okButtonProps,\n },\n ...props,\n })\n}\n\nModal.destroyAll = AntdModal.destroyAll\n"]}
|
package/es/modal/modal.less
CHANGED
|
@@ -16,3 +16,19 @@
|
|
|
16
16
|
.@{modal-prefix-cls}-confirm-body-wrapper{
|
|
17
17
|
margin-top: @margin-xxs;
|
|
18
18
|
}
|
|
19
|
+
|
|
20
|
+
.modal-inner-scroll{
|
|
21
|
+
max-height: calc(100vh - 200px);
|
|
22
|
+
padding-bottom: 0;
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
|
|
25
|
+
.ant-modal-body{
|
|
26
|
+
max-height: calc(100vh - 200px - 56px);
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-flow: column;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ant-modal-footer{
|
|
32
|
+
padding: 16px 24px 8px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "SvgSuccessTip", {
|
|
|
17
17
|
});
|
|
18
18
|
var _svgSuccessTip = _interopRequireDefault(require("./svg-success-tip"));
|
|
19
19
|
var _svgErrorTip = _interopRequireDefault(require("./svg-error-tip"));
|
|
20
|
-
function _interopRequireDefault(
|
|
20
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
package/es/notification/index.js
CHANGED
|
@@ -19,5 +19,5 @@ Object.keys(_notification2).forEach(function (key) {
|
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
});
|
|
22
|
-
function _interopRequireDefault(
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
23
|
var _default = exports["default"] = _notification["default"];
|
|
@@ -24,7 +24,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
24
24
|
var _assets = require("./assets");
|
|
25
25
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
26
26
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
27
|
-
function _interopRequireDefault(
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
28
28
|
var prefixCls = 'ant-notification-notice';
|
|
29
29
|
var tntPrefixCls = 'tnt-notification-notice';
|
|
30
30
|
var api = Object.assign(Object.assign({}, _notification["default"]), {
|
package/es/page/Box.js
CHANGED
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _utils = require("./utils");
|
|
9
9
|
var _card = _interopRequireDefault(require("../card"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
12
12
|
var t = {};
|
|
13
13
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
package/es/page/index.js
CHANGED
|
@@ -10,16 +10,16 @@ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
|
|
|
10
10
|
var _Box = _interopRequireDefault(require("./Box"));
|
|
11
11
|
var _utils = require("./utils");
|
|
12
12
|
require("./index.less");
|
|
13
|
-
function _interopRequireDefault(
|
|
14
|
-
function _defineProperty(
|
|
13
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
|
-
function _toConsumableArray(
|
|
17
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
18
18
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
-
function _unsupportedIterableToArray(
|
|
20
|
-
function _iterableToArray(
|
|
21
|
-
function _arrayWithoutHoles(
|
|
22
|
-
function _arrayLikeToArray(
|
|
19
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
20
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
21
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
22
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
23
23
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
24
24
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
25
25
|
var t = {};
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
require("./index.less");
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
11
|
var _default = exports["default"] = function _default(WrappedComponent) {
|
|
12
12
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
13
13
|
var version = options.version,
|
package/es/page-loading/index.js
CHANGED
|
@@ -8,7 +8,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
var _LocaleReceiver = _interopRequireDefault(require("antd/es/locale-provider/LocaleReceiver"));
|
|
10
10
|
require("./index.less");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
12
12
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
13
13
|
var t = {};
|
|
14
14
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -23,7 +23,7 @@ Object.keys(_popconfirm).forEach(function (key) {
|
|
|
23
23
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
25
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
26
|
-
function _interopRequireDefault(
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
28
28
|
var t = {};
|
|
29
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
package/es/popover/popover.js
CHANGED
|
@@ -23,7 +23,7 @@ Object.keys(_popover).forEach(function (key) {
|
|
|
23
23
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
24
24
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
25
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
26
|
-
function _interopRequireDefault(
|
|
26
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
27
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
28
28
|
var t = {};
|
|
29
29
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
package/es/preview-text/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
15
15
|
var _context = require("../tntd-form/context");
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
-
function _interopRequireDefault(
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
19
|
var prefixCls = 'tnt-preview-text';
|
|
20
20
|
var isValid = function isValid(value) {
|
|
21
21
|
return !(0, _isUndefined2["default"])(value) && !(0, _isNull2["default"])(value) && value !== '';
|
|
@@ -116,13 +116,13 @@ var TreeSelect = function TreeSelect(_ref3) {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
var
|
|
119
|
+
var findLabel = function findLabel(value, dataSource) {
|
|
120
120
|
for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
|
|
121
121
|
var item = dataSource[i];
|
|
122
122
|
if ((item === null || item === void 0 ? void 0 : item.value) === value || (item === null || item === void 0 ? void 0 : item.key) === value) {
|
|
123
123
|
return item === null || item === void 0 ? void 0 : item.title;
|
|
124
124
|
} else {
|
|
125
|
-
var childLabel =
|
|
125
|
+
var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
|
|
126
126
|
if (childLabel) return childLabel;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -135,7 +135,7 @@ var TreeSelect = function TreeSelect(_ref3) {
|
|
|
135
135
|
label = _ref4.label;
|
|
136
136
|
return _react["default"].createElement(_react["default"].Fragment, null, multiple ? _react["default"].createElement(_tag["default"], {
|
|
137
137
|
key: key
|
|
138
|
-
},
|
|
138
|
+
}, findLabel(value, dataSource) || label || placeholder) : findLabel(value, dataSource) || label || placeholder);
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
141
|
return _react["default"].createElement("div", {
|
|
@@ -153,13 +153,13 @@ var Cascader = function Cascader(_ref5) {
|
|
|
153
153
|
var getSelected = function getSelected() {
|
|
154
154
|
return (0, _isArray2["default"])(value) ? value : [];
|
|
155
155
|
};
|
|
156
|
-
var
|
|
156
|
+
var findLabel = function findLabel(value, dataSource) {
|
|
157
157
|
for (var i = 0; i < (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length); i++) {
|
|
158
158
|
var item = dataSource[i];
|
|
159
159
|
if ((item === null || item === void 0 ? void 0 : item.value) === value) {
|
|
160
160
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
161
161
|
} else {
|
|
162
|
-
var childLabel =
|
|
162
|
+
var childLabel = findLabel(value, item === null || item === void 0 ? void 0 : item.children);
|
|
163
163
|
if (childLabel) return childLabel;
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -170,7 +170,7 @@ var Cascader = function Cascader(_ref5) {
|
|
|
170
170
|
return placeholder;
|
|
171
171
|
}
|
|
172
172
|
return selected.map(function (value) {
|
|
173
|
-
return
|
|
173
|
+
return findLabel(value, dataSource) || placeholder;
|
|
174
174
|
}).join('/');
|
|
175
175
|
};
|
|
176
176
|
return _react["default"].createElement("div", {
|
package/es/progress/progress.js
CHANGED
|
@@ -24,9 +24,9 @@ Object.keys(_tooltip).forEach(function (key) {
|
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
|
-
function _interopRequireDefault(
|
|
27
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
28
28
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
29
|
-
function _defineProperty(
|
|
29
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
30
30
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
31
31
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
32
|
var iconMap = {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _checkbox = _interopRequireDefault(require("../../checkbox"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
10
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
11
11
|
var t = {};
|
|
12
12
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -51,18 +51,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
51
51
|
}
|
|
52
52
|
return n["default"] = e, t && t.set(e, n), n;
|
|
53
53
|
}
|
|
54
|
-
function _interopRequireDefault(
|
|
55
|
-
return
|
|
56
|
-
"default":
|
|
54
|
+
function _interopRequireDefault(obj) {
|
|
55
|
+
return obj && obj.__esModule ? obj : {
|
|
56
|
+
"default": obj
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function _defineProperty(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
59
|
+
function _defineProperty(obj, key, value) {
|
|
60
|
+
key = _toPropertyKey(key);
|
|
61
|
+
if (key in obj) {
|
|
62
|
+
Object.defineProperty(obj, key, {
|
|
63
|
+
value: value,
|
|
64
|
+
enumerable: true,
|
|
65
|
+
configurable: true,
|
|
66
|
+
writable: true
|
|
67
|
+
});
|
|
68
|
+
} else {
|
|
69
|
+
obj[key] = value;
|
|
70
|
+
}
|
|
71
|
+
return obj;
|
|
66
72
|
}
|
|
67
73
|
function _toPropertyKey(t) {
|
|
68
74
|
var i = _toPrimitive(t, "string");
|
|
@@ -78,23 +84,24 @@ function _toPrimitive(t, r) {
|
|
|
78
84
|
}
|
|
79
85
|
return ("string" === r ? String : Number)(t);
|
|
80
86
|
}
|
|
81
|
-
function _slicedToArray(
|
|
82
|
-
return _arrayWithHoles(
|
|
87
|
+
function _slicedToArray(arr, i) {
|
|
88
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
83
89
|
}
|
|
84
90
|
function _nonIterableRest() {
|
|
85
91
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
86
92
|
}
|
|
87
|
-
function _unsupportedIterableToArray(
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
94
|
+
if (!o) return;
|
|
95
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
96
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
97
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
98
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
99
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
93
100
|
}
|
|
94
|
-
function _arrayLikeToArray(
|
|
95
|
-
(
|
|
96
|
-
for (var
|
|
97
|
-
return
|
|
101
|
+
function _arrayLikeToArray(arr, len) {
|
|
102
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
103
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
104
|
+
return arr2;
|
|
98
105
|
}
|
|
99
106
|
function _iterableToArrayLimit(r, l) {
|
|
100
107
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -123,8 +130,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
123
130
|
return a;
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
|
-
function _arrayWithHoles(
|
|
127
|
-
if (Array.isArray(
|
|
133
|
+
function _arrayWithHoles(arr) {
|
|
134
|
+
if (Array.isArray(arr)) return arr;
|
|
128
135
|
}
|
|
129
136
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
130
137
|
var t = {};
|
|
@@ -46,18 +46,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
46
46
|
}
|
|
47
47
|
return n["default"] = e, t && t.set(e, n), n;
|
|
48
48
|
}
|
|
49
|
-
function _interopRequireDefault(
|
|
50
|
-
return
|
|
51
|
-
"default":
|
|
49
|
+
function _interopRequireDefault(obj) {
|
|
50
|
+
return obj && obj.__esModule ? obj : {
|
|
51
|
+
"default": obj
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
|
-
function _defineProperty(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
54
|
+
function _defineProperty(obj, key, value) {
|
|
55
|
+
key = _toPropertyKey(key);
|
|
56
|
+
if (key in obj) {
|
|
57
|
+
Object.defineProperty(obj, key, {
|
|
58
|
+
value: value,
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
61
67
|
}
|
|
62
68
|
function _toPropertyKey(t) {
|
|
63
69
|
var i = _toPrimitive(t, "string");
|
|
@@ -73,23 +79,24 @@ function _toPrimitive(t, r) {
|
|
|
73
79
|
}
|
|
74
80
|
return ("string" === r ? String : Number)(t);
|
|
75
81
|
}
|
|
76
|
-
function _slicedToArray(
|
|
77
|
-
return _arrayWithHoles(
|
|
82
|
+
function _slicedToArray(arr, i) {
|
|
83
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
78
84
|
}
|
|
79
85
|
function _nonIterableRest() {
|
|
80
86
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
81
87
|
}
|
|
82
|
-
function _unsupportedIterableToArray(
|
|
83
|
-
if (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
89
|
+
if (!o) return;
|
|
90
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
91
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
92
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
93
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
94
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
88
95
|
}
|
|
89
|
-
function _arrayLikeToArray(
|
|
90
|
-
(
|
|
91
|
-
for (var
|
|
92
|
-
return
|
|
96
|
+
function _arrayLikeToArray(arr, len) {
|
|
97
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
98
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
99
|
+
return arr2;
|
|
93
100
|
}
|
|
94
101
|
function _iterableToArrayLimit(r, l) {
|
|
95
102
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -118,8 +125,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
118
125
|
return a;
|
|
119
126
|
}
|
|
120
127
|
}
|
|
121
|
-
function _arrayWithHoles(
|
|
122
|
-
if (Array.isArray(
|
|
128
|
+
function _arrayWithHoles(arr) {
|
|
129
|
+
if (Array.isArray(arr)) return arr;
|
|
123
130
|
}
|
|
124
131
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
125
132
|
var t = {};
|
|
@@ -15,9 +15,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
15
15
|
exports["default"] = SelectInput;
|
|
16
16
|
var _react = _interopRequireWildcard(require("react"));
|
|
17
17
|
var _SelectInput = _interopRequireDefault(require("../SelectInput"));
|
|
18
|
-
function _interopRequireDefault(
|
|
19
|
-
return
|
|
20
|
-
"default":
|
|
18
|
+
function _interopRequireDefault(obj) {
|
|
19
|
+
return obj && obj.__esModule ? obj : {
|
|
20
|
+
"default": obj
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
function _getRequireWildcardCache(e) {
|
|
@@ -45,23 +45,24 @@ function _interopRequireWildcard(e, r) {
|
|
|
45
45
|
}
|
|
46
46
|
return n["default"] = e, t && t.set(e, n), n;
|
|
47
47
|
}
|
|
48
|
-
function _slicedToArray(
|
|
49
|
-
return _arrayWithHoles(
|
|
48
|
+
function _slicedToArray(arr, i) {
|
|
49
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
50
50
|
}
|
|
51
51
|
function _nonIterableRest() {
|
|
52
52
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
53
53
|
}
|
|
54
|
-
function _unsupportedIterableToArray(
|
|
55
|
-
if (
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
54
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
55
|
+
if (!o) return;
|
|
56
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
57
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
58
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
59
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
60
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
60
61
|
}
|
|
61
|
-
function _arrayLikeToArray(
|
|
62
|
-
(
|
|
63
|
-
for (var
|
|
64
|
-
return
|
|
62
|
+
function _arrayLikeToArray(arr, len) {
|
|
63
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
64
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
65
|
+
return arr2;
|
|
65
66
|
}
|
|
66
67
|
function _iterableToArrayLimit(r, l) {
|
|
67
68
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -90,8 +91,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
90
91
|
return a;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
|
-
function _arrayWithHoles(
|
|
94
|
-
if (Array.isArray(
|
|
94
|
+
function _arrayWithHoles(arr) {
|
|
95
|
+
if (Array.isArray(arr)) return arr;
|
|
95
96
|
}
|
|
96
97
|
function SelectInput(props) {
|
|
97
98
|
var value = props.value,
|
|
@@ -48,28 +48,29 @@ function _interopRequireWildcard(e, r) {
|
|
|
48
48
|
}
|
|
49
49
|
return n["default"] = e, t && t.set(e, n), n;
|
|
50
50
|
}
|
|
51
|
-
function _interopRequireDefault(
|
|
52
|
-
return
|
|
53
|
-
"default":
|
|
51
|
+
function _interopRequireDefault(obj) {
|
|
52
|
+
return obj && obj.__esModule ? obj : {
|
|
53
|
+
"default": obj
|
|
54
54
|
};
|
|
55
55
|
}
|
|
56
|
-
function _slicedToArray(
|
|
57
|
-
return _arrayWithHoles(
|
|
56
|
+
function _slicedToArray(arr, i) {
|
|
57
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
58
58
|
}
|
|
59
59
|
function _nonIterableRest() {
|
|
60
60
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
61
61
|
}
|
|
62
|
-
function _unsupportedIterableToArray(
|
|
63
|
-
if (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
63
|
+
if (!o) return;
|
|
64
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
65
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
66
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
67
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
68
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
68
69
|
}
|
|
69
|
-
function _arrayLikeToArray(
|
|
70
|
-
(
|
|
71
|
-
for (var
|
|
72
|
-
return
|
|
70
|
+
function _arrayLikeToArray(arr, len) {
|
|
71
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
72
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
73
|
+
return arr2;
|
|
73
74
|
}
|
|
74
75
|
function _iterableToArrayLimit(r, l) {
|
|
75
76
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -98,8 +99,8 @@ function _iterableToArrayLimit(r, l) {
|
|
|
98
99
|
return a;
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
|
-
function _arrayWithHoles(
|
|
102
|
-
if (Array.isArray(
|
|
102
|
+
function _arrayWithHoles(arr) {
|
|
103
|
+
if (Array.isArray(arr)) return arr;
|
|
103
104
|
}
|
|
104
105
|
function ValueTag(_ref) {
|
|
105
106
|
var item = _ref.item,
|