igniteui-angular 14.2.26 → 14.2.27
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.
- package/esm2020/lib/chips/chip.component.mjs +11 -2
- package/esm2020/lib/chips/chips-area.component.mjs +6 -6
- package/esm2020/lib/query-builder/query-builder.component.mjs +2 -2
- package/fesm2015/igniteui-angular.mjs +15 -6
- package/fesm2015/igniteui-angular.mjs.map +1 -1
- package/fesm2020/igniteui-angular.mjs +15 -6
- package/fesm2020/igniteui-angular.mjs.map +1 -1
- package/lib/chips/chip.component.d.ts +9 -2
- package/package.json +1 -1
|
@@ -35028,6 +35028,11 @@ class IgxChipComponent extends DisplayDensityBase {
|
|
|
35028
35028
|
* @internal
|
|
35029
35029
|
*/
|
|
35030
35030
|
this.hideBaseElement = false;
|
|
35031
|
+
/**
|
|
35032
|
+
* @hidden
|
|
35033
|
+
* @internal
|
|
35034
|
+
*/
|
|
35035
|
+
this.destroy$ = new Subject();
|
|
35031
35036
|
this._tabIndex = null;
|
|
35032
35037
|
this._selected = false;
|
|
35033
35038
|
this._selectedItemClass = 'igx-chip__item--selected';
|
|
@@ -35420,6 +35425,10 @@ class IgxChipComponent extends DisplayDensityBase {
|
|
|
35420
35425
|
}
|
|
35421
35426
|
}
|
|
35422
35427
|
}
|
|
35428
|
+
ngOnDestroy() {
|
|
35429
|
+
this.destroy$.next();
|
|
35430
|
+
this.destroy$.complete();
|
|
35431
|
+
}
|
|
35423
35432
|
}
|
|
35424
35433
|
IgxChipComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.1", ngImport: i0, type: IgxChipComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: DisplayDensityToken, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
35425
35434
|
IgxChipComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.1", type: IgxChipComponent, selector: "igx-chip", inputs: { id: "id", tabIndex: "tabIndex", data: "data", draggable: "draggable", animateOnRelease: "animateOnRelease", hideBaseOnDrag: "hideBaseOnDrag", removable: "removable", removeIcon: "removeIcon", selectable: "selectable", selectIcon: "selectIcon", class: "class", disabled: "disabled", selected: "selected", color: "color", resourceStrings: "resourceStrings" }, outputs: { selectedChange: "selectedChange", moveStart: "moveStart", moveEnd: "moveEnd", remove: "remove", chipClick: "chipClick", selectedChanging: "selectedChanging", selectedChanged: "selectedChanged", keyDown: "keyDown", dragEnter: "dragEnter", dragLeave: "dragLeave", dragOver: "dragOver", dragDrop: "dragDrop" }, host: { listeners: { "keydown": "keyEvent($event)" }, properties: { "attr.id": "this.id", "attr.role": "this.role", "attr.tabIndex": "this.tabIndex", "attr.aria-selected": "this.selected", "attr.class": "this.hostClass" } }, viewQueries: [{ propertyName: "dragDirective", first: true, predicate: ["chipArea"], descendants: true, read: IgxDragDirective, static: true }, { propertyName: "chipArea", first: true, predicate: ["chipArea"], descendants: true, read: ElementRef, static: true }, { propertyName: "selectContainer", first: true, predicate: ["selectContainer"], descendants: true, read: ElementRef, static: true }, { propertyName: "defaultRemoveIcon", first: true, predicate: ["defaultRemoveIcon"], descendants: true, read: TemplateRef, static: true }, { propertyName: "defaultSelectIcon", first: true, predicate: ["defaultSelectIcon"], descendants: true, read: TemplateRef, static: true }], usesInheritance: true, ngImport: i0, template: "<div #chipArea class=\"igx-chip__item\"\n [igxDrag]=\"{chip: this}\"\n [style.visibility]='hideBaseElement ? \"hidden\" : \"visible\"'\n [ghostClass]=\"ghostClass\"\n (dragStart)=\"onChipDragStart($event)\"\n (ghostCreate)=\"onChipGhostCreate()\"\n (ghostDestroy)=\"onChipGhostDestroy()\"\n (dragEnd)=\"onChipDragEnd()\"\n (transitioned)=\"onChipMoveEnd($event)\"\n (dragClick)=\"onChipDragClicked($event)\"\n igxDrop\n (enter)=\"onChipDragEnterHandler($event)\"\n (leave)= \"onChipDragLeaveHandler($event)\"\n (over)=\"onChipOverHandler($event)\"\n (dropped)=\"onChipDrop($event)\">\n\n <div #selectContainer [ngClass]=\"selectClass(selected)\">\n <ng-container *ngTemplateOutlet=\"selectIconTemplate\"></ng-container>\n </div>\n\n <ng-content select=\"igx-prefix,[igxPrefix]\"></ng-content>\n\n <div class=\"igx-chip__content\">\n <ng-content></ng-content>\n </div>\n\n <ng-content select=\"igx-suffix,[igxSuffix]\"></ng-content>\n\n <div class=\"igx-chip__remove\" *ngIf=\"removable\"\n [attr.tabIndex]=\"tabIndex\"\n (keydown)=\"onRemoveBtnKeyDown($event)\"\n (pointerdown)=\"onRemoveMouseDown($event)\"\n (mousedown)=\"onRemoveMouseDown($event)\"\n (click)=\"onRemoveClick($event)\"\n (touchmove)=\"onRemoveTouchMove()\"\n (touchend)=\"onRemoveTouchEnd($event)\">\n <ng-container *ngTemplateOutlet=\"removeButtonTemplate\"></ng-container>\n </div>\n</div>\n\n<ng-template #defaultSelectIcon>\n <igx-icon [attr.aria-label]=\"resourceStrings.igx_chip_select\">done</igx-icon>\n</ng-template>\n\n<ng-template #defaultRemoveIcon>\n <igx-icon [attr.aria-label]=\"resourceStrings.igx_chip_remove\">cancel</igx-icon>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IgxIconComponent, selector: "igx-icon", inputs: ["family", "active", "name"] }, { kind: "directive", type: IgxDragDirective, selector: "[igxDrag]", inputs: ["igxDrag", "dragTolerance", "dragDirection", "dragChannel", "ghost", "ghostClass", "ghostTemplate", "ghostHost", "scrollContainer", "ghostOffsetX", "ghostOffsetY"], outputs: ["dragStart", "dragMove", "dragEnd", "dragClick", "ghostCreate", "ghostDestroy", "transitioned"], exportAs: ["drag"] }, { kind: "directive", type: IgxDropDirective, selector: "[igxDrop]", inputs: ["igxDrop", "dropChannel", "dropStrategy"], outputs: ["enter", "over", "leave", "dropped"], exportAs: ["drop"] }] });
|
|
@@ -35648,20 +35657,20 @@ class IgxChipsAreaComponent {
|
|
|
35648
35657
|
const changes = this._differ.diff(this.chipsList.toArray());
|
|
35649
35658
|
if (changes) {
|
|
35650
35659
|
changes.forEachAddedItem((addedChip) => {
|
|
35651
|
-
addedChip.item.moveStart.pipe(takeUntil(
|
|
35660
|
+
addedChip.item.moveStart.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35652
35661
|
this.onChipMoveStart(args);
|
|
35653
35662
|
});
|
|
35654
|
-
addedChip.item.moveEnd.pipe(takeUntil(
|
|
35663
|
+
addedChip.item.moveEnd.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35655
35664
|
this.onChipMoveEnd(args);
|
|
35656
35665
|
});
|
|
35657
|
-
addedChip.item.dragEnter.pipe(takeUntil(
|
|
35666
|
+
addedChip.item.dragEnter.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35658
35667
|
this.onChipDragEnter(args);
|
|
35659
35668
|
});
|
|
35660
|
-
addedChip.item.keyDown.pipe(takeUntil(
|
|
35669
|
+
addedChip.item.keyDown.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35661
35670
|
this.onChipKeyDown(args);
|
|
35662
35671
|
});
|
|
35663
35672
|
if (addedChip.item.selectable) {
|
|
35664
|
-
addedChip.item.selectedChanging.pipe(takeUntil(
|
|
35673
|
+
addedChip.item.selectedChanging.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35665
35674
|
this.onChipSelectionChange(args);
|
|
35666
35675
|
});
|
|
35667
35676
|
}
|
|
@@ -55939,8 +55948,8 @@ class IgxQueryBuilderComponent extends DisplayDensityBase {
|
|
|
55939
55948
|
const index = parent.children.indexOf(firstExpression);
|
|
55940
55949
|
parent.children.splice(index, 0, groupItem);
|
|
55941
55950
|
for (const expr of this.selectedExpressions) {
|
|
55942
|
-
this.deleteItem(expr);
|
|
55943
55951
|
groupItem.children.push(expr);
|
|
55952
|
+
this.deleteItem(expr);
|
|
55944
55953
|
expr.parent = groupItem;
|
|
55945
55954
|
}
|
|
55946
55955
|
this.clearSelection();
|