Skip to content

Commit 7a68dd2

Browse files
authored
feat(ui5-flexible-column-layout): new component (#1867)
Introduce new component in the "fiori" package, called FlexibleColumnLayout. The component implements the master-detail-detail paradigm by displaying up to three pages in separate columns. There are several possible layouts that can be changed either with the component API, or by pressing the arrows, displayed between the columns. Fixes: #1851
1 parent 5bca823 commit 7a68dd2

22 files changed

+2766
-0
lines changed

packages/fiori/bundle.esm.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import "./dist/Assets.js";
77
import "./dist/features/CoPilotAnimation.js";
88

99
// FIORI components
10+
import FlexibleColumnLayout from "./dist/FlexibleColumnLayout.js";
1011
import ProductSwitch from "./dist/ProductSwitch.js";
1112
import ProductSwitchItem from "./dist/ProductSwitchItem.js";
1213
import ShellBar from "./dist/ShellBar.js";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<div class="ui5-fcl-root">
2+
<div
3+
role="region"
4+
class="{{classes.columns.start}}"
5+
style="{{styles.columns.start}}"
6+
aria-labelledby="{{_id}}-startColumnText"
7+
>
8+
<slot name="startColumn"></slot>
9+
</div>
10+
11+
<div class="ui5-fcl-arrow-container" style="{{styles.arrowsContainer.start}}">
12+
<ui5-button
13+
class="ui5-fcl-arrow ui5-fcl-arrow--start"
14+
icon="slim-arrow-right"
15+
design="Transparent"
16+
@click="{{startArrowClick}}"
17+
style="{{styles.arrows.start}}"
18+
></ui5-button>
19+
</div>
20+
21+
<div
22+
role="region"
23+
class="{{classes.columns.middle}}"
24+
style="{{styles.columns.middle}}"
25+
aria-labelledby="{{_id}}-midColumnText"
26+
>
27+
<slot name="midColumn"></slot>
28+
</div>
29+
30+
<div class="ui5-fcl-arrow-container" style="{{styles.arrowsContainer.end}}">
31+
<ui5-button
32+
class="ui5-fcl-arrow ui5-fcl-arrow--end"
33+
style="{{styles.arrows.end}}"
34+
icon="slim-arrow-left"
35+
design="Transparent"
36+
@click="{{endArrowClick}}"
37+
></ui5-button>
38+
</div>
39+
40+
<div
41+
role="region"
42+
class="{{classes.columns.end}}"
43+
style="{{styles.columns.end}}"
44+
aria-labelledby="{{_id}}-endColumnText"
45+
>
46+
<slot name="endColumn"></slot>
47+
</div>
48+
49+
<span id="{{_id}}-startColumnText" class="ui5-hidden-text">{{accStartColumnText}}</span>
50+
<span id="{{_id}}-midColumnText" class="ui5-hidden-text">{{accMiddleColumnText}}</span>
51+
<span id="{{_id}}-endColumnText" class="ui5-hidden-text">{{accEndColumnText}}</span>
52+
</div>

0 commit comments

Comments
 (0)