@@ -6,7 +6,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
66import { noop , Subject } from 'rxjs' ;
77import { startWith , takeUntil } from 'rxjs/operators' ;
88import { mkenum } from '../../core/utils' ;
9- import { IChangeRadioEventArgs , IgxRadioComponent , RadioLabelPosition } from '../../radio/radio.component' ;
9+ import { IChangeRadioEventArgs , IgxRadioComponent } from '../../radio/radio.component' ;
1010import { IgxRippleModule } from '../ripple/ripple.directive' ;
1111
1212/**
@@ -50,7 +50,6 @@ let nextId = 0;
5050} )
5151export class IgxRadioGroupDirective implements AfterContentInit , ControlValueAccessor , OnDestroy {
5252 private static ngAcceptInputType_required : boolean | '' ;
53- private static ngAcceptInputType_disabled : boolean | '' ;
5453 /**
5554 * Returns reference to the child radio buttons.
5655 *
@@ -119,49 +118,6 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
119118 this . _setRadioButtonsRequired ( ) ;
120119 }
121120
122- /**
123- * @deprecated in version 12.2.0
124- *
125- * An input property that allows you to disable the radio group. By default it's false.
126- *
127- * @example
128- * ```html
129- * <igx-radio-group disabled></igx-radio-group>
130- * ```
131- */
132- @Input ( )
133- public get disabled ( ) : boolean {
134- return this . _disabled ;
135- }
136- public set disabled ( value : boolean ) {
137- this . _disabled = ( value as any ) === '' || value ;
138- this . setDisabledState ( value ) ;
139- }
140-
141- /**
142- * @deprecated in version 12.2.0
143- *
144- * Sets/gets the position of the `label` in the child radio buttons.
145- *
146- * @remarks
147- * If not set, `labelPosition` will have value `"after"`.
148- *
149- * @example
150- * ```html
151- * <igx-radio-group labelPosition = "before"></igx-radio-group>
152- * ```
153- */
154- @Input ( )
155- public get labelPosition ( ) : RadioLabelPosition | string {
156- return this . _labelPosition ;
157- }
158- public set labelPosition ( newValue : RadioLabelPosition | string ) {
159- if ( this . _labelPosition !== newValue ) {
160- this . _labelPosition = newValue === RadioLabelPosition . BEFORE ? RadioLabelPosition . BEFORE : RadioLabelPosition . AFTER ;
161- this . _setRadioButtonLabelPosition ( ) ;
162- }
163- }
164-
165121 /**
166122 * Sets/gets the selected child radio button.
167123 *
@@ -271,16 +227,6 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
271227 * @internal
272228 */
273229 private _isInitialized = false ;
274- /**
275- * @hidden
276- * @internal
277- */
278- private _labelPosition : RadioLabelPosition | string = 'after' ;
279- /**
280- * @hidden
281- * @internal
282- */
283- private _disabled = false ;
284230 /**
285231 * @hidden
286232 * @internal
@@ -338,18 +284,6 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
338284 this . _onChangeCallback = fn ;
339285 }
340286
341- /**
342- * @hidden
343- * @internal
344- */
345- public setDisabledState ( isDisabled : boolean ) {
346- if ( this . radioButtons ) {
347- this . radioButtons . forEach ( ( button ) => {
348- button . setDisabledState ( isDisabled ) ;
349- } ) ;
350- }
351- }
352-
353287 /**
354288 * Registers a function called when the control is touched.
355289 *
@@ -383,14 +317,6 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
383317 this . radioButtons . forEach ( ( button ) => {
384318 Object . assign ( button , props ) ;
385319
386- if ( button . disabled === undefined ) {
387- button . disabled = this . _disabled ;
388- }
389-
390- if ( button . labelPosition === undefined ) {
391- button . labelPosition = this . _labelPosition ;
392- }
393-
394320 if ( button . value === this . _value ) {
395321 button . checked = true ;
396322 this . _selected = button ;
@@ -468,18 +394,6 @@ export class IgxRadioGroupDirective implements AfterContentInit, ControlValueAcc
468394 }
469395 }
470396
471- /**
472- * @hidden
473- * @internal
474- */
475- private _setRadioButtonLabelPosition ( ) {
476- if ( this . radioButtons ) {
477- this . radioButtons . forEach ( ( button ) => {
478- button . labelPosition = this . _labelPosition ;
479- } ) ;
480- }
481- }
482-
483397 /**
484398 * @hidden
485399 * @internal
0 commit comments