@ember-eui/core 5.12.3 → 5.12.5
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-button/index.hbs +37 -38
- package/addon/components/eui-button-group/index.hbs +35 -33
- package/addon/components/eui-button-group-button/index.hbs +1 -1
- package/addon/components/eui-checkable-card/index.hbs +36 -35
- package/docs/forms/form-controls/form-control-layout/demo/demo1.md +2 -2
- package/package.json +2 -2
|
@@ -2,45 +2,44 @@
|
|
|
2
2
|
(arg-or-default @baseClassName "euiButton")
|
|
3
3
|
(if
|
|
4
4
|
@element
|
|
5
|
-
|
|
6
|
-
(if
|
|
7
|
-
(and @href (not (or @isLoading @isDisabled)))
|
|
8
|
-
(element "a")
|
|
9
|
-
(element "button")
|
|
10
|
-
)
|
|
5
|
+
@element
|
|
6
|
+
(if (and @href (not (or @isLoading @isDisabled))) "a" "button")
|
|
11
7
|
)
|
|
12
|
-
as |baseClassName
|
|
8
|
+
as |baseClassName theElement|
|
|
13
9
|
}}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class="euiButton__content {{@contentClasses}}"
|
|
34
|
-
@isLoading={{@isLoading}}
|
|
35
|
-
@iconType={{@iconType}}
|
|
36
|
-
@iconSize={{@iconSize}}
|
|
37
|
-
@iconSide={{@iconSide}}
|
|
38
|
-
@iconClasses={{@iconClasses}}
|
|
39
|
-
@useSvg={{@useSvg}}
|
|
40
|
-
@useComponent={{@useComponent}}
|
|
41
|
-
@textClasses={{class-names "euiButton__text" @textClasses}}
|
|
10
|
+
{{#let (element theElement) as |Element|}}
|
|
11
|
+
<Element
|
|
12
|
+
class={{class-names
|
|
13
|
+
(if @fill (concat baseClassName "--fill"))
|
|
14
|
+
(if @fullWidth (concat baseClassName "--fullWidth"))
|
|
15
|
+
(if
|
|
16
|
+
(or @isLoading @isDisabled @disabled)
|
|
17
|
+
(concat baseClassName "-isDisabled")
|
|
18
|
+
)
|
|
19
|
+
componentName=(classify baseClassName)
|
|
20
|
+
color=(arg-or-default @color "primary")
|
|
21
|
+
size=@size
|
|
22
|
+
}}
|
|
23
|
+
disabled={{or @isLoading @isDisabled @disabled}}
|
|
24
|
+
href={{@href}}
|
|
25
|
+
target={{@target}}
|
|
26
|
+
aria-pressed={{if @isSelected "true" null}}
|
|
27
|
+
type={{if (eq theElement "button") (arg-or-default @type "button") null}}
|
|
28
|
+
...attributes
|
|
42
29
|
>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
<EuiButtonContent
|
|
31
|
+
class="euiButton__content {{@contentClasses}}"
|
|
32
|
+
@isLoading={{@isLoading}}
|
|
33
|
+
@iconType={{@iconType}}
|
|
34
|
+
@iconSize={{@iconSize}}
|
|
35
|
+
@iconSide={{@iconSide}}
|
|
36
|
+
@iconClasses={{@iconClasses}}
|
|
37
|
+
@useSvg={{@useSvg}}
|
|
38
|
+
@useComponent={{@useComponent}}
|
|
39
|
+
@textClasses={{class-names "euiButton__text" @textClasses}}
|
|
40
|
+
>
|
|
41
|
+
{{yield}}
|
|
42
|
+
</EuiButtonContent>
|
|
43
|
+
</Element>
|
|
44
|
+
{{/let}}
|
|
46
45
|
{{/let}}
|
|
@@ -27,39 +27,41 @@
|
|
|
27
27
|
>
|
|
28
28
|
<legend {{screen-reader-only}}>{{@legend}}</legend>
|
|
29
29
|
<div class="euiButtonGroup__buttons">
|
|
30
|
-
{{#
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
30
|
+
{{#let (arg-or-default @name (unique-id)) as |name|}}
|
|
31
|
+
{{#each @options as |option|}}
|
|
32
|
+
<EuiButtonGroupButton
|
|
33
|
+
@name={{name}}
|
|
34
|
+
@isDisabled={{if
|
|
35
|
+
(not-eq option.isDisabled undefined)
|
|
36
|
+
option.isDisabled
|
|
37
|
+
isDisabled
|
|
38
|
+
}}
|
|
39
|
+
@element={{if typeIsSingle "label" "button"}}
|
|
40
|
+
@isSelected={{if
|
|
41
|
+
typeIsSingle
|
|
42
|
+
(eq option.id @idSelected)
|
|
43
|
+
(get @idToSelectedMap option.id)
|
|
44
|
+
}}
|
|
45
|
+
@color={{resolvedColor}}
|
|
46
|
+
@size={{buttonSize}}
|
|
47
|
+
@isIconOnly={{@isIconOnly}}
|
|
48
|
+
@onChange={{@onChange}}
|
|
49
|
+
@iconType={{option.iconType}}
|
|
50
|
+
@value={{option.value}}
|
|
51
|
+
@label={{option.label}}
|
|
52
|
+
@id={{option.id}}
|
|
53
|
+
@isLoading={{option.isLoading}}
|
|
54
|
+
@iconSide={{option.iconSide}}
|
|
55
|
+
@iconSize={{option.iconSize}}
|
|
56
|
+
@textClasses={{option.textClasses}}
|
|
57
|
+
@contentClasses={{option.contentClasses}}
|
|
58
|
+
@iconClasses={{option.iconClasses}}
|
|
59
|
+
@type={{option.type}}
|
|
60
|
+
class={{option.className}}
|
|
61
|
+
aria-label={{option.aria-label}}
|
|
62
|
+
/>
|
|
63
|
+
{{/each}}
|
|
64
|
+
{{/let}}
|
|
63
65
|
</div>
|
|
64
66
|
</fieldset>
|
|
65
67
|
{{/let}}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
}}
|
|
32
32
|
@isSelected={{if isNotLabel @isSelected}}
|
|
33
33
|
type={{if isNotLabel @type}}
|
|
34
|
-
|
|
34
|
+
for={{if (eq element "label") newId}}
|
|
35
35
|
id={{if isNotLabel newId}}
|
|
36
36
|
title={{innerText}}
|
|
37
37
|
{{on "click" (if isNotLabel (fn @onChange @id) (noop))}}
|
|
@@ -1,39 +1,42 @@
|
|
|
1
1
|
{{#let (arg-or-default @id (unique-id)) as |id|}}
|
|
2
2
|
<div
|
|
3
3
|
class={{class-names
|
|
4
|
-
|
|
4
|
+
"euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiPanel--flexGrowZero euiSplitPanel euiSplitPanel--row euiCheckableCard"
|
|
5
5
|
(if @checked "euiCheckableCard-isChecked")
|
|
6
6
|
(if @disabled "euiCheckableCard__label-isDisabled")
|
|
7
7
|
}}
|
|
8
8
|
>
|
|
9
|
-
<div
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
9
|
+
<div
|
|
10
|
+
class={{class-names
|
|
11
|
+
"euiPanel euiPanel--paddingMedium euiPanel--borderRadiusNone euiPanel--subdued euiPanel--noShadow euiPanel--noBorder euiPanel--flexGrowZero euiPanel--isClickable euiSplitPanel__inner"
|
|
12
|
+
(if @checked "euiPanel--primary")
|
|
13
|
+
}}
|
|
14
|
+
>
|
|
15
|
+
{{#if (eq @checkableType "checkbox")}}
|
|
16
|
+
<EuiCheckbox
|
|
17
|
+
@id={{id}}
|
|
18
|
+
@checked={{@checked}}
|
|
19
|
+
disabled={{@disabled}}
|
|
20
|
+
...attributes
|
|
21
|
+
/>
|
|
22
|
+
{{else}}
|
|
23
|
+
<EuiRadio
|
|
24
|
+
@id={{id}}
|
|
25
|
+
@checked={{@checked}}
|
|
26
|
+
disabled={{@disabled}}
|
|
27
|
+
...attributes
|
|
28
|
+
/>
|
|
29
|
+
{{/if}}
|
|
29
30
|
</div>
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
<div
|
|
32
|
+
class="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusNone euiPanel--transparent euiPanel--noShadow euiPanel--noBorder euiSplitPanel__inner"
|
|
33
|
+
>
|
|
34
|
+
<label
|
|
32
35
|
class={{class-names
|
|
33
36
|
"euiCheckableCard__label"
|
|
34
37
|
(if @disabled "euiCheckableCard__label-isDisabled")
|
|
35
|
-
}}
|
|
36
|
-
|
|
38
|
+
}}
|
|
39
|
+
for={{id}}
|
|
37
40
|
aria-describedby={{if (has-block "content") (concat id "-details")}}
|
|
38
41
|
>
|
|
39
42
|
{{#if (has-block "label")}}
|
|
@@ -42,19 +45,17 @@
|
|
|
42
45
|
{{@label}}
|
|
43
46
|
{{/if}}
|
|
44
47
|
</label>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
|
|
49
|
+
{{#if (has-block "content")}}
|
|
50
|
+
|
|
51
|
+
{{! Empty div for left side background color only }}
|
|
52
|
+
|
|
51
53
|
<div id={{concat id "-details"}} class="euiCheckableCard__children">
|
|
52
54
|
{{yield to="content"}}
|
|
53
55
|
</div>
|
|
54
|
-
|
|
55
|
-
{{/if}}
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
{{/if}}
|
|
58
|
+
|
|
59
|
+
</div>
|
|
59
60
|
</div>
|
|
60
61
|
{{/let}}
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
<EuiSpacer @size='m' />
|
|
95
95
|
<EuiFormControlLayout>
|
|
96
96
|
<:prepend as |classes|>
|
|
97
|
-
<EuiFormLabel
|
|
97
|
+
<EuiFormLabel for='textField19' class={{classes}}>
|
|
98
98
|
Label
|
|
99
99
|
</EuiFormLabel>
|
|
100
100
|
</:prepend>
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
<EuiSpacer @size='m' />
|
|
110
110
|
<EuiFormControlLayout @readOnly={{true}}>
|
|
111
111
|
<:prepend as |classes|>
|
|
112
|
-
<EuiFormLabel
|
|
112
|
+
<EuiFormLabel for='textField19a' class={{classes}}>
|
|
113
113
|
Read only
|
|
114
114
|
</EuiFormLabel>
|
|
115
115
|
</:prepend>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/core",
|
|
3
|
-
"version": "5.12.
|
|
3
|
+
"version": "5.12.5",
|
|
4
4
|
"description": "Ember Components for Elastic UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -186,5 +186,5 @@
|
|
|
186
186
|
"volta": {
|
|
187
187
|
"extends": "../../package.json"
|
|
188
188
|
},
|
|
189
|
-
"gitHead": "
|
|
189
|
+
"gitHead": "b960c69d546224ff01fc2a752f6f35c808865adf"
|
|
190
190
|
}
|