@ember-eui/validated-form 12.0.3 → 12.0.4

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.
Files changed (49) hide show
  1. package/declarations/components/validated-form/field-checkbox-group.d.ts +2 -1
  2. package/declarations/components/validated-form/field-checkbox-group.d.ts.map +1 -1
  3. package/declarations/components/validated-form/field-combo-box.d.ts +1 -0
  4. package/declarations/components/validated-form/field-combo-box.d.ts.map +1 -1
  5. package/declarations/components/validated-form/field-dual-range-slider.d.ts +1 -0
  6. package/declarations/components/validated-form/field-dual-range-slider.d.ts.map +1 -1
  7. package/declarations/components/validated-form/field-markdown-editor.d.ts +1 -0
  8. package/declarations/components/validated-form/field-markdown-editor.d.ts.map +1 -1
  9. package/declarations/components/validated-form/field-number.d.ts +1 -0
  10. package/declarations/components/validated-form/field-number.d.ts.map +1 -1
  11. package/declarations/components/validated-form/field-password.d.ts +1 -0
  12. package/declarations/components/validated-form/field-password.d.ts.map +1 -1
  13. package/declarations/components/validated-form/field-radio-group.d.ts +1 -0
  14. package/declarations/components/validated-form/field-radio-group.d.ts.map +1 -1
  15. package/declarations/components/validated-form/field-range-slider.d.ts +1 -0
  16. package/declarations/components/validated-form/field-range-slider.d.ts.map +1 -1
  17. package/declarations/components/validated-form/field-select.d.ts +1 -0
  18. package/declarations/components/validated-form/field-select.d.ts.map +1 -1
  19. package/declarations/components/validated-form/field-switch.d.ts +1 -0
  20. package/declarations/components/validated-form/field-switch.d.ts.map +1 -1
  21. package/declarations/components/validated-form/field-text-area.d.ts +1 -0
  22. package/declarations/components/validated-form/field-text-area.d.ts.map +1 -1
  23. package/declarations/components/validated-form/field-text.d.ts +1 -0
  24. package/declarations/components/validated-form/field-text.d.ts.map +1 -1
  25. package/dist/components/validated-form/field-checkbox-group.js +1 -1
  26. package/dist/components/validated-form/field-checkbox-group.js.map +1 -1
  27. package/dist/components/validated-form/field-combo-box.js +1 -1
  28. package/dist/components/validated-form/field-combo-box.js.map +1 -1
  29. package/dist/components/validated-form/field-dual-range-slider.js +1 -1
  30. package/dist/components/validated-form/field-dual-range-slider.js.map +1 -1
  31. package/dist/components/validated-form/field-markdown-editor.js +1 -1
  32. package/dist/components/validated-form/field-markdown-editor.js.map +1 -1
  33. package/dist/components/validated-form/field-number.js +1 -1
  34. package/dist/components/validated-form/field-number.js.map +1 -1
  35. package/dist/components/validated-form/field-password.js +1 -1
  36. package/dist/components/validated-form/field-password.js.map +1 -1
  37. package/dist/components/validated-form/field-radio-group.js +1 -1
  38. package/dist/components/validated-form/field-radio-group.js.map +1 -1
  39. package/dist/components/validated-form/field-range-slider.js +1 -1
  40. package/dist/components/validated-form/field-range-slider.js.map +1 -1
  41. package/dist/components/validated-form/field-select.js +1 -1
  42. package/dist/components/validated-form/field-select.js.map +1 -1
  43. package/dist/components/validated-form/field-switch.js +1 -1
  44. package/dist/components/validated-form/field-switch.js.map +1 -1
  45. package/dist/components/validated-form/field-text-area.js +1 -1
  46. package/dist/components/validated-form/field-text-area.js.map +1 -1
  47. package/dist/components/validated-form/field-text.js +1 -1
  48. package/dist/components/validated-form/field-text.js.map +1 -1
  49. package/package.json +3 -3
@@ -14,7 +14,8 @@ export interface FieldCheckboxGroupSignature {
14
14
  placeholder?: string;
15
15
  };
16
16
  Blocks: {
17
- label: [...EuiFormRowSignature['Blocks']['label']];
17
+ label: EuiFormRowSignature['Blocks']['label'];
18
+ helpText: EuiFormRowSignature['Blocks']['helpText'];
18
19
  };
19
20
  }
20
21
  export default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase<FieldCheckboxGroupSignature> {
@@ -1 +1 @@
1
- {"version":3,"file":"field-checkbox-group.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-checkbox-group.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAy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AK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,yBAAyB,CAAC,MAAM,CAAC,GAAG;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;KACrD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,sBAAsB,CAAC,2BAA2B,CAAC;IAC9G,IAAI,KAAK,IAAI,MAAM,EAAE,CAIpB;IAED,IAAI,UAAU;;MAIb;IAED,cAAc,CAAC,KAAK,GAAE,MAAM,EAAO;;;IAenC,YAAY,CAAC,QAAQ,EAAE,MAAM;CA0D9B"}
@@ -17,6 +17,7 @@ export interface FieldComboBoxSignature {
17
17
  };
18
18
  Blocks: {
19
19
  label: EuiFormRowSignature['Blocks']['label'];
20
+ helpText: EuiFormRowSignature['Blocks']['helpText'];
20
21
  default: EuiComboBoxSignature['Blocks']['default'];
21
22
  };
22
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"field-combo-box.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field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,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;IACpG,kBAAkB,SAA0B;IAI5C,YAAY,CAAC,OAAO,EAAE,GAAG,EAAE;CAkD5B"}
@@ -20,6 +20,7 @@ export interface FieldDualRangeSliderSignature {
20
20
  };
21
21
  Blocks: {
22
22
  label: [];
23
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
23
24
  prepend: [...EuiDualRangeSignature['Blocks']['prepend']];
24
25
  min: [...EuiDualRangeSignature['Blocks']['min']];
25
26
  append: [...EuiDualRangeSignature['Blocks']['append']];
@@ -1 +1 @@
1
- {"version":3,"file":"field-dual-range-slider.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-dual-range-slider.ts"],"names":[],"mappings":"AAYA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EACV,qBAAqB,EACrB,WAAW,EACZ,MAAM,2CAA2C,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,6BAA6B;IAC5C,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC1C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,qBAAqB,CAAC,MAAM,CAAC,GAAG;QAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,SAAS,CAAC,EAAE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AC,EAC7B,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,KAAK;CAoEhB"}
@@ -17,6 +17,7 @@ export interface FieldMarkdownEditorSignature {
17
17
  };
18
18
  Blocks: {
19
19
  label: [...EuiFormRowSignature['Blocks']['label']];
20
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
20
21
  };
21
22
  }
22
23
  export default class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase<FieldMarkdownEditorSignature> {
@@ -1 +1 @@
1
- {"version":3,"file":"field-markdown-editor.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-markdown-editor.ts"],"names":[],"mappings":"AAaA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC/C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,0BAA0B,CAAC,MAAM,CAAC,GAAG;QACnC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,aAAa,CAAA;KAChC,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;KACpD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,gCAAiC,SAAQ,sBAAsB,CAAC,4BAA4B,CAAC;IAGhH,YAAY,CAAC,GAAG,EAAE,MAAM;CAoDzB"}
1
+ {"version":3,"file":"field-markdown-editor.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-markdown-editor.ts"],"names":[],"mappings":"AAaA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC/C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,0BAA0B,CAAC,MAAM,CAAC,GAAG;QACnC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,aAAa,CAAA;KAChC,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,gCAAiC,SAAQ,sBAAsB,CAAC,4BAA4B,CAAC;IAGhH,YAAY,CAAC,GAAG,EAAE,MAAM;CAwDzB"}
@@ -15,6 +15,7 @@ export interface FieldNumberSignature {
15
15
  };
16
16
  Blocks: {
17
17
  label: [...EuiFormRowSignature['Blocks']['label']];
18
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
18
19
  prepend: [...EuiFieldNumberSignature['Blocks']['prepend']];
19
20
  append: [...EuiFieldNumberSignature['Blocks']['append']];
20
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"field-number.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-number.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,uBAAuB,CAAC,MAAM,CAAC,GAAG;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,E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,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAC3D,MAAM,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,CAAC;CAsDjG"}
@@ -15,6 +15,7 @@ export interface FieldPasswordSignature {
15
15
  };
16
16
  Blocks: {
17
17
  label: [...EuiFormRowSignature['Blocks']['label']];
18
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
18
19
  prepend: [...EuiFieldPasswordSignature['Blocks']['prepend']];
19
20
  append: [...EuiFieldPasswordSignature['Blocks']['append']];
20
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"field-password.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-password.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,C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AAM,CAAC,GAAG;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7D,MAAM,EAAE,CAAC,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC5D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;CAsDrG"}
@@ -14,6 +14,7 @@ export interface FieldRadioGroupSignature {
14
14
  };
15
15
  Blocks: {
16
16
  label: [...EuiFormRowSignature['Blocks']['label']];
17
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
17
18
  };
18
19
  }
19
20
  export default class ValidatedFormFieldRadioGroup extends ValidatedFormFieldBase<FieldRadioGroupSignature> {
@@ -1 +1 @@
1
- {"version":3,"file":"field-radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-radio-group.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC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;AAEzF,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,sBAAsB,CAAC,MAAM,CAAC,GAAG;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,sBAAsB,CAAC,wBAAwB,CAAC;IACxG,IAAI,KAAK,QAIR;IAED,IAAI,UAAU;;MAIb;IAED,cAAc,CAAC,KAAK,UAAK;;;IAezB,YAAY,CAAC,QAAQ,EAAE,MAAM;CAwD9B"}
@@ -14,6 +14,7 @@ export interface FieldRangeSliderSignature {
14
14
  };
15
15
  Blocks: {
16
16
  label: [];
17
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
17
18
  prepend: [...EuiRangeSignature['Blocks']['prepend']];
18
19
  min: [...EuiRangeSignature['Blocks']['min']];
19
20
  valuePrepend: [...EuiRangeSignature['Blocks']['valuePrepend']];
@@ -1 +1 @@
1
- {"version":3,"file":"field-range-slider.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-range-slider.ts"],"names":[],"mappings":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CAAC,CAAC,CAAC;QACrD,GAAG,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7C,YAAY,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;QAC/D,KAAK,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACjD,WAAW,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7D,MAAM,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnD,GAAG,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,sBAAsB,CAAC,yBAAyB,CAAC;CAwE3G"}
@@ -14,6 +14,7 @@ export interface FieldSelectSignature {
14
14
  };
15
15
  Blocks: {
16
16
  label: [];
17
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
17
18
  prepend: [...EuiSelectSignature['Blocks']['prepend']];
18
19
  append: [...EuiSelectSignature['Blocks']['append']];
19
20
  };
@@ -1 +1 @@
1
- {"version":3,"file":"field-select.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-select.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,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C3B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACtD,MAAM,EAAE,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KACrD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,CAAC;CAqDjG"}
@@ -15,6 +15,7 @@ export interface FieldSwitchSignature {
15
15
  };
16
16
  Blocks: {
17
17
  label: [];
18
+ helpText: EuiFormRowSignature['Blocks']['helpText'];
18
19
  'switch-label': [];
19
20
  };
20
21
  }
@@ -1 +1 @@
1
- {"version":3,"file":"field-switch.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-switch.ts"],"names":[],"mappings":"AAYA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC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pB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,WAAW,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;QAClD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;QACpD,cAAc,EAAE,EAAE,CAAC;KACpB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,CAAC;IAEhG,YAAY,CAAC,CAAC,EAAE,UAAU;CAuD3B"}
@@ -21,6 +21,7 @@ export interface FieldTextAreaSignature extends FieldBaseSignature {
21
21
  };
22
22
  Blocks: {
23
23
  label: [];
24
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
24
25
  default: [...EuiTextAreaSignature['Blocks']['default']];
25
26
  };
