@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.
@@ -1,4 +1,4 @@
1
- import { Pipe, NgModule, Directive, ElementRef, Input, Component, Inject, Injectable, InjectionToken, Optional, Renderer2, Output, EventEmitter, ViewChild, ContentChild, TemplateRef, ChangeDetectorRef, forwardRef, Injector } from '@angular/core';
1
+ import { Pipe, NgModule, Directive, ElementRef, Input, Component, Inject, Injectable, InjectionToken, Optional, Output, EventEmitter, Renderer2, ViewChild, ContentChild, TemplateRef, ChangeDetectorRef, forwardRef, Injector } from '@angular/core';
2
2
  import { CommonModule, CurrencyPipe } from '@angular/common';
3
3
  import { LandUseEnum, PFileTypeEnum, PropertyTypeEnum, OfferingTypeEnum, StatusTypeEnum, Currency, PFile, DialogResponseType, LeadInfo, NewCompleteProperty, NewProperty, PropertyInfo, Features, Address, Amenities, AreaUnitEnum, Owner, NewPropertyLite } from '@maplander/types';
4
4
  import { __values, __assign, __extends } from 'tslib';
@@ -2303,6 +2303,7 @@ var FabFiltersComponent = /** @class */ (function () {
2303
2303
  this.METERS_TO_SQ = 10.76391042;
2304
2304
  this.chips = [];
2305
2305
  this._subscription = new Subscription();
2306
+ this.filterDeleted = new EventEmitter();
2306
2307
  }
2307
2308
  /**
2308
2309
  * @return {?}
@@ -2362,6 +2363,17 @@ var FabFiltersComponent = /** @class */ (function () {
2362
2363
  this.openFilters();
2363
2364
  }
2364
2365
  };
2366
+ /**
2367
+ * @param {?} type
2368
+ * @return {?}
2369
+ */
2370
+ FabFiltersComponent.prototype.removeFilter = /**
2371
+ * @param {?} type
2372
+ * @return {?}
2373
+ */
2374
+ function (type) {
2375
+ this.filterDeleted.emit(type);
2376
+ };
2365
2377
  /**
2366
2378
  * @private
2367
2379
  * @param {?} filter
@@ -2578,7 +2590,7 @@ var FabFiltersComponent = /** @class */ (function () {
2578
2590
  FabFiltersComponent.decorators = [
2579
2591
  { type: Component, args: [{
2580
2592
  selector: 'lib-fab-filters',
2581
- 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",
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)\" [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",
2582
2594
  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}"]
2583
2595
  }] }
2584
2596
  ];
@@ -2590,7 +2602,8 @@ var FabFiltersComponent = /** @class */ (function () {
2590
2602
  ]; };
2591
2603
  FabFiltersComponent.propDecorators = {
2592
2604
  isOPI: [{ type: Input }],
2593
- mlsLabel: [{ type: Input }]
2605
+ mlsLabel: [{ type: Input }],
2606
+ filterDeleted: [{ type: Output }]
2594
2607
  };
2595
2608
  return FabFiltersComponent;
2596
2609
  }());
@@ -7556,8 +7569,8 @@ var MarkersService = /** @class */ (function () {
7556
7569
  var url = 'property/';
7557
7570
  url += this._propertyTypePipe.transform(config.propertyType, true) + "-";
7558
7571
  url += this._offeringTypePipe.transform(config.offering, ' ').replace(/ /g, '') + "-";
7559
- url += config.address.colony ? config.address.colony + "-" : '';
7560
- url += config.address.city ? config.address.city + "-" : '';
7572
+ url += config.address.colony ? Utils.removeDiacritics(config.address.colony) + "-" : '';
7573
+ url += config.address.city ? Utils.removeDiacritics(config.address.city) + "-" : '';
7561
7574
  url += config.propertyId;
7562
7575
  url = Utils.removeDiacritics(url).replace(/ /g, '-').toLowerCase();
7563
7576
  return url;