igniteui-angular 14.1.0-beta.0 → 14.1.0-rc.0

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.
Files changed (30) hide show
  1. package/esm2020/lib/combo/combo.common.mjs +20 -2
  2. package/esm2020/lib/combo/combo.component.mjs +3 -3
  3. package/esm2020/lib/core/i18n/combo-resources.mjs +4 -0
  4. package/esm2020/lib/core/i18n/resources.mjs +4 -1
  5. package/esm2020/lib/grids/api.service.mjs +1 -1
  6. package/esm2020/lib/grids/columns/column.component.mjs +2 -2
  7. package/esm2020/lib/grids/common/grid.interface.mjs +1 -1
  8. package/esm2020/lib/grids/grid/grid-validation.service.mjs +15 -16
  9. package/esm2020/lib/grids/grid-base.directive.mjs +1 -1
  10. package/esm2020/lib/grids/grid-public-cell.mjs +6 -5
  11. package/esm2020/lib/grids/grid-public-row.mjs +6 -5
  12. package/esm2020/lib/grids/public_api.mjs +1 -1
  13. package/esm2020/lib/simple-combo/simple-combo.component.mjs +3 -3
  14. package/esm2020/public_api.mjs +1 -1
  15. package/fesm2015/igniteui-angular.mjs +53 -30
  16. package/fesm2015/igniteui-angular.mjs.map +1 -1
  17. package/fesm2020/igniteui-angular.mjs +53 -29
  18. package/fesm2020/igniteui-angular.mjs.map +1 -1
  19. package/lib/combo/combo.common.d.ts +11 -1
  20. package/lib/core/i18n/combo-resources.d.ts +4 -0
  21. package/lib/core/i18n/resources.d.ts +3 -1
  22. package/lib/grids/columns/column.component.d.ts +1 -1
  23. package/lib/grids/common/grid.interface.d.ts +13 -13
  24. package/lib/grids/grid/grid-validation.service.d.ts +8 -9
  25. package/lib/grids/grid-base.directive.d.ts +2 -2
  26. package/lib/grids/grid-public-cell.d.ts +5 -5
  27. package/lib/grids/grid-public-row.d.ts +5 -5
  28. package/lib/grids/public_api.d.ts +1 -1
  29. package/package.json +1 -1
  30. package/public_api.d.ts +1 -0
@@ -13,6 +13,7 @@ import { OverlaySettings } from '../services/public_api';
13
13
  import { IgxComboDropDownComponent } from './combo-dropdown.component';
14
14
  import { IgxComboAPIService } from './combo.api';
15
15
  import { IComboItemAdditionEvent, IComboSearchInputEventArgs } from './public_api';
16
+ import { IComboResourceStrings } from '../core/i18n/combo-resources';
16
17
  import * as i0 from "@angular/core";
17
18
  export declare const IGX_COMBO_COMPONENT: InjectionToken<IgxComboBase>;
18
19
  /** @hidden @internal TODO: Evaluate */
@@ -322,6 +323,14 @@ export declare abstract class IgxComboBaseDirective extends DisplayDensityBase i
322
323
  */
323
324
  get type(): IgxInputGroupType;
324
325
  set type(val: IgxInputGroupType);
