@ember-eui/validated-form 5.16.1 → 5.17.0

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.
@@ -14,26 +14,33 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiCheckboxGroup
21
- class={{@fieldClasses}}
22
- @formId={{@formId}}
23
- @valueKey={{@valueKey}}
24
- @labelKey={{@labelKey}}
25
- aria-label={{@ariaLabel}}
26
- @disabled={{@disabled}}
27
- @compressed={{@compressed}}
28
- @isInvalid={{this.isInvalidAndTouched}}
29
- @options={{this.options}}
30
- @idToSelectedMap={{this.arrayToMap}}
31
- @legend={{@legend}}
32
- {{!template-lint-disable}}
33
- @id={{theId}}
34
- @onChange={{this.handleChange}}
35
- autofocus={{@autofocus}}
36
- ...attributes
37
- />
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+
25
+ <:field>
26
+ <EuiCheckboxGroup
27
+ class={{@fieldClasses}}
28
+ @formId={{@formId}}
29
+ @valueKey={{@valueKey}}
30
+ @labelKey={{@labelKey}}
31
+ aria-label={{@ariaLabel}}
32
+ @disabled={{@disabled}}
33
+ @compressed={{@compressed}}
34
+ @isInvalid={{this.isInvalidAndTouched}}
35
+ @options={{this.options}}
36
+ @idToSelectedMap={{this.arrayToMap}}
37
+ @legend={{@legend}}
38
+ {{!template-lint-disable}}
39
+ @id={{theId}}
40
+ @onChange={{this.handleChange}}
41
+ autofocus={{@autofocus}}
42
+ ...attributes
43
+ />
44
+ </:field>
38
45
  </EuiFormRow>
39
46
  {{/let}}
@@ -14,45 +14,51 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @selectedOptions}}
19
20
  >
20
- <EuiComboBox
21
- class={{@fieldClasses}}
22
- @onChange={{this.handleChange}}
23
- @dropdownClass={{@dropdownClass}}
24
- @placeholder={{@placeholder}}
25
- @options={{this.options}}
26
- @singleSelection={{@singleSelection}}
27
- @selectedOptions={{@selectedOptions}}
28
- @searchEnabled={{arg-or-default @searchEnabled true}}
29
- @searchField={{@searchField}}
30
- @seachMessage={{@searchMessage}}
31
- @search={{@search}}
32
- aria-label={{@ariaLabel}}
33
- form={{@formId}}
34
- @isInvalid={{this.isInvalidAndTouched}}
35
- @isClearable={{@isClearable}}
36
- @fullWidth={{@fullWidth}}
37
- @isLoading={{@isLoading}}
38
- @readOnly={{@readOnly}}
39
- @controlOnly={{@controlOnly}}
40
- @compressed={{@compressed}}
41
- {{!template-lint-disable}}
42
- @id={{theId}}
43
- @onCreateOption={{@onCreateOption}}
44
- @customOptionText={{@customOptionText}}
45
- @onBlur={{queue (fn this.setIsTouched true) (optional @onBlur)}}
46
- @onFocus={{@onFocus}}
47
- @onClose={{@onClose}}
48
- @onOpen={{@onOpen}}
49
- @isDisabled={{@isDisabled}}
50
- @renderInPlace={{@renderInPlace}}
51
- @extra={{@extra}}
52
- ...attributes
53
- as |opt index select|
54
- >
55
- {{yield opt index select}}
56
- </EuiComboBox>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ <EuiComboBox
26
+ class={{@fieldClasses}}
27
+ @onChange={{this.handleChange}}
28
+ @dropdownClass={{@dropdownClass}}
29
+ @placeholder={{@placeholder}}
30
+ @options={{this.options}}
31
+ @singleSelection={{@singleSelection}}
32
+ @selectedOptions={{@selectedOptions}}
33
+ @searchEnabled={{arg-or-default @searchEnabled true}}
34
+ @searchField={{@searchField}}
35
+ @seachMessage={{@searchMessage}}
36
+ @search={{@search}}
37
+ aria-label={{@ariaLabel}}
38
+ form={{@formId}}
39
+ @isInvalid={{this.isInvalidAndTouched}}
40
+ @isClearable={{@isClearable}}
41
+ @fullWidth={{@fullWidth}}
42
+ @isLoading={{@isLoading}}
43
+ @readOnly={{@readOnly}}
44
+ @controlOnly={{@controlOnly}}
45
+ @compressed={{@compressed}}
46
+ {{!template-lint-disable}}
47
+ @id={{theId}}
48
+ @onCreateOption={{@onCreateOption}}
49
+ @customOptionText={{@customOptionText}}
50
+ @onBlur={{queue (fn this.setIsTouched true) (optional @onBlur)}}
51
+ @onFocus={{@onFocus}}
52
+ @onClose={{@onClose}}
53
+ @onOpen={{@onOpen}}
54
+ @isDisabled={{@isDisabled}}
55
+ @renderInPlace={{@renderInPlace}}
56
+ @extra={{@extra}}
57
+ ...attributes
58
+ as |opt index select|
59
+ >
60
+ {{yield opt index select}}
61
+ </EuiComboBox>
62
+ </:field>
57
63
  </EuiFormRow>
