@maplander/components 0.21.47 → 0.21.49

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.
@@ -2315,6 +2315,7 @@
2315
2315
  this.METERS_TO_SQ = 10.76391042;
2316
2316
  this.chips = [];
2317
2317
  this._subscription = new rxjs.Subscription();
2318
+ this.filterDeleted = new core.EventEmitter();
2318
2319
  }
2319
2320
  /**
2320
2321
  * @return {?}
@@ -2374,6 +2375,17 @@
2374
2375
  this.openFilters();
2375
2376
  }
2376
2377
  };
2378
+ /**
2379
+ * @param {?} type
2380
+ * @return {?}
2381
+ */
2382
+ FabFiltersComponent.prototype.removeFilter = /**
2383
+ * @param {?} type
2384
+ * @return {?}
2385
+ */
2386
+ function (type) {
2387
+ this.filterDeleted.emit(type);
2388
+ };
2377
2389
  /**
2378
2390
  * @private
2379
2391
  * @param {?} filter
@@ -2590,7 +2602,7 @@
2590
2602
  FabFiltersComponent.decorators = [
2591
2603
  { type: core.Component, args: [{
2592
2604
  selector: 'lib-fab-filters',
2593
- template: "<div class=\"fab-filters\">\r\n <button mat-flat-button=\"\" color=\"primary\" class=\"btn_filters\" (click)=\"openFilters()\">\r\n Filtros\r\n </button>\r\n <div class=\"filters-container\">\r\n <ng-template [ngIf]=\"chips.length > 0\">\r\n <mat-chip-list aria-orientation=\"horizontal\">\r\n <ng-container *ngFor=\"let chip of chips\">\r\n <mat-chip (click)=\"onClickChip(chip.type)\">\r\n <ng-container [ngSwitch]=\"chip.type\">\r\n <ng-container *ngSwitchCase=\"'PROPERTY_TYPE'\">\r\n <span class=\"icon property-icon ic-property-{{chip.icon}}\"\r\n [ngStyle]=\"{'background': 'var(--' + chip.icon + ')'}\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'LISTING'\">\r\n <ng-template [ngIf]=\"chip.icon[0] !== 'mlm'\" [ngIfElse]=\"mlm\">\r\n <mat-icon class=\"listing-icon\">\r\n list\r\n </mat-icon>\r\n </ng-template>\r\n <ng-template #mlm>\r\n <mat-icon class=\"listing-icon\" svgIcon=\"opi:mlm\"></mat-icon>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'AMENITIES'\">\r\n <span class=\"icon ic-amenities-{{chip.icon[0]}}\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngFor=\"let i of chip.icon\">\r\n <span class=\"icon ic-features-{{i}}\"></span>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n {{chip.text}}\r\n </mat-chip>\r\n </ng-container>\r\n </mat-chip-list>\r\n </ng-template>\r\n </div>\r\n</div>\r\n",
2605
+ template: "<div class=\"fab-filters\">\r\n <button mat-flat-button=\"\" color=\"primary\" class=\"btn_filters\" (click)=\"openFilters()\">\r\n Filtros\r\n </button>\r\n <div class=\"filters-container\">\r\n <ng-template [ngIf]=\"chips.length > 0\">\r\n <mat-chip-list aria-orientation=\"horizontal\">\r\n <ng-container *ngFor=\"let chip of chips\">\r\n <mat-chip (click)=\"onClickChip(chip.type)\" [removable]=\"chip.type !== 'PROPERTY_TYPE' && chip.type !== 'OFFERING'\"\r\n (removed)=\"removeFilter(chip.type)\">\r\n <ng-container [ngSwitch]=\"chip.type\">\r\n <ng-container *ngSwitchCase=\"'PROPERTY_TYPE'\">\r\n <span class=\"icon property-icon ic-property-{{chip.icon}}\"\r\n [ngStyle]=\"{'background': 'var(--' + chip.icon + ')'}\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'LISTING'\">\r\n <ng-template [ngIf]=\"chip.icon[0] !== 'mlm'\" [ngIfElse]=\"mlm\">\r\n <mat-icon class=\"listing-icon\">\r\n list\r\n </mat-icon>\r\n </ng-template>\r\n <ng-template #mlm>\r\n <mat-icon class=\"listing-icon\" svgIcon=\"opi:mlm\"></mat-icon>\r\n </ng-template>\r\n </ng-container>\r\n <ng-container *ngSwitchCase=\"'AMENITIES'\">\r\n <span class=\"icon ic-amenities-{{chip.icon[0]}}\"></span>\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n <ng-container *ngFor=\"let i of chip.icon\">\r\n <span class=\"icon ic-features-{{i}}\"></span>\r\n </ng-container>\r\n </ng-container>\r\n </ng-container>\r\n {{chip.text}}\r\n <mat-icon matChipRemove *ngIf=\"chip.type !== 'PROPERTY_TYPE' && chip.type !== 'OFFERING'\">cancel</mat-icon>\r\n </mat-chip>\r\n </ng-container>\r\n </mat-chip-list>\r\n </ng-template>\r\n </div>\r\n</div>\r\n",
2594
2606
  styles: [":host{display:block;position:inherit;top:inherit;bottom:inherit;left:inherit;right:inherit;z-index:inherit;width:inherit}.fab-filters{display:flex;width:100%;border-radius:8px 0 0 8px}.fab-filters .filters-container{width:calc(100% - 64px);height:40px;padding-right:8px;box-sizing:border-box;border-radius:4px 4px 4px 0;display:flex;align-items:center;transition:150ms}.fab-filters .filters-container mat-chip-list{width:100%;height:100%;overflow:hidden}.fab-filters .filters-container mat-chip-list mat-chip{min-width:-webkit-max-content;min-width:-moz-max-content;min-width:max-content}.fab-filters ::ng-deep .filters-container mat-chip-list .mat-chip-list-wrapper{width:100%;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;padding-bottom:16px;margin:0}.fab-filters .filters-container mat-chip-list mat-chip .icon{width:24px;height:24px;font-size:16px;border-radius:50%;margin-right:8px;display:flex;align-items:center;justify-content:center}"]
2595
2607
  }] }
2596
2608
  ];
@@ -2602,7 +2614,8 @@
2602
2614
  ]; };
2603
2615
  FabFiltersComponent.propDecorators = {
2604
2616
  isOPI: [{ type: core.Input }],
2605
- mlsLabel: [{ type: core.Input }]
2617
+ mlsLabel: [{ type: core.Input }],
2618
+ filterDeleted: [{ type: core.Output }]
2606
2619
  };
2607
2620
  return FabFiltersComponent;
2608
2621
  }());
@@ -7568,8 +7581,8 @@
7568
7581
  var url = 'property/';
7569
7582
  url += this._propertyTypePipe.transform(config.propertyType, true) + "-";
7570
7583
  url += this._offeringTypePipe.transform(config.offering, ' ').replace(/ /g, '') + "-";
7571
- url += config.address.colony ? config.address.colony + "-" : '';
7572
- url += config.address.city ? config.address.city + "-" : '';
7584
+ url += config.address.colony ? Utils.removeDiacritics(config.address.colony) + "-" : '';
7585
+ url += config.address.city ? Utils.removeDiacritics(config.address.city) + "-" : '';
7573
7586
  url += config.propertyId;
7574
7587
  url = Utils.removeDiacritics(url).replace(/ /g, '-').toLowerCase();
7575
7588
  return url;