326
+ /**
327
+ * Gets/Sets the resource strings.
328
+ *
329
+ * @remarks
330
+ * By default it uses EN resources.
331
+ */
332
+ get resourceStrings(): IComboResourceStrings;
333
+ set resourceStrings(value: IComboResourceStrings);
325
334
  /**
326
335
  * Emitted before the dropdown is opened
327
336
  *
@@ -665,6 +674,7 @@ export declare abstract class IgxComboBaseDirective extends DisplayDensityBase i
665
674
  protected _filteredData: any[];
666
675
  protected _displayKey: string;
667
676
  protected _remoteSelection: {};
677
+ protected _resourceStrings: any;
668
678
  protected _valid: IgxComboState;
669
679
  protected ngControl: NgControl;
670
680
  protected destroy$: Subject<any>;
@@ -795,5 +805,5 @@ export declare abstract class IgxComboBaseDirective extends DisplayDensityBase i
795
805
  protected abstract setSelection(newSelection: Set<any>, event?: Event): void;
796
806
  protected abstract createDisplayText(newSelection: any[], oldSelection: any[]): any;
797
807
  static ɵfac: i0.ɵɵFactoryDeclaration<IgxComboBaseDirective, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
798
- static ɵdir: i0.ɵɵDirectiveDeclaration<IgxComboBaseDirective, never, never, { "showSearchCaseIcon": "showSearchCaseIcon"; "overlaySettings": "overlaySettings"; "id": "id"; "width": "width"; "allowCustomValues": "allowCustomValues"; "itemsMaxHeight": "itemsMaxHeight"; "itemHeight": "itemHeight"; "itemsWidth": "itemsWidth"; "placeholder": "placeholder"; "data": "data"; "valueKey": "valueKey"; "displayKey": "displayKey"; "groupKey": "groupKey"; "groupSortingDirection": "groupSortingDirection"; "filterFunction": "filterFunction"; "ariaLabelledBy": "ariaLabelledBy"; "disabled": "disabled"; "type": "type"; "filteringOptions": "filteringOptions"; }, { "opening": "opening"; "opened": "opened"; "closing": "closing"; "closed": "closed"; "addition": "addition"; "searchInputUpdate": "searchInputUpdate"; "dataPreLoad": "dataPreLoad"; }, ["itemTemplate", "headerTemplate", "footerTemplate", "headerItemTemplate", "addItemTemplate", "emptyTemplate", "toggleIconTemplate", "clearIconTemplate", "label"], never, false>;
808
+ static ɵdir: i0.ɵɵDirectiveDeclaration<IgxComboBaseDirective, never, never, { "showSearchCaseIcon": "showSearchCaseIcon"; "overlaySettings": "overlaySettings"; "id": "id"; "width": "width"; "allowCustomValues": "allowCustomValues"; "itemsMaxHeight": "itemsMaxHeight"; "itemHeight": "itemHeight"; "itemsWidth": "itemsWidth"; "placeholder": "placeholder"; "data": "data"; "valueKey": "valueKey"; "displayKey": "displayKey"; "groupKey": "groupKey"; "groupSortingDirection": "groupSortingDirection"; "filterFunction": "filterFunction"; "ariaLabelledBy": "ariaLabelledBy"; "disabled": "disabled"; "type": "type"; "resourceStrings": "resourceStrings"; "filteringOptions": "filteringOptions"; }, { "opening": "opening"; "opened": "opened"; "closing": "closing"; "closed": "closed"; "addition": "addition"; "searchInputUpdate": "searchInputUpdate"; "dataPreLoad": "dataPreLoad"; }, ["itemTemplate", "headerTemplate", "footerTemplate", "headerItemTemplate", "addItemTemplate", "emptyTemplate", "toggleIconTemplate", "clearIconTemplate", "label"], never, false>;
799
809
  }
@@ -0,0 +1,4 @@
1
+ export interface IComboResourceStrings {
2
+ igx_combo_empty_message?: string;
3
+ }
4
+ export declare const ComboResourceStringsEN: IComboResourceStrings;
@@ -10,7 +10,8 @@ import { ICalendarResourceStrings } from './calendar-resources';
10
10
  import { IInputResourceStrings } from './input-resources';
11
11
  import { ITreeResourceStrings } from './tree-resources';
12
12
  import { IActionStripResourceStrings } from './action-strip-resources';
13
- export interface IResourceStrings extends IGridResourceStrings, ITimePickerResourceStrings, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IInputResourceStrings, IDatePickerResourceStrings, IDateRangePickerResourceStrings, IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings, IActionStripResourceStrings {
13
+ import { IComboResourceStrings } from './combo-resources';
14
+ export interface IResourceStrings extends IGridResourceStrings, ITimePickerResourceStrings, ICalendarResourceStrings, ICarouselResourceStrings, IChipResourceStrings, IComboResourceStrings, IInputResourceStrings, IDatePickerResourceStrings, IDateRangePickerResourceStrings, IListResourceStrings, IPaginatorResourceStrings, ITreeResourceStrings, IActionStripResourceStrings {
14
15
  }
15
16
  /**
16
17
  * @hidden
@@ -30,6 +31,7 @@ export declare const CurrentResourceStrings: {
30
31
  TimePickerResStrings: any;
31
32
  CalendarResStrings: any;
32
33
  ChipResStrings: any;
34
+ ComboResStrings: any;
33
35
  DatePickerResourceStrings: any;
34
36
  DateRangePickerResStrings: any;
35
37
  CarouselResStrings: any;
@@ -891,7 +891,7 @@ export declare class IgxColumnComponent implements AfterContentInit, OnDestroy,
891
891
  * Sets the error template.
892
892
  * ```html
893
893
  * <ng-template igxCellValidationError let-cell="cell" #errorTemplate >
894
- * <div *ngIf="cell.errors?.['forbiddenName']">
894
+ * <div *ngIf="cell.validation.errors?.['forbiddenName']">
895
895
  * This name is forbidden.
896
896
  * </div>
897
897
  * </ng-template>
@@ -57,7 +57,7 @@ export interface CellType {
57
57
  rowIndex: number;
58
58
  };
59
59
  cellID?: any;
60
- readonly errors?: ValidationErrors;
60
+ readonly validation?: IGridValidationState;
61
61
  readonly?: boolean;
62
62
  title?: any;
63
63
  width: string;
@@ -78,7 +78,7 @@ export interface RowType {
78
78
  summaries?: Map<string, IgxSummaryResult[]>;
79
79
  groupRow?: IGroupByRecord;
80
80
  key?: any;
81
- readonly errors?: ValidationErrors;
81
+ readonly validation?: IGridValidationState;
82
82
  data?: any;
83
83
  cells?: QueryList<CellType> | CellType[];
84
84
  disabled?: boolean;
@@ -191,21 +191,21 @@ export interface IGridFormGroupCreatedEventArgs {
191
191
  formGroup: FormGroup;
192
192
  owner: GridType;
193
193
  }
194
- export interface IGridValidityStatusEventArgs {
195
- status: ValidityStatus;
194
+ export interface IGridValidationStatusEventArgs {
195
+ status: ValidationStatus;
196
196
  owner: GridType;
197
197
  }
198
- export declare type ValidityStatus = 'VALID' | 'INVALID';
199
- export interface IRecordValidationState {
198
+ export declare type ValidationStatus = 'VALID' | 'INVALID';
199
+ export interface IGridValidationState {
200
+ readonly status: ValidationStatus;
201
+ readonly errors?: ValidationErrors;
202
+ }
203
+ export interface IRecordValidationState extends IGridValidationState {
200
204
  key: any;
201
- valid: boolean;
202
- errors: ValidationErrors;
203
- cells: IFieldValidationState[];
205
+ fields: IFieldValidationState[];
204
206
  }
205
- export interface IFieldValidationState {
207
+ export interface IFieldValidationState extends IGridValidationState {
206
208
  field: string;
207
- valid: boolean;
208
- errors: ValidationErrors;
209
209
  }
210
210
  export interface GridServiceType {
211
211
  grid: GridType;
@@ -463,7 +463,7 @@ export interface GridType extends IGridDataBindable {
463
463
  rowDragEnd: EventEmitter<IRowDragEndEventArgs>;
464
464
  rowToggle: EventEmitter<IRowToggleEventArgs>;
465
465
  formGroupCreated: EventEmitter<IGridFormGroupCreatedEventArgs>;
466
- validationStatusChange: EventEmitter<IGridValidityStatusEventArgs>;
466
+ validationStatusChange: EventEmitter<IGridValidationStatusEventArgs>;
467
467
  toolbarExporting: EventEmitter<IGridToolbarExportEventArgs>;
468
468
  rendered$: Observable<boolean>;
469
469
  resizeNotify: Subject<void>;
@@ -42,9 +42,9 @@ export declare class IgxGridValidationService {
42
42
  * @internal
43
43
  */
