@instructure/ui-time-select 8.18.0 → 8.18.1-snapshot.2
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/LICENSE.md +27 -0
- package/es/TimeSelect/index.js +66 -50
- package/lib/TimeSelect/index.js +65 -49
- package/package.json +14 -13
package/LICENSE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: The MIT License (MIT)
|
|
3
|
+
category: Getting Started
|
|
4
|
+
order: 9
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# The MIT License (MIT)
|
|
8
|
+
|
|
9
|
+
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
+
|
|
11
|
+
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
+
in the Software without restriction, including without limitation the rights
|
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
+
furnished to do so, subject to the following conditions.**
|
|
17
|
+
|
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
|
19
|
+
copies or substantial portions of the Software.
|
|
20
|
+
|
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
+
SOFTWARE.
|
package/es/TimeSelect/index.js
CHANGED
|
@@ -60,10 +60,12 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
this.handleBlur = event => {
|
|
63
|
+
var _this$props$onBlur, _this$props;
|
|
64
|
+
|
|
63
65
|
this.setState({
|
|
64
66
|
highlightedOptionId: void 0
|
|
65
67
|
});
|
|
66
|
-
this.props.onBlur
|
|
68
|
+
(_this$props$onBlur = (_this$props = this.props).onBlur) === null || _this$props$onBlur === void 0 ? void 0 : _this$props$onBlur.call(_this$props, event);
|
|
67
69
|
};
|
|
68
70
|
|
|
69
71
|
this.handleInputChange = event => {
|
|
@@ -77,19 +79,25 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
77
79
|
});
|
|
78
80
|
|
|
79
81
|
if (!this.state.isShowingOptions) {
|
|
80
|
-
|
|
82
|
+
var _this$props$onShowOpt, _this$props2;
|
|
83
|
+
|
|
84
|
+
(_this$props$onShowOpt = (_this$props2 = this.props).onShowOptions) === null || _this$props$onShowOpt === void 0 ? void 0 : _this$props$onShowOpt.call(_this$props2, event);
|
|
81
85
|
}
|
|
82
86
|
};
|
|
83
87
|
|
|
84
88
|
this.handleShowOptions = event => {
|
|
89
|
+
var _this$props$onShowOpt2, _this$props3;
|
|
90
|
+
|
|
85
91
|
this.setState({
|
|
86
92
|
isShowingOptions: true,
|
|
87
93
|
highlightedOptionId: this.state.selectedOptionId
|
|
88
94
|
});
|
|
89
|
-
this.props.onShowOptions
|
|
95
|
+
(_this$props$onShowOpt2 = (_this$props3 = this.props).onShowOptions) === null || _this$props$onShowOpt2 === void 0 ? void 0 : _this$props$onShowOpt2.call(_this$props3, event);
|
|
90
96
|
};
|
|
91
97
|
|
|
92
98
|
this.handleHideOptions = event => {
|
|
99
|
+
var _this$props$onHideOpt, _this$props4;
|
|
100
|
+
|
|
93
101
|
const selectedOptionId = this.state.selectedOptionId;
|
|
94
102
|
const option = this.getOption('id', selectedOptionId);
|
|
95
103
|
let prevValue = '';
|
|
@@ -106,7 +114,7 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
106
114
|
filteredOptions: this.filterOptions(''),
|
|
107
115
|
...this.matchValue()
|
|
108
116
|
}));
|
|
109
|
-
this.props.onHideOptions
|
|
117
|
+
(_this$props$onHideOpt = (_this$props4 = this.props).onHideOptions) === null || _this$props$onHideOpt === void 0 ? void 0 : _this$props$onHideOpt.call(_this$props4, event);
|
|
110
118
|
};
|
|
111
119
|
|
|
112
120
|
this.handleHighlightOption = (event, _ref) => {
|
|
@@ -121,6 +129,8 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
121
129
|
};
|
|
122
130
|
|
|
123
131
|
this.handleSelectOption = (event, _ref2) => {
|
|
132
|
+
var _this$props$onHideOpt2, _this$props6;
|
|
133
|
+
|
|
124
134
|
let id = _ref2.id;
|
|
125
135
|
|
|
126
136
|
if (id === this._emptyOptionId) {
|
|
@@ -152,13 +162,15 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
152
162
|
}
|
|
153
163
|
|
|
154
164
|
if (id !== this.state.selectedOptionId) {
|
|
155
|
-
|
|
165
|
+
var _this$props$onChange, _this$props5;
|
|
166
|
+
|
|
167
|
+
(_this$props$onChange = (_this$props5 = this.props).onChange) === null || _this$props$onChange === void 0 ? void 0 : _this$props$onChange.call(_this$props5, event, {
|
|
156
168
|
value: option.value,
|
|
157
169
|
inputText: newInputValue
|
|
158
170
|
});
|
|
159
171
|
}
|
|
160
172
|
|
|
161
|
-
this.props.onHideOptions
|
|
173
|
+
(_this$props$onHideOpt2 = (_this$props6 = this.props).onHideOptions) === null || _this$props$onHideOpt2 === void 0 ? void 0 : _this$props$onHideOpt2.call(_this$props6, event);
|
|
162
174
|
};
|
|
163
175
|
|
|
164
176
|
this.state = this.getInitialState();
|
|
@@ -171,7 +183,9 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
171
183
|
}
|
|
172
184
|
|
|
173
185
|
focus() {
|
|
174
|
-
|
|
186
|
+
var _this$ref;
|
|
187
|
+
|
|
188
|
+
(_this$ref = this.ref) === null || _this$ref === void 0 ? void 0 : _this$ref.focus();
|
|
175
189
|
}
|
|
176
190
|
|
|
177
191
|
get _select() {
|
|
@@ -254,11 +268,11 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
254
268
|
}
|
|
255
269
|
|
|
256
270
|
getInitialOption(options) {
|
|
257
|
-
const _this$
|
|
258
|
-
value = _this$
|
|
259
|
-
defaultValue = _this$
|
|
260
|
-
defaultToFirstOption = _this$
|
|
261
|
-
format = _this$
|
|
271
|
+
const _this$props7 = this.props,
|
|
272
|
+
value = _this$props7.value,
|
|
273
|
+
defaultValue = _this$props7.defaultValue,
|
|
274
|
+
defaultToFirstOption = _this$props7.defaultToFirstOption,
|
|
275
|
+
format = _this$props7.format;
|
|
262
276
|
const initialValue = value || defaultValue;
|
|
263
277
|
|
|
264
278
|
if (typeof initialValue === 'string') {
|
|
@@ -332,15 +346,17 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
332
346
|
}
|
|
333
347
|
|
|
334
348
|
filterOptions(inputValue) {
|
|
335
|
-
|
|
349
|
+
var _this$state;
|
|
350
|
+
|
|
351
|
+
return (_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.options.filter(option => option.label.toLowerCase().startsWith(inputValue.toLowerCase()));
|
|
336
352
|
}
|
|
337
353
|
|
|
338
354
|
matchValue() {
|
|
339
|
-
const _this$
|
|
340
|
-
inputValue = _this$
|
|
341
|
-
filteredOptions = _this$
|
|
342
|
-
highlightedOptionId = _this$
|
|
343
|
-
selectedOptionId = _this$
|
|
355
|
+
const _this$state2 = this.state,
|
|
356
|
+
inputValue = _this$state2.inputValue,
|
|
357
|
+
filteredOptions = _this$state2.filteredOptions,
|
|
358
|
+
highlightedOptionId = _this$state2.highlightedOptionId,
|
|
359
|
+
selectedOptionId = _this$state2.selectedOptionId; // an option matching user input exists
|
|
344
360
|
|
|
345
361
|
if (filteredOptions.length === 1) {
|
|
346
362
|
const onlyOption = filteredOptions[0]; // automatically select the matching option
|
|
@@ -385,10 +401,10 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
385
401
|
}
|
|
386
402
|
|
|
387
403
|
renderOptions() {
|
|
388
|
-
const _this$
|
|
389
|
-
filteredOptions = _this$
|
|
390
|
-
highlightedOptionId = _this$
|
|
391
|
-
selectedOptionId = _this$
|
|
404
|
+
const _this$state3 = this.state,
|
|
405
|
+
filteredOptions = _this$state3.filteredOptions,
|
|
406
|
+
highlightedOptionId = _this$state3.highlightedOptionId,
|
|
407
|
+
selectedOptionId = _this$state3.selectedOptionId;
|
|
392
408
|
|
|
393
409
|
if (filteredOptions.length < 1) {
|
|
394
410
|
return this.renderEmptyOption();
|
|
@@ -415,34 +431,34 @@ let TimeSelect = (_dec = withDeterministicId(), _dec2 = testable(), _dec(_class
|
|
|
415
431
|
}
|
|
416
432
|
|
|
417
433
|
render() {
|
|
418
|
-
const _this$
|
|
419
|
-
value = _this$
|
|
420
|
-
defaultValue = _this$
|
|
421
|
-
placeholder = _this$
|
|
422
|
-
renderLabel = _this$
|
|
423
|
-
inputRef = _this$
|
|
424
|
-
id = _this$
|
|
425
|
-
listRef = _this$
|
|
426
|
-
renderBeforeInput = _this$
|
|
427
|
-
renderAfterInput = _this$
|
|
428
|
-
isRequired = _this$
|
|
429
|
-
isInline = _this$
|
|
430
|
-
width = _this$
|
|
431
|
-
format = _this$
|
|
432
|
-
step = _this$
|
|
433
|
-
optionsMaxWidth = _this$
|
|
434
|
-
visibleOptionsCount = _this$
|
|
435
|
-
messages = _this$
|
|
436
|
-
placement = _this$
|
|
437
|
-
constrain = _this$
|
|
438
|
-
onFocus = _this$
|
|
439
|
-
onShowOptions = _this$
|
|
440
|
-
onHideOptions = _this$
|
|
441
|
-
rest = _objectWithoutProperties(_this$
|
|
442
|
-
|
|
443
|
-
const _this$
|
|
444
|
-
inputValue = _this$
|
|
445
|
-
isShowingOptions = _this$
|
|
434
|
+
const _this$props8 = this.props,
|
|
435
|
+
value = _this$props8.value,
|
|
436
|
+
defaultValue = _this$props8.defaultValue,
|
|
437
|
+
placeholder = _this$props8.placeholder,
|
|
438
|
+
renderLabel = _this$props8.renderLabel,
|
|
439
|
+
inputRef = _this$props8.inputRef,
|
|
440
|
+
id = _this$props8.id,
|
|
441
|
+
listRef = _this$props8.listRef,
|
|
442
|
+
renderBeforeInput = _this$props8.renderBeforeInput,
|
|
443
|
+
renderAfterInput = _this$props8.renderAfterInput,
|
|
444
|
+
isRequired = _this$props8.isRequired,
|
|
445
|
+
isInline = _this$props8.isInline,
|
|
446
|
+
width = _this$props8.width,
|
|
447
|
+
format = _this$props8.format,
|
|
448
|
+
step = _this$props8.step,
|
|
449
|
+
optionsMaxWidth = _this$props8.optionsMaxWidth,
|
|
450
|
+
visibleOptionsCount = _this$props8.visibleOptionsCount,
|
|
451
|
+
messages = _this$props8.messages,
|
|
452
|
+
placement = _this$props8.placement,
|
|
453
|
+
constrain = _this$props8.constrain,
|
|
454
|
+
onFocus = _this$props8.onFocus,
|
|
455
|
+
onShowOptions = _this$props8.onShowOptions,
|
|
456
|
+
onHideOptions = _this$props8.onHideOptions,
|
|
457
|
+
rest = _objectWithoutProperties(_this$props8, _excluded);
|
|
458
|
+
|
|
459
|
+
const _this$state4 = this.state,
|
|
460
|
+
inputValue = _this$state4.inputValue,
|
|
461
|
+
isShowingOptions = _this$state4.isShowingOptions;
|
|
446
462
|
return /*#__PURE__*/React.createElement(Select, Object.assign({
|
|
447
463
|
renderLabel: renderLabel,
|
|
448
464
|
inputValue: inputValue,
|
package/lib/TimeSelect/index.js
CHANGED
|
@@ -64,10 +64,12 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
this.handleBlur = event => {
|
|
67
|
+
var _this$props$onBlur, _this$props;
|
|
68
|
+
|
|
67
69
|
this.setState({
|
|
68
70
|
highlightedOptionId: void 0
|
|
69
71
|
});
|
|
70
|
-
this.props.onBlur
|
|
72
|
+
(_this$props$onBlur = (_this$props = this.props).onBlur) === null || _this$props$onBlur === void 0 ? void 0 : _this$props$onBlur.call(_this$props, event);
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
this.handleInputChange = event => {
|
|
@@ -81,19 +83,25 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
81
83
|
});
|
|
82
84
|
|
|
83
85
|
if (!this.state.isShowingOptions) {
|
|
84
|
-
|
|
86
|
+
var _this$props$onShowOpt, _this$props2;
|
|
87
|
+
|
|
88
|
+
(_this$props$onShowOpt = (_this$props2 = this.props).onShowOptions) === null || _this$props$onShowOpt === void 0 ? void 0 : _this$props$onShowOpt.call(_this$props2, event);
|
|
85
89
|
}
|
|
86
90
|
};
|
|
87
91
|
|
|
88
92
|
this.handleShowOptions = event => {
|
|
93
|
+
var _this$props$onShowOpt2, _this$props3;
|
|
94
|
+
|
|
89
95
|
this.setState({
|
|
90
96
|
isShowingOptions: true,
|
|
91
97
|
highlightedOptionId: this.state.selectedOptionId
|
|
92
98
|
});
|
|
93
|
-
this.props.onShowOptions
|
|
99
|
+
(_this$props$onShowOpt2 = (_this$props3 = this.props).onShowOptions) === null || _this$props$onShowOpt2 === void 0 ? void 0 : _this$props$onShowOpt2.call(_this$props3, event);
|
|
94
100
|
};
|
|
95
101
|
|
|
96
102
|
this.handleHideOptions = event => {
|
|
103
|
+
var _this$props$onHideOpt, _this$props4;
|
|
104
|
+
|
|
97
105
|
const selectedOptionId = this.state.selectedOptionId;
|
|
98
106
|
const option = this.getOption('id', selectedOptionId);
|
|
99
107
|
let prevValue = '';
|
|
@@ -111,7 +119,7 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
111
119
|
filteredOptions: this.filterOptions(''),
|
|
112
120
|
...this.matchValue()
|
|
113
121
|
}));
|
|
114
|
-
this.props.onHideOptions
|
|
122
|
+
(_this$props$onHideOpt = (_this$props4 = this.props).onHideOptions) === null || _this$props$onHideOpt === void 0 ? void 0 : _this$props$onHideOpt.call(_this$props4, event);
|
|
115
123
|
};
|
|
116
124
|
|
|
117
125
|
this.handleHighlightOption = (event, _ref) => {
|
|
@@ -126,6 +134,8 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
126
134
|
};
|
|
127
135
|
|
|
128
136
|
this.handleSelectOption = (event, _ref2) => {
|
|
137
|
+
var _this$props$onHideOpt2, _this$props6;
|
|
138
|
+
|
|
129
139
|
let id = _ref2.id;
|
|
130
140
|
|
|
131
141
|
if (id === this._emptyOptionId) {
|
|
@@ -157,13 +167,15 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
157
167
|
}
|
|
158
168
|
|
|
159
169
|
if (id !== this.state.selectedOptionId) {
|
|
160
|
-
|
|
170
|
+
var _this$props$onChange, _this$props5;
|
|
171
|
+
|
|
172
|
+
(_this$props$onChange = (_this$props5 = this.props).onChange) === null || _this$props$onChange === void 0 ? void 0 : _this$props$onChange.call(_this$props5, event, {
|
|
161
173
|
value: option.value,
|
|
162
174
|
inputText: newInputValue
|
|
163
175
|
});
|
|
164
176
|
}
|
|
165
177
|
|
|
166
|
-
this.props.onHideOptions
|
|
178
|
+
(_this$props$onHideOpt2 = (_this$props6 = this.props).onHideOptions) === null || _this$props$onHideOpt2 === void 0 ? void 0 : _this$props$onHideOpt2.call(_this$props6, event);
|
|
167
179
|
};
|
|
168
180
|
|
|
169
181
|
this.state = this.getInitialState();
|
|
@@ -176,7 +188,9 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
176
188
|
}
|
|
177
189
|
|
|
178
190
|
focus() {
|
|
179
|
-
|
|
191
|
+
var _this$ref;
|
|
192
|
+
|
|
193
|
+
(_this$ref = this.ref) === null || _this$ref === void 0 ? void 0 : _this$ref.focus();
|
|
180
194
|
}
|
|
181
195
|
|
|
182
196
|
get _select() {
|
|
@@ -259,11 +273,11 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
259
273
|
}
|
|
260
274
|
|
|
261
275
|
getInitialOption(options) {
|
|
262
|
-
const _this$
|
|
263
|
-
value = _this$
|
|
264
|
-
defaultValue = _this$
|
|
265
|
-
defaultToFirstOption = _this$
|
|
266
|
-
format = _this$
|
|
276
|
+
const _this$props7 = this.props,
|
|
277
|
+
value = _this$props7.value,
|
|
278
|
+
defaultValue = _this$props7.defaultValue,
|
|
279
|
+
defaultToFirstOption = _this$props7.defaultToFirstOption,
|
|
280
|
+
format = _this$props7.format;
|
|
267
281
|
const initialValue = value || defaultValue;
|
|
268
282
|
|
|
269
283
|
if (typeof initialValue === 'string') {
|
|
@@ -338,15 +352,17 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
338
352
|
}
|
|
339
353
|
|
|
340
354
|
filterOptions(inputValue) {
|
|
341
|
-
|
|
355
|
+
var _this$state;
|
|
356
|
+
|
|
357
|
+
return (_this$state = this.state) === null || _this$state === void 0 ? void 0 : _this$state.options.filter(option => option.label.toLowerCase().startsWith(inputValue.toLowerCase()));
|
|
342
358
|
}
|
|
343
359
|
|
|
344
360
|
matchValue() {
|
|
345
|
-
const _this$
|
|
346
|
-
inputValue = _this$
|
|
347
|
-
filteredOptions = _this$
|
|
348
|
-
highlightedOptionId = _this$
|
|
349
|
-
selectedOptionId = _this$
|
|
361
|
+
const _this$state2 = this.state,
|
|
362
|
+
inputValue = _this$state2.inputValue,
|
|
363
|
+
filteredOptions = _this$state2.filteredOptions,
|
|
364
|
+
highlightedOptionId = _this$state2.highlightedOptionId,
|
|
365
|
+
selectedOptionId = _this$state2.selectedOptionId; // an option matching user input exists
|
|
350
366
|
|
|
351
367
|
if (filteredOptions.length === 1) {
|
|
352
368
|
const onlyOption = filteredOptions[0]; // automatically select the matching option
|
|
@@ -391,10 +407,10 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
391
407
|
}
|
|
392
408
|
|
|
393
409
|
renderOptions() {
|
|
394
|
-
const _this$
|
|
395
|
-
filteredOptions = _this$
|
|
396
|
-
highlightedOptionId = _this$
|
|
397
|
-
selectedOptionId = _this$
|
|
410
|
+
const _this$state3 = this.state,
|
|
411
|
+
filteredOptions = _this$state3.filteredOptions,
|
|
412
|
+
highlightedOptionId = _this$state3.highlightedOptionId,
|
|
413
|
+
selectedOptionId = _this$state3.selectedOptionId;
|
|
398
414
|
|
|
399
415
|
if (filteredOptions.length < 1) {
|
|
400
416
|
return this.renderEmptyOption();
|
|
@@ -421,33 +437,33 @@ let TimeSelect = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2
|
|
|
421
437
|
}
|
|
422
438
|
|
|
423
439
|
render() {
|
|
424
|
-
const _this$
|
|
425
|
-
value = _this$
|
|
426
|
-
defaultValue = _this$
|
|
427
|
-
placeholder = _this$
|
|
428
|
-
renderLabel = _this$
|
|
429
|
-
inputRef = _this$
|
|
430
|
-
id = _this$
|
|
431
|
-
listRef = _this$
|
|
432
|
-
renderBeforeInput = _this$
|
|
433
|
-
renderAfterInput = _this$
|
|
434
|
-
isRequired = _this$
|
|
435
|
-
isInline = _this$
|
|
436
|
-
width = _this$
|
|
437
|
-
format = _this$
|
|
438
|
-
step = _this$
|
|
439
|
-
optionsMaxWidth = _this$
|
|
440
|
-
visibleOptionsCount = _this$
|
|
441
|
-
messages = _this$
|
|
442
|
-
placement = _this$
|
|
443
|
-
constrain = _this$
|
|
444
|
-
onFocus = _this$
|
|
445
|
-
onShowOptions = _this$
|
|
446
|
-
onHideOptions = _this$
|
|
447
|
-
rest = (0, _objectWithoutProperties2.default)(_this$
|
|
448
|
-
const _this$
|
|
449
|
-
inputValue = _this$
|
|
450
|
-
isShowingOptions = _this$
|
|
440
|
+
const _this$props8 = this.props,
|
|
441
|
+
value = _this$props8.value,
|
|
442
|
+
defaultValue = _this$props8.defaultValue,
|
|
443
|
+
placeholder = _this$props8.placeholder,
|
|
444
|
+
renderLabel = _this$props8.renderLabel,
|
|
445
|
+
inputRef = _this$props8.inputRef,
|
|
446
|
+
id = _this$props8.id,
|
|
447
|
+
listRef = _this$props8.listRef,
|
|
448
|
+
renderBeforeInput = _this$props8.renderBeforeInput,
|
|
449
|
+
renderAfterInput = _this$props8.renderAfterInput,
|
|
450
|
+
isRequired = _this$props8.isRequired,
|
|
451
|
+
isInline = _this$props8.isInline,
|
|
452
|
+
width = _this$props8.width,
|
|
453
|
+
format = _this$props8.format,
|
|
454
|
+
step = _this$props8.step,
|
|
455
|
+
optionsMaxWidth = _this$props8.optionsMaxWidth,
|
|
456
|
+
visibleOptionsCount = _this$props8.visibleOptionsCount,
|
|
457
|
+
messages = _this$props8.messages,
|
|
458
|
+
placement = _this$props8.placement,
|
|
459
|
+
constrain = _this$props8.constrain,
|
|
460
|
+
onFocus = _this$props8.onFocus,
|
|
461
|
+
onShowOptions = _this$props8.onShowOptions,
|
|
462
|
+
onHideOptions = _this$props8.onHideOptions,
|
|
463
|
+
rest = (0, _objectWithoutProperties2.default)(_this$props8, _excluded);
|
|
464
|
+
const _this$state4 = this.state,
|
|
465
|
+
inputValue = _this$state4.inputValue,
|
|
466
|
+
isShowingOptions = _this$state4.isShowingOptions;
|
|
451
467
|
return /*#__PURE__*/_react.default.createElement(_Select.Select, Object.assign({
|
|
452
468
|
renderLabel: renderLabel,
|
|
453
469
|
inputValue: inputValue,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-time-select",
|
|
3
|
-
"version": "8.18.
|
|
3
|
+
"version": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
4
4
|
"description": "A component for selecting time values.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,20 +24,20 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.13.10",
|
|
27
|
-
"@instructure/shared-types": "8.18.
|
|
28
|
-
"@instructure/ui-form-field": "8.18.
|
|
29
|
-
"@instructure/ui-i18n": "8.18.
|
|
30
|
-
"@instructure/ui-position": "8.18.
|
|
31
|
-
"@instructure/ui-prop-types": "8.18.
|
|
32
|
-
"@instructure/ui-react-utils": "8.18.
|
|
33
|
-
"@instructure/ui-select": "8.18.
|
|
34
|
-
"@instructure/ui-test-locator": "8.18.
|
|
35
|
-
"@instructure/ui-testable": "8.18.
|
|
27
|
+
"@instructure/shared-types": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
28
|
+
"@instructure/ui-form-field": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
29
|
+
"@instructure/ui-i18n": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
30
|
+
"@instructure/ui-position": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
31
|
+
"@instructure/ui-prop-types": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
32
|
+
"@instructure/ui-react-utils": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
33
|
+
"@instructure/ui-select": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
34
|
+
"@instructure/ui-test-locator": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
35
|
+
"@instructure/ui-testable": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
36
36
|
"prop-types": "^15"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-babel-preset": "8.18.
|
|
40
|
-
"@instructure/ui-test-utils": "8.18.
|
|
39
|
+
"@instructure/ui-babel-preset": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
40
|
+
"@instructure/ui-test-utils": "8.18.1-snapshot.2+ca4c1ff9d",
|
|
41
41
|
"moment-timezone": "^0.5.33"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -46,5 +46,6 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"sideEffects": false
|
|
49
|
+
"sideEffects": false,
|
|
50
|
+
"gitHead": "ca4c1ff9d3985151ae0758fb596de41652dbb58b"
|
|
50
51
|
}
|