Skip to content

Commit 1f31d24

Browse files
authored
Merge pull request #12440 from IgniteUI/typedoc-changes-master
Upgrade localization plugin to 3.3.0
2 parents 3a322c5 + 77d3f73 commit 1f31d24

22 files changed

+318
-97
lines changed

gulpfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ function typedocBuildExportFn(cb) {
188188
TYPEDOC.PROJECT_PATH,
189189
"--generate-json",
190190
TYPEDOC.EXPORT_JSON_PATH,
191-
"--tags",
192-
"--params",
193191
"--tsconfig",
194192
path.join(__dirname, "tsconfig.typedoc.json")],
195193
{ stdio: 'inherit', shell: true });

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@
130130
"stylelint": "^15.1.0",
131131
"stylelint-scss": "^4.1.0",
132132
"ts-node": "^10.8.1",
133-
"typedoc": "^0.23.24",
134-
"typedoc-plugin-localization": "^2.4.0",
133+
"typedoc": "^0.23.21",
134+
"typedoc-plugin-localization": "^3.0.0",
135135
"typescript": "4.9.5"
136136
}
137137
}

projects/igniteui-angular/src/lib/combo/combo-add-item.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ export class IgxComboAddItemComponent extends IgxComboItemComponent {
1616
public set selected(value: boolean) {
1717
}
1818

19-
/**
20-
* @inheritDoc
21-
*/
2219
public clicked(event?) {// eslint-disable-line
2320
this.comboAPI.disableTransitions = false;
2421
this.comboAPI.add_custom_item();

projects/igniteui-angular/src/lib/combo/combo-item.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ export class IgxComboItemComponent extends IgxDropDownItemComponent {
101101
return rect.y >= parentDiv.y;
102102
}
103103

104-
/**
105-
* @inheritDoc
106-
*/
107104
public clicked(event): void {
108105
this.comboAPI.disableTransitions = false;
109106
if (!this.isSelectable) {

projects/igniteui-angular/src/lib/drop-down/drop-down-item.component.ts

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ import { IgxDropDownItemBaseDirective } from './drop-down-item.base';
1414
})
1515
export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective {
1616
/**
17-
* @inheritDoc
17+
* Sets/gets if the given item is focused
18+
* ```typescript
19+
* let mySelectedItem = this.dropdown.selectedItem;
20+
* let isMyItemFocused = mySelectedItem.focused;
21+
* ```
1822
*/
1923
public get focused(): boolean {
2024
let focusedState = this._focused;
@@ -27,15 +31,29 @@ export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective {
2731
}
2832

2933
/**
30-
* @inheritDoc
34+
* Sets/gets if the given item is focused
35+
* ```typescript
36+
* let mySelectedItem = this.dropdown.selectedItem;
37+
* let isMyItemFocused = mySelectedItem.focused;
38+
* ```
3139
*/
32-
public set focused(value: boolean) {
40+
public set focused(value: boolean) {
3341
this._focused = value;
3442
}
3543
/**
36-
* @inheritDoc
44+
* Sets/Gets if the item is the currently selected one in the dropdown
45+
*
46+
* ```typescript
47+
* let mySelectedItem = this.dropdown.selectedItem;
48+
* let isMyItemSelected = mySelectedItem.selected; // true
49+
* ```
50+
*
51+
* Two-way data binding
52+
* ```html
53+
* <igx-drop-down-item [(selected)]='model.isSelected'></igx-drop-down-item>
54+
* ```
3755
*/
38-
public get selected(): boolean {
56+
public get selected(): boolean {
3957
if (this.hasIndex) {
4058
const item = this.selection.first_item(`${this.dropDown.id}`);
4159
return item ? item.index === this._index && item.value === this.value : false;
@@ -44,9 +62,10 @@ export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective {
4462
}
4563

4664
/**
47-
* @inheritDoc
65+
* Sets/Gets if the item is the currently selected one in the dropdown
66+
*
4867
*/
49-
public set selected(value: boolean) {
68+
public set selected(value: boolean) {
5069
if (this.isHeader) {
5170
return;
5271
}
@@ -66,10 +85,7 @@ export class IgxDropDownItemComponent extends IgxDropDownItemBaseDirective {
6685
}
6786
}
6887

69-
/**
70-
* @inheritDoc
71-
*/
72-
public clicked(event): void {
88+
public clicked(event): void {
7389
if (!this.isSelectable) {
7490
this.ensureItemFocus();
7591
return;

projects/igniteui-angular/src/lib/grids/grid/grid.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,7 +1065,12 @@ export class IgxGridComponent extends IgxGridBaseDirective implements GridType,
10651065
}
10661066

10671067
/**
1068-
* @inheritDoc
1068+
*
1069+
* Returns an array of the current cell selection in the form of `[{ column.field: cell.value }, ...]`.
1070+
*
1071+
* @remarks
1072+
* If `formatters` is enabled, the cell value will be formatted by its respective column formatter (if any).
1073+
* If `headers` is enabled, it will use the column header (if any) instead of the column field.
10691074
*/
10701075
public getSelectedData(formatters = false, headers = false): any[] {
10711076
if (this.groupingExpressions.length || this.hasDetails) {

projects/igniteui-angular/src/lib/grids/tree-grid/tree-grid.component.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,12 @@ export class IgxTreeGridComponent extends IgxGridBaseDirective implements GridTy
672672
}
673673

674674
/**
675-
* @inheritDoc
675+
*
676+
* Returns an array of the current cell selection in the form of `[{ column.field: cell.value }, ...]`.
677+
*
678+
* @remarks
679+
* If `formatters` is enabled, the cell value will be formatted by its respective column formatter (if any).
680+
* If `headers` is enabled, it will use the column header (if any) instead of the column field.
676681
*/
677682
public getSelectedData(formatters = false, headers = false): any[] {
678683
let source = [];

projects/igniteui-angular/src/lib/select/select-positioning-strategy.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { Optional } from '@angular/core';
88

99
/** @hidden @internal */
1010
export class SelectPositioningStrategy extends BaseFitPositionStrategy implements IPositionStrategy {
11-
/** @inheritDoc */
11+
/**
12+
* PositionSettings to use when position the component in the overlay
13+
*/
1214
public settings: PositionSettings;
1315

1416
private _selectDefaultSettings = {
@@ -30,7 +32,18 @@ export class SelectPositioningStrategy extends BaseFitPositionStrategy implement
3032
this.settings = Object.assign({}, this._selectDefaultSettings, settings);
3133
}
3234

33-
/** @inheritDoc */
35+
/**
36+
* Position the element based on the PositionStrategy implementing this interface.
37+
*
38+
* @param contentElement The HTML element to be positioned
39+
* @param size Size of the element
40+
* @param document reference to the Document object
41+
* @param initialCall should be true if this is the initial call to the method
42+
* @param target attaching target for the component to show
43+
* ```typescript
44+
* settings.positionStrategy.position(content, size, document, true);
45+
* ```
46+
*/
3447
public position(contentElement: HTMLElement,
3548
size: Size,
3649
document?: Document,

projects/igniteui-angular/src/lib/services/overlay/position/auto-position-strategy.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import { BaseFitPositionStrategy } from './base-fit-position-strategy';
99
*/
1010
export class AutoPositionStrategy extends BaseFitPositionStrategy {
1111

12-
/** @inheritDoc */
12+
/**
13+
* Fits the element into viewport according to the position settings
14+
*
15+
* @param element element to fit in viewport
16+
* @param connectedFit connectedFit object containing all necessary parameters
17+
*/
1318
protected fitInViewport(element: HTMLElement, connectedFit: ConnectedFit) {
1419
const transformString: string[] = [];
1520
if (connectedFit.fitHorizontal.back < 0 || connectedFit.fitHorizontal.forward < 0) {

0 commit comments

Comments
 (0)