@ember-eui/validated-form 12.0.8 → 12.0.9

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 (38) hide show
  1. package/declarations/components/validated-form/field-base.d.ts +2 -1
  2. package/declarations/components/validated-form/field-base.d.ts.map +1 -1
  3. package/declarations/components/validated-form/field-dual-range-slider.d.ts.map +1 -1
  4. package/declarations/components/validated-form/field-markdown-editor.d.ts.map +1 -1
  5. package/declarations/components/validated-form/field-number.d.ts.map +1 -1
  6. package/declarations/components/validated-form/field-password.d.ts.map +1 -1
  7. package/declarations/components/validated-form/field-range-slider.d.ts.map +1 -1
  8. package/declarations/components/validated-form/field-select.d.ts.map +1 -1
  9. package/declarations/components/validated-form/field-switch.d.ts.map +1 -1
  10. package/declarations/components/validated-form/field-text-area.d.ts.map +1 -1
  11. package/declarations/components/validated-form/field-text.d.ts.map +1 -1
  12. package/declarations/components/validated-form.d.ts +1 -0
  13. package/declarations/components/validated-form.d.ts.map +1 -1
  14. package/dist/components/validated-form/field-base.js +5 -1
  15. package/dist/components/validated-form/field-base.js.map +1 -1
  16. package/dist/components/validated-form/field-dual-range-slider.js +4 -6
  17. package/dist/components/validated-form/field-dual-range-slider.js.map +1 -1
  18. package/dist/components/validated-form/field-markdown-editor.js +4 -6
  19. package/dist/components/validated-form/field-markdown-editor.js.map +1 -1
  20. package/dist/components/validated-form/field-number.js +3 -4
  21. package/dist/components/validated-form/field-number.js.map +1 -1
  22. package/dist/components/validated-form/field-password.js +3 -4
  23. package/dist/components/validated-form/field-password.js.map +1 -1
  24. package/dist/components/validated-form/field-range-slider.js +4 -6
  25. package/dist/components/validated-form/field-range-slider.js.map +1 -1
  26. package/dist/components/validated-form/field-select.js +3 -4
  27. package/dist/components/validated-form/field-select.js.map +1 -1
  28. package/dist/components/validated-form/field-switch.js +4 -6
  29. package/dist/components/validated-form/field-switch.js.map +1 -1
  30. package/dist/components/validated-form/field-text-area.js +3 -4
  31. package/dist/components/validated-form/field-text-area.js.map +1 -1
  32. package/dist/components/validated-form/field-text.js +3 -4
  33. package/dist/components/validated-form/field-text.js.map +1 -1
  34. package/dist/components/validated-form.js +10 -1
  35. package/dist/components/validated-form.js.map +1 -1
  36. package/dist/utils/get-messages.js +2 -2
  37. package/dist/utils/get-messages.js.map +1 -1
  38. package/package.json +3 -3
@@ -26,6 +26,7 @@ export default class ValidatedFormFieldBase<T extends FieldBaseSignature = Field
26
26
  lastIsTouched?: boolean;
27
27
  _validationErrorMessages: null | string[];
28
28
  isTouched: boolean;
29
+ formRowElement: HTMLElement | null;
29
30
  get validations(): {};
30
31
  get hasErrorMessages(): number | boolean;
31
32
  get isValid(): boolean;
@@ -43,7 +44,7 @@ export default class ValidatedFormFieldBase<T extends FieldBaseSignature = Field
43
44
  get options(): any[];
44
45
  get validationErrorMessages(): string[] | null;
45
46
  constructor(owner: Owner, args: T['Args']);
46
- setValidationMessages(): void;
47
+ setValidationMessages(ele?: HTMLElement): void;
47
48
  didUpdateValue(): void;
48
49
  notifyValidityChange(): void;
49
50
  setIsTouched(val: boolean): void;
@@ -1 +1 @@
1
- {"version":3,"file":"field-base.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-base.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AAOtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,aAAa;IACnD,IAAI,EAAE;QACJ,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,KAAK,EAAE,GAAG,CAAC;QACX,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC;QAChB,WAAW,CAAC,EAAE,GAAG,CAAC;QAClB,iBAAiB,CAAC,EAAE;YA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IAEH,YAAY,CAAC,CAAC,EAAE,KAAK;IAOrB,WAAW;CAUZ"}
@@ -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,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd,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,qBAAqB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACzD,GAAG,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACjD,MAAM,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACvD,GAAG,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;KAClD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,sBAAsB,CAAC,6BAA6B,CAAC;IAG9G,YAAY,CACV,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAC7B,QAAQ,EAAE,OAAO,EACjB,MAAM,EAAE,KAAK;CAoEhB"}
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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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"}
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,C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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"}
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;CAqD7F"}
@@ -76,6 +76,7 @@ export default class ValidatedFormComponent extends Component<ValidatedFormSigna
76
76
  triggerValidityChange(): void;
77
77
  setNewValidity(): void;
78
78
  onChildValidityChange(): void;
79
+ onFocusOut(e: FocusEvent): void;
79
80
  get theme(): {
80
81
  FieldBase: import("@glint/template").ComponentLike<any>;
81
82
  FieldNumber: import("@glint/template").ComponentLike<any>;
@@ -1 +1 @@
1
- {"version":3,"file":"validated-form.d.ts","sourceRoot":"","sources":["../../src/components/validated-form.ts"],"names":[],"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AAqB,CAAC,CAAC;aACjE;SACF,CAAC;KACH,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,SAAS,CAAC,sBAAsB,CAAC;IAC1E,eAAe,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,CAAoB;IAE7E,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IAEf,SAAS,UAAS;IAClB,SAAS,UAAS;gBAEf,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAK9D,WAAW;IAKX,IAAI,OAAO,YAEV;IAED,IAAI,mBAAmB,YAEtB;IAED,QAAQ,CAAC,KAAK,EAAE,SAAS;IAIzB,WAAW,CAAC,KAAK,EAAE,SAAS;IAKtB,YAAY,CAAC,CAAC,EAAE,KAAK;IAkB3B,WAAW,CAAC,CAAC,EAAE,KAAK;IAMpB,QAAQ,CAAC,KAAK,EAAE,SAAS;IAOzB,UAAU,CAAC,KAAK,EAAE,SAAS;IAU3B,cAAc;IAId,UAAU;IAIV,YAAY;IAIZ,qBAAqB;IAarB,cAAc;IAgBd,qBAAqB;IAOrB,UAAU,CAAC,CAAC,EAAE,UAAU;IAWxB,IAAI,KAAK;;;;;;;;;;;;;;MAIR;CAkDF"}
@@ -24,6 +24,7 @@ class ValidatedFormFieldBase extends Component {
24
24
  });
25
25
  }
26
26
  #isTouched = (i(this, "isTouched"), void 0);
27
+ formRowElement = null;
27
28
  get validations() {
28
29
  return this.args.validations || {};
29
30
  }
@@ -81,8 +82,11 @@ class ValidatedFormFieldBase extends Component {
81
82
  this.args.register?.(this);
82
83
  }
83
84
  //Should be executed by the child on start
