@ember-eui/core 5.0.0 → 5.0.3
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-header-content/index.hbs +10 -12
- package/addon/components/eui-step-horizontal/index.hbs +11 -6
- package/docs/navigation/steps-demo/demo3.md +0 -1
- package/package.json +2 -2
|
@@ -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}}
|
|
@@ -88,10 +88,10 @@
|
|
|
88
88
|
}}
|
|
89
89
|
/>
|
|
90
90
|
{{/if}}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
|
|
92
|
+
{{@pageTitle}}
|
|
93
|
+
{{yield to="pageTitle"}}
|
|
94
|
+
|
|
95
95
|
</EuiTitle>
|
|
96
96
|
{{/if}}
|
|
97
97
|
|
|
@@ -135,10 +135,9 @@
|
|
|
135
135
|
}}
|
|
136
136
|
/>
|
|
137
137
|
{{/if}}
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
{{/if}}
|
|
138
|
+
|
|
139
|
+
{{@pageTitle}}
|
|
140
|
+
{{yield to="pageTitle"}}
|
|
142
141
|
</EuiTitle>
|
|
143
142
|
{{/if}}
|
|
144
143
|
|
|
@@ -226,10 +225,9 @@
|
|
|
226
225
|
}}
|
|
227
226
|
/>
|
|
228
227
|
{{/if}}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
{{/if}}
|
|
228
|
+
|
|
229
|
+
{{@pageTitle}}
|
|
230
|
+
{{yield to="pageTitle"}}
|
|
233
231
|
</EuiTitle>
|
|
234
232
|
{{/if}}
|
|
235
233
|
|
|
@@ -2,18 +2,23 @@
|
|
|
2
2
|
(if
|
|
3
3
|
@disabled
|
|
4
4
|
"disabled"
|
|
5
|
-
(if
|
|
6
|
-
|
|
5
|
+
(if
|
|
6
|
+
@isComplete
|
|
7
|
+
"complete"
|
|
8
|
+
(if @isSelected "current" (arg-or-default @status "incomplete"))
|
|
9
|
+
)
|
|
10
|
+
)
|
|
11
|
+
as |status|
|
|
7
12
|
}}
|
|
8
13
|
<li class="euiStepHorizontal__item" aria-current={{if @isSelected "step"}}>
|
|
9
14
|
<button
|
|
10
15
|
type="button"
|
|
11
16
|
class={{class-names
|
|
12
17
|
"euiStepHorizontal"
|
|
13
|
-
(if
|
|
14
|
-
(if
|
|
15
|
-
(if
|
|
16
|
-
(if (
|
|
18
|
+
(if (eq status "current") "euiStepHorizontal-isSelected")
|
|
19
|
+
(if (eq status "complete") "euiStepHorizontal-isComplete")
|
|
20
|
+
(if (eq status "incomplete") "euiStepHorizontal-isIncomplete")
|
|
21
|
+
(if (eq status "disabled") "euiStepHorizontal-isDisabled")
|
|
17
22
|
}}
|
|
18
23
|
title={{@title}}
|
|
19
24
|
disabled={{@disabled}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.3",
|
|
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": "
|
|
185
|
+
"gitHead": "125731a38b5519cfd5d247663633d7ec8867dcc3"
|
|
186
186
|
}
|