58
64
  {{/let}}
@@ -14,59 +14,66 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiDualRange
21
- class={{@fieldClasses}}
22
- form={{@formId}}
23
- @value={{@value}}
24
- @fullWidth={{@fullWidth}}
25
- @isInvalid={{this.isInvalidAndTouched}}
26
- @levels={{@levels}}
27
- @showLabels={{@showLabels}}
28
- @showInput={{@showInput}}
29
- @tickInternval={{@tickInternval}}
30
- @ticks={{@ticks}}
31
- aria-label={{@ariaLabel}}
32
- @disabled={{@disabled}}
33
- @compressed={{@compressed}}
34
- @hasFocus={{@hasFocus}}
35
- @showRange={{@showRange}}
36
- @showTicks={{@showTicks}}
37
- @readOnly={{@readOnly}}
38
- @id={{theId}}
39
- @step={{@step}}
40
- @showValue={{@showValue}}
41
- @onChange={{this.handleChange}}
42
- @max={{@max}}
43
- @isLoading={{@isLoading}}
44
- @min={{@min}}
45
- @icon={{@icon}}
46
- @side={{@side}}
47
- @inputRef={{@inputRef}}
48
- @controlOnly={{@controlOnly}}
49
- @autoSize={{@autoSize}}
50
- @isPrependProvided={{has-block "prepend"}}
51
- @isAppendProvided={{has-block "append"}}
52
- @isFakeMinBlock={{not (has-block "min")}}
53
- @isFakeMaxBlock={{not (has-block "max")}}
54
- autofocus={{@autofocus}}
55
- ...attributes
56
- {{on "blur" (fn this.setIsTouched true)}}
57
- >
58
- <:prepend as |classes|>
59
- {{yield classes to="prepend"}}
60
- </:prepend>
61
- <:min>
62
- {{yield to="min"}}
63
- </:min>
64
- <:max>
65
- {{yield to="max"}}
66
- </:max>
67
- <:append as |classes|>
68
- {{yield classes to="append"}}
69
- </:append>
70
- </EuiDualRange>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+
25
+ <:field>
26
+ <EuiDualRange
27
+ class={{@fieldClasses}}
28
+ form={{@formId}}
29
+ @value={{@value}}
30
+ @fullWidth={{@fullWidth}}
31
+ @isInvalid={{this.isInvalidAndTouched}}
32
+ @levels={{@levels}}
33
+ @showLabels={{@showLabels}}
34
+ @showInput={{@showInput}}
35
+ @tickInternval={{@tickInternval}}
36
+ @ticks={{@ticks}}
37
+ aria-label={{@ariaLabel}}
38
+ @disabled={{@disabled}}
39
+ @compressed={{@compressed}}
40
+ @hasFocus={{@hasFocus}}
41
+ @showRange={{@showRange}}
42
+ @showTicks={{@showTicks}}
43
+ @readOnly={{@readOnly}}
44
+ @id={{theId}}
45
+ @step={{@step}}
46
+ @showValue={{@showValue}}
47
+ @onChange={{this.handleChange}}
48
+ @max={{@max}}
49
+ @isLoading={{@isLoading}}
50
+ @min={{@min}}
51
+ @icon={{@icon}}
52
+ @side={{@side}}
53
+ @inputRef={{@inputRef}}
54
+ @controlOnly={{@controlOnly}}
55
+ @autoSize={{@autoSize}}
56
+ @isPrependProvided={{has-block "prepend"}}
57
+ @isAppendProvided={{has-block "append"}}
58
+ @isFakeMinBlock={{not (has-block "min")}}
59
+ @isFakeMaxBlock={{not (has-block "max")}}
60
+ autofocus={{@autofocus}}
61
+ ...attributes
62
+ {{on "blur" (fn this.setIsTouched true)}}
63
+ >
64
+ <:prepend as |classes|>
65
+ {{yield classes to="prepend"}}
66
+ </:prepend>
67
+ <:min>
68
+ {{yield to="min"}}
69
+ </:min>
70
+ <:max>
71
+ {{yield to="max"}}
72
+ </:max>
73
+ <:append as |classes|>
74
+ {{yield classes to="append"}}
75
+ </:append>
76
+ </EuiDualRange>
77
+ </:field>
71
78
  </EuiFormRow>