44
44
  private getValidity;
45
- /** Returns all invalid record states.
46
- * @returns Array of IRecordValidationState.
47
- */
45
+ /**
46
+ * Returns all invalid record states.
47
+ */
48
48
  getInvalid(): IRecordValidationState[];
49
49
  /**
50
50
  * @hidden
@@ -52,20 +52,19 @@ export declare class IgxGridValidationService {
52
52
  */
53
53
  update(rowId: any, rowData: any): void;
54
54
  /** Marks the associated record or field as touched.
55
- * @param id The id of the record that will be marked as touched.
55
+ * @param key The id of the record that will be marked as touched.
56
56
  * @param field Optional. The field from the record that will be marked as touched. If not provided all fields will be touched.
57
57
  */
58
- markAsTouched(rowId: any, field?: string): void;
58
+ markAsTouched(key: any, field?: string): void;
59
59
  /**
60
60
  * @hidden
61
61
  * @internal
62
62
  */
63
63
  private updateStatus;
64
- /** Clears validity state by id or clears all states if no id is passed.
65
- * @param id The id of the record for which to clear state.
66
- * @returns Array of IRecordValidationState.
64
+ /** Clears validation state by key or all states if none is provided.
65
+ * @param key Optional. The key of the record for which to clear state.
67
66
  */
