@ember-eui/core 5.0.0-alpha.5 → 5.0.1

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.
Files changed (45) hide show
  1. package/addon/components/eui-notification-event/index.hbs +25 -9
  2. package/addon/components/eui-notification-event-meta/index.hbs +82 -74
  3. package/addon/components/eui-notification-event-read-icon/index.hbs +1 -1
  4. package/addon/components/eui-page/index.hbs +13 -18
  5. package/addon/components/eui-page-body/index.hbs +19 -36
  6. package/addon/components/eui-page-content/index.hbs +20 -17
  7. package/addon/components/eui-page-content-body/index.hbs +16 -15
  8. package/addon/components/eui-page-content-header/index.hbs +1 -13
  9. package/addon/components/eui-page-header/index.hbs +91 -33
  10. package/addon/components/eui-page-header-content/index.hbs +247 -182
  11. package/addon/components/eui-page-template/index.hbs +723 -395
  12. package/addon/components/eui-page-template/index.ts +44 -16
  13. package/addon/components/eui-split-panel/outer/index.hbs +5 -4
  14. package/addon/helpers/eui-page-restrict-width.ts +37 -0
  15. package/addon/{components/eui-split-panel/outer/index.ts → modifiers/use-is-within-breakpoints.ts} +2 -11
  16. package/addon/styles/ember-eui.css +4 -0
  17. package/addon/utils/css-mappings/eui-page.ts +19 -1
  18. package/addon/utils/css-mappings/eui-tabs.ts +1 -1
  19. package/app/helpers/eui-page-restrict-width.js +4 -0
  20. package/app/modifiers/use-is-within-breakpoints.js +1 -0
  21. package/docs/layout/page-header/demo/demo1.md +23 -0
  22. package/docs/layout/page-header/demo/demo2.md +23 -0
  23. package/docs/layout/page-header/demo/demo3.md +14 -0
  24. package/docs/layout/page-header/demo/demo4.md +52 -0
  25. package/docs/layout/page-header/demo/demo5.md +64 -0
  26. package/docs/layout/page-header/demo/demo6.md +21 -0
  27. package/docs/layout/page-header/index.md +11 -0
  28. package/docs/layout/{page-demo → page-template/demo}/demo1.md +36 -14
  29. package/docs/layout/page-template/demo/demo10.md +58 -0
  30. package/docs/layout/{page-demo → page-template/demo}/demo2.md +14 -4
  31. package/docs/layout/{page-demo → page-template/demo}/demo3.md +19 -8
  32. package/docs/layout/page-template/demo/demo4.md +43 -0
  33. package/docs/layout/page-template/demo/demo5.md +54 -0
  34. package/docs/layout/{page-demo → page-template/demo}/demo6.md +10 -2
  35. package/docs/layout/{page-demo → page-template/demo}/demo7.md +0 -0
  36. package/docs/layout/page-template/demo/demo8.md +46 -0
  37. package/docs/layout/page-template/demo/demo9.md +43 -0
  38. package/docs/layout/page-template/index.md +11 -0
  39. package/package.json +2 -2
  40. package/docs/layout/page-demo/demo10.md +0 -42
  41. package/docs/layout/page-demo/demo4.md +0 -38
  42. package/docs/layout/page-demo/demo5.md +0 -30
  43. package/docs/layout/page-demo/demo8.md +0 -19
  44. package/docs/layout/page-demo/demo9.md +0 -29
  45. package/docs/layout/page.md +0 -1