72
- {{/let}}
79
+ {{/let}}
@@ -14,41 +14,47 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- {{#let
21
- (if
22
- @editorComponent
23
- (component (ensure-safe-component @editorComponent))
24
- (component "eui-markdown-editor")
25
- )
26
- as |MarkdownEditor|
27
- }}
28
- <MarkdownEditor
29
- class={{@fieldClasses}}
30
- form={{@formId}}
31
- aria-label={{@ariaLabel}}
32
- @value={{@value}}
33
- @isInvalid={{this.isInvalidAndTouched}}
34
- @disabled={{@disabled}}
35
- @editorId={{theId}}
36
- @onChange={{this.handleChange}}
37
- @ariaDescribedBy={{@ariaDescribedBy}}
38
- @ariaLabel={{@ariaLabel}}
39
- @ariaLabelledBy={{@ariaLabelledBy}}
40
- autofocus={{@autofocus}}
41
- placeholder={{@placeholder}}
42
- @onParse={{@onParse}}
43
- @parsingPluginList={{@parsingPluginList}}
44
- @uiPlugins={{@uiPlugins}}
45
- @height={{@height}}
46
- @maxHeight={{@maxHeight}}
47
- @autoExpandPreview={{@autoExpandPreview}}
48
- @initialViewMode={{@initialViewMode}}
49
- ...attributes
50
- {{on "blur" (fn this.setIsTouched true)}}
51
- />
52
- {{/let}}
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ {{#let
26
+ (if
27
+ @editorComponent
28
+ (component (ensure-safe-component @editorComponent))
29
+ (component "eui-markdown-editor")
30
+ )
31
+ as |MarkdownEditor|
32
+ }}
33
+ <MarkdownEditor
34
+ class={{@fieldClasses}}
35
+ form={{@formId}}
36
+ aria-label={{@ariaLabel}}
37
+ @value={{@value}}
38
+ @isInvalid={{this.isInvalidAndTouched}}
39
+ @disabled={{@disabled}}
40
+ @editorId={{theId}}
41
+ @onChange={{this.handleChange}}
42
+ @ariaDescribedBy={{@ariaDescribedBy}}
43
+ @ariaLabel={{@ariaLabel}}
44
+ @ariaLabelledBy={{@ariaLabelledBy}}
45
+ autofocus={{@autofocus}}
46
+ placeholder={{@placeholder}}
47
+ @onParse={{@onParse}}
48
+ @parsingPluginList={{@parsingPluginList}}
49
+ @uiPlugins={{@uiPlugins}}
50
+ @height={{@height}}
51
+ @maxHeight={{@maxHeight}}
52
+ @autoExpandPreview={{@autoExpandPreview}}
53
+ @initialViewMode={{@initialViewMode}}
54
+ ...attributes
55
+ {{on "blur" (fn this.setIsTouched true)}}
56
+ />
57
+ {{/let}}
58
+ </:field>
53
59
  </EuiFormRow>
54
60
  {{/let}}
