@frontile/forms 0.17.0-alpha.12 → 0.17.0-alpha.14
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/components/checkbox-group.d.ts +41 -0
- package/declarations/components/checkbox-group.d.ts.map +1 -0
- package/declarations/components/checkbox.d.ts +39 -0
- package/declarations/components/checkbox.d.ts.map +1 -0
- package/declarations/components/form-control.d.ts +47 -0
- package/declarations/components/form-control.d.ts.map +1 -0
- package/declarations/components/form-description.d.ts +19 -0
- package/declarations/components/form-description.d.ts.map +1 -0
- package/declarations/components/form-feedback.d.ts +23 -0
- package/declarations/components/form-feedback.d.ts.map +1 -0
- package/declarations/components/form.d.ts +19 -0
- package/declarations/components/form.d.ts.map +1 -0
- package/declarations/components/input.d.ts +81 -0
- package/declarations/components/input.d.ts.map +1 -0
- package/declarations/components/label.d.ts +41 -0
- package/declarations/components/label.d.ts.map +1 -0
- package/declarations/components/native-select.d.ts +59 -21
- package/declarations/components/native-select.d.ts.map +1 -1
- package/declarations/components/radio-group.d.ts +44 -0
- package/declarations/components/radio-group.d.ts.map +1 -0
- package/declarations/components/radio.d.ts +40 -0
- package/declarations/components/radio.d.ts.map +1 -0
- package/declarations/components/select.d.ts +57 -14
- package/declarations/components/select.d.ts.map +1 -1
- package/declarations/components/textarea.d.ts +56 -0
- package/declarations/components/textarea.d.ts.map +1 -0
- package/declarations/index.d.ts +12 -1
- package/declarations/index.d.ts.map +1 -1
- package/declarations/template-registry.d.ts +12 -2
- package/declarations/template-registry.d.ts.map +1 -1
- package/dist/_app_/components/checkbox-group.js +1 -0
- package/dist/_app_/components/checkbox.js +1 -0
- package/dist/_app_/components/form-control.js +1 -0
- package/dist/_app_/components/form-description.js +1 -0
- package/dist/_app_/components/form-feedback.js +1 -0
- package/dist/_app_/components/form.js +1 -0
- package/dist/_app_/components/input.js +1 -0
- package/dist/_app_/components/label.js +1 -0
- package/dist/_app_/components/radio-group.js +1 -0
- package/dist/_app_/components/radio.js +1 -0
- package/dist/_app_/components/textarea.js +1 -0
- package/dist/components/checkbox-group.js +27 -0
- package/dist/components/checkbox-group.js.map +1 -0
- package/dist/components/checkbox.js +39 -0
- package/dist/components/checkbox.js.map +1 -0
- package/dist/components/form-control.js +63 -0
- package/dist/components/form-control.js.map +1 -0
- package/dist/components/form-description.js +22 -0
- package/dist/components/form-description.js.map +1 -0
- package/dist/components/form-feedback.js +34 -0
- package/dist/components/form-feedback.js.map +1 -0
- package/dist/components/form.js +45 -0
- package/dist/components/form.js.map +1 -0
- package/dist/components/input.js +45 -0
- package/dist/components/input.js.map +1 -0
- package/dist/components/label.js +21 -0
- package/dist/components/label.js.map +1 -0
- package/dist/components/native-select.js +7 -5
- package/dist/components/native-select.js.map +1 -1
- package/dist/components/radio-group.js +27 -0
- package/dist/components/radio-group.js.map +1 -0
- package/dist/components/radio.js +38 -0
- package/dist/components/radio.js.map +1 -0
- package/dist/components/select.js +56 -21
- package/dist/components/select.js.map +1 -1
- package/dist/components/textarea.js +39 -0
- package/dist/components/textarea.js.map +1 -0
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/package.json +26 -15
- package/declarations/components/form-checkbox-group.d.ts +0 -50
- package/declarations/components/form-checkbox-group.d.ts.map +0 -1
- package/declarations/components/form-checkbox.d.ts +0 -49
- package/declarations/components/form-checkbox.d.ts.map +0 -1
- package/declarations/components/form-field/checkbox.d.ts +0 -19
- package/declarations/components/form-field/checkbox.d.ts.map +0 -1
- package/declarations/components/form-field/feedback.d.ts +0 -21
- package/declarations/components/form-field/feedback.d.ts.map +0 -1
- package/declarations/components/form-field/hint.d.ts +0 -17
- package/declarations/components/form-field/hint.d.ts.map +0 -1
- package/declarations/components/form-field/input.d.ts +0 -21
- package/declarations/components/form-field/input.d.ts.map +0 -1
- package/declarations/components/form-field/label.d.ts +0 -17
- package/declarations/components/form-field/label.d.ts.map +0 -1
- package/declarations/components/form-field/radio.d.ts +0 -20
- package/declarations/components/form-field/radio.d.ts.map +0 -1
- package/declarations/components/form-field/select.d.ts +0 -38
- package/declarations/components/form-field/select.d.ts.map +0 -1
- package/declarations/components/form-field/textarea.d.ts +0 -19
- package/declarations/components/form-field/textarea.d.ts.map +0 -1
- package/declarations/components/form-field.d.ts +0 -38
- package/declarations/components/form-field.d.ts.map +0 -1
- package/declarations/components/form-input.d.ts +0 -64
- package/declarations/components/form-input.d.ts.map +0 -1
- package/declarations/components/form-radio-group.d.ts +0 -48
- package/declarations/components/form-radio-group.d.ts.map +0 -1
- package/declarations/components/form-radio.d.ts +0 -54
- package/declarations/components/form-radio.d.ts.map +0 -1
- package/declarations/components/form-select.d.ts +0 -51
- package/declarations/components/form-select.d.ts.map +0 -1
- package/declarations/components/form-textarea.d.ts +0 -17
- package/declarations/components/form-textarea.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/form-field/select.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAGL,KAAK,gBAAgB,EACrB,KAAK,YAAY,EAClB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,MAAM,oBAAoB,CAAC;AAM5B,UAAU,mBAAmB,CAAC,CAAC,GAAG,OAAO,CACvC,SAAQ,IAAI,CACR,gBAAgB,CAAC,MAAM,CAAC,EACtB,WAAW,GACX,aAAa,GACb,YAAY,GACZ,cAAc,GACd,eAAe,GACf,UAAU,GACV,SAAS,CACZ,EACD,IAAI,CACF,gBAAgB,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EACzB,YAAY,GACZ,QAAQ,GACR,OAAO,GACP,cAAc,GACd,cAAc,GACd,YAAY,GACZ,mBAAmB,GACnB,OAAO,CACV,EACD,IAAI,CACF,gBAAgB,CAAC,MAAM,CAAC,EACtB,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,oBAAoB,GACpB,kBAAkB,GAClB,qBAAqB,GACrB,kBAAkB,GAClB,oBAAoB,GACpB,YAAY,CACf;IACH,aAAa,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAEtC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED,UAAU,wBAAwB;IAChC,IAAI,EAAE,mBAAmB,CAAC;IAC1B,OAAO,EAAE,gBAAgB,GAAG,iBAAiB,CAAC;IAC9C,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;CACpC;AAED,cAAM,eAAgB,SAAQ,SAAS,CAAC,wBAAwB,CAAC;IACtD,KAAK,EAAE,YAAY,EAAE,CAAM;IAEpC,IAAI,WAAW,YAKd;IAED,IAAI,gBAAgB,YAKnB;IAED,QAAQ,QAAS,MAAM,UAErB;IAEF,IAAI,YAAY,uBAEf;IAED,aAAa,UAAW,YAAY,EAAE,KAAK,KAAK,GAAG,QAAQ,UAEzD;IAEF,IAAI,iBAAiB,IAAI,MAAM,CAQ9B;IAED,IAAI,QAAQ,8CAKX;CAwFF;AAED,OAAO,EAAE,eAAe,EAAE,KAAK,wBAAwB,EAAE,CAAC;AAC1D,eAAe,eAAe,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
export interface FormFieldTextareaArgs {
|
|
3
|
-
id?: string;
|
|
4
|
-
value?: string | number | boolean;
|
|
5
|
-
size?: 'sm' | 'md' | 'lg';
|
|
6
|
-
class?: string;
|
|
7
|
-
onInput?: (value: string, event: InputEvent) => void;
|
|
8
|
-
onChange?: (value: string, event: InputEvent) => void;
|
|
9
|
-
}
|
|
10
|
-
export interface FormFieldTextareaSignature {
|
|
11
|
-
Args: FormFieldTextareaArgs;
|
|
12
|
-
Element: HTMLTextAreaElement;
|
|
13
|
-
}
|
|
14
|
-
export default class FormFieldTextarea extends Component<FormFieldTextareaSignature> {
|
|
15
|
-
handleOnInput(event: Event): void;
|
|
16
|
-
handleOnChange(event: Event): void;
|
|
17
|
-
get classes(): string;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=textarea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.d.ts","sourceRoot":"","sources":["../../../src/components/form-field/textarea.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,MAAM,WAAW,qBAAqB;IACpC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAGrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;CACvD;AAED,MAAM,WAAW,0BAA0B;IACzC,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,EAAE,mBAAmB,CAAC;CAC9B;AAED,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,SAAS,CAAC,0BAA0B,CAAC;IAC1E,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IASjC,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAS1C,IAAI,OAAO,WAOV;CAiBF"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import FormFieldCheckbox from './form-field/checkbox';
|
|
3
|
-
import FormFieldFeedback from './form-field/feedback';
|
|
4
|
-
import FormFieldHint from './form-field/hint';
|
|
5
|
-
import FormFieldInput from './form-field/input';
|
|
6
|
-
import FormFieldLabel from './form-field/label';
|
|
7
|
-
import FormFieldRadio from './form-field/radio';
|
|
8
|
-
import FormFieldTextarea from './form-field/textarea';
|
|
9
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
10
|
-
export interface FormFieldArgs {
|
|
11
|
-
size?: 'sm' | 'md' | 'lg';
|
|
12
|
-
}
|
|
13
|
-
export interface FormFieldSignature {
|
|
14
|
-
Args: FormFieldArgs;
|
|
15
|
-
Blocks: {
|
|
16
|
-
default: [
|
|
17
|
-
{
|
|
18
|
-
id: string;
|
|
19
|
-
hintId: string;
|
|
20
|
-
feedbackId: string;
|
|
21
|
-
Label: WithBoundArgs<typeof FormFieldLabel, 'for'> & WithBoundArgs<typeof FormFieldLabel, 'size'>;
|
|
22
|
-
Hint: WithBoundArgs<typeof FormFieldHint, 'id'> & WithBoundArgs<typeof FormFieldHint, 'size'>;
|
|
23
|
-
Feedback: WithBoundArgs<typeof FormFieldFeedback, 'id'> & WithBoundArgs<typeof FormFieldFeedback, 'size'>;
|
|
24
|
-
Input: WithBoundArgs<typeof FormFieldInput, 'id'> & WithBoundArgs<typeof FormFieldInput, 'size'>;
|
|
25
|
-
Textarea: WithBoundArgs<typeof FormFieldTextarea, 'id'> & WithBoundArgs<typeof FormFieldTextarea, 'size'>;
|
|
26
|
-
Checkbox: WithBoundArgs<typeof FormFieldCheckbox, 'id'> & WithBoundArgs<typeof FormFieldCheckbox, 'size'>;
|
|
27
|
-
Radio: WithBoundArgs<typeof FormFieldRadio, 'id'> & WithBoundArgs<typeof FormFieldRadio, 'size'>;
|
|
28
|
-
}
|
|
29
|
-
];
|
|
30
|
-
};
|
|
31
|
-
Element: HTMLDivElement;
|
|
32
|
-
}
|
|
33
|
-
export default class FormField extends Component<FormFieldSignature> {
|
|
34
|
-
id: string;
|
|
35
|
-
get hintId(): string;
|
|
36
|
-
get feedbackId(): string;
|
|
37
|
-
}
|
|
38
|
-
//# sourceMappingURL=form-field.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.d.ts","sourceRoot":"","sources":["../../src/components/form-field.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,MAAM,EAAE;QACN,OAAO,EAAE;YACP;gBACE,EAAE,EAAE,MAAM,CAAC;gBACX,MAAM,EAAE,MAAM,CAAC;gBACf,UAAU,EAAE,MAAM,CAAC;gBACnB,KAAK,EAAE,aAAa,CAAC,OAAO,cAAc,EAAE,KAAK,CAAC,GAChD,aAAa,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,CAAC;gBAC/C,IAAI,EAAE,aAAa,CAAC,OAAO,aAAa,EAAE,IAAI,CAAC,GAC7C,aAAa,CAAC,OAAO,aAAa,EAAE,MAAM,CAAC,CAAC;gBAC9C,QAAQ,EAAE,aAAa,CAAC,OAAO,iBAAiB,EAAE,IAAI,CAAC,GACrD,aAAa,CAAC,OAAO,iBAAiB,EAAE,MAAM,CAAC,CAAC;gBAClD,KAAK,EAAE,aAAa,CAAC,OAAO,cAAc,EAAE,IAAI,CAAC,GAC/C,aAAa,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,CAAC;gBAC/C,QAAQ,EAAE,aAAa,CAAC,OAAO,iBAAiB,EAAE,IAAI,CAAC,GACrD,aAAa,CAAC,OAAO,iBAAiB,EAAE,MAAM,CAAC,CAAC;gBAClD,QAAQ,EAAE,aAAa,CAAC,OAAO,iBAAiB,EAAE,IAAI,CAAC,GACrD,aAAa,CAAC,OAAO,iBAAiB,EAAE,MAAM,CAAC,CAAC;gBAClD,KAAK,EAAE,aAAa,CAAC,OAAO,cAAc,EAAE,IAAI,CAAC,GAC/C,aAAa,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,CAAC;aAChD;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAClE,EAAE,SAAiB;IAEnB,IAAI,MAAM,IAAI,MAAM,CAEnB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;CAqBF"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
export interface FormInputArgs {
|
|
3
|
-
/**
|
|
4
|
-
* The value to be used in the input.
|
|
5
|
-
* You must also pass `onChange` or `onInput` to update its value.
|
|
6
|
-
*/
|
|
7
|
-
value: string | undefined;
|
|
8
|
-
/**
|
|
9
|
-
* The input type
|
|
10
|
-
* @defaultValue 'text'
|
|
11
|
-
*/
|
|
12
|
-
type?: string;
|
|
13
|
-
/** The group label */
|
|
14
|
-
label?: string;
|
|
15
|
-
/** A help text to be displayed */
|
|
16
|
-
hint?: string;
|
|
17
|
-
/** If the form has been submitted, used to force displaying errors */
|
|
18
|
-
hasSubmitted?: boolean;
|
|
19
|
-
/** If has errors */
|
|
20
|
-
hasError?: boolean;
|
|
21
|
-
/** Force displaying errors */
|
|
22
|
-
showError?: boolean;
|
|
23
|
-
/** A list of errors or a single text describing the error */
|
|
24
|
-
errors?: string[] | string;
|
|
25
|
-
/** CSS classes to be added in the container element */
|
|
26
|
-
containerClass?: string;
|
|
27
|
-
/** The size */
|
|
28
|
-
size?: 'sm' | 'md' | 'lg';
|
|
29
|
-
/** CSS classes to be added in the input element */
|
|
30
|
-
inputClass?: string;
|
|
31
|
-
/** Callback when oninput is triggered */
|
|
32
|
-
onInput?: (value: string, event: InputEvent) => void;
|
|
33
|
-
/** Callback when onchange is triggered */
|
|
34
|
-
onChange?: (value: string, event: InputEvent) => void;
|
|
35
|
-
/** Callback when onfocus is triggered */
|
|
36
|
-
onFocusIn?: (event: FocusEvent) => void;
|
|
37
|
-
/** Callback when onblur is triggered */
|
|
38
|
-
onFocusOut?: (event: FocusEvent) => void;
|
|
39
|
-
}
|
|
40
|
-
export interface FormInputBaseSignature {
|
|
41
|
-
Args: FormInputArgs;
|
|
42
|
-
}
|
|
43
|
-
export interface FormInputSignature extends FormInputBaseSignature {
|
|
44
|
-
Element: HTMLInputElement;
|
|
45
|
-
Blocks: {
|
|
46
|
-
default: [];
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
export declare class FormInputBase<T extends FormInputBaseSignature> extends Component<T> {
|
|
50
|
-
shouldShowErrorFeedback: boolean;
|
|
51
|
-
get showErrorFeedback(): boolean;
|
|
52
|
-
handleFocusIn(event: FocusEvent): void;
|
|
53
|
-
handleFocusOut(event: FocusEvent): void;
|
|
54
|
-
}
|
|
55
|
-
export default class FormInput extends FormInputBase<FormInputSignature> {
|
|
56
|
-
get classes(): {
|
|
57
|
-
base: string;
|
|
58
|
-
label: string;
|
|
59
|
-
input: string;
|
|
60
|
-
hint: string;
|
|
61
|
-
feedback: string;
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=form-input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-input.d.ts","sourceRoot":"","sources":["../../src/components/form-input.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAA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CACxB,CAAC,SAAS,sBAAsB,CAChC,SAAQ,SAAS,CAAC,CAAC,CAAC;IACX,uBAAuB,UAAS;IAEzC,IAAI,iBAAiB,IAAI,OAAO,CAgB/B;IAEO,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAQtC,cAAc,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;CAOhD;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,aAAa,CAAC,kBAAkB,CAAC;IACtE,IAAI,OAAO;;;;;;MAgBV;CAsDF"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import FormRadio from './form-radio';
|
|
3
|
-
import type { WithBoundArgs } from '@glint/template';
|
|
4
|
-
export interface FormRadioGroupArgs {
|
|
5
|
-
value: string | number | boolean | undefined;
|
|
6
|
-
/** The group label */
|
|
7
|
-
label?: string;
|
|
8
|
-
/** A help text to be displayed */
|
|
9
|
-
hint?: string;
|
|
10
|
-
/** If the form has been submitted, used to force displaying errors */
|
|
11
|
-
hasSubmitted?: boolean;
|
|
12
|
-
/** If has errors */
|
|
13
|
-
hasError?: boolean;
|
|
14
|
-
/** Force displaying errors */
|
|
15
|
-
showError?: boolean;
|
|
16
|
-
/** A list of errors or a single text describing the error */
|
|
17
|
-
errors?: string[] | string;
|
|
18
|
-
/** CSS classes to be added in the container element */
|
|
19
|
-
containerClass?: string;
|
|
20
|
-
/** The size */
|
|
21
|
-
size?: 'sm' | 'md' | 'lg';
|
|
22
|
-
/** If the Checkbox should be in one line */
|
|
23
|
-
isInline?: boolean;
|
|
24
|
-
/** Default callback added to the yielded FormRadio component, called when onchange is triggered */
|
|
25
|
-
onChange?: (value: unknown, event: Event) => void;
|
|
26
|
-
}
|
|
27
|
-
export interface FormRadioGroupSignature {
|
|
28
|
-
Args: FormRadioGroupArgs;
|
|
29
|
-
Blocks: {
|
|
30
|
-
default: [
|
|
31
|
-
radio: WithBoundArgs<typeof FormRadio, 'checked'> & WithBoundArgs<typeof FormRadio, 'privateContainerClass'> & WithBoundArgs<typeof FormRadio, '_parentOnChange'> & WithBoundArgs<typeof FormRadio, 'size'> & WithBoundArgs<typeof FormRadio, 'name'>
|
|
32
|
-
];
|
|
33
|
-
};
|
|
34
|
-
Element: HTMLDivElement;
|
|
35
|
-
}
|
|
36
|
-
export default class FormRadioGroup extends Component<FormRadioGroupSignature> {
|
|
37
|
-
shouldShowErrorFeedback: boolean;
|
|
38
|
-
get showErrorFeedback(): boolean;
|
|
39
|
-
handleChange(value: unknown, event: Event): void;
|
|
40
|
-
get classes(): {
|
|
41
|
-
base: string;
|
|
42
|
-
label: string;
|
|
43
|
-
hint: string;
|
|
44
|
-
feedback: string;
|
|
45
|
-
formRadio: string;
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
//# sourceMappingURL=form-radio-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-radio-group.d.ts","sourceRoot":"","sources":["../../src/components/form-radio-group.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAI3C,OAAO,SAAS,MAAM,cAAc,CAAC;AAGrC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAC7C,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sEAAsE;IACtE,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC3B,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe;IACf,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,mGAAmG;IACnG,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACnD;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,kBAAkB,CAAC;IACzB,MAAM,EAAE;QACN,OAAO,EAAE;YACP,KAAK,EAAE,aAAa,CAAC,OAAO,SAAS,EAAE,SAAS,CAAC,GAC/C,aAAa,CAAC,OAAO,SAAS,EAAE,uBAAuB,CAAC,GACxD,aAAa,CAAC,OAAO,SAAS,EAAE,iBAAiB,CAAC,GAClD,aAAa,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC,GACvC,aAAa,CAAC,OAAO,SAAS,EAAE,MAAM,CAAC;SAC1C,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,SAAS,CAAC,uBAAuB,CAAC;IACnE,uBAAuB,UAAS;IAEzC,IAAI,iBAAiB,IAAI,OAAO,CAgB/B;IAEO,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAQxD,IAAI,OAAO;;;;;;MAeV;CA8CF"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
export interface FormRadioArgs {
|
|
3
|
-
/** The input field label */
|
|
4
|
-
label?: string;
|
|
5
|
-
/** A help text to be displayed */
|
|
6
|
-
hint?: string;
|
|
7
|
-
/**
|
|
8
|
-
* The value to be used in the radio button.
|
|
9
|
-
* You must also pass `onChange` to update its value.
|
|
10
|
-
*/
|
|
11
|
-
value: string | number | boolean | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* The current checked value.
|
|
14
|
-
* This will be used to compare against the `value` argument,
|
|
15
|
-
* if equal, the radio will me marked as checked.
|
|
16
|
-
*/
|
|
17
|
-
checked: unknown;
|
|
18
|
-
/** The name of the checkbox */
|
|
19
|
-
name?: string;
|
|
20
|
-
/** CSS classes to be added in the container element */
|
|
21
|
-
containerClass?: string;
|
|
22
|
-
/** The size */
|
|
23
|
-
size?: 'sm' | 'md' | 'lg';
|
|
24
|
-
/** Callback when onchange is triggered */
|
|
25
|
-
onChange: (value: unknown, event: Event) => void;
|
|
26
|
-
/**
|
|
27
|
-
* Internal function for InputRadioGroup
|
|
28
|
-
* @ignore
|
|
29
|
-
**/
|
|
30
|
-
_parentOnChange?: (value: unknown, event: Event) => void;
|
|
31
|
-
/** CSS classes to be added in the container element, in be used in for group
|
|
32
|
-
* @ignore*/
|
|
33
|
-
privateContainerClass?: string;
|
|
34
|
-
}
|
|
35
|
-
export interface FormRadioSignature {
|
|
36
|
-
Args: FormRadioArgs;
|
|
37
|
-
Element: HTMLInputElement;
|
|
38
|
-
Blocks: {
|
|
39
|
-
default: [];
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
export default class FormRadio extends Component<FormRadioSignature> {
|
|
43
|
-
handleChange(value: unknown, event: Event): void;
|
|
44
|
-
get isChecked(): boolean;
|
|
45
|
-
get classes(): {
|
|
46
|
-
base: string;
|
|
47
|
-
label: string;
|
|
48
|
-
inputContainer: string;
|
|
49
|
-
labelContainer: string;
|
|
50
|
-
hint: string;
|
|
51
|
-
radio: string;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=form-radio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-radio.d.ts","sourceRoot":"","sources":["../../src/components/form-radio.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAK3C,MAAM,WAAW,aAAa;IAC5B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAC7C;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB,+BAA+B;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe;IACf,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,0CAA0C;IAC1C,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjD;;;QAGI;IACJ,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAEzD;gBACY;IACZ,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,aAAa,CAAC;IACpB,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,SAAS,CAAC,kBAAkB,CAAC;IAC1D,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAYxD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED,IAAI,OAAO;;;;;;;MA0BV;CA0DF"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import Component from '@glimmer/component';
|
|
2
|
-
import { type PowerSelectArgs, type Select } from 'ember-power-select/components/power-select';
|
|
3
|
-
export type { Select } from 'ember-power-select/components/power-select';
|
|
4
|
-
export interface FormSelectArgs extends PowerSelectArgs {
|
|
5
|
-
/** The input field label */
|
|
6
|
-
label?: string;
|
|
7
|
-
/** A help text to be displayed */
|
|
8
|
-
hint?: string;
|
|
9
|
-
/** If the form has been submitted, used to force displaying errors */
|
|
10
|
-
hasSubmitted?: boolean;
|
|
11
|
-
/** If has errors */
|
|
12
|
-
hasError?: boolean;
|
|
13
|
-
/** Force displaying errors */
|
|
14
|
-
showError?: boolean;
|
|
15
|
-
/** A list of errors or a single text describing the error */
|
|
16
|
-
errors?: string[] | string;
|
|
17
|
-
/** CSS classes to be added in the container element */
|
|
18
|
-
containerClass?: string;
|
|
19
|
-
/** The size */
|
|
20
|
-
size?: 'sm' | 'md' | 'lg';
|
|
21
|
-
/** If is multiple select instead of single */
|
|
22
|
-
isMultiple?: boolean;
|
|
23
|
-
onFocusIn?: (select: Select, event: FocusEvent) => void;
|
|
24
|
-
onFocusOut?: (select: Select, event: FocusEvent) => void;
|
|
25
|
-
}
|
|
26
|
-
export interface FormSelectSignature {
|
|
27
|
-
Args: FormSelectArgs;
|
|
28
|
-
Blocks: {
|
|
29
|
-
default: [unknown, Select];
|
|
30
|
-
};
|
|
31
|
-
Element: HTMLDivElement;
|
|
32
|
-
}
|
|
33
|
-
export default class FormSelect extends Component<FormSelectSignature> {
|
|
34
|
-
shouldShowErrorFeedback: boolean;
|
|
35
|
-
isOpen: boolean;
|
|
36
|
-
constructor(owner: unknown, args: FormSelectArgs);
|
|
37
|
-
get showErrorFeedback(): boolean;
|
|
38
|
-
handleOpen(select: Select, event: Event): void;
|
|
39
|
-
handleClose(select: Select, event: Event): void;
|
|
40
|
-
handleFocusIn(select: Select, event: FocusEvent): void;
|
|
41
|
-
handleFocusOut(select: Select, event: FocusEvent): void;
|
|
42
|
-
handleChange(selection: unknown, select: Select, event?: Event): void;
|
|
43
|
-
get classes(): {
|
|
44
|
-
base: string;
|
|
45
|
-
label: string;
|
|
46
|
-
select: string;
|
|
47
|
-
hint: string;
|
|
48
|
-
feedback: string;
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=form-select.d.ts.map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AmB,CAAC;IAC3D,uBAAuB,UAAS;IAChC,MAAM,UAAS;gBAEZ,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc;IAQhD,IAAI,iBAAiB,IAAI,OAAO,CAgB/B;IAEO,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAS9C,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI;IAS/C,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAatD,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAevD,YAAY,CAClB,SAAS,EAAE,OAAO,EAClB,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,KAAK,GACZ,IAAI;IAKP,IAAI,OAAO;;;;;;MAgBV;CA8DF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { FormInputBase, type FormInputBaseSignature } from './form-input';
|
|
2
|
-
export interface FormTextareaSignature extends FormInputBaseSignature {
|
|
3
|
-
Element: HTMLTextAreaElement;
|
|
4
|
-
Blocks: {
|
|
5
|
-
default: [];
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export default class FormTextarea extends FormInputBase<FormTextareaSignature> {
|
|
9
|
-
get classes(): {
|
|
10
|
-
base: string;
|
|
11
|
-
label: string;
|
|
12
|
-
input: string;
|
|
13
|
-
hint: string;
|
|
14
|
-
feedback: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=form-textarea.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-textarea.d.ts","sourceRoot":"","sources":["../../src/components/form-textarea.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,KAAK,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAM1E,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;CACH;AAED,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,aAAa,CAAC,qBAAqB,CAAC;IAC5E,IAAI,OAAO;;;;;;MAgBV;CAsDF"}
|