@hi-ui/time-picker 4.0.0-beta.8 → 4.0.1
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/lib/cjs/@types/index.js +1 -2
- package/lib/cjs/Input.js +8 -9
- package/lib/cjs/Panel.js +6 -7
- package/lib/cjs/PopContent.js +7 -8
- package/lib/cjs/Selector.js +9 -14
- package/lib/cjs/TimePicker.js +29 -23
- package/lib/cjs/hooks/useFilter.js +1 -2
- package/lib/cjs/index.js +1 -2
- package/lib/cjs/styles/index.scss.js +3 -4
- package/lib/cjs/utils/analysisFormat.js +1 -2
- package/lib/cjs/utils/disposeInputValue.js +5 -6
- package/lib/cjs/utils/generateSelectorData.js +1 -2
- package/lib/cjs/utils/getFormatDefault.js +1 -2
- package/lib/cjs/utils/getNowString.js +1 -2
- package/lib/cjs/utils/getRange.js +1 -2
- package/lib/cjs/utils/valueChecker.js +1 -2
- package/lib/esm/@types/index.js +1 -2
- package/lib/esm/Input.js +2 -3
- package/lib/esm/Panel.js +1 -2
- package/lib/esm/PopContent.js +3 -4
- package/lib/esm/Selector.js +3 -8
- package/lib/esm/TimePicker.js +19 -13
- package/lib/esm/hooks/useFilter.js +1 -2
- package/lib/esm/index.js +1 -2
- package/lib/esm/styles/index.scss.js +4 -6
- package/lib/esm/utils/analysisFormat.js +1 -2
- package/lib/esm/utils/disposeInputValue.js +5 -6
- package/lib/esm/utils/generateSelectorData.js +1 -2
- package/lib/esm/utils/getFormatDefault.js +1 -2
- package/lib/esm/utils/getNowString.js +1 -2
- package/lib/esm/utils/getRange.js +1 -2
- package/lib/esm/utils/valueChecker.js +1 -2
- package/lib/types/TimePicker.d.ts +5 -0
- package/package.json +13 -13
- package/lib/cjs/@types/index.js.map +0 -1
- package/lib/cjs/Input.js.map +0 -1
- package/lib/cjs/Panel.js.map +0 -1
- package/lib/cjs/PopContent.js.map +0 -1
- package/lib/cjs/Selector.js.map +0 -1
- package/lib/cjs/TimePicker.js.map +0 -1
- package/lib/cjs/hooks/useFilter.js.map +0 -1
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/styles/index.scss.js.map +0 -1
- package/lib/cjs/utils/analysisFormat.js.map +0 -1
- package/lib/cjs/utils/disposeInputValue.js.map +0 -1
- package/lib/cjs/utils/generateSelectorData.js.map +0 -1
- package/lib/cjs/utils/getFormatDefault.js.map +0 -1
- package/lib/cjs/utils/getNowString.js.map +0 -1
- package/lib/cjs/utils/getRange.js.map +0 -1
- package/lib/cjs/utils/valueChecker.js.map +0 -1
- package/lib/esm/@types/index.js.map +0 -1
- package/lib/esm/Input.js.map +0 -1
- package/lib/esm/Panel.js.map +0 -1
- package/lib/esm/PopContent.js.map +0 -1
- package/lib/esm/Selector.js.map +0 -1
- package/lib/esm/TimePicker.js.map +0 -1
- package/lib/esm/hooks/useFilter.js.map +0 -1
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/styles/index.scss.js.map +0 -1
- package/lib/esm/utils/analysisFormat.js.map +0 -1
- package/lib/esm/utils/disposeInputValue.js.map +0 -1
- package/lib/esm/utils/generateSelectorData.js.map +0 -1
- package/lib/esm/utils/getFormatDefault.js.map +0 -1
- package/lib/esm/utils/getNowString.js.map +0 -1
- package/lib/esm/utils/getRange.js.map +0 -1
- package/lib/esm/utils/valueChecker.js.map +0 -1
package/lib/cjs/@types/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -19,4 +19,3 @@ exports.TimePickerSelectorType = void 0;
|
|
19
19
|
TimePickerSelectorType[TimePickerSelectorType["minute"] = 2] = "minute";
|
20
20
|
TimePickerSelectorType[TimePickerSelectorType["second"] = 3] = "second";
|
21
21
|
})(exports.TimePickerSelectorType || (exports.TimePickerSelectorType = {}));
|
22
|
-
//# sourceMappingURL=index.js.map
|
package/lib/cjs/Input.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -23,7 +23,7 @@ var valueChecker = require('./utils/valueChecker.js');
|
|
23
23
|
|
24
24
|
var disposeInputValue = require('./utils/disposeInputValue.js');
|
25
25
|
|
26
|
-
var
|
26
|
+
var core = require('@hi-ui/core');
|
27
27
|
|
28
28
|
function _interopDefaultLegacy(e) {
|
29
29
|
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
@@ -53,7 +53,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
53
53
|
onValidChange = props.onValidChange,
|
54
54
|
isFitContent = props.isFitContent,
|
55
55
|
size = props.size;
|
56
|
-
var i18n =
|
56
|
+
var i18n = core.useLocaleContext();
|
57
57
|
var toText = i18n.get('timePicker.to');
|
58
58
|
var componentClass = React.useMemo(function () {
|
59
59
|
return prefix + "__input";
|
@@ -138,9 +138,9 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
138
138
|
return undefined;
|
139
139
|
};
|
140
140
|
|
141
|
-
return /*#__PURE__*/React__default[
|
141
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
142
142
|
className: componentClass + "__wrapper"
|
143
|
-
}, /*#__PURE__*/React__default[
|
143
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
144
144
|
className: componentClass + "__interact-area",
|
145
145
|
onChange: function onChange(e) {
|
146
146
|
var result = dispose(e.target.value);
|
@@ -155,7 +155,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
155
155
|
},
|
156
156
|
value: matchValue,
|
157
157
|
placeholder: placeholders[index]
|
158
|
-
}), /*#__PURE__*/React__default[
|
158
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
159
159
|
className: componentClass + "__shadow-text"
|
160
160
|
}, matchValue || placeholders[index]));
|
161
161
|
}, [componentClass, disabled, placeholders, isFitContent, format, cacheValue, validChecker, getPanelType, _onChange, _onFocus]); // 通知外部,输入框内容合法性变更
|
@@ -170,12 +170,11 @@ var Input = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
170
170
|
}
|
171
171
|
};
|
172
172
|
}, [value]);
|
173
|
-
return /*#__PURE__*/React__default[
|
173
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
174
174
|
className: classname.cx(componentClass, componentClass + "--size-" + size, (_cx = {}, _cx[componentClass + "--not-valid"] = !judgeIsValid(cacheValue), _cx[componentClass + "--range"] = type === 'range', _cx[componentClass + "--disabled"] = disabled, _cx[componentClass + "--fit-content"] = isFitContent, _cx))
|
175
|
-
}, renderInput(cacheValue[0], 0), type === 'range' && /*#__PURE__*/React__default[
|
175
|
+
}, renderInput(cacheValue[0], 0), type === 'range' && /*#__PURE__*/React__default["default"].createElement("div", {
|
176
176
|
className: componentClass + "__range-separator"
|
177
177
|
}, toText), type === 'range' && renderInput(cacheValue[1], 1));
|
178
178
|
});
|
179
179
|
Input.displayName = 'Input';
|
180
180
|
exports.Input = Input;
|
181
|
-
//# sourceMappingURL=Input.js.map
|
package/lib/cjs/Panel.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -88,7 +88,7 @@ var Panel = function Panel(props) {
|
|
88
88
|
// }, [selectorTypes, componentPrefix])
|
89
89
|
|
90
90
|
var renderSelectors = React.useCallback(function () {
|
91
|
-
return /*#__PURE__*/React__default[
|
91
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
92
92
|
className: componentPrefix + "__selector-container"
|
93
93
|
}, selectorTypes.map(function (type, index) {
|
94
94
|
var _cx;
|
@@ -101,10 +101,10 @@ var Panel = function Panel(props) {
|
|
101
101
|
position = Selector.SelectorPosition.right;
|
102
102
|
}
|
103
103
|
|
104
|
-
return /*#__PURE__*/React__default[
|
104
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
105
105
|
className: componentPrefix + "__selector-content",
|
106
106
|
key: type
|
107
|
-
}, /*#__PURE__*/React__default[
|
107
|
+
}, /*#__PURE__*/React__default["default"].createElement(Selector.Selector, {
|
108
108
|
value: String(separateValue[index]),
|
109
109
|
prefix: prefix,
|
110
110
|
position: position,
|
@@ -125,17 +125,16 @@ var Panel = function Panel(props) {
|
|
125
125
|
}).join(':'));
|
126
126
|
},
|
127
127
|
data: getSelectorData(type)
|
128
|
-
}), /*#__PURE__*/React__default[
|
128
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
129
129
|
className: classname.cx(componentPrefix + "__indicator", (_cx = {}, _cx[componentPrefix + "__indicator--left"] = index === 0, _cx[componentPrefix + "__indicator--right"] = index === selectorTypes.length - 1, _cx))
|
130
130
|
}));
|
131
131
|
}));
|
132
132
|
}, [selectorTypes, componentPrefix, prefix, getSelectorData, _onChange, separateValue, // itemHeight,
|
133
133
|
// fullDisplayItemNumber,
|
134
134
|
value]);
|
135
|
-
return /*#__PURE__*/React__default[
|
135
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
136
136
|
className: componentPrefix
|
137
137
|
}, renderSelectors());
|
138
138
|
};
|
139
139
|
|
140
140
|
exports.Panel = Panel;
|
141
|
-
//# sourceMappingURL=Panel.js.map
|
package/lib/cjs/PopContent.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -127,8 +127,8 @@ var PopContent = function PopContent(props) {
|
|
127
127
|
result = [].concat(result, getRange.getRange(0, isLastOne ? startMinute : startMinute - 1));
|
128
128
|
} // 开始时间大于结束时间,直接禁用所有
|
129
129
|
else if (startHour > hour) {
|
130
|
-
|
131
|
-
|
130
|
+
result = [].concat(result, getRange.getRange(0, 59));
|
131
|
+
}
|
132
132
|
}
|
133
133
|
}
|
134
134
|
|
@@ -174,9 +174,9 @@ var PopContent = function PopContent(props) {
|
|
174
174
|
return prefix + "__pop-content";
|
175
175
|
}, [prefix]);
|
176
176
|
var renderPanel = React.useCallback(function (index) {
|
177
|
-
return /*#__PURE__*/React__default[
|
177
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
178
178
|
className: componentClass + "__panel-container"
|
179
|
-
}, /*#__PURE__*/React__default[
|
179
|
+
}, /*#__PURE__*/React__default["default"].createElement(Panel.Panel // itemHeight={itemHeight}
|
180
180
|
// fullDisplayItemNumber={fullDisplayItemNumber}
|
181
181
|
, {
|
182
182
|
// itemHeight={itemHeight}
|
@@ -201,13 +201,12 @@ var PopContent = function PopContent(props) {
|
|
201
201
|
}, [hourStep, minuteStep, secondStep, customDisabledHours, customDisabledMinute, customDisabledSeconds, format, prefix, type, value, _onChange, // fullDisplayItemNumber,
|
202
202
|
// itemHeight,
|
203
203
|
componentClass]);
|
204
|
-
return /*#__PURE__*/React__default[
|
204
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
205
205
|
className: componentClass,
|
206
206
|
style: style
|
207
|
-
}, renderPanel(0), type === 'range' && /*#__PURE__*/React__default[
|
207
|
+
}, renderPanel(0), type === 'range' && /*#__PURE__*/React__default["default"].createElement("div", {
|
208
208
|
className: componentClass + "__separator"
|
209
209
|
}), type === 'range' && renderPanel(1));
|
210
210
|
};
|
211
211
|
|
212
212
|
exports.PopContent = PopContent;
|
213
|
-
//# sourceMappingURL=PopContent.js.map
|
package/lib/cjs/Selector.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -48,13 +48,9 @@ var Selector = function Selector(props) {
|
|
48
48
|
var scrollContainerRef = React.useRef(null);
|
49
49
|
var topItemGagerRef = React.useRef(null);
|
50
50
|
var bottomItemGagerRef = React.useRef(null);
|
51
|
-
var lastValueMatchIndexCache = React.useRef(-1);
|
52
|
-
// () => ((fullDisplayItemNumber - 1) * (itemHeight + ITEM_MARGIN_SIZE)) / 2,
|
53
|
-
// [fullDisplayItemNumber, itemHeight]
|
54
|
-
// )
|
55
|
-
|
51
|
+
var lastValueMatchIndexCache = React.useRef(-1);
|
56
52
|
var calcCurrentIndex = React.useCallback(function (scrollTop) {
|
57
|
-
return Math.
|
53
|
+
return Math.round(scrollTop / (topItemGagerRef.current.clientHeight + (bottomItemGagerRef.current.offsetTop - topItemGagerRef.current.offsetTop - topItemGagerRef.current.clientHeight)));
|
58
54
|
}, []);
|
59
55
|
var scrollToMatchIndex = React.useCallback(function (index) {
|
60
56
|
if (scrollContainerRef.current) {
|
@@ -100,9 +96,9 @@ var Selector = function Selector(props) {
|
|
100
96
|
scrollToMatchIndex(currentIndex);
|
101
97
|
}
|
102
98
|
}, [data, value, scrollToMatchIndex]);
|
103
|
-
return /*#__PURE__*/React__default[
|
99
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
104
100
|
className: classname.cx(componentPrefix, componentPrefix + "--position-" + position)
|
105
|
-
}, /*#__PURE__*/React__default[
|
101
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
106
102
|
onScroll: onScroll,
|
107
103
|
ref: scrollContainerRef,
|
108
104
|
// 此处使用了取巧的办法
|
@@ -111,14 +107,14 @@ var Selector = function Selector(props) {
|
|
111
107
|
}, data.map(function (item, index) {
|
112
108
|
var _cx;
|
113
109
|
|
114
|
-
return /*#__PURE__*/React__default[
|
110
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
115
111
|
className: classname.cx(componentPrefix + "__item", componentPrefix + "__demarcate", (_cx = {}, _cx[componentPrefix + "__item--disabled"] = item.disabled, _cx[componentPrefix + "__item--active"] = item.id === value, _cx)),
|
116
112
|
key: item.id,
|
117
113
|
onClick: function onClick() {
|
118
114
|
return onItemClick(item, index);
|
119
115
|
}
|
120
116
|
}, item.title);
|
121
|
-
}), /*#__PURE__*/React__default[
|
117
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
122
118
|
style: {
|
123
119
|
pointerEvents: 'none',
|
124
120
|
opacity: '0',
|
@@ -127,14 +123,13 @@ var Selector = function Selector(props) {
|
|
127
123
|
left: '0',
|
128
124
|
top: '0'
|
129
125
|
}
|
130
|
-
}, /*#__PURE__*/React__default[
|
126
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
131
127
|
className: componentPrefix + "__demarcate",
|
132
128
|
ref: topItemGagerRef
|
133
|
-
}), /*#__PURE__*/React__default[
|
129
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
134
130
|
className: componentPrefix + "__demarcate",
|
135
131
|
ref: bottomItemGagerRef
|
136
132
|
}))));
|
137
133
|
};
|
138
134
|
|
139
135
|
exports.Selector = Selector;
|
140
|
-
//# sourceMappingURL=Selector.js.map
|
package/lib/cjs/TimePicker.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -21,6 +21,8 @@ var classname = require('@hi-ui/classname');
|
|
21
21
|
|
22
22
|
var env = require('@hi-ui/env');
|
23
23
|
|
24
|
+
var core = require('@hi-ui/core');
|
25
|
+
|
24
26
|
var Input = require('./Input.js');
|
25
27
|
|
26
28
|
var useUncontrolledState = require('@hi-ui/use-uncontrolled-state');
|
@@ -41,8 +43,6 @@ var getNowString = require('./utils/getNowString.js');
|
|
41
43
|
|
42
44
|
var DayJs = require('dayjs');
|
43
45
|
|
44
|
-
var localeContext = require('@hi-ui/locale-context');
|
45
|
-
|
46
46
|
function _interopDefaultLegacy(e) {
|
47
47
|
return e && _typeof(e) === 'object' && 'default' in e ? e : {
|
48
48
|
'default': e
|
@@ -70,7 +70,7 @@ var getValueMatchString = function getValueMatchString(value) {
|
|
70
70
|
|
71
71
|
var result = Array.isArray(value) ? value : [value];
|
72
72
|
return result.map(function (item) {
|
73
|
-
return typeof item === 'string' ? item : DayJs__default[
|
73
|
+
return typeof item === 'string' ? item : DayJs__default["default"](item).format('HH:mm:ss');
|
74
74
|
});
|
75
75
|
};
|
76
76
|
|
@@ -112,8 +112,10 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
112
112
|
inputReadonly = _ref$inputReadonly === void 0 ? false : _ref$inputReadonly,
|
113
113
|
overlay = _ref.overlay,
|
114
114
|
_ref$size = _ref.size,
|
115
|
-
size = _ref$size === void 0 ? 'md' : _ref$size
|
116
|
-
|
115
|
+
size = _ref$size === void 0 ? 'md' : _ref$size,
|
116
|
+
_ref$invalid = _ref.invalid,
|
117
|
+
invalid = _ref$invalid === void 0 ? false : _ref$invalid;
|
118
|
+
var i18n = core.useLocaleContext();
|
117
119
|
var confirmText = i18n.get('timePicker.ok');
|
118
120
|
var nowText = i18n.get('timePicker.now');
|
119
121
|
|
@@ -133,6 +135,10 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
133
135
|
});
|
134
136
|
notifyOutside && notifyOutside(result.length > 1 ? result : result[0]);
|
135
137
|
}, [notifyOutside]);
|
138
|
+
var isInSingleValueFormat = React.useMemo(function () {
|
139
|
+
var singleFormat = ['HH', 'mm', 'ss'];
|
140
|
+
return singleFormat.includes(format);
|
141
|
+
}, [format]);
|
136
142
|
|
137
143
|
var _useUncontrolledState = useUncontrolledState.useUncontrolledState(formatUncontrolledValue, formatControlledValue, formatNotifyOutside),
|
138
144
|
value = _useUncontrolledState[0],
|
@@ -221,14 +227,13 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
221
227
|
setShowPopper = _useState4[1];
|
222
228
|
|
223
229
|
var showPopperRef = React.useRef(false);
|
224
|
-
var cls = classname.cx(prefixCls, className, prefixCls + "--appearance-" + appearance, (_cx = {}, _cx[prefixCls + "--active"] = showPopper && !disabled, _cx[prefixCls + "--disabled"] = disabled, _cx[prefixCls + "--input-not-valid"] = !isInputValid, _cx));
|
230
|
+
var cls = classname.cx(prefixCls, className, prefixCls + "--appearance-" + appearance, (_cx = {}, _cx[prefixCls + "--active"] = showPopper && !disabled, _cx[prefixCls + "--disabled"] = disabled, _cx[prefixCls + "--input-not-valid"] = !isInputValid || invalid, _cx));
|
225
231
|
var functionButtons = React.useMemo(function () {
|
226
|
-
return /*#__PURE__*/React__default[
|
232
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
227
233
|
className: prefixCls + "__pop-function-buttons"
|
228
|
-
}, /*#__PURE__*/React__default[
|
229
|
-
className: prefixCls + "__pop-confirm-
|
234
|
+
}, /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
235
|
+
className: prefixCls + "__pop-confirm-btn",
|
230
236
|
type: 'primary',
|
231
|
-
size: "sm",
|
232
237
|
disabled: !isInputValid,
|
233
238
|
onClick: function onClick() {
|
234
239
|
// 合法,才去通知外部
|
@@ -241,23 +246,25 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
241
246
|
showPopperRef.current = false;
|
242
247
|
setShowPopper(false);
|
243
248
|
}
|
244
|
-
}, confirmText), type === 'single' && /*#__PURE__*/React__default[
|
245
|
-
className: prefixCls + "__pop-now-
|
249
|
+
}, confirmText), type === 'single' && !isInSingleValueFormat && /*#__PURE__*/React__default["default"].createElement(button.Button, {
|
250
|
+
className: prefixCls + "__pop-now-btn",
|
251
|
+
appearance: "link",
|
252
|
+
type: "primary",
|
246
253
|
onClick: function onClick() {
|
247
|
-
|
254
|
+
onChange([getNowString.getNowString(format)]);
|
248
255
|
showPopperRef.current = false;
|
249
256
|
setShowPopper(false);
|
250
257
|
}
|
251
258
|
}, nowText));
|
252
|
-
}, [confirmText, nowText, prefixCls, isInputValid, type, format,
|
253
|
-
return /*#__PURE__*/React__default[
|
259
|
+
}, [confirmText, nowText, prefixCls, isInputValid, type, format, cacheValue, value, onChange, validChecker, isInSingleValueFormat]);
|
260
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
254
261
|
ref: ref,
|
255
262
|
role: role,
|
256
263
|
className: cls
|
257
|
-
}, /*#__PURE__*/React__default[
|
264
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
258
265
|
ref: setAttachEl,
|
259
266
|
className: prefixCls + "__input-wrapper"
|
260
|
-
}, /*#__PURE__*/React__default[
|
267
|
+
}, /*#__PURE__*/React__default["default"].createElement(Input.Input, {
|
261
268
|
size: size,
|
262
269
|
isFitContent: appearance === 'unset',
|
263
270
|
ref: inputRef,
|
@@ -279,7 +286,7 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
279
286
|
showPopperRef.current = true;
|
280
287
|
setShowPopper(true);
|
281
288
|
}
|
282
|
-
}), /*#__PURE__*/React__default[
|
289
|
+
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
283
290
|
className: prefixCls + "__function-button",
|
284
291
|
onClick: function onClick() {
|
285
292
|
showPopperRef.current = !showPopperRef.current;
|
@@ -287,12 +294,12 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
287
294
|
return !pre;
|
288
295
|
});
|
289
296
|
}
|
290
|
-
}, showPopper ? /*#__PURE__*/React__default[
|
297
|
+
}, showPopper ? /*#__PURE__*/React__default["default"].createElement(icons.CloseCircleFilled, {
|
291
298
|
className: prefixCls + "__close-button",
|
292
299
|
onClick: function onClick() {
|
293
300
|
onCacheChange(type === 'single' ? [''] : ['', '']);
|
294
301
|
}
|
295
|
-
}) : /*#__PURE__*/React__default[
|
302
|
+
}) : /*#__PURE__*/React__default["default"].createElement(icons.TimeOutlined, null))), /*#__PURE__*/React__default["default"].createElement(popper.Popper, Object.assign({}, overlay || {}, {
|
296
303
|
unmountOnClose: false,
|
297
304
|
visible: showPopper && !disabled,
|
298
305
|
attachEl: attachEl,
|
@@ -308,7 +315,7 @@ var TimePicker = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
308
315
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.refresh();
|
309
316
|
},
|
310
317
|
preload: true
|
311
|
-
}), /*#__PURE__*/React__default[
|
318
|
+
}), /*#__PURE__*/React__default["default"].createElement(PopContent.PopContent // itemHeight={itemHeight}
|
312
319
|
// fullDisplayItemNumber={fullDisplayItemNumber}
|
313
320
|
, {
|
314
321
|
// itemHeight={itemHeight}
|
@@ -346,4 +353,3 @@ if (env.__DEV__) {
|
|
346
353
|
|
347
354
|
exports.TimePicker = TimePicker;
|
348
355
|
exports.timePickerPrefix = timePickerPrefix;
|
349
|
-
//# sourceMappingURL=TimePicker.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -36,4 +36,3 @@ var useFilter = function useFilter(original) {
|
|
36
36
|
};
|
37
37
|
|
38
38
|
exports.useFilter = useFilter;
|
39
|
-
//# sourceMappingURL=useFilter.js.map
|
package/lib/cjs/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -31,4 +31,3 @@ Object.defineProperty(exports, 'TimePickerSelectorType', {
|
|
31
31
|
exports.TimePicker = TimePicker.TimePicker;
|
32
32
|
exports["default"] = TimePicker.TimePicker;
|
33
33
|
exports.timePickerPrefix = TimePicker.timePickerPrefix;
|
34
|
-
//# sourceMappingURL=index.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -12,11 +12,10 @@
|
|
12
12
|
Object.defineProperty(exports, '__esModule', {
|
13
13
|
value: true
|
14
14
|
});
|
15
|
-
var css_248z = "@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n.hi-v4-time-picker {\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n border-radius: 4px;\n -webkit-box-shadow: 0 0 0 2px transparent;\n box-shadow: 0 0 0 2px transparent; }\n.hi-v4-time-picker__input-wrapper {\n border: var(--hi-v4-border-size-normal, 1px solid) var(--hi-v4-color-static-transparent, transparent);\n border-radius: var(--hi-v4-border-radius-normal, 4px);\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center; }\n.hi-v4-time-picker--appearance-line {\n position: relative;\n z-index: 0; }\n.hi-v4-time-picker--appearance-line .hi-v4-time-picker__input-wrapper {\n background: var(--hi-v4-color-static-white, #fff);\n border-color: var(--hi-v4-color-gray-300, #dfe2e8); }\n.hi-v4-time-picker--appearance-line:hover .hi-v4-time-picker__input-wrapper {\n border-color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa)); }\n.hi-v4-time-picker--appearance-filled {\n background: var(--hi-v4-color-gray-100, #f2f4f7); }\n.hi-v4-time-picker--appearance-filled:hover {\n background: var(--hi-v4-color-gray-200, #ebedf0); }\n.hi-v4-time-picker--appearance-unset:hover {\n background: var(--hi-v4-color-gray-100, #f2f4f7); }\n.hi-v4-time-picker--active {\n -webkit-box-shadow: 0 0 0 2px var(--hi-v4-color-primary-100, var(--hi-v4-color-brandblue-100, #bde2ff));\n box-shadow: 0 0 0 2px var(--hi-v4-color-primary-100, var(--hi-v4-color-brandblue-100, #bde2ff));\n background: transparent; }\n.hi-v4-time-picker--active .hi-v4-time-picker__input-wrapper {\n border-color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa)); }\n.hi-v4-time-picker--active:hover {\n background: transparent; }\n.hi-v4-time-picker--input-not-valid {\n -webkit-box-shadow: 0 0 0 2px var(--hi-v4-color-danger-100, var(--hi-v4-color-red-100, #ffd1c9));\n box-shadow: 0 0 0 2px var(--hi-v4-color-danger-100, var(--hi-v4-color-red-100, #ffd1c9)); }\n.hi-v4-time-picker--input-not-valid .hi-v4-time-picker__input-wrapper {\n border-color: var(--hi-v4-color-danger-500, var(--hi-v4-color-red-500, #ff5959)); }\n.hi-v4-time-picker__pop-function-buttons {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n padding: 6px 8px;\n border-top: 1px solid var(--hi-v4-color-gray-100, #f2f4f7);\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-box-orient: horizontal;\n -webkit-box-direction: reverse;\n -ms-flex-direction: row-reverse;\n flex-direction: row-reverse; }\n.hi-v4-time-picker__pop-now-button {\n height: 22px;\n width: 48px;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n font-size: var(--hi-v4-text-size-sm, 0.75rem);\n color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa));\n cursor: pointer;\n margin-right: 12px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n.hi-v4-time-picker__function-button {\n margin-right: 8px;\n font-size: 14px;\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n color: var(--hi-v4-color-gray-500, #929aa6); }\n.hi-v4-time-picker--disabled {\n cursor: not-allowed;\n background: #dfe2e8; }\n.hi-v4-time-picker--disabled .hi-v4-time-picker__input-wrapper {\n pointer-events: none;\n opacity: 0.3; }\n.hi-v4-time-picker__close-button:hover {\n color: #5f6a7a; }\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n.hi-v4-time-picker__selector {\n cursor: pointer;\n position: relative;\n z-index: 0;\n width: 54px;\n color: #5f6a7a;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n.hi-v4-time-picker__selector:hover .hi-v4-time-picker__selector__shortcut {\n opacity: 1; }\n.hi-v4-time-picker__selector--position-left {\n margin-right: 1px; }\n.hi-v4-time-picker__selector--position-left .hi-v4-time-picker__selector__item {\n border-radius: 4px 0 0 4px; }\n.hi-v4-time-picker__selector--position-right {\n margin-left: 1px; }\n.hi-v4-time-picker__selector--position-right .hi-v4-time-picker__selector__item {\n border-radius: 0 4px 4px 0; }\n.hi-v4-time-picker__selector--position-single .hi-v4-time-picker__selector__item {\n border-radius: 4px; }\n.hi-v4-time-picker__selector__item {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n font-size: 14px; }\n.hi-v4-time-picker__selector__item:hover {\n background: var(--hi-v4-color-gray-100, #f2f4f7); }\n.hi-v4-time-picker__selector__item.hi-v4-time-picker__selector__item--disabled {\n opacity: 0.2;\n cursor: not-allowed;\n background: transparent; }\n.hi-v4-time-picker__selector__demarcate {\n margin: 8px 0;\n height: 24px; }\n.hi-v4-time-picker__selector__demarcate:first-of-type {\n margin-top: 0; }\n.hi-v4-time-picker__selector__demarcate:last-of-type {\n margin-bottom: 0; }\n.hi-v4-time-picker__selector__scroll-part {\n overflow-y: auto;\n -webkit-box-sizing: content-box;\n box-sizing: content-box;\n scroll-behavior: smooth;\n scrollbar-width: none;\n /* firefox */\n -ms-overflow-style: none;\n /* IE 10+ */\n padding: 100px 0;\n width: 100%;\n position: relative;\n z-index: 0; }\n.hi-v4-time-picker__selector__scroll-part::-webkit-scrollbar {\n display: none;\n /* Chrome Safari */ }\n.hi-v4-time-picker__selector__shortcut {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n height: 12px;\n opacity: 0; }\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n.hi-v4-time-picker__panel {\n padding: 4px 8px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n height: 100%; }\n.hi-v4-time-picker__panel__selector-container {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n position: relative;\n z-index: 0;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n.hi-v4-time-picker__panel__selector-content {\n position: relative; }\n.hi-v4-time-picker__panel__indicator {\n position: absolute;\n top: 50%;\n -webkit-transform: translateY(-50%);\n transform: translateY(-50%);\n pointer-events: none;\n background: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));\n z-index: -1;\n width: 54px;\n height: 24px; }\n.hi-v4-time-picker__panel__indicator--left {\n border-top-left-radius: 4px;\n border-bottom-left-radius: 4px;\n left: 0; }\n.hi-v4-time-picker__panel__indicator--right {\n border-top-right-radius: 4px;\n border-bottom-right-radius: 4px;\n right: 0; }\n.hi-v4-time-picker__panel__indicator--middle {\n left: 0; }\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n.hi-v4-time-picker__input {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n color: var(--hi-v4-color-gray-700, #1f2733); }\n.hi-v4-time-picker__input--disabled {\n color: var(--hi-v4-color-gray-400, #c9ced6); }\n.hi-v4-time-picker__input--not-valid {\n color: var(--hi-v4-color-danger-500, var(--hi-v4-color-red-500, #ff5959)); }\n.hi-v4-time-picker__input--range .hi-v4-time-picker__input__interact-area {\n text-align: center; }\n.hi-v4-time-picker__input--fit-content .hi-v4-time-picker__input__wrapper {\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content; }\n.hi-v4-time-picker__input--size-sm {\n line-height: var(--hi-v4-height-sm, 24px);\n font-size: var(--hi-v4-text-size-sm, 0.75rem); }\n.hi-v4-time-picker__input--size-sm .hi-v4-time-picker__input__wrapper {\n height: var(--hi-v4-height-sm, 24px); }\n.hi-v4-time-picker__input--size-md {\n line-height: var(--hi-v4-height-normal, 32px);\n font-size: var(--hi-v4-text-size-normal, 0.875rem); }\n.hi-v4-time-picker__input--size-md .hi-v4-time-picker__input__wrapper {\n height: var(--hi-v4-height-normal, 32px); }\n.hi-v4-time-picker__input--size-lg {\n line-height: var(--hi-v4-height-lg, 40px);\n font-size: var(--hi-v4-text-size-lg, 1rem); }\n.hi-v4-time-picker__input--size-lg .hi-v4-time-picker__input__wrapper {\n height: var(--hi-v4-height-lg, 40px); }\n.hi-v4-time-picker__input__wrapper {\n width: 208px;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n position: relative;\n z-index: 0;\n height: 30px;\n line-height: 30px;\n padding: 0 12px; }\n.hi-v4-time-picker__input__shadow-text {\n display: inline-block;\n font-size: inherit;\n font-weight: inherit;\n font-family: inherit;\n color: transparent; }\n.hi-v4-time-picker__input__interact-area {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n width: 100%;\n padding: 0 12px;\n color: inherit;\n border: none;\n outline: none;\n height: 100%;\n font-size: inherit;\n background: transparent;\n font-weight: inherit;\n font-family: inherit;\n position: absolute;\n left: 0;\n top: 0; }\n.hi-v4-time-picker__input__interact-area:disabled {\n background: transparent; }\n.hi-v4-time-picker__input__interact-area::-webkit-input-placeholder {\n color: var(--hi-v4-color-gray-500, #929aa6); }\n.hi-v4-time-picker__input__interact-area::-moz-placeholder {\n color: var(--hi-v4-color-gray-500, #929aa6); }\n.hi-v4-time-picker__input__interact-area::-ms-input-placeholder {\n color: var(--hi-v4-color-gray-500, #929aa6); }\n.hi-v4-time-picker__input__interact-area:-ms-input-placeholder {\n color: var(--hi-v4-color-gray-500, #929aa6); }\n.hi-v4-time-picker__input__interact-area::placeholder {\n color: var(--hi-v4-color-gray-500, #929aa6); }\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n@use 'sass:map';\n.hi-v4-time-picker__pop-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n width: -webkit-fit-content;\n width: -moz-fit-content;\n width: fit-content;\n position: relative;\n -webkit-box-align: stretch;\n -ms-flex-align: stretch;\n align-items: stretch;\n min-width: 100%;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n.hi-v4-time-picker__pop-content__separator {\n width: 40px;\n border-left: 1px solid var(--hi-v4-color-gray-100, #f2f4f7);\n border-right: 1px solid var(--hi-v4-color-gray-100, #f2f4f7); }\n";
|
15
|
+
var css_248z = ".hi-v4-time-picker {width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;border-radius: 4px;-webkit-box-shadow: 0 0 0 2px transparent;box-shadow: 0 0 0 2px transparent; }.hi-v4-time-picker__input-wrapper {border: var(--hi-v4-border-size-normal, 1px solid) var(--hi-v4-color-static-transparent, transparent);border-radius: var(--hi-v4-border-radius-md, 4px);width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center; }.hi-v4-time-picker--appearance-line {position: relative;z-index: 0; }.hi-v4-time-picker--appearance-line .hi-v4-time-picker__input-wrapper {background: var(--hi-v4-color-static-white, #fff);border-color: var(--hi-v4-color-gray-300, #dfe2e8); }.hi-v4-time-picker--appearance-line:hover .hi-v4-time-picker__input-wrapper {border-color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa)); }.hi-v4-time-picker--appearance-filled {background: var(--hi-v4-color-gray-100, #f2f4f7); }.hi-v4-time-picker--appearance-filled:hover {background: var(--hi-v4-color-gray-200, #ebedf0); }.hi-v4-time-picker--appearance-unset:hover {background: var(--hi-v4-color-gray-100, #f2f4f7); }.hi-v4-time-picker--active {-webkit-box-shadow: 0 0 0 2px var(--hi-v4-color-primary-100, var(--hi-v4-color-brandblue-100, #bde2ff));box-shadow: 0 0 0 2px var(--hi-v4-color-primary-100, var(--hi-v4-color-brandblue-100, #bde2ff));background: transparent; }.hi-v4-time-picker--active .hi-v4-time-picker__input-wrapper {border-color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa)); }.hi-v4-time-picker--active:hover {background: transparent; }.hi-v4-time-picker--input-not-valid {-webkit-box-shadow: 0 0 0 2px var(--hi-v4-color-danger-100, var(--hi-v4-color-red-100, #ffd1c9));box-shadow: 0 0 0 2px var(--hi-v4-color-danger-100, var(--hi-v4-color-red-100, #ffd1c9)); }.hi-v4-time-picker--input-not-valid .hi-v4-time-picker__input-wrapper, .hi-v4-time-picker--input-not-valid .hi-v4-time-picker__input-wrapper:hover {border-color: var(--hi-v4-color-danger-500, var(--hi-v4-color-red-500, #ff5959)); }.hi-v4-time-picker__pop-function-buttons {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-pack: justify;-ms-flex-pack: justify;justify-content: space-between;padding: 6px 8px;border-top: 1px solid var(--hi-v4-color-gray-100, #f2f4f7);-webkit-box-align: center;-ms-flex-align: center;align-items: center;-ms-flex-wrap: wrap;flex-wrap: wrap;-webkit-box-orient: horizontal;-webkit-box-direction: reverse;-ms-flex-direction: row-reverse;flex-direction: row-reverse; }.hi-v4-time-picker__pop-function-buttons .hi-v4-time-picker__pop-now-btn {-webkit-margin-start: 0;margin-inline-start: 0;-webkit-margin-end: var(--hi-v4-spacing-6, 12px);margin-inline-end: var(--hi-v4-spacing-6, 12px); }.hi-v4-time-picker__function-button {margin-right: 8px;font-size: 14px;cursor: pointer;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;color: var(--hi-v4-color-gray-500, #929aa6); }.hi-v4-time-picker--disabled {cursor: not-allowed;background: #dfe2e8; }.hi-v4-time-picker--disabled .hi-v4-time-picker__input-wrapper {pointer-events: none;opacity: 0.3; }.hi-v4-time-picker__close-button:hover {color: #5f6a7a; }.hi-v4-time-picker__selector {cursor: pointer;position: relative;z-index: 0;width: 54px;color: #5f6a7a;display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center; }.hi-v4-time-picker__selector:hover .hi-v4-time-picker__selector__shortcut {opacity: 1; }.hi-v4-time-picker__selector--position-left {margin-right: 1px; }.hi-v4-time-picker__selector--position-left .hi-v4-time-picker__selector__item {border-radius: 4px 0 0 4px; }.hi-v4-time-picker__selector--position-right {margin-left: 1px; }.hi-v4-time-picker__selector--position-right .hi-v4-time-picker__selector__item {border-radius: 0 4px 4px 0; }.hi-v4-time-picker__selector--position-single .hi-v4-time-picker__selector__item {border-radius: 4px; }.hi-v4-time-picker__selector__item {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;font-size: 14px; }.hi-v4-time-picker__selector__item:hover {background: var(--hi-v4-color-gray-100, #f2f4f7); }.hi-v4-time-picker__selector__item.hi-v4-time-picker__selector__item--active {color: var(--hi-v4-color-primary-500, var(--hi-v4-color-brandblue-500, #237ffa)); }.hi-v4-time-picker__selector__item.hi-v4-time-picker__selector__item--disabled {opacity: 0.2;cursor: not-allowed;background: transparent; }.hi-v4-time-picker__selector__demarcate {margin: 2px 0;height: 32px; }.hi-v4-time-picker__selector__demarcate:first-of-type {margin-top: 0; }.hi-v4-time-picker__selector__demarcate:last-of-type {margin-bottom: 0; }.hi-v4-time-picker__selector__scroll-part {overflow-y: auto;-webkit-box-sizing: content-box;box-sizing: content-box;scroll-behavior: smooth;scrollbar-width: none;/* firefox */-ms-overflow-style: none;/* IE 10+ */padding: 100px 0;width: 100%;position: relative;z-index: 0; }.hi-v4-time-picker__selector__scroll-part::-webkit-scrollbar {display: none;/* Chrome Safari */ }.hi-v4-time-picker__selector__shortcut {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center;height: 12px;opacity: 0; }.hi-v4-time-picker__panel {padding: 4px 8px;-webkit-box-sizing: border-box;box-sizing: border-box;height: 100%; }.hi-v4-time-picker__panel__selector-container {display: -webkit-box;display: -ms-flexbox;display: flex;position: relative;z-index: 0;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center; }.hi-v4-time-picker__panel__selector-content {position: relative; }.hi-v4-time-picker__panel__indicator {position: absolute;top: 50%;-webkit-transform: translateY(-50%);transform: translateY(-50%);pointer-events: none;background: var(--hi-v4-color-primary-50, var(--hi-v4-color-brandblue-50, #e2f3fe));z-index: -1;width: 54px;height: 32px; }.hi-v4-time-picker__panel__indicator--left {border-top-left-radius: 4px;border-bottom-left-radius: 4px;left: 0; }.hi-v4-time-picker__panel__indicator--right {border-top-right-radius: 4px;border-bottom-right-radius: 4px;right: 0; }.hi-v4-time-picker__panel__indicator--middle {left: 0; }.hi-v4-time-picker__input {display: -webkit-box;display: -ms-flexbox;display: flex;-webkit-box-align: center;-ms-flex-align: center;align-items: center;width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;color: var(--hi-v4-color-gray-700, #1f2733); }.hi-v4-time-picker__input--disabled {color: var(--hi-v4-color-gray-400, #c9ced6); }.hi-v4-time-picker__input--not-valid {color: var(--hi-v4-color-danger-500, var(--hi-v4-color-red-500, #ff5959)); }.hi-v4-time-picker__input--range .hi-v4-time-picker__input__interact-area {text-align: left; }.hi-v4-time-picker__input--fit-content .hi-v4-time-picker__input__wrapper {width: -webkit-fit-content;width: -moz-fit-content;width: fit-content; }.hi-v4-time-picker__input--size-sm {line-height: var(--hi-v4-height-6, 24px);font-size: var(--hi-v4-text-size-sm, 0.75rem); }.hi-v4-time-picker__input--size-sm .hi-v4-time-picker__input__wrapper {height: var(--hi-v4-height-6, 24px); }.hi-v4-time-picker__input--size-md {line-height: var(--hi-v4-height-8, 32px);font-size: var(--hi-v4-text-size-md, 0.875rem); }.hi-v4-time-picker__input--size-md .hi-v4-time-picker__input__wrapper {height: var(--hi-v4-height-8, 32px); }.hi-v4-time-picker__input--size-lg {line-height: var(--hi-v4-height-10, 40px);font-size: var(--hi-v4-text-size-lg, 1rem); }.hi-v4-time-picker__input--size-lg .hi-v4-time-picker__input__wrapper {height: var(--hi-v4-height-10, 40px); }.hi-v4-time-picker__input__wrapper {width: 208px;-webkit-box-sizing: border-box;box-sizing: border-box;position: relative;z-index: 0;height: 30px;line-height: 30px;padding: 0 12px; }.hi-v4-time-picker__input__shadow-text {display: inline-block;font-size: inherit;font-weight: inherit;font-family: inherit;color: transparent; }.hi-v4-time-picker__input__interact-area {-webkit-box-sizing: border-box;box-sizing: border-box;width: 100%;padding: 0 12px;color: inherit;border: none;outline: none;height: 100%;font-size: inherit;background: transparent;font-weight: inherit;font-family: inherit;position: absolute;left: 0;top: 0; }.hi-v4-time-picker__input__interact-area:disabled {background: transparent; }.hi-v4-time-picker__input__interact-area::-webkit-input-placeholder {color: var(--hi-v4-color-gray-500, #929aa6); }.hi-v4-time-picker__input__interact-area::-moz-placeholder {color: var(--hi-v4-color-gray-500, #929aa6); }.hi-v4-time-picker__input__interact-area::-ms-input-placeholder {color: var(--hi-v4-color-gray-500, #929aa6); }.hi-v4-time-picker__input__interact-area:-ms-input-placeholder {color: var(--hi-v4-color-gray-500, #929aa6); }.hi-v4-time-picker__input__interact-area::placeholder {color: var(--hi-v4-color-gray-500, #929aa6); }.hi-v4-time-picker__pop-content {display: -webkit-box;display: -ms-flexbox;display: flex;width: -webkit-fit-content;width: -moz-fit-content;width: fit-content;position: relative;-webkit-box-align: stretch;-ms-flex-align: stretch;align-items: stretch;min-width: 100%;-webkit-box-pack: center;-ms-flex-pack: center;justify-content: center; }.hi-v4-time-picker__pop-content__separator {width: 1px;background-color: var(--hi-v4-color-gray-100, #f2f4f7);border-left: none;border-right: none; }";
|
16
16
|
|
17
|
-
var __styleInject__ = require('
|
17
|
+
var __styleInject__ = require('inject-head-style')["default"];
|
18
18
|
|
19
19
|
__styleInject__(css_248z);
|
20
20
|
|
21
21
|
exports["default"] = css_248z;
|
22
|
-
//# sourceMappingURL=index.scss.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -39,4 +39,3 @@ var analysisFormat = function analysisFormat(format) {
|
|
39
39
|
};
|
40
40
|
|
41
41
|
exports.analysisFormat = analysisFormat;
|
42
|
-
//# sourceMappingURL=analysisFormat.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -33,8 +33,8 @@ var disposeInputValue = function disposeInputValue(format, original) {
|
|
33
33
|
return rough.slice(0, rough.length - 1);
|
34
34
|
} // 字符串还有添加空间,则自动添加:在新字符前方
|
35
35
|
else {
|
36
|
-
|
37
|
-
|
36
|
+
return rough.slice(0, rough.length - 1) + ':' + rough.slice(rough.length - 1);
|
37
|
+
}
|
38
38
|
} // 在某个部分只输入了一个数字,然后输入 : 想要结束这个部分
|
39
39
|
|
40
40
|
|
@@ -46,12 +46,11 @@ var disposeInputValue = function disposeInputValue(format, original) {
|
|
46
46
|
} // 输入没有达到最大,则,此时输入 : 是有效的
|
47
47
|
// 自动补充此章节,添加 0
|
48
48
|
else {
|
49
|
-
|
50
|
-
|
49
|
+
return rough.slice(0, rough.length - 2) + '0' + rough.slice(rough.length - 2, rough.length);
|
50
|
+
}
|
51
51
|
}
|
52
52
|
|
53
53
|
return rough;
|
54
54
|
};
|
55
55
|
|
56
56
|
exports.disposeInputValue = disposeInputValue;
|
57
|
-
//# sourceMappingURL=disposeInputValue.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -55,4 +55,3 @@ var generateSelectorData = function generateSelectorData(info) {
|
|
55
55
|
};
|
56
56
|
|
57
57
|
exports.generateSelectorData = generateSelectorData;
|
58
|
-
//# sourceMappingURL=generateSelectorData.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -18,4 +18,3 @@ var getFormatDefault = function getFormatDefault(format) {
|
|
18
18
|
};
|
19
19
|
|
20
20
|
exports.getFormatDefault = getFormatDefault;
|
21
|
-
//# sourceMappingURL=getFormatDefault.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -29,4 +29,3 @@ var getNowString = function getNowString(formatString) {
|
|
29
29
|
};
|
30
30
|
|
31
31
|
exports.getNowString = getNowString;
|
32
|
-
//# sourceMappingURL=getNowString.js.map
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* @hi-ui/time-picker
|
3
3
|
* https://github.com/XiaoMi/hiui/tree/master/packages/ui/time-picker#readme
|
4
4
|
*
|
5
|
-
* Copyright (c)
|
5
|
+
* Copyright (c) HiUI <mi-hiui@xiaomi.com>.
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
@@ -32,4 +32,3 @@ var getRange = function getRange(min, max) {
|
|
32
32
|
};
|
33
33
|
|
34
34
|
exports.getRange = getRange;
|
35
|
-
//# sourceMappingURL=getRange.js.map
|