@@ -14,42 +14,49 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiFieldNumber
21
- class={{@fieldClasses}}
22
- form={{@formId}}
23
- aria-label={{@ariaLabel}}
24
- @value={{@value}}
25
- @icon={{@icon}}
26
- @isInvalid={{this.isInvalidAndTouched}}
27
- @fullWidth={{@fullWidth}}
28
- @isLoading={{@isLoading}}
29
- @readOnly={{@readOnly}}
30
- @disabled={{@disabled}}
31
- @min={{@min}}
32
- @max={{@max}}
33
- @step={{@step}}
34
- @inputRef={{@inputRef}}
35
- @controlOnly={{@controlOnly}}
36
- @compressed={{@compressed}}
37
- @id={{theId}}
38
- @clear={{@clear}}
39
- @isPrependProvided={{has-block "prepend"}}
40
- @isAppendProvided={{has-block "append"}}
41
- autofocus={{@autofocus}}
42
- placeholder={{@placeholder}}
43
- ...attributes
44
- {{on "blur" (fn this.setIsTouched true)}}
45
- {{on "input" this.handleChange}}
46
- >
47
- <:prepend as |classes|>
48
- {{yield classes to="prepend"}}
49
- </:prepend>
50
- <:append as |classes|>
51
- {{yield classes to="append"}}
52
- </:append>
53
- </EuiFieldNumber>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+
25
+ <:field>
26
+ <EuiFieldNumber
27
+ class={{@fieldClasses}}
28
+ form={{@formId}}
29
+ aria-label={{@ariaLabel}}
30
+ @value={{@value}}
31
+ @icon={{@icon}}
32
+ @isInvalid={{this.isInvalidAndTouched}}
33
+ @fullWidth={{@fullWidth}}
34
+ @isLoading={{@isLoading}}
35
+ @readOnly={{@readOnly}}
36
+ @disabled={{@disabled}}
37
+ @min={{@min}}
38
+ @max={{@max}}
39
+ @step={{@step}}
40
+ @inputRef={{@inputRef}}
41
+ @controlOnly={{@controlOnly}}
42
+ @compressed={{@compressed}}
43
+ @id={{theId}}
44
+ @clear={{@clear}}
45
+ @isPrependProvided={{has-block "prepend"}}
46
+ @isAppendProvided={{has-block "append"}}
47
+ autofocus={{@autofocus}}
48
+ placeholder={{@placeholder}}
49
+ ...attributes
50
+ {{on "blur" (fn this.setIsTouched true)}}
51
+ {{on "input" this.handleChange}}
52
+ >
53
+ <:prepend as |classes|>
54
+ {{yield classes to="prepend"}}
55
+ </:prepend>
56
+ <:append as |classes|>
57
+ {{yield classes to="append"}}
58
+ </:append>
59
+ </EuiFieldNumber>
60
+ </:field>
54
61
  </EuiFormRow>
55
- {{/let}}
62
+ {{/let}}
@@ -14,36 +14,42 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiFieldPassword
21
- class={{@fieldClasses}}
22
- form={{@formId}}
23
- aria-label={{@ariaLabel}}
24
- @isInvalid={{this.isInvalidAndTouched}}
25
- @fullWidth={{@fullWidth}}
26
- @isLoading={{@isLoading}}
27
- @compressed={{@compressed}}
28
- @inputRef={{@inputRef}}
29
- @value={{@value}}
30
- @type={{@type}}
31
- @id={{theId}}
32
- @disabled={{@disabled}}
33
- @isFakePrependBlock={{not (has-block "prepend")}}
34
- @isFakeAppendBlock={{not (has-block "append")}}
35
- autofocus={{@autofocus}}
36
- placeholder={{@placeholder}}
37
- ...attributes
38
- {{on "blur" (fn this.setIsTouched true)}}
39
- {{on "input" this.handleChange}}
40
- >
41
- <:prepend as |classes|>
42
- {{yield classes to="prepend"}}
43
- </:prepend>
44
- <:append as |classes|>
45
- {{yield classes to="append"}}
46
- </:append>
47
- </EuiFieldPassword>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ <EuiFieldPassword
26
+ class={{@fieldClasses}}
27
+ form={{@formId}}
28
+ aria-label={{@ariaLabel}}
29
+ @isInvalid={{this.isInvalidAndTouched}}
30
+ @fullWidth={{@fullWidth}}
31
+ @isLoading={{@isLoading}}
32
+ @compressed={{@compressed}}
33
+ @inputRef={{@inputRef}}
34
+ @value={{@value}}
35
+ @type={{@type}}
36
+ @id={{theId}}
37
+ @disabled={{@disabled}}
38
+ @isFakePrependBlock={{not (has-block "prepend")}}
39
+ @isFakeAppendBlock={{not (has-block "append")}}
40
+ autofocus={{@autofocus}}
41
+ placeholder={{@placeholder}}
42
+ ...attributes
43
+ {{on "blur" (fn this.setIsTouched true)}}
44
+ {{on "input" this.handleChange}}
45
+ >
46
+ <:prepend as |classes|>
47
+ {{yield classes to="prepend"}}
48
+ </:prepend>
49
+ <:append as |classes|>
50
+ {{yield classes to="append"}}
51
+ </:append>
52
+ </EuiFieldPassword>
53
+ </:field>
48
54
  </EuiFormRow>
49
55
  {{/let}}