84
- setValidationMessages() {
85
+ setValidationMessages(ele) {
85
86
  this._validationErrorMessages = buildValidationMessages.call(this, this.validationProperty);
87
+ if (ele) {
88
+ this.formRowElement = ele;
89
+ }
86
90
  }
87
91
  //Should be executed by the child on value update
88
92
  static {
@@ -1 +1 @@
1
- {"version":3,"file":"field-base.js","sources":["../../../src/components/validated-form/field-base.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\n\nimport {\n buildValidationMessages,\n notifyValidityChange\n} from '../../utils/build-validation-messages.js';\n\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldBaseSignature<T = ComponentLike> {\n Args: {\n id?: string;\n value: any;\n label?: string;\n error?: string[];\n options?: any[];\n validations?: any;\n customValidations?: {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[];\n rowClasses?: string;\n rowExtra?: Record<string, unknown>;\n onChange: (value: any) => void;\n onValidityChange: (isValid: boolean) => void;\n register: (field: T) => void;\n unregister: (field: T) => void;\n };\n}\n\nexport default class ValidatedFormFieldBase<\n T extends FieldBaseSignature = FieldBaseSignature\n> extends Component<T> {\n validationProperty = 'args.value';\n\n //cache for comparing\n lastIsValid?: boolean;\n lastIsTouched?: boolean;\n\n @tracked _validationErrorMessages: null | string[] = null;\n\n @tracked isTouched = false;\n\n get validations() {\n return this.args.validations || {};\n }\n\n get hasErrorMessages() {\n return this._validationErrorMessages?.length || this.error?.length > 0;\n }\n\n get isValid() {\n return !this.isInvalid;\n }\n\n get isInvalid() {\n return this.hasErrorMessages;\n }\n\n get isInvalidAndTouched() {\n return !!(this.isInvalid && this.isTouched);\n }\n\n get formHasBeenValidated() {\n return this.isTouched;\n }\n\n set formHasBeenValidated(value) {\n this.isTouched = value;\n }\n\n get customValidations(): {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[] {\n return this.args.customValidations || [];\n }\n\n get rowClasses(): string {\n return this.args.rowClasses || '';\n }\n\n get rowExtra() {\n return this.args.rowExtra || {};\n }\n\n get label(): string {\n return this.args.label || '';\n }\n\n get error(): string[] {\n return this.args.error || [];\n }\n\n get options(): any[] {\n return this.args.options || [];\n }\n\n get validationErrorMessages() {\n let error = [];\n\n if (this.error.length > 0) {\n error.push(...this.error);\n }\n\n if (\n this._validationErrorMessages &&\n this._validationErrorMessages.length > 0\n ) {\n error.push(...this._validationErrorMessages);\n }\n\n if (error.length === 0) {\n return null;\n }\n\n return error;\n }\n\n constructor(owner: Owner, args: T['Args']) {\n super(owner, args);\n this.args.register?.(this as unknown as ComponentLike);\n }\n\n //Should be executed by the child on start\n @action\n setValidationMessages() {\n this._validationErrorMessages = buildValidationMessages.call(\n this,\n this.validationProperty\n );\n }\n\n //Should be executed by the child on value update\n @action\n didUpdateValue() {\n later(() => {\n if (!this.isDestroyed && !this.isDestroying) {\n this.setValidationMessages();\n this.notifyValidityChange();\n }\n }, 1);\n }\n\n @action\n notifyValidityChange() {\n notifyValidityChange(this, this.args.onValidityChange);\n }\n\n @action\n setIsTouched(val: boolean) {\n this.isTouched = val;\n this.notifyValidityChange();\n }\n\n /**\n * This is just a default handleChange, you should override this method\n * if you need to or use whatever mechanism to bubble the changed\n * value outside and then notifyValidityChanges\n *\n * @override\n * @param {*} e\n */\n @action\n handleChange(e: Event) {\n const value = (e.target as HTMLInputElement).value;\n\n this.args.onChange(value);\n this.notifyValidityChange();\n }\n\n willDestroy() {\n super.willDestroy();\n this.args.unregister?.(this as unknown as ComponentLike);\n }\n\n <template>\n {{!@glint-expect-error}}\n {{yield this}}\n </template>\n}\n"],"names":["ValidatedFormFieldBase","Component","validationProperty","lastIsValid","lastIsTouched","g","prototype","tracked","i","void 0","validations","args","hasErrorMessages","_validationErrorMessages","length","error","isValid","isInvalid","isInvalidAndTouched","isTouched","formHasBeenValidated","value","customValidations","rowClasses","rowExtra","label","options","validationErrorMessages","push","constructor","owner","register","setValidationMessages","buildValidationMessages","call","n","action","didUpdateValue","later","isDestroyed","isDestroying","notifyValidityChange","onValidityChange","setIsTouched","val","handleChange","e","target","onChange","willDestroy","unregister","setComponentTemplate","precompileTemplate","strictMode"],"mappings":";;;;;;;;;AAiCe,MAAMA,sBAAA,SAEXC,SAAU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,CANC8B,MAAA,CAAA,CAAA;AAAA;AAQDa,EAAAA,WAAcA,GAAA;IACZ,KAAK,CAACA,WAAA,EAAA;AACN,IAAA,IAAI,CAACtC,IAAI,CAACuC,UAAU,GAAG,IAAmB,CAAA;AAC5C;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAGA,4DAAA,EAAA;MAAAC,UAAA,EAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"field-base.js","sources":["../../../src/components/validated-form/field-base.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { later } from '@ember/runloop';\nimport type Owner from '@ember/owner';\n\nimport {\n buildValidationMessages,\n notifyValidityChange\n} from '../../utils/build-validation-messages.js';\n\nimport type { ComponentLike } from '@glint/template';\n\nexport interface FieldBaseSignature<T = ComponentLike> {\n Args: {\n id?: string;\n value: any;\n label?: string;\n error?: string[];\n options?: any[];\n validations?: any;\n customValidations?: {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[];\n rowClasses?: string;\n rowExtra?: Record<string, unknown>;\n onChange: (value: any) => void;\n onValidityChange: (isValid: boolean) => void;\n register: (field: T) => void;\n unregister: (field: T) => void;\n };\n}\n\nexport default class ValidatedFormFieldBase<\n T extends FieldBaseSignature = FieldBaseSignature\n> extends Component<T> {\n validationProperty = 'args.value';\n\n //cache for comparing\n lastIsValid?: boolean;\n lastIsTouched?: boolean;\n\n @tracked _validationErrorMessages: null | string[] = null;\n\n @tracked isTouched = false;\n\n formRowElement: HTMLElement | null = null;\n\n get validations() {\n return this.args.validations || {};\n }\n\n get hasErrorMessages() {\n return this._validationErrorMessages?.length || this.error?.length > 0;\n }\n\n get isValid() {\n return !this.isInvalid;\n }\n\n get isInvalid() {\n return this.hasErrorMessages;\n }\n\n get isInvalidAndTouched() {\n return !!(this.isInvalid && this.isTouched);\n }\n\n get formHasBeenValidated() {\n return this.isTouched;\n }\n\n set formHasBeenValidated(value) {\n this.isTouched = value;\n }\n\n get customValidations(): {\n validation(value: any, options?: Record<string, unknown>): boolean;\n }[] {\n return this.args.customValidations || [];\n }\n\n get rowClasses(): string {\n return this.args.rowClasses || '';\n }\n\n get rowExtra() {\n return this.args.rowExtra || {};\n }\n\n get label(): string {\n return this.args.label || '';\n }\n\n get error(): string[] {\n return this.args.error || [];\n }\n\n get options(): any[] {\n return this.args.options || [];\n }\n\n get validationErrorMessages() {\n let error = [];\n\n if (this.error.length > 0) {\n error.push(...this.error);\n }\n\n if (\n this._validationErrorMessages &&\n this._validationErrorMessages.length > 0\n ) {\n error.push(...this._validationErrorMessages);\n }\n\n if (error.length === 0) {\n return null;\n }\n\n return error;\n }\n\n constructor(owner: Owner, args: T['Args']) {\n super(owner, args);\n this.args.register?.(this as unknown as ComponentLike);\n }\n\n //Should be executed by the child on start\n @action\n setValidationMessages(ele?: HTMLElement) {\n this._validationErrorMessages = buildValidationMessages.call(\n this,\n this.validationProperty\n );\n\n if (ele) {\n this.formRowElement = ele;\n }\n }\n\n //Should be executed by the child on value update\n @action\n didUpdateValue() {\n later(() => {\n if (!this.isDestroyed && !this.isDestroying) {\n this.setValidationMessages();\n this.notifyValidityChange();\n }\n }, 1);\n }\n\n @action\n notifyValidityChange() {\n notifyValidityChange(this, this.args.onValidityChange);\n }\n\n @action\n setIsTouched(val: boolean) {\n this.isTouched = val;\n this.notifyValidityChange();\n }\n\n /**\n * This is just a default handleChange, you should override this method\n * if you need to or use whatever mechanism to bubble the changed\n * value outside and then notifyValidityChanges\n *\n * @override\n * @param {*} e\n */\n @action\n handleChange(e: Event) {\n const value = (e.target as HTMLInputElement).value;\n\n this.args.onChange(value);\n this.notifyValidityChange();\n }\n\n willDestroy() {\n super.willDestroy();\n this.args.unregister?.(this as unknown as ComponentLike);\n }\n\n <template>\n {{!@glint-expect-error}}\n {{yield this}}\n </template>\n}\n"],"names":["ValidatedFormFieldBase","Component","validationProperty","lastIsValid","lastIsTouched","g","prototype","tracked","i","void 0","formRowElement","validations","args","hasErrorMessages","_validationErrorMessages","length","error","isValid","isInvalid","isInvalidAndTouched","isTouched","formHasBeenValidated","value","customValidations","rowClasses","rowExtra","label","options","validationErrorMessages","push","constructor","owner","register","setValidationMessages","ele","buildValidationMessages","call","n","action","didUpdateValue","later","isDestroyed","isDestroying","notifyValidityChange","onValidityChange","setIsTouched","val","handleChange","e","target","onChange","willDestroy","unregister","setComponentTemplate","precompileTemplate","strictMode"],"mappings":";;;;;;;;;AAiCe,MAAMA,sBAAA,SAEXC,SAAU,CAAA;AAClBC,EAAAA,kBAAA,GAAqB,YAAa;AAElC;EACAC,WAAA;EACAC,aAAA;AAAwB,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,0BAAA,EAAA,CAEvBC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoD,IAAK;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,yBAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,0BAAA,CAAA,EAAAC,MAAA;AAAA,EAAA;IAAAJ,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CAEzDC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoB,KAAM;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,UAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAAC,MAAA;AAE3BC,EAAAA,cAAgB,GAAqB,IAAK;EAE1C,IAAIC,WAAcA,GAAA;AAChB,IAAA,OAAO,IAAI,CAACC,IAAI,CAACD,WAAW,IAAI,EAAC;AACnC;EAEA,IAAIE,gBAAmBA,GAAA;AACrB,IAAA,OAAO,IAAI,CAACC,wBAAwB,EAAEC,UAAU,IAAI,CAACC,KAAK,EAAED,MAAS,GAAA,CAAA;AACvE;EAEA,IAAIE,OAAUA,GAAA;IACZ,OAAO,CAAC,IAAI,CAACC,SAAS;AACxB;EAEA,IAAIA,SAAYA,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E;IACzB,IAAI,CAAC1B,SAAS,GAAG0B,GAAA;IACjB,IAAI,CAACH,oBAAoB,EAAA;AAC3B;AAEA;;;;;;;AAOC;AAPD,EAAA;IAAAN,CAAA,CAAA,IAAA,CAAA/B,SAAA,EAAA,cAAA,EAAA,CANCgC,MAAA,CAAA,CAAA;AAAA;EAeDS,YAAaA,CAAAC,CAAQ,EAAE;AACrB,IAAA,MAAM1B,QAAS0B,CAAA,CAAEC,MAAM,CAAsB3B,KAAK;AAElD,IAAA,IAAI,CAACV,IAAI,CAACsC,QAAQ,CAAC5B,KAAA,CAAA;IACnB,IAAI,CAACqB,oBAAoB,EAAA;AAC3B;AAAA,EAAA;IAAAN,CAAA,CAAA,IAAA,CAAA/B,SAAA,EAAA,cAAA,EAAA,CANCgC,MAAA,CAAA,CAAA;AAAA;AAQDa,EAAAA,WAAcA,GAAA;IACZ,KAAK,CAACA,WAAA,EAAA;AACN,IAAA,IAAI,CAACvC,IAAI,CAACwC,UAAU,GAAG,IAAmB,CAAA;AAC5C;AAEA,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAGA,4DAAA,EAAA;MAAAC,UAAA,EAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -1,5 +1,5 @@
1
- import { fn } from '@ember/helper';
2
- import { on } from '@ember/modifier';
1
+ import '@ember/helper';
2
+ import '@ember/modifier';
3
3
  import { action } from '@ember/object';
4
4
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
5
5
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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>\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,
@@ -34,9 +34,7 @@ class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase {
34
34
  not,
35
35
  didInsert,
36
36
  didUpdate,
37
- EuiDualRange,
38
- on,
39
- fn
37
+ EuiDualRange
40
38
  })
41
39
  }), this);
42
40
  }
