Skip to content

Commit 8b3d61d

Browse files
committed
fix(input-group): fix quotes
1 parent b1c713b commit 8b3d61d

File tree

1 file changed

+66
-66
lines changed

1 file changed

+66
-66
lines changed

projects/igniteui-angular/src/lib/input-group/input-group.component.ts

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommonModule, DOCUMENT } from "@angular/common";
1+
import { CommonModule, DOCUMENT } from '@angular/common';
22
import {
33
Component,
44
ContentChild,
@@ -12,32 +12,32 @@ import {
1212
Inject,
1313
Optional,
1414
AfterContentInit,
15-
} from "@angular/core";
16-
import { IgxHintDirective } from "../directives/hint/hint.directive";
15+
} from '@angular/core';
16+
import { IgxHintDirective } from '../directives/hint/hint.directive';
1717
import {
1818
IgxInputDirective,
1919
IgxInputState,
20-
} from "../directives/input/input.directive";
21-
import { IgxLabelDirective } from "../directives/label/label.directive";
22-
import { IgxPrefixModule } from "../directives/prefix/prefix.directive";
23-
import { IgxSuffixModule } from "../directives/suffix/suffix.directive";
20+
} from '../directives/input/input.directive';
21+
import { IgxLabelDirective } from '../directives/label/label.directive';
22+
import { IgxPrefixModule } from '../directives/prefix/prefix.directive';
23+
import { IgxSuffixModule } from '../directives/suffix/suffix.directive';
2424
import {
2525
DisplayDensity,
2626
IDisplayDensityOptions,
2727
DisplayDensityToken,
2828
DisplayDensityBase,
29-
} from "../core/displayDensity";
30-
import { IgxInputGroupBase } from "./input-group.common";
31-
import { DeprecateProperty } from "../core/deprecateDecorators";
32-
import { IgxInputGroupType, IGX_INPUT_GROUP_TYPE } from "./inputGroupType";
29+
} from '../core/displayDensity';
30+
import { IgxInputGroupBase } from './input-group.common';
31+
import { DeprecateProperty } from '../core/deprecateDecorators';
32+
import { IgxInputGroupType, IGX_INPUT_GROUP_TYPE } from './inputGroupType';
3333

3434
let NEXT_ID = 0;
3535

3636
enum IgxInputGroupThemeEnum {
37-
"material",
38-
"fluent",
39-
"bootstrap",
40-
"indigo-design",
37+
'material',
38+
'fluent',
39+
'bootstrap',
40+
'indigo-design',
4141
}
4242

4343
/**
@@ -46,8 +46,8 @@ enum IgxInputGroupThemeEnum {
4646
export type IgxInputGroupTheme = keyof typeof IgxInputGroupThemeEnum;
4747

4848
@Component({
49-
selector: "igx-input-group",
50-
templateUrl: "input-group.component.html",
49+
selector: 'igx-input-group',
50+
templateUrl: 'input-group.component.html',
5151
providers: [
5252
{ provide: IgxInputGroupBase, useExisting: IgxInputGroupComponent },
5353
],
@@ -57,51 +57,51 @@ export class IgxInputGroupComponent
5757
implements IgxInputGroupBase, AfterContentInit {
5858
private _type: IgxInputGroupType = null;
5959
private _filled = false;
60-
private _variant: IgxInputGroupTheme = "material";
60+
private _variant: IgxInputGroupTheme = 'material';
6161

6262
/**
6363
* An @Input property that sets the value of `id` attribute. If not provided it will be automatically generated.
6464
* ```html
65-
* <igx-input-group [id]="'igx-input-group-55'"></igx-input-group>
65+
* <igx-input-group [id]=''igx-input-group-55''></igx-input-group>
6666
* ```
6767
*/
68-
@HostBinding("attr.id")
68+
@HostBinding('attr.id')
6969
@Input()
7070
public id = `igx-input-group-${NEXT_ID++}`;
7171