@@ -14,25 +14,31 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiRadioGroup
21
- class={{@fieldClasses}}
22
- @formId={{@formId}}
23
- aria-label={{@ariaLabel}}
24
- @disabled={{@disabled}}
25
- @valueKey={{@valueKey}}
26
- @labelKey={{@labelKey}}
27
- @compressed={{@compressed}}
28
- @name={{@name}}
29
- @options={{this.options}}
30
- @idSelected={{this.value}}
31
- @legend={{@legend}}
32
- @id={{theId}}
33
- @onChange={{this.handleChange}}
34
- autofocus={{@autofocus}}
35
- ...attributes
36
- />
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ <EuiRadioGroup
26
+ class={{@fieldClasses}}
27
+ @formId={{@formId}}
28
+ aria-label={{@ariaLabel}}
29
+ @disabled={{@disabled}}
30
+ @valueKey={{@valueKey}}
31
+ @labelKey={{@labelKey}}
32
+ @compressed={{@compressed}}
33
+ @name={{@name}}
34
+ @options={{this.options}}
35
+ @idSelected={{this.value}}
36
+ @legend={{@legend}}
37
+ @id={{theId}}
38
+ @onChange={{this.handleChange}}
39
+ autofocus={{@autofocus}}
40
+ ...attributes
41
+ />
42
+ </:field>
37
43
  </EuiFormRow>
38
44
  {{/let}}
@@ -14,72 +14,79 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiRange
21
- class={{@fieldClasses}}
22
- form={{@formId}}
23
- @compressed={{@compressed}}
24
- @readOnly={{@readOnly}}
25
- @fullWidth={{@fullWidth}}
26
- @id={{theId}}
27
- @levels={{@levels}}
28
- @step={{@step}}
29
- @showInput={{@showInput}}
30
- @showLabels={{@showLabels}}
31
- @showRange={{@showRange}}
32
- @showTicks={{@showTicks}}
33
- @showValue={{@showValue}}
34
- @disabled={{@disabled}}
35
- @ticks={{@ticks}}
36
- @tickInternval={{@tickInternval}}
37
- @valuePrepend={{@valuePrepend}}
38
- @valueAppend={{@valueAppend}}
39
- @onChange={{this.handleChange}}
40
- @value={{@value}}
41
- @max={{@max}}
42
- @isLoading={{@isLoading}}
43
- @min={{@min}}
44
- @icon={{@icon}}
45
- @side={{@side}}
46
- @isInvalid={{this.isInvalidAndTouched}}
47
- @inputRef={{@inputRef}}
48
- @controlOnly={{@controlOnly}}
49
- @autoSize={{@autoSize}}
50
- @isPrependProvided={{has-block "prepend"}}
51
- @isAppendProvided={{has-block "append"}}
52
- @isFakeMinBlock={{not (has-block "min")}}
53
- @isFakeMaxBlock={{not (has-block "max")}}
54
- @isFakeValueBlock={{not (has-block "value")}}
55
- @isFakeValuePrependBlock={{not (has-block "valuePrepend")}}
56
- @isFakeValueAppendBlock={{not (has-block "valueAppend")}}
57
- aria-label={{@ariaLabel}}
58
- autofocus={{@autofocus}}
59
- ...attributes
60
- {{on "blur" (fn this.setIsTouched true)}}
61
- >
62
- <:prepend as |classes|>
63
- {{yield classes to="prepend"}}
64
- </:prepend>
65
- <:min>
66
- {{yield to="min"}}
67
- </:min>
68
- <:valuePrepend>
69
- {{yield to="valuePrepend"}}
70
- </:valuePrepend>
71
- <:value>
72
- {{yield to="value"}}
73
- </:value>
74
- <:valueAppend>
75
- {{yield to="valueAppend"}}
76
- </:valueAppend>
77
- <:max>
78
- {{yield to="max"}}
79
- </:max>
80
- <:append as |classes|>
81
- {{yield classes to="append"}}
82
- </:append>
83
- </EuiRange>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+
25
+ <:field>
26
+ <EuiRange
27
+ class={{@fieldClasses}}
28
+ form={{@formId}}
29
+ @compressed={{@compressed}}
30
+ @readOnly={{@readOnly}}
31
+ @fullWidth={{@fullWidth}}
32
+ @id={{theId}}
33
+ @levels={{@levels}}
34
+ @step={{@step}}
35
+ @showInput={{@showInput}}
36
+ @showLabels={{@showLabels}}
37
+ @showRange={{@showRange}}
38
+ @showTicks={{@showTicks}}
39
+ @showValue={{@showValue}}
40
+ @disabled={{@disabled}}
41
+ @ticks={{@ticks}}
42
+ @tickInternval={{@tickInternval}}
43
+ @valuePrepend={{@valuePrepend}}
44
+ @valueAppend={{@valueAppend}}
45
+ @onChange={{this.handleChange}}
46
+ @value={{@value}}
47
+ @max={{@max}}
48
+ @isLoading={{@isLoading}}
49
+ @min={{@min}}
50
+ @icon={{@icon}}
51
+ @side={{@side}}
52
+ @isInvalid={{this.isInvalidAndTouched}}
53
+ @inputRef={{@inputRef}}
54
+ @controlOnly={{@controlOnly}}
55
+ @autoSize={{@autoSize}}
56
+ @isPrependProvided={{has-block "prepend"}}
57
+ @isAppendProvided={{has-block "append"}}
58
+ @isFakeMinBlock={{not (has-block "min")}}
59
+ @isFakeMaxBlock={{not (has-block "max")}}
60
+ @isFakeValueBlock={{not (has-block "value")}}
61
+ @isFakeValuePrependBlock={{not (has-block "valuePrepend")}}
62
+ @isFakeValueAppendBlock={{not (has-block "valueAppend")}}
63
+ aria-label={{@ariaLabel}}
64
+ autofocus={{@autofocus}}
65
+ ...attributes
66
+ {{on "blur" (fn this.setIsTouched true)}}
67
+ >
68
+ <:prepend as |classes|>
69
+ {{yield classes to="prepend"}}
70
+ </:prepend>
71
+ <:min>
72
+ {{yield to="min"}}
73
+ </:min>
74
+ <:valuePrepend>
75
+ {{yield to="valuePrepend"}}
76
+ </:valuePrepend>
77
+ <:value>
78
+ {{yield to="value"}}
79
+ </:value>
80
+ <:valueAppend>
81
+ {{yield to="valueAppend"}}
82
+ </:valueAppend>
83
+ <:max>
84
+ {{yield to="max"}}
85
+ </:max>
86
+ <:append as |classes|>
87
+ {{yield classes to="append"}}
88
+ </:append>
89
+ </EuiRange>
90
+ </:field>
84
91
  </EuiFormRow>