26
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"field-text-area.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-text-area.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,oBAAoB,CAAC,MAAM,CAAC,GAAG;QAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;QACrD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,aAAa,CAAC;QAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;KACnD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;KACzD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;CA8CrG"}
1
+ {"version":3,"file":"field-text-area.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-text-area.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,oBAAoB,CAAC,MAAM,CAAC,GAAG;QAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;QACrD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,aAAa,CAAC;QAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;KACnD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;KACzD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;CAkDrG"}
@@ -13,6 +13,7 @@ export interface FieldTextSignature {
13
13
  };
14
14
  Blocks: {
15
15
  label: [];
16
+ helpText: [...EuiFormRowSignature['Blocks']['helpText']];
16
17
  prepend: [...EuiFieldTextSignature['Blocks']['prepend']];
17
18
  append: [...EuiFieldTextSignature['Blocks']['append']];
18
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"field-text.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-text.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC1C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,qBAAqB,CAAC,MAAM,CAAC,GAAG;QAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,OAAO,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACzD,MAAM,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KACxD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,sBAAsB,CAAC,kBAAkB,CAAC;CAkD7F"}
1
+ {"version":3,"file":"field-text.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-text.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAC;AACvF,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAEnF,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC1C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,qBAAqB,CAAC,MAAM,CAAC,GAAG;QAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,QAAQ,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACzD,MAAM,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KACxD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,sBAAsB,CAAC,kBAAkB,CAAC;CAsD7F"}
@@ -46,7 +46,7 @@ class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase {
46
46
  n(this.prototype, "handleChange", [action]);
47
47
  }
