@lumx/react 4.14.0 → 4.15.0-alpha.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/index.d.ts +29 -16
- package/index.js +277 -254
- package/index.js.map +1 -1
- package/package.json +4 -3
package/index.d.ts
CHANGED
|
@@ -5275,27 +5275,18 @@ declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
|
5275
5275
|
* `SelectTextField`).
|
|
5276
5276
|
*/
|
|
5277
5277
|
type TimePickerFieldTranslations = Pick<SelectTextFieldTranslations, 'clearLabel' | 'showSuggestionsLabel'>;
|
|
5278
|
-
|
|
5279
|
-
/**
|
|
5280
|
-
* Inherited SelectTextField props (less the parts owned by TimePickerField).
|
|
5281
|
-
*/
|
|
5282
|
-
type InheritedSelectTextFieldProps = Omit<SingleSelectTextFieldProps<TimeOfDay>, 'value' | 'onChange' | 'listStatus' | 'translations' | 'options' | 'getOptionId' | 'getOptionName' | 'renderOption' | 'filter' | 'onBlur' | 'onSearch' | 'selectionType'>;
|
|
5283
5278
|
/**
|
|
5284
|
-
* `TimePickerField
|
|
5279
|
+
* Wrapper-level props shared by React and Vue `TimePickerField`.
|
|
5280
|
+
*
|
|
5281
|
+
* These represent the public API that framework wrappers expose to consumers
|
|
5282
|
+
* (as opposed to the core template props which use pre-computed `TimeOfDay` values).
|
|
5285
5283
|
*/
|
|
5286
|
-
interface
|
|
5284
|
+
interface TimePickerFieldWrapperProps {
|
|
5287
5285
|
/**
|
|
5288
5286
|
* Currently selected time. Only the time-of-day component is consumed; the
|
|
5289
|
-
* date part is preserved when emitting
|
|
5287
|
+
* date part is preserved when emitting change.
|
|
5290
5288
|
*/
|
|
5291
5289
|
value?: Date;
|
|
5292
|
-
/**
|
|
5293
|
-
* Change handler. Called with a new `Date` whose date part is inherited from
|
|
5294
|
-
* the previous `value` (or today, if none) and whose time-of-day matches the
|
|
5295
|
-
* user selection. May also be called with `undefined` when the field is
|
|
5296
|
-
* cleared.
|
|
5297
|
-
*/
|
|
5298
|
-
onChange(value: Date | undefined, name?: string, event?: SyntheticEvent): void;
|
|
5299
5290
|
/**
|
|
5300
5291
|
* BCP-47 locale string (e.g. `'en-US'`, `'fr-FR'`).
|
|
5301
5292
|
*/
|
|
@@ -5317,10 +5308,32 @@ interface TimePickerFieldProps extends HasClassName$1, HasTheme$1, InheritedSele
|
|
|
5317
5308
|
*/
|
|
5318
5309
|
maxTime?: Date;
|
|
5319
5310
|
/**
|
|
5320
|
-
* Translations label for clear and show suggestions buttons
|
|
5311
|
+
* Translations label for clear and show suggestions buttons.
|
|
5321
5312
|
*/
|
|
5322
5313
|
translations: TimePickerFieldTranslations;
|
|
5323
5314
|
}
|
|
5315
|
+
/**
|
|
5316
|
+
* `SelectTextField` props managed internally by the `TimePickerField` wrappers
|
|
5317
|
+
* (omitted from the inherited `SelectTextField` props in both React and Vue).
|
|
5318
|
+
*/
|
|
5319
|
+
type TimePickerFieldOwnedSelectProps = 'value' | 'listStatus' | 'translations' | 'options' | 'getOptionId' | 'getOptionName' | 'getOptionDescription' | 'getSectionId' | 'renderOption' | 'filter' | 'onBlur' | 'onSearch' | 'selectionType' | 'maxLength' | 'searchInputValue' | 'openOnFocus' | 'beforeOptions' | 'popoverProps';
|
|
5320
|
+
|
|
5321
|
+
/**
|
|
5322
|
+
* Inherited SelectTextField props (less the parts owned by TimePickerField).
|
|
5323
|
+
*/
|
|
5324
|
+
type InheritedSelectTextFieldProps = Omit<SingleSelectTextFieldProps<TimeOfDay>, TimePickerFieldOwnedSelectProps | 'onChange'>;
|
|
5325
|
+
/**
|
|
5326
|
+
* `TimePickerField` props.
|
|
5327
|
+
*/
|
|
5328
|
+
interface TimePickerFieldProps extends HasClassName$1, HasTheme$1, InheritedSelectTextFieldProps, TimePickerFieldWrapperProps {
|
|
5329
|
+
/**
|
|
5330
|
+
* Change handler. Called with a new `Date` whose date part is inherited from
|
|
5331
|
+
* the previous `value` (or today, if none) and whose time-of-day matches the
|
|
5332
|
+
* user selection. May also be called with `undefined` when the field is
|
|
5333
|
+
* cleared.
|
|
5334
|
+
*/
|
|
5335
|
+
onChange(value: Date | undefined, name?: string, event?: SyntheticEvent): void;
|
|
5336
|
+
}
|
|
5324
5337
|
/**
|
|
5325
5338
|
* A select-style picker for choosing a time of day. Wraps `SelectTextField`
|
|
5326
5339
|
* with a generated list of times built from `step`, `minTime`, and `maxTime`.
|