85
- {{/let}}
92
+ {{/let}}
@@ -14,36 +14,43 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiSelect
21
- aria-label={{@ariaLabel}}
22
- class={{@fieldClasses}}
23
- form={{@formId}}
24
- @options={{this.options}}
25
- @isInvalid={{this.isInvalidAndTouchedh}}
26
- @fullWidth={{@fullWidth}}
27
- @isLoading={{@isLoading}}
28
- @hasNoInitialSelection={{@hasNoInitialSelection}}
29
- @inputRef={{@inputRef}}
30
- @disabled={{@disabled}}
31
- @value={{@value}}
32
- @compressed={{@compressed}}
33
- @isFakePrependBlock={{not (has-block "prepend")}}
34
- @isFakeAppendBlock={{not (has-block "append")}}
35
- @id={{theId}}
36
- autofocus={{@autofocus}}
37
- ...attributes
38
- {{on "blur" (fn this.setIsTouched true)}}
39
- {{on "change" this.handleChange}}
40
- >
41
- <:prepend as |classes|>
42
- {{yield classes to="prepend"}}
43
- </:prepend>
44
- <:append as |classes|>
45
- {{yield classes to="append"}}
46
- </:append>
47
- </EuiSelect>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+
25
+ <:field>
26
+ <EuiSelect
27
+ aria-label={{@ariaLabel}}
28
+ class={{@fieldClasses}}
29
+ form={{@formId}}
30
+ @options={{this.options}}
31
+ @isInvalid={{this.isInvalidAndTouchedh}}
32
+ @fullWidth={{@fullWidth}}
33
+ @isLoading={{@isLoading}}
34
+ @hasNoInitialSelection={{@hasNoInitialSelection}}
35
+ @inputRef={{@inputRef}}
36
+ @disabled={{@disabled}}
37
+ @value={{@value}}
38
+ @compressed={{@compressed}}
39
+ @isFakePrependBlock={{not (has-block "prepend")}}
40
+ @isFakeAppendBlock={{not (has-block "append")}}
41
+ @id={{theId}}
42
+ autofocus={{@autofocus}}
43
+ ...attributes
44
+ {{on "blur" (fn this.setIsTouched true)}}
45
+ {{on "change" this.handleChange}}
46
+ >
47
+ <:prepend as |classes|>
48
+ {{yield classes to="prepend"}}
49
+ </:prepend>
50
+ <:append as |classes|>
51
+ {{yield classes to="append"}}
52
+ </:append>
53
+ </EuiSelect>
54
+ </:field>
48
55
  </EuiFormRow>
