Skip to content

Commit 4ef85dc

Browse files
authored
Merge branch 'master' into bpachilova/feat-14011
2 parents 6df32e3 + 5382a67 commit 4ef85dc

File tree

49 files changed

+226
-238
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+226
-238
lines changed

.github/CONTRIBUTING.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In order to perform all the necessary checks before pulling your changes in, you
1212
npm install
1313
npm test
1414

15-
[Naming Convention](../../../wiki/General-Naming-Guidelines-for-Ignite-UI-for-Angular)
15+
[General Naming and Coding Guidelines](../../../wiki/General-Naming-and-Coding-Guidelines-for-Ignite-UI-for-Angular)
1616
[CSS Naming Convention](../css-naming-convention.md)
1717

1818
# Workflow
@@ -101,7 +101,7 @@ https://github.com/IgniteUI/igniteui-angular-i18n
101101

102102
**NOTE** The localization repo has been moved to live inside the `igniteui-angular` repository under `./projects/igniteui-angular-i18n`
103103

104-
A npm package should be published each time we release new version of IgniteUI for Angular. Its version should correspond to the version of the igniteui-angular npm package.
104+
A npm package should be published each time we release new version of Ignite UI for Angular. Its version should correspond to the version of the igniteui-angular npm package.
105105
One could localize an application by importing the corresponding localized resource strings from the localization package (`igniteui-angular-i18n`) and use the methods described in the previous bullet to localize the whole application or part of it.
106106
Example:
107107
Inside app.module you can perform:
@@ -178,30 +178,32 @@ if (isDevMode()) {
178178
`
179179
Write migrations.
180180

181-
## Deprecating methods
182-
When a method is deprecated a few steps have to be done:
183-
1. Add the `@deprecated` tag at the begging of the method description followed by the version in which the method has been deprecated and what can be used instead. Example:
184-
```ts
185-
/**
186-
* @deprecated in version 12.1.0. Use 'data' instead
187-
*
188-
* The data record that populates the row
189-
*/
190-
public getRowData(): any {
191-
return this.data;
192-
}
193-
```
194-
2. Ensure that the deprecated method is no longer used in IgniteUI for Angular codebase, samples and documentation snippets.
195-
3. Write migrations.
196-
197-
## Deprecating class properties
198-
When a class property is deprecated a few steps have to be done:
199-
1. Add the `@deprecated` tag at the begging of the property description followed by the version in which the property has been deprecated and what can be used instead.
200-
2. Ensure that the deprecated property is no longer used in IgniteUI for Angular codebase, samples and documentation snippets.
181+
## Deprecating members
182+
When a property or method is deprecated a few steps have to be done:
183+
1. Add the `@deprecated` tag after the member description (since it's a block tag), followed by the version in which the member has been deprecated and what can be used instead. Example:
184+
```ts
185+
/**
186+
* Enables selecting multiple buttons.
187+
*
188+
* @deprecated in version 16.1.0. Use the `selectionMode` property instead.
189+
*/
190+
@Input()
191+
public get multiSelection() { /* ... */ }
192+
public set multiSelection(value: boolean) { /* ... */ }
193+
194+
/**
195+
* The data record that populates the row
196+
*
197+
* @deprecated in version 12.1.0. Use the `data` property instead.
198+
*/
199+
public getRowData(): any {
200+
return this.data;
201+
}
202+
```
203+
Note: Use full specific version followed by full stop and if possible keep the alternative use short and in the same line.
204+
2. Ensure that the deprecated member is no longer used in Ignite UI for Angular codebase, samples and documentation snippets.
201205
3. Write migrations.
202206

203-
NOTE: TypeScript disallows adding descriptions to both the get and set accessor for a single member. Instead, the description for the member must be applied to the first accessor specified in document order. Having this in mind the `@deprecated` tag is applied only once.
204-
205207
# Testing a PR
206208
In order to test a pull request that is awaiting test, perform the following actions.
207209

.vscode/extensions.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
// List of extensions which should be recommended for users of this workspace.
5+
"recommendations": [
6+
"editorconfig.editorconfig",
7+
"dbaeumer.vscode-eslint",
8+
"angular.ng-template",
9+
"streetsidesoftware.code-spell-checker"
10+
],
11+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
12+
"unwantedRecommendations": []
13+
}

projects/igniteui-angular/src/lib/action-strip/action-strip.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class IgxActionStripComponent extends DisplayDensityBase implements IgxAc
116116
public actionButtons: QueryList<IgxGridActionsBaseDirective>;
117117

118118
/**
119-
* An @Input property that set the visibility of the Action Strip.
119+
* Gets/Sets the visibility of the Action Strip.
120120
* Could be used to set if the Action Strip will be initially hidden.
121121
*
122122
* @example

projects/igniteui-angular/src/lib/avatar/avatar.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,16 @@ export class IgxAvatarComponent implements OnInit {
118118
public id = `igx-avatar-${NEXT_ID++}`;
119119

120120
/**
121-
* @deprecated in version 15.1.0.
122121
* Sets a circular shape to the avatar, if `[roundShape]` is set to `true`.
123122
* By default the shape of the avatar is a square.
124123
*
125124
* @example
126125
* ```html
127126
* <igx-avatar [roundShape]="true" ></igx-avatar>
128127
* ```
128+
* @deprecated in version 15.1.0.
129+
* @hidden
129130
*/
130-
/** @hidden @internal */
131131
@Input()
132132
@HostBinding('class.igx-avatar--circle')
133133
public get roundShape() {

projects/igniteui-angular/src/lib/buttonGroup/buttonGroup.component.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class IgxButtonGroupComponent extends DisplayDensityBase implements After
7474
}
7575

7676
/**
77-
* An @Input property that sets the value of the `id` attribute. If not set it will be automatically generated.
77+
* Gets/Sets the value of the `id` attribute. If not set it will be automatically generated.
7878
* ```html
7979
* <igx-buttongroup [id]="'igx-dialog-56'" [selectionMode]="'multi'" [values]="alignOptions">
8080
* ```
@@ -120,9 +120,9 @@ export class IgxButtonGroupComponent extends DisplayDensityBase implements After
120120
}
121121

122122
/**
123-
* @deprecated in version 16.1.0. Set/Use selectionMode property instead.
124-
*
125123
* Enables selecting multiple buttons. By default, multi-selection is false.
124+
*
125+
* @deprecated in version 16.1.0. Use the `selectionMode` property instead.
126126
*/
127127
@Input()
128128
public get multiSelection() {
@@ -141,7 +141,7 @@ export class IgxButtonGroupComponent extends DisplayDensityBase implements After
141141
}
142142

143143
/**
144-
* An @Input property that get/set the selection mode 'single', 'singleRequired' or 'multi' of the buttons. By default, the selection mode is 'single'.
144+
* Gets/Sets the selection mode to 'single', 'singleRequired' or 'multi' of the buttons. By default, the selection mode is 'single'.
145145
* ```html
146146
* <igx-buttongroup [selectionMode]="'multi'" [alignment]="alignment"></igx-buttongroup>
147147
* ```
@@ -162,7 +162,7 @@ export class IgxButtonGroupComponent extends DisplayDensityBase implements After
162162
}
163163

164164
/**
165-
* An @Input property that allows setting the buttons in the button group.
165+
* Property that configures the buttons in the button group using a collection of `Button` objects.
166166
* ```typescript
167167
* public ngOnInit() {
168168
* this.cities = [
@@ -190,7 +190,7 @@ export class IgxButtonGroupComponent extends DisplayDensityBase implements After
190190
@Input() public values: any;
191191

192192
/**
193-
* An @Input property that allows you to disable the `igx-buttongroup` component. By default it's false.
193+
* Disables the `igx-buttongroup` component. By default it's false.
194194
* ```html
195195
* <igx-buttongroup [disabled]="true" [selectionMode]="'multi'" [values]="fontOptions"></igx-buttongroup>
196196
* ```

projects/igniteui-angular/src/lib/card/card.component.ts

Lines changed: 15 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class IgxCardMediaDirective {
3030
public cssClass = 'igx-card__media';
3131

3232
/**
33-
* An @Input property that sets the `width` and `min-width` style property
33+
* Sets the `width` and `min-width` style property
3434
* of the media container. If not provided it will be set to `auto`.
3535
*
3636
* @example
@@ -44,7 +44,7 @@ export class IgxCardMediaDirective {
4444
public width = 'auto';
4545

4646
/**
47-
* An @Input property that sets the `height` style property of the media container.
47+
* Sets the `height` style property of the media container.
4848
* If not provided it will be set to `auto`.
4949
*
5050
* @example
@@ -57,7 +57,7 @@ export class IgxCardMediaDirective {
5757
public height = 'auto';
5858

5959
/**
60-
* An @Input property that sets the `role` attribute of the media container.
60+
* Sets the `role` attribute of the media container.
6161
*/
6262
@HostBinding('attr.role')
6363
@Input()
@@ -78,7 +78,7 @@ export class IgxCardHeaderComponent {
7878
public cssClass = 'igx-card-header';
7979

8080
/**
81-
* An @Input property that sets the layout style of the header.
81+
* Sets the layout style of the header.
8282
* By default the header elements(thumbnail and title/subtitle) are aligned horizontally.
8383
*
8484
* @example
@@ -152,7 +152,7 @@ export class IgxCardContentDirective {
152152
})
153153
export class IgxCardFooterDirective {
154154
/**
155-
* An @Input property that sets the value of the `role` attribute of the card footer.
155+
* Sets the value of the `role` attribute of the card footer.
156156
* By default the value is set to `footer`.
157157
*
158158
* @example
@@ -196,7 +196,7 @@ export class IgxCardFooterDirective {
196196
*/
197197

198198
/**
199-
* @deprecated in 17.0.0. To switch betweet `outlined` and `elevated` card use the `elevated` property.
199+
* @deprecated in 17.0.0. To switch between `outlined` and `elevated` card use the `elevated` property.
200200
* Since version 17.0.0 the card component is `outlined` by default.
201201
*/
202202
export const IgxCardType = /*@__PURE__*/mkenum({
@@ -239,7 +239,7 @@ export class IgxCardComponent {
239239
public cssClass = 'igx-card';
240240

241241
/**
242-
* An @Input property that sets the value of the `role` attribute of the card.
242+
* Sets the value of the `role` attribute of the card.
243243
* By default the value is set to `group`.
244244
*
245245
* @example
@@ -252,16 +252,11 @@ export class IgxCardComponent {
252252
public role = 'group';
253253

254254
/**
255-
* @deprecated in version 17.0.0. Use `elevated` property instead.
256-
*
257-
* An @Input property that sets the value of the `type` attribute of the card.
255+
* Sets the value of the `type` attribute of the card.
258256
* By default the value is set to `outlined`. You can make the card use the
259257
* elevated style by setting the value to `elevated`.
260258
*
261-
* @example
262-
* ```html
263-
* <igx-card type="elevated"></igx-card>
264-
* ```
259+
* @deprecated in version 17.0.0. Use `elevated` property instead.
265260
*/
266261
@Input()
267262
public type: IgxCardType | string = IgxCardType.OUTLINED;
@@ -283,7 +278,7 @@ export class IgxCardComponent {
283278
}
284279

285280
/**
286-
* An @Input property that sets/gets whether the card is elevated.
281+
* Sets/gets whether the card is elevated.
287282
* Default value is `false`.
288283
*
289284
* @example
@@ -304,7 +299,7 @@ export class IgxCardComponent {
304299
}
305300

306301
/**
307-
* An @Input property that sets the value of the `horizontal` attribute of the card.
302+
* Sets the value of the `horizontal` attribute of the card.
308303
* Setting this to `true` will make the different card sections align horizontally,
309304
* essentially flipping the card to the side.
310305
*
@@ -341,7 +336,7 @@ export type IgxCardActionsLayout = (typeof IgxCardActionsLayout)[keyof typeof Ig
341336
})
342337
export class IgxCardActionsComponent implements OnInit, OnChanges {
343338
/**
344-
* An @Input property that sets the layout style of the actions.
339+
* Sets the layout style of the actions.
345340
* You can justify the elements slotted in the igx-card-action container
346341
* so that they are positioned equally from one another taking up all the
347342
* space available along the card actions axis.
@@ -356,7 +351,7 @@ export class IgxCardActionsComponent implements OnInit, OnChanges {
356351
public layout: IgxCardActionsLayout | string = IgxCardActionsLayout.START;
357352

358353
/**
359-
* An @Input property that sets the vertical attribute of the actions.
354+
* Sets the vertical attribute of the actions.
360355
* When set to `true` the actions will be layed out vertically.
361356
*/
362357
@HostBinding('class.igx-card-actions--vertical')
@@ -373,14 +368,9 @@ export class IgxCardActionsComponent implements OnInit, OnChanges {
373368
}
374369

375370
/**
376-
* @deprecated in version 15.1.0.
377-
*
378-
* An @Input property that reverses the order of the buttons in the actions area.
371+
* Reverses the order of the buttons in the actions area.
379372
*
380-
* @example
381-
* ```html
382-
* <igx-card-actions [reverse]="true"></igx-card-actions>
383-
* ```
373+
* @deprecated in version 15.1.0.
384374
*/
385375
@HostBinding('class.igx-card-actions--reverse')
386376
@Input({ transform: booleanAttribute })

0 commit comments

Comments
 (0)