68
- clear(rowId?: any): void;
67
+ clear(key?: any): void;
69
68
  static ɵfac: i0.ɵɵFactoryDeclaration<IgxGridValidationService, never>;
70
69
  static ɵprov: i0.ɵɵInjectableDeclaration<IgxGridValidationService>;
71
70
  }
@@ -30,7 +30,7 @@ import { IgxColumnResizingService } from './resizing/resizing.service';
30
30
  import { IFilteringStrategy } from '../data-operations/filtering-strategy';
31
31
  import { GridSelectionMode, GridSummaryPosition, GridSummaryCalculationMode, FilterMode, GridPagingMode, GridValidationTrigger } from './common/enums';
32
32
  import { IGridCellEventArgs, IRowSelectionEventArgs, IPinColumnEventArgs, IGridEditEventArgs, IRowDataEventArgs, IColumnResizeEventArgs, IColumnMovingStartEventArgs, IColumnMovingEventArgs, IColumnMovingEndEventArgs, IGridKeydownEventArgs, IRowDragStartEventArgs, IRowDragEndEventArgs, IGridClipboardEvent, IGridToolbarExportEventArgs, ISearchInfo, ICellPosition, IRowToggleEventArgs, IColumnSelectionEventArgs, IPinRowEventArgs, IGridScrollEventArgs, IGridEditDoneEventArgs, IActiveNodeChangeEventArgs, ISortingEventArgs, IFilteringEventArgs, IColumnVisibilityChangedEventArgs, IColumnVisibilityChangingEventArgs, IPinColumnCancellableEventArgs } from './common/events';
33
- import { ColumnType, GridServiceType, GridType, IGridFormGroupCreatedEventArgs, IGridValidityStatusEventArgs, ISizeInfo, RowType } from './common/grid.interface';
33
+ import { ColumnType, GridServiceType, GridType, IGridFormGroupCreatedEventArgs, IGridValidationStatusEventArgs, ISizeInfo, RowType } from './common/grid.interface';
34
34
  import { DropPosition } from './moving/moving.service';
35
35
  import { IgxHeadSelectorDirective, IgxRowSelectorDirective } from './selection/row-selectors';
36
36
  import { IgxColumnComponent } from './columns/column.component';
@@ -350,7 +350,7 @@ export declare abstract class IgxGridBaseDirective extends DisplayDensityBase im
350
350
  * <igx-grid #grid (validationStatusChange)="validationStatusChange($event)" [data]="localData" [height]="'305px'" [autoGenerate]="true"></igx-grid>