7272
/**
7373
* Property that enables/disables the autogenerated class of the `IgxInputGroupComponent`.
7474
* By default applied the class is applied.
7575
* ```typescript
76-
* @ViewChild("MyInputGroup")
76+
* @ViewChild('MyInputGroup')
7777
* public inputGroup: IgxInputGroupComponent;
7878
* ngAfterViewInit(){
7979
* this.inputGroup.defaultClass = false;
8080
* ```
8181
* }
8282
*/
83-
@HostBinding("class.igx-input-group")
83+
@HostBinding('class.igx-input-group')
8484
public defaultClass = true;
8585

8686
/** @hidden */
87-
@HostBinding("class.igx-input-group--placeholder")
87+
@HostBinding('class.igx-input-group--placeholder')
8888
public hasPlaceholder = false;
8989

9090
/** @hidden */
91-
@HostBinding("class.igx-input-group--required")
91+
@HostBinding('class.igx-input-group--required')
9292
public isRequired = false;
9393

9494
/** @hidden */
95-
@HostBinding("class.igx-input-group--focused")
95+
@HostBinding('class.igx-input-group--focused')
9696
public isFocused = false;
9797

9898
/**
9999
* An @Input property that disables the `IgxInputGroupComponent`.
100100
* ```html
101-
* <igx-input-group [disabled]="'true'"></igx-input-group>
101+
* <igx-input-group [disabled]=''true''></igx-input-group>
102102
* ```
103103
*/
104-
@HostBinding("class.igx-input-group--disabled")
104+
@HostBinding('class.igx-input-group--disabled')
105105
@Input()
106106
public disabled = false;
107107

@@ -111,48 +111,48 @@ export class IgxInputGroupComponent
111111
*
112112
* @example
113113
* ```html
114-
* <igx-input-group [suppressInputAutofocus]="true"></igx-input-group>
114+
* <igx-input-group [suppressInputAutofocus]='true'></igx-input-group>
115115
* ```
116116
*/
117117
@Input()
118118
public suppressInputAutofocus = false;
119119

120120
/** @hidden */
121-
@HostBinding("class.igx-input-group--valid")
121+
@HostBinding('class.igx-input-group--valid')
122122
public get validClass(): boolean {
123123
return this.input.valid === IgxInputState.VALID;
124124
}
125125

126126
/** @hidden */
127-
@HostBinding("class.igx-input-group--invalid")
127+
@HostBinding('class.igx-input-group--invalid')
128128
public get invalidClass(): boolean {
129129
return this.input.valid === IgxInputState.INVALID;
130130
}
131131

132132
/** @hidden */
133-
@HostBinding("class.igx-input-group--warning")
133+
@HostBinding('class.igx-input-group--warning')
134134
public hasWarning = false;
135135

136136
/** @hidden */
137-
@HostBinding("class.igx-input-group--filled")
137+
@HostBinding('class.igx-input-group--filled')
138138
public get isFilled() {
139139
return this._filled || (this.input && this.input.value);
140140
}
141141

142142
/** @hidden */
143-
@HostBinding("class.igx-input-group--cosy")
143+
@HostBinding('class.igx-input-group--cosy')
144144
public get isDisplayDensityCosy() {
145145
return this.displayDensity === DisplayDensity.cosy;
146146
}
147147

148148
/** @hidden */
149-
@HostBinding("class.igx-input-group--comfortable")
149+
@HostBinding('class.igx-input-group--comfortable')
150150
public get isDisplayDensityComfortable() {
151151
return this.displayDensity === DisplayDensity.comfortable;
152152
}
153153

154154
/** @hidden */
155-
@HostBinding("class.igx-input-group--compact")
155+
@HostBinding('class.igx-input-group--compact')
156156
public get isDisplayDensityCompact() {
157157
return this.displayDensity === DisplayDensity.compact;
158158
}
@@ -166,7 +166,7 @@ export class IgxInputGroupComponent
166166
protected input: IgxInputDirective;
167167

