@maplander/components 0.20.0 → 0.20.3

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.
Files changed (25) hide show
  1. package/_theming.scss +8 -0
  2. package/bundles/maplander-components.umd.js +15 -8
  3. package/bundles/maplander-components.umd.js.map +1 -1
  4. package/bundles/maplander-components.umd.min.js +2 -2
  5. package/bundles/maplander-components.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/filters/filters.module.js +3 -1
  7. package/esm2015/lib/components/property/components/multimedia-uploader/multimedia-uploader.component.js +2 -1
  8. package/esm2015/lib/components/property/components/property/property.component.js +2 -2
  9. package/esm2015/lib/components/property-card/property-card.component.js +9 -3
  10. package/esm2015/lib/components/property-card/property-card.module.js +4 -2
  11. package/esm2015/lib/utils/models/property-card-info.js +3 -1
  12. package/esm5/lib/components/filters/filters.module.js +3 -1
  13. package/esm5/lib/components/property/components/multimedia-uploader/multimedia-uploader.component.js +2 -1
  14. package/esm5/lib/components/property/components/property/property.component.js +2 -2
  15. package/esm5/lib/components/property-card/property-card.component.js +9 -3
  16. package/esm5/lib/components/property-card/property-card.module.js +4 -2
  17. package/esm5/lib/utils/models/property-card-info.js +3 -1
  18. package/fesm2015/maplander-components.js +15 -8
  19. package/fesm2015/maplander-components.js.map +1 -1
  20. package/fesm5/maplander-components.js +15 -8
  21. package/fesm5/maplander-components.js.map +1 -1
  22. package/lib/components/property-card/property-card.component.d.ts +1 -0
  23. package/lib/utils/models/property-card-info.d.ts +1 -0
  24. package/maplander-components.metadata.json +1 -1
  25. package/package.json +1 -1
@@ -15,9 +15,9 @@ import { MatFormFieldModule } from '@angular/material/form-field';
15
15
  import { MatSelectModule } from '@angular/material/select';
16
16
  import { MatDividerModule } from '@angular/material/divider';
17
17
  import { MatRippleModule, MAT_DATE_LOCALE, DateAdapter, MAT_DATE_FORMATS, NativeDateAdapter, MatNativeDateModule } from '@angular/material/core';
18
+ import { MatInputModule, MatMenuModule, MatButtonModule as MatButtonModule$1, MatIconModule as MatIconModule$1, MAT_DIALOG_DATA as MAT_DIALOG_DATA$1, MatDialogRef as MatDialogRef$1, MatDialog as MatDialog$1 } from '@angular/material';
18
19
  import { fromPromise } from 'rxjs/internal-compatibility';
19
20
  import { mergeMap, map, takeUntil } from 'rxjs/operators';
20
- import { MatMenuModule, MatButtonModule as MatButtonModule$1, MatIconModule as MatIconModule$1, MAT_DIALOG_DATA as MAT_DIALOG_DATA$1, MatDialogRef as MatDialogRef$1, MatDialog as MatDialog$1 } from '@angular/material';
21
21
  import { SnackBarService, SnackBarModule } from '@maplander/core';
22
22
  import { BreakpointObserver } from '@angular/cdk/layout';
23
23
  import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
@@ -25,7 +25,7 @@ import * as momentImported from 'moment';
25
25
  import { HttpClient } from '@angular/common/http';
26
26
  import { DomSanitizer } from '@angular/platform-browser';
27
27
  import { MatCalendar, MatDatepickerModule } from '@angular/material/datepicker';
28
- import { MatInputModule } from '@angular/material/input';
28
+ import { MatInputModule as MatInputModule$1 } from '@angular/material/input';
29
29
  import { MatCheckboxModule } from '@angular/material/checkbox';
30
30
  import { MatRadioModule } from '@angular/material/radio';
31
31
  import { MatSidenavModule } from '@angular/material/sidenav';
