@eui/components 19.0.3-snapshot-1737728205029 → 19.0.4-snapshot-1738753092246
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/directives/eui-has-permission.directive.d.ts +70 -2
- package/directives/eui-has-permission.directive.d.ts.map +1 -1
- package/directives/eui-maxlength.directive.d.ts +94 -10
- package/directives/eui-maxlength.directive.d.ts.map +1 -1
- package/docs/components/EuiInputCheckboxComponent.html +169 -10
- package/docs/components/EuiInputGroupAddOnComponent.html +22 -0
- package/docs/components/EuiInputGroupAddOnItemComponent.html +30 -0
- package/docs/components/EuiInputGroupComponent.html +35 -0
- package/docs/components/EuiInputNumberComponent.html +83 -4
- package/docs/components/EuiInputRadioComponent.html +228 -0
- package/docs/components/EuiInputTextComponent.html +50 -0
- package/docs/components/EuiTextareaComponent.html +207 -1
- package/docs/dependencies.html +2 -2
- package/docs/directives/AutoResizeDirective.html +49 -1
- package/docs/directives/EuiHasPermissionDirective.html +34 -0
- package/docs/directives/EuiInputNumberDirective.html +17 -0
- package/docs/directives/EuiMaxLengthDirective.html +35 -7
- package/docs/js/menu-wc.js +53 -107
- package/docs/js/menu-wc_es5.js +1 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/functions.html +14 -0
- package/docs/modules/EuiHasPermissionDirectiveModule.html +17 -3
- package/docs/modules/EuiInputCheckboxModule.html +25 -4
- package/docs/modules/EuiInputGroupModule.html +20 -5
- package/docs/modules/EuiInputNumberModule.html +26 -5
- package/docs/modules/EuiInputRadioModule.html +27 -4
- package/docs/modules/EuiInputTextModule.html +25 -4
- package/docs/modules/EuiMaxLengthDirectiveModule.html +25 -4
- package/docs/modules/EuiTextAreaModule.html +20 -4
- package/eui-input-checkbox/eui-input-checkbox.component.d.ts +88 -11
- package/eui-input-checkbox/eui-input-checkbox.component.d.ts.map +1 -1
- package/eui-input-checkbox/eui-input-checkbox.module.d.ts +17 -3
- package/eui-input-checkbox/eui-input-checkbox.module.d.ts.map +1 -1
- package/eui-input-group/eui-input-group-addon-item.component.d.ts +33 -1
- package/eui-input-group/eui-input-group-addon-item.component.d.ts.map +1 -1
- package/eui-input-group/eui-input-group-addon.component.d.ts +40 -2
- package/eui-input-group/eui-input-group-addon.component.d.ts.map +1 -1
- package/eui-input-group/eui-input-group.component.d.ts +44 -1
- package/eui-input-group/eui-input-group.component.d.ts.map +1 -1
- package/eui-input-group/eui-input-group.module.d.ts +21 -5
- package/eui-input-group/eui-input-group.module.d.ts.map +1 -1
- package/eui-input-number/eui-input-number.component.d.ts +73 -9
- package/eui-input-number/eui-input-number.component.d.ts.map +1 -1
- package/eui-input-number/eui-input-number.module.d.ts +19 -4
- package/eui-input-number/eui-input-number.module.d.ts.map +1 -1
- package/eui-input-number/eui-number-control.directive.d.ts +27 -2
- package/eui-input-number/eui-number-control.directive.d.ts.map +1 -1
- package/eui-input-radio/eui-input-radio.component.d.ts +96 -1
- package/eui-input-radio/eui-input-radio.component.d.ts.map +1 -1
- package/eui-input-radio/eui-input-radio.module.d.ts +20 -3
- package/eui-input-radio/eui-input-radio.module.d.ts.map +1 -1
- package/eui-input-text/eui-input-text.component.d.ts +54 -1
- package/eui-input-text/eui-input-text.component.d.ts.map +1 -1
- package/eui-input-text/eui-input-text.module.d.ts +19 -3
- package/eui-input-text/eui-input-text.module.d.ts.map +1 -1
- package/eui-textarea/auto-resize.directive.d.ts +90 -3
- package/eui-textarea/auto-resize.directive.d.ts.map +1 -1
- package/eui-textarea/eui-textarea.component.d.ts +111 -5
- package/eui-textarea/eui-textarea.component.d.ts.map +1 -1
- package/eui-textarea/eui-textarea.module.d.ts +23 -4
- package/eui-textarea/eui-textarea.module.d.ts.map +1 -1
- package/fesm2022/eui-components-directives.mjs +180 -34
- package/fesm2022/eui-components-directives.mjs.map +1 -1
- package/fesm2022/eui-components-eui-accordion.mjs +1 -1
- package/fesm2022/eui-components-eui-alert.mjs +1 -1
- package/fesm2022/eui-components-eui-autocomplete.mjs +2 -2
- package/fesm2022/eui-components-eui-avatar.mjs +1 -1
- package/fesm2022/eui-components-eui-badge.mjs +1 -1
- package/fesm2022/eui-components-eui-block-content.mjs +1 -1
- package/fesm2022/eui-components-eui-block-document.mjs +1 -1
- package/fesm2022/eui-components-eui-breadcrumb.mjs +1 -1
- package/fesm2022/eui-components-eui-button-group.mjs +1 -1
- package/fesm2022/eui-components-eui-button-v2.mjs +1 -1
- package/fesm2022/eui-components-eui-button.mjs +1 -1
- package/fesm2022/eui-components-eui-card.mjs +3 -3
- package/fesm2022/eui-components-eui-card.mjs.map +1 -1
- package/fesm2022/eui-components-eui-chip-group.mjs +1 -1
- package/fesm2022/eui-components-eui-chip-list.mjs +1 -1
- package/fesm2022/eui-components-eui-chip.mjs +1 -1
- package/fesm2022/eui-components-eui-dashboard-button.mjs +1 -1
- package/fesm2022/eui-components-eui-dashboard-card.mjs +1 -1
- package/fesm2022/eui-components-eui-date-range-selector.mjs +1 -1
- package/fesm2022/eui-components-eui-datepicker.mjs +1 -1
- package/fesm2022/eui-components-eui-dialog.mjs +1 -1
- package/fesm2022/eui-components-eui-dimmer.mjs +1 -1
- package/fesm2022/eui-components-eui-disable-content.mjs +1 -1
- package/fesm2022/eui-components-eui-discussion-thread.mjs +1 -1
- package/fesm2022/eui-components-eui-dropdown.mjs +2 -2
- package/fesm2022/eui-components-eui-feedback-message.mjs +1 -1
- package/fesm2022/eui-components-eui-fieldset.mjs +1 -1
- package/fesm2022/eui-components-eui-file-upload.mjs +1 -1
- package/fesm2022/eui-components-eui-growl.mjs +1 -1
- package/fesm2022/eui-components-eui-icon-button-expander.mjs +1 -1
- package/fesm2022/eui-components-eui-icon-button.mjs +1 -1
- package/fesm2022/eui-components-eui-icon-color.mjs +1 -1
- package/fesm2022/eui-components-eui-icon-input.mjs +1 -1
- package/fesm2022/eui-components-eui-icon-state.mjs +1 -1
- package/fesm2022/eui-components-eui-icon-toggle.mjs +1 -1
- package/fesm2022/eui-components-eui-icon.mjs +1 -1
- package/fesm2022/eui-components-eui-input-checkbox.mjs +104 -14
- package/fesm2022/eui-components-eui-input-checkbox.mjs.map +1 -1
- package/fesm2022/eui-components-eui-input-group.mjs +142 -12
- package/fesm2022/eui-components-eui-input-group.mjs.map +1 -1
- package/fesm2022/eui-components-eui-input-number.mjs +109 -13
- package/fesm2022/eui-components-eui-input-number.mjs.map +1 -1
- package/fesm2022/eui-components-eui-input-radio.mjs +117 -6
- package/fesm2022/eui-components-eui-input-radio.mjs.map +1 -1
- package/fesm2022/eui-components-eui-input-text.mjs +73 -6
- package/fesm2022/eui-components-eui-input-text.mjs.map +1 -1
- package/fesm2022/eui-components-eui-label.mjs +1 -1
- package/fesm2022/eui-components-eui-language-selector.mjs +1 -1
- package/fesm2022/eui-components-eui-list.mjs +1 -1
- package/fesm2022/eui-components-eui-menu.mjs +1 -1
- package/fesm2022/eui-components-eui-message-box.mjs +1 -1
- package/fesm2022/eui-components-eui-navbar.mjs +1 -1
- package/fesm2022/eui-components-eui-overlay.mjs +1 -1
- package/fesm2022/eui-components-eui-page.mjs +1 -1
- package/fesm2022/eui-components-eui-paginator.mjs +1 -1
- package/fesm2022/eui-components-eui-popover.mjs +1 -1
- package/fesm2022/eui-components-eui-progress-bar.mjs +1 -1
- package/fesm2022/eui-components-eui-progress-circle.mjs +1 -1
- package/fesm2022/eui-components-eui-select.mjs +1 -1
- package/fesm2022/eui-components-eui-sidebar-menu.mjs +1 -1
- package/fesm2022/eui-components-eui-skeleton.mjs +1 -1
- package/fesm2022/eui-components-eui-slide-toggle.mjs +2 -2
- package/fesm2022/eui-components-eui-split-button.mjs +1 -1
- package/fesm2022/eui-components-eui-table-v2.mjs +1 -1
- package/fesm2022/eui-components-eui-table.mjs +1 -1
- package/fesm2022/eui-components-eui-tabs.mjs +1 -1
- package/fesm2022/eui-components-eui-textarea.mjs +221 -15
- package/fesm2022/eui-components-eui-textarea.mjs.map +1 -1
- package/fesm2022/eui-components-eui-timebar.mjs +1 -1
- package/fesm2022/eui-components-eui-timeline.mjs +1 -1
- package/fesm2022/eui-components-eui-timepicker.mjs +1 -1
- package/fesm2022/eui-components-eui-tree-list.mjs +1 -1
- package/fesm2022/eui-components-eui-tree.mjs +1 -1
- package/fesm2022/eui-components-eui-user-profile.mjs +1 -1
- package/fesm2022/eui-components-eui-wizard.mjs +1 -1
- package/fesm2022/eui-components-externals-eui-editor.mjs +1 -1
- package/fesm2022/eui-components-externals-quill.mjs +1 -1
- package/fesm2022/eui-components-layout.mjs +2 -2
- package/fesm2022/eui-components-shared.mjs +2 -2
- package/package.json +9 -9
@@ -1,8 +1,40 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* @description
|
4
|
+
* A component that represents an individual item within an input group add-on.
|
5
|
+
* Can be used either as an attribute selector on a div or as a custom element.
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
* As an attribute
|
9
|
+
* ```html
|
10
|
+
* <div euiInputGroupAddOnItem>Content</div>
|
11
|
+
* ```
|
12
|
+
*
|
13
|
+
* As an element
|
14
|
+
* ```html
|
15
|
+
* <eui-input-group-addon-item>Content</eui-input-group-addon-item>
|
16
|
+
* ```
|
17
|
+
*
|
18
|
+
* @selector div[euiInputGroupAddOnItem], eui-input-group-addon-item
|
19
|
+
*/
|
2
20
|
export declare class EuiInputGroupAddOnItemComponent {
|
21
|
+
/**
|
22
|
+
* @description
|
23
|
+
* Input property for setting the data-e2e attribute value.
|
24
|
+
* Used for end-to-end testing purposes.
|
25
|
+
*
|
26
|
+
* @default 'eui-input-group-addon-item'
|
27
|
+
*/
|
3
28
|
e2eAttr: string;
|
29
|
+
/**
|
30
|
+
* @description
|
31
|
+
* Getter that returns the CSS class for the component.
|
32
|
+
* Bound to the host element's class attribute.
|
33
|
+
*
|
34
|
+
* @returns {string} The CSS class name
|
35
|
+
*/
|
4
36
|
get cssClasses(): string;
|
5
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputGroupAddOnItemComponent, never>;
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputGroupAddOnItemComponent, "div[euiInputGroupAddOnItem], eui-input-group-addon-item", never, { "e2eAttr": { "alias": "e2eAttr"; "required": false; }; }, {}, never, ["*"],
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputGroupAddOnItemComponent, "div[euiInputGroupAddOnItem], eui-input-group-addon-item", never, { "e2eAttr": { "alias": "e2eAttr"; "required": false; }; }, {}, never, ["*"], true, never>;
|
7
39
|
}
|
8
40
|
//# sourceMappingURL=eui-input-group-addon-item.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-group-addon-item.component.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group-addon-item.component.ts"],"names":[],"mappings":";AAEA,qBAOa,+BAA+B;
|
1
|
+
{"version":3,"file":"eui-input-group-addon-item.component.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group-addon-item.component.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAOa,+BAA+B;IACxC;;;;;;OAMG;IACoC,OAAO,SAAgC;IAC9E;;;;;;OAMG;IACH,IACW,UAAU,IAAI,MAAM,CAE9B;yCAnBQ,+BAA+B;2CAA/B,+BAA+B;CAoB3C"}
|
@@ -1,8 +1,46 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* @description
|
4
|
+
* A component that serves as a container for input group add-on items.
|
5
|
+
* Can be used either as an attribute selector on a div or as a custom element.
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
* As an attribute
|
9
|
+
* ```html
|
10
|
+
* <div euiInputGroupAddOn>
|
11
|
+
* <div euiInputGroupAddOnItem>Item 1</div>
|
12
|
+
* <div euiInputGroupAddOnItem>Item 2</div>
|
13
|
+
* </div>
|
14
|
+
* ```
|
15
|
+
*
|
16
|
+
* As an element
|
17
|
+
* ```html
|
18
|
+
* <eui-input-group-addon>
|
19
|
+
* <eui-input-group-addon-item>Item 1</eui-input-group-addon-item>
|
20
|
+
* <eui-input-group-addon-item>Item 2</eui-input-group-addon-item>
|
21
|
+
* </eui-input-group-addon>
|
22
|
+
* ```
|
23
|
+
*
|
24
|
+
* @selector div[euiInputGroupAddOn], eui-input-group-addon
|
25
|
+
* @standalone false
|
26
|
+
*/
|
2
27
|
export declare class EuiInputGroupAddOnComponent {
|
3
|
-
|
28
|
+
/**
|
29
|
+
* @description
|
30
|
+
* Input property for setting the data-e2e attribute value.
|
31
|
+
* Used for end-to-end testing purposes.
|
32
|
+
*
|
33
|
+
* @default 'eui-input-group-addon'
|
34
|
+
*/
|
35
|
+
e2eAttr: string; /**
|
36
|
+
* @description
|
37
|
+
* Getter that returns the CSS class for the component.
|
38
|
+
* Bound to the host element's class attribute.
|
39
|
+
*
|
40
|
+
* @returns {string} The CSS class name
|
41
|
+
*/
|
4
42
|
get cssClasses(): string;
|
5
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputGroupAddOnComponent, never>;
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputGroupAddOnComponent, "div[euiInputGroupAddOn], eui-input-group-addon", never, { "e2eAttr": { "alias": "e2eAttr"; "required": false; }; }, {}, never, ["*"],
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputGroupAddOnComponent, "div[euiInputGroupAddOn], eui-input-group-addon", never, { "e2eAttr": { "alias": "e2eAttr"; "required": false; }; }, {}, never, ["*"], true, never>;
|
7
45
|
}
|
8
46
|
//# sourceMappingURL=eui-input-group-addon.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-group-addon.component.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group-addon.component.ts"],"names":[],"mappings":";AAEA,qBAOa,2BAA2B;
|
1
|
+
{"version":3,"file":"eui-input-group-addon.component.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group-addon.component.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,qBAOa,2BAA2B;IACpC;;;;;;OAMG;IACoC,OAAO,SAA2B,CAAA;;;;;;OAMtE;IACH,IACW,UAAU,IAAI,MAAM,CAE9B;yCAlBQ,2BAA2B;2CAA3B,2BAA2B;CAmBvC"}
|
@@ -1,9 +1,52 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
+
/**
|
3
|
+
* @description
|
4
|
+
* A component that serves as the main container for input group elements.
|
5
|
+
* Can only be used as an attribute selector on a div element.
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
* ```html
|
9
|
+
* <div euiInputGroup>
|
10
|
+
* <eui-input-group-addon>
|
11
|
+
* <eui-input-group-addon-item>Prefix</eui-input-group-addon-item>
|
12
|
+
* </eui-input-group-addon>
|
13
|
+
* <input type="text">
|
14
|
+
* <eui-input-group-addon>
|
15
|
+
* <eui-input-group-addon-item>Suffix</eui-input-group-addon-item>
|
16
|
+
* </eui-input-group-addon>
|
17
|
+
* </div>
|
18
|
+
* ```
|
19
|
+
*
|
20
|
+
* @selector div[euiInputGroup]
|
21
|
+
* @standalone false
|
22
|
+
*/
|
2
23
|
export declare class EuiInputGroupComponent {
|
24
|
+
/**
|
25
|
+
* @description
|
26
|
+
* Input property for setting the data-e2e attribute value.
|
27
|
+
* Used for end-to-end testing purposes.
|
28
|
+
*
|
29
|
+
* @default 'eui-input-group'
|
30
|
+
*/
|
3
31
|
e2eAttr: string;
|
32
|
+
/**
|
33
|
+
* @description
|
34
|
+
* Getter that returns the CSS class for the component.
|
35
|
+
* Bound to the host element's class attribute.
|
36
|
+
*
|
37
|
+
* @returns {string} The CSS class name
|
38
|
+
*/
|
4
39
|
get cssClasses(): string;
|
40
|
+
/**
|
41
|
+
* @description
|
42
|
+
* Protected property that defines the type of the input group.
|
43
|
+
* Bound to the host element's type attribute.
|
44
|
+
*
|
45
|
+
* @protected
|
46
|
+
* @default 'inputGroup'
|
47
|
+
*/
|
5
48
|
protected type: string;
|
6
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputGroupComponent, never>;
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputGroupComponent, "div[euiInputGroup]", never, { "e2eAttr": { "alias": "e2eAttr"; "required": false; }; }, {}, never, ["*"],
|
50
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputGroupComponent, "div[euiInputGroup]", never, { "e2eAttr": { "alias": "e2eAttr"; "required": false; }; }, {}, never, ["*"], true, never>;
|
8
51
|
}
|
9
52
|
//# sourceMappingURL=eui-input-group.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-group.component.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group.component.ts"],"names":[],"mappings":";AAEA,qBAOa,sBAAsB;
|
1
|
+
{"version":3,"file":"eui-input-group.component.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group.component.ts"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAOa,sBAAsB;IAC/B;;;;;;OAMG;IACoC,OAAO,SAAqB;IACnE;;;;;;OAMG;IACH,IACW,UAAU,IAAI,MAAM,CAE9B;IAED;;;;;;;OAOG;IACuB,SAAS,CAAC,IAAI,SAAgB;yCA7B/C,sBAAsB;2CAAtB,sBAAsB;CA8BlC"}
|
@@ -1,11 +1,27 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "
|
3
|
-
import * as i2 from "./eui-input-group
|
4
|
-
import * as i3 from "./eui-input-group-addon
|
5
|
-
import * as i4 from "
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "./eui-input-group.component";
|
4
|
+
import * as i3 from "./eui-input-group-addon.component";
|
5
|
+
import * as i4 from "./eui-input-group-addon-item.component";
|
6
|
+
/**
|
7
|
+
* @description
|
8
|
+
* Angular module that provides input group components for the EUI framework.
|
9
|
+
* Includes the main input group component and its add-on components.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* // In your app.module.ts or feature module:
|
13
|
+
* import { EuiInputGroupModule } from '@eui/input-group';
|
14
|
+
*
|
15
|
+
* @NgModule({
|
16
|
+
* imports: [
|
17
|
+
* EuiInputGroupModule
|
18
|
+
* ]
|
19
|
+
* })
|
20
|
+
* export class YourModule { }
|
21
|
+
*/
|
6
22
|
export declare class EuiInputGroupModule {
|
7
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputGroupModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputGroupModule, [typeof i1.
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputGroupModule, never, [typeof i1.CommonModule, typeof i2.EuiInputGroupComponent, typeof i3.EuiInputGroupAddOnComponent, typeof i4.EuiInputGroupAddOnItemComponent], [typeof i2.EuiInputGroupComponent, typeof i3.EuiInputGroupAddOnComponent, typeof i4.EuiInputGroupAddOnItemComponent]>;
|
9
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<EuiInputGroupModule>;
|
10
26
|
}
|
11
27
|
//# sourceMappingURL=eui-input-group.module.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-group.module.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group.module.ts"],"names":[],"mappings":";;;;;AAMA,qBAaa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
|
1
|
+
{"version":3,"file":"eui-input-group.module.d.ts","sourceRoot":"","sources":["../../eui-input-group/eui-input-group.module.ts"],"names":[],"mappings":";;;;;AAMA;;;;;;;;;;;;;;;GAeG;AACH,qBAaa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
|
@@ -25,6 +25,44 @@ export interface CleaveInstance extends Cleave {
|
|
25
25
|
onCutListener?: (event?: Event) => void;
|
26
26
|
onCopyListener?: (event?: Event) => void;
|
27
27
|
}
|
28
|
+
/**
|
29
|
+
* Input number component that allows the user to enter a number. It supports number
|
30
|
+
* formatting and validation. It uses Cleave.js to format the number. It depends on
|
31
|
+
* the {@link LocaleService} to get the current locale and format the number accordingly.
|
32
|
+
*
|
33
|
+
* It supports the following attributes:
|
34
|
+
* - {@link min}: The minimum number can be entered. Blocks user's input if not in range.
|
35
|
+
* - {@link max}: The maximum number can be entered. Blocks user's input if not in range.
|
36
|
+
* - {@link leadingZero}: Adds leading zero to a number. Formatting will not work.
|
37
|
+
* - {@link isInvalid}: Sets the invalid state of the input element.
|
38
|
+
* - {@link fractionDigits}: Determines how many digits to show after the decimal point.
|
39
|
+
* - {@link digits}: Determines how many digits to show before the decimal point.
|
40
|
+
* - {@link fillFraction}: Fills the decimal part with zeros in case it's less than the fractionDigits.
|
41
|
+
* - {@link roundUp}: Rounds a number with more than two decimals UP.
|
42
|
+
* - {@link noFormat}: Disables the number formatting. It will be treated as a plain number.
|
43
|
+
* - {@link value}: The value of the input element.
|
44
|
+
* - {@link placeholder}: The placeholder value of the input element.
|
45
|
+
* - {@link euiClearable}: Adds a clear button to the input element.
|
46
|
+
* - {@link euiLoading}: Adds a loading spinner to the input element.
|
47
|
+
* - {@link readonly}: Disables the input element.
|
48
|
+
* - {@link disabled}: Disables the input element.
|
49
|
+
* - {@link euiDanger}: Sets the invalid state of the input element.
|
50
|
+
* - {@link euiSuccess}: Sets the success state of the input element.
|
51
|
+
* - {@link euiWarning}: Sets the warning state of the input element.
|
52
|
+
* - {@link euiInfo}: Sets the info state of the input element.
|
53
|
+
* - {@link euiPrimary}: Sets the primary state of the input element.
|
54
|
+
* - {@link euiSecondary}: Sets the secondary state of the input element.
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* ```html
|
58
|
+
* <input euiInputNumber
|
59
|
+
* min="0"
|
60
|
+
* max="100"
|
61
|
+
* leadingZero="3"
|
62
|
+
* value="100.00"
|
63
|
+
* placeholder="100.00" />
|
64
|
+
* ```
|
65
|
+
*/
|
28
66
|
export declare class EuiInputNumberComponent extends InputDirective implements OnInit, OnDestroy, DoCheck, OnChanges {
|
29
67
|
protected _elementRef: ElementRef;
|
30
68
|
protected _renderer: Renderer2;
|
@@ -40,32 +78,53 @@ export declare class EuiInputNumberComponent extends InputDirective implements O
|
|
40
78
|
* The maximum number can be entered. Blocks user's input if not in range.
|
41
79
|
*/
|
42
80
|
max: number;
|
43
|
-
/**
|
81
|
+
/**
|
82
|
+
* Adds leading zero to a number. Formatting will not work.
|
44
83
|
* e.g. with leadingZero=3 input number 5 => 005
|
45
84
|
*/
|
46
85
|
leadingZero: number;
|
47
86
|
get isInvalid(): boolean;
|
48
87
|
set isInvalid(state: BooleanInput);
|
88
|
+
/**
|
89
|
+
* CSS classes to be added to the host element.
|
90
|
+
*/
|
49
91
|
get cssClasses(): string;
|
50
|
-
/**
|
92
|
+
/**
|
93
|
+
* determines how many digits to show after the decimal point
|
94
|
+
*/
|
51
95
|
get fractionDigits(): number;
|
52
96
|
set fractionDigits(value: NumberInput);
|
53
|
-
/**
|
97
|
+
/**
|
98
|
+
* determines how many digits to show before the decimal point
|
99
|
+
*/
|
54
100
|
digits: number;
|
101
|
+
/**
|
102
|
+
* fills the decimal part with zeros in case it's less than the fractionDigits
|
103
|
+
*/
|
55
104
|
fillFraction: boolean;
|
56
|
-
/**
|
105
|
+
/**
|
106
|
+
* rounds a number with more than two decimals UP
|
107
|
+
*/
|
57
108
|
roundUp: number;
|
58
109
|
protected _isInvalid: boolean;
|
59
110
|
/**
|
60
|
-
*
|
111
|
+
* Disables the number formatting. It will be treated as a plain number.
|
112
|
+
* Will do a thousand grouping of number.
|
61
113
|
*/
|
62
114
|
noFormat: boolean;
|
63
115
|
protected type: string;
|
116
|
+
/**
|
117
|
+
* The value of the input element.
|
118
|
+
*/
|
64
119
|
value: string;
|
65
120
|
onChangeCallback: <T>(_: T) => void;
|
121
|
+
/**
|
122
|
+
* holds instance of cleave.js
|
123
|
+
*/
|
66
124
|
cleaveInstance: CleaveInstance;
|
67
|
-
/**
|
68
|
-
|
125
|
+
/**
|
126
|
+
* holds instance of cleave options for the Cleave instance
|
127
|
+
*/
|
69
128
|
private options;
|
70
129
|
private _fractionDigits;
|
71
130
|
constructor(_elementRef: ElementRef, _renderer: Renderer2, localeService: LocaleService, locale_id: string, injector: Injector, document: Document, platformId: unknown);
|
@@ -78,6 +137,12 @@ export declare class EuiInputNumberComponent extends InputDirective implements O
|
|
78
137
|
onPaste(event: ClipboardEvent): void;
|
79
138
|
protected onKeyDown(e: KeyboardEvent): void;
|
80
139
|
protected onFocusout(): void;
|
140
|
+
/**
|
141
|
+
* @Override setInvalid setInvalidAttribute of InputDirective
|
142
|
+
* Sets the invalid state of the input element.
|
143
|
+
*
|
144
|
+
* @param state
|
145
|
+
*/
|
81
146
|
protected setInvalid(state?: BooleanInput): void;
|
82
147
|
/**
|
83
148
|
* @Override setPlaceholder setPlaceholderAttribute of InputDirective
|
@@ -157,11 +222,10 @@ export declare class EuiInputNumberComponent extends InputDirective implements O
|
|
157
222
|
* Checks whether a value is defined or not
|
158
223
|
*
|
159
224
|
* @param value
|
160
|
-
* @private
|
161
225
|
*/
|
162
226
|
private isDefined;
|
163
227
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputNumberComponent, [null, null, { optional: true; }, null, null, null, null]>;
|
164
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputNumberComponent, "input[euiInputNumber]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "leadingZero": { "alias": "leadingZero"; "required": false; }; "isInvalid": { "alias": "isInvalid"; "required": false; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "fillFraction": { "alias": "fillFraction"; "required": false; }; "roundUp": { "alias": "roundUp"; "required": false; }; "noFormat": { "alias": "noFormat"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never,
|
228
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputNumberComponent, "input[euiInputNumber]", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "leadingZero": { "alias": "leadingZero"; "required": false; }; "isInvalid": { "alias": "isInvalid"; "required": false; }; "fractionDigits": { "alias": "fractionDigits"; "required": false; }; "digits": { "alias": "digits"; "required": false; }; "fillFraction": { "alias": "fillFraction"; "required": false; }; "roundUp": { "alias": "roundUp"; "required": false; }; "noFormat": { "alias": "noFormat"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.EuiClearableDirective; inputs: { "euiClearable": "euiClearable"; "readonly": "readonly"; "disabled": "disabled"; }; outputs: {}; }, { directive: typeof i1.EuiLoadingDirective; inputs: { "euiLoading": "euiLoading"; "readonly": "readonly"; }; outputs: {}; }]>;
|
165
229
|
static ngAcceptInputType_min: unknown;
|
166
230
|
static ngAcceptInputType_max: unknown;
|
167
231
|
static ngAcceptInputType_leadingZero: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-number.component.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,OAAO,EACP,UAAU,EAIV,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,aAAa,EACb,QAAQ,EAIX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAe,MAAM,WAAW,CAAC;AACvD,OAAO,EAA+C,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAE/G,OAAO,MAAM,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;;;AAKxD,MAAM,WAAW,cAAe,SAAQ,MAAM;IAC1C,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,IAAI,CAAC;IAClC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,4BAA4B,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1C,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAChC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAChC,OAAO,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAClC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACpC,gBAAgB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC3C,iBAAiB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC5C,eAAe,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;CAC5C;
|
1
|
+
{"version":3,"file":"eui-input-number.component.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAKH,OAAO,EACP,UAAU,EAIV,SAAS,EACT,SAAS,EACT,MAAM,EACN,SAAS,EACT,aAAa,EACb,QAAQ,EAIX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,aAAa,EAAe,MAAM,WAAW,CAAC;AACvD,OAAO,EAA+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R,OAAQ;qCAAR,OAAQ;2CAAtqrO,OAAQ;sCAAsprO,OAAQ;uCAAtqrO,OAAQ;CADj1b"}
|
@@ -1,10 +1,25 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "
|
3
|
-
import * as i2 from "./eui-number
|
4
|
-
import * as i3 from "
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "./eui-input-number.component";
|
4
|
+
import * as i3 from "./eui-number-control.directive";
|
5
|
+
/**
|
6
|
+
* @description
|
7
|
+
* Module for the {@link EuiInputNumberComponent} and {@link EuiInputNumberDirective}.
|
8
|
+
*
|
9
|
+
* @example
|
10
|
+
* ```typescript
|
11
|
+
* import { EuiInputNumberModule } from '@eui/components/eui-input-number';
|
12
|
+
*
|
13
|
+
* @NgModule({
|
14
|
+
* imports: [EuiInputNumberModule]
|
15
|
+
* })
|
16
|
+
* export class AppModule {}
|
17
|
+
* ```
|
18
|
+
* @deprecated Use {@link `EuiInputNumberComponent`} and or {@link `EuiInputNumberDirective`} instead.
|
19
|
+
*/
|
5
20
|
export declare class EuiInputNumberModule {
|
6
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputNumberModule, never>;
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputNumberModule, [typeof i1.
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputNumberModule, never, [typeof i1.CommonModule, typeof i2.EuiInputNumberComponent, typeof i3.EuiInputNumberDirective], [typeof i2.EuiInputNumberComponent, typeof i3.EuiInputNumberDirective]>;
|
8
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<EuiInputNumberModule>;
|
9
24
|
}
|
10
25
|
//# sourceMappingURL=eui-input-number.module.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-number.module.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.module.ts"],"names":[],"mappings":";;;;AAKA,
|
1
|
+
{"version":3,"file":"eui-input-number.module.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-input-number.module.ts"],"names":[],"mappings":";;;;AAKA;;;;;;;;;;;;;;GAcG;AACH,qBAIa,oBAAoB;yCAApB,oBAAoB;0CAApB,oBAAoB;0CAApB,oBAAoB;CAAG"}
|
@@ -2,12 +2,26 @@ import { ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
3
3
|
import { EuiInputNumberComponent } from './eui-input-number.component';
|
4
4
|
import * as i0 from "@angular/core";
|
5
|
+
/**
|
6
|
+
* @description
|
7
|
+
* Directive for the {@link EuiInputNumberComponent}. This directive is used to
|
8
|
+
* handle the value changes of the input element and update the value of the
|
9
|
+
* directive and the form control. It also implements the ControlValueAccessor
|
10
|
+
* interface to allow the directive to be used with reactive forms.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <input euiInputNumber formControlName="number" />
|
15
|
+
* ```
|
16
|
+
*/
|
5
17
|
export declare class EuiInputNumberDirective implements ControlValueAccessor, OnInit {
|
6
18
|
private elementRef;
|
7
19
|
private euiNumberComponent;
|
8
20
|
private document;
|
9
21
|
private platformId;
|
10
|
-
/**
|
22
|
+
/**
|
23
|
+
* holds a copy of the value
|
24
|
+
*/
|
11
25
|
private value;
|
12
26
|
private onChange;
|
13
27
|
constructor(elementRef: ElementRef, euiNumberComponent: EuiInputNumberComponent, document: Document, platformId: unknown);
|
@@ -15,10 +29,21 @@ export declare class EuiInputNumberDirective implements ControlValueAccessor, On
|
|
15
29
|
writeValue(obj: any): void;
|
16
30
|
registerOnChange(fn: any): void;
|
17
31
|
registerOnTouched(fn: any): void;
|
32
|
+
/**
|
33
|
+
* Set the disabled state of the input element.
|
34
|
+
*
|
35
|
+
* @param isDisabled
|
36
|
+
*/
|
18
37
|
setDisabledState(isDisabled: boolean): void;
|
19
38
|
private onTouched;
|
39
|
+
/**
|
40
|
+
* Handle the value changes of the input element and update the value of the
|
41
|
+
* directive and the form control.
|
42
|
+
*
|
43
|
+
* @param event
|
44
|
+
*/
|
20
45
|
private valueChanges;
|
21
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputNumberDirective, [null, { optional: true; }, null, null]>;
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<EuiInputNumberDirective, "input[euiInputNumber][formControl],input[euiInputNumber][formControlName],input[euiInputNumber][ngModel]", never, {}, {}, never, never,
|
47
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<EuiInputNumberDirective, "input[euiInputNumber][formControl],input[euiInputNumber][formControlName],input[euiInputNumber][ngModel]", never, {}, {}, never, never, true, never>;
|
23
48
|
}
|
24
49
|
//# sourceMappingURL=eui-number-control.directive.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-number-control.directive.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-number-control.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAsB,MAAM,EAAyB,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAkB,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;AAIvF,qBAWa,uBAAwB,YAAW,oBAAoB,EAAE,MAAM;
|
1
|
+
{"version":3,"file":"eui-number-control.directive.d.ts","sourceRoot":"","sources":["../../eui-input-number/eui-number-control.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAsB,MAAM,EAAyB,MAAM,eAAe,CAAC;AACzG,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAkB,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;;AAIvF;;;;;;;;;;;GAWG;AACH,qBAWa,uBAAwB,YAAW,oBAAoB,EAAE,MAAM;IAUpE,OAAO,CAAC,UAAU;IACN,OAAO,CAAC,kBAAkB;IACpB,OAAO,CAAC,QAAQ;IACb,OAAO,CAAC,UAAU;IAZ3C;;OAEG;IACH,OAAO,CAAC,KAAK,CAAS;IAGtB,OAAO,CAAC,QAAQ,CAAmB;gBAGvB,UAAU,EAAE,UAAU,EACV,kBAAkB,EAAE,uBAAuB,EACrC,QAAQ,EAAE,QAAQ,EACf,UAAU,EAAE,OAAO;IAGpD,QAAQ,IAAI,IAAI;IAMhB,UAAU,CAAC,GAAG,EAAE,GAAG,GAAG,IAAI;IA2B1B,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAS/B,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC;;;;OAIG;IACH,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAI3C,OAAO,CAAC,SAAS;IAIjB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;yCAjFX,uBAAuB;2CAAvB,uBAAuB;CA0FnC"}
|
@@ -4,36 +4,131 @@ import { InputDirective } from '@eui/components/shared';
|
|
4
4
|
import { BooleanInput } from '@angular/cdk/coercion';
|
5
5
|
import { ChangeEvent } from 'cleave.js/react/props';
|
6
6
|
import * as i0 from "@angular/core";
|
7
|
+
/**
|
8
|
+
* A radio input component that implements form control functionality and custom styling.
|
9
|
+
* This component extends InputDirective and implements form control interfaces for seamless
|
10
|
+
* integration with Angular's form controls.
|
11
|
+
*
|
12
|
+
* @example
|
13
|
+
* ```html
|
14
|
+
* <input euiInputRadio
|
15
|
+
* [(ngModel)]="selectedValue"
|
16
|
+
* [value]="optionValue"
|
17
|
+
* [isInvalid]="false"
|
18
|
+
* [readonly]="false">
|
19
|
+
* ```
|
20
|
+
*/
|
7
21
|
export declare class EuiInputRadioComponent extends InputDirective implements OnInit, DoCheck, OnChanges, ControlValueAccessor {
|
8
22
|
protected ngControl: NgControl;
|
9
23
|
protected _elementRef: ElementRef<HTMLInputElement>;
|
10
24
|
protected _renderer: Renderer2;
|
25
|
+
/**
|
26
|
+
* Gets or sets whether the radio input is in an invalid state.
|
27
|
+
* This can be set manually or will be automatically set when used with form validation.
|
28
|
+
*
|
29
|
+
* @property {boolean} isInvalid - The invalid state of the radio input
|
30
|
+
*/
|
11
31
|
get isInvalid(): boolean;
|
12
32
|
set isInvalid(state: BooleanInput);
|
13
33
|
protected _isInvalid: boolean;
|
34
|
+
/**
|
35
|
+
* Gets the CSS classes for the radio input component.
|
36
|
+
* Combines base classes with invalid state modifier if applicable.
|
37
|
+
*
|
38
|
+
* @returns {string} Space-separated list of CSS classes
|
39
|
+
*/
|
14
40
|
get class(): string;
|
15
41
|
protected type: string;
|
42
|
+
/**
|
43
|
+
* Gets or sets the default checked state of the radio input.
|
44
|
+
* This is different from the current checked state and represents the initial value.
|
45
|
+
*
|
46
|
+
* @property {any} defaultChecked - The default checked state
|
47
|
+
*/
|
16
48
|
get defaultChecked(): any;
|
17
49
|
set defaultChecked(value: BooleanInput);
|
18
50
|
protected _defaultChecked: boolean;
|
51
|
+
/**
|
52
|
+
* Gets whether the radio input is currently selected.
|
53
|
+
*
|
54
|
+
* @returns {boolean} True if the radio input is selected, false otherwise
|
55
|
+
*/
|
19
56
|
get selected(): boolean;
|
57
|
+
/**
|
58
|
+
* Gets or sets the value of the radio input.
|
59
|
+
* The value can be of any type and will be used when the radio is selected in a form group.
|
60
|
+
*
|
61
|
+
* @property {any} value - The value associated with this radio input
|
62
|
+
*/
|
20
63
|
get value(): any;
|
21
64
|
set value(value: any);
|
22
65
|
private _value;
|
23
66
|
constructor(ngControl: NgControl, _elementRef: ElementRef<HTMLInputElement>, _renderer: Renderer2, injector: Injector);
|
67
|
+
/**
|
68
|
+
* Initializes the component.
|
69
|
+
* Sets up form control validation status subscription and handles initial state.
|
70
|
+
*/
|
24
71
|
ngOnInit(): void;
|
72
|
+
/**
|
73
|
+
* Performs change detection and updates invalid state based on form control status.
|
74
|
+
*/
|
25
75
|
ngDoCheck(): void;
|
76
|
+
/**
|
77
|
+
* Handles changes to component inputs. Specifically handles changes to
|
78
|
+
* readonly and invalid states.
|
79
|
+
*
|
80
|
+
* @param {SimpleChanges} changes - Object containing changed properties
|
81
|
+
*/
|
26
82
|
ngOnChanges(changes: SimpleChanges): void;
|
83
|
+
/**
|
84
|
+
* Implements ControlValueAccessor.writeValue.
|
85
|
+
* Updates the checked state based on the form control value.
|
86
|
+
*
|
87
|
+
* @param {string} obj - The value to write
|
88
|
+
*/
|
27
89
|
writeValue(obj: string): void;
|
90
|
+
/**
|
91
|
+
* Registers a callback function that is called when the control's value changes.
|
92
|
+
*
|
93
|
+
* @param {Function} fn - The callback function
|
94
|
+
*/
|
28
95
|
registerOnChange(fn: any): void;
|
96
|
+
/**
|
97
|
+
* Registers a callback function that is called when the control is touched.
|
98
|
+
*
|
99
|
+
* @param {Function} fn - The callback function
|
100
|
+
*/
|
29
101
|
registerOnTouched(fn: any): void;
|
102
|
+
/**
|
103
|
+
* Sets the disabled state of the radio input.
|
104
|
+
*
|
105
|
+
* @param {boolean} isDisabled - Whether the radio input should be disabled
|
106
|
+
*/
|
30
107
|
setDisabledState?(isDisabled: boolean): void;
|
108
|
+
/**
|
109
|
+
* Handles change events on the radio input.
|
110
|
+
* Updates the model value when the radio selection changes.
|
111
|
+
*
|
112
|
+
* @param {ChangeEvent<any>} event - The change event
|
113
|
+
*/
|
31
114
|
protected onCheckedChanged(event: ChangeEvent<any>): void;
|
115
|
+
/**
|
116
|
+
* Handles space key press events. Prevents selection changes when the input
|
117
|
+
* is readonly.
|
118
|
+
*
|
119
|
+
* @param {KeyboardEvent} event - The keyboard event
|
120
|
+
*/
|
32
121
|
protected onSpacePressed(event: KeyboardEvent): void;
|
122
|
+
/**
|
123
|
+
* Sets the invalid state of the radio input.
|
124
|
+
* Updates both the internal state and the visual appearance.
|
125
|
+
*
|
126
|
+
* @param {boolean} state - The invalid state to set
|
127
|
+
*/
|
33
128
|
protected setInvalid(state: any): void;
|
34
129
|
protected onChange: (_: any) => void;
|
35
130
|
protected onTouched: (_: any) => void;
|
36
131
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputRadioComponent, [{ optional: true; self: true; }, null, null, null]>;
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputRadioComponent, "input[euiInputRadio]", never, { "isInvalid": { "alias": "isInvalid"; "required": false; }; "defaultChecked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never,
|
132
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EuiInputRadioComponent, "input[euiInputRadio]", never, { "isInvalid": { "alias": "isInvalid"; "required": false; }; "defaultChecked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
38
133
|
}
|
39
134
|
//# sourceMappingURL=eui-input-radio.component.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-radio.component.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,UAAU,EAGV,SAAS,EAET,SAAS,EAET,aAAa,EACb,MAAM,EAGN,QAAQ,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAyB,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;;AAEpD,qBAOa,sBAAuB,SAAQ,cAAe,YAAW,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,oBAAoB;
|
1
|
+
{"version":3,"file":"eui-input-radio.component.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,UAAU,EAGV,SAAS,EAET,SAAS,EAET,aAAa,EACb,MAAM,EAGN,QAAQ,EACX,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,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AI;IAoBzC;;;;;OAKG;IACH,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAK7B;;;;OAIG;IAGH,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B;;;;OAIG;IAGH,iBAAiB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAIhC;;;;OAIG;IACH,gBAAgB,CAAC,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAI5C;;;;;OAKG;IAIH,SAAS,CAAC,gBAAgB,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,CAAC,GAAG,IAAI;IAKzD;;;;;OAKG;IAEH,SAAS,CAAC,cAAc,CAAC,KAAK,EAAE,aAAa,GAAG,IAAI;IAOpD;;;;;OAKG;IACH,SAAS,CAAC,UAAU,CAAC,KAAK,KAAA,GAAG,IAAI;IASjC,SAAS,CAAC,QAAQ,cAAQ,IAAI,CAE5B;IAGF,SAAS,CAAC,SAAS,cAAQ,IAAI,CAE7B;yCAvPO,sBAAsB;2CAAtB,sBAAsB;CAwPlC"}
|
@@ -1,9 +1,26 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "
|
3
|
-
import * as i2 from "
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "./eui-input-radio.component";
|
4
|
+
/**
|
5
|
+
* Angular module that provides radio input functionality.
|
6
|
+
*
|
7
|
+
* @example
|
8
|
+
* ```typescript
|
9
|
+
* import { EuiInputRadioModule } from '@eui/components/input-radio';
|
10
|
+
*
|
11
|
+
* @NgModule({
|
12
|
+
* imports: [
|
13
|
+
* EuiInputRadioModule
|
14
|
+
* ]
|
15
|
+
* })
|
16
|
+
* export class YourModule { }
|
17
|
+
* ```
|
18
|
+
*
|
19
|
+
* @deprecated Use {@link `EuiInputRadioComponent`} instead.
|
20
|
+
*/
|
4
21
|
export declare class EuiInputRadioModule {
|
5
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<EuiInputRadioModule, never>;
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputRadioModule, [typeof i1.
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EuiInputRadioModule, never, [typeof i1.CommonModule, typeof i2.EuiInputRadioComponent], [typeof i2.EuiInputRadioComponent]>;
|
7
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<EuiInputRadioModule>;
|
8
25
|
}
|
9
26
|
//# sourceMappingURL=eui-input-radio.module.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eui-input-radio.module.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.module.ts"],"names":[],"mappings":";;;AAIA,
|
1
|
+
{"version":3,"file":"eui-input-radio.module.d.ts","sourceRoot":"","sources":["../../eui-input-radio/eui-input-radio.module.ts"],"names":[],"mappings":";;;AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAIa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAG"}
|