@ember-eui/validated-form 1.2.5 → 1.3.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/validated-form/field-markdown-editor/index.hbs +36 -0
- package/addon/components/validated-form/field-markdown-editor/index.js +3 -0
- package/addon/components/validated-form/index.hbs +10 -0
- package/app/components/validated-form/field-markdown-editor/index.js +1 -0
- package/docs/validated-form-usage-demo/demo1.md +7 -0
- package/package.json +4 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{{#let (arg-or-default @id (unique-id)) as |theId|}}
|
|
2
|
+
<EuiFormRow
|
|
3
|
+
class={{@rowClasses}}
|
|
4
|
+
@extra={{this.rowExtra}}
|
|
5
|
+
@labelType={{@labelType}}
|
|
6
|
+
@display={{@display}}
|
|
7
|
+
@hasEmptyLabelSpace={{@hasEmptyLabelSpace}}
|
|
8
|
+
@fullWidth={{@fullWidth}}
|
|
9
|
+
@hasChildLabel={{@hasChildLabel}}
|
|
10
|
+
@label={{this.label}}
|
|
11
|
+
@labelAppend={{@labelAppend}}
|
|
12
|
+
@id={{theId}}
|
|
13
|
+
@isInvalid={{this.isInvalidAndTouched}}
|
|
14
|
+
@error={{this.validationErrorMessages}}
|
|
15
|
+
@helpText={{@helpText}}
|
|
16
|
+
@errorClasses={{@errorClasses}}
|
|
17
|
+
{{did-insert this.setValidationMessages}}
|
|
18
|
+
{{did-update this.didUpdateValue @value}}
|
|
19
|
+
>
|
|
20
|
+
<EuiMarkdownEditor
|
|
21
|
+
class={{@fieldClasses}}
|
|
22
|
+
form={{@formId}}
|
|
23
|
+
aria-label={{@ariaLabel}}
|
|
24
|
+
@value={{@value}}
|
|
25
|
+
@isInvalid={{this.isInvalidAndTouched}}
|
|
26
|
+
@fullWidth={{@fullWidth}}
|
|
27
|
+
@disabled={{@disabled}}
|
|
28
|
+
@editorId={{theId}}
|
|
29
|
+
autofocus={{@autofocus}}
|
|
30
|
+
placeholder={{@placeholder}}
|
|
31
|
+
...attributes
|
|
32
|
+
{{on "blur" (fn this.setIsTouched true)}}
|
|
33
|
+
{{on "input" this.handleChange}}
|
|
34
|
+
/>
|
|
35
|
+
</EuiFormRow>
|
|
36
|
+
{{/let}}
|
|
@@ -132,6 +132,16 @@
|
|
|
132
132
|
formId=formId
|
|
133
133
|
disabled=@isDisabled
|
|
134
134
|
)
|
|
135
|
+
FieldMarkdownEditor=(component
|
|
136
|
+
"validated-form/field-markdown-editor"
|
|
137
|
+
register=this.register
|
|
138
|
+
unregister=this.unregister
|
|
139
|
+
formHasBeenValidated=this.formHasBeenValidated
|
|
140
|
+
onValidityChange=this.onChildValidityChange
|
|
141
|
+
fullWidth=@fullWidth
|
|
142
|
+
formId=formId
|
|
143
|
+
disabled=@isDisabled
|
|
144
|
+
)
|
|
135
145
|
)
|
|
136
146
|
}}
|
|
137
147
|
</EuiForm>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from '@ember-eui/validated-form/components/validated-form/field-markdown-editor';
|
|
@@ -18,6 +18,13 @@ ember-valitador validator, `length`, `presence`, `number` and the values, the `c
|
|
|
18
18
|
format=(hash type='email')
|
|
19
19
|
}}
|
|
20
20
|
/>
|
|
21
|
+
<Form.FieldMarkdownEditor
|
|
22
|
+
@value={{this.data.markdownText}}
|
|
23
|
+
@label='Markdown'
|
|
24
|
+
@onChange={{set this.data 'markdownText'}}
|
|
25
|
+
@validations={{hash presence=(hash presence=true)}}
|
|
26
|
+
@error={{array "one error"}}
|
|
27
|
+
/>
|
|
21
28
|
<Form.FieldSelect
|
|
22
29
|
@onChange={{set this.data 'fieldSelect'}}
|
|
23
30
|
@value={{this.data.fieldSelect}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ember-eui/validated-form",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "The default blueprint for ember-cli addons.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"postpack": "ember ts:clean"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ember-eui/core": "^1.
|
|
28
|
+
"@ember-eui/core": "^1.3.5",
|
|
29
29
|
"ember-cli-babel": "^7.21.0",
|
|
30
30
|
"ember-cli-htmlbars": "^5.2.0",
|
|
31
31
|
"ember-cli-typescript": "^4.1.0",
|
|
32
32
|
"ember-composable-helpers": "^4.4.1",
|
|
33
33
|
"ember-get-config": "^0.3.0",
|
|
34
34
|
"ember-named-blocks-polyfill": "^0.2.3",
|
|
35
|
-
"ember-svg-jar": "github
|
|
35
|
+
"ember-svg-jar": "https://github.com/betocantu93/ember-svg-jar.git#add-bundle-flag",
|
|
36
36
|
"ember-validators": "github:betocantu93/ember-validators#dont-mutate"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
@@ -104,5 +104,5 @@
|
|
|
104
104
|
"volta": {
|
|
105
105
|
"node": "12.22.1"
|
|
106
106
|
},
|
|
107
|
-
"gitHead": "
|
|
107
|
+
"gitHead": "93a5c9c6617c34c8851c48aba32380ad6ee9e945"
|
|
108
108
|
}
|