Skip to content

Commit

Permalink
TextEditor: add labelMode value - "outside" (#25757)
Browse files Browse the repository at this point in the history
Co-authored-by: Alexander Bulychev <[email protected]>
  • Loading branch information
iBat and Alexander Bulychev authored Oct 6, 2023
1 parent ebbe632 commit 12758b7
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 15 deletions.
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ class Autocomplete extends BaseComponent<React.PropsWithChildren<IAutocompleteOp
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
maxItemCount: PropTypes.number,
maxLength: PropTypes.oneOfType([
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/color-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ class ColorBox extends BaseComponent<React.PropsWithChildren<IColorBoxOptions>>
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
name: PropTypes.string,
onChange: PropTypes.func,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/date-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ class DateBox extends BaseComponent<React.PropsWithChildren<IDateBoxOptions>> {
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
maxLength: PropTypes.oneOfType([
PropTypes.number,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/date-range-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ class DateRangeBox extends BaseComponent<React.PropsWithChildren<IDateRangeBoxOp
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
multiView: PropTypes.bool,
onChange: PropTypes.func,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/drop-down-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ class DropDownBox extends BaseComponent<React.PropsWithChildren<IDropDownBoxOpti
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
maxLength: PropTypes.oneOfType([
PropTypes.number,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-react/src/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ type ISearchEditorOptionsProps = React.PropsWithChildren<{
isDirty?: boolean;
isValid?: boolean;
label?: string;
labelMode?: "static" | "floating" | "hidden";
labelMode?: "static" | "floating" | "hidden" | "outside";
mask?: string;
maskChar?: string;
maskInvalidMessage?: string;
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/lookup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ class Lookup extends BaseComponent<React.PropsWithChildren<ILookupOptions>> {
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
minSearchLength: PropTypes.number,
name: PropTypes.string,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/number-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ class NumberBox extends BaseComponent<React.PropsWithChildren<INumberBoxOptions>
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
max: PropTypes.number,
min: PropTypes.number,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/select-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ class SelectBox extends BaseComponent<React.PropsWithChildren<ISelectBoxOptions>
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
maxLength: PropTypes.oneOfType([
PropTypes.number,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/tag-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class TagBox extends BaseComponent<React.PropsWithChildren<ITagBoxOptions>> {
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
maxDisplayedTags: PropTypes.number,
maxFilterQueryLength: PropTypes.number,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/text-area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ class TextArea extends BaseComponent<React.PropsWithChildren<ITextAreaOptions>>
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
maxHeight: PropTypes.oneOfType([
PropTypes.number,
Expand Down
3 changes: 2 additions & 1 deletion packages/devextreme-react/src/text-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ class TextBox extends BaseComponent<React.PropsWithChildren<ITextBoxOptions>> {
PropTypes.oneOf([
"static",
"floating",
"hidden"])
"hidden",
"outside"])
]),
mask: PropTypes.string,
maskChar: PropTypes.string,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-react/src/tree-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ type ISearchEditorOptionsProps = React.PropsWithChildren<{
isDirty?: boolean;
isValid?: boolean;
label?: string;
labelMode?: "static" | "floating" | "hidden";
labelMode?: "static" | "floating" | "hidden" | "outside";
mask?: string;
maskChar?: string;
maskInvalidMessage?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/js/common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export type HorizontalEdge = 'left' | 'right';
* @public
* @namespace DevExpress.common
*/
export type LabelMode = 'static' | 'floating' | 'hidden';
export type LabelMode = 'static' | 'floating' | 'hidden' | 'outside';

/**
* @public
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme/ts/dx.all.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ declare module DevExpress.common {
export function isLoadResultObject<TItem>(
res: LoadResult<TItem>
): res is LoadResultObject<TItem>;
export type LabelMode = 'static' | 'floating' | 'hidden';
export type LabelMode = 'static' | 'floating' | 'hidden' | 'outside';
/**
* [descr:LoadResult]
*/
Expand Down

0 comments on commit 12758b7

Please sign in to comment.