@ember-eui/core 5.12.4 → 5.12.6

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.
@@ -27,39 +27,41 @@
27
27
  >
28
28
  <legend {{screen-reader-only}}>{{@legend}}</legend>
29
29
  <div class="euiButtonGroup__buttons">
30
- {{#each @options as |option|}}
31
- <EuiButtonGroupButton
32
- @name={{if @name @name (unique-id)}}
33
- @isDisabled={{if
34
- (not-eq option.isDisabled undefined)
35
- option.isDisabled
36
- isDisabled
37
- }}
38
- @element={{if typeIsSingle "label" "button"}}
39
- @isSelected={{if
40
- typeIsSingle
41
- (eq option.id @idSelected)
42
- (get @idToSelectedMap option.id)
43
- }}
44
- @color={{resolvedColor}}
45
- @size={{buttonSize}}
46
- @isIconOnly={{@isIconOnly}}
47
- @onChange={{@onChange}}
48
- @iconType={{option.iconType}}
49
- @value={{option.value}}
50
- @label={{option.label}}
51
- @id={{option.id}}
52
- @isLoading={{option.isLoading}}
53
- @iconSide={{option.iconSide}}
54
- @iconSize={{option.iconSize}}
55
- @textClasses={{option.textClasses}}
56
- @contentClasses={{option.contentClasses}}
57
- @iconClasses={{option.iconClasses}}
58
- @type={{option.type}}
59
- class={{option.className}}
60
- aria-label={{option.aria-label}}
61
- />
62
- {{/each}}
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
- htmlFor={{if (eq element "label") newId}}
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
- "euiPanel euiPanel--borderRadiusMedium euiPanel--plain euiPanel--hasShadow euiPanel--hasBorder euiPanel--flexGrowZero euiSplitPanel euiSplitPanel--row euiCheckableCard"
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 class={{class-names
10
- "euiPanel euiPanel--paddingMedium euiPanel--borderRadiusNone euiPanel--subdued euiPanel--noShadow euiPanel--noBorder euiPanel--flexGrowZero euiPanel--isClickable euiSplitPanel__inner"
11
- (if @checked "euiPanel--primary")
12
- }}>
13
-
14
- {{#if (eq @checkableType "checkbox")}}
15
- <EuiCheckbox
16
- @id={{id}}
17
- @checked={{@checked}}
18
- disabled={{@disabled}}
19
- ...attributes
20
- />
21
- {{else}}
22
- <EuiRadio
23
- @id={{id}}
24
- @checked={{@checked}}
25
- disabled={{@disabled}}
26
- ...attributes
27
- />
28
- {{/if}}
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
- <div class="euiPanel euiPanel--paddingMedium euiPanel--borderRadiusNone euiPanel--transparent euiPanel--noShadow euiPanel--noBorder euiSplitPanel__inner">
31
- <label
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
- htmlFor={{id}}
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
- {{#if (has-block "content")}}
48
-
49
- {{!-- Empty div for left side background color only --}}
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
- </div>
57
+ {{/if}}
58
+
59
+ </div>
59
60
  </div>
60
61
  {{/let}}
@@ -16,12 +16,14 @@ export default class EuiTooltipPopover extends Component<EuiTooltipPopoverArgs>
16
16
  super(owner, args);
17
17
  document.body.classList.add('euiBody-hasPortalContent');
18
18
  window.addEventListener('resize', this.updateDimensions);
19
+ window.addEventListener('scroll', this.updateDimensions, true);
19
20
  }
20
21
 
21
22
  willDestroy(): void {
22
23
  super.willDestroy();
23
24
  document.body.classList.remove('euiBody-hasPortalContent');
24
25
  window.removeEventListener('resize', this.updateDimensions);
26
+ window.removeEventListener('scroll', this.updateDimensions, true);
25
27
  }
26
28
 
27
29
  @action
@@ -94,7 +94,7 @@
94
94
  <EuiSpacer @size='m' />
95
95
  <EuiFormControlLayout>
96
96
  <:prepend as |classes|>
97
- <EuiFormLabel htmlFor='textField19' class={{classes}}>
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 htmlFor='textField19a' class={{classes}}>
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.4",
3
+ "version": "5.12.6",
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": "301908259ce0bc2b0308966f411927a3493874de"
189
+ "gitHead": "5f9f20f5e0df1bacb65469314440bfa806767edd"
190
190
  }