@ember-eui/core 5.0.0-alpha.6 → 5.0.2
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/addon/components/eui-notification-event/index.hbs +21 -8
- package/addon/components/eui-notification-event-meta/index.hbs +82 -75
- package/addon/components/eui-page/index.hbs +13 -18
- package/addon/components/eui-page-body/index.hbs +19 -36
- package/addon/components/eui-page-content/index.hbs +20 -17
- package/addon/components/eui-page-content-body/index.hbs +16 -15
- package/addon/components/eui-page-content-header/index.hbs +1 -13
- package/addon/components/eui-page-header/index.hbs +91 -33
- package/addon/components/eui-page-header-content/index.hbs +246 -183
- package/addon/components/eui-page-template/index.hbs +723 -395
- package/addon/components/eui-page-template/index.ts +44 -16
- package/addon/components/eui-split-panel/outer/index.hbs +5 -4
- package/addon/helpers/eui-page-restrict-width.ts +37 -0
- package/addon/{components/eui-split-panel/outer/index.ts → modifiers/use-is-within-breakpoints.ts} +2 -11
- package/addon/utils/css-mappings/eui-page.ts +19 -1
- package/addon/utils/css-mappings/eui-tabs.ts +1 -1
- package/app/helpers/eui-page-restrict-width.js +4 -0
- package/app/modifiers/use-is-within-breakpoints.js +1 -0
- package/docs/layout/page-header/demo/demo1.md +23 -0
- package/docs/layout/page-header/demo/demo2.md +23 -0
- package/docs/layout/page-header/demo/demo3.md +14 -0
- package/docs/layout/page-header/demo/demo4.md +52 -0
- package/docs/layout/page-header/demo/demo5.md +64 -0
- package/docs/layout/page-header/demo/demo6.md +21 -0
- package/docs/layout/page-header/index.md +11 -0
- package/docs/layout/{page-demo → page-template/demo}/demo1.md +36 -14
- package/docs/layout/page-template/demo/demo10.md +58 -0
- package/docs/layout/{page-demo → page-template/demo}/demo2.md +14 -4
- package/docs/layout/{page-demo → page-template/demo}/demo3.md +19 -8
- package/docs/layout/page-template/demo/demo4.md +43 -0
- package/docs/layout/page-template/demo/demo5.md +54 -0
- package/docs/layout/{page-demo → page-template/demo}/demo6.md +10 -2
- package/docs/layout/{page-demo → page-template/demo}/demo7.md +0 -0
- package/docs/layout/page-template/demo/demo8.md +46 -0
- package/docs/layout/page-template/demo/demo9.md +43 -0
- package/docs/layout/page-template/index.md +11 -0
- package/package.json +2 -2
- package/docs/layout/page-demo/demo10.md +0 -42
- package/docs/layout/page-demo/demo4.md +0 -38
- package/docs/layout/page-demo/demo5.md +0 -30
- package/docs/layout/page-demo/demo8.md +0 -19
- package/docs/layout/page-demo/demo9.md +0 -29
- package/docs/layout/page.md +0 -1
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
{{#let
|
|
2
|
-
|
|
1
|
+
{{#let
|
|
2
|
+
(unique-id)
|
|
3
|
+
(element (arg-or-default @tagName 'article'))
|
|
4
|
+
(and
|
|
5
|
+
(arg-or-default @hasContextMenuBlock true)
|
|
6
|
+
(has-block 'contextMenu')
|
|
7
|
+
)
|
|
8
|
+
(and
|
|
9
|
+
(arg-or-default @hasPrimaryActionBlock true)
|
|
10
|
+
(has-block 'primaryAction')
|
|
11
|
+
)
|
|
12
|
+
as |id Element hasContextMenuBlock hasPrimaryActionBlock|}}
|
|
13
|
+
<Element
|
|
3
14
|
aria-labelledby={{id}}
|
|
4
15
|
key={{@id}}
|
|
5
16
|
class={{class-names
|
|
@@ -41,7 +52,7 @@
|
|
|
41
52
|
@time={{@time}}
|
|
42
53
|
@onOpenContextMenu={{@onOpenContextMenu}}
|
|
43
54
|
@eventName={{@title}}
|
|
44
|
-
@
|
|
55
|
+
@hasDefaultBlock={{hasContextMenuBlock}}
|
|
45
56
|
@iconColor={{@iconColor}}
|
|
46
57
|
>
|
|
47
58
|
{{yield to='contextMenu'}}
|
|
@@ -59,15 +70,17 @@
|
|
|
59
70
|
as |classNames headingLevel|}}
|
|
60
71
|
{{#if (or @href @onClickTitle)}}
|
|
61
72
|
<EuiLink
|
|
62
|
-
|
|
73
|
+
class={{classNames}}
|
|
74
|
+
id={{id}}
|
|
63
75
|
@href={{@href}}
|
|
76
|
+
{{on 'click' (optional @onClickTitle)}}
|
|
64
77
|
>
|
|
65
|
-
<TextBlock @tagName={{headingLevel}}
|
|
78
|
+
<TextBlock @tagName={{headingLevel}}>
|
|
66
79
|
{{@title}}
|
|
67
80
|
</TextBlock>
|
|
68
81
|
</EuiLink>
|
|
69
82
|
{{else if @title}}
|
|
70
|
-
<TextBlock
|
|
83
|
+
<TextBlock id={{id}} class={{classNames}} @tagName={{headingLevel}}>
|
|
71
84
|
{{@title}}
|
|
72
85
|
</TextBlock>
|
|
73
86
|
{{/if}}
|
|
@@ -80,7 +93,7 @@
|
|
|
80
93
|
@accordionHideText={{@accordionHideText}}
|
|
81
94
|
/>
|
|
82
95
|
|
|
83
|
-
{{#if
|
|
96
|
+
{{#if hasPrimaryActionBlock}}
|
|
84
97
|
<div class="euiNotificationEvent__primaryAction">
|
|
85
98
|
{{yield to='primaryAction'}}
|
|
86
99
|
</div>
|
|
@@ -88,5 +101,5 @@
|
|
|
88
101
|
|
|
89
102
|
</div>
|
|
90
103
|
|
|
91
|
-
</
|
|
104
|
+
</Element>
|
|
92
105
|
{{/let}}
|
|
@@ -1,84 +1,91 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
(
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{{#let
|
|
2
|
+
(and
|
|
3
|
+
(arg-or-default @hasDefaultBlock true)
|
|
4
|
+
(has-block)
|
|
5
|
+
)
|
|
6
|
+
as |hasDefaultBlock|}}
|
|
7
|
+
<div
|
|
8
|
+
class={{class-names
|
|
9
|
+
'euiNotificationEventMeta'
|
|
10
|
+
(if hasDefaultBlock 'euiNotificationEventMeta--hasContextMenu')
|
|
11
|
+
}}
|
|
12
|
+
...attributes
|
|
13
|
+
>
|
|
14
|
+
<div class="euiNotificationEventMeta__section">
|
|
9
15
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
{{#if @iconType}}
|
|
17
|
+
<EuiIcon
|
|
18
|
+
@iconClasses="euiNotificationEventMeta__icon"
|
|
19
|
+
@type={{@iconType}}
|
|
20
|
+
@color={{@iconColor}}
|
|
21
|
+
{{!-- TODO only add one of the following html attributes --}}
|
|
22
|
+
aria-label={{@iconAriaLabel}}
|
|
23
|
+
aria-hidden={{if @iconAriaLabel false true}}
|
|
24
|
+
/>
|
|
25
|
+
{{/if}}
|
|
20
26
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
{{#if @type}}
|
|
28
|
+
<EuiBadge
|
|
29
|
+
class="euiNotificationEventMeta__badge"
|
|
30
|
+
@color={{@badgeColor}}
|
|
31
|
+
>
|
|
32
|
+
{{#if @severity}}
|
|
33
|
+
{{@type}}: {{@severity}}
|
|
34
|
+
{{else}}
|
|
35
|
+
{{@type}}
|
|
36
|
+
{{/if}}
|
|
37
|
+
</EuiBadge>
|
|
38
|
+
{{/if}}
|
|
33
39
|
|
|
34
|
-
|
|
40
|
+
</div>
|
|
35
41
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
<div class="euiNotificationEventMeta__section">
|
|
43
|
+
<span class="euiNotificationEventMeta__time">{{@time}}</span>
|
|
44
|
+
</div>
|
|
39
45
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
46
|
+
{{#if hasDefaultBlock}}
|
|
47
|
+
{{#let (unique-id) (use-state false) as |randomPopoverId isPopoverOpen|}}
|
|
48
|
+
<div class="euiNotificationEventMeta__contextMenuWrapper">
|
|
49
|
+
<EuiPopover
|
|
50
|
+
id={{randomPopoverId}}
|
|
51
|
+
@ownFocus={{true}}
|
|
52
|
+
@repositionOnScroll={{true}}
|
|
53
|
+
@isOpen={{isPopoverOpen.value}}
|
|
54
|
+
@panelPaddingSize="none"
|
|
55
|
+
@anchorPosition="leftUp"
|
|
56
|
+
@closePopover={{fn isPopoverOpen.setState false}}
|
|
57
|
+
>
|
|
52
58
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
<:button>
|
|
60
|
+
<EuiButtonIcon
|
|
61
|
+
{{!-- aria-label={contextMenuButton} --}}
|
|
62
|
+
aria-controls={{randomPopoverId}}
|
|
63
|
+
aria-expanded={{this.isPopoverOpen}}
|
|
64
|
+
aria-haspopup="true"
|
|
65
|
+
@iconType="boxesVertical"
|
|
66
|
+
@color="text"
|
|
67
|
+
data-test-subj={{concat @id '-notificationEventMetaButton'}}
|
|
68
|
+
{{on 'click' (fn isPopoverOpen.setState true)}}
|
|
69
|
+
/>
|
|
70
|
+
</:button>
|
|
65
71
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
{{!-- The EuiContextMenu is wrapped with a div so it closes after an item is clicked --}}
|
|
73
|
+
<:content>
|
|
74
|
+
<div
|
|
75
|
+
{{on 'click' (queue
|
|
76
|
+
(optional @onOpenContextMenu)
|
|
77
|
+
(fn isPopoverOpen.setState false)
|
|
78
|
+
)}}
|
|
79
|
+
role="button"
|
|
80
|
+
>
|
|
81
|
+
{{yield}}
|
|
82
|
+
</div>
|
|
83
|
+
</:content>
|
|
78
84
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
85
|
+
</EuiPopover>
|
|
86
|
+
</div>
|
|
87
|
+
{{/let}}
|
|
88
|
+
{{/if}}
|
|
83
89
|
|
|
84
|
-
</div>
|
|
90
|
+
</div>
|
|
91
|
+
{{/let}}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
{{#let
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
widthClassName="euiPage--restrictWidth-custom"
|
|
10
|
-
widthStyle=restrictWidth
|
|
11
|
-
)
|
|
12
|
-
)
|
|
13
|
-
) as |styling|
|
|
14
|
-
}}
|
|
1
|
+
{{#let
|
|
2
|
+
(arg-or-default @restrictWidth false)
|
|
3
|
+
(arg-or-default @paddingSize "m")
|
|
4
|
+
(arg-or-default @grow true)
|
|
5
|
+
(arg-or-default @direction "row")
|
|
6
|
+
as |restrictWidth paddingSize grow direction|
|
|
7
|
+
}}
|
|
8
|
+
{{#let (eui-page-restrict-width restrictWidth @style) as |styling|}}
|
|
15
9
|
<div
|
|
16
10
|
class={{class-names
|
|
17
|
-
(if
|
|
18
|
-
styling.widthClassName
|
|
11
|
+
(if grow "euiPage--grow")
|
|
12
|
+
(concat "euiPage--" styling.widthClassName)
|
|
19
13
|
componentName="EuiPage"
|
|
20
|
-
paddingSize=
|
|
14
|
+
paddingSize=paddingSize
|
|
15
|
+
direction=direction
|
|
21
16
|
}}
|
|
22
17
|
...attributes
|
|
23
18
|
{{style
|
|
24
|
-
(if styling.
|
|
19
|
+
(if styling.newStyle (inline-styles styling.newStyle))
|
|
25
20
|
(inline-styles min-height="460px;")
|
|
26
21
|
}}
|
|
27
22
|
>
|
|
@@ -1,63 +1,46 @@
|
|
|
1
1
|
{{#let
|
|
2
|
-
(arg-or-default @tagName "div")
|
|
3
2
|
(arg-or-default @restrictWidth false)
|
|
3
|
+
(arg-or-default @tagName "div")
|
|
4
4
|
(arg-or-default @borderRadius "none")
|
|
5
5
|
(arg-or-default @paddingSize (if @panelled "l" "none"))
|
|
6
|
-
as |tagName
|
|
6
|
+
as |restrictWidth tagName borderRadius paddingSize|
|
|
7
7
|
}}
|
|
8
8
|
|
|
9
|
-
{{#let
|
|
10
|
-
(if
|
|
11
|
-
(eq restrictWidth true)
|
|
12
|
-
(hash widthClassName="euiPageBody--restrictWidth-custom")
|
|
13
|
-
(if
|
|
14
|
-
(eq restrictWidth false)
|
|
15
|
-
(hash
|
|
16
|
-
widthClassName="euiPageBody--restrictWidth-default"
|
|
17
|
-
widthStyle=restrictWidth
|
|
18
|
-
)
|
|
19
|
-
)
|
|
20
|
-
)
|
|
21
|
-
as |styling|
|
|
22
|
-
}}
|
|
9
|
+
{{#let (eui-page-restrict-width restrictWidth @style) as |styling|}}
|
|
23
10
|
{{#if @panelled}}
|
|
24
11
|
<EuiPanel
|
|
25
12
|
class={{class-names
|
|
13
|
+
(if (eq borderRadius "none") "euiPageBody--borderRadiusNone")
|
|
14
|
+
(if
|
|
15
|
+
styling.widthClassName
|
|
16
|
+
(concat "euiPageBody--" styling.widthClassName)
|
|
17
|
+
)
|
|
26
18
|
componentName="EuiPageBody"
|
|
27
|
-
borderRadiusSize=borderRadius
|
|
28
19
|
paddingSize=@paddingSize
|
|
29
20
|
}}
|
|
30
21
|
@paddingSize={{paddingSize}}
|
|
31
22
|
@borderRadius={{borderRadius}}
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
@color={{@color}}
|
|
24
|
+
@hasBorder={{@hasBorder}}
|
|
25
|
+
@hasShadow={{@hasShadow}}
|
|
26
|
+
{{style styling.newStyle}}
|
|
34
27
|
...attributes
|
|
35
|
-
{{style
|
|
36
|
-
(if styling.widthStyle (inline-styles max-width=styling.widthStyle))
|
|
37
|
-
}}
|
|
38
28
|
>
|
|
39
|
-
{{!-- <div
|
|
40
|
-
class={{class-names
|
|
41
|
-
componentName="EuiPageBody"
|
|
42
|
-
borderRadiusSize=borderRadius
|
|
43
|
-
paddingSize=paddingSize
|
|
44
|
-
}}
|
|
45
|
-
> --}}
|
|
46
29
|
{{yield}}
|
|
47
|
-
{{! </div> }}
|
|
48
30
|
</EuiPanel>
|
|
49
31
|
{{else}}
|
|
50
32
|
{{#let (element tagName) as |Tag|}}
|
|
51
33
|
<Tag
|
|
52
34
|
class={{class-names
|
|
35
|
+
(if (eq borderRadius "none") "euiPageBody--borderRadiusNone")
|
|
36
|
+
(if
|
|
37
|
+
styling.widthClassName
|
|
38
|
+
(concat "euiPageBody--" styling.widthClassName)
|
|
39
|
+
)
|
|
53
40
|
componentName="EuiPageBody"
|
|
54
|
-
|
|
55
|
-
paddingSize=paddingSize
|
|
56
|
-
}}
|
|
57
|
-
style={{if
|
|
58
|
-
styling.widthStyle
|
|
59
|
-
(inline-styles max-width=styling.widthStyle)
|
|
41
|
+
paddingSize=@paddingSize
|
|
60
42
|
}}
|
|
43
|
+
{{style styling.newStyle}}
|
|
61
44
|
...attributes
|
|
62
45
|
>
|
|
63
46
|
{{yield}}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
{{#let (arg-or-default @role "main") as |role|}}
|
|
2
|
+
<EuiPanel
|
|
3
|
+
role={{if (eq role null) undefined role}}
|
|
4
|
+
class={{class-names
|
|
5
|
+
(if (eq @borderRadius "none") "euiPageContent--borderRadiusNone")
|
|
6
|
+
componentName="EuiPageContent"
|
|
7
|
+
verticalPosition=@verticalPosition
|
|
8
|
+
horizontalPosition=@horizontalPosition
|
|
9
|
+
}}
|
|
10
|
+
@hasShadow={{@hasShadow}}
|
|
11
|
+
@hasBorder={{@hasBorder}}
|
|
12
|
+
@paddingSize={{arg-or-default @paddingSize "l"}}
|
|
13
|
+
@borderRadius={{@borderRadius}}
|
|
14
|
+
@color={{@color}}
|
|
15
|
+
@grow={{@grow}}
|
|
16
|
+
...attributes
|
|
17
|
+
>
|
|
18
|
+
{{yield}}
|
|
19
|
+
</EuiPanel>
|
|
20
|
+
{{/let}}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
>
|
|
14
|
-
|
|
15
|
-
</div>
|
|
1
|
+
{{#let
|
|
2
|
+
(eui-page-restrict-width (arg-or-default @restrictWidth false) @style)
|
|
3
|
+
as |styling|
|
|
4
|
+
}}
|
|
5
|
+
<div
|
|
6
|
+
class={{class-names
|
|
7
|
+
(concat "euiPage--" styling.widthClassName)
|
|
8
|
+
componentName="EuiPageContentBody"
|
|
9
|
+
paddingSize=@paddingSize
|
|
10
|
+
}}
|
|
11
|
+
{{style styling.newStyle}}
|
|
12
|
+
...attributes
|
|
13
|
+
>
|
|
14
|
+
{{yield}}
|
|
15
|
+
</div>
|
|
16
|
+
{{/let}}
|
|
@@ -2,20 +2,8 @@
|
|
|
2
2
|
class={{class-names
|
|
3
3
|
"euiPageContentHeader"
|
|
4
4
|
(if @responsive "euiPageContentHeader--responsive")
|
|
5
|
-
(if
|
|
6
|
-
@restrictWidth
|
|
7
|
-
"euiPanel--restrictWidth-custom"
|
|
8
|
-
"euiPanel--restrictWidth-default"
|
|
9
|
-
)
|
|
10
5
|
}}
|
|
11
|
-
{{style (inline-styles width=@restrictWidth)}}
|
|
12
6
|
...attributes
|
|
13
7
|
>
|
|
14
|
-
{{yield
|
|
15
|
-
(hash
|
|
16
|
-
Section=(component
|
|
17
|
-
"eui-page-content-header-section"
|
|
18
|
-
)
|
|
19
|
-
)
|
|
20
|
-
}}
|
|
8
|
+
{{yield}}
|
|
21
9
|
</div>
|
|
@@ -1,36 +1,94 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
(
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
{{#let
|
|
2
|
+
(eui-page-restrict-width (arg-or-default @restrictWidth false) @style)
|
|
3
|
+
(arg-or-default @responsive true)
|
|
4
|
+
(and (arg-or-default @hasDefaultBlock true) (has-block "default"))
|
|
5
|
+
(or
|
|
6
|
+
(and (arg-or-default @hasDescriptionBlock true) (has-block "description"))
|
|
7
|
+
@description
|
|
8
|
+
)
|
|
9
|
+
(or
|
|
10
|
+
(and (arg-or-default @hasPageTitleBlock true) (has-block "pageTitle"))
|
|
11
|
+
@pageTitle
|
|
12
|
+
)
|
|
13
|
+
(or
|
|
14
|
+
(and
|
|
15
|
+
(arg-or-default @hasRightSideItemsBlock true) (has-block "rightSideItems")
|
|
9
16
|
)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
17
|
+
@rightSideItems
|
|
18
|
+
)
|
|
19
|
+
as |styling responsive hasDefaultBlock hasDescriptionBlock hasPageTitleBlock hasRightSideItemsBlock|
|
|
20
|
+
}}
|
|
21
|
+
{{#let
|
|
22
|
+
(class-names
|
|
23
|
+
(if
|
|
24
|
+
styling.widthClassName (concat "euiPageHeader--" styling.widthClassName)
|
|
25
|
+
)
|
|
26
|
+
(if @bottomBorder "euiPageHeader--bottomBorder")
|
|
27
|
+
(if responsive "euiPageHeader--responsive")
|
|
28
|
+
(if (eq responsive "reverse") "euiPageHeader--responsiveReverse")
|
|
29
|
+
(if (and hasPageTitleBlock @tabs) "euiPageHeader--tabsAtBottom")
|
|
30
|
+
(if
|
|
31
|
+
(and
|
|
32
|
+
@tabs
|
|
33
|
+
(not hasPageTitleBlock)
|
|
34
|
+
(not hasRightSideItemsBlock)
|
|
35
|
+
(not hasDescriptionBlock)
|
|
36
|
+
(not hasDefaultBlock)
|
|
37
|
+
)
|
|
38
|
+
"euiPageHeader--onlyTabs"
|
|
39
|
+
)
|
|
40
|
+
(if
|
|
41
|
+
@alignItems
|
|
42
|
+
(concat "euiPageHeader--" @alignItems)
|
|
43
|
+
"euiPageHeader--center"
|
|
44
|
+
)
|
|
45
|
+
componentName="EuiPageHeader"
|
|
46
|
+
paddingSize=@paddingSize
|
|
13
47
|
)
|
|
14
|
-
|
|
15
|
-
(eq @restrictWidth true)
|
|
16
|
-
"euiPageHeader--restrictWidth-default"
|
|
17
|
-
(if (not-eq @restrictWidth false) "euiPageHeader--restrictWidth-custom")
|
|
18
|
-
)
|
|
19
|
-
componentName="EuiPageHeader"
|
|
20
|
-
paddingSize=@paddingSize
|
|
48
|
+
as |classes|
|
|
21
49
|
}}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
50
|
+
{{#if
|
|
51
|
+
(and
|
|
52
|
+
(not @tabs)
|
|
53
|
+
(not hasPageTitleBlock)
|
|
54
|
+
(not hasDescriptionBlock)
|
|
55
|
+
(not hasRightSideItemsBlock)
|
|
56
|
+
)
|
|
57
|
+
}}
|
|
58
|
+
<header class={{classes}} {{style styling.newStyle}} ...attributes>
|
|
59
|
+
{{yield to="default"}}
|
|
60
|
+
</header>
|
|
61
|
+
{{else}}
|
|
62
|
+
{{!template-lint-disable}}
|
|
63
|
+
<header class={{classes}} {{style styling.newStyle}} ...attributes>
|
|
64
|
+
<EuiPageHeaderContent
|
|
65
|
+
@alignItems={{@alignItems}}
|
|
66
|
+
@responsive={{responsive}}
|
|
67
|
+
@pageTitle={{@pageTitle}}
|
|
68
|
+
@iconType={{@iconType}}
|
|
69
|
+
@breadcrumbs={{@breadcrumbs}}
|
|
70
|
+
@tabs={{@tabs}}
|
|
71
|
+
@description={{@description}}
|
|
72
|
+
@restrictWidth={{@restrictWidth}}
|
|
73
|
+
@hasDescriptionBlock={{not (not hasDescriptionBlock)}}
|
|
74
|
+
@hasPageTitleBlock={{not (not hasPageTitleBlock)}}
|
|
75
|
+
@hasRightSideItemsBlock={{not (not hasRightSideItemsBlock)}}
|
|
76
|
+
@hasDefaultBlock={{not (not hasDefaultBlock)}}
|
|
77
|
+
>
|
|
78
|
+
<:pageTitle>
|
|
79
|
+
{{yield to="pageTitle"}}
|
|
80
|
+
</:pageTitle>
|
|
81
|
+
<:rightSideItems as |item|>
|
|
82
|
+
{{yield item to="rightSideItems"}}
|
|
83
|
+
</:rightSideItems>
|
|
84
|
+
<:description>
|
|
85
|
+
{{yield to="description"}}
|
|
86
|
+
</:description>
|
|
87
|
+
<:default>
|
|
88
|
+
{{yield to="default"}}
|
|
89
|
+
</:default>
|
|
90
|
+
</EuiPageHeaderContent>
|
|
91
|
+
</header>
|
|
92
|
+
{{/if}}
|
|
93
|
+
{{/let}}
|
|
94
|
+
{{/let}}
|