@ember-eui/validated-form 7.1.4 → 8.0.0-beta.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/addon-main.js +5 -0
- package/declarations/components/validated-form/field-base/index.d.ts +37 -0
- package/declarations/components/validated-form/field-base/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-base.d.ts +56 -0
- package/declarations/components/validated-form/field-base.d.ts.map +1 -0
- package/declarations/components/validated-form/field-checkbox-group/index.d.ts +8 -0
- package/declarations/components/validated-form/field-checkbox-group/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-checkbox-group.d.ts +30 -0
- package/declarations/components/validated-form/field-checkbox-group.d.ts.map +1 -0
- package/declarations/components/validated-form/field-combo-box/index.d.ts +5 -0
- package/declarations/components/validated-form/field-combo-box/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-combo-box.d.ts +27 -0
- package/declarations/components/validated-form/field-combo-box.d.ts.map +1 -0
- package/declarations/components/validated-form/field-dual-range-slider/index.d.ts +5 -0
- package/declarations/components/validated-form/field-dual-range-slider/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-dual-range-slider.d.ts +32 -0
- package/declarations/components/validated-form/field-dual-range-slider.d.ts.map +1 -0
- package/{addon/components/validated-form/field-markdown-editor/index.js → declarations/components/validated-form/field-markdown-editor/index.d.ts} +3 -8
- package/declarations/components/validated-form/field-markdown-editor/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-markdown-editor.d.ts +25 -0
- package/declarations/components/validated-form/field-markdown-editor.d.ts.map +1 -0
- package/{addon/components/validated-form/field-number/index.js → declarations/components/validated-form/field-number/index.d.ts} +3 -2
- package/declarations/components/validated-form/field-number/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-number.d.ts +24 -0
- package/declarations/components/validated-form/field-number.d.ts.map +1 -0
- package/{addon/components/validated-form/field-password/index.js → declarations/components/validated-form/field-password/index.d.ts} +3 -2
- package/declarations/components/validated-form/field-password/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-password.d.ts +24 -0
- package/declarations/components/validated-form/field-password.d.ts.map +1 -0
- package/declarations/components/validated-form/field-radio-group/index.d.ts +8 -0
- package/declarations/components/validated-form/field-radio-group/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-radio-group.d.ts +29 -0
- package/declarations/components/validated-form/field-radio-group.d.ts.map +1 -0
- package/{addon/components/validated-form/field-range-slider/index.js → declarations/components/validated-form/field-range-slider/index.d.ts} +3 -2
- package/declarations/components/validated-form/field-range-slider/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-range-slider.d.ts +28 -0
- package/declarations/components/validated-form/field-range-slider.d.ts.map +1 -0
- package/{addon/components/validated-form/field-select/index.js → declarations/components/validated-form/field-select/index.d.ts} +3 -2
- package/declarations/components/validated-form/field-select/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-select.d.ts +23 -0
- package/declarations/components/validated-form/field-select.d.ts.map +1 -0
- package/declarations/components/validated-form/field-switch/index.d.ts +5 -0
- package/declarations/components/validated-form/field-switch/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-switch.d.ts +24 -0
- package/declarations/components/validated-form/field-switch.d.ts.map +1 -0
- package/{addon/components/validated-form/field-text/index.js → declarations/components/validated-form/field-text/index.d.ts} +3 -2
- package/declarations/components/validated-form/field-text/index.d.ts.map +1 -0
- package/{addon/components/validated-form/field-text-area/index.js → declarations/components/validated-form/field-text-area/index.d.ts} +3 -2
- package/declarations/components/validated-form/field-text-area/index.d.ts.map +1 -0
- package/declarations/components/validated-form/field-text-area.d.ts +29 -0
- package/declarations/components/validated-form/field-text-area.d.ts.map +1 -0
- package/declarations/components/validated-form/field-text.d.ts +22 -0
- package/declarations/components/validated-form/field-text.d.ts.map +1 -0
- package/declarations/components/validated-form/index.d.ts +30 -0
- package/declarations/components/validated-form/index.d.ts.map +1 -0
- package/declarations/components/validated-form.d.ts +91 -0
- package/declarations/components/validated-form.d.ts.map +1 -0
- package/declarations/utils/build-validation-messages.d.ts +13 -0
- package/declarations/utils/build-validation-messages.d.ts.map +1 -0
- package/declarations/utils/get-messages.d.ts +11 -0
- package/declarations/utils/get-messages.d.ts.map +1 -0
- package/declarations/utils/validation-errors.d.ts +2 -0
- package/declarations/utils/validation-errors.d.ts.map +1 -0
- package/declarations/utils/with-defaults.d.ts +10 -0
- package/declarations/utils/with-defaults.d.ts.map +1 -0
- package/declarations/validators/messages.d.ts +4 -0
- package/declarations/validators/messages.d.ts.map +1 -0
- package/dist/_app_/components/validated-form/field-base.js +1 -0
- package/dist/_app_/components/validated-form/field-checkbox-group.js +1 -0
- package/dist/_app_/components/validated-form/field-combo-box.js +1 -0
- package/dist/_app_/components/validated-form/field-dual-range-slider.js +1 -0
- package/dist/_app_/components/validated-form/field-markdown-editor.js +1 -0
- package/dist/_app_/components/validated-form/field-number.js +1 -0
- package/dist/_app_/components/validated-form/field-password.js +1 -0
- package/dist/_app_/components/validated-form/field-radio-group.js +1 -0
- package/dist/_app_/components/validated-form/field-range-slider.js +1 -0
- package/dist/_app_/components/validated-form/field-select.js +1 -0
- package/dist/_app_/components/validated-form/field-switch.js +1 -0
- package/dist/_app_/components/validated-form/field-text-area.js +1 -0
- package/dist/_app_/components/validated-form/field-text.js +1 -0
- package/dist/_app_/components/validated-form.js +1 -0
- package/dist/_app_/utils/build-validation-messages.js +1 -0
- package/dist/_app_/utils/get-messages.js +1 -0
- package/dist/_app_/utils/validation-errors.js +1 -0
- package/dist/_app_/utils/with-defaults.js +1 -0
- package/dist/_app_/validators/messages.js +1 -0
- package/dist/components/validated-form/field-base.js +7 -0
- package/dist/components/validated-form/field-base.js.map +1 -0
- package/dist/components/validated-form/field-checkbox-group.js +104 -0
- package/dist/components/validated-form/field-checkbox-group.js.map +1 -0
- package/dist/components/validated-form/field-combo-box.js +106 -0
- package/dist/components/validated-form/field-combo-box.js.map +1 -0
- package/dist/components/validated-form/field-dual-range-slider.js +112 -0
- package/dist/components/validated-form/field-dual-range-slider.js.map +1 -0
- package/dist/components/validated-form/field-markdown-editor.js +102 -0
- package/dist/components/validated-form/field-markdown-editor.js.map +1 -0
- package/dist/components/validated-form/field-number.js +94 -0
- package/dist/components/validated-form/field-number.js.map +1 -0
- package/dist/components/validated-form/field-password.js +87 -0
- package/dist/components/validated-form/field-password.js.map +1 -0
- package/dist/components/validated-form/field-radio-group.js +102 -0
- package/dist/components/validated-form/field-radio-group.js.map +1 -0
- package/dist/components/validated-form/field-range-slider.js +119 -0
- package/dist/components/validated-form/field-range-slider.js.map +1 -0
- package/dist/components/validated-form/field-select.js +88 -0
- package/dist/components/validated-form/field-select.js.map +1 -0
- package/dist/components/validated-form/field-switch.js +87 -0
- package/dist/components/validated-form/field-switch.js.map +1 -0
- package/dist/components/validated-form/field-text-area.js +80 -0
- package/dist/components/validated-form/field-text-area.js.map +1 -0
- package/dist/components/validated-form/field-text.js +90 -0
- package/dist/components/validated-form/field-text.js.map +1 -0
- package/dist/components/validated-form.js +303 -0
- package/dist/components/validated-form.js.map +1 -0
- package/dist/field-base-t4F7Xj_I.js +185 -0
- package/dist/field-base-t4F7Xj_I.js.map +1 -0
- package/{addon → dist}/utils/build-validation-messages.js +13 -36
- package/dist/utils/build-validation-messages.js.map +1 -0
- package/{addon → dist}/utils/get-messages.js +6 -7
- package/dist/utils/get-messages.js.map +1 -0
- package/dist/utils/validation-errors.js +18 -0
- package/dist/utils/validation-errors.js.map +1 -0
- package/{addon → dist}/utils/with-defaults.js +5 -2
- package/dist/utils/with-defaults.js.map +1 -0
- package/dist/validators/messages.js +7 -0
- package/dist/validators/messages.js.map +1 -0
- package/package.json +116 -76
- package/addon/components/validated-form/field-base/index.js +0 -144
- package/addon/components/validated-form/field-checkbox-group/index.hbs +0 -47
- package/addon/components/validated-form/field-checkbox-group/index.js +0 -42
- package/addon/components/validated-form/field-combo-box/index.hbs +0 -65
- package/addon/components/validated-form/field-combo-box/index.js +0 -12
- package/addon/components/validated-form/field-dual-range-slider/index.hbs +0 -80
- package/addon/components/validated-form/field-dual-range-slider/index.js +0 -12
- package/addon/components/validated-form/field-markdown-editor/index.hbs +0 -61
- package/addon/components/validated-form/field-number/index.hbs +0 -63
- package/addon/components/validated-form/field-password/index.hbs +0 -56
- package/addon/components/validated-form/field-radio-group/index.hbs +0 -45
- package/addon/components/validated-form/field-radio-group/index.js +0 -39
- package/addon/components/validated-form/field-range-slider/index.hbs +0 -93
- package/addon/components/validated-form/field-select/index.hbs +0 -57
- package/addon/components/validated-form/field-switch/index.hbs +0 -48
- package/addon/components/validated-form/field-switch/index.js +0 -12
- package/addon/components/validated-form/field-text/index.hbs +0 -59
- package/addon/components/validated-form/field-text-area/index.hbs +0 -54
- package/addon/components/validated-form/index.hbs +0 -158
- package/addon/components/validated-form/index.js +0 -132
- package/addon/utils/validation-errors.js +0 -13
- package/addon/validators/messages.js +0 -4
- package/app/components/validated-form/field-base/index.js +0 -1
- package/app/components/validated-form/field-checkbox-group/index.js +0 -1
- package/app/components/validated-form/field-combo-box/index.js +0 -1
- package/app/components/validated-form/field-dual-range-slider/index.js +0 -1
- package/app/components/validated-form/field-markdown-editor/index.js +0 -1
- package/app/components/validated-form/field-number/index.js +0 -1
- package/app/components/validated-form/field-password/index.js +0 -1
- package/app/components/validated-form/field-radio-group/index.js +0 -1
- package/app/components/validated-form/field-range-slider/index.js +0 -1
- package/app/components/validated-form/field-select/index.js +0 -1
- package/app/components/validated-form/field-switch/index.js +0 -1
- package/app/components/validated-form/field-text/index.js +0 -1
- package/app/components/validated-form/field-text-area/index.js +0 -1
- package/app/components/validated-form/index.js +0 -1
- package/app/utils/build-validation-messages.js +0 -1
- package/app/utils/get-messages.js +0 -1
- package/app/utils/validation-errors.js +0 -1
- package/app/validators/messages.js +0 -1
- package/config/environment.js +0 -5
- package/docs/validated-form-demo/demo1.md +0 -162
- package/docs/validated-form.md +0 -1
- package/index.js +0 -5
- package/tsconfig.json +0 -27
- package/types/dummy/index.d.ts +0 -1
- package/types/global.d.ts +0 -22
package/addon-main.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default class ValidatedFormFieldBase extends Component<any> {
|
|
2
|
+
constructor(...args: any[]);
|
|
3
|
+
validationProperty: string;
|
|
4
|
+
lastIsValid: any;
|
|
5
|
+
lastIsTouched: any;
|
|
6
|
+
_validationErrorMessages: null;
|
|
7
|
+
isTouched: boolean;
|
|
8
|
+
get validations(): any;
|
|
9
|
+
get hasErrorMessages(): any;
|
|
10
|
+
get isValid(): boolean;
|
|
11
|
+
get isInvalid(): any;
|
|
12
|
+
get isInvalidAndTouched(): any;
|
|
13
|
+
set formHasBeenValidated(arg: boolean);
|
|
14
|
+
get formHasBeenValidated(): boolean;
|
|
15
|
+
get customValidations(): any;
|
|
16
|
+
get rowExtra(): any;
|
|
17
|
+
get label(): any;
|
|
18
|
+
get error(): any;
|
|
19
|
+
get options(): any;
|
|
20
|
+
get validationErrorMessages(): any[] | null;
|
|
21
|
+
setValidationMessages(): void;
|
|
22
|
+
didUpdateValue(): void;
|
|
23
|
+
notifyValidityChange(): void;
|
|
24
|
+
setIsTouched(val: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* This is just a default handleChange, you should override this method
|
|
27
|
+
* if you need to or use whatever mechanism to bubble the changed
|
|
28
|
+
* value outside and then notifyValidityChanges
|
|
29
|
+
*
|
|
30
|
+
* @override
|
|
31
|
+
* @param {*} e
|
|
32
|
+
*/
|
|
33
|
+
override handleChange(e: any): void;
|
|
34
|
+
willDestroy(...args: any[]): void;
|
|
35
|
+
}
|
|
36
|
+
import Component from '@glimmer/component';
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-base/index.js"],"names":[],"mappings":"AASA;IA+EE,4BAGC;IAjFD,2BAAkC;IAGlC,iBAAY;IACZ,mBAAc;IAEd,+BAAyC;IAEzC,mBAA2B;IAE3B,uBAEC;IAED,4BAEC;IAED,uBAEC;IAED,qBAEC;IAED,+BAEC;IAMD,uCAEC;IAND,oCAEC;IAMD,6BAEC;IAED,oBAEC;IAED,iBAEC;IAED,iBAEC;IAED,mBAEC;IAED,4CAkBC;IAQD,8BAMC;IAGD,uBAQC;IAED,6BAGC;IAED,6BAIC;IAED;;;;;;;OAOG;IACH,oCAKC;IAED,kCAGC;CACF;sBA/IqB,oBAAoB"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import Component from '@glimmer/component';
|
|
2
|
+
import type { ComponentLike } from '@glint/template';
|
|
3
|
+
export interface FieldBaseSignature<T = ComponentLike> {
|
|
4
|
+
Args: {
|
|
5
|
+
id?: string;
|
|
6
|
+
value: any;
|
|
7
|
+
label?: string;
|
|
8
|
+
error?: string[];
|
|
9
|
+
options?: any[];
|
|
10
|
+
validations?: any;
|
|
11
|
+
customValidations?: {
|
|
12
|
+
validation(value: any, options?: Record<string, unknown>): boolean;
|
|
13
|
+
}[];
|
|
14
|
+
rowExtra?: Record<string, unknown>;
|
|
15
|
+
onChange: (value: any) => void;
|
|
16
|
+
onValidityChange: (isValid: boolean) => void;
|
|
17
|
+
register: (field: T) => void;
|
|
18
|
+
unregister: (field: T) => void;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export default class ValidatedFormFieldBase<T extends FieldBaseSignature = FieldBaseSignature> extends Component<T> {
|
|
22
|
+
validationProperty: string;
|
|
23
|
+
lastIsValid?: boolean;
|
|
24
|
+
lastIsTouched?: boolean;
|
|
25
|
+
_validationErrorMessages: null | string[];
|
|
26
|
+
isTouched: boolean;
|
|
27
|
+
get validations(): {};
|
|
28
|
+
get hasErrorMessages(): number | boolean;
|
|
29
|
+
get isValid(): boolean;
|
|
30
|
+
get isInvalid(): number | boolean;
|
|
31
|
+
get isInvalidAndTouched(): boolean;
|
|
32
|
+
get formHasBeenValidated(): boolean;
|
|
33
|
+
set formHasBeenValidated(value: boolean);
|
|
34
|
+
get customValidations(): never[] | NonNullable<import("@glimmer/component/-private/component").Args<T>["customValidations"]>;
|
|
35
|
+
get rowExtra(): {};
|
|
36
|
+
get label(): "" | NonNullable<import("@glimmer/component/-private/component").Args<T>["label"]>;
|
|
37
|
+
get error(): never[] | NonNullable<import("@glimmer/component/-private/component").Args<T>["error"]>;
|
|
38
|
+
get options(): never[] | NonNullable<import("@glimmer/component/-private/component").Args<T>["options"]>;
|
|
39
|
+
get validationErrorMessages(): string[] | null;
|
|
40
|
+
constructor(owner: unknown, args: T['Args']);
|
|
41
|
+
setValidationMessages(): void;
|
|
42
|
+
didUpdateValue(): void;
|
|
43
|
+
notifyValidityChange(): void;
|
|
44
|
+
setIsTouched(val: boolean): void;
|
|
45
|
+
/**
|
|
46
|
+
* This is just a default handleChange, you should override this method
|
|
47
|
+
* if you need to or use whatever mechanism to bubble the changed
|
|
48
|
+
* value outside and then notifyValidityChanges
|
|
49
|
+
*
|
|
50
|
+
* @override
|
|
51
|
+
* @param {*} e
|
|
52
|
+
*/
|
|
53
|
+
handleChange(e: Event): void;
|
|
54
|
+
willDestroy(): void;
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=field-base.d.ts.map
|
|
@@ -0,0 +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;AAQ3C,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;YAClB,UAAU,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC;SACpE,EAAE,CAAC;QACJ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACnC,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;QAC/B,gBAAgB,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;QAC7C,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;QAC7B,UAAU,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;KAChC,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAsB,CACzC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,CACjD,SAAQ,SAAS,CAAC,CAAC,CAAC;IACpB,kBAAkB,SAAgB;IAGlC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IAEf,wBAAwB,EAAE,IAAI,GAAG,MAAM,EAAE,CAAQ;IAEjD,SAAS,UAAS;IAE3B,IAAI,WAAW,OAEd;IAED,IAAI,gBAAgB,qBAEnB;IAED,IAAI,OAAO,YAEV;IAED,IAAI,SAAS,qBAEZ;IAED,IAAI,mBAAmB,YAEtB;IAED,IAAI,oBAAoB,YAEvB;IAED,IAAI,oBAAoB,CAAC,KAAK,SAAA,EAE7B;IAED,IAAI,iBAAiB,wGAEpB;IAED,IAAI,QAAQ,OAEX;IAED,IAAI,KAAK,uFAER;IAED,IAAI,KAAK,4FAER;IAED,IAAI,OAAO,8FAEV;IAED,IAAI,uBAAuB,oBAkB1B;gBAEW,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;IAO3C,qBAAqB;IASrB,cAAc;IAUd,oBAAoB;IAKpB,YAAY,CAAC,GAAG,EAAE,OAAO;IAKzB;;;;;;;OAOG;IAEH,YAAY,CAAC,CAAC,EAAE,KAAK;IAMrB,WAAW;CAGZ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase {
|
|
2
|
+
get value(): any;
|
|
3
|
+
get arrayToMap(): any;
|
|
4
|
+
transformToMap(value?: any[]): any;
|
|
5
|
+
handleChange(optionId: any): void;
|
|
6
|
+
}
|
|
7
|
+
import ValidatedFormFieldBase from '../field-base';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-checkbox-group/index.js"],"names":[],"mappings":"AAIA;IACE,iBAGC;IAED,sBAGC;IAED,mCAMC;IAED,kCAiBC;CAsCF;mCA9EkC,eAAe"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiCheckboxGroupSignature } from '@ember-eui/core/components/eui-checkbox-group';
|
|
5
|
+
export interface FieldCheckboxGroupSignature {
|
|
6
|
+
Element: EuiCheckboxGroupSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiCheckboxGroupSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
label: [...EuiFormRowSignature['Blocks']['label']];
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export default class ValidatedFormFieldCheckboxGroup extends ValidatedFormFieldBase<FieldCheckboxGroupSignature> {
|
|
21
|
+
get value(): string[];
|
|
22
|
+
get arrayToMap(): {
|
|
23
|
+
[key: string]: boolean;
|
|
24
|
+
};
|
|
25
|
+
transformToMap(value?: string[]): {
|
|
26
|
+
[key: string]: boolean;
|
|
27
|
+
};
|
|
28
|
+
handleChange(optionId: string): void;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=field-checkbox-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-checkbox-group.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-checkbox-group.ts"],"names":[],"mappings":"AAEA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAMvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAG/F,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,yBAAyB,CAAC,MAAM,CAAC,GAAG;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;KACpD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,+BAAgC,SAAQ,sBAAsB,CAAC,2BAA2B,CAAC;IAC9G,IAAI,KAAK,IAAI,MAAM,EAAE,CAGpB;IAED,IAAI,UAAU;;MAGb;IAED,cAAc,CAAC,KAAK,GAAE,MAAM,EAAO;;;IAanC,YAAY,CAAC,QAAQ,EAAE,MAAM;CAsD9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-combo-box/index.js"],"names":[],"mappings":"AAGA;IAGE,iCAIC;CA2CF;mCArDkC,eAAe"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiComboBoxSignature } from '@ember-eui/core/components/eui-combo-box';
|
|
5
|
+
export interface FieldComboBoxSignature {
|
|
6
|
+
Element: EuiComboBoxSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiComboBoxSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
options?: EuiComboBoxSignature['Args']['options'];
|
|
16
|
+
selectedOptions?: EuiComboBoxSignature['Args']['selectedOptions'];
|
|
17
|
+
};
|
|
18
|
+
Blocks: {
|
|
19
|
+
label: EuiFormRowSignature['Blocks']['label'];
|
|
20
|
+
default: EuiComboBoxSignature['Blocks']['default'];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export default class ValidatedFormFieldComboBox extends ValidatedFormFieldBase<FieldComboBoxSignature> {
|
|
24
|
+
validationProperty: string;
|
|
25
|
+
handleChange(options: any[]): void;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=field-combo-box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-combo-box.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-combo-box.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAMvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAOrF,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,oBAAoB,CAAC,MAAM,CAAC,GAAG;QAC7B,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,OAAO,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC;QAClD,eAAe,CAAC,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC,iBAAiB,CAAC,CAAC;KACnE,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC;QAC9C,OAAO,EAAE,oBAAoB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;KACpD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;IACpG,kBAAkB,SAA0B;IAI5C,YAAY,CAAC,OAAO,EAAE,GAAG,EAAE;CA8C5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-dual-range-slider/index.js"],"names":[],"mappings":"AAGA;IACE,2BAMC;CAyDF;mCAnEkC,eAAe"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiDualRangeSignature, ValueMember } from '@ember-eui/core/components/eui-dual-range';
|
|
5
|
+
export interface FieldDualRangeSliderSignature {
|
|
6
|
+
Element: EuiDualRangeSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiDualRangeSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
compressed?: boolean;
|
|
15
|
+
hasFocus?: boolean;
|
|
16
|
+
isLoading?: boolean;
|
|
17
|
+
readOnly?: boolean;
|
|
18
|
+
icon?: string;
|
|
19
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
20
|
+
};
|
|
21
|
+
Blocks: {
|
|
22
|
+
label: [];
|
|
23
|
+
prepend: [...EuiDualRangeSignature['Blocks']['prepend']];
|
|
24
|
+
min: [...EuiDualRangeSignature['Blocks']['min']];
|
|
25
|
+
append: [...EuiDualRangeSignature['Blocks']['append']];
|
|
26
|
+
max: [...EuiDualRangeSignature['Blocks']['max']];
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export default class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase<FieldDualRangeSliderSignature> {
|
|
30
|
+
handleChange(e: [ValueMember, ValueMember], _isValid: boolean, _event: Event): void;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=field-dual-range-slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-dual-range-slider.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-dual-range-slider.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAKpG,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,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,CAAC,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK;CA8D7E"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import { action } from '@ember/object';
|
|
2
|
-
import ValidatedFormFieldBase from '../field-base';
|
|
3
|
-
|
|
4
1
|
export default class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase {
|
|
5
|
-
|
|
6
|
-
handleChange(str) {
|
|
7
|
-
this.args.onChange(str);
|
|
8
|
-
this.notifyValidityChange();
|
|
9
|
-
}
|
|
2
|
+
handleChange(str: any): void;
|
|
10
3
|
}
|
|
4
|
+
import ValidatedFormFieldBase from '../field-base';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-markdown-editor/index.js"],"names":[],"mappings":"AAGA;IACE,6BAIC;CAgDF;mCAvDkC,eAAe"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiMarkdownEditorSignature } from '@ember-eui/core/components/eui-markdown-editor';
|
|
5
|
+
import type { ComponentLike } from '@glint/template';
|
|
6
|
+
export interface FieldMarkdownEditorSignature {
|
|
7
|
+
Element: EuiMarkdownEditorSignature['Element'];
|
|
8
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiMarkdownEditorSignature['Args'] & {
|
|
9
|
+
rowClasses?: string;
|
|
10
|
+
fieldClasses?: string;
|
|
11
|
+
formId?: string;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
autofocus?: boolean;
|
|
14
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
editorComponent?: ComponentLike;
|
|
17
|
+
};
|
|
18
|
+
Blocks: {
|
|
19
|
+
label: [...EuiFormRowSignature['Blocks']['label']];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export default class ValidatedFormFieldMarkdownEditor extends ValidatedFormFieldBase<FieldMarkdownEditorSignature> {
|
|
23
|
+
handleChange(str: string): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=field-markdown-editor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-markdown-editor.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-markdown-editor.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,gDAAgD,CAAC;AAIjG,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGrD,MAAM,WAAW,4BAA4B;IAC3C,OAAO,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAC/C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,0BAA0B,CAAC,MAAM,CAAC,GAAG;QACnC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,eAAe,CAAC,EAAE,aAAa,CAAA;KAChC,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;KACpD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,gCAAiC,SAAQ,sBAAsB,CAAC,4BAA4B,CAAC;IAGhH,YAAY,CAAC,GAAG,EAAE,MAAM;CAoDzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-number/index.js"],"names":[],"mappings":"AAEA;CAkDC;mCApDkC,eAAe"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiFieldNumberSignature } from '@ember-eui/core/components/eui-field-number';
|
|
5
|
+
export interface FieldNumberSignature {
|
|
6
|
+
Element: EuiFieldNumberSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiFieldNumberSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
label: [...EuiFormRowSignature['Blocks']['label']];
|
|
18
|
+
prepend: [...EuiFieldNumberSignature['Blocks']['prepend']];
|
|
19
|
+
append: [...EuiFieldNumberSignature['Blocks']['append']];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export default class ValidatedFormFieldNumber extends ValidatedFormFieldBase<FieldNumberSignature> {
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=field-number.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-number.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-number.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AAI3F,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,uBAAuB,CAAC,MAAM,CAAC,GAAG;QAChC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,OAAO,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAC3D,MAAM,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,CAAC;CAkDjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-password/index.js"],"names":[],"mappings":"AAEA;CAkDC;mCApDkC,eAAe"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiFieldPasswordSignature } from '@ember-eui/core/components/eui-field-password';
|
|
5
|
+
export interface FieldPasswordSignature {
|
|
6
|
+
Element: EuiFieldPasswordSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiFieldPasswordSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
label: [...EuiFormRowSignature['Blocks']['label']];
|
|
18
|
+
prepend: [...EuiFieldPasswordSignature['Blocks']['prepend']];
|
|
19
|
+
append: [...EuiFieldPasswordSignature['Blocks']['append']];
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export default class ValidatedFormFieldPassword extends ValidatedFormFieldBase<FieldPasswordSignature> {
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=field-password.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-password.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-password.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAC;AAI/F,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,yBAAyB,CAAC,SAAS,CAAC,CAAC;IAC9C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,yBAAyB,CAAC,MAAM,CAAC,GAAG;QAClC,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;QACnD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACnD,OAAO,EAAE,CAAC,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QAC7D,MAAM,EAAE,CAAC,GAAG,yBAAyB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC5D,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;CAkDrG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class ValidatedFormFieldRadioGroup extends ValidatedFormFieldBase {
|
|
2
|
+
get value(): any;
|
|
3
|
+
get arrayToMap(): any;
|
|
4
|
+
transformToMap(value?: any[]): any;
|
|
5
|
+
handleChange(optionId: any): void;
|
|
6
|
+
}
|
|
7
|
+
import ValidatedFormFieldBase from '../field-base';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-radio-group/index.js"],"names":[],"mappings":"AAGA;IACE,iBAGC;IAED,sBAGC;IAED,mCAMC;IAED,kCAeC;CAsCF;mCA3EkC,eAAe"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiRadioGroupSignature } from '@ember-eui/core/components/eui-radio-group';
|
|
5
|
+
export interface FieldRadioGroupSignature {
|
|
6
|
+
Element: EuiRadioGroupSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiRadioGroupSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
};
|
|
15
|
+
Blocks: {
|
|
16
|
+
label: [...EuiFormRowSignature['Blocks']['label']];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export default class ValidatedFormFieldRadioGroup extends ValidatedFormFieldBase<FieldRadioGroupSignature> {
|
|
20
|
+
get value(): any;
|
|
21
|
+
get arrayToMap(): {
|
|
22
|
+
[key: string]: boolean;
|
|
23
|
+
};
|
|
24
|
+
transformToMap(value?: never[]): {
|
|
25
|
+
[key: string]: boolean;
|
|
26
|
+
};
|
|
27
|
+
handleChange(optionId: string): void;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=field-radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAGlD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAMvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AAGzF,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,CAAC;IAC3C,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,sBAAsB,CAAC,MAAM,CAAC,GAAG;QAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,CAAC,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;KACpD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,4BAA6B,SAAQ,sBAAsB,CAAC,wBAAwB,CAAC;IACxG,IAAI,KAAK,QAGR;IAED,IAAI,UAAU;;MAGb;IAED,cAAc,CAAC,KAAK,UAAK;;;IAazB,YAAY,CAAC,QAAQ,EAAE,MAAM;CAoD9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-range-slider/index.js"],"names":[],"mappings":"AAEA;CAoEC;mCAtEkC,eAAe"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiRangeSignature } from '@ember-eui/core/components/eui-range';
|
|
5
|
+
export interface FieldRangeSliderSignature {
|
|
6
|
+
Element: EuiRangeSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiRangeSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
};
|
|
15
|
+
Blocks: {
|
|
16
|
+
label: [];
|
|
17
|
+
prepend: [...EuiRangeSignature['Blocks']['prepend']];
|
|
18
|
+
min: [...EuiRangeSignature['Blocks']['min']];
|
|
19
|
+
valuePrepend: [...EuiRangeSignature['Blocks']['valuePrepend']];
|
|
20
|
+
value: [...EuiRangeSignature['Blocks']['value']];
|
|
21
|
+
valueAppend: [...EuiRangeSignature['Blocks']['valueAppend']];
|
|
22
|
+
append: [...EuiRangeSignature['Blocks']['append']];
|
|
23
|
+
max: [...EuiRangeSignature['Blocks']['max']];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export default class ValidatedFormFieldRangeSlider extends ValidatedFormFieldBase<FieldRangeSliderSignature> {
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=field-range-slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-range-slider.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-range-slider.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAI9E,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IACtC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,iBAAiB,CAAC,MAAM,CAAC,GAAG;QAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,OAAO,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACrD,GAAG,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7C,YAAY,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;QAC/D,KAAK,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACjD,WAAW,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7D,MAAM,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;QACnD,GAAG,EAAE,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;KAC9C,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,6BAA8B,SAAQ,sBAAsB,CAAC,yBAAyB,CAAC;CAoE3G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-select/index.js"],"names":[],"mappings":"AAEA;CAiDC;mCAnDkC,eAAe"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiSelectSignature } from '@ember-eui/core/components/eui-select';
|
|
5
|
+
export interface FieldSelectSignature {
|
|
6
|
+
Element: EuiSelectSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiSelectSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
14
|
+
};
|
|
15
|
+
Blocks: {
|
|
16
|
+
label: [];
|
|
17
|
+
prepend: [...EuiSelectSignature['Blocks']['prepend']];
|
|
18
|
+
append: [...EuiSelectSignature['Blocks']['append']];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export default class ValidatedFormFieldSelect extends ValidatedFormFieldBase<FieldSelectSignature> {
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=field-select.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-select.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-select.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAIhF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACvC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,kBAAkB,CAAC,MAAM,CAAC,GAAG;QAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,OAAO,EAAE,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACtD,MAAM,EAAE,CAAC,GAAG,kBAAkB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KACrD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,CAAC;CAiDjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-switch/index.js"],"names":[],"mappings":"AAGA;IACE,2BAMC;CA4CF;mCAtDkC,eAAe"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import ValidatedFormFieldBase from './field-base';
|
|
2
|
+
import type { FieldBaseSignature } from './field-base';
|
|
3
|
+
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
4
|
+
import type { EuiSwitchSignature } from '@ember-eui/core/components/eui-switch';
|
|
5
|
+
export interface FieldSwitchSignature {
|
|
6
|
+
Element: EuiSwitchSignature['Element'];
|
|
7
|
+
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiSwitchSignature['Args'] & {
|
|
8
|
+
rowClasses?: string;
|
|
9
|
+
fieldClasses?: string;
|
|
10
|
+
formId?: string;
|
|
11
|
+
ariaLabel?: string;
|
|
12
|
+
autofocus?: boolean;
|
|
13
|
+
switchLabel?: EuiSwitchSignature['Args']['label'];
|
|
14
|
+
onChange?: (state: boolean, e: MouseEvent) => void;
|
|
15
|
+
};
|
|
16
|
+
Blocks: {
|
|
17
|
+
label: [];
|
|
18
|
+
'switch-label': [];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export default class ValidatedFormFieldSwitch extends ValidatedFormFieldBase<FieldSwitchSignature> {
|
|
22
|
+
handleChange(e: MouseEvent): void;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=field-switch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-switch.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-switch.ts"],"names":[],"mappings":"AAAA,OAAO,sBAAsB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAOvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAKhF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IACvC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,kBAAkB,CAAC,MAAM,CAAC,GAAG;QAC3B,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,WAAW,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC;QAClD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KACpD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,cAAc,EAAE,EAAE,CAAC;KACpB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,wBAAyB,SAAQ,sBAAsB,CAAC,oBAAoB,CAAC;IAEhG,YAAY,CAAC,CAAC,EAAE,UAAU;CAiD3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-text/index.js"],"names":[],"mappings":"AAEA;CAkDC;mCApDkC,eAAe"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/validated-form/field-text-area/index.js"],"names":[],"mappings":"AAEA;CAkDC;mCApDkC,eAAe"}
|