168168
/** @hidden */
169-
@HostListener("click", ["$event"])
169+
@HostListener('click', ['$event'])
170170
public onClick(event: MouseEvent) {
171171
if (
172172
!this.isFocused &&
@@ -178,7 +178,7 @@ export class IgxInputGroupComponent
178178
}
179179

180180
/** @hidden */
181-
@HostListener("pointerdown", ["$event"])
181+
@HostListener('pointerdown', ['$event'])
182182
public onPointerDown(event: PointerEvent) {
183183
if (this.isFocused && event.target !== this.input.nativeElement) {
184184
event.preventDefault();
@@ -193,10 +193,10 @@ export class IgxInputGroupComponent
193193
* An @Input property that sets how the input will be styled.
194194
* Allowed values of type IgxInputGroupType.
195195
* ```html
196-
* <igx-input-group [type]="'search'">
196+
* <igx-input-group [type]=''search''>
197197
* ```
198198
*/
199-
@Input("type")
199+
@Input('type')
200200
public set type(value: IgxInputGroupType) {
201201
this._type = value;
202202
}
@@ -205,15 +205,15 @@ export class IgxInputGroupComponent
205205
* Returns the type of the `IgxInputGroupComponent`. How the input is styled.
206206
* The default is `line`.
207207
* ```typescript
208-
* @ViewChild("MyInputGroup")
208+
* @ViewChild('MyInputGroup')
209209
* public inputGroup: IgxInputGroupComponent;
210210
* ngAfterViewInit(){
211211
* let inputType = this.inputGroup.type;
212212
* }
213213
* ```
214214
*/
215215
public get type() {
216-
return this._type || this._inputGroupType || "line";
216+
return this._type || this._inputGroupType || 'line';
217217
}
218218

219219
/** @hidden @internal */
@@ -256,14 +256,14 @@ export class IgxInputGroupComponent
256256
ngAfterContentInit() {
257257
const variant = this.document.defaultView
258258
.getComputedStyle(this.element.nativeElement)
259-
.getPropertyValue("--igx-input-group-variant")
259+
.getPropertyValue('--igx-input-group-variant')
260260
.trim();
261261
this._variant = variant as IgxInputGroupTheme;
262262
}
263263
/**
264264
* Returns whether the `IgxInputGroupComponent` has hints.
265265
* ```typescript
266-
* @ViewChild("MyInputGroup")
266+
* @ViewChild('MyInputGroup')
267267
* public inputGroup: IgxInputGroupComponent;
268268
* ngAfterViewInit(){
269269
* let inputHints = this.inputGroup.hasHints;
@@ -277,7 +277,7 @@ export class IgxInputGroupComponent
277277
/**
278278
* Returns whether the `IgxInputGroupComponent` has border.
279279
* ```typescript
280-
* @ViewChild("MyInputGroup")
280+
* @ViewChild('MyInputGroup')
281281
* public inputGroup: IgxInputGroupComponent;
282282
* ngAfterViewInit(){
283283
* let inputBorder = this.inputGroup.hasBorder;
@@ -286,113 +286,113 @@ export class IgxInputGroupComponent
286286
*/
287287
public get hasBorder() {
288288
return (
289-
(this.type === "line" || this.type === "box") &&
290-
this._variant === "material"
289+
(this.type === 'line' || this.type === 'box') &&
290+
this._variant === 'material'
291291
);
292292
}
293293

294294
/**
295295
* Returns whether the `IgxInputGroupComponent` type is line.
296296
* ```typescript
297-
* @ViewChild("MyInputGroup1")
297+
* @ViewChild('MyInputGroup1')
298298
* public inputGroup: IgxInputGroupComponent;
299299
* ngAfterViewInit(){
300300
* let isTypeLine = this.inputGroup.isTypeLine;
301301
* }
302302
* ```
303303
*/
304304
public get isTypeLine(): boolean {
305-
return this.type === "line" && this._variant === "material";
305+
return this.type === 'line' && this._variant === 'material';
306306
}
307307

308308
/**
309309
* Returns whether the `IgxInputGroupComponent` type is box.
310310
* ```typescript
311-
* @ViewChild("MyInputGroup1")
311+
* @ViewChild('MyInputGroup1')
312312
* public inputGroup: IgxInputGroupComponent;
313313
* ngAfterViewInit(){
314314
* let isTypeBox = this.inputGroup.isTypeBox;
315315
* }
316316
* ```
317317
*/
318-
@HostBinding("class.igx-input-group--box")
318+
@HostBinding('class.igx-input-group--box')
319319
public get isTypeBox() {
320-
return this.type === "box" && this._variant === "material";
320+
return this.type === 'box' && this._variant === 'material';
321321
}
322322

323323
/**
324324
* Returns whether the `IgxInputGroupComponent` type is border.
325325
* ```typescript
326-
* @ViewChild("MyInputGroup1")
326+
* @ViewChild('MyInputGroup1')
327327
* public inputGroup: IgxInputGroupComponent;
328328
* ngAfterViewInit(){
329329
* let isTypeBorder = this.inputGroup.isTypeBorder;
330330
* }
331331
* ```
332332
*/
333-
@HostBinding("class.igx-input-group--border")
333+
@HostBinding('class.igx-input-group--border')
334334
public get isTypeBorder() {
335-
return this.type === "border" && this._variant === "material";
335+
return this.type === 'border' && this._variant === 'material';
336336
}
337337

338338
/**
339339
* Returns true if the `IgxInputGroupComponent` theme is Fluent.
340340
* ```typescript
341-
* @ViewChild("MyInputGroup1")
341+
* @ViewChild('MyInputGroup1')
342342
* public inputGroup: IgxInputGroupComponent;
343343
* ngAfterViewInit(){
344344
* let isTypeFluent = this.inputGroup.isTypeFluent;
345345
* }
346346
* ```
347347
*/
348-
@HostBinding("class.igx-input-group--fluent")
348+
@HostBinding('class.igx-input-group--fluent')
349349
public get isTypeFluent() {
350-
return this._variant === "fluent";
350+
return this._variant === 'fluent';
351351
}
352352

353353
/**
354354
* Returns true if the `IgxInputGroupComponent` theme is Bootstrap.
355355
* ```typescript
356-
* @ViewChild("MyInputGroup1")
356+
* @ViewChild('MyInputGroup1')
357357
* public inputGroup: IgxInputGroupComponent;
358358
* ngAfterViewInit(){
359359
* let isTypeBootstrap = this.inputGroup.isTypeBootstrap;
360360
* }
361361
* ```
362362
*/
363-
@HostBinding("class.igx-input-group--bootstrap")
363+
@HostBinding('class.igx-input-group--bootstrap')
364364
public get isTypeBootstrap() {
365-
return this._variant === "bootstrap";
365+
return this._variant === 'bootstrap';
366366
}
367367

368368
/**
369369
* Returns true if the `IgxInputGroupComponent` theme is Indigo.
370370
* ```typescript
371-
* @ViewChild("MyInputGroup1")
371+
* @ViewChild('MyInputGroup1')
372372
* public inputGroup: IgxInputGroupComponent;
373373
* ngAfterViewInit(){
374374
* let isTypeIndigo = this.inputGroup.isTypeIndigo;
375375
* }
376376
* ```
377377
*/
378-
@HostBinding("class.igx-input-group--indigo")
378+
@HostBinding('class.igx-input-group--indigo')
379379
public get isTypeIndigo() {
380-
return this._variant === "indigo-design";
380+
return this._variant === 'indigo-design';
381381
}
382382

383383
/**
384384
* Returns whether the `IgxInputGroupComponent` type is search.
385385
* ```typescript
386-
* @ViewChild("MyInputGroup1")
386+
* @ViewChild('MyInputGroup1')
387387
* public inputGroup: IgxInputGroupComponent;
388388
* ngAfterViewInit(){
389389
* let isTypeSearch = this.inputGroup.isTypeSearch;
390390
* }
391391
* ```
392392
*/
393-
@HostBinding("class.igx-input-group--search")
393+
@HostBinding('class.igx-input-group--search')
394394
public get isTypeSearch() {
395-
return this.type === "search";
395+
return this.type === 'search';
396396
}
397397

398398
/** @hidden */

0 commit comments

Comments
 (0)