@ember-eui/validated-form 1.2.3 → 1.3.3

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.
@@ -32,6 +32,7 @@
32
32
  aria-label={{@ariaLabel}}
33
33
  form={{@formId}}
34
34
  @isInvalid={{this.isInvalidAndTouched}}
35
+ @isClearable={{@isClearable}}
35
36
  @fullWidth={{@fullWidth}}
36
37
  @isLoading={{@isLoading}}
37
38
  @readOnly={{@readOnly}}
@@ -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}}
@@ -0,0 +1,3 @@
1
+ import ValidatedFormFieldBase from '../field-base';
2
+
3
+ export default class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase {}
@@ -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.2.3",
3
+ "version": "1.3.3",
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.2.3",
28
+ "@ember-eui/core": "^1.3.3",
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:betocantu93/ember-svg-jar#add-bundle-flag",
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": "237b2b1b7e237ad49d035e4b72c590e3c43bd611"
107
+ "gitHead": "dd9fe0c7f4587eb88bdf6191ff445e78c7d221ec"
108
108
  }