-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: fiori
types
folder to TypeScript (#6076)
- Changed types folder content from .js to .ts; - Changed fcl-utils folder from .js to .ts
- Loading branch information
Showing
25 changed files
with
482 additions
and
737 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/** | ||
* @class | ||
* @enum {string} | ||
* @public | ||
* @author SAP SE | ||
* @alias sap.ui.webcomponents.fiori.types.BarDesign | ||
*/ | ||
enum BarDesign { | ||
/** | ||
* Default type | ||
* @public | ||
* @type {Header} | ||
*/ | ||
Header = "Header", | ||
|
||
/** | ||
* Subheader type | ||
* @public | ||
* @type {Subheader} | ||
*/ | ||
Subheader = "Subheader", | ||
|
||
/** | ||
* Footer type | ||
* @public | ||
* @type {Footer} | ||
*/ | ||
Footer = "Footer", | ||
|
||
/** | ||
* Floating Footer type - there is visible border on all sides | ||
* @public | ||
* @type {FloatingFooter} | ||
*/ | ||
FloatingFooter = "FloatingFooter", | ||
} | ||
|
||
export default BarDesign; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/** | ||
* Different types of FCLLayout. | ||
* | ||
* @class | ||
* @enum {string} | ||
* @public | ||
* @author SAP SE | ||
* @alias sap.ui.webcomponents.fiori.types.FCLLayout | ||
*/ | ||
enum FCLLayout { | ||
/** | ||
* The layout will display 1 column. | ||
* @public | ||
* @type {OneColumn} | ||
*/ | ||
OneColumn = "OneColumn", | ||
|
||
/** | ||
* | ||
* Desktop: 67 - 33 - -- Start (expanded) and Mid columns are displayed | ||
* Tablet: 67 - 33 - -- Start (expanded) and Mid columns are displayed | ||
* Phone: -- 100 -- only the Mid column is displayed | ||
* | ||
* Use to display both a list and a detail page when the user should focus on the list page. | ||
* | ||
* @type {TwoColumnsStartExpanded} | ||
* @public | ||
*/ | ||
TwoColumnsStartExpanded = "TwoColumnsStartExpanded", | ||
|
||
/** | ||
* Desktop: 33 - 67 - -- Start and Mid (expanded) columns are displayed | ||
* Tablet: 33 - 67 - -- Start and Mid (expanded) columns are displayed | ||
* Phone: -- 100 -- only the Mid column is displayed | ||
* | ||
* Use to display both a list and a detail page when the user should focus on the detail page. | ||
* | ||
* @type {TwoColumnsMidExpanded} | ||
* @public | ||
*/ | ||
TwoColumnsMidExpanded = "TwoColumnsMidExpanded", | ||
|
||
/** | ||
* Desktop: 25 - 50 - 25 Start, Mid (expanded) and End columns are displayed | ||
* Tablet: 0 - 67 - 33 Mid (expanded) and End columns are displayed, Start is accessible by a layout arrow | ||
* Phone: -- -- 100 only the End column is displayed | ||
* | ||
* Use to display all three pages (list, detail, detail-detail) when the user should focus on the detail. | ||
* | ||
* @type {ThreeColumnsMidExpanded} | ||
* @public | ||
*/ | ||
ThreeColumnsMidExpanded = "ThreeColumnsMidExpanded", | ||
|
||
/** | ||
* Desktop: 25 - 25 - 50 Start, Mid and End (expanded) columns are displayed | ||
* Tablet: 0 - 33 - 67 Mid and End (expanded) columns are displayed, Start is accessible by layout arrows | ||
* Phone: -- -- 100 (only the End column is displayed) | ||
* | ||
* Use to display all three pages (list, detail, detail-detail) when the user should focus on the detail-detail. | ||
* | ||
* @public | ||
* @type ThreeColumnsEndExpanded | ||
*/ | ||
ThreeColumnsEndExpanded = "ThreeColumnsEndExpanded", | ||
|
||
/** | ||
* Desktop: 67 - 33 - 0 Start (expanded) and Mid columns are displayed, End is accessible by layout arrows | ||
* Tablet: 67 - 33 - 0 Start (expanded) and Mid columns are displayed, End is accessible by layout arrows | ||
* Phone: -- -- 100 only the End column is displayed | ||
* | ||
* Use to display the list and detail pages when the user should focus on the list. | ||
* The detail-detail is still loaded and easily accessible with layout arrows. | ||
* | ||
* @public | ||
* @type ThreeColumnsStartExpandedEndHidden | ||
*/ | ||
ThreeColumnsStartExpandedEndHidden = "ThreeColumnsStartExpandedEndHidden", | ||
|
||
/** | ||
* Desktop: 33 - 67 - 0 Start and Mid (expanded) columns are displayed, End is accessible by a layout arrow | ||
* Tablet: 33 - 67 - 0 Start and Mid (expanded) columns are displayed, End is accessible by a layout arrow | ||
* Phone: -- -- 100 only the End column is displayed | ||
* | ||
* Use to display the list and detail pages when the user should focus on the detail. | ||
* The detail-detail is still loaded and easily accessible with a layout arrow. | ||
* | ||
* @public | ||
* @type ThreeColumnsMidExpandedEndHidden | ||
*/ | ||
ThreeColumnsMidExpandedEndHidden = "ThreeColumnsMidExpandedEndHidden", | ||
|
||
/** | ||
* Desktop: -- 100 -- only the Mid column is displayed | ||
* Tablet: -- 100 -- only the Mid column is displayed | ||
* Phone: -- 100 -- only the Mid column is displayed | ||
* | ||
* Use to display a detail page only, when the user should focus entirely on it. | ||
* | ||
* @public | ||
* @type MidColumnFullScreen | ||
*/ | ||
MidColumnFullScreen = "MidColumnFullScreen", | ||
|
||
/** | ||
* Desktop: -- -- 100 only the End column is displayed | ||
* Tablet: -- -- 100 only the End column is displayed | ||
* Phone: -- -- 100 only the End column is displayed | ||
* | ||
* Use to display a detail-detail page only, when the user should focus entirely on it. | ||
* | ||
* @public | ||
* @type EndColumnFullScreen | ||
*/ | ||
EndColumnFullScreen = "EndColumnFullScreen", | ||
} | ||
|
||
export default FCLLayout; |
Oops, something went wrong.