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
|
@@ -34624,6 +34624,11 @@ class IgxChipComponent extends DisplayDensityBase {
|
|
|
34624
34624
|
* @internal
|
|
34625
34625
|
*/
|
|
34626
34626
|
this.hideBaseElement = false;
|
|
34627
|
+
/**
|
|
34628
|
+
* @hidden
|
|
34629
|
+
* @internal
|
|
34630
|
+
*/
|
|
34631
|
+
this.destroy$ = new Subject();
|
|
34627
34632
|
this._tabIndex = null;
|
|
34628
34633
|
this._selected = false;
|
|
34629
34634
|
this._selectedItemClass = 'igx-chip__item--selected';
|
|
@@ -35020,6 +35025,10 @@ class IgxChipComponent extends DisplayDensityBase {
|
|
|
35020
35025
|
}
|
|
35021
35026
|
}
|
|
35022
35027
|
}
|
|
35028
|
+
ngOnDestroy() {
|
|
35029
|
+
this.destroy$.next();
|
|
35030
|
+
this.destroy$.complete();
|
|
35031
|
+
}
|
|
35023
35032
|
}
|
|
35024
35033
|
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 });
|
|
35025
35034
|
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"] }] });
|
|
@@ -35250,20 +35259,20 @@ class IgxChipsAreaComponent {
|
|
|
35250
35259
|
const changes = this._differ.diff(this.chipsList.toArray());
|
|
35251
35260
|
if (changes) {
|
|
35252
35261
|
changes.forEachAddedItem((addedChip) => {
|
|
35253
|
-
addedChip.item.moveStart.pipe(takeUntil(
|
|
35262
|
+
addedChip.item.moveStart.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35254
35263
|
this.onChipMoveStart(args);
|
|
35255
35264
|
});
|
|
35256
|
-
addedChip.item.moveEnd.pipe(takeUntil(
|
|
35265
|
+
addedChip.item.moveEnd.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35257
35266
|
this.onChipMoveEnd(args);
|
|
35258
35267
|
});
|
|
35259
|
-
addedChip.item.dragEnter.pipe(takeUntil(
|
|
35268
|
+
addedChip.item.dragEnter.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35260
35269
|
this.onChipDragEnter(args);
|
|
35261
35270
|
});
|
|
35262
|
-
addedChip.item.keyDown.pipe(takeUntil(
|
|
35271
|
+
addedChip.item.keyDown.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35263
35272
|
this.onChipKeyDown(args);
|
|
35264
35273
|
});
|
|
35265
35274
|
if (addedChip.item.selectable) {
|
|
35266
|
-
addedChip.item.selectedChanging.pipe(takeUntil(
|
|
35275
|
+
addedChip.item.selectedChanging.pipe(takeUntil(addedChip.item.destroy$)).subscribe((args) => {
|
|
35267
35276
|
this.onChipSelectionChange(args);
|
|
35268
35277
|
});
|
|
35269
35278
|
}
|
|
@@ -55677,8 +55686,8 @@ class IgxQueryBuilderComponent extends DisplayDensityBase {
|
|
|
55677
55686
|
const index = parent.children.indexOf(firstExpression);
|
|
55678
55687
|
parent.children.splice(index, 0, groupItem);
|
|
55679
55688
|
for (const expr of this.selectedExpressions) {
|
|
55680
|
-
this.deleteItem(expr);
|
|
55681
55689
|
groupItem.children.push(expr);
|
|
55690
|
+
this.deleteItem(expr);
|
|
55682
55691
|
expr.parent = groupItem;
|
|
55683
55692
|
}
|
|
55684
55693
|
this.clearSelection();
|