Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/main/src/themes/CheckBox.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "./InvisibleTextStyles.css";
@import "./TapHighlightColor.css";
@import "./FormComponents.css";

:host(:not([hidden])) {
display: inline-block;
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/themes/DatePicker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import "./InvisibleTextStyles.css";
@import "./InputIcon.css";
@import "./InputSharedStyles.css";
@import "./FormComponents.css";

:host(:not([hidden])) {
display: inline-block;
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/themes/RadioButton.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "./InvisibleTextStyles.css";
@import "./FormComponents.css";

:host(:not([hidden])) {
display: inline-block;
Expand Down
2 changes: 2 additions & 0 deletions packages/main/src/themes/RatingIndicator.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "./FormComponents.css";

:host(:not([hidden])) {
display: inline-block;
font-size: 24px;
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/themes/SliderBase.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import "./InvisibleTextStyles.css";
@import "./FormComponents.css";

:host([disabled]) {
opacity: var(--_ui5_slider_disabled_opacity);
Expand All @@ -9,7 +10,6 @@
:host {
box-sizing: border-box;
cursor: pointer;
vertical-align: top;
width: 100%;
}

Expand Down
1 change: 0 additions & 1 deletion packages/main/src/themes/StepInput.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

:host(:not([hidden])) {
display: inline-block;
width: 100%;
line-height: normal;
letter-spacing: normal;
word-spacing: normal;
Expand Down
1 change: 1 addition & 0 deletions packages/main/src/themes/Switch.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import "./InvisibleTextStyles.css";
@import "./TapHighlightColor.css";
@import "./FormComponents.css";

:host(:not([hidden])) {
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion packages/main/src/themes/Text.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}

:host(:not([max-lines="1"])) {
display: -webkit-box;
display: -webkit-inline-box;
-webkit-line-clamp: var(--_ui5_text_max_lines);
line-clamp: var(--_ui5_text_max_lines);
-webkit-box-orient: vertical;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

--_ui5_range_slider_handle_active_background: var(--sapSlider_Active_RangeHandleBackground);
--_ui5_range_slider_active_handle_icon_display: none;
--_ui5_range_slider_progress_focus_top: -15px;
--_ui5_range_slider_progress_focus_top: -1.063rem;
--_ui5_range_slider_progress_focus_left: calc(-1 * (var(--_ui5_slider_handle_width) / 2) - 5px);
--_ui5_range_slider_progress_focus_padding: 0 1rem 0 1rem;
--_ui5_range_slider_progress_focus_width: calc(100% + var(--_ui5_slider_handle_width) + 10px);
Expand All @@ -64,7 +64,7 @@
--_ui5_slider_handle_width: 1.5rem;
--_ui5_range_slider_progress_focus_width: calc(100% + var(--_ui5_slider_handle_width) + 10px);
--_ui5_range_slider_progress_focus_height: calc(var(--_ui5_slider_handle_height) + 10px);
--_ui5_range_slider_progress_focus_top: -.8125rem;
--_ui5_range_slider_progress_focus_top: -.938rem;
--_ui5_slider_tooltip_bottom: 1.75rem;
--_ui5_slider_handle_focused_tooltip_distance: calc(var(--_ui5_slider_tooltip_bottom) - var(--_ui5_slider_handle_focus_width));
--_ui5_range_slider_progress_focus_left: calc(-1 * (var(--_ui5_slider_handle_width) / 2) - 5px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

--_ui5_range_slider_handle_active_background: var(--sapSlider_Active_RangeHandleBackground);
--_ui5_range_slider_active_handle_icon_display: none;
--_ui5_range_slider_progress_focus_top: -15px;
--_ui5_range_slider_progress_focus_top: -1.063rem;
--_ui5_range_slider_progress_focus_left: calc(-1 * (var(--_ui5_slider_handle_width) / 2) - 5px);
--_ui5_range_slider_progress_focus_padding: 0 1rem 0 1rem;
--_ui5_range_slider_progress_focus_width: calc(100% + var(--_ui5_slider_handle_width) + 10px);
Expand All @@ -64,7 +64,7 @@
--_ui5_slider_handle_width: 1.5rem;
--_ui5_range_slider_progress_focus_width: calc(100% + var(--_ui5_slider_handle_width) + 10px);
--_ui5_range_slider_progress_focus_height: calc(var(--_ui5_slider_handle_height) + 10px);
--_ui5_range_slider_progress_focus_top: -.8125rem;
--_ui5_range_slider_progress_focus_top: -.938rem;
--_ui5_slider_tooltip_bottom: 1.75rem;
--_ui5_slider_handle_focused_tooltip_distance: calc(var(--_ui5_slider_tooltip_bottom) - var(--_ui5_slider_handle_focus_width));
--_ui5_range_slider_progress_focus_left: calc(-1 * (var(--_ui5_slider_handle_width) / 2) - 5px);
Expand Down
253 changes: 253 additions & 0 deletions packages/main/test/pages/VerticalAlignment.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
<!DOCTYPE html>
<html lang="EN">

<head>
<title>ui5 webcomponents</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="./kitchen-styles.css">

<script
src='https://sdk.openui5.org/resources/sap-ui-core.js'
id='sap-ui-bootstrap'
data-sap-ui-libs="sap.m"
></script>
<script>
sap.ui.getCore().attachInit(function () {
new sap.m.CheckBox({ text: "Check" }).placeAt("content3");
new sap.m.RadioButton({ text: "Option x" }).placeAt("content3");
new sap.m.Switch().placeAt("content3");
new sap.m.Button({ text: "Click Me" }).placeAt("content3");
new sap.m.Label({ text: "Lorem ipsum dolor sit" }).placeAt("content3");
new sap.m.Link({ text: "Link", href: "https://ui5webcomponents.github.io", target: "_blank" }).placeAt("content3");
new sap.m.SegmentedButton({
items: [
new sap.m.SegmentedButtonItem({ text: "Opt1" }),
new sap.m.SegmentedButtonItem({ text: "Opt2", selected: true })
]
}).placeAt("content3");


new sap.m.Input({ placeholder: "Enter text here" }).placeAt("content");
new sap.m.DatePicker().placeAt("content");
new sap.m.CheckBox({ text: "Check" }).placeAt("content");
new sap.m.RadioButton({ text: "Option x" }).placeAt("content");
new sap.m.Switch().placeAt("content");
new sap.m.Button({ text: "Click Me" }).placeAt("content");
new sap.m.Label({ text: "Lorem ipsum dolor sit" }).placeAt("content");
new sap.m.Link({ text: "Link", href: "https://ui5webcomponents.github.io", target: "_blank" }).placeAt("content");
new sap.m.SegmentedButton({
items: [
new sap.m.SegmentedButtonItem({ text: "Opt1" }),
new sap.m.SegmentedButtonItem({ text: "Opt2", selected: true })
]
}).placeAt("content");
new sap.m.ComboBox({
value: "Bulgaria",
items: [
new sap.ui.core.Item({ text: "Algeria" }),
new sap.ui.core.Item({ text: "Bulgaria" }),
]}).placeAt("content");


new sap.m.VBox({
direction: "Row",
items: [
new sap.m.Input({ placeholder: "Enter text here" }),
new sap.m.DatePicker(),
new sap.m.CheckBox({ text: "Check" }),
new sap.m.RadioButton({ text: "Option x" }),
new sap.m.Switch(),
new sap.m.Button({ text: "Click Me" }),
new sap.m.Label({ text: "Lorem ipsum dolor sit" }),
new sap.m.Link({ text: "Link", href: "https://ui5webcomponents.github.io", target: "_blank" }),
new sap.m.SegmentedButton({
items: [
new sap.m.SegmentedButtonItem({ text: "Opt1" }),
new sap.m.SegmentedButtonItem({ text: "Opt2", selected: true })
]
}),
new sap.m.ComboBox({
value: "Bulgaria",
items: [
new sap.ui.core.Item({ text: "Algeria" }),
new sap.ui.core.Item({ text: "Bulgaria" }),
]}),
]
}).placeAt("content2");
})
</script>

<script src="%VITE_BUNDLE_PATH%" type="module"></script>

<style>
[ui5-slider], [ui5-range-slider] {
max-width: 300px;
}
</style>
</head>

<body class="kitchen_openui51auto">


<div style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<ui5-checkbox id="cb1" text="ui5-checkbox without name"></ui5-checkbox>
<ui5-combobox id="combobox1"></ui5-combobox>
<ui5-date-picker id="date_picker1"></ui5-date-picker>
<ui5-daterange-picker id="daterange_picker1"></ui5-daterange-picker>
<ui5-datetime-picker id="datetime_picker1"></ui5-datetime-picker>
<ui5-file-uploader value="&quot;Scree.53.png&quot; "></ui5-file-uploader>
<ui5-input id="input1"></ui5-input>
<ui5-multi-combobox id="multi_combobox1"></ui5-multi-combobox>
<ui5-multi-input id="multi_input1"></ui5-multi-input>
<ui5-radio-button id="rb_1" name="rb1"></ui5-radio-button>
<ui5-range-slider id="range_slider1"></ui5-range-slider>
<ui5-select id="select1"></ui5-select>
<ui5-slider id="slider1"></ui5-slider>
<ui5-step-input id="step_input1"></ui5-step-input>
<ui5-switch id="switch1" text="ui5-switch without name"></ui5-switch>
<ui5-time-picker id="time_picker1"></ui5-time-picker>
</div>


<br>
<br>

webc
<div style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<ui5-input value="value"></ui5-input>
<ui5-time-picker></ui5-time-picker>
<ui5-date-picker value="today"></ui5-date-picker>
<ui5-button>Button</ui5-button>
<ui5-combobox value="Bulgaria">
<ui5-cb-item text="Algeria" id="cbi"></ui5-cb-item>
<ui5-cb-item text="Argentina"></ui5-cb-item>
<ui5-cb-item text="Bosnia and Herzegovina"></ui5-cb-item>
<ui5-cb-item text="Brazil"></ui5-cb-item>
<ui5-cb-item text="Bulgaria"></ui5-cb-item>
<ui5-cb-item text="Canada"></ui5-cb-item>
<ui5-cb-item text="Chile"></ui5-cb-item>
</ui5-combobox>
</div>


<br>
<br>
webc
<div style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<ui5-dynamic-date-range
id="last-next"
options="LASTDAYS, NEXTDAYS, LASTWEEKS, NEXTWEEKS, LASTMONTHS, NEXTMONTHS, LASTQUARTERS, NEXTQUARTERS, LASTYEARS, NEXTYEARS"
></ui5-dynamic-date-range>
<ui5-multi-input id="empty-mi" placeholder="Placeholder"></ui5-multi-input>
<ui5-multi-combobox no-validation id="multi1" accessible-name="MultiComboBox with predefined values">
<ui5-mcb-item selected text="Longest word in the whole universe"></ui5-mcb-item>
<ui5-mcb-item selected text="Cosy"></ui5-mcb-item>
<ui5-mcb-item text="Compact"></ui5-mcb-item>
<ui5-mcb-item selected text="Condensed"></ui5-mcb-item>
<ui5-mcb-item selected text="Longest word in the world"></ui5-mcb-item>
</ui5-multi-combobox>
<ui5-file-uploader id="fileSelector1" style="width: 350px;" multiple required>
<ui5-button>Upload</ui5-button>
</ui5-file-uploader>
<ui5-step-input></ui5-step-input>
</div>


<br>
<br>

webc
<div style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<ui5-input value="value"></ui5-input>
<ui5-date-picker value="today"></ui5-date-picker>

<ui5-checkbox text="Check" checked></ui5-checkbox>
<ui5-switch text-on="On" text-off="Off"></ui5-switch>
<ui5-radio-button text="option c" checked></ui5-radio-button>
<ui5-button>Button</ui5-button>

<ui5-label>Lorem ipsum dolor sit</ui5-label>
<ui5-link href="https://ui5webcomponents.github.io" target="_blank">Link</ui5-link>
<ui5-text>Some text here</ui5-text>

<ui5-segmented-button accessible-name="Geographic location">
<ui5-segmented-button-item>Map</ui5-segmented-button-item>
<ui5-segmented-button-item selected>Satellite</ui5-segmented-button-item>
</ui5-segmented-button>

<ui5-combobox value="Bulgaria">
<ui5-cb-item text="Algeria" id="cbi"></ui5-cb-item>
<ui5-cb-item text="Argentina"></ui5-cb-item>
<ui5-cb-item text="Bosnia and Herzegovina"></ui5-cb-item>
<ui5-cb-item text="Brazil"></ui5-cb-item>
<ui5-cb-item text="Bulgaria"></ui5-cb-item>
<ui5-cb-item text="Canada"></ui5-cb-item>
<ui5-cb-item text="Chile"></ui5-cb-item>
</ui5-combobox>
</div>

<br>
<br>

webc
<div style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<ui5-checkbox text="Check" checked></ui5-checkbox>
<ui5-switch text-on="On" text-off="Off"></ui5-switch>
<ui5-radio-button text="option c" checked></ui5-radio-button>
<ui5-button>Button</ui5-button>
<ui5-rating-indicator id="rating-indicator-readonly" value="1" max="3"></ui5-rating-indicator>
<ui5-icon name="home"></ui5-icon>
<ui5-tag design="Set1" color-scheme="6">
Tag Text
</ui5-tag>
</div>


webc
<div style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<ui5-checkbox text="Check" checked></ui5-checkbox>
<ui5-switch text-on="On" text-off="Off"></ui5-switch>
<ui5-label>Lorem ipsum dolor sit</ui5-label>
<ui5-text>Some text here</ui5-text>
<ui5-link href="https://ui5webcomponents.github.io" target="_blank">Link</ui5-link>
<ui5-rating-indicator id="rating-indicator-readonly" value="1" max="3"></ui5-rating-indicator>
<ui5-step-input></ui5-step-input>
</div>

<br>
<br>
<br>

OpenUI5
<div id="content" style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<!-- OpenUI5 controls will be placed here -->
</div>


<br>
<br>
<br>

OpenUI5 in VBOX
<div id="content2" style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<!-- OpenUI5 controls will be placed here -->
</div>

<br>
<br>
<br>

Mixed
<div id="content3" style="border-block-start: 1px solid red; border-block-end: 1px solid red">
<!-- OpenUI5 controls will be placed here -->
<ui5-input value="value"></ui5-input>
<ui5-date-picker value="today"></ui5-date-picker>
<ui5-checkbox text="Check" checked></ui5-checkbox>
<ui5-switch text-on="On" text-off="Off"></ui5-switch>
<ui5-radio-button text="option c" checked></ui5-radio-button>
<ui5-button>Button</ui5-button>
</div>
</body>
</html>
Loading