48
48
  static {
49
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiCheckboxGroup class={{@fieldClasses}} @formId={{@formId}} @valueKey={{@valueKey}} @labelKey={{@labelKey}} aria-label={{@ariaLabel}} @disabled={{@disabled}} @compressed={{@compressed}} @isInvalid={{this.isInvalidAndTouched}} @options={{this.options}} @idToSelectedMap={{this.arrayToMap}} @legend={{@legend}} @onChange={{this.handleChange}} autofocus={{@autofocus}} ...attributes />\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
49
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiCheckboxGroup class={{@fieldClasses}} @formId={{@formId}} @valueKey={{@valueKey}} @labelKey={{@labelKey}} aria-label={{@ariaLabel}} @disabled={{@disabled}} @compressed={{@compressed}} @isInvalid={{this.isInvalidAndTouched}} @options={{this.options}} @idToSelectedMap={{this.arrayToMap}} @legend={{@legend}} @onChange={{this.handleChange}} autofocus={{@autofocus}} ...attributes />\n </:field>\n <:helpText>\n {{yield to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
50
50
  strictMode: true,
51
51
  scope: () => ({
52
52
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-checkbox-group.js","sources":["../../../src/components/validated-form/field-checkbox-group.gts"],"sourcesContent":["import { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiCheckboxGroup from '@ember-eui/core/components/eui-checkbox-group';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiCheckboxGroupSignature } from '@ember-eui/core/components/eui-checkbox-group';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldCheckboxGroupSignature {\n Element: EuiCheckboxGroupSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiCheckboxGroupSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n };\n}\n\nexport default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase<FieldCheckboxGroupSignature> {\n get value(): string[] {\n let value = maybeUnwrapProxy(this.args.value);\n\n return value?.toArray?.() || value;\n }\n\n get arrayToMap() {\n const currArr = this.value || [];\n\n return this.transformToMap(currArr);\n }\n\n transformToMap(value: string[] = []) {\n let valuesMap = value.reduce(\n (acc, val) => {\n acc[val] = true;\n\n return acc;\n },\n {} as { [key: string]: boolean }\n );\n\n return valuesMap;\n }\n\n @action\n //@ts-expect-error\n handleChange(optionId: string) {\n const value = this.value || [];\n\n const found = value.find((v) => v === optionId);\n let newArr = [];\n\n if (found) {\n newArr = value.filter((v) => v !== optionId);\n } else {\n newArr = [...value, optionId];\n }\n\n this.args.onChange?.(newArr);\n\n this.notifyValidityChange();\n this.isTouched = true;\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiCheckboxGroup\n class={{@fieldClasses}}\n @formId={{@formId}}\n @valueKey={{@valueKey}}\n @labelKey={{@labelKey}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @isInvalid={{this.isInvalidAndTouched}}\n @options={{this.options}}\n @idToSelectedMap={{this.arrayToMap}}\n @legend={{@legend}}\n @onChange={{this.handleChange}}\n autofocus={{@autofocus}}\n ...attributes\n />\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldCheckboxGroup","ValidatedFormFieldBase","value","maybeUnwrapProxy","args","toArray","arrayToMap","currArr","transformToMap","valuesMap","reduce","acc","val","handleChange","optionId","found","find","v","newArr","filter","onChange","notifyValidityChange","isTouched","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiCheckboxGroup"],"mappings":";;;;;;;;;;;;;;AAmCe,MAAMA,wCAAwCC,sBAAuB,CAAA;EAClF,IAAIC,KAAAA,GAAkB;IACpB,IAAIA,QAAQC,gBAAiB,CAAA,IAAI,CAACC,IAAI,CAACF,KAAK,CAAA;AAE5C,IAAA,OAAOA,OAAOG,OAAe,IAAA,IAAAH,KAAA;AAC/B;EAEA,IAAII,UAAaA,GAAA;AACf,IAAA,MAAMC,OAAU,GAAA,IAAI,CAACL,KAAK,IAAI,EAAE;AAEhC,IAAA,OAAO,IAAI,CAACM,cAAc,CAACD,OAAA,CAAA;AAC7B;AAEAC,EAAAA,cAAAA,CAAeN,KAAkB,GAAA,EAAE,EAAE;IACnC,IAAIO,SAAY,GAAAP,KAAA,CAAMQ,MAAM,CAC1B,CAACC,GAAK,EAAAC,GAAA,KAAA;AACJD,MAAAA,GAAG,CAACC,IAAI,GAAG,IAAA;AAEX,MAAA,OAAOD,GAAA;KACT,EACA;AAGF,IAAA,OAAOF,SAAA;AACT;AAGA;EACAI,YAAaA,CAAAC,QAAgB,EAAE;AAC7B,IAAA,MAAMZ,KAAQ,GAAA,IAAI,CAACA,KAAK,IAAI,EAAE;IAE9B,MAAMa,QAAQb,KAAM,CAAAc,IAAI,CAAEC,KAAMA,CAAM,KAAAH,QAAA,CAAA;IACtC,IAAII,SAAS,EAAE;AAEf,IAAA,IAAIH,KAAO,EAAA;MACTG,MAAA,GAAShB,KAAM,CAAAiB,MAAM,CAAEF,KAAMA,CAAM,KAAAH,QAAA,CAAA;AACrC,KAAO,MAAA;AACLI,MAAAA,MAAS,GAAA,CAAI,GAAAhB,KAAA,EAAOY,QAAA,CAAS;AAC/B;AAEA,IAAA,IAAI,CAACV,IAAI,CAACgB,QAAQ,GAAGF,MAAA,CAAA;IAErB,IAAI,CAACG,oBAAoB,EAAA;IACzB,IAAI,CAACC,SAAS,GAAG,IAAA;AACnB;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAlBCC,MAAA,CAAA,CAAA;AAAA;AAoBD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA6CA,2pCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-checkbox-group.js","sources":["../../../src/components/validated-form/field-checkbox-group.gts"],"sourcesContent":["import { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiCheckboxGroup from '@ember-eui/core/components/eui-checkbox-group';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiCheckboxGroupSignature } from '@ember-eui/core/components/eui-checkbox-group';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldCheckboxGroupSignature {\n Element: EuiCheckboxGroupSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiCheckboxGroupSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: EuiFormRowSignature['Blocks']['label'];\n helpText: EuiFormRowSignature['Blocks']['helpText'];\n };\n}\n\nexport default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase<FieldCheckboxGroupSignature> {\n get value(): string[] {\n let value = maybeUnwrapProxy(this.args.value);\n\n return value?.toArray?.() || value;\n }\n\n get arrayToMap() {\n const currArr = this.value || [];\n\n return this.transformToMap(currArr);\n }\n\n transformToMap(value: string[] = []) {\n let valuesMap = value.reduce(\n (acc, val) => {\n acc[val] = true;\n\n return acc;\n },\n {} as { [key: string]: boolean }\n );\n\n return valuesMap;\n }\n\n @action\n //@ts-expect-error\n handleChange(optionId: string) {\n const value = this.value || [];\n\n const found = value.find((v) => v === optionId);\n let newArr = [];\n\n if (found) {\n newArr = value.filter((v) => v !== optionId);\n } else {\n newArr = [...value, optionId];\n }\n\n this.args.onChange?.(newArr);\n\n this.notifyValidityChange();\n this.isTouched = true;\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiCheckboxGroup\n class={{@fieldClasses}}\n @formId={{@formId}}\n @valueKey={{@valueKey}}\n @labelKey={{@labelKey}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @isInvalid={{this.isInvalidAndTouched}}\n @options={{this.options}}\n @idToSelectedMap={{this.arrayToMap}}\n @legend={{@legend}}\n @onChange={{this.handleChange}}\n autofocus={{@autofocus}}\n ...attributes\n />\n </:field>\n <:helpText>\n {{yield to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldCheckboxGroup","ValidatedFormFieldBase","value","maybeUnwrapProxy","args","toArray","arrayToMap","currArr","transformToMap","valuesMap","reduce","acc","val","handleChange","optionId","found","find","v","newArr","filter","onChange","notifyValidityChange","isTouched","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiCheckboxGroup"],"mappings":";;;;;;;;;;;;;;AAoCe,MAAMA,wCAAwCC,sBAAuB,CAAA;EAClF,IAAIC,KAAAA,GAAkB;IACpB,IAAIA,QAAQC,gBAAiB,CAAA,IAAI,CAACC,IAAI,CAACF,KAAK,CAAA;AAE5C,IAAA,OAAOA,OAAOG,OAAe,IAAA,IAAAH,KAAA;AAC/B;EAEA,IAAII,UAAaA,GAAA;AACf,IAAA,MAAMC,OAAU,GAAA,IAAI,CAACL,KAAK,IAAI,EAAE;AAEhC,IAAA,OAAO,IAAI,CAACM,cAAc,CAACD,OAAA,CAAA;AAC7B;AAEAC,EAAAA,cAAAA,CAAeN,KAAkB,GAAA,EAAE,EAAE;IACnC,IAAIO,SAAY,GAAAP,KAAA,CAAMQ,MAAM,CAC1B,CAACC,GAAK,EAAAC,GAAA,KAAA;AACJD,MAAAA,GAAG,CAACC,IAAI,GAAG,IAAA;AAEX,MAAA,OAAOD,GAAA;KACT,EACA;AAGF,IAAA,OAAOF,SAAA;AACT;AAGA;EACAI,YAAaA,CAAAC,QAAgB,EAAE;AAC7B,IAAA,MAAMZ,KAAQ,GAAA,IAAI,CAACA,KAAK,IAAI,EAAE;IAE9B,MAAMa,QAAQb,KAAM,CAAAc,IAAI,CAAEC,KAAMA,CAAM,KAAAH,QAAA,CAAA;IACtC,IAAII,SAAS,EAAE;AAEf,IAAA,IAAIH,KAAO,EAAA;MACTG,MAAA,GAAShB,KAAM,CAAAiB,MAAM,CAAEF,KAAMA,CAAM,KAAAH,QAAA,CAAA;AACrC,KAAO,MAAA;AACLI,MAAAA,MAAS,GAAA,CAAI,GAAAhB,KAAA,EAAOY,QAAA,CAAS;AAC/B;AAEA,IAAA,IAAI,CAACV,IAAI,CAACgB,QAAQ,GAAGF,MAAA,CAAA;IAErB,IAAI,CAACG,oBAAoB,EAAA;IACzB,IAAI,CAACC,SAAS,GAAG,IAAA;AACnB;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAlBCC,MAAA,CAAA,CAAA;AAAA;AAoBD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAiDA,iyCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -25,7 +25,7 @@ class ValidatedFormFieldComboBox extends ValidatedFormFieldBase {
25
25
  n(this.prototype, "handleChange", [action]);
26
26
  }
27
27
  static {
28
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @selectedOptions}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiComboBox class={{@fieldClasses}} @onChange={{this.handleChange}} @dropdownClass={{@dropdownClass}} @placeholder={{@placeholder}} @options={{this.options}} @singleSelection={{@singleSelection}} @selectedOptions={{@selectedOptions}} @searchEnabled={{argOrDefault @searchEnabled true}} @placeholderComponent={{@placeholderComponent}} @searchMessageComponent={{@searchMessageComponent}} @loadingMessage={{@loadingMessage}} @beforeOptionsComponent={{@beforeOptionsComponent}} @afterOptionsComponent={{@afterOptionsComponent}} @searchField={{@searchField}} @searchMessage={{@searchMessage}} @search={{@search}} aria-label={{@ariaLabel}} form={{@formId}} @isInvalid={{this.isInvalidAndTouched}} @isClearable={{@isClearable}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @readOnly={{@readOnly}} @compressed={{@compressed}} @onCreateOption={{@onCreateOption}} @customOptionText={{@customOptionText}} @onBlur={{queue (fn this.setIsTouched true) (optional @onBlur)}} @onFocus={{@onFocus}} @onClose={{@onClose}} @onOpen={{@onOpen}} @isDisabled={{@isDisabled}} @renderInPlace={{@renderInPlace}} @extra={{@extra}} ...attributes as |opt index select|>\n {{yield opt index select}}\n </EuiComboBox>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
28
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @selectedOptions}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiComboBox class={{@fieldClasses}} @onChange={{this.handleChange}} @dropdownClass={{@dropdownClass}} @placeholder={{@placeholder}} @options={{this.options}} @singleSelection={{@singleSelection}} @selectedOptions={{@selectedOptions}} @searchEnabled={{argOrDefault @searchEnabled true}} @placeholderComponent={{@placeholderComponent}} @searchMessageComponent={{@searchMessageComponent}} @loadingMessage={{@loadingMessage}} @beforeOptionsComponent={{@beforeOptionsComponent}} @afterOptionsComponent={{@afterOptionsComponent}} @searchField={{@searchField}} @searchMessage={{@searchMessage}} @search={{@search}} aria-label={{@ariaLabel}} form={{@formId}} @isInvalid={{this.isInvalidAndTouched}} @isClearable={{@isClearable}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @readOnly={{@readOnly}} @compressed={{@compressed}} @onCreateOption={{@onCreateOption}} @customOptionText={{@customOptionText}} @onBlur={{queue (fn this.setIsTouched true) (optional @onBlur)}} @onFocus={{@onFocus}} @onClose={{@onClose}} @onOpen={{@onOpen}} @isDisabled={{@isDisabled}} @renderInPlace={{@renderInPlace}} @extra={{@extra}} ...attributes as |opt index select|>\n {{yield opt index select}}\n </EuiComboBox>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
29
29
  strictMode: true,
30
30
  scope: () => ({
31
31
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-combo-box.js","sources":["../../../src/components/validated-form/field-combo-box.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiComboBox from '@ember-eui/core/components/eui-combo-box';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport optional from '@nullvoxpopuli/ember-composable-helpers/helpers/optional';\nimport queue from '@nullvoxpopuli/ember-composable-helpers/helpers/queue';\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiComboBoxSignature } from '@ember-eui/core/components/eui-combo-box';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldComboBoxSignature {\n Element: EuiComboBoxSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiComboBoxSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n options?: EuiComboBoxSignature['Args']['options'];\n selectedOptions?: EuiComboBoxSignature['Args']['selectedOptions'];\n };\n Blocks: {\n label: EuiFormRowSignature['Blocks']['label'];\n default: EuiComboBoxSignature['Blocks']['default'];\n };\n}\n\nexport default class ValidatedFormFieldComboBox extends ValidatedFormFieldBase<FieldComboBoxSignature> {\n validationProperty = 'args.selectedOptions';\n\n @action\n //@ts-expect-error\n handleChange(options: any[]) {\n this.args.onChange(options);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @selectedOptions}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiComboBox\n class={{@fieldClasses}}\n @onChange={{this.handleChange}}\n @dropdownClass={{@dropdownClass}}\n @placeholder={{@placeholder}}\n @options={{this.options}}\n @singleSelection={{@singleSelection}}\n @selectedOptions={{@selectedOptions}}\n @searchEnabled={{argOrDefault @searchEnabled true}}\n @placeholderComponent={{@placeholderComponent}}\n @searchMessageComponent={{@searchMessageComponent}}\n @loadingMessage={{@loadingMessage}}\n @beforeOptionsComponent={{@beforeOptionsComponent}}\n @afterOptionsComponent={{@afterOptionsComponent}}\n @searchField={{@searchField}}\n @searchMessage={{@searchMessage}}\n @search={{@search}}\n aria-label={{@ariaLabel}}\n form={{@formId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @isClearable={{@isClearable}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @readOnly={{@readOnly}}\n @compressed={{@compressed}}\n @onCreateOption={{@onCreateOption}}\n @customOptionText={{@customOptionText}}\n @onBlur={{queue (fn this.setIsTouched true) (optional @onBlur)}}\n @onFocus={{@onFocus}}\n @onClose={{@onClose}}\n @onOpen={{@onOpen}}\n @isDisabled={{@isDisabled}}\n @renderInPlace={{@renderInPlace}}\n @extra={{@extra}}\n ...attributes\n as |opt index select|\n >\n {{yield opt index select}}\n </EuiComboBox>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldComboBox","ValidatedFormFieldBase","validationProperty","handleChange","options","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiComboBox","queue","fn","optional"],"mappings":";;;;;;;;;;;;;;;;AAwCe,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7EC,EAAAA,kBAAA,GAAqB,sBAAuB;AAG5C;EACAC,YAAaA,CAAAC,OAAc,EAAE;AAC3B,IAAA,IAAI,CAACC,IAAI,CAACC,QAAQ,CAACF,OAAA,CAAA;IACnB,IAAI,CAACG,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CALCC,MAAA,CAAA,CAAA;AAAA;AAOD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAmEA,g+DAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,WAAA;QAAAC,KAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-combo-box.js","sources":["../../../src/components/validated-form/field-combo-box.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiComboBox from '@ember-eui/core/components/eui-combo-box';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport optional from '@nullvoxpopuli/ember-composable-helpers/helpers/optional';\nimport queue from '@nullvoxpopuli/ember-composable-helpers/helpers/queue';\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiComboBoxSignature } from '@ember-eui/core/components/eui-combo-box';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldComboBoxSignature {\n Element: EuiComboBoxSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiComboBoxSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n options?: EuiComboBoxSignature['Args']['options'];\n selectedOptions?: EuiComboBoxSignature['Args']['selectedOptions'];\n };\n Blocks: {\n label: EuiFormRowSignature['Blocks']['label'];\n helpText: EuiFormRowSignature['Blocks']['helpText'];\n default: EuiComboBoxSignature['Blocks']['default'];\n };\n}\n\nexport default class ValidatedFormFieldComboBox extends ValidatedFormFieldBase<FieldComboBoxSignature> {\n validationProperty = 'args.selectedOptions';\n\n @action\n //@ts-expect-error\n handleChange(options: any[]) {\n this.args.onChange(options);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @selectedOptions}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiComboBox\n class={{@fieldClasses}}\n @onChange={{this.handleChange}}\n @dropdownClass={{@dropdownClass}}\n @placeholder={{@placeholder}}\n @options={{this.options}}\n @singleSelection={{@singleSelection}}\n @selectedOptions={{@selectedOptions}}\n @searchEnabled={{argOrDefault @searchEnabled true}}\n @placeholderComponent={{@placeholderComponent}}\n @searchMessageComponent={{@searchMessageComponent}}\n @loadingMessage={{@loadingMessage}}\n @beforeOptionsComponent={{@beforeOptionsComponent}}\n @afterOptionsComponent={{@afterOptionsComponent}}\n @searchField={{@searchField}}\n @searchMessage={{@searchMessage}}\n @search={{@search}}\n aria-label={{@ariaLabel}}\n form={{@formId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @isClearable={{@isClearable}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @readOnly={{@readOnly}}\n @compressed={{@compressed}}\n @onCreateOption={{@onCreateOption}}\n @customOptionText={{@customOptionText}}\n @onBlur={{queue (fn this.setIsTouched true) (optional @onBlur)}}\n @onFocus={{@onFocus}}\n @onClose={{@onClose}}\n @onOpen={{@onOpen}}\n @isDisabled={{@isDisabled}}\n @renderInPlace={{@renderInPlace}}\n @extra={{@extra}}\n ...attributes\n as |opt index select|\n >\n {{yield opt index select}}\n </EuiComboBox>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldComboBox","ValidatedFormFieldBase","validationProperty","handleChange","options","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiComboBox","queue","fn","optional"],"mappings":";;;;;;;;;;;;;;;;AAyCe,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7EC,EAAAA,kBAAA,GAAqB,sBAAuB;AAG5C;EACAC,YAAaA,CAAAC,OAAc,EAAE;AAC3B,IAAA,IAAI,CAACC,IAAI,CAACC,QAAQ,CAACF,OAAA,CAAA;IACnB,IAAI,CAACG,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CALCC,MAAA,CAAA,CAAA;AAAA;AAOD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAuEA,6nEAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,WAAA;QAAAC,KAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -25,7 +25,7 @@ class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase {
25
25
  n(this.prototype, "handleChange", [action]);
26
26
  }
27
27
  static {
28
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiDualRange class={{@fieldClasses}} form={{@formId}} @value={{@value}} @fullWidth={{@fullWidth}} @isInvalid={{this.isInvalidAndTouched}} @levels={{@levels}} @showLabels={{@showLabels}} @showInput={{@showInput}} @tickInterval={{@tickInterval}} @ticks={{@ticks}} aria-label={{@ariaLabel}} @disabled={{@disabled}} @compressed={{@compressed}} @showRange={{@showRange}} @showTicks={{@showTicks}} @readOnly={{@readOnly}} @id={{theId}} @step={{@step}} @onChange={{this.handleChange}} @max={{@max}} @min={{@min}} @isPrependProvided={{has-block \"prepend\"}} @isAppendProvided={{has-block \"append\"}} @isFakeMinBlock={{not (has-block \"min\")}} @isFakeMaxBlock={{not (has-block \"max\")}} autofocus={{@autofocus}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}}>\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min>\n {{yield to=\"min\"}}\n </:min>\n <:max>\n {{yield to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiDualRange>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
28
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiDualRange class={{@fieldClasses}} form={{@formId}} @value={{@value}} @fullWidth={{@fullWidth}} @isInvalid={{this.isInvalidAndTouched}} @levels={{@levels}} @showLabels={{@showLabels}} @showInput={{@showInput}} @tickInterval={{@tickInterval}} @ticks={{@ticks}} aria-label={{@ariaLabel}} @disabled={{@disabled}} @compressed={{@compressed}} @showRange={{@showRange}} @showTicks={{@showTicks}} @readOnly={{@readOnly}} @id={{theId}} @step={{@step}} @onChange={{this.handleChange}} @max={{@max}} @min={{@min}} @isPrependProvided={{has-block \"prepend\"}} @isAppendProvided={{has-block \"append\"}} @isFakeMinBlock={{not (has-block \"min\")}} @isFakeMaxBlock={{not (has-block \"max\")}} autofocus={{@autofocus}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}}>\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min>\n {{yield to=\"min\"}}\n </:min>\n <:max>\n {{yield to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiDualRange>\n </:field>\n\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
29
29
  strictMode: true,
30
30
  scope: () => ({
31
31
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-dual-range-slider.js","sources":["../../../src/components/validated-form/field-dual-range-slider.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiDualRange from '@ember-eui/core/components/eui-dual-range';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type {\n EuiDualRangeSignature,\n ValueMember\n} from '@ember-eui/core/components/eui-dual-range';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldDualRangeSliderSignature {\n Element: EuiDualRangeSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiDualRangeSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n disabled?: boolean;\n compressed?: boolean;\n hasFocus?: boolean;\n isLoading?: boolean;\n readOnly?: boolean;\n icon?: string;\n\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n prepend: [...EuiDualRangeSignature['Blocks']['prepend']];\n min: [...EuiDualRangeSignature['Blocks']['min']];\n append: [...EuiDualRangeSignature['Blocks']['append']];\n max: [...EuiDualRangeSignature['Blocks']['max']];\n };\n}\n\nexport default class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase<FieldDualRangeSliderSignature> {\n @action\n //@ts-expect-error\n handleChange(\n e: [ValueMember, ValueMember],\n _isValid: boolean,\n _event: Event\n ) {\n // The received event for the dual range is an array with [min, max] as strings\n const value = [Number(e[0]), Number(e[1])];\n\n this.args.onChange(value);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiDualRange\n class={{@fieldClasses}}\n form={{@formId}}\n @value={{@value}}\n @fullWidth={{@fullWidth}}\n @isInvalid={{this.isInvalidAndTouched}}\n @levels={{@levels}}\n @showLabels={{@showLabels}}\n @showInput={{@showInput}}\n @tickInterval={{@tickInterval}}\n @ticks={{@ticks}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @showRange={{@showRange}}\n @showTicks={{@showTicks}}\n @readOnly={{@readOnly}}\n @id={{theId}}\n @step={{@step}}\n @onChange={{this.handleChange}}\n @max={{@max}}\n @min={{@min}}\n @isPrependProvided={{has-block \"prepend\"}}\n @isAppendProvided={{has-block \"append\"}}\n @isFakeMinBlock={{not (has-block \"min\")}}\n @isFakeMaxBlock={{not (has-block \"max\")}}\n autofocus={{@autofocus}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n >\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min>\n {{yield to=\"min\"}}\n </:min>\n <:max>\n {{yield to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiDualRange>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldRangeSlider","ValidatedFormFieldBase","handleChange","e","_isValid","_event","value","Number","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiDualRange","on","fn"],"mappings":";;;;;;;;;;;;;;;AAiDe,MAAMA,sCAAsCC,sBAAuB,CAAA;AAEhF;AACAC,EAAAA,YACEA,CAAAC,CAA6B,EAC7BC,QAAiB,EACjBC,MAAa,EACb;AACA;AACA,IAAA,MAAMC,KAAQ,GAAA,CAACC,MAAO,CAAAJ,CAAC,CAAC,CAAE,CAAA,CAAA,EAAGI,MAAO,CAAAJ,CAAC,CAAC,CAAE,CAAA,CAAA,CAAE;AAE1C,IAAA,IAAI,CAACK,IAAI,CAACC,QAAQ,CAACH,KAAA,CAAA;IACnB,IAAI,CAACI,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAZCC,MAAA,CAAA,CAAA;AAAA;AAcD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAwEA,u6DAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,YAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-dual-range-slider.js","sources":["../../../src/components/validated-form/field-dual-range-slider.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiDualRange from '@ember-eui/core/components/eui-dual-range';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type {\n EuiDualRangeSignature,\n ValueMember\n} from '@ember-eui/core/components/eui-dual-range';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldDualRangeSliderSignature {\n Element: EuiDualRangeSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiDualRangeSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n disabled?: boolean;\n compressed?: boolean;\n hasFocus?: boolean;\n isLoading?: boolean;\n readOnly?: boolean;\n icon?: string;\n\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n prepend: [...EuiDualRangeSignature['Blocks']['prepend']];\n min: [...EuiDualRangeSignature['Blocks']['min']];\n append: [...EuiDualRangeSignature['Blocks']['append']];\n max: [...EuiDualRangeSignature['Blocks']['max']];\n };\n}\n\nexport default class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase<FieldDualRangeSliderSignature> {\n @action\n //@ts-expect-error\n handleChange(\n e: [ValueMember, ValueMember],\n _isValid: boolean,\n _event: Event\n ) {\n // The received event for the dual range is an array with [min, max] as strings\n const value = [Number(e[0]), Number(e[1])];\n\n this.args.onChange(value);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiDualRange\n class={{@fieldClasses}}\n form={{@formId}}\n @value={{@value}}\n @fullWidth={{@fullWidth}}\n @isInvalid={{this.isInvalidAndTouched}}\n @levels={{@levels}}\n @showLabels={{@showLabels}}\n @showInput={{@showInput}}\n @tickInterval={{@tickInterval}}\n @ticks={{@ticks}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @showRange={{@showRange}}\n @showTicks={{@showTicks}}\n @readOnly={{@readOnly}}\n @id={{theId}}\n @step={{@step}}\n @onChange={{this.handleChange}}\n @max={{@max}}\n @min={{@min}}\n @isPrependProvided={{has-block \"prepend\"}}\n @isAppendProvided={{has-block \"append\"}}\n @isFakeMinBlock={{not (has-block \"min\")}}\n @isFakeMaxBlock={{not (has-block \"max\")}}\n autofocus={{@autofocus}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n >\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min>\n {{yield to=\"min\"}}\n </:min>\n <:max>\n {{yield to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiDualRange>\n </:field>\n\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldRangeSlider","ValidatedFormFieldBase","handleChange","e","_isValid","_event","value","Number","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiDualRange","on","fn"],"mappings":";;;;;;;;;;;;;;;AAkDe,MAAMA,sCAAsCC,sBAAuB,CAAA;AAEhF;AACAC,EAAAA,YACEA,CAAAC,CAA6B,EAC7BC,QAAiB,EACjBC,MAAa,EACb;AACA;AACA,IAAA,MAAMC,KAAQ,GAAA,CAACC,MAAO,CAAAJ,CAAC,CAAC,CAAE,CAAA,CAAA,EAAGI,MAAO,CAAAJ,CAAC,CAAC,CAAE,CAAA,CAAA,CAAE;AAE1C,IAAA,IAAI,CAACK,IAAI,CAACC,QAAQ,CAACH,KAAA,CAAA;IACnB,IAAI,CAACI,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAZCC,MAAA,CAAA,CAAA;AAAA;AAcD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA6EA,skEAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,YAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -24,7 +24,7 @@ class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase {
24
24
  n(this.prototype, "handleChange", [action]);
25
25
  }
26
26
  static {
27
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n {{#let (if @editorComponent (component (EnsureSafeComponentHelper @editorComponent)) (component EuiMarkdownEditor)) as |MarkdownEditor|}}\n {{!--@glint-expect-error--}}\n <MarkdownEditor class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @value={{@value}} @isInvalid={{this.isInvalidAndTouched}} @disabled={{@disabled}} @editorId={{theId}} @onChange={{this.handleChange}} @ariaDescribedBy={{@ariaDescribedBy}} @ariaLabel={{@ariaLabel}} @ariaLabelledBy={{@ariaLabelledBy}} autofocus={{@autofocus}} placeholder={{@placeholder}} @onParse={{@onParse}} @parsingPluginList={{@parsingPluginList}} @uiPlugins={{@uiPlugins}} @height={{@height}} @maxHeight={{@maxHeight}} @autoExpandPreview={{@autoExpandPreview}} @initialViewMode={{@initialViewMode}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} />\n {{/let}}\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
27
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n {{#let (if @editorComponent (component (EnsureSafeComponentHelper @editorComponent)) (component EuiMarkdownEditor)) as |MarkdownEditor|}}\n {{!--@glint-expect-error--}}\n <MarkdownEditor class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @value={{@value}} @isInvalid={{this.isInvalidAndTouched}} @disabled={{@disabled}} @editorId={{theId}} @onChange={{this.handleChange}} @ariaDescribedBy={{@ariaDescribedBy}} @ariaLabel={{@ariaLabel}} @ariaLabelledBy={{@ariaLabelledBy}} autofocus={{@autofocus}} placeholder={{@placeholder}} @onParse={{@onParse}} @parsingPluginList={{@parsingPluginList}} @uiPlugins={{@uiPlugins}} @height={{@height}} @maxHeight={{@maxHeight}} @autoExpandPreview={{@autoExpandPreview}} @initialViewMode={{@initialViewMode}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} />\n {{/let}}\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
28
28
  strictMode: true,
29
29
  scope: () => ({
30
30
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-markdown-editor.js","sources":["../../../src/components/validated-form/field-markdown-editor.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiMarkdownEditor from '@ember-eui/core/components/eui-markdown-editor';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { EnsureSafeComponentHelper } from '@embroider/util';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiMarkdownEditorSignature } from '@ember-eui/core/components/eui-markdown-editor';\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldMarkdownEditorSignature {\n Element: EuiMarkdownEditorSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiMarkdownEditorSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n editorComponent?: ComponentLike\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n };\n}\n\nexport default class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase<FieldMarkdownEditorSignature> {\n @action\n //@ts-expect-error\n handleChange(str: string) {\n this.args.onChange(str);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n {{#let\n (if\n @editorComponent\n (component (EnsureSafeComponentHelper @editorComponent))\n (component EuiMarkdownEditor)\n )\n as |MarkdownEditor|\n }}\n {{!@glint-expect-error}}\n <MarkdownEditor\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @value={{@value}}\n @isInvalid={{this.isInvalidAndTouched}}\n @disabled={{@disabled}}\n @editorId={{theId}}\n @onChange={{this.handleChange}}\n @ariaDescribedBy={{@ariaDescribedBy}}\n @ariaLabel={{@ariaLabel}}\n @ariaLabelledBy={{@ariaLabelledBy}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n @onParse={{@onParse}}\n @parsingPluginList={{@parsingPluginList}}\n @uiPlugins={{@uiPlugins}}\n @height={{@height}}\n @maxHeight={{@maxHeight}}\n @autoExpandPreview={{@autoExpandPreview}}\n @initialViewMode={{@initialViewMode}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n />\n {{/let}}\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldMarkdownEditor","ValidatedFormFieldBase","handleChange","str","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EnsureSafeComponentHelper","EuiMarkdownEditor","on","fn"],"mappings":";;;;;;;;;;;;;;;;AAuCe,MAAMA,yCAAyCC,sBAAuB,CAAA;AAEnF;EACAC,YAAaA,CAAAC,GAAW,EAAE;AACxB,IAAA,IAAI,CAACC,IAAI,CAACC,QAAQ,CAACF,GAAA,CAAA;IACnB,IAAI,CAACG,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CALCC,MAAA,CAAA,CAAA;AAAA;AAOD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA8DA,soDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,yBAAA;QAAAC,iBAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-markdown-editor.js","sources":["../../../src/components/validated-form/field-markdown-editor.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiMarkdownEditor from '@ember-eui/core/components/eui-markdown-editor';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { EnsureSafeComponentHelper } from '@embroider/util';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiMarkdownEditorSignature } from '@ember-eui/core/components/eui-markdown-editor';\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldMarkdownEditorSignature {\n Element: EuiMarkdownEditorSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiMarkdownEditorSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n editorComponent?: ComponentLike\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n };\n}\n\nexport default class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase<FieldMarkdownEditorSignature> {\n @action\n //@ts-expect-error\n handleChange(str: string) {\n this.args.onChange(str);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n {{#let\n (if\n @editorComponent\n (component (EnsureSafeComponentHelper @editorComponent))\n (component EuiMarkdownEditor)\n )\n as |MarkdownEditor|\n }}\n {{!@glint-expect-error}}\n <MarkdownEditor\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @value={{@value}}\n @isInvalid={{this.isInvalidAndTouched}}\n @disabled={{@disabled}}\n @editorId={{theId}}\n @onChange={{this.handleChange}}\n @ariaDescribedBy={{@ariaDescribedBy}}\n @ariaLabel={{@ariaLabel}}\n @ariaLabelledBy={{@ariaLabelledBy}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n @onParse={{@onParse}}\n @parsingPluginList={{@parsingPluginList}}\n @uiPlugins={{@uiPlugins}}\n @height={{@height}}\n @maxHeight={{@maxHeight}}\n @autoExpandPreview={{@autoExpandPreview}}\n @initialViewMode={{@initialViewMode}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n />\n {{/let}}\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldMarkdownEditor","ValidatedFormFieldBase","handleChange","str","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EnsureSafeComponentHelper","EuiMarkdownEditor","on","fn"],"mappings":";;;;;;;;;;;;;;;;AAwCe,MAAMA,yCAAyCC,sBAAuB,CAAA;AAEnF;EACAC,YAAaA,CAAAC,GAAW,EAAE;AACxB,IAAA,IAAI,CAACC,IAAI,CAACC,QAAQ,CAACF,GAAA,CAAA;IACnB,IAAI,CAACG,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CALCC,MAAA,CAAA,CAAA;AAAA;AAOD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAkEA,myDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,yBAAA;QAAAC,iBAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -13,7 +13,7 @@ import { setComponentTemplate } from '@ember/component';
13
13
 
14
14
  class ValidatedFormFieldNumber extends ValidatedFormFieldBase {
15
15
  static {
16
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiFieldNumber class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @value={{@value}} @icon={{@icon}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @readOnly={{@readOnly}} @disabled={{@disabled}} @min={{@min}} @max={{@max}} @step={{@step}} @inputRef={{@inputRef}} @controlOnly={{@controlOnly}} @compressed={{@compressed}} @id={{theId}} @clear={{@clear}} @isPrependProvided={{has-block \"prepend\"}} @isAppendProvided={{has-block \"append\"}} autofocus={{@autofocus}} placeholder={{@placeholder}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}}>\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiFieldNumber>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
16
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiFieldNumber class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @value={{@value}} @icon={{@icon}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @readOnly={{@readOnly}} @disabled={{@disabled}} @min={{@min}} @max={{@max}} @step={{@step}} @inputRef={{@inputRef}} @controlOnly={{@controlOnly}} @compressed={{@compressed}} @id={{theId}} @clear={{@clear}} @isPrependProvided={{has-block \"prepend\"}} @isAppendProvided={{has-block \"append\"}} autofocus={{@autofocus}} placeholder={{@placeholder}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}}>\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiFieldNumber>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
17
17
  strictMode: true,
18
18
  scope: () => ({
19
19
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-number.js","sources":["../../../src/components/validated-form/field-number.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFieldNumber from '@ember-eui/core/components/eui-field-number';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFieldNumberSignature } from '@ember-eui/core/components/eui-field-number';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldNumberSignature {\n Element: EuiFieldNumberSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiFieldNumberSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n prepend: [...EuiFieldNumberSignature['Blocks']['prepend']];\n append: [...EuiFieldNumberSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldNumber extends ValidatedFormFieldBase<FieldNumberSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiFieldNumber\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @value={{@value}}\n @icon={{@icon}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @readOnly={{@readOnly}}\n @disabled={{@disabled}}\n @min={{@min}}\n @max={{@max}}\n @step={{@step}}\n @inputRef={{@inputRef}}\n @controlOnly={{@controlOnly}}\n @compressed={{@compressed}}\n @id={{theId}}\n @clear={{@clear}}\n @isPrependProvided={{has-block \"prepend\"}}\n @isAppendProvided={{has-block \"append\"}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n >\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiFieldNumber>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldNumber","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiFieldNumber","on","fn"],"mappings":";;;;;;;;;;;;;AAqCe,MAAMA,iCAAiCC,sBAAuB,CAAA;AAC3E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA+DA,2pDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,cAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-number.js","sources":["../../../src/components/validated-form/field-number.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFieldNumber from '@ember-eui/core/components/eui-field-number';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFieldNumberSignature } from '@ember-eui/core/components/eui-field-number';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldNumberSignature {\n Element: EuiFieldNumberSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiFieldNumberSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n prepend: [...EuiFieldNumberSignature['Blocks']['prepend']];\n append: [...EuiFieldNumberSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldNumber extends ValidatedFormFieldBase<FieldNumberSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiFieldNumber\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @value={{@value}}\n @icon={{@icon}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @readOnly={{@readOnly}}\n @disabled={{@disabled}}\n @min={{@min}}\n @max={{@max}}\n @step={{@step}}\n @inputRef={{@inputRef}}\n @controlOnly={{@controlOnly}}\n @compressed={{@compressed}}\n @id={{theId}}\n @clear={{@clear}}\n @isPrependProvided={{has-block \"prepend\"}}\n @isAppendProvided={{has-block \"append\"}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n >\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiFieldNumber>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldNumber","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiFieldNumber","on","fn"],"mappings":";;;;;;;;;;;;;AAsCe,MAAMA,iCAAiCC,sBAAuB,CAAA;AAC3E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAmEA,wzDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,cAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -13,7 +13,7 @@ import { setComponentTemplate } from '@ember/component';
13
13
 
14
14
  class ValidatedFormFieldPassword extends ValidatedFormFieldBase {
15
15
  static {
16
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldPassword class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @compressed={{@compressed}} @inputRef={{@inputRef}} @value={{@value}} @type={{@type}} @id={{theId}} @disabled={{@disabled}} @isFakePrependBlock={{not (has-block \"prepend\")}} @isFakeAppendBlock={{not (has-block \"append\")}} autofocus={{@autofocus}} placeholder={{@placeholder}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}}>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldPassword>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
16
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldPassword class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @compressed={{@compressed}} @inputRef={{@inputRef}} @value={{@value}} @type={{@type}} @id={{theId}} @disabled={{@disabled}} @isFakePrependBlock={{not (has-block \"prepend\")}} @isFakeAppendBlock={{not (has-block \"append\")}} autofocus={{@autofocus}} placeholder={{@placeholder}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}}>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldPassword>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
17
17
  strictMode: true,
18
18
  scope: () => ({
19
19
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-password.js","sources":["../../../src/components/validated-form/field-password.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFieldPassword from '@ember-eui/core/components/eui-field-password';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFieldPasswordSignature } from '@ember-eui/core/components/eui-field-password';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldPasswordSignature {\n Element: EuiFieldPasswordSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiFieldPasswordSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n prepend: [...EuiFieldPasswordSignature['Blocks']['prepend']];\n append: [...EuiFieldPasswordSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldPassword extends ValidatedFormFieldBase<FieldPasswordSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldPassword\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @compressed={{@compressed}}\n @inputRef={{@inputRef}}\n @value={{@value}}\n @type={{@type}}\n @id={{theId}}\n @disabled={{@disabled}}\n @isFakePrependBlock={{not (has-block \"prepend\")}}\n @isFakeAppendBlock={{not (has-block \"append\")}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n >\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldPassword>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldPassword","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiFieldPassword","on","fn"],"mappings":";;;;;;;;;;;;;AAqCe,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAwDA,ulDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,gBAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-password.js","sources":["../../../src/components/validated-form/field-password.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFieldPassword from '@ember-eui/core/components/eui-field-password';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFieldPasswordSignature } from '@ember-eui/core/components/eui-field-password';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldPasswordSignature {\n Element: EuiFieldPasswordSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiFieldPasswordSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n placeholder?: string;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n prepend: [...EuiFieldPasswordSignature['Blocks']['prepend']];\n append: [...EuiFieldPasswordSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldPassword extends ValidatedFormFieldBase<FieldPasswordSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldPassword\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @compressed={{@compressed}}\n @inputRef={{@inputRef}}\n @value={{@value}}\n @type={{@type}}\n @id={{theId}}\n @disabled={{@disabled}}\n @isFakePrependBlock={{not (has-block \"prepend\")}}\n @isFakeAppendBlock={{not (has-block \"append\")}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n >\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldPassword>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldPassword","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiFieldPassword","on","fn"],"mappings":";;;;;;;;;;;;;AAsCe,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA4DA,ovDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,gBAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -45,7 +45,7 @@ class ValidatedFormFieldRadioGroup extends ValidatedFormFieldBase {
45
45
  n(this.prototype, "handleChange", [action]);
46
46
  }
47
47
  static {
48
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n <EuiRadioGroup class={{@fieldClasses}} @formId={{@formId}} aria-label={{@ariaLabel}} @disabled={{@disabled}} @valueKey={{@valueKey}} @labelKey={{@labelKey}} @compressed={{@compressed}} @name={{@name}} @options={{this.options}} @idSelected={{this.value}} @legend={{@legend}} @onChange={{this.handleChange}} autofocus={{@autofocus}} ...attributes />\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
48
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n <EuiRadioGroup class={{@fieldClasses}} @formId={{@formId}} aria-label={{@ariaLabel}} @disabled={{@disabled}} @valueKey={{@valueKey}} @labelKey={{@labelKey}} @compressed={{@compressed}} @name={{@name}} @options={{this.options}} @idSelected={{this.value}} @legend={{@legend}} @onChange={{this.handleChange}} autofocus={{@autofocus}} ...attributes />\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
49
49
  strictMode: true,
50
50
  scope: () => ({
51
51
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-radio-group.js","sources":["../../../src/components/validated-form/field-radio-group.gts"],"sourcesContent":["import { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiRadioGroup from '@ember-eui/core/components/eui-radio-group';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiRadioGroupSignature } from '@ember-eui/core/components/eui-radio-group';\n\nexport interface FieldRadioGroupSignature {\n Element: EuiRadioGroupSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiRadioGroupSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n };\n}\n\nexport default class ValidatedFormFieldRadioGroup extends ValidatedFormFieldBase<FieldRadioGroupSignature> {\n get value() {\n let value = maybeUnwrapProxy(this.args.value);\n\n return value?.toArray?.() || value;\n }\n\n get arrayToMap() {\n const currArr = this.args.value || [];\n\n return this.transformToMap(currArr);\n }\n\n transformToMap(value = []) {\n let valuesMap = value.reduce(\n (acc, val: string) => {\n acc[val] = true;\n\n return acc;\n },\n {} as { [key: string]: boolean }\n );\n\n return valuesMap;\n }\n\n @action\n //@ts-expect-error\n handleChange(optionId: string) {\n let value = this.value || [];\n\n const found = value.find((v: string) => v === optionId);\n let newArr = [];\n\n if (found) {\n newArr = value.filter((v: string) => v !== optionId);\n } else {\n newArr = [...value, optionId];\n }\n\n this.args.onChange?.(newArr);\n this.isTouched = true;\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n <EuiRadioGroup\n class={{@fieldClasses}}\n @formId={{@formId}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @valueKey={{@valueKey}}\n @labelKey={{@labelKey}}\n @compressed={{@compressed}}\n @name={{@name}}\n @options={{this.options}}\n @idSelected={{this.value}}\n @legend={{@legend}}\n @onChange={{this.handleChange}}\n autofocus={{@autofocus}}\n ...attributes\n />\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldRadioGroup","ValidatedFormFieldBase","value","maybeUnwrapProxy","args","toArray","arrayToMap","currArr","transformToMap","valuesMap","reduce","acc","val","handleChange","optionId","found","find","v","newArr","filter","onChange","isTouched","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiRadioGroup"],"mappings":";;;;;;;;;;;;;;AAkCe,MAAMA,qCAAqCC,sBAAuB,CAAA;EAC/E,IAAIC,KAAQA,GAAA;IACV,IAAIA,QAAQC,gBAAiB,CAAA,IAAI,CAACC,IAAI,CAACF,KAAK,CAAA;AAE5C,IAAA,OAAOA,OAAOG,OAAe,IAAA,IAAAH,KAAA;AAC/B;EAEA,IAAII,UAAaA,GAAA;IACf,MAAMC,UAAU,IAAI,CAACH,IAAI,CAACF,KAAK,IAAI,EAAE;AAErC,IAAA,OAAO,IAAI,CAACM,cAAc,CAACD,OAAA,CAAA;AAC7B;AAEAC,EAAAA,cAAeA,CAAAN,KAAA,GAAQ,EAAE,EAAE;IACzB,IAAIO,YAAYP,KAAM,CAAAQ,MAAM,CAC1B,CAACC,GAAA,EAAKC,GAAW,KAAA;AACfD,MAAAA,GAAG,CAACC,IAAI,GAAG,IAAA;AAEX,MAAA,OAAOD,GAAA;KACT,EACA;AAGF,IAAA,OAAOF,SAAA;AACT;AAGA;EACAI,YAAaA,CAAAC,QAAgB,EAAE;AAC7B,IAAA,IAAIZ,KAAQ,GAAA,IAAI,CAACA,KAAK,IAAI,EAAE;IAE5B,MAAMa,KAAA,GAAQb,MAAMc,IAAI,CAAEC,CAAS,IAAKA,CAAM,KAAAH,QAAA,CAAA;IAC9C,IAAII,SAAS,EAAE;AAEf,IAAA,IAAIH,KAAO,EAAA;MACTG,MAAA,GAAShB,MAAMiB,MAAM,CAAEF,CAAS,IAAKA,CAAM,KAAAH,QAAA,CAAA;AAC7C,KAAO,MAAA;AACLI,MAAAA,MAAS,GAAA,CAAI,GAAAhB,KAAA,EAAOY,QAAA,CAAS;AAC/B;AAEA,IAAA,IAAI,CAACV,IAAI,CAACgB,QAAQ,GAAGF,MAAA,CAAA;IACrB,IAAI,CAACG,SAAS,GAAG,IAAA;AACnB;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CAhBCC,MAAA,CAAA,CAAA;AAAA;AAkBD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA4CA,qoCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-radio-group.js","sources":["../../../src/components/validated-form/field-radio-group.gts"],"sourcesContent":["import { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiRadioGroup from '@ember-eui/core/components/eui-radio-group';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport { maybeUnwrapProxy } from '@ember-eui/core/utils/maybe-unwrap-proxy';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiRadioGroupSignature } from '@ember-eui/core/components/eui-radio-group';\n\nexport interface FieldRadioGroupSignature {\n Element: EuiRadioGroupSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiRadioGroupSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [...EuiFormRowSignature['Blocks']['label']];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n };\n}\n\nexport default class ValidatedFormFieldRadioGroup extends ValidatedFormFieldBase<FieldRadioGroupSignature> {\n get value() {\n let value = maybeUnwrapProxy(this.args.value);\n\n return value?.toArray?.() || value;\n }\n\n get arrayToMap() {\n const currArr = this.args.value || [];\n\n return this.transformToMap(currArr);\n }\n\n transformToMap(value = []) {\n let valuesMap = value.reduce(\n (acc, val: string) => {\n acc[val] = true;\n\n return acc;\n },\n {} as { [key: string]: boolean }\n );\n\n return valuesMap;\n }\n\n @action\n //@ts-expect-error\n handleChange(optionId: string) {\n let value = this.value || [];\n\n const found = value.find((v: string) => v === optionId);\n let newArr = [];\n\n if (found) {\n newArr = value.filter((v: string) => v !== optionId);\n } else {\n newArr = [...value, optionId];\n }\n\n this.args.onChange?.(newArr);\n this.isTouched = true;\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label as |label|>\n {{yield label to=\"label\"}}\n </:label>\n <:field>\n <EuiRadioGroup\n class={{@fieldClasses}}\n @formId={{@formId}}\n aria-label={{@ariaLabel}}\n @disabled={{@disabled}}\n @valueKey={{@valueKey}}\n @labelKey={{@labelKey}}\n @compressed={{@compressed}}\n @name={{@name}}\n @options={{this.options}}\n @idSelected={{this.value}}\n @legend={{@legend}}\n @onChange={{this.handleChange}}\n autofocus={{@autofocus}}\n ...attributes\n />\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldRadioGroup","ValidatedFormFieldBase","value","maybeUnwrapProxy","args","toArray","arrayToMap","currArr","transformToMap","valuesMap","reduce","acc","val","handleChange","optionId","found","find","v","newArr","filter","onChange","isTouched","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiRadioGroup"],"mappings":";;;;;;;;;;;;;;AAmCe,MAAMA,qCAAqCC,sBAAuB,CAAA;EAC/E,IAAIC,KAAQA,GAAA;IACV,IAAIA,QAAQC,gBAAiB,CAAA,IAAI,CAACC,IAAI,CAACF,KAAK,CAAA;AAE5C,IAAA,OAAOA,OAAOG,OAAe,IAAA,IAAAH,KAAA;AAC/B;EAEA,IAAII,UAAaA,G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A,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -13,7 +13,7 @@ import { setComponentTemplate } from '@ember/component';
13
13
 
14
14
  class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase {
15
15
  static {
16
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiRange class={{@fieldClasses}} form={{@formId}} @compressed={{@compressed}} @readOnly={{@readOnly}} @fullWidth={{@fullWidth}} @id={{theId}} @levels={{@levels}} @step={{@step}} @showInput={{@showInput}} @showLabels={{@showLabels}} @showRange={{@showRange}} @showTicks={{@showTicks}} @showValue={{@showValue}} @disabled={{@disabled}} @ticks={{@ticks}} @tickInterval={{@tickInterval}} @valuePrepend={{@valuePrepend}} @valueAppend={{@valueAppend}} @onChange={{this.handleChange}} @value={{@value}} @max={{@max}} @isLoading={{@isLoading}} @min={{@min}} @isInvalid={{this.isInvalidAndTouched}} @isPrependProvided={{has-block \"prepend\"}} @isAppendProvided={{has-block \"append\"}} @isFakeMinBlock={{not (has-block \"min\")}} @isFakeMaxBlock={{not (has-block \"max\")}} @isFakeValueBlock={{not (has-block \"value\")}} @isFakeValuePrependBlock={{not (has-block \"valuePrepend\")}} @isFakeValueAppendBlock={{not (has-block \"valueAppend\")}} aria-label={{@ariaLabel}} autofocus={{@autofocus}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}}>\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min as |min|>\n {{yield min to=\"min\"}}\n </:min>\n <:valuePrepend>\n {{yield to=\"valuePrepend\"}}\n </:valuePrepend>\n <:value>\n {{yield to=\"value\"}}\n </:value>\n <:valueAppend>\n {{yield to=\"valueAppend\"}}\n </:valueAppend>\n <:max as |max|>\n {{yield max to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiRange>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
16
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiRange class={{@fieldClasses}} form={{@formId}} @compressed={{@compressed}} @readOnly={{@readOnly}} @fullWidth={{@fullWidth}} @id={{theId}} @levels={{@levels}} @step={{@step}} @showInput={{@showInput}} @showLabels={{@showLabels}} @showRange={{@showRange}} @showTicks={{@showTicks}} @showValue={{@showValue}} @disabled={{@disabled}} @ticks={{@ticks}} @tickInterval={{@tickInterval}} @valuePrepend={{@valuePrepend}} @valueAppend={{@valueAppend}} @onChange={{this.handleChange}} @value={{@value}} @max={{@max}} @isLoading={{@isLoading}} @min={{@min}} @isInvalid={{this.isInvalidAndTouched}} @isPrependProvided={{has-block \"prepend\"}} @isAppendProvided={{has-block \"append\"}} @isFakeMinBlock={{not (has-block \"min\")}} @isFakeMaxBlock={{not (has-block \"max\")}} @isFakeValueBlock={{not (has-block \"value\")}} @isFakeValuePrependBlock={{not (has-block \"valuePrepend\")}} @isFakeValueAppendBlock={{not (has-block \"valueAppend\")}} aria-label={{@ariaLabel}} autofocus={{@autofocus}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}}>\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min as |min|>\n {{yield min to=\"min\"}}\n </:min>\n <:valuePrepend>\n {{yield to=\"valuePrepend\"}}\n </:valuePrepend>\n <:value>\n {{yield to=\"value\"}}\n </:value>\n <:valueAppend>\n {{yield to=\"valueAppend\"}}\n </:valueAppend>\n <:max as |max|>\n {{yield max to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiRange>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}} \n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
17
17
  strictMode: true,
18
18
  scope: () => ({
19
19
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-range-slider.js","sources":["../../../src/components/validated-form/field-range-slider.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiRange from '@ember-eui/core/components/eui-range';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiRangeSignature } from '@ember-eui/core/components/eui-range';\n\nexport interface FieldRangeSliderSignature {\n Element: EuiRangeSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiRangeSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n prepend: [...EuiRangeSignature['Blocks']['prepend']];\n min: [...EuiRangeSignature['Blocks']['min']];\n valuePrepend: [...EuiRangeSignature['Blocks']['valuePrepend']];\n value: [...EuiRangeSignature['Blocks']['value']];\n valueAppend: [...EuiRangeSignature['Blocks']['valueAppend']];\n append: [...EuiRangeSignature['Blocks']['append']];\n max: [...EuiRangeSignature['Blocks']['max']];\n };\n}\n\nexport default class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase<FieldRangeSliderSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiRange\n class={{@fieldClasses}}\n form={{@formId}}\n @compressed={{@compressed}}\n @readOnly={{@readOnly}}\n @fullWidth={{@fullWidth}}\n @id={{theId}}\n @levels={{@levels}}\n @step={{@step}}\n @showInput={{@showInput}}\n @showLabels={{@showLabels}}\n @showRange={{@showRange}}\n @showTicks={{@showTicks}}\n @showValue={{@showValue}}\n @disabled={{@disabled}}\n @ticks={{@ticks}}\n @tickInterval={{@tickInterval}}\n @valuePrepend={{@valuePrepend}}\n @valueAppend={{@valueAppend}}\n @onChange={{this.handleChange}}\n @value={{@value}}\n @max={{@max}}\n @isLoading={{@isLoading}}\n @min={{@min}}\n @isInvalid={{this.isInvalidAndTouched}}\n @isPrependProvided={{has-block \"prepend\"}}\n @isAppendProvided={{has-block \"append\"}}\n @isFakeMinBlock={{not (has-block \"min\")}}\n @isFakeMaxBlock={{not (has-block \"max\")}}\n @isFakeValueBlock={{not (has-block \"value\")}}\n @isFakeValuePrependBlock={{not (has-block \"valuePrepend\")}}\n @isFakeValueAppendBlock={{not (has-block \"valueAppend\")}}\n aria-label={{@ariaLabel}}\n autofocus={{@autofocus}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n >\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min as |min|>\n {{yield min to=\"min\"}}\n </:min>\n <:valuePrepend>\n {{yield to=\"valuePrepend\"}}\n </:valuePrepend>\n <:value>\n {{yield to=\"value\"}}\n </:value>\n <:valueAppend>\n {{yield to=\"valueAppend\"}}\n </:valueAppend>\n <:max as |max|>\n {{yield max to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiRange>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldRangeSlider","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiRange","on","fn"],"mappings":";;;;;;;;;;;;;AAyCe,MAAMA,sCAAsCC,sBAAuB,CAAA;AAChF,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAwFA,q/EAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,QAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-range-slider.js","sources":["../../../src/components/validated-form/field-range-slider.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiRange from '@ember-eui/core/components/eui-range';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiRangeSignature } from '@ember-eui/core/components/eui-range';\n\nexport interface FieldRangeSliderSignature {\n Element: EuiRangeSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiRangeSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n prepend: [...EuiRangeSignature['Blocks']['prepend']];\n min: [...EuiRangeSignature['Blocks']['min']];\n valuePrepend: [...EuiRangeSignature['Blocks']['valuePrepend']];\n value: [...EuiRangeSignature['Blocks']['value']];\n valueAppend: [...EuiRangeSignature['Blocks']['valueAppend']];\n append: [...EuiRangeSignature['Blocks']['append']];\n max: [...EuiRangeSignature['Blocks']['max']];\n };\n}\n\nexport default class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase<FieldRangeSliderSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiRange\n class={{@fieldClasses}}\n form={{@formId}}\n @compressed={{@compressed}}\n @readOnly={{@readOnly}}\n @fullWidth={{@fullWidth}}\n @id={{theId}}\n @levels={{@levels}}\n @step={{@step}}\n @showInput={{@showInput}}\n @showLabels={{@showLabels}}\n @showRange={{@showRange}}\n @showTicks={{@showTicks}}\n @showValue={{@showValue}}\n @disabled={{@disabled}}\n @ticks={{@ticks}}\n @tickInterval={{@tickInterval}}\n @valuePrepend={{@valuePrepend}}\n @valueAppend={{@valueAppend}}\n @onChange={{this.handleChange}}\n @value={{@value}}\n @max={{@max}}\n @isLoading={{@isLoading}}\n @min={{@min}}\n @isInvalid={{this.isInvalidAndTouched}}\n @isPrependProvided={{has-block \"prepend\"}}\n @isAppendProvided={{has-block \"append\"}}\n @isFakeMinBlock={{not (has-block \"min\")}}\n @isFakeMaxBlock={{not (has-block \"max\")}}\n @isFakeValueBlock={{not (has-block \"value\")}}\n @isFakeValuePrependBlock={{not (has-block \"valuePrepend\")}}\n @isFakeValueAppendBlock={{not (has-block \"valueAppend\")}}\n aria-label={{@ariaLabel}}\n autofocus={{@autofocus}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n >\n <:prepend as |classes|>\n {{yield classes to=\"prepend\"}}\n </:prepend>\n <:min as |min|>\n {{yield min to=\"min\"}}\n </:min>\n <:valuePrepend>\n {{yield to=\"valuePrepend\"}}\n </:valuePrepend>\n <:value>\n {{yield to=\"value\"}}\n </:value>\n <:valueAppend>\n {{yield to=\"valueAppend\"}}\n </:valueAppend>\n <:max as |max|>\n {{yield max to=\"max\"}}\n </:max>\n <:append as |classes|>\n {{yield classes to=\"append\"}}\n </:append>\n </EuiRange>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}} \n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldRangeSlider","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiRange","on","fn"],"mappings":";;;;;;;;;;;;;AA0Ce,MAAMA,sCAAsCC,sBAAuB,CAAA;AAChF,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA4FA,mpFAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,QAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -13,7 +13,7 @@ import { setComponentTemplate } from '@ember/component';
13
13
 
14
14
  class ValidatedFormFieldSelect extends ValidatedFormFieldBase {
15
15
  static {
16
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiSelect aria-label={{@ariaLabel}} class={{@fieldClasses}} form={{@formId}} @options={{this.options}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @hasNoInitialSelection={{@hasNoInitialSelection}} @inputRef={{@inputRef}} @disabled={{@disabled}} @value={{@value}} @compressed={{@compressed}} @isFakePrependBlock={{not (has-block \"prepend\")}} @isFakeAppendBlock={{not (has-block \"append\")}} @id={{theId}} autofocus={{@autofocus}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"change\" this.handleChange}}>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiSelect>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
16
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiSelect aria-label={{@ariaLabel}} class={{@fieldClasses}} form={{@formId}} @options={{this.options}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @hasNoInitialSelection={{@hasNoInitialSelection}} @inputRef={{@inputRef}} @disabled={{@disabled}} @value={{@value}} @compressed={{@compressed}} @isFakePrependBlock={{not (has-block \"prepend\")}} @isFakeAppendBlock={{not (has-block \"append\")}} @id={{theId}} autofocus={{@autofocus}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"change\" this.handleChange}}>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiSelect>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
17
17
  strictMode: true,
18
18
  scope: () => ({
19
19
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-select.js","sources":["../../../src/components/validated-form/field-select.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiSelect from '@ember-eui/core/components/eui-select';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiSelectSignature } from '@ember-eui/core/components/eui-select';\n\nexport interface FieldSelectSignature {\n Element: EuiSelectSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiSelectSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n prepend: [...EuiSelectSignature['Blocks']['prepend']];\n append: [...EuiSelectSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldSelect extends ValidatedFormFieldBase<FieldSelectSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiSelect\n aria-label={{@ariaLabel}}\n class={{@fieldClasses}}\n form={{@formId}}\n @options={{this.options}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @hasNoInitialSelection={{@hasNoInitialSelection}}\n @inputRef={{@inputRef}}\n @disabled={{@disabled}}\n @value={{@value}}\n @compressed={{@compressed}}\n @isFakePrependBlock={{not (has-block \"prepend\")}}\n @isFakeAppendBlock={{not (has-block \"append\")}}\n @id={{theId}}\n autofocus={{@autofocus}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"change\" this.handleChange}}\n >\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiSelect>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldSelect","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiSelect","on","fn"],"mappings":";;;;;;;;;;;;;AAoCe,MAAMA,iCAAiCC,sBAAuB,CAAA;AAC3E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAyDA,2mDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-select.js","sources":["../../../src/components/validated-form/field-select.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiSelect from '@ember-eui/core/components/eui-select';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiSelectSignature } from '@ember-eui/core/components/eui-select';\n\nexport interface FieldSelectSignature {\n Element: EuiSelectSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiSelectSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n prepend: [...EuiSelectSignature['Blocks']['prepend']];\n append: [...EuiSelectSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldSelect extends ValidatedFormFieldBase<FieldSelectSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n\n <:field>\n <EuiSelect\n aria-label={{@ariaLabel}}\n class={{@fieldClasses}}\n form={{@formId}}\n @options={{this.options}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @hasNoInitialSelection={{@hasNoInitialSelection}}\n @inputRef={{@inputRef}}\n @disabled={{@disabled}}\n @value={{@value}}\n @compressed={{@compressed}}\n @isFakePrependBlock={{not (has-block \"prepend\")}}\n @isFakeAppendBlock={{not (has-block \"append\")}}\n @id={{theId}}\n autofocus={{@autofocus}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"change\" this.handleChange}}\n >\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiSelect>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldSelect","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiSelect","on","fn"],"mappings":";;;;;;;;;;;;;AAqCe,MAAMA,iCAAiCC,sBAAuB,CAAA;AAC3E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA6DA,wwDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -24,7 +24,7 @@ class ValidatedFormFieldSwitch extends ValidatedFormFieldBase {
24
24
  n(this.prototype, "handleChange", [action]);
25
25
  }
26
26
  static {
27
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiSwitch class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @id={{theId}} @showLabel={{@showLabel}} @label={{@switchLabel}} @checked={{@value}} @onChange={{this.handleChange}} @isFakeLabelBlock={{not (has-block \"switch-label\")}} @disabled={{@disabled}} @compressed={{@compressed}} @type={{@type}} {{on \"blur\" (fn this.setIsTouched true)}} ...attributes>\n <:label>\n {{yield to=\"switch-label\"}}\n </:label>\n </EuiSwitch>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
27
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiSwitch class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @id={{theId}} @showLabel={{@showLabel}} @label={{@switchLabel}} @checked={{@value}} @onChange={{this.handleChange}} @isFakeLabelBlock={{not (has-block \"switch-label\")}} @disabled={{@disabled}} @compressed={{@compressed}} @type={{@type}} {{on \"blur\" (fn this.setIsTouched true)}} ...attributes>\n <:label>\n {{yield to=\"switch-label\"}}\n </:label>\n </EuiSwitch>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
28
28
  strictMode: true,
29
29
  scope: () => ({
30
30
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-switch.js","sources":["../../../src/components/validated-form/field-switch.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiSwitch from '@ember-eui/core/components/eui-switch';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiSwitchSignature } from '@ember-eui/core/components/eui-switch';\n\nexport interface FieldSwitchSignature {\n Element: EuiSwitchSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiSwitchSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n switchLabel?: EuiSwitchSignature['Args']['label'];\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n 'switch-label': [];\n };\n}\n\nexport default class ValidatedFormFieldSwitch extends ValidatedFormFieldBase<FieldSwitchSignature> {\n @action\n handleChange(e: MouseEvent) {\n e.preventDefault();\n\n const checked = (e.target as HTMLInputElement).checked;\n\n this.args.onChange?.(checked, e);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiSwitch\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @id={{theId}}\n @showLabel={{@showLabel}}\n @label={{@switchLabel}}\n @checked={{@value}}\n @onChange={{this.handleChange}}\n @isFakeLabelBlock={{not (has-block \"switch-label\")}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @type={{@type}}\n {{on \"blur\" (fn this.setIsTouched true)}}\n ...attributes\n >\n <:label>\n {{yield to=\"switch-label\"}}\n </:label>\n </EuiSwitch>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldSwitch","ValidatedFormFieldBase","handleChange","e","preventDefault","checked","target","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiSwitch","on","fn"],"mappings":";;;;;;;;;;;;;;;AAqCe,MAAMA,iCAAiCC,sBAAuB,CAAA;EAE3EC,YAAaA,CAAAC,CAAa,EAAE;IAC1BA,CAAA,CAAEC,cAAc,EAAA;AAEhB,IAAA,MAAMC,UAAWF,CAAA,CAAEG,MAAM,CAAsBD,OAAO;IAEtD,IAAI,CAACE,IAAI,CAACC,QAAQ,GAAGH,OAAS,EAAAF,CAAA,CAAA;IAC9B,IAAI,CAACM,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CARCC,MAAA,CAAA,CAAA;AAAA;AAUD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAgDA,kwCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-switch.js","sources":["../../../src/components/validated-form/field-switch.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiSwitch from '@ember-eui/core/components/eui-switch';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiSwitchSignature } from '@ember-eui/core/components/eui-switch';\n\nexport interface FieldSwitchSignature {\n Element: EuiSwitchSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiSwitchSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n switchLabel?: EuiSwitchSignature['Args']['label'];\n onChange?: (state: boolean, e: MouseEvent) => void;\n };\n Blocks: {\n label: [];\n helpText: EuiFormRowSignature['Blocks']['helpText'];\n 'switch-label': [];\n };\n}\n\nexport default class ValidatedFormFieldSwitch extends ValidatedFormFieldBase<FieldSwitchSignature> {\n @action\n handleChange(e: MouseEvent) {\n e.preventDefault();\n\n const checked = (e.target as HTMLInputElement).checked;\n\n this.args.onChange?.(checked, e);\n this.notifyValidityChange();\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiSwitch\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @id={{theId}}\n @showLabel={{@showLabel}}\n @label={{@switchLabel}}\n @checked={{@value}}\n @onChange={{this.handleChange}}\n @isFakeLabelBlock={{not (has-block \"switch-label\")}}\n @disabled={{@disabled}}\n @compressed={{@compressed}}\n @type={{@type}}\n {{on \"blur\" (fn this.setIsTouched true)}}\n ...attributes\n >\n <:label>\n {{yield to=\"switch-label\"}}\n </:label>\n </EuiSwitch>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldSwitch","ValidatedFormFieldBase","handleChange","e","preventDefault","checked","target","args","onChange","notifyValidityChange","n","prototype","action","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiSwitch","on","fn"],"mappings":";;;;;;;;;;;;;;;AAsCe,MAAMA,iCAAiCC,sBAAuB,CAAA;EAE3EC,YAAaA,CAAAC,CAAa,EAAE;IAC1BA,CAAA,CAAEC,cAAc,EAAA;AAEhB,IAAA,MAAMC,UAAWF,CAAA,CAAEG,MAAM,CAAsBD,OAAO;IAEtD,IAAI,CAACE,IAAI,CAACC,QAAQ,GAAGH,OAAS,EAAAF,CAAA,CAAA;IAC9B,IAAI,CAACM,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,cAAA,EAAA,CARCC,MAAA,CAAA,CAAA;AAAA;AAUD,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAoDA,+5CAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -13,7 +13,7 @@ import { setComponentTemplate } from '@ember/component';
13
13
 
14
14
  class ValidatedFormFieldTextArea extends ValidatedFormFieldBase {
15
15
  static {
16
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiTextArea class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @value={{@value}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @compressed={{@compressed}} @resize={{@resize}} @disabled={{@disabled}} @inputRef={{@inputRef}} @id={{theId}} @rows={{@rows}} autofocus={{@autofocus}} placeholder={{@placeholder}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}}>\n {{yield}}\n </EuiTextArea>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
16
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiTextArea class={{@fieldClasses}} form={{@formId}} aria-label={{@ariaLabel}} @value={{@value}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @compressed={{@compressed}} @resize={{@resize}} @disabled={{@disabled}} @inputRef={{@inputRef}} @id={{theId}} @rows={{@rows}} autofocus={{@autofocus}} placeholder={{@placeholder}} ...attributes {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}}>\n {{yield}}\n </EuiTextArea>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
17
17
  strictMode: true,
18
18
  scope: () => ({
19
19
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-text-area.js","sources":["../../../src/components/validated-form/field-text-area.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiTextArea from '@ember-eui/core/components/eui-text-area';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiTextAreaSignature } from '@ember-eui/core/components/eui-text-area';\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldTextAreaSignature extends FieldBaseSignature {\n Element: EuiTextAreaSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiTextAreaSignature['Args'] & {\n formId?: string;\n ariaLabel?: string;\n rows?: number;\n resize?: 'vertical' | 'horizontal' | 'both' | 'none';\n rowClasses?: string;\n fieldClasses?: string;\n labelAppend?: ComponentLike;\n prepend?: ComponentLike;\n append?: ComponentLike;\n placeholder?: string;\n autofocus?: boolean;\n inputRef?: (element: HTMLTextAreaElement) => void;\n };\n Blocks: {\n label: [];\n default: [...EuiTextAreaSignature['Blocks']['default']];\n };\n}\n\nexport default class ValidatedFormFieldTextArea extends ValidatedFormFieldBase<FieldTextAreaSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiTextArea\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @value={{@value}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @compressed={{@compressed}}\n @resize={{@resize}}\n @disabled={{@disabled}}\n @inputRef={{@inputRef}}\n @id={{theId}}\n @rows={{@rows}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n >\n {{yield}}\n </EuiTextArea>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldTextArea","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiTextArea","on","fn"],"mappings":";;;;;;;;;;;;;AA0Ce,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAiDA,+vCAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,WAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-text-area.js","sources":["../../../src/components/validated-form/field-text-area.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport EuiTextArea from '@ember-eui/core/components/eui-text-area';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\nimport type { EuiTextAreaSignature } from '@ember-eui/core/components/eui-text-area';\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldTextAreaSignature extends FieldBaseSignature {\n Element: EuiTextAreaSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiTextAreaSignature['Args'] & {\n formId?: string;\n ariaLabel?: string;\n rows?: number;\n resize?: 'vertical' | 'horizontal' | 'both' | 'none';\n rowClasses?: string;\n fieldClasses?: string;\n labelAppend?: ComponentLike;\n prepend?: ComponentLike;\n append?: ComponentLike;\n placeholder?: string;\n autofocus?: boolean;\n inputRef?: (element: HTMLTextAreaElement) => void;\n };\n Blocks: {\n label: [];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n default: [...EuiTextAreaSignature['Blocks']['default']];\n };\n}\n\nexport default class ValidatedFormFieldTextArea extends ValidatedFormFieldBase<FieldTextAreaSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiTextArea\n class={{@fieldClasses}}\n form={{@formId}}\n aria-label={{@ariaLabel}}\n @value={{@value}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @compressed={{@compressed}}\n @resize={{@resize}}\n @disabled={{@disabled}}\n @inputRef={{@inputRef}}\n @id={{theId}}\n @rows={{@rows}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n ...attributes\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n >\n {{yield}}\n </EuiTextArea>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldTextArea","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiTextArea","on","fn"],"mappings":";;;;;;;;;;;;;AA2Ce,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAqDA,45CAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,WAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -13,7 +13,7 @@ import { setComponentTemplate } from '@ember/component';
13
13
 
14
14
  class ValidatedFormFieldText extends ValidatedFormFieldBase {
15
15
  static {
16
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldText class={{@fieldClasses}} aria-label={{@ariaLabel}} form={{@formId}} @value={{@value}} @icon={{@icon}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @disabled={{@disabled}} @readOnly={{@readOnly}} @inputRef={{@inputRef}} @controlOnly={{@controlOnly}} @compressed={{@compressed}} @clear={{@clear}} @id={{theId}} @isFakePrependBlock={{not (has-block \"prepend\")}} @isFakeAppendBlock={{not (has-block \"append\")}} autofocus={{@autofocus}} placeholder={{@placeholder}} {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}} ...attributes>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldText>\n </:field>\n </EuiFormRow>\n {{/let}}\n ", {
16
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow class={{this.rowClasses}} @labelType={{@labelType}} @display={{@display}} @hasEmptyLabelSpace={{@hasEmptyLabelSpace}} @fullWidth={{@fullWidth}} @hasChildLabel={{@hasChildLabel}} @label={{this.label}} @labelAppend={{@labelAppend}} @id={{theId}} @isInvalid={{this.isInvalidAndTouched}} @error={{this.validationErrorMessages}} @helpText={{@helpText}} @errorClasses={{@errorClasses}} @isFakeLabelBlock={{not (has-block \"label\")}} @isFakeHelpTextBlock={{not (has-block \"helpText\")}} {{didInsert this.setValidationMessages}} {{didUpdate this.didUpdateValue @validations}} {{didUpdate this.didUpdateValue @value}}>\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldText class={{@fieldClasses}} aria-label={{@ariaLabel}} form={{@formId}} @value={{@value}} @icon={{@icon}} @isInvalid={{this.isInvalidAndTouched}} @fullWidth={{@fullWidth}} @isLoading={{@isLoading}} @disabled={{@disabled}} @readOnly={{@readOnly}} @inputRef={{@inputRef}} @controlOnly={{@controlOnly}} @compressed={{@compressed}} @clear={{@clear}} @id={{theId}} @isFakePrependBlock={{not (has-block \"prepend\")}} @isFakeAppendBlock={{not (has-block \"append\")}} autofocus={{@autofocus}} placeholder={{@placeholder}} {{on \"blur\" (fn this.setIsTouched true)}} {{on \"input\" this.handleChange}} ...attributes>\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldText>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n ", {
17
17
  strictMode: true,
18
18
  scope: () => ({
19
19
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"field-text.js","sources":["../../../src/components/validated-form/field-text.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFieldText from '@ember-eui/core/components/eui-field-text';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFieldTextSignature } from '@ember-eui/core/components/eui-field-text';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldTextSignature {\n Element: EuiFieldTextSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiFieldTextSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n };\n Blocks: {\n label: [];\n prepend: [...EuiFieldTextSignature['Blocks']['prepend']];\n append: [...EuiFieldTextSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldText extends ValidatedFormFieldBase<FieldTextSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldText\n class={{@fieldClasses}}\n aria-label={{@ariaLabel}}\n form={{@formId}}\n @value={{@value}}\n @icon={{@icon}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @disabled={{@disabled}}\n @readOnly={{@readOnly}}\n @inputRef={{@inputRef}}\n @controlOnly={{@controlOnly}}\n @compressed={{@compressed}}\n @clear={{@clear}}\n @id={{theId}}\n @isFakePrependBlock={{not (has-block \"prepend\")}}\n @isFakeAppendBlock={{not (has-block \"append\")}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n ...attributes\n >\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldText>\n </:field>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldText","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiFieldText","on","fn"],"mappings":";;;;;;;;;;;;;AAmCe,MAAMA,+BAA+BC,sBAAuB,CAAA;AACzE,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA2DA,upDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,YAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-text.js","sources":["../../../src/components/validated-form/field-text.gts"],"sourcesContent":["import { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport didUpdate from '@ember/render-modifiers/modifiers/did-update';\nimport EuiFieldText from '@ember-eui/core/components/eui-field-text';\nimport EuiFormRow from '@ember-eui/core/components/eui-form-row';\nimport { argOrDefault } from '@ember-eui/core/helpers';\n\nimport { not } from 'ember-truth-helpers';\n\nimport randomId from '../../-private/random-id.ts';\nimport ValidatedFormFieldBase from './field-base.gts';\n\nimport type { FieldBaseSignature } from './field-base.gts';\nimport type { EuiFieldTextSignature } from '@ember-eui/core/components/eui-field-text';\nimport type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';\n\nexport interface FieldTextSignature {\n Element: EuiFieldTextSignature['Element'];\n Args: FieldBaseSignature['Args'] &\n EuiFormRowSignature['Args'] &\n EuiFieldTextSignature['Args'] & {\n rowClasses?: string;\n fieldClasses?: string;\n formId?: string;\n ariaLabel?: string;\n autofocus?: boolean;\n };\n Blocks: {\n label: [];\n helpText: [...EuiFormRowSignature['Blocks']['helpText']];\n prepend: [...EuiFieldTextSignature['Blocks']['prepend']];\n append: [...EuiFieldTextSignature['Blocks']['append']];\n };\n}\n\nexport default class ValidatedFormFieldText extends ValidatedFormFieldBase<FieldTextSignature> {\n <template>\n {{#let (argOrDefault @id (randomId)) as |theId|}}\n <EuiFormRow\n class={{this.rowClasses}}\n @labelType={{@labelType}}\n @display={{@display}}\n @hasEmptyLabelSpace={{@hasEmptyLabelSpace}}\n @fullWidth={{@fullWidth}}\n @hasChildLabel={{@hasChildLabel}}\n @label={{this.label}}\n @labelAppend={{@labelAppend}}\n @id={{theId}}\n @isInvalid={{this.isInvalidAndTouched}}\n @error={{this.validationErrorMessages}}\n @helpText={{@helpText}}\n @errorClasses={{@errorClasses}}\n @isFakeLabelBlock={{not (has-block \"label\")}}\n @isFakeHelpTextBlock={{not (has-block \"helpText\")}}\n {{didInsert this.setValidationMessages}}\n {{didUpdate this.didUpdateValue @validations}}\n {{didUpdate this.didUpdateValue @value}}\n >\n <:label>\n {{yield to=\"label\"}}\n </:label>\n <:field>\n <EuiFieldText\n class={{@fieldClasses}}\n aria-label={{@ariaLabel}}\n form={{@formId}}\n @value={{@value}}\n @icon={{@icon}}\n @isInvalid={{this.isInvalidAndTouched}}\n @fullWidth={{@fullWidth}}\n @isLoading={{@isLoading}}\n @disabled={{@disabled}}\n @readOnly={{@readOnly}}\n @inputRef={{@inputRef}}\n @controlOnly={{@controlOnly}}\n @compressed={{@compressed}}\n @clear={{@clear}}\n @id={{theId}}\n @isFakePrependBlock={{not (has-block \"prepend\")}}\n @isFakeAppendBlock={{not (has-block \"append\")}}\n autofocus={{@autofocus}}\n placeholder={{@placeholder}}\n {{on \"blur\" (fn this.setIsTouched true)}}\n {{on \"input\" this.handleChange}}\n ...attributes\n >\n <:prepend as |classes inputId|>\n {{yield classes inputId to=\"prepend\"}}\n </:prepend>\n <:append as |classes inputId|>\n {{yield classes inputId to=\"append\"}}\n </:append>\n </EuiFieldText>\n </:field>\n <:helpText as |helpText|>\n {{yield helpText to=\"helpText\"}}\n </:helpText>\n </EuiFormRow>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormFieldText","ValidatedFormFieldBase","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiFormRow","not","didInsert","didUpdate","EuiFieldText","on","fn"],"mappings":";;;;;;;;;;;;;AAoCe,MAAMA,+BAA+BC,sBAAuB,CAAA;AACzE,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA+DA,ozDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,YAAA;QAAAC,EAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/validated-form",
3
- "version": "12.0.3",
3
+ "version": "12.0.4",
4
4
  "description": "The default blueprint for ember-cli addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -42,7 +42,7 @@
42
42
  "ember-validators": "^4.1.2"
43
43
  },
44
44
  "peerDependencies": {
45
- "@ember-eui/core": "^12.0.3",
45
+ "@ember-eui/core": "^12.0.4",
46
46
  "@glimmer/component": "^2.0.0",
47
47
  "@glimmer/tracking": "^1.1.2",
48
48
  "ember-source": ">= 4.0.0"
@@ -109,7 +109,7 @@
109
109
  "stylelint-prettier": "^5.0.3",
110
110
  "typescript": "^5.3.3",
111
111
  "webpack": "^5.97.1",
112
- "@ember-eui/core": "12.0.3"
112
+ "@ember-eui/core": "12.0.4"
113
113
  },
114
114
  "engines": {
115
115
  "node": ">= 18"