igniteui-angular 14.0.0-rc.0 → 14.0.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.
@@ -15874,14 +15874,18 @@ class IgxDragDirective {
15874
15874
  owner: this,
15875
15875
  originalEvent
15876
15876
  };
15877
- let elementsFromPoint = this.getElementsAtPoint(pageX, pageY);
15877
+ const elementsFromPoint = this.getElementsAtPoint(pageX, pageY);
15878
+ let targetElements = [];
15878
15879
  // Check for shadowRoot instance and use it if present
15879
15880
  for (const elFromPoint of elementsFromPoint) {
15880
15881
  if (!!elFromPoint?.shadowRoot) {
15881
- elementsFromPoint = elFromPoint.shadowRoot.elementsFromPoint(pageX, pageY);
15882
+ targetElements = targetElements.concat(this.getFromShadowRoot(elFromPoint, pageX, pageY));
15883
+ }
15884
+ else if (targetElements.indexOf(elFromPoint) === -1) {
15885
+ targetElements.push(elFromPoint);
15882
15886
  }
15883
15887
  }
15884
- for (const element of elementsFromPoint) {
15888
+ for (const element of targetElements) {
15885
15889
  if (element.getAttribute('droppable') === 'true' &&
15886
15890
  element !== this.ghostElement && element !== this.element.nativeElement) {
15887
15891
  topDropArea = element;
@@ -15905,6 +15909,20 @@ class IgxDragDirective {
15905
15909
  this.dispatchEvent(topDropArea, 'igxDragOver', customEventArgs);
15906
15910
  }
15907
15911
  }
15912
+ /**
15913
+ * @hidden
15914
+ * Traverse shadow dom in depth.
15915
+ */
15916
+ getFromShadowRoot(elem, pageX, pageY) {
15917
+ const elementsFromPoint = elem.shadowRoot.elementsFromPoint(pageX, pageY);
15918
+ let res = elementsFromPoint;
15919
+ for (const elFromPoint of elementsFromPoint) {
15920
+ if (!!elFromPoint?.shadowRoot && elFromPoint.shadowRoot !== elem.shadowRoot) {
15921
+ res = res.concat(this.getFromShadowRoot(elFromPoint, pageX, pageY));
15922
+ }
15923
+ }
15924
+ return res;
15925
+ }
15908
15926
  /**
15909
15927
  * @hidden
15910
15928
  * Dispatch custom igxDrop event based on current pointer position if there is last recorder drop area under the pointer.
@@ -25410,6 +25428,14 @@ class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective {
25410
25428
  * @internal
25411
25429
  */
25412
25430
  this.cssClass = 'igx-action-strip__editing-actions';
25431
+ /**
25432
+ * An input to enable/disable action strip row editing button
25433
+ */
25434
+ this.editRow = true;
25435
+ /**
25436
+ * An input to enable/disable action strip row deleting button
25437
+ */
25438
+ this.deleteRow = true;
25413
25439
  /**
25414
25440
  * An input to enable/disable action strip child row adding button
25415
25441
  */
@@ -25495,10 +25521,10 @@ class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective {
25495
25521
  *
25496
25522
  * @example
25497
25523
  * ```typescript
25498
- * this.gridEditingActions.deleteRow();
25524
+ * this.gridEditingActions.deleteRowHandler();
25499
25525
  * ```
25500
25526
  */
25501
- deleteRow(event) {
25527
+ deleteRowHandler(event) {
25502
25528
  if (event) {
25503
25529
  event.stopPropagation();
25504
25530
  }
@@ -25536,15 +25562,19 @@ class IgxGridEditingActionsComponent extends IgxGridActionsBaseDirective {
25536
25562
  }
25537
25563
  }
25538
25564
  IgxGridEditingActionsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IgxGridEditingActionsComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
25539
- IgxGridEditingActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: IgxGridEditingActionsComponent, selector: "igx-grid-editing-actions", inputs: { addRow: "addRow", addChild: "addChild" }, host: { properties: { "class.igx-action-strip__editing-actions": "this.cssClass" } }, providers: [{ provide: IgxGridActionsBaseDirective, useExisting: IgxGridEditingActionsComponent }], usesInheritance: true, ngImport: i0, template: "\n<ng-container *ngIf=\"isRowContext\">\n <igx-grid-action-button *ngIf=\"!disabled\" [asMenuItem]=\"asMenuItems\" iconName=\"edit\" [labelText]=\"grid.resourceStrings.igx_grid_actions_edit_label\" (actionClick)=\"startEdit($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addRow && isRootRow\" [asMenuItem]=\"asMenuItems\" iconName=\"add-row\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_label\" (actionClick)=\"addRowHandler($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addChild && hasChildren\" [asMenuItem]=\"asMenuItems\" iconName=\"add-child\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_child_label\" (actionClick)=\"addRowHandler($event, true)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"!disabled\" class=\"igx-action-strip__delete\" classNames='igx-action-strip__menu-item--danger' [asMenuItem]=\"asMenuItems\" iconName=\"delete\" [labelText]=\"grid.resourceStrings.igx_grid_actions_delete_label\" (actionClick)=\"deleteRow($event)\"></igx-grid-action-button>\n</ng-container>\n\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IgxGridActionButtonComponent, selector: "igx-grid-action-button", inputs: ["asMenuItem", "iconName", "classNames", "iconSet", "labelText"], outputs: ["actionClick"] }] });
25565
+ IgxGridEditingActionsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: IgxGridEditingActionsComponent, selector: "igx-grid-editing-actions", inputs: { addRow: "addRow", editRow: "editRow", deleteRow: "deleteRow", addChild: "addChild" }, host: { properties: { "class.igx-action-strip__editing-actions": "this.cssClass" } }, providers: [{ provide: IgxGridActionsBaseDirective, useExisting: IgxGridEditingActionsComponent }], usesInheritance: true, ngImport: i0, template: "\n<ng-container *ngIf=\"isRowContext\">\n <igx-grid-action-button *ngIf=\"!disabled && editRow\" [asMenuItem]=\"asMenuItems\" iconName=\"edit\" [labelText]=\"grid.resourceStrings.igx_grid_actions_edit_label\" (actionClick)=\"startEdit($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addRow && isRootRow\" [asMenuItem]=\"asMenuItems\" iconName=\"add-row\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_label\" (actionClick)=\"addRowHandler($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addChild && hasChildren\" [asMenuItem]=\"asMenuItems\" iconName=\"add-child\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_child_label\" (actionClick)=\"addRowHandler($event, true)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"!disabled && deleteRow\" class=\"igx-action-strip__delete\" classNames='igx-action-strip__menu-item--danger' [asMenuItem]=\"asMenuItems\" iconName=\"delete\" [labelText]=\"grid.resourceStrings.igx_grid_actions_delete_label\" (actionClick)=\"deleteRowHandler($event)\"></igx-grid-action-button>\n</ng-container>\n\n", dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IgxGridActionButtonComponent, selector: "igx-grid-action-button", inputs: ["asMenuItem", "iconName", "classNames", "iconSet", "labelText"], outputs: ["actionClick"] }] });
25540
25566
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: IgxGridEditingActionsComponent, decorators: [{
25541
25567
  type: Component,
25542
- args: [{ selector: 'igx-grid-editing-actions', providers: [{ provide: IgxGridActionsBaseDirective, useExisting: IgxGridEditingActionsComponent }], template: "\n<ng-container *ngIf=\"isRowContext\">\n <igx-grid-action-button *ngIf=\"!disabled\" [asMenuItem]=\"asMenuItems\" iconName=\"edit\" [labelText]=\"grid.resourceStrings.igx_grid_actions_edit_label\" (actionClick)=\"startEdit($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addRow && isRootRow\" [asMenuItem]=\"asMenuItems\" iconName=\"add-row\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_label\" (actionClick)=\"addRowHandler($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addChild && hasChildren\" [asMenuItem]=\"asMenuItems\" iconName=\"add-child\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_child_label\" (actionClick)=\"addRowHandler($event, true)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"!disabled\" class=\"igx-action-strip__delete\" classNames='igx-action-strip__menu-item--danger' [asMenuItem]=\"asMenuItems\" iconName=\"delete\" [labelText]=\"grid.resourceStrings.igx_grid_actions_delete_label\" (actionClick)=\"deleteRow($event)\"></igx-grid-action-button>\n</ng-container>\n\n" }]
25568
+ args: [{ selector: 'igx-grid-editing-actions', providers: [{ provide: IgxGridActionsBaseDirective, useExisting: IgxGridEditingActionsComponent }], template: "\n<ng-container *ngIf=\"isRowContext\">\n <igx-grid-action-button *ngIf=\"!disabled && editRow\" [asMenuItem]=\"asMenuItems\" iconName=\"edit\" [labelText]=\"grid.resourceStrings.igx_grid_actions_edit_label\" (actionClick)=\"startEdit($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addRow && isRootRow\" [asMenuItem]=\"asMenuItems\" iconName=\"add-row\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_label\" (actionClick)=\"addRowHandler($event)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"addChild && hasChildren\" [asMenuItem]=\"asMenuItems\" iconName=\"add-child\" iconSet=\"imx-icons\" [labelText]=\"grid.resourceStrings.igx_grid_actions_add_child_label\" (actionClick)=\"addRowHandler($event, true)\"></igx-grid-action-button>\n <igx-grid-action-button *ngIf=\"!disabled && deleteRow\" class=\"igx-action-strip__delete\" classNames='igx-action-strip__menu-item--danger' [asMenuItem]=\"asMenuItems\" iconName=\"delete\" [labelText]=\"grid.resourceStrings.igx_grid_actions_delete_label\" (actionClick)=\"deleteRowHandler($event)\"></igx-grid-action-button>\n</ng-container>\n\n" }]
25543
25569
  }], propDecorators: { cssClass: [{
25544
25570
  type: HostBinding,
25545
25571
  args: ['class.igx-action-strip__editing-actions']
25546
25572
  }], addRow: [{
25547
25573
  type: Input
25574
+ }], editRow: [{
25575
+ type: Input
25576
+ }], deleteRow: [{
25577
+ type: Input
25548
25578
  }], addChild: [{
25549
25579
  type: Input
25550
25580
  }] } });
@@ -37298,6 +37328,9 @@ class IgxComboComponent extends IgxComboBaseDirective {
37298
37328
  }
37299
37329
  this._onChangeCallback(args.newSelection);
37300
37330
  }
37331
+ else if (this.isRemote) {
37332
+ this.registerRemoteEntries(args.added, false);
37333
+ }
37301
37334
  }
37302
37335
  createDisplayText(newSelection, oldSelection) {
37303
37336
  return this.isRemote
@@ -37792,6 +37825,9 @@ class IgxSimpleComboComponent extends IgxComboBaseDirective {
37792
37825
  this._onChangeCallback(args.newSelection);
37793
37826
  this._updateInput = true;
37794
37827
  }
37828
+ else if (this.isRemote) {
37829
+ this.registerRemoteEntries(newSelectionAsArray, false);
37830
+ }
37795
37831
  }
37796
37832
  createDisplayText(newSelection, oldSelection) {
37797
37833
  if (this.isRemote) {