@@ -3441,6 +3441,7 @@ var FiltersModule = /** @class */ (function () {
3441
3441
  MatIconModule,
3442
3442
  MatButtonModule,
3443
3443
  MatDividerModule,
3444
+ MatInputModule,
3444
3445
  MarkerPriceModule.forChild(),
3445
3446
  CurrencyConverterModule.forChild()
3446
3447
  ],
@@ -3770,6 +3771,7 @@ var MultimediaUploaderComponent = /** @class */ (function () {
3770
3771
  function (text) {
3771
3772
  if (text.indexOf('https://youtu.be/') !== -1) {
3772
3773
  text = text.replace('https://youtu.be/', '');
3774
+ return text;
3773
3775
  }
3774
3776
  else if (text.indexOf('https://www.youtube.com/') !== -1) {
3775
3777
  text = text.replace('https://www.youtube.com/', '');
@@ -4613,7 +4615,7 @@ var PropertyComponent = /** @class */ (function () {
4613
4615
  * @return {?}
4614
4616
  */
4615
4617
  function () {
4616
- this.agentActions('SHOW_AGENTS');
4618
+ // this.agentActions('SHOW_AGENTS');
4617
4619
  };
4618
4620
  /**
4619
4621
  * @param {?} changes
@@ -6842,7 +6844,7 @@ var CustomDatepickerComponent = /** @class */ (function () {
6842
6844
  /** @type {?} */
6843
6845
  var MATERIAL$1 = [
6844
6846
  MatFormFieldModule,
6845
- MatInputModule,
6847
+ MatInputModule$1,
6846
6848
  MatDatepickerModule,
6847
6849
  MatButtonModule,
6848
6850
  MatIconModule
@@ -7072,7 +7074,7 @@ var MATERIAL$2 = [
7072
7074
  MatIconModule,
7073
7075
  MatButtonToggleModule,
7074
7076
  MatRadioModule,
7075
- MatInputModule,
7077
+ MatInputModule$1,
7076
7078
  MatFormFieldModule,
7077
7079
  MatSelectModule,
7078
7080
  MatSidenavModule,
@@ -7226,6 +7228,9 @@ var PropertyCardComponent = /** @class */ (function () {
7226
7228
  if (changes['marker'] && changes['marker'].currentValue) {
7227
7229
  this.info = changes['marker'].currentValue.info;
7228
7230
  }
7231
+ if (changes['showAlert'] && changes['showAlert'].currentValue) {
7232
+ this.info = changes['showAlert'].currentValue;
7233
+ }
7229
7234
  };
7230
7235
  /**
7231
7236
  * @return {?}
@@ -7333,8 +7338,8 @@ var PropertyCardComponent = /** @class */ (function () {
7333
7338
  PropertyCardComponent.decorators = [
7334
7339
  { type: Component, args: [{
7335
7340
  selector: 'lib-property-card',
7336
- template: "<div class=\"property-card\">\r\n <ng-template [ngIf]=\"!isOPI\">\r\n <div class=\"property-card__favorite\">\r\n <button class=\"favorite__button\" mat-icon-button (click)=\"favorite()\">\r\n <ng-template [ngIf]=\"isFavorite\" [ngIfElse]=\"noIsFavorite\">\r\n <mat-icon>favorite</mat-icon>\r\n </ng-template>\r\n <ng-template #noIsFavorite>\r\n <mat-icon>favorite_border</mat-icon>\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-template>\r\n <ng-template [ngIf]=\"showDiscard\">\r\n <div class=\"property-card__discard\">\r\n <button class=\"discard__button\" mat-icon-button (click)=\"discard()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </ng-template>\r\n <a routerLink=\"{{href || '/'}}\" [queryParams]=\"queryParams || null\" [target]=\"target || null\"\r\n [state]=\"state || null\"\r\n class=\"property-card__image\" (mouseover)=\"onFrontImageOver()\"\r\n (mouseleave)=\"onFrontImageLeave()\">\r\n <img [src]=\"info.image\" alt=\"Property image\" libImageError [typeImage]=\"info.type\">\r\n <ng-template [ngIf]=\"mode === 'summary'\">\r\n <div class=\"property-card__body-summary\">\r\n <h2 class=\"color--white property-card__price\">\r\n {{info.price | currency}} {{info.currency}}\r\n </h2>\r\n <p class=\"color--white property-card__type\">\r\n {{info.type | propertyType}} {{info.offering | offeringType}}\r\n </p>\r\n <p class=\"color--white property-card__address body-summary__address\">\r\n {{info.address.colony}}, {{info.address.city}}\r\n </p>\r\n </div>\r\n </ng-template>\r\n </a>\r\n <ng-template [ngIf]=\"mode === 'full'\">\r\n <div class=\"property-card__body\">\r\n <div class=\"property-card__location-title\">\r\n <h2 class=\"property-card__price\">\r\n {{info.price | currency : currency : 'symbol' : '1.0-0'}} {{info.currency}}\r\n </h2>\r\n <ng-container *ngIf=\"distance !== ''\" >\r\n <h2 class=\"property-card__location\" [hidden]=\"!distance\">\r\n {{distance}}\r\n </h2>\r\n </ng-container>\r\n </div>\r\n <p class=\"property-card__type\">\r\n {{info.type | propertyType}} {{info.offering | offeringType}}\r\n </p>\r\n <p class=\"property-card__address\">\r\n {{info.address.colony}}, {{info.address.city}}\r\n </p>\r\n <ng-template [ngIf]=\"info.features\">\r\n <div class=\"property-card__features\">\r\n <ng-template [ngIf]=\"info.features && info.features.bedrooms && info.features.bedrooms > 0\">\r\n <p class=\"property-card__feature\">\r\n <span class=\"property-card__icon ic-features-bedroom\"></span>\r\n {{info.features.bedrooms}}\r\n </p>\r\n <span class=\"property-card__divider\"></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"info.features && info.features.bathrooms && info.features.bathrooms > 0 \">\r\n <p class=\"property-card__feature\">\r\n <span class=\"property-card__icon ic-features-bathroom\"></span>\r\n {{info.features.bathrooms}}\r\n </p>\r\n <span class=\"property-card__divider\"></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"info.features && info.features.mainArea && info.features.mainArea > 0\">\r\n <p class=\"property-card__feature\">\r\n <span class=\"property-card__icon ic-features-surface\"></span>\r\n {{info.features.mainArea}}\r\n <ng-template [ngIf]=\"info.features.areaUnit && info.features.areaUnit === 'M2'\"\r\n [ngIfElse]=\"ftUnit\">\r\n m<sup>2</sup>\r\n </ng-template>\r\n <ng-template #ftUnit>\r\n sq ft\r\n </ng-template>\r\n </p>\r\n </ng-template>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </ng-template>\r\n</div>\r\n",
7337
- styles: [":host{display:block;width:calc(100% - 16px);margin:16px auto;border-radius:16px}.property-card{width:100%;border-radius:16px;position:relative}.property-card__favorite{position:absolute;top:4px;right:4px;border-radius:50%;z-index:1;width:40px;height:40px;display:flex}.favorite__button{margin:auto}.property-card__discard{position:absolute;right:8px;bottom:8px;z-index:1;width:40px;height:40px;border-radius:16px;display:flex}.discard__button{margin:auto}.property-card__image{width:100%;border-radius:16px;padding-bottom:calc(100% / 4 * 3);position:relative;text-decoration:none;display:block}.property-card__image:hover{width:calc(100% - 6px);padding-bottom:calc((100% - 6px)/ 4 * 3)}.property-card__image img{border-radius:16px;position:absolute;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.property-card__body{padding:8px;box-sizing:border-box}.property-card__body-summary{padding:8px;box-sizing:border-box;position:absolute;bottom:0;width:100%;border-radius:16px;background:linear-gradient(transparent,rgba(0,0,0,.8))}.body-summary__address{width:80%!important}.property-card__location-title{display:flex;width:100%;flex-direction:row;flex-wrap:wrap}.property-card__location{font-size:12px;margin:4px;color:#707070}@media (min-width:1200px){.property-card__location{font-size:14px}}.property-card__location:empty{width:60%;height:14px;background:#e0e0e0;border-radius:16px}.property-card__price{margin:3px 0;font-size:16px}.property-card__price:empty{width:60%;height:16px;background:#e0e0e0;border-radius:16px}.property-card__type{margin:3px 0}.property-card__type:empty{width:70%;height:16px;border-radius:16px;background:#e0e0e0}.property-card__address{margin:3px 0;color:#707070;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.property-card__address:empty{width:80%;height:16px;border-radius:16px;background:#e0e0e0}.property-card__features{display:flex;margin:6px 0 0}.property-card__feature{margin:0 8px 0 0;display:flex;align-items:center;font-size:12px;color:#707070}.property-card__divider{display:block;margin:auto 8px;width:1px;height:16px;background:#9e9e9e}.property-card__icon{width:24px;height:24px;font-size:24px;margin:0 4px 0 0;color:#bdbdbd}"]
7341
+ template: "<div class=\"property-card\">\r\n <ng-template [ngIf]=\"!isOPI\">\r\n <div class=\"property-card__favorite\">\r\n <button class=\"favorite__button\" mat-icon-button (click)=\"favorite()\">\r\n <ng-template [ngIf]=\"isFavorite\" [ngIfElse]=\"noIsFavorite\">\r\n <mat-icon>favorite</mat-icon>\r\n </ng-template>\r\n <ng-template #noIsFavorite>\r\n <mat-icon>favorite_border</mat-icon>\r\n </ng-template>\r\n </button>\r\n </div>\r\n </ng-template>\r\n <ng-template [ngIf]=\"showDiscard\">\r\n <div class=\"property-card__discard\">\r\n <button class=\"discard__button\" mat-icon-button (click)=\"discard()\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n </ng-template>\r\n <ng-template [ngIf]=\"isOPI && showAlert\">\r\n <div class=\"expiration-message\">\r\n <p>\r\n Aviso\r\n <br>\r\n Esta propiedad expirar\u00E1 el {{info.endPublishDate | libFormatDate : true : 'dd/MM/yyyy'}}\r\n </p>\r\n </div>\r\n </ng-template>\r\n <a routerLink=\"{{href || '/'}}\" [queryParams]=\"queryParams || null\" [target]=\"target || null\"\r\n [state]=\"state || null\"\r\n class=\"property-card__image\" (mouseover)=\"onFrontImageOver()\"\r\n (mouseleave)=\"onFrontImageLeave()\">\r\n <img [src]=\"info.image\" alt=\"Property image\" libImageError [typeImage]=\"info.type\">\r\n <ng-template [ngIf]=\"mode === 'summary'\">\r\n <div class=\"property-card__body-summary\">\r\n <h2 class=\"color--white property-card__price\">\r\n {{info.price | currency}} {{info.currency}}\r\n </h2>\r\n <p class=\"color--white property-card__type\">\r\n {{info.type | propertyType}} {{info.offering | offeringType}}\r\n </p>\r\n <p class=\"color--white property-card__address body-summary__address\">\r\n {{info.address.colony}}, {{info.address.city}}\r\n </p>\r\n </div>\r\n </ng-template>\r\n </a>\r\n <ng-template [ngIf]=\"mode === 'full'\">\r\n <div class=\"property-card__body\">\r\n <div class=\"property-card__location-title\">\r\n <h2 class=\"property-card__price\">\r\n {{info.price | currency : currency : 'symbol' : '1.0-0'}} {{info.currency}}\r\n </h2>\r\n <ng-container *ngIf=\"distance !== ''\" >\r\n <h2 class=\"property-card__location\" [hidden]=\"!distance\">\r\n {{distance}}\r\n </h2>\r\n </ng-container>\r\n </div>\r\n <p class=\"property-card__type\">\r\n {{info.type | propertyType}} {{info.offering | offeringType}}\r\n </p>\r\n <p class=\"property-card__address\">\r\n {{info.address.colony}}, {{info.address.city}}\r\n </p>\r\n <ng-template [ngIf]=\"info.features\">\r\n <div class=\"property-card__features\">\r\n <ng-template [ngIf]=\"info.features && info.features.bedrooms && info.features.bedrooms > 0\">\r\n <p class=\"property-card__feature\">\r\n <span class=\"property-card__icon ic-features-bedroom\"></span>\r\n {{info.features.bedrooms}}\r\n </p>\r\n <span class=\"property-card__divider\"></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"info.features && info.features.bathrooms && info.features.bathrooms > 0 \">\r\n <p class=\"property-card__feature\">\r\n <span class=\"property-card__icon ic-features-bathroom\"></span>\r\n {{info.features.bathrooms}}\r\n </p>\r\n <span class=\"property-card__divider\"></span>\r\n </ng-template>\r\n <ng-template [ngIf]=\"info.features && info.features.mainArea && info.features.mainArea > 0\">\r\n <p class=\"property-card__feature\">\r\n <span class=\"property-card__icon ic-features-surface\"></span>\r\n {{info.features.mainArea}}\r\n <ng-template [ngIf]=\"info.features.areaUnit && info.features.areaUnit === 'M2'\"\r\n [ngIfElse]=\"ftUnit\">\r\n m<sup>2</sup>\r\n </ng-template>\r\n <ng-template #ftUnit>\r\n sq ft\r\n </ng-template>\r\n </p>\r\n </ng-template>\r\n </div>\r\n </ng-template>\r\n </div>\r\n </ng-template>\r\n</div>\r\n",
7342
+ styles: [":host{display:block;width:calc(100% - 16px);margin:16px auto;border-radius:16px}.property-card{width:100%;border-radius:16px;position:relative}.property-card__favorite{position:absolute;top:4px;right:4px;border-radius:50%;z-index:1;width:40px;height:40px;display:flex}.favorite__button{margin:auto}.expiration-message{position:absolute;top:0;background-color:#fff;width:100%;height:80px;z-index:1;text-align:center;color:red;font-size:16px;margin:auto}.property-card__discard{position:absolute;right:8px;bottom:8px;z-index:1;width:40px;height:40px;border-radius:16px;display:flex}.discard__button{margin:auto}.property-card__image{width:100%;border-radius:16px;padding-bottom:calc(100% / 4 * 3);position:relative;text-decoration:none;display:block}.property-card__image:hover{width:calc(100% - 6px);padding-bottom:calc((100% - 6px)/ 4 * 3)}.property-card__image img{border-radius:16px;position:absolute;width:100%;height:100%;-o-object-fit:cover;object-fit:cover}.property-card__body{padding:8px;box-sizing:border-box}.property-card__body-summary{padding:8px;box-sizing:border-box;position:absolute;bottom:0;width:100%;border-radius:16px;background:linear-gradient(transparent,rgba(0,0,0,.8))}.body-summary__address{width:80%!important}.property-card__location-title{display:flex;width:100%;flex-direction:row;flex-wrap:wrap}.property-card__location{font-size:12px;margin:4px;color:#707070}@media (min-width:1200px){.property-card__location{font-size:14px}}.property-card__location:empty{width:60%;height:14px;background:#e0e0e0;border-radius:16px}.property-card__price{margin:3px 0;font-size:16px}.property-card__price:empty{width:60%;height:16px;background:#e0e0e0;border-radius:16px}.property-card__type{margin:3px 0}.property-card__type:empty{width:70%;height:16px;border-radius:16px;background:#e0e0e0}.property-card__address{margin:3px 0;color:#707070;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.property-card__address:empty{width:80%;height:16px;border-radius:16px;background:#e0e0e0}.property-card__features{display:flex;margin:6px 0 0}.property-card__feature{margin:0 8px 0 0;display:flex;align-items:center;font-size:12px;color:#707070}.property-card__divider{display:block;margin:auto 8px;width:1px;height:16px;background:#9e9e9e}.property-card__icon{width:24px;height:24px;font-size:24px;margin:0 4px 0 0;color:#bdbdbd}"]
7338
7343
  }] }
7339
7344
  ];
7340
7345
  /** @nocollapse */
@@ -7347,6 +7352,7 @@ var PropertyCardComponent = /** @class */ (function () {
7347
7352
  target: [{ type: Input }],
7348
7353
  queryParams: [{ type: Input }],
7349
7354
  state: [{ type: Input }],
7355
+ showAlert: [{ type: Input }],
7350
7356
  positionLatLng: [{ type: Input }],
7351
7357
  isFavorite: [{ type: Input }],
7352
7358
  currency: [{ type: Input }],
@@ -7394,7 +7400,8 @@ var PropertyCardModule = /** @class */ (function () {
7394
7400
  OfferingTypeModule,
7395
7401
  ImageErrorModule,
7396
7402
  MatIconModule,
7397
- MatButtonModule
7403
+ MatButtonModule,
7404
+ FormatDateModule
7398
7405
  ],
7399
7406
  declarations: [
7400
7407
  PropertyCardComponent