351
351
  * ```
352
352
  */
353
- validationStatusChange: EventEmitter<IGridValidityStatusEventArgs>;
353
+ validationStatusChange: EventEmitter<IGridValidationStatusEventArgs>;
354
354
  /**
355
355
  * Emitted when a cell is selected.
356
356
  *
@@ -1,6 +1,5 @@
1
- import { CellType, ColumnType, GridType, RowType } from './common/grid.interface';
1
+ import { CellType, ColumnType, GridType, IGridValidationState, RowType } from './common/grid.interface';
2
2
  import { ISelectionNode } from './common/types';
3
- import { ValidationErrors } from '@angular/forms';
4
3
  export declare class IgxGridCell implements CellType {
5
4
  /**
6
5
  * Returns the grid containing the cell.
@@ -44,12 +43,13 @@ export declare class IgxGridCell implements CellType {
44
43
  */
45
44
  get editValue(): any;
46
45
  /**
47
- * Gets the validation errors if any.
46
+ * Gets the validation status and errors, if any.
48
47
  * ```typescript
49
- * let errors = this.cell.errors;
48
+ * let validation = this.cell.validation;
49
+ * let errors = validation.errors;
50
50
  * ```
51
51
  */
52
- get errors(): ValidationErrors;
52
+ get validation(): IGridValidationState;
53
53
  /**
54
54
  * Sets the current edit value while a cell is in edit mode.
55
55
  * Only for cell editing mode.
@@ -2,8 +2,7 @@ import { IGroupByRecord } from '../data-operations/groupby-record.interface';
2
2
  import { GridInstanceType } from './common/enums';
3
3
  import { IgxSummaryResult } from './summaries/grid-summary';
4
4
  import { ITreeGridRecord } from './tree-grid/tree-grid.interfaces';
5
- import { CellType, GridType, RowType } from './common/grid.interface';
6
- import { ValidationErrors } from '@angular/forms';
5
+ import { CellType, GridType, IGridValidationState, RowType } from './common/grid.interface';
7
6
  declare abstract class BaseRow implements RowType {
8
7
  index: number;
9
8
  /**
@@ -34,12 +33,13 @@ declare abstract class BaseRow implements RowType {
34
33
  * ```
35
34
  */
36
35
  get addRowUI(): boolean;
37
- /** Gets the validation errors if any.
36
+ /** Gets the validation status and errors, if any.
38
37
  * ```typescript
39
- * let errors = row.errors;
38
+ * let validation = row.validation;
39
+ * let errors = validation.errors;
40
40
  * ```
41
41
  */
42
- get errors(): ValidationErrors;
42
+ get validation(): IGridValidationState;
43
43
  /**
44
44
  * The data record that populates the row.
45
45
  *
@@ -13,7 +13,7 @@ export * from './grid-base.directive';
13
13
  export * from './grid.common';
14
14
  export * from './grid-public-row';
15
15
  export * from './grid-public-cell';
16
- export { CellType, RowType, IGX_GRID_BASE, ValidityStatus, IRecordValidationState, IFieldValidationState } from './common/grid.interface';
16
+ export { CellType, RowType, IGX_GRID_BASE, ValidationStatus, IGridFormGroupCreatedEventArgs, IGridValidationState, IGridValidationStatusEventArgs, IRecordValidationState, IFieldValidationState } from './common/grid.interface';
17
17
  export * from './summaries/grid-summary';
18
18
  export * from './grid-common.module';
19
19
  export * from './grid.rowEdit.directive';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-angular",
3
- "version": "14.1.0-beta.0",
3
+ "version": "14.1.0-rc.0",
4
4
  "description": "Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/public_api.d.ts CHANGED
@@ -116,6 +116,7 @@ export { CancelableEventArgs, CancelableBrowserEventArgs } from './lib/core/util
116
116
  export { changei18n, getCurrentResourceStrings, IResourceStrings } from './lib/core/i18n/resources';
117
117
  export { ICarouselResourceStrings } from './lib/core/i18n/carousel-resources';
118
118
  export { IGridResourceStrings } from './lib/core/i18n/grid-resources';
119
+ export { IComboResourceStrings } from './lib/core/i18n/combo-resources';
119
120
  export { IPaginatorResourceStrings } from './lib/core/i18n/paginator-resources';
120
121
  export { ICalendarResourceStrings } from './lib/core/i18n/calendar-resources';
121
122
  export { ITimePickerResourceStrings } from './lib/core/i18n/time-picker-resources';