@@ -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 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;;;;"}
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 >\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"],"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,CA4EA,0hEAAA,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,5 +1,5 @@
1
- import { fn } from '@ember/helper';
2
- import { on } from '@ember/modifier';
1
+ import '@ember/helper';
2
+ import '@ember/modifier';
3
3
  import { action } from '@ember/object';
4
4
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
5
5
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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 />\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,
@@ -34,9 +34,7 @@ class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase {
34
34
  didInsert,
35
35
  didUpdate,
36
36
  EnsureSafeComponentHelper,
37
- EuiMarkdownEditor,
38
- on,
39
- fn
37
+ EuiMarkdownEditor
40
38
  })
41
39
  }), this);
42
40
  }
@@ -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 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;;;;"}
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 />\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"],"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,CAiEA,uvDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,yBAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -1,4 +1,4 @@
1
- import { fn } from '@ember/helper';
1
+ import '@ember/helper';
2
2
  import { on } from '@ember/modifier';
3
3
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
4
4
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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 \"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,
@@ -23,8 +23,7 @@ class ValidatedFormFieldNumber extends ValidatedFormFieldBase {
23
23
  didInsert,
24
24
  didUpdate,
25
25
  EuiFieldNumber,
26
- on,
27
- fn
26
+ on
28
27
  })