@@ -0,0 +1,43 @@
1
+ ---
2
+ order: 4
3
+ ---
4
+
5
+ # Centered Body
6
+
7
+ <EuiSpacer />
8
+ <EuiText>
9
+ When the content for the page is minimal or in an empty/pre-setup state, the page content can be centered vertically and horizontally. We recommend then using the <strong>EuiEmptyPrompt</strong> for the content.
10
+ </EuiText>
11
+ <EuiSpacer />
12
+ <EuiCallOut>
13
+ <:title>
14
+ This layout can be achieved in <strong>EuiPageTemplate</strong> by setting <EuiCode>template="centeredBody"</EuiCode>.
15
+ </:title>
16
+ </EuiCallOut>
17
+
18
+ ```hbs template
19
+ <EuiPageTemplate @template='centeredBody' @grow={{true}}>
20
+ <:pageSideBar>
21
+ <EuiLoadingContent @lines={{8}} />
22
+ </:pageSideBar>
23
+ <:default>
24
+ <EuiEmptyPrompt @paddingSize='l'>
25
+ <:content>
26
+ <EuiTitle>No spice</EuiTitle>
27
+ <EuiSpacer />
28
+ <figure class='euiImage euiImage--fullWidth'><img
29
+ src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDY0NiAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIG9wYWNpdHk9IjAuNDE1Ij4KPHJlY3Qgd2lkdGg9IjY0NiIgaGVpZ2h0PSIyNCIgcng9IjQiIGZpbGw9IiM3RDg2OUMiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxyZWN0IHk9IjQ4IiB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPHJlY3QgeD0iMTM2LjUiIHk9Ijk2IiB3aWR0aD0iMzczIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9nPgo8L3N2Zz4K'
30
+ class='euiImage__img'
31
+ alt='Fake paragraph'
32
+ title=''
33
+ style=''
34
+ /></figure>
35
+ <EuiSpacer />
36
+ <EuiButton @fill={{true}}>
37
+ Go to full screen
38
+ </EuiButton>
39
+ </:content>
40
+ </EuiEmptyPrompt>
41
+ </:default>
42
+ </EuiPageTemplate>
43
+ ```
@@ -0,0 +1,54 @@
1
+ ---
2
+ order: 5
3
+ ---
4
+
5
+ # Centered Content
6
+
7
+ <EuiSpacer />
8
+ <EuiText>
9
+ Similar to the previous example, you can create a centered panel to emphasize incompleteness even with a page header. For this setup, we recommend using setting <strong>EuiPageContent</strong> to use the <EuiCode>subdued</EuiCode> color as to not have nested shadows.
10
+ </EuiText>
11
+ <EuiSpacer />
12
+ <EuiCallOut>
13
+ <:title>
14
+ This layout can be achieved in <strong>EuiPageTemplate</strong> by setting <EuiCode>template="centeredContent"</EuiCode>.
15
+ </:title>
16
+ </EuiCallOut>
17
+
18
+ ```hbs template
19
+ <EuiPageTemplate
20
+ @grow={{true}}
21
+ @template='centeredContent'
22
+ @pageHeader={{hash iconType='logoElastic' pageTitle='Page Title'}}
23
+ >
24
+ <:pageSideBar>
25
+ <EuiLoadingContent @lines={{8}} />
26
+ </:pageSideBar>
27
+ <:pageHeaderRightSideItems as |Item|>
28
+ <Item>
29
+ <EuiButton>
30
+ Go to full screen
31
+ </EuiButton>
32
+ </Item>
33
+ </:pageHeaderRightSideItems>
34
+ <:default>
35
+ <EuiEmptyPrompt @paddingSize='l'>
36
+ <:content>
37
+ <EuiTitle>No spice</EuiTitle>
38
+ <EuiSpacer />
39
+ <figure class='euiImage euiImage--fullWidth'><img
40
+ src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDY0NiAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIG9wYWNpdHk9IjAuNDE1Ij4KPHJlY3Qgd2lkdGg9IjY0NiIgaGVpZ2h0PSIyNCIgcng9IjQiIGZpbGw9IiM3RDg2OUMiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxyZWN0IHk9IjQ4IiB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPHJlY3QgeD0iMTM2LjUiIHk9Ijk2IiB3aWR0aD0iMzczIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9nPgo8L3N2Zz4K'
41
+ class='euiImage__img'
42
+ alt='Fake paragraph'
43
+ title=''
44
+ style=''
45
+ /></figure>
46
+ <EuiSpacer />
47
+ <EuiButton @fill={{true}}>
48
+ Go to full screen
49
+ </EuiButton>
50
+ </:content>
51
+ </EuiEmptyPrompt>
52
+ </:default>
53
+ </EuiPageTemplate>
54
+ ```
@@ -20,11 +20,19 @@ order: 6
20
20
  @pageHeader={{hash
21
21
  iconType='logoElastic'
22
22
  pageTitle='Page Title'
23
- rightSideItems=(array (component 'eui-button-title' title='Go full screen'))
24
23
  tabs=this.tabs
25
24
  }}