49
56
  {{/let}}
@@ -14,28 +14,34 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiSwitch
21
- class={{@fieldClasses}}
22
- form={{@formId}}
23
- aria-label={{@ariaLabel}}
24
- @id={{theId}}
25
- @showLabel={{@showLabel}}
26
- @label={{@switchLabel}}
27
- @checked={{@value}}
28
- @onChange={{this.handleChange}}
29
- @isFakeLabelBlock={{not (has-block "label")}}
30
- @disabled={{@disabled}}
31
- @compressed={{@compressed}}
32
- @type={{@type}}
33
- {{on "blur" (fn this.setIsTouched true)}}
34
- ...attributes
35
- >
36
- <:label>
37
- {{yield to="label"}}
38
- </:label>
39
- </EuiSwitch>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ <EuiSwitch
26
+ class={{@fieldClasses}}
27
+ form={{@formId}}
28
+ aria-label={{@ariaLabel}}
29
+ @id={{theId}}
30
+ @showLabel={{@showLabel}}
31
+ @label={{@switchLabel}}
32
+ @checked={{@value}}
33
+ @onChange={{this.handleChange}}
34
+ @isFakeLabelBlock={{not (has-block "switch-label")}}
35
+ @disabled={{@disabled}}
36
+ @compressed={{@compressed}}
37
+ @type={{@type}}
38
+ {{on "blur" (fn this.setIsTouched true)}}
39
+ ...attributes
40
+ >
41
+ <:label>
42
+ {{yield to="switch-label"}}
43
+ </:label>
44
+ </EuiSwitch>
45
+ </:field>
40
46
  </EuiFormRow>
41
47
  {{/let}}
@@ -14,39 +14,45 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiFieldText
21
- class={{@fieldClasses}}
22
- aria-label={{@ariaLabel}}
23
- form={{@formId}}
24
- @value={{@value}}
25
- @icon={{@icon}}
26
- @isInvalid={{this.isInvalidAndTouched}}
27
- @fullWidth={{@fullWidth}}
28
- @isLoading={{@isLoading}}
29
- @disabled={{@disabled}}
30
- @readOnly={{@readOnly}}
31
- @inputRef={{@inputRef}}
32
- @controlOnly={{@controlOnly}}
33
- @compressed={{@compressed}}
34
- @clear={{@clear}}
35
- @id={{theId}}
36
- @isFakePrependBlock={{not (has-block "prepend")}}
37
- @isFakeAppendBlock={{not (has-block "append")}}
38
- autofocus={{@autofocus}}
39
- placeholder={{@placeholder}}
40
- ...attributes
41
- {{on "blur" (fn this.setIsTouched true)}}
42
- {{on "input" this.handleChange}}
43
- >
44
- <:prepend as |classes|>
45
- {{yield classes to="prepend"}}
46
- </:prepend>
47
- <:append as |classes|>
48
- {{yield classes to="append"}}
49
- </:append>
50
- </EuiFieldText>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ <EuiFieldText
26
+ class={{@fieldClasses}}
27
+ aria-label={{@ariaLabel}}
28
+ form={{@formId}}
29
+ @value={{@value}}
30
+ @icon={{@icon}}
31
+ @isInvalid={{this.isInvalidAndTouched}}
32
+ @fullWidth={{@fullWidth}}
33
+ @isLoading={{@isLoading}}
34
+ @disabled={{@disabled}}
35
+ @readOnly={{@readOnly}}
36
+ @inputRef={{@inputRef}}
37
+ @controlOnly={{@controlOnly}}
38
+ @compressed={{@compressed}}
39
+ @clear={{@clear}}
40
+ @id={{theId}}
41
+ @isFakePrependBlock={{not (has-block "prepend")}}
42
+ @isFakeAppendBlock={{not (has-block "append")}}
43
+ autofocus={{@autofocus}}
44
+ placeholder={{@placeholder}}
45
+ ...attributes
46
+ {{on "blur" (fn this.setIsTouched true)}}
47
+ {{on "input" this.handleChange}}
48
+ >
49
+ <:prepend as |classes|>
50
+ {{yield classes to="prepend"}}
51
+ </:prepend>
52
+ <:append as |classes|>
53
+ {{yield classes to="append"}}
54
+ </:append>
55
+ </EuiFieldText>
56
+ </:field>
51
57
  </EuiFormRow>
