@ember-eui/validated-form 10.0.2 → 10.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declarations/core/src/components/eui-accordion.d.ts +1 -1
- package/declarations/core/src/components/eui-accordion.d.ts.map +1 -1
- package/declarations/core/src/components/eui-code-block.d.ts +1 -1
- package/declarations/core/src/components/eui-code-block.d.ts.map +1 -1
- package/declarations/core/src/components/eui-combo-box.d.ts +15 -2
- package/declarations/core/src/components/eui-combo-box.d.ts.map +1 -1
- package/declarations/core/src/components/eui-comment.d.ts +2 -2
- package/declarations/core/src/components/eui-comment.d.ts.map +1 -1
- package/declarations/core/src/components/eui-empty-prompt.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-editor.d.ts.map +1 -1
- package/declarations/core/src/components/eui-markdown-format.d.ts +3 -3
- package/declarations/core/src/components/eui-markdown-format.d.ts.map +1 -1
- package/declarations/core/src/components/eui-notification-badge.d.ts +1 -1
- package/declarations/core/src/components/eui-notification-badge.d.ts.map +1 -1
- package/declarations/core/src/components/eui-popover.d.ts +12 -1
- package/declarations/core/src/components/eui-popover.d.ts.map +1 -1
- package/declarations/core/src/components/eui-portal.d.ts +2 -2
- package/declarations/core/src/components/eui-portal.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts +16 -3
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-button.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts +1 -0
- package/declarations/core/src/components/eui-super-date-picker/date-popover/eui-date-popover-content.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover.d.ts +3 -0
- package/declarations/core/src/components/eui-super-date-picker/eui-quick-select-popover.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker/utils/index.d.ts +2 -2
- package/declarations/core/src/components/eui-super-date-picker/utils/index.d.ts.map +1 -1
- package/declarations/core/src/components/eui-super-date-picker.d.ts +11 -2
- package/declarations/core/src/components/eui-super-date-picker.d.ts.map +1 -1
- package/declarations/core/src/helpers/arg-or-default.d.ts.map +1 -1
- package/declarations/core/src/helpers/cast-to.d.ts.map +1 -1
- package/declarations/core/src/helpers/class-names.d.ts.map +1 -1
- package/declarations/core/src/helpers/type-of.d.ts.map +1 -1
- package/declarations/core/src/helpers/use-state.d.ts.map +1 -1
- package/declarations/core/src/modifiers/resize-observer.d.ts +1 -1
- package/declarations/core/src/modifiers/resize-observer.d.ts.map +1 -1
- package/declarations/core/src/services/eui-i18n.d.ts.map +1 -1
- package/declarations/core/src/utils/code/utils.d.ts.map +1 -1
- package/declarations/core/src/utils/color/eui_palettes.d.ts.map +1 -1
- package/declarations/core/src/utils/css-mappings/eui-avatar.d.ts +1 -1
- package/declarations/core/src/utils/markdown/markdown-actions.d.ts +1 -1
- package/declarations/core/src/utils/markdown/markdown-types.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-add-components/processor.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/parsing-plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts +1 -1
- package/declarations/core/src/utils/markdown/plugins/markdown-default-plugins/ui-plugins.d.ts.map +1 -1
- package/declarations/core/src/utils/maybe-unwrap-proxy.d.ts +3 -1
- package/declarations/core/src/utils/maybe-unwrap-proxy.d.ts.map +1 -1
- package/declarations/core/src/utils/popover/index.d.ts +3 -1
- package/declarations/core/src/utils/popover/index.d.ts.map +1 -1
- package/declarations/core/src/utils/predicate/common_predicates.d.ts.map +1 -1
- package/declarations/core/src/utils/predicate/lodash_predicates.d.ts.map +1 -1
- package/declarations/core/src/utils/transition.d.ts.map +1 -1
- package/declarations/validated-form/src/components/validated-form.d.ts.map +1 -1
- package/declarations/validated-form/src/validators/messages.d.ts +1 -1
- package/dist/components/validated-form/field-base.js.map +1 -1
- package/dist/components/validated-form/field-checkbox-group.js.map +1 -1
- package/dist/components/validated-form/field-combo-box.js.map +1 -1
- package/dist/components/validated-form/field-dual-range-slider.js.map +1 -1
- package/dist/components/validated-form/field-markdown-editor.js.map +1 -1
- package/dist/components/validated-form/field-number.js.map +1 -1
- package/dist/components/validated-form/field-password.js.map +1 -1
- package/dist/components/validated-form/field-radio-group.js.map +1 -1
- package/dist/components/validated-form/field-range-slider.js.map +1 -1
- package/dist/components/validated-form/field-select.js.map +1 -1
- package/dist/components/validated-form/field-switch.js.map +1 -1
- package/dist/components/validated-form/field-text-area.js.map +1 -1
- package/dist/components/validated-form/field-text.js.map +1 -1
- package/dist/components/validated-form.js.map +1 -1
- package/package.json +8 -13
- package/declarations/-private/random-id.d.ts +0 -9
- package/declarations/-private/random-id.d.ts.map +0 -1
- package/declarations/components/validated-form/field-base.d.ts +0 -58
- package/declarations/components/validated-form/field-base.d.ts.map +0 -1
- package/declarations/components/validated-form/field-checkbox-group.d.ts +0 -30
- package/declarations/components/validated-form/field-checkbox-group.d.ts.map +0 -1
- package/declarations/components/validated-form/field-combo-box.d.ts +0 -27
- package/declarations/components/validated-form/field-combo-box.d.ts.map +0 -1
- package/declarations/components/validated-form/field-dual-range-slider.d.ts +0 -32
- package/declarations/components/validated-form/field-dual-range-slider.d.ts.map +0 -1
- package/declarations/components/validated-form/field-markdown-editor.d.ts +0 -25
- package/declarations/components/validated-form/field-markdown-editor.d.ts.map +0 -1
- package/declarations/components/validated-form/field-number.d.ts +0 -24
- package/declarations/components/validated-form/field-number.d.ts.map +0 -1
- package/declarations/components/validated-form/field-password.d.ts +0 -24
- package/declarations/components/validated-form/field-password.d.ts.map +0 -1
- package/declarations/components/validated-form/field-radio-group.d.ts +0 -29
- package/declarations/components/validated-form/field-radio-group.d.ts.map +0 -1
- package/declarations/components/validated-form/field-range-slider.d.ts +0 -28
- package/declarations/components/validated-form/field-range-slider.d.ts.map +0 -1
- package/declarations/components/validated-form/field-select.d.ts +0 -23
- package/declarations/components/validated-form/field-select.d.ts.map +0 -1
- package/declarations/components/validated-form/field-switch.d.ts +0 -24
- package/declarations/components/validated-form/field-switch.d.ts.map +0 -1
- package/declarations/components/validated-form/field-text-area.d.ts +0 -29
- package/declarations/components/validated-form/field-text-area.d.ts.map +0 -1
- package/declarations/components/validated-form/field-text.d.ts +0 -22
- package/declarations/components/validated-form/field-text.d.ts.map +0 -1
- package/declarations/components/validated-form.d.ts +0 -108
- package/declarations/components/validated-form.d.ts.map +0 -1
- package/declarations/utils/build-validation-messages.d.ts +0 -13
- package/declarations/utils/build-validation-messages.d.ts.map +0 -1
- package/declarations/utils/get-messages.d.ts +0 -11
- package/declarations/utils/get-messages.d.ts.map +0 -1
- package/declarations/utils/validation-errors.d.ts +0 -2
- package/declarations/utils/validation-errors.d.ts.map +0 -1
- package/declarations/utils/with-defaults.d.ts +0 -10
- package/declarations/utils/with-defaults.d.ts.map +0 -1
- package/declarations/validators/messages.d.ts +0 -4
- package/declarations/validators/messages.d.ts.map +0 -1
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-range-slider.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-range-slider.ts"],"names":[],"mappings":"AAUA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAE9E,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"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-select.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-select.ts"],"names":[],"mappings":"AAUA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;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"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-switch.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-switch.ts"],"names":[],"mappings":"AAWA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAEhF,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,kBAAkB,CAAC,SAAS,CAAC,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;CAmD3B"}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 { EuiTextAreaSignature } from '@ember-eui/core/components/eui-text-area';
|
|
5
|
-
import type { ComponentLike } from '@glint/template';
|
|
6
|
-
export interface FieldTextAreaSignature extends FieldBaseSignature {
|
|
7
|
-
Element: EuiTextAreaSignature['Element'];
|
|
8
|
-
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiTextAreaSignature['Args'] & {
|
|
9
|
-
formId?: string;
|
|
10
|
-
ariaLabel?: string;
|
|
11
|
-
rows?: number;
|
|
12
|
-
resize?: 'vertical' | 'horizontal' | 'both' | 'none';
|
|
13
|
-
rowClasses?: string;
|
|
14
|
-
fieldClasses?: string;
|
|
15
|
-
labelAppend?: ComponentLike;
|
|
16
|
-
prepend?: ComponentLike;
|
|
17
|
-
append?: ComponentLike;
|
|
18
|
-
placeholder?: string;
|
|
19
|
-
autofocus?: boolean;
|
|
20
|
-
inputRef?: (element: HTMLTextAreaElement) => void;
|
|
21
|
-
};
|
|
22
|
-
Blocks: {
|
|
23
|
-
label: [];
|
|
24
|
-
default: [...EuiTextAreaSignature['Blocks']['default']];
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export default class ValidatedFormFieldTextArea extends ValidatedFormFieldBase<FieldTextAreaSignature> {
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=field-text-area.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-text-area.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-text-area.ts"],"names":[],"mappings":"AAUA,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AAEtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,OAAO,EAAE,oBAAoB,CAAC,SAAS,CAAC,CAAC;IACzC,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,GAC9B,mBAAmB,CAAC,MAAM,CAAC,GAC3B,oBAAoB,CAAC,MAAM,CAAC,GAAG;QAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,UAAU,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;QACrD,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,WAAW,CAAC,EAAE,aAAa,CAAC;QAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;QACxB,MAAM,CAAC,EAAE,aAAa,CAAC;QACvB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,SAAS,CAAC,EAAE,OAAO,CAAC;QACpB,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;KACnD,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,OAAO,EAAE,CAAC,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;KACzD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,0BAA2B,SAAQ,sBAAsB,CAAC,sBAAsB,CAAC;CA8CrG"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import ValidatedFormFieldBase from "./field-base";
|
|
2
|
-
import type { FieldBaseSignature } from "./field-base";
|
|
3
|
-
import type { EuiFieldTextSignature } from '@ember-eui/core/components/eui-field-text';
|
|
4
|
-
import type { EuiFormRowSignature } from '@ember-eui/core/components/eui-form-row';
|
|
5
|
-
export interface FieldTextSignature {
|
|
6
|
-
Element: EuiFieldTextSignature['Element'];
|
|
7
|
-
Args: FieldBaseSignature['Args'] & EuiFormRowSignature['Args'] & EuiFieldTextSignature['Args'] & {
|
|
8
|
-
rowClasses?: string;
|
|
9
|
-
fieldClasses?: string;
|
|
10
|
-
formId?: string;
|
|
11
|
-
ariaLabel?: string;
|
|
12
|
-
autofocus?: boolean;
|
|
13
|
-
};
|
|
14
|
-
Blocks: {
|
|
15
|
-
label: [];
|
|
16
|
-
prepend: [...EuiFieldTextSignature['Blocks']['prepend']];
|
|
17
|
-
append: [...EuiFieldTextSignature['Blocks']['append']];
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export default class ValidatedFormFieldText extends ValidatedFormFieldBase<FieldTextSignature> {
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=field-text.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field-text.d.ts","sourceRoot":"","sources":["../../../src/components/validated-form/field-text.ts"],"names":[],"mappings":"AAUA,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;QACvB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,OAAO,CAAC;KAClB,CAAC;IACJ,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,CAAC;QACV,OAAO,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;QACzD,MAAM,EAAE,CAAC,GAAG,qBAAqB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;KACxD,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,sBAAsB,CAAC,kBAAkB,CAAC;CAkD7F"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import FieldBase from "./validated-form/field-base";
|
|
3
|
-
import type { EuiFormSignature } from '@ember-eui/core/components/eui-form';
|
|
4
|
-
import type { ComponentLike } from '@glint/template';
|
|
5
|
-
export interface IValidatedFormTheme {
|
|
6
|
-
FieldBase: ComponentLike<any>;
|
|
7
|
-
FieldNumber: ComponentLike<any>;
|
|
8
|
-
FieldText: ComponentLike<any>;
|
|
9
|
-
FieldPassword: ComponentLike<any>;
|
|
10
|
-
FieldTextArea: ComponentLike<any>;
|
|
11
|
-
FieldSelect: ComponentLike<any>;
|
|
12
|
-
FieldComboBox: ComponentLike<any>;
|
|
13
|
-
FieldCheckboxGroup: ComponentLike<any>;
|
|
14
|
-
FieldRadioGroup: ComponentLike<any>;
|
|
15
|
-
FieldRangeSlider: ComponentLike<any>;
|
|
16
|
-
FieldDualRangeSlider: ComponentLike<any>;
|
|
17
|
-
FieldSwitch: ComponentLike<any>;
|
|
18
|
-
FieldMarkdownEditor: ComponentLike<any>;
|
|
19
|
-
}
|
|
20
|
-
export declare const ValidatedFormDefaultTheme: IValidatedFormTheme;
|
|
21
|
-
export interface ValidatedFormSignature {
|
|
22
|
-
Element: EuiFormSignature['Element'];
|
|
23
|
-
Args: {
|
|
24
|
-
id?: string;
|
|
25
|
-
register?: (child: ValidatedFormComponent) => void;
|
|
26
|
-
unregister?: (child: ValidatedFormComponent) => void;
|
|
27
|
-
addChild?: (child: FieldBase) => void;
|
|
28
|
-
removeChild?: (child: FieldBase) => void;
|
|
29
|
-
onInvalid?: () => void;
|
|
30
|
-
onSubmit?: () => void;
|
|
31
|
-
onReset?: (e: Event) => void;
|
|
32
|
-
onValidityChange?: (isValid: boolean, isTouched: boolean, isInvalidAndTouched: boolean) => void;
|
|
33
|
-
theme?: Partial<IValidatedFormTheme>;
|
|
34
|
-
isDisabled?: boolean;
|
|
35
|
-
fullWidth?: boolean;
|
|
36
|
-
tagName?: EuiFormSignature['Args']['tagName'];
|
|
37
|
-
isInvalid?: EuiFormSignature['Args']['isInvalid'];
|
|
38
|
-
invalidCallout?: EuiFormSignature['Args']['invalidCallout'];
|
|
39
|
-
error?: EuiFormSignature['Args']['error'];
|
|
40
|
-
errorTitle?: EuiFormSignature['Args']['errorTitle'];
|
|
41
|
-
};
|
|
42
|
-
Blocks: {
|
|
43
|
-
default: [
|
|
44
|
-
{
|
|
45
|
-
onValidityChange: (isValid: boolean, isTouched: boolean, isInvalidAndTouched: boolean) => void;
|
|
46
|
-
register: (child: FieldBase) => void;
|
|
47
|
-
unregister: (child: FieldBase) => void;
|
|
48
|
-
isValid: boolean;
|
|
49
|
-
isInvalid: boolean;
|
|
50
|
-
isTouched: boolean;
|
|
51
|
-
isInvalidAndTouched: boolean;
|
|
52
|
-
formId: string;
|
|
53
|
-
FieldBase: IValidatedFormTheme['FieldBase'];
|
|
54
|
-
FieldNumber: IValidatedFormTheme['FieldNumber'];
|
|
55
|
-
FieldText: IValidatedFormTheme['FieldText'];
|
|
56
|
-
FieldPassword: IValidatedFormTheme['FieldPassword'];
|
|
57
|
-
FieldTextArea: IValidatedFormTheme['FieldTextArea'];
|
|
58
|
-
FieldSelect: IValidatedFormTheme['FieldSelect'];
|
|
59
|
-
FieldComboBox: IValidatedFormTheme['FieldComboBox'];
|
|
60
|
-
FieldCheckboxGroup: IValidatedFormTheme['FieldCheckboxGroup'];
|
|
61
|
-
FieldRadioGroup: IValidatedFormTheme['FieldRadioGroup'];
|
|
62
|
-
FieldRangeSlider: IValidatedFormTheme['FieldRangeSlider'];
|
|
63
|
-
FieldDualRangeSlider: IValidatedFormTheme['FieldDualRangeSlider'];
|
|
64
|
-
FieldSwitch: IValidatedFormTheme['FieldSwitch'];
|
|
65
|
-
FieldMarkdownEditor: IValidatedFormTheme['FieldMarkdownEditor'];
|
|
66
|
-
}
|
|
67
|
-
];
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export default class ValidatedFormComponent extends Component<ValidatedFormSignature> {
|
|
71
|
-
childComponents: import("@ember/array/-private/native-array").default<FieldBase<import("./validated-form/field-base").FieldBaseSignature<ComponentLike>>>;
|
|
72
|
-
lastIsValid?: boolean;
|
|
73
|
-
lastIsTouched?: boolean;
|
|
74
|
-
isInvalid: boolean;
|
|
75
|
-
isTouched: boolean;
|
|
76
|
-
constructor(owner: unknown, args: ValidatedFormSignature['Args']);
|
|
77
|
-
willDestroy(): void;
|
|
78
|
-
get isValid(): boolean;
|
|
79
|
-
get isInvalidAndTouched(): boolean;
|
|
80
|
-
addChild(child: FieldBase): void;
|
|
81
|
-
removeChild(child: FieldBase): void;
|
|
82
|
-
handleSubmit(e: Event): Promise<void>;
|
|
83
|
-
handleReset(e: Event): void;
|
|
84
|
-
register(child: FieldBase): void;
|
|
85
|
-
unregister(child: FieldBase): void;
|
|
86
|
-
updateValidity(): void;
|
|
87
|
-
getIsValid(): boolean;
|
|
88
|
-
getIsTouched(): boolean;
|
|
89
|
-
triggerValidityChange(): void;
|
|
90
|
-
setNewValidity(): void;
|
|
91
|
-
onChildValidityChange(): void;
|
|
92
|
-
get theme(): {
|
|
93
|
-
FieldBase: ComponentLike<any>;
|
|
94
|
-
FieldNumber: ComponentLike<any>;
|
|
95
|
-
FieldText: ComponentLike<any>;
|
|
96
|
-
FieldPassword: ComponentLike<any>;
|
|
97
|
-
FieldTextArea: ComponentLike<any>;
|
|
98
|
-
FieldSelect: ComponentLike<any>;
|
|
99
|
-
FieldComboBox: ComponentLike<any>;
|
|
100
|
-
FieldCheckboxGroup: ComponentLike<any>;
|
|
101
|
-
FieldRadioGroup: ComponentLike<any>;
|
|
102
|
-
FieldRangeSlider: ComponentLike<any>;
|
|
103
|
-
FieldDualRangeSlider: ComponentLike<any>;
|
|
104
|
-
FieldSwitch: ComponentLike<any>;
|
|
105
|
-
FieldMarkdownEditor: ComponentLike<any>;
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=validated-form.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validated-form.d.ts","sourceRoot":"","sources":["../../src/components/validated-form.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAY3C,OAAO,SAAS,MAAM,iCAAiC,CAAC;AAcxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC9B,WAAW,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAChC,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC9B,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAClC,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAClC,WAAW,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAChC,aAAa,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAClC,kBAAkB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACvC,eAAe,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACpC,gBAAgB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACrC,oBAAoB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,WAAW,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAChC,mBAAmB,EAAE,aAAa,CAAC,GAAG,CAAC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AS,CAAC,sBAAsB,CAAC;IAC1E,eAAe,+IAAoB;IAE5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IAEf,SAAS,UAAS;IAClB,SAAS,UAAS;gBAEf,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,sBAAsB,CAAC,MAAM,CAAC;IAKhE,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;IAMrB,IAAI,KAAK;;;;;;;;;;;;;;MAIR;CAiDF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Based on ember-paper validation-mixin
|
|
3
|
-
* @param {string} property - property to grab the currentValue from
|
|
4
|
-
* @returns
|
|
5
|
-
*/
|
|
6
|
-
export function buildValidationMessages(property: string): any[];
|
|
7
|
-
export function notifyValidityChange(ctx: any, onValidityChange: any): void;
|
|
8
|
-
declare namespace _default {
|
|
9
|
-
export { buildValidationMessages };
|
|
10
|
-
export { notifyValidityChange };
|
|
11
|
-
}
|
|
12
|
-
export default _default;
|
|
13
|
-
//# sourceMappingURL=build-validation-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build-validation-messages.d.ts","sourceRoot":"","sources":["../../src/utils/build-validation-messages.js"],"names":[],"mappings":"AAWA;;;;GAIG;AACH,kDAHW,MAAM,SAiEhB;AAED,4EAkBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Find and load messages module on consuming app. Defaults to addon messages.
|
|
3
|
-
* To define a custom message map, create `my-app/app/validators/messages.js`
|
|
4
|
-
* that extends from ember-validators/messages
|
|
5
|
-
*
|
|
6
|
-
* @param {Object} owner
|
|
7
|
-
* @param {Boolean} useCache Pass `false` to ignore cached key
|
|
8
|
-
* @return {Object}
|
|
9
|
-
*/
|
|
10
|
-
export default function getMessages(owner: Object, useCache?: boolean): Object;
|
|
11
|
-
//# sourceMappingURL=get-messages.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-messages.d.ts","sourceRoot":"","sources":["../../src/utils/get-messages.js"],"names":[],"mappings":"AAOA;;;;;;;;GAQG;AACH,2CAJY,MAAM,uBAEN,MAAM,CAgBjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validation-errors.d.ts","sourceRoot":"","sources":["../../src/utils/validation-errors.js"],"names":[],"mappings":"AAEA,gFAUC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create a new object with defaults
|
|
3
|
-
*
|
|
4
|
-
* @public
|
|
5
|
-
* @param {Object} obj
|
|
6
|
-
* @param {Object} defaults
|
|
7
|
-
* @return {Object}
|
|
8
|
-
*/
|
|
9
|
-
export default function withDefaults(obj?: Object, defaults?: Object): Object;
|
|
10
|
-
//# sourceMappingURL=with-defaults.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"with-defaults.d.ts","sourceRoot":"","sources":["../../src/utils/with-defaults.js"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,2CAJY,MAAM,aACN,MAAM,GACN,MAAM,CAIjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../../src/validators/messages.js"],"names":[],"mappings":";;wBAAwB,eAAe"}
|