@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.
- package/addon/components/validated-form/field-checkbox-group/index.hbs +25 -18
- package/addon/components/validated-form/field-combo-box/index.hbs +43 -37
- package/addon/components/validated-form/field-dual-range-slider/index.hbs +59 -52
- package/addon/components/validated-form/field-markdown-editor/index.hbs +39 -33
- package/addon/components/validated-form/field-number/index.hbs +42 -35
- package/addon/components/validated-form/field-password/index.hbs +34 -28
- package/addon/components/validated-form/field-radio-group/index.hbs +23 -17
- package/addon/components/validated-form/field-range-slider/index.hbs +72 -65
- package/addon/components/validated-form/field-select/index.hbs +35 -28
- package/addon/components/validated-form/field-switch/index.hbs +26 -20
- package/addon/components/validated-form/field-text/index.hbs +37 -31
- package/addon/components/validated-form/field-text-area/index.hbs +32 -26
- package/docs/validated-form-demo/demo1.md +5 -2
- package/package.json +3 -3
|
@@ -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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
{{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
63
|
-
{{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{{
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
{{
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
{{
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
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": "
|
|
118
|
+
"gitHead": "eae2162b0c491abe81ec6caf9f42c95e1b55400a"
|
|
119
119
|
}
|