52
58
  {{/let}}
@@ -14,34 +14,40 @@
14
14
  @error={{this.validationErrorMessages}}
15
15
  @helpText={{@helpText}}
16
16
  @errorClasses={{@errorClasses}}
17
+ @isFakeLabelBlock={{not (has-block "label")}}
17
18
  {{did-insert this.setValidationMessages}}
18
19
  {{did-update this.didUpdateValue @value}}
19
20
  >
20
- <EuiTextArea
21
- class={{@fieldClasses}}
22
- form={{@formId}}
23
- aria-label={{@ariaLabel}}
24
- @value={{@value}}
25
- @isInvalid={{this.isInvalidAndTouched}}
26
- @fullWidth={{@fullWidth}}
27
- @compressed={{@compressed}}
28
- @resize={{@resize}}
29
- @disabled={{@disabled}}
30
- @inputRef={{@inputRef}}
31
- @id={{theId}}
32
- @rows={{@rows}}
33
- autofocus={{@autofocus}}
34
- placeholder={{@placeholder}}
35
- ...attributes
36
- {{on "blur" (fn this.setIsTouched true)}}
37
- {{on "input" this.handleChange}}
38
- >
39
- <:prepend as |classes|>
40
- {{yield classes to="prepend"}}
41
- </:prepend>
42
- <:append as |classes|>
43
- {{yield classes to="append"}}
44
- </:append>
45
- </EuiTextArea>
21
+ <:label>
22
+ {{yield to="label"}}
23
+ </:label>
24
+ <:field>
25
+ <EuiTextArea
26
+ class={{@fieldClasses}}
27
+ form={{@formId}}
28
+ aria-label={{@ariaLabel}}
29
+ @value={{@value}}
30
+ @isInvalid={{this.isInvalidAndTouched}}
31
+ @fullWidth={{@fullWidth}}
32
+ @compressed={{@compressed}}
33
+ @resize={{@resize}}
34
+ @disabled={{@disabled}}
35
+ @inputRef={{@inputRef}}
36
+ @id={{theId}}
37
+ @rows={{@rows}}
38
+ autofocus={{@autofocus}}
39
+ placeholder={{@placeholder}}
40
+ ...attributes
41
+ {{on "blur" (fn this.setIsTouched true)}}
42
+ {{on "input" this.handleChange}}
43
+ >
44
+ <:prepend as |classes|>
45
+ {{yield classes to="prepend"}}
46
+ </:prepend>
47
+ <:append as |classes|>
48
+ {{yield classes to="append"}}
49
+ </:append>
50
+ </EuiTextArea>
51
+ </:field>
46
52
  </EuiFormRow>
47
53
  {{/let}}
@@ -119,8 +119,11 @@ ember-valitador validator, <EuiCode>length</EuiCode>, <EuiCode>presence</EuiCode
119
119
  @value={{this.data.fieldPassword}}
120
120
  @onChange={{set this.data 'fieldPassword'}}
121
121
  @validations={{hash presence=(hash presence=true)}}
122
- @label='Field password'
123
- />
122
+ >
123
+ <:label>
124
+ Field password
125
+ </:label>
126
+ </Form.FieldPassword>
124
127
  <Form.FieldTextArea
125
128
  @value={{this.data.fieldTextArea}}
126
129
  @onChange={{set this.data 'fieldTextArea'}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/validated-form",
3
- "version": "5.16.1",
3
+ "version": "5.17.0",
4
4
  "description": "The default blueprint for ember-cli addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -28,7 +28,7 @@
28
28
  "postpack": "ember ts:clean"
29
29
  },
30
30
  "dependencies": {
31
- "@ember-eui/core": "^5.16.1",
31
+ "@ember-eui/core": "^5.17.0",
32
32
  "ember-cli-babel": "^7.26.11",
33
33
  "ember-cli-htmlbars": "^6.0.1",
34
34
  "ember-cli-typescript": "4.2.1",
@@ -115,5 +115,5 @@
115
115
  "volta": {
116
116
  "extends": "../../package.json"
117
117
  },
118
- "gitHead": "f415ac77a1e3db648b96f9c4f077230c97b84673"
118
+ "gitHead": "eae2162b0c491abe81ec6caf9f42c95e1b55400a"
119
119
  }