29
28
  }), this);
30
29
  }
@@ -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 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;;;;"}
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 \"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"],"mappings":";;;;;;;;;;;;;AAsCe,MAAMA,iCAAiCC,sBAAuB,CAAA;AAC3E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAkEA,4wDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,cAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -1,4 +1,4 @@
1
- import { fn } from '@ember/helper';
1
+ import '@ember/helper';
2
2
  import { on } from '@ember/modifier';
3
3
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
4
4
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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 \"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,
@@ -23,8 +23,7 @@ class ValidatedFormFieldPassword extends ValidatedFormFieldBase {
23
23
  didInsert,
24
24
  didUpdate,
25
25
  EuiFieldPassword,
26
- on,
27
- fn
26
+ on
28
27
  })
29
28
  }), this);
30
29
  }
@@ -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 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;;;;"}
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 \"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"],"mappings":";;;;;;;;;;;;;AAsCe,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA2DA,wsDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,gBAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -1,5 +1,5 @@
1
- import { fn } from '@ember/helper';
2
- import { on } from '@ember/modifier';
1
+ import '@ember/helper';
2
+ import '@ember/modifier';
3
3
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
4
4
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
5
5
  import EuiFormRow from '@ember-eui/core/components/eui-form-row';
@@ -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\")}} @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 ", {
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>\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,
@@ -22,9 +22,7 @@ class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase {
22
22
  not,
23
23
  didInsert,
24
24
  didUpdate,
25
- EuiRange,
26
- on,
27
- fn
25
+ EuiRange
28
26
  })
29
27
  }), this);
30
28
  }
@@ -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 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;;;;"}
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 >\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"],"mappings":";;;;;;;;;;;;;AA0Ce,MAAMA,sCAAsCC,sBAAuB,CAAA;AAChF,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA2FA,umFAAA,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,4 +1,4 @@
1
- import { fn } from '@ember/helper';
1
+ import '@ember/helper';
2
2
  import { on } from '@ember/modifier';
3
3
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
4
4
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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 \"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,
@@ -23,8 +23,7 @@ class ValidatedFormFieldSelect extends ValidatedFormFieldBase {
23
23
  didInsert,
24
24
  didUpdate,
25
25
  EuiSelect,
26
- on,
27
- fn
26
+ on
28
27
  })
29
28
  }), this);
30
29
  }
@@ -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 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;;;;"}
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 \"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"],"mappings":";;;;;;;;;;;;;AAqCe,MAAMA,iCAAiCC,sBAAuB,CAAA;AAC3E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA4DA,4tDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -1,5 +1,5 @@
1
- import { fn } from '@ember/helper';
2
- import { on } from '@ember/modifier';
1
+ import '@ember/helper';
2
+ import '@ember/modifier';
3
3
  import { action } from '@ember/object';
4
4
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
5
5
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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}} ...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,
@@ -33,9 +33,7 @@ class ValidatedFormFieldSwitch extends ValidatedFormFieldBase {
33
33
  not,
34
34
  didInsert,
35
35
  didUpdate,
36
- EuiSwitch,
37
- on,
38
- fn
36
+ EuiSwitch
39
37
  })
40
38
  }), this);
41
39
  }
@@ -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 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;;;;"}
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 ...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"],"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,CAmDA,m3CAAA,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,4 +1,4 @@
1
- import { fn } from '@ember/helper';
1
+ import '@ember/helper';
2
2
  import { on } from '@ember/modifier';
3
3
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
4
4
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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 \"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,
@@ -23,8 +23,7 @@ class ValidatedFormFieldTextArea extends ValidatedFormFieldBase {
23
23
  didInsert,
24
24
  didUpdate,
25
25
  EuiTextArea,
26
- on,
27
- fn
26
+ on
28
27
  })
29
28
  }), this);
30
29
  }
@@ -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 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;;;;"}
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 \"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"],"mappings":";;;;;;;;;;;;;AA2Ce,MAAMA,mCAAmCC,sBAAuB,CAAA;AAC7E,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CAoDA,g3CAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,WAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -1,4 +1,4 @@
1
- import { fn } from '@ember/helper';
1
+ import '@ember/helper';
2
2
  import { on } from '@ember/modifier';
3
3
  import didInsert from '@ember/render-modifiers/modifiers/did-insert';
4
4
  import didUpdate from '@ember/render-modifiers/modifiers/did-update';
@@ -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\")}} @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 ", {
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 \"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,
@@ -23,8 +23,7 @@ class ValidatedFormFieldText extends ValidatedFormFieldBase {
23
23
  didInsert,
24
24
  didUpdate,
25
25
  EuiFieldText,
26
- on,
27
- fn
26
+ on
28
27
  })
29
28
  }), this);
30
29
  }
@@ -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 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;;;;"}
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 \"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"],"mappings":";;;;;;;;;;;;;AAoCe,MAAMA,+BAA+BC,sBAAuB,CAAA;AACzE,EAAA;IAAAC,oBAAA,CAAAC,kBAAA,CA8DA,wwDAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,UAAA;QAAAC,GAAA;QAAAC,SAAA;QAAAC,SAAA;QAAAC,YAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -138,6 +138,15 @@ class ValidatedFormComponent extends Component {
138
138
  static {
139
139
  n(this.prototype, "onChildValidityChange", [action]);
140
140
  }
