ctt-puro 0.66.3 → 0.66.5

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.
@@ -4019,12 +4019,12 @@ class MapperService {
4019
4019
  return false;
4020
4020
  }
4021
4021
  }
4022
- buildUrl(linkValue) {
4022
+ buildUrl(linkValue, linkType) {
4023
4023
  if (!linkValue)
4024
4024
  return '';
4025
- // Si es restaurante, NO añadir prefijo de site
4026
4025
  const isRestaurant = /restaurante|restaurant/i.test(linkValue);
4027
- if (isRestaurant) {
4026
+ // Caso especial: restaurant SIN linkType → no prefijo
4027
+ if (isRestaurant && !linkType) {
4028
4028
  return linkValue;
4029
4029
  }
4030
4030
  let siteUrl = '';
@@ -5843,7 +5843,7 @@ class MapperService {
5843
5843
  ?.filter((item) => item.active)
5844
5844
  ?.map((link) => ({
5845
5845
  label: link?.name,
5846
- url: this.buildUrl(link?.linkValue),
5846
+ url: this.buildUrl(link?.linkValue, link?.linkType),
5847
5847
  linkType: 'internal',
5848
5848
  icon: link?.icon,
5849
5849
  mobile: link?.mobile,
@@ -5852,7 +5852,7 @@ class MapperService {
5852
5852
  ?.filter((item) => item.active && !item.mobile)
5853
5853
  ?.map((link) => ({
5854
5854
  label: link?.name,
5855
- url: this.buildUrl(link?.linkValue),
5855
+ url: this.buildUrl(link?.linkValue, link?.linkType),
5856
5856
  linkType: 'internal',
5857
5857
  icon: link?.icon,
5858
5858
  mobile: link?.mobile,
@@ -5865,7 +5865,7 @@ class MapperService {
5865
5865
  ?.filter((item) => item.active && item.mobile)
5866
5866
  ?.map((link) => ({
5867
5867
  label: link?.name,
5868
- url: this.buildUrl(link?.linkValue),
5868
+ url: this.buildUrl(link?.linkValue, link?.linkType),
5869
5869
  linkType: 'internal',
5870
5870
  })),
5871
5871
  };
@@ -8057,11 +8057,11 @@ class PuroInfoIntroComponent {
8057
8057
  this.showDescription = !this.showDescription;
8058
8058
  }
8059
8059
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PuroInfoIntroComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
8060
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: PuroInfoIntroComponent, isStandalone: true, selector: "lib-puro-info-intro", inputs: { title: "title", pretitle: "pretitle", description: "description", descriptionHidden: "descriptionHidden", ndDescription: "ndDescription", buttons: "buttons", seeMore: "seeMore", seeLess: "seeLess", backgroundImg: "backgroundImg", tags: "tags", textColors: "textColors" }, ngImport: i0, template: "<section\n class=\"moments moments--withTopGraphic generalMargin\"\n [class.has-custom-bg]=\"hasCustomBg\"\n [style.--bg-url]=\"hasCustomBg ? cssBgUrl : null\"\n>\n <div class=\"moments__container\">\n @if (pretitle) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.pretitle || 'span'\"\n cssClass=\"moments__title\"\n [color]=\"textColors?.pretitle\"\n [content]=\"pretitle\"\n ></lib-puro-dynamic-heading>\n }\n @if (title) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.title || 'h2'\"\n cssClass=\"moments__heading\"\n [color]=\"textColors?.title\"\n [content]=\"title\"\n ></lib-puro-dynamic-heading>\n }\n <div class=\"moments__paragraph\">\n @if (description) {\n <p [innerHTML]=\"description\"></p>\n }\n @if (descriptionHidden) {\n <span\n class=\"more-content\"\n [innerHTML]=\"descriptionHidden\"\n ></span>\n }\n @if (ndDescription) {\n <div [innerHTML]=\"ndDescription\"></div>\n }\n </div>\n <div class=\"btn__group\">\n @if (buttons) {\n @for (button of buttons; track $index) {\n <a\n [href]=\"button.url\"\n [linkType]=\"button.linkType\"\n class=\"btn btn__primary--outline\"\n [attr.aria-label]=\"button.label\"\n >\n <span>{{ button.label }}</span>\n </a>\n\n }\n }\n @if (seeLess && seeMore && descriptionHidden) {\n <button\n class=\"btn btn__primary--outline btn__moreLess\"\n (click)=\"toggleDescription()\"\n >\n {{ showDescription ? seeLess : seeMore }}\n </button>\n }\n </div>\n </div>\n</section>\n", styles: [".moments--withTopGraphic.has-custom-bg.moments--withTopGraphic:before{background-image:var(--bg-url)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: PuroLinkTypeDirective, selector: "[linkType]", inputs: ["linkType", "href", "modalClick"], outputs: ["bookClick", "anchorClicked"] }, { kind: "component", type: PuroDynamicHeadingComponent, selector: "lib-puro-dynamic-heading", inputs: ["tag", "wrapper", "cssClass", "content", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8060
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.12", type: PuroInfoIntroComponent, isStandalone: true, selector: "lib-puro-info-intro", inputs: { title: "title", pretitle: "pretitle", description: "description", descriptionHidden: "descriptionHidden", ndDescription: "ndDescription", buttons: "buttons", seeMore: "seeMore", seeLess: "seeLess", backgroundImg: "backgroundImg", tags: "tags", textColors: "textColors" }, ngImport: i0, template: "<section\n class=\"moments moments--withTopGraphic generalMargin\"\n [class.has-custom-bg]=\"hasCustomBg\"\n [style.--bg-url]=\"hasCustomBg ? cssBgUrl : null\"\n>\n <div class=\"moments__container\">\n @if (pretitle) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.pretitle || 'span'\"\n cssClass=\"moments__title\"\n [color]=\"textColors?.pretitle\"\n [content]=\"pretitle\"\n ></lib-puro-dynamic-heading>\n }\n @if (title) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.title || 'h2'\"\n cssClass=\"moments__heading\"\n [color]=\"textColors?.title\"\n [content]=\"title\"\n ></lib-puro-dynamic-heading>\n }\n <div class=\"moments__paragraph\">\n @if (description) {\n <p [innerHTML]=\"description\"></p>\n }\n @if (descriptionHidden) {\n <span\n class=\"more-content\"\n [innerHTML]=\"descriptionHidden\"\n ></span>\n }\n @if (ndDescription) {\n <div [innerHTML]=\"ndDescription\"></div>\n }\n </div>\n <div class=\"btn__group\">\n @if (buttons) {\n @for (button of buttons; track $index) {\n <a\n [href]=\"button.url || button.linkValue\"\n [linkType]=\"button.linkType\"\n class=\"btn btn__primary--outline\"\n [attr.aria-label]=\"button.label\"\n >\n <span>{{ button.label }}</span>\n </a>\n\n }\n }\n @if (seeLess && seeMore && descriptionHidden) {\n <button\n class=\"btn btn__primary--outline btn__moreLess\"\n (click)=\"toggleDescription()\"\n >\n {{ showDescription ? seeLess : seeMore }}\n </button>\n }\n </div>\n </div>\n</section>\n", styles: [".moments--withTopGraphic.has-custom-bg.moments--withTopGraphic:before{background-image:var(--bg-url)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: PuroLinkTypeDirective, selector: "[linkType]", inputs: ["linkType", "href", "modalClick"], outputs: ["bookClick", "anchorClicked"] }, { kind: "component", type: PuroDynamicHeadingComponent, selector: "lib-puro-dynamic-heading", inputs: ["tag", "wrapper", "cssClass", "content", "color"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
8061
8061
  }
8062
8062
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: PuroInfoIntroComponent, decorators: [{
8063
8063
  type: Component,
8064
- args: [{ selector: 'lib-puro-info-intro', standalone: true, imports: [CommonModule, PuroLinkTypeDirective, PuroDynamicHeadingComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<section\n class=\"moments moments--withTopGraphic generalMargin\"\n [class.has-custom-bg]=\"hasCustomBg\"\n [style.--bg-url]=\"hasCustomBg ? cssBgUrl : null\"\n>\n <div class=\"moments__container\">\n @if (pretitle) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.pretitle || 'span'\"\n cssClass=\"moments__title\"\n [color]=\"textColors?.pretitle\"\n [content]=\"pretitle\"\n ></lib-puro-dynamic-heading>\n }\n @if (title) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.title || 'h2'\"\n cssClass=\"moments__heading\"\n [color]=\"textColors?.title\"\n [content]=\"title\"\n ></lib-puro-dynamic-heading>\n }\n <div class=\"moments__paragraph\">\n @if (description) {\n <p [innerHTML]=\"description\"></p>\n }\n @if (descriptionHidden) {\n <span\n class=\"more-content\"\n [innerHTML]=\"descriptionHidden\"\n ></span>\n }\n @if (ndDescription) {\n <div [innerHTML]=\"ndDescription\"></div>\n }\n </div>\n <div class=\"btn__group\">\n @if (buttons) {\n @for (button of buttons; track $index) {\n <a\n [href]=\"button.url\"\n [linkType]=\"button.linkType\"\n class=\"btn btn__primary--outline\"\n [attr.aria-label]=\"button.label\"\n >\n <span>{{ button.label }}</span>\n </a>\n\n }\n }\n @if (seeLess && seeMore && descriptionHidden) {\n <button\n class=\"btn btn__primary--outline btn__moreLess\"\n (click)=\"toggleDescription()\"\n >\n {{ showDescription ? seeLess : seeMore }}\n </button>\n }\n </div>\n </div>\n</section>\n", styles: [".moments--withTopGraphic.has-custom-bg.moments--withTopGraphic:before{background-image:var(--bg-url)}\n"] }]
8064
+ args: [{ selector: 'lib-puro-info-intro', standalone: true, imports: [CommonModule, PuroLinkTypeDirective, PuroDynamicHeadingComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<section\n class=\"moments moments--withTopGraphic generalMargin\"\n [class.has-custom-bg]=\"hasCustomBg\"\n [style.--bg-url]=\"hasCustomBg ? cssBgUrl : null\"\n>\n <div class=\"moments__container\">\n @if (pretitle) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.pretitle || 'span'\"\n cssClass=\"moments__title\"\n [color]=\"textColors?.pretitle\"\n [content]=\"pretitle\"\n ></lib-puro-dynamic-heading>\n }\n @if (title) {\n <lib-puro-dynamic-heading\n [tag]=\"tags?.title || 'h2'\"\n cssClass=\"moments__heading\"\n [color]=\"textColors?.title\"\n [content]=\"title\"\n ></lib-puro-dynamic-heading>\n }\n <div class=\"moments__paragraph\">\n @if (description) {\n <p [innerHTML]=\"description\"></p>\n }\n @if (descriptionHidden) {\n <span\n class=\"more-content\"\n [innerHTML]=\"descriptionHidden\"\n ></span>\n }\n @if (ndDescription) {\n <div [innerHTML]=\"ndDescription\"></div>\n }\n </div>\n <div class=\"btn__group\">\n @if (buttons) {\n @for (button of buttons; track $index) {\n <a\n [href]=\"button.url || button.linkValue\"\n [linkType]=\"button.linkType\"\n class=\"btn btn__primary--outline\"\n [attr.aria-label]=\"button.label\"\n >\n <span>{{ button.label }}</span>\n </a>\n\n }\n }\n @if (seeLess && seeMore && descriptionHidden) {\n <button\n class=\"btn btn__primary--outline btn__moreLess\"\n (click)=\"toggleDescription()\"\n >\n {{ showDescription ? seeLess : seeMore }}\n </button>\n }\n </div>\n </div>\n</section>\n", styles: [".moments--withTopGraphic.has-custom-bg.moments--withTopGraphic:before{background-image:var(--bg-url)}\n"] }]
8065
8065
  }], propDecorators: { title: [{
8066
8066
  type: Input
8067
8067
  }], pretitle: [{