@wangxinowo/vue-datepicker-next 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +104 -0
- package/dist/vue-datepicker-next.min.css +3560 -0
- package/dist/vue-datepicker-next.min.js +11 -0
- package/package.json +84 -0
- package/src/components/_util/BaseMixin.js +40 -0
- package/src/components/_util/ContainerRender.jsx +98 -0
- package/src/components/_util/FormDecoratorDirective.js +10 -0
- package/src/components/_util/KeyCode.js +521 -0
- package/src/components/_util/Portal.js +51 -0
- package/src/components/_util/PortalWrapper.js +156 -0
- package/src/components/_util/StateMixin.js +10 -0
- package/src/components/_util/__tests__/easings.test.js +13 -0
- package/src/components/_util/__tests__/scrollTo.test.js +56 -0
- package/src/components/_util/antDirective.js +13 -0
- package/src/components/_util/antInputDirective.js +73 -0
- package/src/components/_util/callMoment.js +4 -0
- package/src/components/_util/colors.js +17 -0
- package/src/components/_util/createChainedFunction.js +22 -0
- package/src/components/_util/css-animation/Event.js +130 -0
- package/src/components/_util/css-animation/index.js +184 -0
- package/src/components/_util/easings.js +8 -0
- package/src/components/_util/env.js +14 -0
- package/src/components/_util/getLocale.js +30 -0
- package/src/components/_util/getRequestAnimationFrame.js +46 -0
- package/src/components/_util/getScroll.js +17 -0
- package/src/components/_util/getScrollBarSize.js +38 -0
- package/src/components/_util/getTransitionProps.js +34 -0
- package/src/components/_util/interopDefault.js +4 -0
- package/src/components/_util/isCssAnimationSupported.js +24 -0
- package/src/components/_util/isFlexSupported.js +12 -0
- package/src/components/_util/isNumeric.js +4 -0
- package/src/components/_util/isValid.js +4 -0
- package/src/components/_util/moment-util.js +75 -0
- package/src/components/_util/openAnimation.js +67 -0
- package/src/components/_util/portalDirective.js +24 -0
- package/src/components/_util/props-util.js +335 -0
- package/src/components/_util/proxyComponent.jsx +58 -0
- package/src/components/_util/raf.js +32 -0
- package/src/components/_util/requestAnimationTimeout.js +23 -0
- package/src/components/_util/responsiveObserve.js +94 -0
- package/src/components/_util/scrollTo.js +37 -0
- package/src/components/_util/setStyle.js +25 -0
- package/src/components/_util/store/PropTypes.js +7 -0
- package/src/components/_util/store/Provider.jsx +15 -0
- package/src/components/_util/store/connect.jsx +106 -0
- package/src/components/_util/store/create.js +30 -0
- package/src/components/_util/store/index.js +5 -0
- package/src/components/_util/styleChecker.js +13 -0
- package/src/components/_util/switchScrollingEffect.js +20 -0
- package/src/components/_util/throttleByAnimationFrame.js +45 -0
- package/src/components/_util/transButton.jsx +81 -0
- package/src/components/_util/triggerEvent.js +8 -0
- package/src/components/_util/type.js +4 -0
- package/src/components/_util/vnode.js +147 -0
- package/src/components/_util/vue-types/index.js +263 -0
- package/src/components/_util/vue-types/utils.js +200 -0
- package/src/components/_util/warning.js +7 -0
- package/src/components/_util/wave.jsx +169 -0
- package/src/components/base/index.js +9 -0
- package/src/components/base/style/index.js +2 -0
- package/src/components/button/__tests__/__snapshots__/demo.test.js.snap +103 -0
- package/src/components/button/__tests__/__snapshots__/index.test.js.snap +43 -0
- package/src/components/button/__tests__/demo.test.js +3 -0
- package/src/components/button/__tests__/index.test.js +239 -0
- package/src/components/button/button-group.jsx +52 -0
- package/src/components/button/button.jsx +186 -0
- package/src/components/button/buttonTypes.js +13 -0
- package/src/components/button/index.js +14 -0
- package/src/components/button/style/index.js +2 -0
- package/src/components/button/style/index.less +224 -0
- package/src/components/button/style/mixin.less +357 -0
- package/src/components/calendar/locale/en_US.js +2 -0
- package/src/components/config-provider/__tests__/index.test.js +44 -0
- package/src/components/config-provider/configConsumerProps.jsx +9 -0
- package/src/components/config-provider/index.jsx +91 -0
- package/src/components/config-provider/renderEmpty.jsx +42 -0
- package/src/components/config-provider/style/index.js +1 -0
- package/src/components/config-provider/style/index.less +2 -0
- package/src/components/date-picker/InputIcon.js +20 -0
- package/src/components/date-picker/PresetPanel.jsx +102 -0
- package/src/components/date-picker/RangePicker.jsx +1010 -0
- package/src/components/date-picker/WeekPicker.jsx +235 -0
- package/src/components/date-picker/__tests__/DatePicker.test.js +189 -0
- package/src/components/date-picker/__tests__/MonthPicker.test.js +29 -0
- package/src/components/date-picker/__tests__/RangePicker.test.js +417 -0
- package/src/components/date-picker/__tests__/WeekPicker.test.js +24 -0
- package/src/components/date-picker/__tests__/__snapshots__/DatePicker.test.js.snap +3 -0
- package/src/components/date-picker/__tests__/__snapshots__/RangePicker.test.js.snap +695 -0
- package/src/components/date-picker/__tests__/__snapshots__/WeekPicker.test.js.snap +3 -0
- package/src/components/date-picker/__tests__/__snapshots__/demo.test.js.snap +49 -0
- package/src/components/date-picker/__tests__/__snapshots__/other.test.js.snap +240 -0
- package/src/components/date-picker/__tests__/demo.test.js +3 -0
- package/src/components/date-picker/__tests__/mount.test.js +11 -0
- package/src/components/date-picker/__tests__/other.test.js +88 -0
- package/src/components/date-picker/__tests__/showTime.test.js +234 -0
- package/src/components/date-picker/__tests__/utils.js +34 -0
- package/src/components/date-picker/createPicker.js +273 -0
- package/src/components/date-picker/generate/dayjs.js +438 -0
- package/src/components/date-picker/generate/index.js +125 -0
- package/src/components/date-picker/generate/moment.js +357 -0
- package/src/components/date-picker/index.js +37 -0
- package/src/components/date-picker/interface.js +172 -0
- package/src/components/date-picker/locale/ar_EG.js +23 -0
- package/src/components/date-picker/locale/bg_BG.js +19 -0
- package/src/components/date-picker/locale/ca_ES.js +19 -0
- package/src/components/date-picker/locale/cs_CZ.js +19 -0
- package/src/components/date-picker/locale/da_DK.js +19 -0
- package/src/components/date-picker/locale/de_DE.js +19 -0
- package/src/components/date-picker/locale/el_GR.js +19 -0
- package/src/components/date-picker/locale/en_GB.js +19 -0
- package/src/components/date-picker/locale/en_US.js +19 -0
- package/src/components/date-picker/locale/es_ES.js +19 -0
- package/src/components/date-picker/locale/et_EE.js +19 -0
- package/src/components/date-picker/locale/example.json +39 -0
- package/src/components/date-picker/locale/fa_IR.js +19 -0
- package/src/components/date-picker/locale/fi_FI.js +19 -0
- package/src/components/date-picker/locale/fr_BE.js +19 -0
- package/src/components/date-picker/locale/fr_FR.js +19 -0
- package/src/components/date-picker/locale/ga_IE.js +19 -0
- package/src/components/date-picker/locale/he_IL.js +19 -0
- package/src/components/date-picker/locale/hi_IN.js +19 -0
- package/src/components/date-picker/locale/hr_HR.js +19 -0
- package/src/components/date-picker/locale/hu_HU.js +19 -0
- package/src/components/date-picker/locale/id_ID.js +19 -0
- package/src/components/date-picker/locale/is_IS.js +19 -0
- package/src/components/date-picker/locale/it_IT.js +19 -0
- package/src/components/date-picker/locale/ja_JP.js +18 -0
- package/src/components/date-picker/locale/kn_IN.js +19 -0
- package/src/components/date-picker/locale/ko_KR.js +19 -0
- package/src/components/date-picker/locale/ku_IQ.js +18 -0
- package/src/components/date-picker/locale/lv_LV.js +19 -0
- package/src/components/date-picker/locale/mk_MK.js +19 -0
- package/src/components/date-picker/locale/mn_MN.js +19 -0
- package/src/components/date-picker/locale/ms_MY.js +19 -0
- package/src/components/date-picker/locale/nb_NO.js +19 -0
- package/src/components/date-picker/locale/nl_BE.js +19 -0
- package/src/components/date-picker/locale/nl_NL.js +19 -0
- package/src/components/date-picker/locale/pl_PL.js +19 -0
- package/src/components/date-picker/locale/pt_BR.js +19 -0
- package/src/components/date-picker/locale/pt_PT.js +46 -0
- package/src/components/date-picker/locale/ro_RO.js +19 -0
- package/src/components/date-picker/locale/ru_RU.js +22 -0
- package/src/components/date-picker/locale/sk_SK.js +19 -0
- package/src/components/date-picker/locale/sl_SI.js +43 -0
- package/src/components/date-picker/locale/sr_RS.js +19 -0
- package/src/components/date-picker/locale/sv_SE.js +18 -0
- package/src/components/date-picker/locale/ta_IN.js +20 -0
- package/src/components/date-picker/locale/th_TH.js +19 -0
- package/src/components/date-picker/locale/tr_TR.js +19 -0
- package/src/components/date-picker/locale/uk_UA.js +18 -0
- package/src/components/date-picker/locale/vi_VN.js +19 -0
- package/src/components/date-picker/locale/zh_CN.js +21 -0
- package/src/components/date-picker/locale/zh_TW.js +20 -0
- package/src/components/date-picker/statusUtils.js +53 -0
- package/src/components/date-picker/style/Calendar.less +402 -0
- package/src/components/date-picker/style/DecadePanel.less +81 -0
- package/src/components/date-picker/style/MonthPanel.less +86 -0
- package/src/components/date-picker/style/MonthPicker.less +11 -0
- package/src/components/date-picker/style/Picker.less +113 -0
- package/src/components/date-picker/style/RangePicker.less +327 -0
- package/src/components/date-picker/style/TimePicker.less +151 -0
- package/src/components/date-picker/style/WeekPicker.less +21 -0
- package/src/components/date-picker/style/YearPanel.less +93 -0
- package/src/components/date-picker/style/index.js +8 -0
- package/src/components/date-picker/style/index.less +20 -0
- package/src/components/date-picker/style/presets.less +69 -0
- package/src/components/date-picker/style/status.less +94 -0
- package/src/components/date-picker/style/transitions.less +176 -0
- package/src/components/date-picker/utils.js +209 -0
- package/src/components/date-picker/wrapPicker.js +258 -0
- package/src/components/empty/__tests__/__snapshots__/demo.test.js.snap +195 -0
- package/src/components/empty/__tests__/demo.test.js +3 -0
- package/src/components/empty/__tests__/index.test.js +25 -0
- package/src/components/empty/empty.jsx +47 -0
- package/src/components/empty/index.jsx +78 -0
- package/src/components/empty/simple.jsx +20 -0
- package/src/components/empty/style/index.js +2 -0
- package/src/components/empty/style/index.less +52 -0
- package/src/components/icon/IconFont.jsx +52 -0
- package/src/components/icon/__tests__/__snapshots__/demo.test.js.snap +671 -0
- package/src/components/icon/__tests__/__snapshots__/index.test.js.snap +77 -0
- package/src/components/icon/__tests__/demo.test.js +3 -0
- package/src/components/icon/__tests__/index.test.js +236 -0
- package/src/components/icon/index.js +185 -0
- package/src/components/icon/style/index.js +2 -0
- package/src/components/icon/style/index.less +4 -0
- package/src/components/icon/twoTonePrimaryColor.js +12 -0
- package/src/components/icon/utils.js +77 -0
- package/src/components/input/ClearableLabeledInput.jsx +182 -0
- package/src/components/input/Group.jsx +41 -0
- package/src/components/input/Input.jsx +240 -0
- package/src/components/input/Password.jsx +117 -0
- package/src/components/input/ResizableTextArea.jsx +158 -0
- package/src/components/input/Search.jsx +185 -0
- package/src/components/input/TextArea.jsx +131 -0
- package/src/components/input/__tests__/Search.test.js +134 -0
- package/src/components/input/__tests__/__snapshots__/Search.test.js.snap +5 -0
- package/src/components/input/__tests__/__snapshots__/demo.test.js.snap +86 -0
- package/src/components/input/__tests__/__snapshots__/index.test.js.snap +9 -0
- package/src/components/input/__tests__/demo.test.js +3 -0
- package/src/components/input/__tests__/index.test.js +124 -0
- package/src/components/input/calculateNodeHeight.js +151 -0
- package/src/components/input/index.js +27 -0
- package/src/components/input/inputProps.js +36 -0
- package/src/components/input/style/index.js +5 -0
- package/src/components/input/style/index.less +52 -0
- package/src/components/input/style/mixin.less +453 -0
- package/src/components/input/style/search-input.less +34 -0
- package/src/components/locale/ar_EG.js +43 -0
- package/src/components/locale/bg_BG.js +43 -0
- package/src/components/locale/ca_ES.js +41 -0
- package/src/components/locale/cs_CZ.js +41 -0
- package/src/components/locale/da_DK.js +43 -0
- package/src/components/locale/de_DE.js +43 -0
- package/src/components/locale/default.js +62 -0
- package/src/components/locale/el_GR.js +43 -0
- package/src/components/locale/en_GB.js +43 -0
- package/src/components/locale/en_US.js +3 -0
- package/src/components/locale/es_ES.js +59 -0
- package/src/components/locale/et_EE.js +43 -0
- package/src/components/locale/fa_IR.js +43 -0
- package/src/components/locale/fi_FI.js +44 -0
- package/src/components/locale/fr_BE.js +47 -0
- package/src/components/locale/fr_FR.js +47 -0
- package/src/components/locale/ga_IE.js +43 -0
- package/src/components/locale/he_IL.js +43 -0
- package/src/components/locale/hi_IN.js +51 -0
- package/src/components/locale/hr_HR.js +57 -0
- package/src/components/locale/hu_HU.js +44 -0
- package/src/components/locale/hy_AM.js +109 -0
- package/src/components/locale/id_ID.js +45 -0
- package/src/components/locale/is_IS.js +43 -0
- package/src/components/locale/it_IT.js +56 -0
- package/src/components/locale/ja_JP.js +43 -0
- package/src/components/locale/kn_IN.js +51 -0
- package/src/components/locale/ko_KR.js +43 -0
- package/src/components/locale/ku_IQ.js +43 -0
- package/src/components/locale/lv_LV.js +43 -0
- package/src/components/locale/mk_MK.js +58 -0
- package/src/components/locale/mn_MN.js +43 -0
- package/src/components/locale/ms_MY.js +63 -0
- package/src/components/locale/nb_NO.js +43 -0
- package/src/components/locale/ne_NP.js +44 -0
- package/src/components/locale/nl_BE.js +43 -0
- package/src/components/locale/nl_NL.js +62 -0
- package/src/components/locale/pl_PL.js +43 -0
- package/src/components/locale/pt_BR.js +49 -0
- package/src/components/locale/pt_PT.js +44 -0
- package/src/components/locale/ro_RO.js +62 -0
- package/src/components/locale/ru_RU.js +53 -0
- package/src/components/locale/sk_SK.js +62 -0
- package/src/components/locale/sl_SI.js +43 -0
- package/src/components/locale/sr_RS.js +43 -0
- package/src/components/locale/sv_SE.js +47 -0
- package/src/components/locale/ta_IN.js +63 -0
- package/src/components/locale/th_TH.js +62 -0
- package/src/components/locale/tr_TR.js +57 -0
- package/src/components/locale/uk_UA.js +43 -0
- package/src/components/locale/vi_VN.js +43 -0
- package/src/components/locale/zh_CN.js +62 -0
- package/src/components/locale/zh_TW.js +49 -0
- package/src/components/locale-provider/LocaleReceiver.jsx +43 -0
- package/src/components/locale-provider/__tests__/__snapshots__/demo.test.js.snap +434 -0
- package/src/components/locale-provider/__tests__/__snapshots__/index.test.js.snap +22618 -0
- package/src/components/locale-provider/__tests__/demo.test.js +3 -0
- package/src/components/locale-provider/__tests__/index.test.js +271 -0
- package/src/components/locale-provider/ar_EG.js +3 -0
- package/src/components/locale-provider/bg_BG.js +3 -0
- package/src/components/locale-provider/ca_ES.js +3 -0
- package/src/components/locale-provider/cs_CZ.js +3 -0
- package/src/components/locale-provider/da_DK.js +3 -0
- package/src/components/locale-provider/de_DE.js +3 -0
- package/src/components/locale-provider/default.js +3 -0
- package/src/components/locale-provider/el_GR.js +3 -0
- package/src/components/locale-provider/en_GB.js +3 -0
- package/src/components/locale-provider/en_US.js +3 -0
- package/src/components/locale-provider/es_ES.js +3 -0
- package/src/components/locale-provider/et_EE.js +3 -0
- package/src/components/locale-provider/fa_IR.js +3 -0
- package/src/components/locale-provider/fi_FI.js +3 -0
- package/src/components/locale-provider/fr_BE.js +3 -0
- package/src/components/locale-provider/fr_FR.js +3 -0
- package/src/components/locale-provider/ga_IE.js +3 -0
- package/src/components/locale-provider/he_IL.js +3 -0
- package/src/components/locale-provider/hi_IN.js +3 -0
- package/src/components/locale-provider/hr_HR.js +3 -0
- package/src/components/locale-provider/hu_HU.js +3 -0
- package/src/components/locale-provider/hy_AM.js +3 -0
- package/src/components/locale-provider/id_ID.js +3 -0
- package/src/components/locale-provider/index.jsx +82 -0
- package/src/components/locale-provider/is_IS.js +3 -0
- package/src/components/locale-provider/it_IT.js +3 -0
- package/src/components/locale-provider/ja_JP.js +3 -0
- package/src/components/locale-provider/kn_IN.js +3 -0
- package/src/components/locale-provider/ko_KR.js +3 -0
- package/src/components/locale-provider/ku_IQ.js +3 -0
- package/src/components/locale-provider/lv_LV.js +3 -0
- package/src/components/locale-provider/mk_MK.js +3 -0
- package/src/components/locale-provider/mn_MN.js +3 -0
- package/src/components/locale-provider/ms_MY.js +3 -0
- package/src/components/locale-provider/nb_NO.js +3 -0
- package/src/components/locale-provider/ne-NP.js +3 -0
- package/src/components/locale-provider/ne_NP.js +3 -0
- package/src/components/locale-provider/nl_BE.js +3 -0
- package/src/components/locale-provider/nl_NL.js +3 -0
- package/src/components/locale-provider/pl_PL.js +3 -0
- package/src/components/locale-provider/pt_BR.js +3 -0
- package/src/components/locale-provider/pt_PT.js +3 -0
- package/src/components/locale-provider/ro_RO.js +3 -0
- package/src/components/locale-provider/ru_RU.js +3 -0
- package/src/components/locale-provider/sk_SK.js +3 -0
- package/src/components/locale-provider/sl_SI.js +3 -0
- package/src/components/locale-provider/sr_RS.js +3 -0
- package/src/components/locale-provider/style/index.js +1 -0
- package/src/components/locale-provider/style/index.less +2 -0
- package/src/components/locale-provider/sv_SE.js +3 -0
- package/src/components/locale-provider/ta_IN.js +62 -0
- package/src/components/locale-provider/th_TH.js +3 -0
- package/src/components/locale-provider/tr_TR.js +3 -0
- package/src/components/locale-provider/uk_UA.js +3 -0
- package/src/components/locale-provider/vi_VN.js +3 -0
- package/src/components/locale-provider/zh_CN.js +3 -0
- package/src/components/locale-provider/zh_TW.js +3 -0
- package/src/components/style/color/bezierEasing.less +110 -0
- package/src/components/style/color/colorPalette.less +75 -0
- package/src/components/style/color/colors.less +149 -0
- package/src/components/style/color/tinyColor.less +1184 -0
- package/src/components/style/core/base.less +510 -0
- package/src/components/style/core/iconfont.less +19 -0
- package/src/components/style/core/index.less +4 -0
- package/src/components/style/core/motion/fade.less +31 -0
- package/src/components/style/core/motion/move.less +120 -0
- package/src/components/style/core/motion/other.less +45 -0
- package/src/components/style/core/motion/slide.less +120 -0
- package/src/components/style/core/motion/swing.less +34 -0
- package/src/components/style/core/motion/zoom.less +162 -0
- package/src/components/style/core/motion.less +20 -0
- package/src/components/style/index.js +1 -0
- package/src/components/style/index.less +2 -0
- package/src/components/style/index.tsx +1 -0
- package/src/components/style/mixins/clearfix.less +13 -0
- package/src/components/style/mixins/compatibility.less +22 -0
- package/src/components/style/mixins/iconfont.less +43 -0
- package/src/components/style/mixins/index.less +10 -0
- package/src/components/style/mixins/motion.less +35 -0
- package/src/components/style/mixins/operation-unit.less +18 -0
- package/src/components/style/mixins/reset.less +13 -0
- package/src/components/style/mixins/size.less +10 -0
- package/src/components/style/mixins/typography.less +49 -0
- package/src/components/style/themes/default.less +701 -0
- package/src/components/style/themes/index.less +1 -0
- package/src/components/style/v2-compatible-reset.js +1 -0
- package/src/components/style/v2-compatible-reset.less +51 -0
- package/src/components/style/v2-compatible-reset.tsx +1 -0
- package/src/components/tag/CheckableTag.jsx +43 -0
- package/src/components/tag/Tag.jsx +145 -0
- package/src/components/tag/__tests__/__snapshots__/demo.test.js.snap +92 -0
- package/src/components/tag/__tests__/__snapshots__/index.test.js.snap +13 -0
- package/src/components/tag/__tests__/demo.test.js +3 -0
- package/src/components/tag/__tests__/index.test.js +82 -0
- package/src/components/tag/index.js +14 -0
- package/src/components/tag/style/index.js +2 -0
- package/src/components/tag/style/index.less +106 -0
- package/src/components/time-picker/__tests__/__snapshots__/demo.test.js.snap +39 -0
- package/src/components/time-picker/__tests__/__snapshots__/index.test.js.snap +5 -0
- package/src/components/time-picker/__tests__/demo.test.js +3 -0
- package/src/components/time-picker/__tests__/index.test.js +55 -0
- package/src/components/time-picker/index.jsx +267 -0
- package/src/components/time-picker/locale/ar_EG.js +5 -0
- package/src/components/time-picker/locale/bg_BG.js +5 -0
- package/src/components/time-picker/locale/ca_ES.js +5 -0
- package/src/components/time-picker/locale/cs_CZ.js +5 -0
- package/src/components/time-picker/locale/da_DK.js +5 -0
- package/src/components/time-picker/locale/de_DE.js +5 -0
- package/src/components/time-picker/locale/el_GR.js +5 -0
- package/src/components/time-picker/locale/en_GB.js +5 -0
- package/src/components/time-picker/locale/en_US.js +5 -0
- package/src/components/time-picker/locale/es_ES.js +5 -0
- package/src/components/time-picker/locale/et_EE.js +5 -0
- package/src/components/time-picker/locale/fa_IR.js +5 -0
- package/src/components/time-picker/locale/fi_FI.js +5 -0
- package/src/components/time-picker/locale/fr_BE.js +5 -0
- package/src/components/time-picker/locale/fr_FR.js +5 -0
- package/src/components/time-picker/locale/ga_IE.js +5 -0
- package/src/components/time-picker/locale/he_IL.js +5 -0
- package/src/components/time-picker/locale/hi_IN.js +5 -0
- package/src/components/time-picker/locale/hr_HR.js +5 -0
- package/src/components/time-picker/locale/hu_HU.js +5 -0
- package/src/components/time-picker/locale/id_ID.js +5 -0
- package/src/components/time-picker/locale/is_IS.js +5 -0
- package/src/components/time-picker/locale/it_IT.js +5 -0
- package/src/components/time-picker/locale/ja_JP.js +5 -0
- package/src/components/time-picker/locale/kn_IN.js +5 -0
- package/src/components/time-picker/locale/ko_KR.js +5 -0
- package/src/components/time-picker/locale/ku_IQ.js +5 -0
- package/src/components/time-picker/locale/lv_LV.js +5 -0
- package/src/components/time-picker/locale/mk_MK.js +5 -0
- package/src/components/time-picker/locale/mn_MN.js +5 -0
- package/src/components/time-picker/locale/ms_MY.js +5 -0
- package/src/components/time-picker/locale/nb_NO.js +5 -0
- package/src/components/time-picker/locale/nl_BE.js +5 -0
- package/src/components/time-picker/locale/nl_NL.js +5 -0
- package/src/components/time-picker/locale/pl_PL.js +5 -0
- package/src/components/time-picker/locale/pt_BR.js +5 -0
- package/src/components/time-picker/locale/pt_PT.js +5 -0
- package/src/components/time-picker/locale/ro_RO.js +5 -0
- package/src/components/time-picker/locale/ru_RU.js +8 -0
- package/src/components/time-picker/locale/sk_SK.js +5 -0
- package/src/components/time-picker/locale/sl_SI.js +5 -0
- package/src/components/time-picker/locale/sr_RS.js +5 -0
- package/src/components/time-picker/locale/sv_SE.js +5 -0
- package/src/components/time-picker/locale/ta_IN.js +5 -0
- package/src/components/time-picker/locale/th_TH.js +5 -0
- package/src/components/time-picker/locale/tr_TR.js +5 -0
- package/src/components/time-picker/locale/uk_UA.js +5 -0
- package/src/components/time-picker/locale/vi_VN.js +5 -0
- package/src/components/time-picker/locale/zh_CN.js +5 -0
- package/src/components/time-picker/locale/zh_TW.js +5 -0
- package/src/components/time-picker/style/index.js +2 -0
- package/src/components/time-picker/style/index.less +246 -0
- package/src/components/tooltip/Tooltip.jsx +219 -0
- package/src/components/tooltip/__tests__/__snapshots__/demo.test.js.snap +20 -0
- package/src/components/tooltip/__tests__/demo.test.js +3 -0
- package/src/components/tooltip/__tests__/tooltip.test.js +204 -0
- package/src/components/tooltip/abstractTooltipProps.js +34 -0
- package/src/components/tooltip/index.js +10 -0
- package/src/components/tooltip/placements.js +96 -0
- package/src/components/tooltip/style/index.js +2 -0
- package/src/components/tooltip/style/index.less +187 -0
- package/src/components/vc-align/Align.jsx +149 -0
- package/src/components/vc-align/index.js +3 -0
- package/src/components/vc-align/util.js +52 -0
- package/src/components/vc-calendar/assets/common/Calendar.less +106 -0
- package/src/components/vc-calendar/assets/common/FullCalendar.less +91 -0
- package/src/components/vc-calendar/assets/common/Picker.less +10 -0
- package/src/components/vc-calendar/assets/common/RangeCalendar.less +131 -0
- package/src/components/vc-calendar/assets/common/index.less +16 -0
- package/src/components/vc-calendar/assets/index/Calendar.less +301 -0
- package/src/components/vc-calendar/assets/index/DecadePanel.less +122 -0
- package/src/components/vc-calendar/assets/index/Input.less +23 -0
- package/src/components/vc-calendar/assets/index/MonthPanel.less +143 -0
- package/src/components/vc-calendar/assets/index/Picker.less +110 -0
- package/src/components/vc-calendar/assets/index/Time.less +6 -0
- package/src/components/vc-calendar/assets/index/TimePanel.less +72 -0
- package/src/components/vc-calendar/assets/index/YearPanel.less +136 -0
- package/src/components/vc-calendar/assets/index.less +10 -0
- package/src/components/vc-calendar/index.js +8 -0
- package/src/components/vc-calendar/src/Calendar.jsx +390 -0
- package/src/components/vc-calendar/src/FullCalendar.jsx +166 -0
- package/src/components/vc-calendar/src/MonthCalendar.jsx +125 -0
- package/src/components/vc-calendar/src/Picker.jsx +244 -0
- package/src/components/vc-calendar/src/RangeCalendar.jsx +1031 -0
- package/src/components/vc-calendar/src/calendar/CalendarFooter.jsx +86 -0
- package/src/components/vc-calendar/src/calendar/CalendarHeader.jsx +264 -0
- package/src/components/vc-calendar/src/calendar/OkButton.jsx +18 -0
- package/src/components/vc-calendar/src/calendar/TimePickerButton.jsx +22 -0
- package/src/components/vc-calendar/src/calendar/TodayButton.jsx +33 -0
- package/src/components/vc-calendar/src/date/DateConstants.js +4 -0
- package/src/components/vc-calendar/src/date/DateInput.jsx +226 -0
- package/src/components/vc-calendar/src/date/DateTBody.jsx +261 -0
- package/src/components/vc-calendar/src/date/DateTHead.jsx +49 -0
- package/src/components/vc-calendar/src/date/DateTable.jsx +20 -0
- package/src/components/vc-calendar/src/decade/DecadePanel.jsx +131 -0
- package/src/components/vc-calendar/src/full-calendar/CalendarHeader.jsx +134 -0
- package/src/components/vc-calendar/src/index.js +3 -0
- package/src/components/vc-calendar/src/locale/ar_EG.js +27 -0
- package/src/components/vc-calendar/src/locale/bg_BG.js +27 -0
- package/src/components/vc-calendar/src/locale/ca_ES.js +27 -0
- package/src/components/vc-calendar/src/locale/cs_CZ.js +27 -0
- package/src/components/vc-calendar/src/locale/da_DK.js +27 -0
- package/src/components/vc-calendar/src/locale/de_DE.js +27 -0
- package/src/components/vc-calendar/src/locale/el_GR.js +27 -0
- package/src/components/vc-calendar/src/locale/en_GB.js +27 -0
- package/src/components/vc-calendar/src/locale/en_US.js +28 -0
- package/src/components/vc-calendar/src/locale/es_ES.js +27 -0
- package/src/components/vc-calendar/src/locale/et_EE.js +27 -0
- package/src/components/vc-calendar/src/locale/fa_IR.js +27 -0
- package/src/components/vc-calendar/src/locale/fi_FI.js +27 -0
- package/src/components/vc-calendar/src/locale/fr_BE.js +27 -0
- package/src/components/vc-calendar/src/locale/fr_FR.js +27 -0
- package/src/components/vc-calendar/src/locale/ga_IE.js +28 -0
- package/src/components/vc-calendar/src/locale/he_IL.js +28 -0
- package/src/components/vc-calendar/src/locale/hi_IN.js +28 -0
- package/src/components/vc-calendar/src/locale/hr_HR.js +28 -0
- package/src/components/vc-calendar/src/locale/hu_HU.js +27 -0
- package/src/components/vc-calendar/src/locale/id_ID.js +28 -0
- package/src/components/vc-calendar/src/locale/is_IS.js +27 -0
- package/src/components/vc-calendar/src/locale/it_IT.js +27 -0
- package/src/components/vc-calendar/src/locale/ja_JP.js +26 -0
- package/src/components/vc-calendar/src/locale/kn_IN.js +28 -0
- package/src/components/vc-calendar/src/locale/ko_KR.js +27 -0
- package/src/components/vc-calendar/src/locale/ku_IQ.js +27 -0
- package/src/components/vc-calendar/src/locale/lv_LV.js +27 -0
- package/src/components/vc-calendar/src/locale/mk_MK.js +27 -0
- package/src/components/vc-calendar/src/locale/mm_MM.js +28 -0
- package/src/components/vc-calendar/src/locale/mn_MN.js +28 -0
- package/src/components/vc-calendar/src/locale/ms_MY.js +27 -0
- package/src/components/vc-calendar/src/locale/nb_NO.js +27 -0
- package/src/components/vc-calendar/src/locale/nl_BE.js +27 -0
- package/src/components/vc-calendar/src/locale/nl_NL.js +27 -0
- package/src/components/vc-calendar/src/locale/pl_PL.js +27 -0
- package/src/components/vc-calendar/src/locale/pt_BR.js +27 -0
- package/src/components/vc-calendar/src/locale/pt_PT.js +27 -0
- package/src/components/vc-calendar/src/locale/ro_RO.js +28 -0
- package/src/components/vc-calendar/src/locale/ru_RU.js +27 -0
- package/src/components/vc-calendar/src/locale/sk_SK.js +28 -0
- package/src/components/vc-calendar/src/locale/sl_SI.js +27 -0
- package/src/components/vc-calendar/src/locale/sr_RS.js +27 -0
- package/src/components/vc-calendar/src/locale/sv_SE.js +27 -0
- package/src/components/vc-calendar/src/locale/ta_IN.js +28 -0
- package/src/components/vc-calendar/src/locale/th_TH.js +27 -0
- package/src/components/vc-calendar/src/locale/tr_TR.js +27 -0
- package/src/components/vc-calendar/src/locale/ug_CN.js +26 -0
- package/src/components/vc-calendar/src/locale/uk_UA.js +27 -0
- package/src/components/vc-calendar/src/locale/vi_VN.js +28 -0
- package/src/components/vc-calendar/src/locale/zh_CN.js +27 -0
- package/src/components/vc-calendar/src/locale/zh_TW.js +26 -0
- package/src/components/vc-calendar/src/mixin/CalendarMixin.js +122 -0
- package/src/components/vc-calendar/src/mixin/CommonMixin.js +26 -0
- package/src/components/vc-calendar/src/month/MonthPanel.jsx +123 -0
- package/src/components/vc-calendar/src/month/MonthTable.jsx +138 -0
- package/src/components/vc-calendar/src/picker/placements.js +35 -0
- package/src/components/vc-calendar/src/range-calendar/CalendarPart.jsx +171 -0
- package/src/components/vc-calendar/src/util/index.js +113 -0
- package/src/components/vc-calendar/src/util/toTime.js +15 -0
- package/src/components/vc-calendar/src/year/YearPanel.jsx +167 -0
- package/src/components/vc-pagination/locale/en_US.js +15 -0
- package/src/components/vc-select/DropdownMenu.jsx +216 -0
- package/src/components/vc-select/OptGroup.jsx +8 -0
- package/src/components/vc-select/Option.jsx +11 -0
- package/src/components/vc-select/PropTypes.js +59 -0
- package/src/components/vc-select/Select.jsx +1716 -0
- package/src/components/vc-select/SelectTrigger.jsx +259 -0
- package/src/components/vc-select/assets/index.less +541 -0
- package/src/components/vc-select/index.js +11 -0
- package/src/components/vc-select/util.js +223 -0
- package/src/components/vc-time-picker/Combobox.jsx +214 -0
- package/src/components/vc-time-picker/Header.jsx +187 -0
- package/src/components/vc-time-picker/Panel.jsx +225 -0
- package/src/components/vc-time-picker/Select.jsx +140 -0
- package/src/components/vc-time-picker/TimePicker.jsx +386 -0
- package/src/components/vc-time-picker/assets/index/Header.less +22 -0
- package/src/components/vc-time-picker/assets/index/Panel.less +29 -0
- package/src/components/vc-time-picker/assets/index/Picker.less +25 -0
- package/src/components/vc-time-picker/assets/index/Select.less +62 -0
- package/src/components/vc-time-picker/assets/index.less +44 -0
- package/src/components/vc-time-picker/index.js +2 -0
- package/src/components/vc-time-picker/placements.js +35 -0
- package/src/components/vc-tooltip/Content.jsx +23 -0
- package/src/components/vc-tooltip/Tooltip.jsx +106 -0
- package/src/components/vc-tooltip/assets/boostrap/anim.less +61 -0
- package/src/components/vc-tooltip/assets/bootstrap.less +171 -0
- package/src/components/vc-tooltip/assets/bootstrap_white.less +190 -0
- package/src/components/vc-tooltip/index.js +4 -0
- package/src/components/vc-tooltip/placements.js +83 -0
- package/src/components/vc-trigger/LazyRenderBox.jsx +22 -0
- package/src/components/vc-trigger/Popup.jsx +336 -0
- package/src/components/vc-trigger/PopupInner.jsx +25 -0
- package/src/components/vc-trigger/Trigger.jsx +663 -0
- package/src/components/vc-trigger/assets/index.less +72 -0
- package/src/components/vc-trigger/assets/mask.less +65 -0
- package/src/components/vc-trigger/index.js +3 -0
- package/src/components/vc-trigger/index.md +160 -0
- package/src/components/vc-trigger/t.js +665 -0
- package/src/components/vc-trigger/utils.js +27 -0
- package/src/components/vc-util/Dom/addEventListener.js +5 -0
- package/src/components/vc-util/Dom/class.js +28 -0
- package/src/components/vc-util/Dom/contains.js +11 -0
- package/src/components/vc-util/warning.js +38 -0
- package/src/index.js +44 -0
- package/types/index.d.ts +112 -0
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
@import '../../style/themes/index';
|
|
2
|
+
@import '../../style/mixins/index';
|
|
3
|
+
|
|
4
|
+
@input-affix-width: 19px;
|
|
5
|
+
@input-affix-with-clear-btn-width: 38px;
|
|
6
|
+
|
|
7
|
+
// size mixins for input
|
|
8
|
+
.input-lg() {
|
|
9
|
+
height: @input-height-lg;
|
|
10
|
+
padding: @input-padding-vertical-lg @input-padding-horizontal-lg;
|
|
11
|
+
font-size: @font-size-lg;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.input-sm() {
|
|
15
|
+
height: @input-height-sm;
|
|
16
|
+
padding: @input-padding-vertical-sm @input-padding-horizontal-sm;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// input status
|
|
20
|
+
// == when focus or actived
|
|
21
|
+
.active(@color: @outline-color) {
|
|
22
|
+
border-color: ~`colorPalette('@{color}', 5) `;
|
|
23
|
+
border-right-width: @border-width-base !important;
|
|
24
|
+
outline: 0;
|
|
25
|
+
box-shadow: @input-outline-offset @outline-blur-size @outline-width fade(@color, 20%);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// == when hoverd
|
|
29
|
+
.hover(@color: @input-hover-border-color) {
|
|
30
|
+
border-color: @color;
|
|
31
|
+
border-right-width: @border-width-base !important;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.disabled() {
|
|
35
|
+
color: @disabled-color;
|
|
36
|
+
background-color: @input-disabled-bg;
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
opacity: 1;
|
|
39
|
+
|
|
40
|
+
&:hover {
|
|
41
|
+
.hover(@input-border-color);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Basic style for input
|
|
46
|
+
.input() {
|
|
47
|
+
position: relative;
|
|
48
|
+
display: inline-block;
|
|
49
|
+
width: 100%;
|
|
50
|
+
height: @input-height-base;
|
|
51
|
+
padding: @input-padding-vertical-base @input-padding-horizontal-base;
|
|
52
|
+
color: @input-color;
|
|
53
|
+
font-size: @font-size-base;
|
|
54
|
+
line-height: @line-height-base;
|
|
55
|
+
background-color: @input-bg;
|
|
56
|
+
background-image: none;
|
|
57
|
+
border: @border-width-base @border-style-base @input-border-color;
|
|
58
|
+
border-radius: @border-radius-base;
|
|
59
|
+
transition: all 0.3s;
|
|
60
|
+
.placeholder(); // Reset placeholder
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
.hover();
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&:focus {
|
|
67
|
+
.active();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&-disabled {
|
|
71
|
+
.disabled();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&[disabled] {
|
|
75
|
+
.disabled();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// Reset height for `textarea`s
|
|
79
|
+
textarea& {
|
|
80
|
+
max-width: 100%; // prevent textearea resize from coming out of its container
|
|
81
|
+
height: auto;
|
|
82
|
+
min-height: @input-height-base;
|
|
83
|
+
line-height: @line-height-base;
|
|
84
|
+
vertical-align: bottom;
|
|
85
|
+
transition: all 0.3s, height 0s;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Size
|
|
89
|
+
&-lg {
|
|
90
|
+
.input-lg();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-sm {
|
|
94
|
+
.input-sm();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// label input
|
|
99
|
+
.input-group(@inputClass) {
|
|
100
|
+
position: relative;
|
|
101
|
+
display: table;
|
|
102
|
+
width: 100%;
|
|
103
|
+
border-collapse: separate;
|
|
104
|
+
border-spacing: 0;
|
|
105
|
+
|
|
106
|
+
// Undo padding and float of grid classes
|
|
107
|
+
&[class*='col-'] {
|
|
108
|
+
float: none;
|
|
109
|
+
padding-right: 0;
|
|
110
|
+
padding-left: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
> [class*='col-'] {
|
|
114
|
+
padding-right: 8px;
|
|
115
|
+
|
|
116
|
+
&:last-child {
|
|
117
|
+
padding-right: 0;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&-addon,
|
|
122
|
+
&-wrap,
|
|
123
|
+
> .@{inputClass} {
|
|
124
|
+
display: table-cell;
|
|
125
|
+
|
|
126
|
+
&:not(:first-child):not(:last-child) {
|
|
127
|
+
border-radius: 0;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&-addon,
|
|
132
|
+
&-wrap {
|
|
133
|
+
width: 1px; // To make addon/wrap as small as possible
|
|
134
|
+
white-space: nowrap;
|
|
135
|
+
vertical-align: middle;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&-wrap > * {
|
|
139
|
+
display: block !important;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.@{inputClass} {
|
|
143
|
+
float: left;
|
|
144
|
+
width: 100%;
|
|
145
|
+
margin-bottom: 0;
|
|
146
|
+
text-align: inherit;
|
|
147
|
+
|
|
148
|
+
&:focus {
|
|
149
|
+
z-index: 1; // Fix https://gw.alipayobjects.com/zos/rmsportal/DHNpoqfMXSfrSnlZvhsJ.png
|
|
150
|
+
border-right-width: 1px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&:hover {
|
|
154
|
+
z-index: 1;
|
|
155
|
+
border-right-width: 1px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&-addon {
|
|
160
|
+
position: relative;
|
|
161
|
+
padding: 0 @input-padding-horizontal-base;
|
|
162
|
+
color: @input-color;
|
|
163
|
+
font-weight: normal;
|
|
164
|
+
font-size: @font-size-base;
|
|
165
|
+
text-align: center;
|
|
166
|
+
background-color: @input-addon-bg;
|
|
167
|
+
border: @border-width-base @border-style-base @input-border-color;
|
|
168
|
+
border-radius: @border-radius-base;
|
|
169
|
+
transition: all 0.3s;
|
|
170
|
+
|
|
171
|
+
// Reset Select's style in addon
|
|
172
|
+
.@{ant-prefix}-select {
|
|
173
|
+
margin: -(@input-padding-vertical-base + 1px) (-@input-padding-horizontal-base);
|
|
174
|
+
|
|
175
|
+
.@{ant-prefix}-select-selection {
|
|
176
|
+
margin: -1px;
|
|
177
|
+
background-color: inherit;
|
|
178
|
+
border: @border-width-base @border-style-base transparent;
|
|
179
|
+
box-shadow: none;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&-open,
|
|
183
|
+
&-focused {
|
|
184
|
+
.@{ant-prefix}-select-selection {
|
|
185
|
+
color: @primary-color;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Expand addon icon click area
|
|
191
|
+
// https://github.com/ant-design/ant-design/issues/3714
|
|
192
|
+
> i:only-child::after {
|
|
193
|
+
position: absolute;
|
|
194
|
+
top: 0;
|
|
195
|
+
right: 0;
|
|
196
|
+
bottom: 0;
|
|
197
|
+
left: 0;
|
|
198
|
+
content: '';
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Reset rounded corners
|
|
203
|
+
> .@{inputClass}:first-child,
|
|
204
|
+
&-addon:first-child {
|
|
205
|
+
border-top-right-radius: 0;
|
|
206
|
+
border-bottom-right-radius: 0;
|
|
207
|
+
|
|
208
|
+
// Reset Select's style in addon
|
|
209
|
+
.@{ant-prefix}-select .@{ant-prefix}-select-selection {
|
|
210
|
+
border-top-right-radius: 0;
|
|
211
|
+
border-bottom-right-radius: 0;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
> .@{inputClass}-affix-wrapper {
|
|
216
|
+
&:not(:first-child) .@{inputClass} {
|
|
217
|
+
border-top-left-radius: 0;
|
|
218
|
+
border-bottom-left-radius: 0;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
&:not(:last-child) .@{inputClass} {
|
|
222
|
+
border-top-right-radius: 0;
|
|
223
|
+
border-bottom-right-radius: 0;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
&-addon:first-child {
|
|
228
|
+
border-right: 0;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&-addon:last-child {
|
|
232
|
+
border-left: 0;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
> .@{inputClass}:last-child,
|
|
236
|
+
&-addon:last-child {
|
|
237
|
+
border-top-left-radius: 0;
|
|
238
|
+
border-bottom-left-radius: 0;
|
|
239
|
+
|
|
240
|
+
// Reset Select's style in addon
|
|
241
|
+
.@{ant-prefix}-select .@{ant-prefix}-select-selection {
|
|
242
|
+
border-top-left-radius: 0;
|
|
243
|
+
border-bottom-left-radius: 0;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Sizing options
|
|
248
|
+
&-lg .@{inputClass},
|
|
249
|
+
&-lg > &-addon {
|
|
250
|
+
.input-lg();
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&-sm .@{inputClass},
|
|
254
|
+
&-sm > &-addon {
|
|
255
|
+
.input-sm();
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Fix https://github.com/ant-design/ant-design/issues/5754
|
|
259
|
+
&-lg .@{ant-prefix}-select-selection--single {
|
|
260
|
+
height: @input-height-lg;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
&-sm .@{ant-prefix}-select-selection--single {
|
|
264
|
+
height: @input-height-sm;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.@{inputClass}-affix-wrapper {
|
|
268
|
+
display: table-cell;
|
|
269
|
+
float: left;
|
|
270
|
+
width: 100%;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&&-compact {
|
|
274
|
+
display: block;
|
|
275
|
+
.clearfix;
|
|
276
|
+
|
|
277
|
+
&-addon,
|
|
278
|
+
&-wrap,
|
|
279
|
+
> .@{inputClass} {
|
|
280
|
+
&:not(:first-child):not(:last-child) {
|
|
281
|
+
border-right-width: @border-width-base;
|
|
282
|
+
|
|
283
|
+
&:hover {
|
|
284
|
+
z-index: 1;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&:focus {
|
|
288
|
+
z-index: 1;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
& > * {
|
|
294
|
+
display: inline-block;
|
|
295
|
+
float: none;
|
|
296
|
+
vertical-align: top; // https://github.com/ant-design/ant-design-pro/issues/139
|
|
297
|
+
border-radius: 0;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
& > *:not(:last-child) {
|
|
301
|
+
margin-right: -@border-width-base;
|
|
302
|
+
border-right-width: @border-width-base;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Undo float for .ant-input-group .ant-input
|
|
306
|
+
.@{inputClass} {
|
|
307
|
+
float: none;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// reset border for Select, DatePicker, AutoComplete, Cascader, Mention, TimePicker, Input
|
|
311
|
+
& > .@{ant-prefix}-select > .@{ant-prefix}-select-selection,
|
|
312
|
+
& > .@{ant-prefix}-calendar-picker .@{ant-prefix}-input,
|
|
313
|
+
& > .@{ant-prefix}-select-auto-complete .@{ant-prefix}-input,
|
|
314
|
+
& > .@{ant-prefix}-cascader-picker .@{ant-prefix}-input,
|
|
315
|
+
& > .@{ant-prefix}-mention-wrapper .@{ant-prefix}-mention-editor,
|
|
316
|
+
& > .@{ant-prefix}-time-picker .@{ant-prefix}-time-picker-input,
|
|
317
|
+
& > .@{ant-prefix}-input-group-wrapper .@{ant-prefix}-input {
|
|
318
|
+
border-right-width: @border-width-base;
|
|
319
|
+
border-radius: 0;
|
|
320
|
+
|
|
321
|
+
&:hover {
|
|
322
|
+
z-index: 1;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&:focus {
|
|
326
|
+
z-index: 1;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
& > .@{ant-prefix}-select-focused {
|
|
331
|
+
z-index: 1;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
& > *:first-child,
|
|
335
|
+
& > .@{ant-prefix}-select:first-child > .@{ant-prefix}-select-selection,
|
|
336
|
+
& > .@{ant-prefix}-calendar-picker:first-child .@{ant-prefix}-input,
|
|
337
|
+
& > .@{ant-prefix}-select-auto-complete:first-child .@{ant-prefix}-input,
|
|
338
|
+
& > .@{ant-prefix}-cascader-picker:first-child .@{ant-prefix}-input,
|
|
339
|
+
& > .@{ant-prefix}-mention-wrapper:first-child .@{ant-prefix}-mention-editor,
|
|
340
|
+
& > .@{ant-prefix}-time-picker:first-child .@{ant-prefix}-time-picker-input {
|
|
341
|
+
border-top-left-radius: @border-radius-base;
|
|
342
|
+
border-bottom-left-radius: @border-radius-base;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
& > *:last-child,
|
|
346
|
+
& > .@{ant-prefix}-select:last-child > .@{ant-prefix}-select-selection,
|
|
347
|
+
& > .@{ant-prefix}-calendar-picker:last-child .@{ant-prefix}-input,
|
|
348
|
+
& > .@{ant-prefix}-select-auto-complete:last-child .@{ant-prefix}-input,
|
|
349
|
+
& > .@{ant-prefix}-cascader-picker:last-child .@{ant-prefix}-input,
|
|
350
|
+
& > .@{ant-prefix}-cascader-picker-focused:last-child .@{ant-prefix}-input,
|
|
351
|
+
& > .@{ant-prefix}-mention-wrapper:last-child .@{ant-prefix}-mention-editor,
|
|
352
|
+
& > .@{ant-prefix}-time-picker:last-child .@{ant-prefix}-time-picker-input {
|
|
353
|
+
border-right-width: @border-width-base;
|
|
354
|
+
border-top-right-radius: @border-radius-base;
|
|
355
|
+
border-bottom-right-radius: @border-radius-base;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// https://github.com/ant-design/ant-design/issues/12493
|
|
359
|
+
& > .@{ant-prefix}-select-auto-complete .@{ant-prefix}-input {
|
|
360
|
+
vertical-align: top;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.input-affix-wrapper(@inputClass) {
|
|
366
|
+
position: relative;
|
|
367
|
+
display: inline-block;
|
|
368
|
+
width: 100%;
|
|
369
|
+
text-align: start;
|
|
370
|
+
|
|
371
|
+
&:hover .@{inputClass}:not(.@{inputClass}-disabled) {
|
|
372
|
+
.hover();
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.@{inputClass} {
|
|
376
|
+
position: relative;
|
|
377
|
+
text-align: inherit;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
// Should not break align of icon & text
|
|
381
|
+
// https://github.com/ant-design/ant-design/issues/18087
|
|
382
|
+
// https://github.com/ant-design/ant-design/issues/17414
|
|
383
|
+
// https://github.com/ant-design/ant-design/pull/17684
|
|
384
|
+
// https://codesandbox.io/embed/pensive-paper-di2wk
|
|
385
|
+
// https://codesandbox.io/embed/nifty-benz-gb7ml
|
|
386
|
+
.@{inputClass}-prefix,
|
|
387
|
+
.@{inputClass}-suffix {
|
|
388
|
+
position: absolute;
|
|
389
|
+
top: 50%;
|
|
390
|
+
z-index: 2;
|
|
391
|
+
display: flex;
|
|
392
|
+
align-items: center;
|
|
393
|
+
color: @input-color;
|
|
394
|
+
line-height: 0;
|
|
395
|
+
transform: translateY(-50%);
|
|
396
|
+
|
|
397
|
+
:not(.anticon) {
|
|
398
|
+
line-height: @line-height-base;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.@{inputClass}-disabled ~ .@{inputClass}-suffix {
|
|
403
|
+
.anticon {
|
|
404
|
+
color: @disabled-color;
|
|
405
|
+
cursor: not-allowed;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.@{inputClass}-prefix {
|
|
410
|
+
left: @input-padding-horizontal-base + 1px;
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.@{inputClass}-suffix {
|
|
414
|
+
right: @input-padding-horizontal-base + 1px;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.@{inputClass}:not(:first-child) {
|
|
418
|
+
padding-left: @input-padding-horizontal-base + @input-affix-width;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.@{inputClass}:not(:last-child) {
|
|
422
|
+
padding-right: @input-padding-horizontal-base + @input-affix-width;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
&.@{inputClass}-affix-wrapper-input-with-clear-btn .@{inputClass}:not(:last-child) {
|
|
426
|
+
padding-right: @input-padding-horizontal-base + @input-affix-with-clear-btn-width;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
&.@{inputClass}-affix-wrapper-textarea-with-clear-btn .@{inputClass} {
|
|
430
|
+
padding-right: 22px;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
.clear-icon() {
|
|
435
|
+
color: @disabled-color;
|
|
436
|
+
font-size: @font-size-sm;
|
|
437
|
+
// https://github.com/ant-design/ant-design/pull/18151
|
|
438
|
+
// https://codesandbox.io/s/wizardly-sun-u10br
|
|
439
|
+
cursor: pointer;
|
|
440
|
+
transition: color 0.3s;
|
|
441
|
+
|
|
442
|
+
&:hover {
|
|
443
|
+
color: @text-color-secondary;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&:active {
|
|
447
|
+
color: @text-color;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
+ i {
|
|
451
|
+
margin-left: 6px;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
@import '../../style/themes/index';
|
|
2
|
+
@import '../../style/mixins/index';
|
|
3
|
+
@import '../../button/style/mixin';
|
|
4
|
+
@import './mixin';
|
|
5
|
+
|
|
6
|
+
@search-prefix: ~'@{ant-prefix}-input-search';
|
|
7
|
+
|
|
8
|
+
.@{search-prefix} {
|
|
9
|
+
&-icon {
|
|
10
|
+
color: @text-color-secondary;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition: all 0.3s;
|
|
13
|
+
&:hover {
|
|
14
|
+
color: fade(@black, 80%);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&-enter-button {
|
|
19
|
+
input {
|
|
20
|
+
border-right: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
& + .@{ant-prefix}-input-group-addon,
|
|
24
|
+
input + .@{ant-prefix}-input-group-addon {
|
|
25
|
+
padding: 0;
|
|
26
|
+
border: 0;
|
|
27
|
+
|
|
28
|
+
.@{search-prefix}-button {
|
|
29
|
+
border-top-left-radius: 0;
|
|
30
|
+
border-bottom-left-radius: 0;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Pagination from '../vc-pagination/locale/ar_EG';
|
|
2
|
+
import DatePicker from '../date-picker/locale/ar_EG';
|
|
3
|
+
import TimePicker from '../time-picker/locale/ar_EG';
|
|
4
|
+
import Calendar from '../calendar/locale/ar_EG';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
locale: 'ar',
|
|
8
|
+
Pagination,
|
|
9
|
+
DatePicker,
|
|
10
|
+
TimePicker,
|
|
11
|
+
Calendar,
|
|
12
|
+
Table: {
|
|
13
|
+
filterTitle: 'الفلاتر',
|
|
14
|
+
filterConfirm: 'تأكيد',
|
|
15
|
+
filterReset: 'إعادة ضبط',
|
|
16
|
+
selectAll: 'اختيار الكل',
|
|
17
|
+
selectInvert: 'إلغاء الاختيار',
|
|
18
|
+
},
|
|
19
|
+
Modal: {
|
|
20
|
+
okText: 'تأكيد',
|
|
21
|
+
cancelText: 'إلغاء',
|
|
22
|
+
justOkText: 'تأكيد',
|
|
23
|
+
},
|
|
24
|
+
Popconfirm: {
|
|
25
|
+
okText: 'تأكيد',
|
|
26
|
+
cancelText: 'إلغاء',
|
|
27
|
+
},
|
|
28
|
+
Transfer: {
|
|
29
|
+
searchPlaceholder: 'ابحث هنا',
|
|
30
|
+
itemUnit: 'عنصر',
|
|
31
|
+
itemsUnit: 'عناصر',
|
|
32
|
+
},
|
|
33
|
+
Upload: {
|
|
34
|
+
uploading: 'جاري الرفع...',
|
|
35
|
+
removeFile: 'احذف الملف',
|
|
36
|
+
uploadError: 'مشكلة فى الرفع',
|
|
37
|
+
previewFile: 'استعرض الملف',
|
|
38
|
+
downloadFile: 'تحميل الملف',
|
|
39
|
+
},
|
|
40
|
+
Empty: {
|
|
41
|
+
description: 'لا توجد بيانات',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Pagination from '../vc-pagination/locale/bg_BG';
|
|
2
|
+
import DatePicker from '../date-picker/locale/bg_BG';
|
|
3
|
+
import TimePicker from '../time-picker/locale/bg_BG';
|
|
4
|
+
import Calendar from '../calendar/locale/bg_BG';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
locale: 'bg',
|
|
8
|
+
Pagination,
|
|
9
|
+
DatePicker,
|
|
10
|
+
TimePicker,
|
|
11
|
+
Calendar,
|
|
12
|
+
Table: {
|
|
13
|
+
filterTitle: 'Филтриране',
|
|
14
|
+
filterConfirm: 'Добре',
|
|
15
|
+
filterReset: 'Нулиране',
|
|
16
|
+
selectAll: 'Избор на текуща страница',
|
|
17
|
+
selectInvert: 'Обръщане',
|
|
18
|
+
},
|
|
19
|
+
Modal: {
|
|
20
|
+
okText: 'Добре',
|
|
21
|
+
cancelText: 'Отказ',
|
|
22
|
+
justOkText: 'Добре',
|
|
23
|
+
},
|
|
24
|
+
Popconfirm: {
|
|
25
|
+
okText: 'Добре',
|
|
26
|
+
cancelText: 'Отказ',
|
|
27
|
+
},
|
|
28
|
+
Transfer: {
|
|
29
|
+
searchPlaceholder: 'Търсене',
|
|
30
|
+
itemUnit: 'избор',
|
|
31
|
+
itemsUnit: 'избори',
|
|
32
|
+
},
|
|
33
|
+
Upload: {
|
|
34
|
+
uploading: 'Качване...',
|
|
35
|
+
removeFile: 'Премахване',
|
|
36
|
+
uploadError: 'Грешка при качването',
|
|
37
|
+
previewFile: 'Преглед',
|
|
38
|
+
downloadFile: 'Свали файл',
|
|
39
|
+
},
|
|
40
|
+
Empty: {
|
|
41
|
+
description: 'Няма данни',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Pagination from '../vc-pagination/locale/ca_ES';
|
|
2
|
+
import DatePicker from '../date-picker/locale/ca_ES';
|
|
3
|
+
import TimePicker from '../time-picker/locale/ca_ES';
|
|
4
|
+
import Calendar from '../calendar/locale/ca_ES';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
locale: 'ca',
|
|
8
|
+
Pagination,
|
|
9
|
+
DatePicker,
|
|
10
|
+
TimePicker,
|
|
11
|
+
Calendar,
|
|
12
|
+
Table: {
|
|
13
|
+
filterTitle: 'Filtrar Menu',
|
|
14
|
+
filterConfirm: 'OK',
|
|
15
|
+
filterReset: 'Restablir',
|
|
16
|
+
},
|
|
17
|
+
Modal: {
|
|
18
|
+
okText: 'OK',
|
|
19
|
+
cancelText: 'Cancel·lar',
|
|
20
|
+
justOkText: 'OK',
|
|
21
|
+
},
|
|
22
|
+
Popconfirm: {
|
|
23
|
+
okText: 'OK',
|
|
24
|
+
cancelText: 'Cancel·lar',
|
|
25
|
+
},
|
|
26
|
+
Transfer: {
|
|
27
|
+
searchPlaceholder: 'Cercar aquí',
|
|
28
|
+
itemUnit: 'item',
|
|
29
|
+
itemsUnit: 'items',
|
|
30
|
+
},
|
|
31
|
+
Upload: {
|
|
32
|
+
uploading: 'Carregant...',
|
|
33
|
+
removeFile: 'Elimina el fitxer',
|
|
34
|
+
uploadError: 'Error de càrrega',
|
|
35
|
+
previewFile: 'Vista prèvia del fitxer',
|
|
36
|
+
downloadFile: "Descarrega l'arxiu",
|
|
37
|
+
},
|
|
38
|
+
Empty: {
|
|
39
|
+
description: 'Sense dades',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Pagination from '../vc-pagination/locale/cs_CZ';
|
|
2
|
+
import DatePicker from '../date-picker/locale/cs_CZ';
|
|
3
|
+
import TimePicker from '../time-picker/locale/cs_CZ';
|
|
4
|
+
import Calendar from '../calendar/locale/cs_CZ';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
locale: 'cs',
|
|
8
|
+
Pagination,
|
|
9
|
+
DatePicker,
|
|
10
|
+
TimePicker,
|
|
11
|
+
Calendar,
|
|
12
|
+
Table: {
|
|
13
|
+
filterTitle: 'Filtr',
|
|
14
|
+
filterConfirm: 'Potvrdit',
|
|
15
|
+
filterReset: 'Obnovit',
|
|
16
|
+
},
|
|
17
|
+
Modal: {
|
|
18
|
+
okText: 'Ok',
|
|
19
|
+
cancelText: 'Storno',
|
|
20
|
+
justOkText: 'Ok',
|
|
21
|
+
},
|
|
22
|
+
Popconfirm: {
|
|
23
|
+
okText: 'Ok',
|
|
24
|
+
cancelText: 'Storno',
|
|
25
|
+
},
|
|
26
|
+
Transfer: {
|
|
27
|
+
searchPlaceholder: 'Vyhledávání',
|
|
28
|
+
itemUnit: 'položka',
|
|
29
|
+
itemsUnit: 'položek',
|
|
30
|
+
},
|
|
31
|
+
Upload: {
|
|
32
|
+
uploading: 'Nahrávání...',
|
|
33
|
+
removeFile: 'Odstranit soubor',
|
|
34
|
+
uploadError: 'Chyba při nahrávání',
|
|
35
|
+
previewFile: 'Zobrazit soubor',
|
|
36
|
+
downloadFile: 'Stáhnout soubor',
|
|
37
|
+
},
|
|
38
|
+
Empty: {
|
|
39
|
+
description: 'Žádná data',
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Pagination from '../vc-pagination/locale/da_DK';
|
|
2
|
+
import DatePicker from '../date-picker/locale/da_DK';
|
|
3
|
+
import TimePicker from '../time-picker/locale/da_DK';
|
|
4
|
+
import Calendar from '../calendar/locale/da_DK';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
locale: 'da',
|
|
8
|
+
DatePicker,
|
|
9
|
+
TimePicker,
|
|
10
|
+
Calendar,
|
|
11
|
+
Pagination,
|
|
12
|
+
Table: {
|
|
13
|
+
filterTitle: 'Filtermenu',
|
|
14
|
+
filterConfirm: 'OK',
|
|
15
|
+
filterReset: 'Nulstil',
|
|
16
|
+
selectAll: 'Vælg alle',
|
|
17
|
+
selectInvert: 'Inverter valg',
|
|
18
|
+
},
|
|
19
|
+
Modal: {
|
|
20
|
+
okText: 'OK',
|
|
21
|
+
cancelText: 'Afbryd',
|
|
22
|
+
justOkText: 'OK',
|
|
23
|
+
},
|
|
24
|
+
Popconfirm: {
|
|
25
|
+
okText: 'OK',
|
|
26
|
+
cancelText: 'Afbryd',
|
|
27
|
+
},
|
|
28
|
+
Transfer: {
|
|
29
|
+
searchPlaceholder: 'Søg her',
|
|
30
|
+
itemUnit: 'element',
|
|
31
|
+
itemsUnit: 'elementer',
|
|
32
|
+
},
|
|
33
|
+
Upload: {
|
|
34
|
+
uploading: 'Uploader...',
|
|
35
|
+
removeFile: 'Fjern fil',
|
|
36
|
+
uploadError: 'Fejl ved upload',
|
|
37
|
+
previewFile: 'Forhåndsvisning',
|
|
38
|
+
downloadFile: 'Download fil',
|
|
39
|
+
},
|
|
40
|
+
Empty: {
|
|
41
|
+
description: 'Ingen data',
|
|
42
|
+
},
|
|
43
|
+
};
|