26
25
  >
27
- <EuiLoadingContent @lines={{16}} />
26
+ <:pageHeaderRightSideItems as |Item|>
27
+ <Item>
28
+ <EuiButton>
29
+ Go to full screen
30
+ </EuiButton>
31
+ </Item>
32
+ </:pageHeaderRightSideItems>
33
+ <:default>
34
+ <EuiLoadingContent @lines={{16}} />
35
+ </:default>
28
36
  </EuiPageTemplate>
29
37
  ```
30
38
 
@@ -0,0 +1,46 @@
1
+ ---
2
+ order: 8
3
+ ---
4
+
5
+ # Simple layout with centered body
6
+
7
+ <EuiText>
8
+ Similar to the version with a side bar, when the content for the page is minimal or in an empty/pre-setup state, the page content can be centered vertically and horizontally. We recommend then using the <strong>EuiEmptyPrompt</strong> for the content.
9
+ </EuiText>
10
+
11
+ ```hbs template
12
+ <EuiPageTemplate @grow={{true}} @template='centeredBody'>
13
+ <:default>
14
+ <EuiPageContent
15
+ @borderRadius='none'
16
+ @hasShadow={{false}}
17
+ style='display: flex'
18
+ >
19
+ <EuiPageContent
20
+ @verticalPosition='center'
21
+ @horizontalPosition='center'
22
+ @paddingSize='none'
23
+ @color='subdued'
24
+ @hasShadow={{false}}
25
+ @hasBorder={{false}}
26
+ >
27
+ <EuiEmptyPrompt @paddingSize='l'>
28
+ <:content>
29
+ <EuiTitle>No spice</EuiTitle>
30
+ <EuiSpacer />
31
+ <EuiText>
32
+ <figure class='euiImage euiImage--fullWidth'><img
33
+ src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDY0NiAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIG9wYWNpdHk9IjAuNDE1Ij4KPHJlY3Qgd2lkdGg9IjY0NiIgaGVpZ2h0PSIyNCIgcng9IjQiIGZpbGw9IiM3RDg2OUMiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxyZWN0IHk9IjQ4IiB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPHJlY3QgeD0iMTM2LjUiIHk9Ijk2IiB3aWR0aD0iMzczIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9nPgo8L3N2Zz4K'
34
+ class='euiImage__img'
35
+ alt='Fake paragraph'
36
+ title=''
37
+ style=''
38
+ /></figure>
39
+ </EuiText>
40
+ </:content>
41
+ </EuiEmptyPrompt>
42
+ </EuiPageContent>
43
+ </EuiPageContent>
44
+ </:default>
45
+ </EuiPageTemplate>
46
+ ```
@@ -0,0 +1,43 @@
1
+ ---
2
+ order: 9
3
+ ---
4
+
5
+ # Simple layout with centered content
6
+
7
+ <EuiText>
8
+ Also similar to the previous examples, you can create a centered panel to emphasis incompleteness even with a page header. For this setup, You will need to use nested <strong>EuiPageContent</strong> components in order for the centering to work.
9
+ </EuiText>
10
+
11
+ ```hbs template
12
+ <EuiPageTemplate
13
+ @template='centeredContent'
14
+ @pageContentProps={{hash paddingSize='none'}}
15
+ @pageHeader={{hash iconType='logoElastic' pageTitle='Page Title'}}
16
+ >
17
+ <:pageHeaderRightSideItems as |Item|>
18
+ <Item>
19
+ <EuiButton @fill={{true}}>
20
+ Go to full screen
21
+ </EuiButton>
22
+ </Item>
23
+ </:pageHeaderRightSideItems>
24
+ <:default>
25
+ <EuiEmptyPrompt @paddingSize='l'>
26
+ <:content>
27
+ <EuiTitle>No spice</EuiTitle>
28
+ <EuiSpacer />
29
+ <EuiText>
30
+ <figure class='euiImage euiImage--fullWidth'><img
31
+ src='data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDY0NiAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIG9wYWNpdHk9IjAuNDE1Ij4KPHJlY3Qgd2lkdGg9IjY0NiIgaGVpZ2h0PSIyNCIgcng9IjQiIGZpbGw9IiM3RDg2OUMiIGZpbGwtb3BhY2l0eT0iMC41Ii8+CjxyZWN0IHk9IjQ4IiB3aWR0aD0iNjQ2IiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPHJlY3QgeD0iMTM2LjUiIHk9Ijk2IiB3aWR0aD0iMzczIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzdEODY5QyIgZmlsbC1vcGFjaXR5PSIwLjUiLz4KPC9nPgo8L3N2Zz4K'
32
+ class='euiImage__img'
33
+ alt='Fake paragraph'
34
+ title=''
35
+ style=''
36
+ /></figure>
37
+ </EuiText>
38
+ </:content>
39
+ </EuiEmptyPrompt>
40
+ </:default>
41
+
42
+ </EuiPageTemplate>
43
+ ```
@@ -0,0 +1,11 @@
1
+ ---
2
+ order: 1
3
+ title: Page Template
4
+ ---
5
+
6
+ <EuiPageHeader @pageTitle="Page Template" @bottomBorder={{true}}>
7
+ <:description>
8
+ <EuiText>While the <strong>EuiPageHeader</strong> component can be placed anywhere within your page layout, we recommend using it within the <a href="#"><strong>EuiPageTemplate</strong></a> component by passing the configuration props as its <EuiCode>pageHeader</EuiCode>.</EuiText>
9
+ </:description>
10
+
11
+ </EuiPageHeader>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "5.0.0-alpha.5",
3
+ "version": "5.0.1",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -182,5 +182,5 @@
182
182
  "volta": {
183
183
  "extends": "../../package.json"
184
184
  },
185
- "gitHead": "f51e8c4b246911462dae9af5445e6968516e2ce2"
185
+ "gitHead": "3aef480644ac4197019735532b7907b018151deb"
186
186
  }
@@ -1,42 +0,0 @@
1
- ---
2
- order: 10
3
- ---
4
-
5
- # A simple page layout with custom content
6
-
7
- <EuiText>
8
- You can replace the inner parts of <strong>EuiPageBody</strong> with your own content, with or without a page header. This allows you to create dashboard style layouts with lots of panels. It is not recommended, however, to use this setup when you also have side bar.
9
- </EuiText>
10
- <EuiSpacer />
11
- <EuiCallOut>
12
- <:body>
13
- This layout can be achieved in <strong>EuiPageTemplate</strong> by setting <EuiCode>template="empty"</EuiCode>.
14
- </:body>
15
- </EuiCallOut>
16
-
17
- ```hbs template
18
- <EuiPageTemplate
19
- @grow={{true}}
20
- @template='empty'
21
- @pageHeader={{hash
22
- iconType='logoElastic'
23
- pageTitle='Page Title'
24
- rightSideItems=(array (component 'eui-button-title' title='Go full screen' color='warning')(component 'eui-button-title' title='Do something'))
25
- }}
26
- >
27
- <EuiFlexGrid @columns={{2}}>
28
- <EuiFlexItem>
29
- <EuiPanel style='height: 200px' />
30
- </EuiFlexItem>
31
- <EuiFlexItem>
32
- <EuiPanel style='height: 200px' />
33
- </EuiFlexItem>
34
- <EuiFlexItem>
35
- <EuiPanel style='height: 200px' />
36
- </EuiFlexItem>
37
- <EuiFlexItem>
38
- <EuiPanel style='height: 200px' />
39
- </EuiFlexItem>
40
- </EuiFlexGrid>
41
- </EuiPageTemplate>
42
- ```
@@ -1,38 +0,0 @@
1
- ---
2
- order: 4
3
- ---
4
-
5
- # Centered Body
6
-
7
- <EuiSpacer />
8
- <EuiText>
9
- When the content for the page is minimal or in an empty/pre-setup state, the page content can be centered vertically and horizontally. We recommend then using the <strong>EuiEmptyPrompt</strong> for the content.
10
- </EuiText>
11
- <EuiSpacer />
12
- <EuiCallOut>
13
- <:title>
14
- This layout can be achieved in <strong>EuiPageTemplate</strong> by setting <EuiCode>template="centeredBody"</EuiCode>.
15
- </:title>
16
- </EuiCallOut>
17
-
18
- ```hbs template
19
- <EuiPageTemplate
20
- @template='centeredBody'
21
- @grow={{true}}
22
- @pageSideBar={{component 'eui-loading-content' lines=8}}
23
- >
24
- <EuiEmptyPrompt @paddingSize='l'>
25
- <:content>
26
- <EuiTitle>No spice</EuiTitle>
27
- <EuiSpacer />
28
- <EuiLoadingContent @lines={{8}} />
29
- <EuiButton>
30
- Go to full screen
31
- </EuiButton>
32
- </:content>
33
- <:footer>
34
- Footer
35
- </:footer>
36
- </EuiEmptyPrompt>
37
- </EuiPageTemplate>
38
- ```
@@ -1,30 +0,0 @@
1
- ---
2
- order: 5
3
- ---
4
-
5
- # Centered Content
6
- <EuiSpacer />
7
- <EuiText>
8
- Similar to the previous example, you can create a centered panel to emphasize incompleteness even with a page header. For this setup, we recommend using setting <strong>EuiPageContent</strong> to use the <EuiCode>subdued</EuiCode> color as to not have nested shadows.
9
- </EuiText>
10
- <EuiSpacer />
11
- <EuiCallOut>
12
- <:title>
13
- This layout can be achieved in <strong>EuiPageTemplate</strong> by setting <EuiCode>template="centeredContent"</EuiCode>.
14
- </:title>
15
- </EuiCallOut>
16
-
17
- ```hbs template
18
- <EuiPageTemplate
19
- @grow={{true}}
20
- @template='centeredContent'
21
- @pageHeader={{hash
22
- iconType='logoElastic'
23
- pageTitle='Page Title'
24
- rightSideItems=(array (component 'eui-button-title' title='Go full screen'))
25
- }}
26
- @pageSideBar={{component 'eui-loading-content' lines=8}}
27
- >
28
- <EuiEmptyPrompt @paddingSize="l" @title='No spice' @body={{component 'eui-loading-content' lines=8}}/>
29
- </EuiPageTemplate>
30
- ```
@@ -1,19 +0,0 @@
1
- ---
2
- order: 8
3
- ---
4
-
5
- # Simple layout with centered body
6
-
7
- <EuiText>
8
- Similar to the version with a side bar, when the content for the page is minimal or in an empty/pre-setup state, the page content can be centered vertically and horizontally. We recommend then using the <strong>EuiEmptyPrompt</strong> for the content.
9
- </EuiText>
10
-
11
- ```hbs template
12
- <EuiPageTemplate @grow={{true}} @template='centeredBody'>
13
- <EuiEmptyPrompt
14
- @title='No spice'
15
- @paddingSize='l'
16
- @body={{component 'eui-loading-content' lines=4}}
17
- />
18
- </EuiPageTemplate>
19
- ```
@@ -1,29 +0,0 @@
1
- ---
2
- order: 9
3
- ---
4
-
5
- # Simple layout with centered content
6
-
7
- <EuiText>
8
- Also similar to the previous examples, you can create a centered panel to emphasis incompleteness even with a page header. For this setup, You will need to use nested <strong>EuiPageContent</strong> components in order for the centering to work.
9
- </EuiText>
10
-
11
- ```hbs template
12
- <EuiPageTemplate
13
- @template='centeredContent'
14
- @pageContentProps={{hash
15
- paddingSize='none'
16
- }}
17
- @pageHeader={{hash
18
- iconType='logoElastic'
19
- pageTitle='Page Title'
20
- rightSideItems=(array (component 'eui-button-title' title='Go full screen'))
21
- }}
22
- >
23
- <EuiEmptyPrompt
24
- @title='No spice'
25
- @paddingSize="l"
26
- @body={{component 'eui-loading-content' lines=4}}
27
- />
28
- </EuiPageTemplate>
29
- ```
@@ -1 +0,0 @@
1
- <EuiPageHeader @pageTitle="Page"/>