141
+ onFocusOut(e) {
142
+ const targetEuiFormRow = e.target?.closest?.('.euiFormRow');
143
+ this.childComponents.find(child => {
144
+ return targetEuiFormRow === child.formRowElement;
145
+ })?.setIsTouched(true);
146
+ }
147
+ static {
148
+ n(this.prototype, "onFocusOut", [action]);
149
+ }
141
150
  get theme() {
142
151
  const theme = this.args.theme || {};
143
152
  return {
@@ -146,7 +155,7 @@ class ValidatedFormComponent extends Component {
146
155
  };
147
156
  }
148
157
  static {
149
- setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |formId|}}\n <EuiForm @tagName={{argOrDefault @tagName \"form\"}} id={{formId}} @isInvalid={{@isInvalid}} @invalidCallout={{@invalidCallout}} @error={{@error}} @errorTitle={{@errorTitle}} {{on \"submit\" this.handleSubmit}} {{on \"reset\" this.handleReset}} {{didInsert this.setNewValidity}} ...attributes>\n {{yield (hash onValidityChange=this.onChildValidityChange register=this.register unregister=this.unregister isValid=this.isValid isInvalid=this.isInvalid isTouched=this.isTouched isInvalidAndTouched=this.isInvalidAndTouched formId=formId FieldBase=(component this.theme.FieldBase register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange formId=formId disabled=@isDisabled) FieldNumber=(component this.theme.FieldNumber register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldText=(component this.theme.FieldText register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldPassword=(component this.theme.FieldPassword register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldTextArea=(component this.theme.FieldTextArea register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldSelect=(component this.theme.FieldSelect register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldComboBox=(component this.theme.FieldComboBox register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId isDisabled=@isDisabled) FieldCheckboxGroup=(component this.theme.FieldCheckboxGroup register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldRadioGroup=(component this.theme.FieldRadioGroup register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldRangeSlider=(component this.theme.FieldRangeSlider register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldDualRangeSlider=(component this.theme.FieldDualRangeSlider register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldSwitch=(component this.theme.FieldSwitch register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldMarkdownEditor=(component this.theme.FieldMarkdownEditor register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled))}}\n </EuiForm>\n {{/let}}\n ", {
158
+ setComponentTemplate(precompileTemplate("\n {{#let (argOrDefault @id (randomId)) as |formId|}}\n <EuiForm @tagName={{argOrDefault @tagName \"form\"}} id={{formId}} @isInvalid={{@isInvalid}} @invalidCallout={{@invalidCallout}} @error={{@error}} @errorTitle={{@errorTitle}} {{on \"submit\" this.handleSubmit}} {{on \"reset\" this.handleReset}} {{didInsert this.setNewValidity}} {{on \"focusout\" this.onFocusOut}} ...attributes>\n {{yield (hash onValidityChange=this.onChildValidityChange register=this.register unregister=this.unregister isValid=this.isValid isInvalid=this.isInvalid isTouched=this.isTouched isInvalidAndTouched=this.isInvalidAndTouched formId=formId FieldBase=(component this.theme.FieldBase register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange formId=formId disabled=@isDisabled) FieldNumber=(component this.theme.FieldNumber register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldText=(component this.theme.FieldText register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldPassword=(component this.theme.FieldPassword register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldTextArea=(component this.theme.FieldTextArea register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldSelect=(component this.theme.FieldSelect register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldComboBox=(component this.theme.FieldComboBox register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId isDisabled=@isDisabled) FieldCheckboxGroup=(component this.theme.FieldCheckboxGroup register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldRadioGroup=(component this.theme.FieldRadioGroup register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldRangeSlider=(component this.theme.FieldRangeSlider register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldDualRangeSlider=(component this.theme.FieldDualRangeSlider register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldSwitch=(component this.theme.FieldSwitch register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled) FieldMarkdownEditor=(component this.theme.FieldMarkdownEditor register=this.register unregister=this.unregister onValidityChange=this.onChildValidityChange fullWidth=@fullWidth compressed=@compressed formId=formId disabled=@isDisabled))}}\n </EuiForm>\n {{/let}}\n ", {
150
159
  strictMode: true,
151
160
  scope: () => ({
152
161
  argOrDefault,
@@ -1 +1 @@
1
- {"version":3,"file":"validated-form.js","sources":["../../src/components/validated-form.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport { next, schedule } from '@ember/runloop';\nimport EuiForm from '@ember-eui/core/components/eui-form';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport type Owner from '@ember/owner';\n\nimport randomId from '../-private/random-id.ts';\nimport { ValidatedFormDefaultTheme } from './default-theme.ts';\n\nimport type { IValidatedFormTheme } from './default-theme';\nimport type FieldBase from './validated-form/field-base.gts';\nimport type { EuiFormSignature } from '@ember-eui/core/components/eui-form';\n\nexport interface ValidatedFormSignature {\n Element: EuiFormSignature['Element'];\n Args: {\n id?: string;\n register?: (child: ValidatedFormComponent) => void;\n unregister?: (child: ValidatedFormComponent) => void;\n addChild?: (child: FieldBase) => void;\n removeChild?: (child: FieldBase) => void;\n onInvalid?: () => void;\n onSubmit?: () => void;\n onReset?: (e: Event) => void;\n onValidityChange?: (\n isValid: boolean,\n isTouched: boolean,\n isInvalidAndTouched: boolean\n ) => void;\n theme?: Partial<IValidatedFormTheme>;\n isDisabled?: boolean;\n fullWidth?: boolean;\n compressed?: boolean;\n tagName?: EuiFormSignature['Args']['tagName'];\n isInvalid?: EuiFormSignature['Args']['isInvalid'];\n invalidCallout?: EuiFormSignature['Args']['invalidCallout'];\n error?: EuiFormSignature['Args']['error'];\n errorTitle?: EuiFormSignature['Args']['errorTitle'];\n };\n Blocks: {\n default: [\n {\n onValidityChange: (\n isValid: boolean,\n isTouched: boolean,\n isInvalidAndTouched: boolean\n ) => void;\n register: (child: FieldBase) => void;\n unregister: (child: FieldBase) => void;\n isValid: boolean;\n isInvalid: boolean;\n isTouched: boolean;\n isInvalidAndTouched: boolean;\n formId: string;\n FieldBase: IValidatedFormTheme['FieldBase'];\n FieldNumber: IValidatedFormTheme['FieldNumber'];\n FieldText: IValidatedFormTheme['FieldText'];\n FieldPassword: IValidatedFormTheme['FieldPassword'];\n FieldTextArea: IValidatedFormTheme['FieldTextArea'];\n FieldSelect: IValidatedFormTheme['FieldSelect'];\n FieldComboBox: IValidatedFormTheme['FieldComboBox'];\n FieldCheckboxGroup: IValidatedFormTheme['FieldCheckboxGroup'];\n FieldRadioGroup: IValidatedFormTheme['FieldRadioGroup'];\n FieldRangeSlider: IValidatedFormTheme['FieldRangeSlider'];\n FieldDualRangeSlider: IValidatedFormTheme['FieldDualRangeSlider'];\n FieldSwitch: IValidatedFormTheme['FieldSwitch'];\n FieldMarkdownEditor: IValidatedFormTheme['FieldMarkdownEditor'];\n }\n ];\n };\n}\n\nexport default class ValidatedFormComponent extends Component<ValidatedFormSignature> {\n @tracked childComponents: ReturnType<typeof A<FieldBase>> = A<FieldBase>([]);\n //cache to only notify if changed\n lastIsValid?: boolean;\n lastIsTouched?: boolean;\n\n @tracked isInvalid = false;\n @tracked isTouched = false;\n\n constructor(owner: Owner, args: ValidatedFormSignature['Args']) {\n super(owner, args);\n this.args.register?.(this);\n }\n\n willDestroy() {\n super.willDestroy();\n this.args.unregister?.(this);\n }\n\n get isValid() {\n return !this.isInvalid;\n }\n\n get isInvalidAndTouched() {\n return this.isInvalid && this.isTouched;\n }\n\n addChild(child: FieldBase) {\n this.childComponents.pushObject(child);\n }\n\n removeChild(child: FieldBase) {\n this.childComponents.removeObject(child);\n }\n\n @action\n async handleSubmit(e: Event) {\n e.preventDefault();\n\n if (this.isInvalid) {\n this.childComponents.setEach('isTouched', true);\n this.args.onInvalid?.();\n } else {\n this.childComponents.setEach('isTouched', false);\n\n try {\n await this.args.onSubmit?.();\n } catch (e) {\n this.childComponents.setEach('isTouched', true);\n }\n }\n }\n\n @action\n handleReset(e: Event) {\n e.preventDefault();\n this.args.onReset?.(e);\n }\n\n @action\n register(child: FieldBase) {\n if (!this.isDestroyed) {\n schedule('afterRender', this, this.addChild, child);\n }\n }\n\n @action\n unregister(child: FieldBase) {\n if (!this.isDestroyed) {\n schedule('afterRender', this, this.removeChild, child);\n // When adding a child the validation gets calculated on a `did-insert` modifier\n // for removal there's no modifier so it gets called here\n schedule('afterRender', this, this.triggerValidityChange);\n }\n }\n\n @action\n updateValidity() {\n this.triggerValidityChange();\n }\n\n getIsValid() {\n return this.childComponents.isEvery('isValid');\n }\n\n getIsTouched() {\n return this.childComponents.isAny('isTouched');\n }\n\n triggerValidityChange() {\n const lastIsValid = this.isValid;\n const lastIsTouched = this.isTouched;\n\n if (\n lastIsValid !== this.getIsValid() ||\n lastIsTouched !== this.getIsTouched()\n ) {\n this.setNewValidity();\n }\n }\n\n @action\n setNewValidity() {\n next(() => {\n this.isInvalid = !this.getIsValid();\n this.isTouched = this.getIsTouched();\n\n if (!this.isDestroying) {\n this.args.onValidityChange?.(\n this.isValid,\n this.isTouched,\n this.isInvalidAndTouched\n );\n }\n });\n }\n\n @action\n onChildValidityChange() {\n if (!this.isDestroying) {\n this.updateValidity();\n }\n }\n\n get theme() {\n const theme: Partial<IValidatedFormTheme> = this.args.theme || {};\n\n return { ...ValidatedFormDefaultTheme, ...theme };\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |formId|}}\n <EuiForm\n @tagName={{argOrDefault @tagName \"form\"}}\n id={{formId}}\n @isInvalid={{@isInvalid}}\n @invalidCallout={{@invalidCallout}}\n @error={{@error}}\n @errorTitle={{@errorTitle}}\n {{on \"submit\" this.handleSubmit}}\n {{on \"reset\" this.handleReset}}\n {{didInsert this.setNewValidity}}\n ...attributes\n >\n {{yield\n (hash\n onValidityChange=this.onChildValidityChange\n register=this.register\n unregister=this.unregister\n isValid=this.isValid\n isInvalid=this.isInvalid\n isTouched=this.isTouched\n isInvalidAndTouched=this.isInvalidAndTouched\n formId=formId\n FieldBase=(component\n this.theme.FieldBase\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n formId=formId\n disabled=@isDisabled\n )\n FieldNumber=(component\n this.theme.FieldNumber\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldText=(component\n this.theme.FieldText\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldPassword=(component\n this.theme.FieldPassword\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldTextArea=(component\n this.theme.FieldTextArea\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldSelect=(component\n this.theme.FieldSelect\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldComboBox=(component\n this.theme.FieldComboBox\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n isDisabled=@isDisabled\n )\n FieldCheckboxGroup=(component\n this.theme.FieldCheckboxGroup\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldRadioGroup=(component\n this.theme.FieldRadioGroup\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldRangeSlider=(component\n this.theme.FieldRangeSlider\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldDualRangeSlider=(component\n this.theme.FieldDualRangeSlider\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldSwitch=(component\n this.theme.FieldSwitch\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldMarkdownEditor=(component\n this.theme.FieldMarkdownEditor\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n )\n }}\n </EuiForm>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormComponent","Component","g","prototype","tracked","A","i","void 0","lastIsValid","lastIsTouched","constructor","owner","args","register","willDestroy","unregister","isValid","isInvalid","isInvalidAndTouched","isTouched","addChild","child","childComponents","pushObject","removeChild","removeObject","handleSubmit","e","preventDefault","setEach","onInvalid","onSubmit","n","action","handleReset","onReset","isDestroyed","schedule","triggerValidityChange","updateValidity","getIsValid","isEvery","getIsTouched","isAny","setNewValidity","next","isDestroying","onValidityChange","onChildValidityChange","theme","ValidatedFormDefaultTheme","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiForm","on","didInsert","hash"],"mappings":";;;;;;;;;;;;;;;;AA8Ee,MAAMA,+BAA+BC,SAAU,CAAA;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,iBAAA,EAAA,CAC3DC,OAAA,CAAA,EAAA,YAAA;MAAA,OAA2DC,CAAE,CAAW,EAAE,CAAE;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,gBAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,iBAAA,CAAA,EAAAC,MAAA;AAC7E;EACAC,WAAA;EACAC,aAAA;AAAwB,EAAA;IAAAP,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CAEvBC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoB,KAAM;AAAA,K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c,EAAA;AACrB;AACF;AAAA,EAAA;IAAAP,CAAA,CAAA,IAAA,CAAA7B,SAAA,EAAA,uBAAA,EAAA,CALC8B,MAAA,CAAA,CAAA;AAAA;EAOD,IAAIgB,KAAQA,GAAA;IACV,MAAMA,KAAsC,GAAA,IAAI,CAACrC,IAAI,CAACqC,KAAK,IAAI,EAAC;IAEhE,OAAO;AAAE,MAAA,GAAGC,yBAAyB;MAAE,GAAGD;KAAM;AAClD;AAEA,EAAA;IAAAE,oBAAA,CAAAC,kBAAA,CA4JA,68GAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,OAAA;QAAAC,EAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
1
+ {"version":3,"file":"validated-form.js","sources":["../../src/components/validated-form.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { A } from '@ember/array';\nimport { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport didInsert from '@ember/render-modifiers/modifiers/did-insert';\nimport { next, schedule } from '@ember/runloop';\nimport EuiForm from '@ember-eui/core/components/eui-form';\nimport { argOrDefault } from '@ember-eui/core/helpers';\nimport type Owner from '@ember/owner';\n\nimport randomId from '../-private/random-id.ts';\nimport { ValidatedFormDefaultTheme } from './default-theme.ts';\n\nimport type { IValidatedFormTheme } from './default-theme';\nimport type FieldBase from './validated-form/field-base.gts';\nimport type { EuiFormSignature } from '@ember-eui/core/components/eui-form';\n\nexport interface ValidatedFormSignature {\n Element: EuiFormSignature['Element'];\n Args: {\n id?: string;\n register?: (child: ValidatedFormComponent) => void;\n unregister?: (child: ValidatedFormComponent) => void;\n addChild?: (child: FieldBase) => void;\n removeChild?: (child: FieldBase) => void;\n onInvalid?: () => void;\n onSubmit?: () => void;\n onReset?: (e: Event) => void;\n onValidityChange?: (\n isValid: boolean,\n isTouched: boolean,\n isInvalidAndTouched: boolean\n ) => void;\n theme?: Partial<IValidatedFormTheme>;\n isDisabled?: boolean;\n fullWidth?: boolean;\n compressed?: boolean;\n tagName?: EuiFormSignature['Args']['tagName'];\n isInvalid?: EuiFormSignature['Args']['isInvalid'];\n invalidCallout?: EuiFormSignature['Args']['invalidCallout'];\n error?: EuiFormSignature['Args']['error'];\n errorTitle?: EuiFormSignature['Args']['errorTitle'];\n };\n Blocks: {\n default: [\n {\n onValidityChange: (\n isValid: boolean,\n isTouched: boolean,\n isInvalidAndTouched: boolean\n ) => void;\n register: (child: FieldBase) => void;\n unregister: (child: FieldBase) => void;\n isValid: boolean;\n isInvalid: boolean;\n isTouched: boolean;\n isInvalidAndTouched: boolean;\n formId: string;\n FieldBase: IValidatedFormTheme['FieldBase'];\n FieldNumber: IValidatedFormTheme['FieldNumber'];\n FieldText: IValidatedFormTheme['FieldText'];\n FieldPassword: IValidatedFormTheme['FieldPassword'];\n FieldTextArea: IValidatedFormTheme['FieldTextArea'];\n FieldSelect: IValidatedFormTheme['FieldSelect'];\n FieldComboBox: IValidatedFormTheme['FieldComboBox'];\n FieldCheckboxGroup: IValidatedFormTheme['FieldCheckboxGroup'];\n FieldRadioGroup: IValidatedFormTheme['FieldRadioGroup'];\n FieldRangeSlider: IValidatedFormTheme['FieldRangeSlider'];\n FieldDualRangeSlider: IValidatedFormTheme['FieldDualRangeSlider'];\n FieldSwitch: IValidatedFormTheme['FieldSwitch'];\n FieldMarkdownEditor: IValidatedFormTheme['FieldMarkdownEditor'];\n }\n ];\n };\n}\n\nexport default class ValidatedFormComponent extends Component<ValidatedFormSignature> {\n @tracked childComponents: ReturnType<typeof A<FieldBase>> = A<FieldBase>([]);\n //cache to only notify if changed\n lastIsValid?: boolean;\n lastIsTouched?: boolean;\n\n @tracked isInvalid = false;\n @tracked isTouched = false;\n\n constructor(owner: Owner, args: ValidatedFormSignature['Args']) {\n super(owner, args);\n this.args.register?.(this);\n }\n\n willDestroy() {\n super.willDestroy();\n this.args.unregister?.(this);\n }\n\n get isValid() {\n return !this.isInvalid;\n }\n\n get isInvalidAndTouched() {\n return this.isInvalid && this.isTouched;\n }\n\n addChild(child: FieldBase) {\n this.childComponents.pushObject(child);\n }\n\n removeChild(child: FieldBase) {\n this.childComponents.removeObject(child);\n }\n\n @action\n async handleSubmit(e: Event) {\n e.preventDefault();\n\n if (this.isInvalid) {\n this.childComponents.setEach('isTouched', true);\n this.args.onInvalid?.();\n } else {\n this.childComponents.setEach('isTouched', false);\n\n try {\n await this.args.onSubmit?.();\n } catch (e) {\n this.childComponents.setEach('isTouched', true);\n }\n }\n }\n\n @action\n handleReset(e: Event) {\n e.preventDefault();\n this.args.onReset?.(e);\n }\n\n @action\n register(child: FieldBase) {\n if (!this.isDestroyed) {\n schedule('afterRender', this, this.addChild, child);\n }\n }\n\n @action\n unregister(child: FieldBase) {\n if (!this.isDestroyed) {\n schedule('afterRender', this, this.removeChild, child);\n // When adding a child the validation gets calculated on a `did-insert` modifier\n // for removal there's no modifier so it gets called here\n schedule('afterRender', this, this.triggerValidityChange);\n }\n }\n\n @action\n updateValidity() {\n this.triggerValidityChange();\n }\n\n getIsValid() {\n return this.childComponents.isEvery('isValid');\n }\n\n getIsTouched() {\n return this.childComponents.isAny('isTouched');\n }\n\n triggerValidityChange() {\n const lastIsValid = this.isValid;\n const lastIsTouched = this.isTouched;\n\n if (\n lastIsValid !== this.getIsValid() ||\n lastIsTouched !== this.getIsTouched()\n ) {\n this.setNewValidity();\n }\n }\n\n @action\n setNewValidity() {\n next(() => {\n this.isInvalid = !this.getIsValid();\n this.isTouched = this.getIsTouched();\n\n if (!this.isDestroying) {\n this.args.onValidityChange?.(\n this.isValid,\n this.isTouched,\n this.isInvalidAndTouched\n );\n }\n });\n }\n\n @action\n onChildValidityChange() {\n if (!this.isDestroying) {\n this.updateValidity();\n }\n }\n\n @action\n onFocusOut(e: FocusEvent) {\n \n const targetEuiFormRow = (e.target as HTMLInputElement)?.closest?.('.euiFormRow');\n \n this.childComponents\n .find((child) => {\n return targetEuiFormRow === child.formRowElement;\n })\n ?.setIsTouched(true);\n }\n\n get theme() {\n const theme: Partial<IValidatedFormTheme> = this.args.theme || {};\n\n return { ...ValidatedFormDefaultTheme, ...theme };\n }\n\n <template>\n {{#let (argOrDefault @id (randomId)) as |formId|}}\n <EuiForm\n @tagName={{argOrDefault @tagName \"form\"}}\n id={{formId}}\n @isInvalid={{@isInvalid}}\n @invalidCallout={{@invalidCallout}}\n @error={{@error}}\n @errorTitle={{@errorTitle}}\n {{on \"submit\" this.handleSubmit}}\n {{on \"reset\" this.handleReset}}\n {{didInsert this.setNewValidity}}\n {{on \"focusout\" this.onFocusOut}}\n ...attributes\n >\n {{yield\n (hash\n onValidityChange=this.onChildValidityChange\n register=this.register\n unregister=this.unregister\n isValid=this.isValid\n isInvalid=this.isInvalid\n isTouched=this.isTouched\n isInvalidAndTouched=this.isInvalidAndTouched\n formId=formId\n FieldBase=(component\n this.theme.FieldBase\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n formId=formId\n disabled=@isDisabled\n )\n FieldNumber=(component\n this.theme.FieldNumber\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldText=(component\n this.theme.FieldText\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldPassword=(component\n this.theme.FieldPassword\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldTextArea=(component\n this.theme.FieldTextArea\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldSelect=(component\n this.theme.FieldSelect\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldComboBox=(component\n this.theme.FieldComboBox\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n isDisabled=@isDisabled\n )\n FieldCheckboxGroup=(component\n this.theme.FieldCheckboxGroup\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldRadioGroup=(component\n this.theme.FieldRadioGroup\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldRangeSlider=(component\n this.theme.FieldRangeSlider\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldDualRangeSlider=(component\n this.theme.FieldDualRangeSlider\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldSwitch=(component\n this.theme.FieldSwitch\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n FieldMarkdownEditor=(component\n this.theme.FieldMarkdownEditor\n register=this.register\n unregister=this.unregister\n onValidityChange=this.onChildValidityChange\n fullWidth=@fullWidth\n compressed=@compressed\n formId=formId\n disabled=@isDisabled\n )\n )\n }}\n </EuiForm>\n {{/let}}\n </template>\n}\n"],"names":["ValidatedFormComponent","Component","g","prototype","tracked","A","i","void 0","lastIsValid","lastIsTouched","constructor","owner","args","register","willDestroy","unregister","isValid","isInvalid","isInvalidAndTouched","isTouched","addChild","child","childComponents","pushObject","removeChild","removeObject","handleSubmit","e","preventDefault","setEach","onInvalid","onSubmit","n","action","handleReset","onReset","isDestroyed","schedule","triggerValidityChange","updateValidity","getIsValid","isEvery","getIsTouched","isAny","setNewValidity","next","isDestroying","onValidityChange","onChildValidityChange","onFocusOut","targetEuiFormRow","target","closest","find","formRowElement","setIsTouched","theme","ValidatedFormDefaultTheme","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","EuiForm","on","didInsert","hash"],"mappings":";;;;;;;;;;;;;;;;AA8Ee,MAAMA,+BAA+BC,SAAU,CAAA;AAAA,EAAA;IAAAC,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,iBAAA,EAAA,CAC3DC,OAAA,CAAA,EAAA,YAAA;MAAA,OAA2DC,CAAE,CAAW,EAAE,CAAE;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,gBAAA,IAAAC,CAAA,CAAA,IAAA,EAAA,iBAAA,CAAA,EAAAC,MAAA;AAC7E;EACAC,WAAA;EACAC,aAAA;AAAwB,EAAA;IAAAP,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CAEvBC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoB,KAAM;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,UAAA,IAAAE,CAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAAC,MAAA;AAAA,EAAA;IAAAL,CAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CAC1BC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoB,KAAM;AAAA,KAAA,CAAA;AAAA;AAAA,EAAA,UAAA,IAAAE,CAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAAC,MAAA;AAE3BG,EAAAA,WAAAA,CAAYC,KAAY,EAAEC,IAAoC,EAAE;AAC9D,IAAA,KAAK,CAACD,KAAO,EAAAC,IAAA,CAAA;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AAvB,CAAA,CAAA,IAAA,CAAA7B,SAAA,EAAA,YAAA,EAAA,CAVC8B,MAAA,CAAA,CAAA;AAAA;EAYD,IAAIuB,KAAQA,GAAA;IACV,MAAMA,KAAsC,GAAA,IAAI,CAAC5C,IAAI,CAAC4C,KAAK,IAAI,EAAC;IAEhE,OAAO;AAAE,MAAA,GAAGC,yBAAyB;MAAE,GAAGD;KAAM;AAClD;AAEA,EAAA;IAAAE,oBAAA,CAAAC,kBAAA,CA6JA,i/GAAA,EAAA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,YAAA;QAAAC,QAAA;QAAAC,OAAA;QAAAC,EAAA;QAAAC,SAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;;;"}
@@ -18,10 +18,10 @@ function getMessages(owner, useCache = true) {
18
18
  return cachedRef;
19
19
  }
20
20
  if (!isNone(owner)) {
21
- messagesModule = owner.factoryFor('validator:messages').create();
21
+ messagesModule = owner.factoryFor('validator:messages')?.create();
22
22
  }
23
23
  cachedRef = messagesModule;
24
- return messagesModule;
24
+ return messagesModule || Messages;
25
25
  }
26
26
 
27
27
  export { getMessages as default };
@@ -1 +1 @@
1
- {"version":3,"file":"get-messages.js","sources":["../../src/utils/get-messages.js"],"sourcesContent":["import { isPresent } from '@ember/utils';\nimport { isNone } from '@ember/utils';\n\nimport Messages from 'ember-validators/messages';\n\nlet cachedRef = null;\n\n/**\n * Find and load messages module on consuming app. Defaults to addon messages.\n * To define a custom message map, create `my-app/app/validators/messages.js`\n * that extends from ember-validators/messages\n *\n * @param {Object} owner\n * @param {Boolean} useCache Pass `false` to ignore cached key\n * @return {Object}\n */\nexport default function getMessages(owner, useCache = true) {\n let messagesModule = Messages;\n\n if (useCache && isPresent(cachedRef)) {\n return cachedRef;\n }\n\n if (!isNone(owner)) {\n messagesModule = owner.factoryFor('validator:messages').create()\n }\n\n cachedRef = messagesModule;\n\n return messagesModule;\n}\n"],"names":["cachedRef","getMessages","owner","useCache","messagesModule","Messages","isPresent","isNone","factoryFor","create"],"mappings":";;;AAKA,IAAIA,SAAS,GAAG,IAAI;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,WAAWA,CAACC,KAAK,EAAEC,QAAQ,GAAG,IAAI,EAAE;EAC1D,IAAIC,cAAc,GAAGC,QAAQ;AAE7B,EAAA,IAAIF,QAAQ,IAAIG,SAAS,CAACN,SAAS,CAAC,EAAE;AACpC,IAAA,OAAOA,SAAS;AAClB;AAEA,EAAA,IAAI,CAACO,MAAM,CAACL,KAAK,CAAC,EAAE;IAClBE,cAAc,GAAGF,KAAK,CAACM,UAAU,CAAC,oBAAoB,CAAC,CAACC,MAAM,EAAE;AAClE;AAEAT,EAAAA,SAAS,GAAGI,cAAc;AAE1B,EAAA,OAAOA,cAAc;AACvB;;;;"}
1
+ {"version":3,"file":"get-messages.js","sources":["../../src/utils/get-messages.js"],"sourcesContent":["import { isPresent } from '@ember/utils';\nimport { isNone } from '@ember/utils';\n\nimport Messages from 'ember-validators/messages';\n\nlet cachedRef = null;\n\n/**\n * Find and load messages module on consuming app. Defaults to addon messages.\n * To define a custom message map, create `my-app/app/validators/messages.js`\n * that extends from ember-validators/messages\n *\n * @param {Object} owner\n * @param {Boolean} useCache Pass `false` to ignore cached key\n * @return {Object}\n */\nexport default function getMessages(owner, useCache = true) {\n let messagesModule = Messages;\n\n if (useCache && isPresent(cachedRef)) {\n return cachedRef;\n }\n\n if (!isNone(owner)) {\n messagesModule = owner.factoryFor('validator:messages')?.create()\n }\n\n cachedRef = messagesModule;\n\n return messagesModule || Messages;\n}\n"],"names":["cachedRef","getMessages","owner","useCache","messagesModule","Messages","isPresent","isNone","factoryFor","create"],"mappings":";;;AAKA,IAAIA,SAAS,GAAG,IAAI;;AAEpB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACe,SAASC,WAAWA,CAACC,KAAK,EAAEC,QAAQ,GAAG,IAAI,EAAE;EAC1D,IAAIC,cAAc,GAAGC,QAAQ;AAE7B,EAAA,IAAIF,QAAQ,IAAIG,SAAS,CAACN,SAAS,CAAC,EAAE;AACpC,IAAA,OAAOA,SAAS;AAClB;AAEA,EAAA,IAAI,CAACO,MAAM,CAACL,KAAK,CAAC,EAAE;IAClBE,cAAc,GAAGF,KAAK,CAACM,UAAU,CAAC,oBAAoB,CAAC,EAAEC,MAAM,EAAE;AACnE;AAEAT,EAAAA,SAAS,GAAGI,cAAc;EAE1B,OAAOA,cAAc,IAAIC,QAAQ;AACnC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/validated-form",
3
- "version": "12.0.8",
3
+ "version": "12.0.9",
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.8",
45
+ "@ember-eui/core": "^12.0.9",
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.8"
112
+ "@ember-eui/core": "12.0.9"
113
113
  },
114
114
  "engines": {
115
115
  "node": ">= 18"