@elxjs/ui 0.0.222 → 0.0.224
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.
- package/esm2022/lib/components/carousel-bleed/carousel-bleed.component.mjs +29 -3
- package/esm2022/lib/components/toast/toast.component.mjs +3 -3
- package/fesm2022/elxjs-ui.mjs +30 -4
- package/fesm2022/elxjs-ui.mjs.map +1 -1
- package/lib/components/carousel-bleed/carousel-bleed.component.d.ts +2 -0
- package/package.json +1 -1
package/fesm2022/elxjs-ui.mjs
CHANGED
|
@@ -973,11 +973,11 @@ class EluxToast {
|
|
|
973
973
|
this.toasterService.removeToast(toast.id);
|
|
974
974
|
}
|
|
975
975
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxToast, deps: [{ token: ToasterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
976
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxToast, isStandalone: true, selector: "lib-elux-toaster", ngImport: i0, template: "<div class=\"elux-toast-container\">\n <div class=\"d-flex\" *ngFor=\"let toast of toasterService.toasts\" [ngClass]=\"['elux-toast-element', toast.type]\" (mouseenter)=\"pauseToast(toast)\" (mouseleave)=\"resumeToast(toast)\">\n <lib-elux-icon
|
|
976
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxToast, isStandalone: true, selector: "lib-elux-toaster", ngImport: i0, template: "<div class=\"elux-toast-container\">\n <div class=\"d-flex\" *ngFor=\"let toast of toasterService.toasts\" [ngClass]=\"['elux-toast-element', toast.type]\" (mouseenter)=\"pauseToast(toast)\" (mouseleave)=\"resumeToast(toast)\">\n <lib-elux-icon [color]=\"toast.iconColor\" [icon]=\"toast.iconName\" size=\"20\" sizeType=\"px\"></lib-elux-icon>\n <div [innerHTML]=\"toast.message\" class=\"toast-message\"></div>\n <lib-elux-icon (click)=\"closeToast(toast)\" class=\"toast-close cursor-pointer\" [color]=\"toast.iconColor\" icon=\"Close.svg\" size=\"20\" sizeType=\"px\"></lib-elux-icon>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host .elux-toast-container{position:fixed;top:80px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;z-index:20}@media (max-width: 768px){:host .elux-toast-container{width:90%}}:host .elux-toast-element{margin:10px 0;padding:12px;border-radius:5px;border:none;display:flex;animation:fadein .5s forwards;box-shadow:none;position:relative;gap:6px}:host .toast-message{margin-top:2px;margin-right:24px}:host .toast-close{position:absolute;top:2px;right:4px}:host .cursor-pointer{cursor:pointer}:host .success{color:#0c5f29;background-color:#edf8f1}:host .error{color:#9c231c;background-color:#fff3f2}:host .warning{color:#b19459;background-color:#fff1d5}:host .info{color:#557cb3;background-color:#ddebff}@keyframes fadein{0%{opacity:0}to{opacity:1}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
977
977
|
}
|
|
978
978
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxToast, decorators: [{
|
|
979
979
|
type: Component,
|
|
980
|
-
args: [{ selector: 'lib-elux-toaster', standalone: true, imports: [CommonModule, EluxIcon], template: "<div class=\"elux-toast-container\">\n <div class=\"d-flex\" *ngFor=\"let toast of toasterService.toasts\" [ngClass]=\"['elux-toast-element', toast.type]\" (mouseenter)=\"pauseToast(toast)\" (mouseleave)=\"resumeToast(toast)\">\n <lib-elux-icon
|
|
980
|
+
args: [{ selector: 'lib-elux-toaster', standalone: true, imports: [CommonModule, EluxIcon], template: "<div class=\"elux-toast-container\">\n <div class=\"d-flex\" *ngFor=\"let toast of toasterService.toasts\" [ngClass]=\"['elux-toast-element', toast.type]\" (mouseenter)=\"pauseToast(toast)\" (mouseleave)=\"resumeToast(toast)\">\n <lib-elux-icon [color]=\"toast.iconColor\" [icon]=\"toast.iconName\" size=\"20\" sizeType=\"px\"></lib-elux-icon>\n <div [innerHTML]=\"toast.message\" class=\"toast-message\"></div>\n <lib-elux-icon (click)=\"closeToast(toast)\" class=\"toast-close cursor-pointer\" [color]=\"toast.iconColor\" icon=\"Close.svg\" size=\"20\" sizeType=\"px\"></lib-elux-icon>\n </div>\n</div>\n", styles: [".display{font-family:Electrolux Sans;font-size:48px;font-weight:700;line-height:56px}.heading-1{font-family:Electrolux Sans;font-size:34px;font-weight:700;line-height:40px}.heading-2{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}@media screen and (max-width: 768px){.display{font-family:Electrolux Sans;font-size:40px;font-weight:700;line-height:46px}.heading-1{font-family:Electrolux Sans;font-size:28px;font-weight:600;line-height:32px}.heading-2{font-family:Electrolux Sans;font-size:24px;font-weight:600;line-height:28px}.heading-3{font-family:Electrolux Sans;font-size:20px;font-weight:600;line-height:24px}.subtitle-1{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:20px}.body{font-family:Electrolux Sans;font-size:16px;font-weight:400;line-height:21px}.caption{font-family:Electrolux Sans;font-size:14px;font-weight:400;line-height:normal}.links{font-family:Electrolux Sans;font-size:16px;font-weight:600;line-height:normal;text-decoration-line:underline}}:host .elux-toast-container{position:fixed;top:80px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;z-index:20}@media (max-width: 768px){:host .elux-toast-container{width:90%}}:host .elux-toast-element{margin:10px 0;padding:12px;border-radius:5px;border:none;display:flex;animation:fadein .5s forwards;box-shadow:none;position:relative;gap:6px}:host .toast-message{margin-top:2px;margin-right:24px}:host .toast-close{position:absolute;top:2px;right:4px}:host .cursor-pointer{cursor:pointer}:host .success{color:#0c5f29;background-color:#edf8f1}:host .error{color:#9c231c;background-color:#fff3f2}:host .warning{color:#b19459;background-color:#fff1d5}:host .info{color:#557cb3;background-color:#ddebff}@keyframes fadein{0%{opacity:0}to{opacity:1}}\n"] }]
|
|
981
981
|
}], ctorParameters: () => [{ type: ToasterService }] });
|
|
982
982
|
|
|
983
983
|
class EluxDataTable {
|
|
@@ -2945,6 +2945,7 @@ class EluxCarouselBleedComponent {
|
|
|
2945
2945
|
this.currentIndex = maxIndex;
|
|
2946
2946
|
}
|
|
2947
2947
|
this.updateTransform();
|
|
2948
|
+
this.scrollActiveDotIntoView(this.getCurrentDotIndex());
|
|
2948
2949
|
// Força detecção de mudanças para atualizar dots
|
|
2949
2950
|
if (window.ng && window.ng.getInjector) {
|
|
2950
2951
|
// Angular DevTools presente, não faz nada
|
|
@@ -2960,6 +2961,7 @@ class EluxCarouselBleedComponent {
|
|
|
2960
2961
|
this.calculateDimensions();
|
|
2961
2962
|
this.updateLimits();
|
|
2962
2963
|
this.updateTransform();
|
|
2964
|
+
this.scrollActiveDotIntoView(this.getCurrentDotIndex());
|
|
2963
2965
|
});
|
|
2964
2966
|
}
|
|
2965
2967
|
setItemWidths() {
|
|
@@ -3222,6 +3224,7 @@ class EluxCarouselBleedComponent {
|
|
|
3222
3224
|
const targetDot = Math.min(currentDot + 1, pageCount - 1);
|
|
3223
3225
|
this.currentIndex = this.getPageStart(targetDot);
|
|
3224
3226
|
this.updateTransform();
|
|
3227
|
+
this.scrollActiveDotIntoView(targetDot);
|
|
3225
3228
|
this.nextClickEventEmitter.emit();
|
|
3226
3229
|
}
|
|
3227
3230
|
}
|
|
@@ -3234,6 +3237,7 @@ class EluxCarouselBleedComponent {
|
|
|
3234
3237
|
const targetDot = Math.max(currentDot - 1, 0);
|
|
3235
3238
|
this.currentIndex = this.getPageStart(targetDot);
|
|
3236
3239
|
this.updateTransform();
|
|
3240
|
+
this.scrollActiveDotIntoView(targetDot);
|
|
3237
3241
|
this.previousClickEventEmitter.emit();
|
|
3238
3242
|
}
|
|
3239
3243
|
}
|
|
@@ -3244,6 +3248,7 @@ class EluxCarouselBleedComponent {
|
|
|
3244
3248
|
newIndex = maxIndex;
|
|
3245
3249
|
this.currentIndex = newIndex;
|
|
3246
3250
|
this.updateTransform();
|
|
3251
|
+
this.scrollActiveDotIntoView(dotIndex);
|
|
3247
3252
|
this.dotClickEventEmitter.emit();
|
|
3248
3253
|
}
|
|
3249
3254
|
snapToNearestItem() {
|
|
@@ -3281,6 +3286,7 @@ class EluxCarouselBleedComponent {
|
|
|
3281
3286
|
targetIndex = Math.max(0, Math.min(targetIndex, maxIndex));
|
|
3282
3287
|
this.currentIndex = targetIndex;
|
|
3283
3288
|
this.updateTransform();
|
|
3289
|
+
this.scrollActiveDotIntoView(this.getCurrentDotIndex());
|
|
3284
3290
|
}
|
|
3285
3291
|
getDotsArray() {
|
|
3286
3292
|
return Array(this.getPageCount());
|
|
@@ -3294,6 +3300,22 @@ class EluxCarouselBleedComponent {
|
|
|
3294
3300
|
}
|
|
3295
3301
|
return 0;
|
|
3296
3302
|
}
|
|
3303
|
+
scrollActiveDotIntoView(index) {
|
|
3304
|
+
setTimeout(() => {
|
|
3305
|
+
const dotsContainer = this.dotsContainer?.nativeElement;
|
|
3306
|
+
if (!dotsContainer)
|
|
3307
|
+
return;
|
|
3308
|
+
const dots = dotsContainer.getElementsByClassName('c-carousel-fixed-dot');
|
|
3309
|
+
if (!dots || !dots[index])
|
|
3310
|
+
return;
|
|
3311
|
+
const activeDot = dots[index];
|
|
3312
|
+
const targetScrollLeft = activeDot.offsetLeft - (dotsContainer.clientWidth / 2) + (activeDot.offsetWidth / 2);
|
|
3313
|
+
dotsContainer.scrollTo({
|
|
3314
|
+
left: Math.max(0, targetScrollLeft),
|
|
3315
|
+
behavior: 'smooth',
|
|
3316
|
+
});
|
|
3317
|
+
});
|
|
3318
|
+
}
|
|
3297
3319
|
updateTransform() {
|
|
3298
3320
|
const itemStep = this.itemWidth + this.gap;
|
|
3299
3321
|
this.translateX = -this.currentIndex * itemStep;
|
|
@@ -3321,13 +3343,14 @@ class EluxCarouselBleedComponent {
|
|
|
3321
3343
|
goToFirstItem() {
|
|
3322
3344
|
this.currentIndex = 0;
|
|
3323
3345
|
this.updateTransform();
|
|
3346
|
+
this.scrollActiveDotIntoView(0);
|
|
3324
3347
|
}
|
|
3325
3348
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselBleedComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3326
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselBleedComponent, isStandalone: true, selector: "lib-elux-carousel-bleed", inputs: { itemWidth: "itemWidth", gap: "gap", title: "title", theme: "theme" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "bleedShell", first: true, predicate: ["bleedShell"], descendants: true }], ngImport: i0, template: "<div\n class=\"c-carousel-fixed-shell\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n #bleedShell\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-fixed-dots\">\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-fixed-shell.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-fixed-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:7px;height:7px;border-radius:50%;background:var(--carousel-dot-inactive);transition:background .3s;cursor:pointer;display:inline-block}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{width:10px;height:10px;background:var(--carousel-dot-active)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
3349
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: EluxCarouselBleedComponent, isStandalone: true, selector: "lib-elux-carousel-bleed", inputs: { itemWidth: "itemWidth", gap: "gap", title: "title", theme: "theme" }, outputs: { previousClickEventEmitter: "previousClickEventEmitter", nextClickEventEmitter: "nextClickEventEmitter", dotClickEventEmitter: "dotClickEventEmitter" }, queries: [{ propertyName: "items", predicate: ["carouselItem"], read: ElementRef }], viewQueries: [{ propertyName: "slidesContainer", first: true, predicate: ["slidesContainer"], descendants: true }, { propertyName: "bleedShell", first: true, predicate: ["bleedShell"], descendants: true }, { propertyName: "dotsContainer", first: true, predicate: ["dotsContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"c-carousel-fixed-shell\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n #bleedShell\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-fixed-dots\" #dotsContainer>\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-fixed-shell.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px;min-width:0}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-fixed-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px;min-width:0;white-space:nowrap;position:relative;scroll-behavior:smooth}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:7px;height:7px;border-radius:50%;background:var(--carousel-dot-inactive);transition:background .3s;cursor:pointer;display:inline-block;flex-shrink:0}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{width:10px;height:10px;background:var(--carousel-dot-active)}@media (max-width: 768px){.c-carousel-fixed-footer .c-carousel-fixed-dots{margin:0 12px;max-width:100px;overflow:hidden}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: EluxIcon, selector: "lib-elux-icon", inputs: ["color", "useSubscription", "icon", "description", "size", "height", "width", "sizeType"] }] }); }
|
|
3327
3350
|
}
|
|
3328
3351
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: EluxCarouselBleedComponent, decorators: [{
|
|
3329
3352
|
type: Component,
|
|
3330
|
-
args: [{ standalone: true, selector: 'lib-elux-carousel-bleed', imports: [CommonModule, EluxIcon], template: "<div\n class=\"c-carousel-fixed-shell\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n #bleedShell\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-fixed-dots\">\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-fixed-shell.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-fixed-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:7px;height:7px;border-radius:50%;background:var(--carousel-dot-inactive);transition:background .3s;cursor:pointer;display:inline-block}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{width:10px;height:10px;background:var(--carousel-dot-active)}\n"] }]
|
|
3353
|
+
args: [{ standalone: true, selector: 'lib-elux-carousel-bleed', imports: [CommonModule, EluxIcon], template: "<div\n class=\"c-carousel-fixed-shell\"\n [class.theme-1]=\"theme === 'theme1'\"\n [class.theme-2]=\"theme === 'theme2'\"\n #bleedShell\n>\n <ng-template #prevNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.prev]=\"true\"\n [disabled]=\"!canGoPrevious()\"\n title=\"P\u00E1gina anterior\"\n aria-label=\"P\u00E1gina anterior\"\n (click)=\"prevPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Left.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <ng-template #nextNav>\n <button\n class=\"c-carousel-fixed-nav\"\n [class.next]=\"true\"\n [disabled]=\"!canGoNext()\"\n title=\"Pr\u00F3xima p\u00E1gina\"\n aria-label=\"Pr\u00F3xima p\u00E1gina\"\n (click)=\"nextPage()\"\n >\n <lib-elux-icon\n [icon]=\"'Chevron_Right.svg'\"\n [size]=\"'16'\"\n [sizeType]=\"'px'\"\n [color]=\"'#020F2E'\"\n ></lib-elux-icon>\n </button>\n </ng-template>\n\n <div *ngIf=\"title\" class=\"c-carousel-fixed-header\">\n <div class=\"c-carousel-fixed-header-inner\">\n <div class=\"c-carousel-fixed-title\">\n {{ title }}\n </div>\n <div class=\"c-carousel-fixed-controls\" *ngIf=\"getDotsArray().length > 1\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </div>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-container\">\n <div\n class=\"c-carousel-fixed-slides\"\n #slidesContainer\n [style.transform]=\"'translateX(' + translateX + 'px)'\"\n (pointerdown)=\"onPointerDown($event)\"\n (pointermove)=\"onPointerMove($event)\"\n (pointerup)=\"onPointerUp($event)\"\n (pointercancel)=\"onPointerCancel($event)\"\n >\n <ng-content></ng-content>\n </div>\n </div>\n\n <div class=\"c-carousel-fixed-footer\" *ngIf=\"getDotsArray().length > 1\">\n <div class=\"c-carousel-fixed-controls\">\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"prevNav\"\n ></ng-container>\n </ng-container>\n\n <div class=\"c-carousel-fixed-dots\" #dotsContainer>\n <ng-container *ngFor=\"let dot of getDotsArray(); let idx = index\">\n <span\n class=\"c-carousel-fixed-dot\"\n [class.active]=\"idx === getCurrentDotIndex()\"\n (click)=\"goToDot(idx)\"\n >\n </span>\n </ng-container>\n </div>\n\n <ng-container *ngIf=\"title == ''\">\n <ng-container\n *ngTemplateOutlet=\"nextNav\"\n ></ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".c-carousel-fixed-shell{position:relative;--carousel-nav-inactive-bg: #DCE3E7;--carousel-nav-active-bg: #D6DEE3;--carousel-dot-active: #3D5275;--carousel-dot-inactive: #6F7F99}.c-carousel-fixed-shell.theme-2{--carousel-nav-inactive-bg: #F0F1F2;--carousel-nav-active-bg: #E9EBED;--carousel-dot-active: #6A6A6A;--carousel-dot-inactive: #8D8D8D}.c-carousel-fixed-controls{display:flex;align-items:center;gap:12px;min-width:0}.c-carousel-fixed-nav{background:none;border:none;cursor:pointer;width:24px;height:24px;padding:0;border-radius:50%;background-color:var(--carousel-nav-active-bg);transition:all ease-in-out .2s;z-index:2;display:inline-flex;align-items:center;justify-content:center}.c-carousel-fixed-nav:hover:not(:disabled){transform:scale(1.2)}.c-carousel-fixed-nav:disabled{opacity:1;background-color:var(--carousel-nav-inactive-bg);cursor:not-allowed}.c-carousel-fixed-nav:disabled ::ng-deep span{opacity:.3}.c-carousel-fixed-nav:disabled:hover{transform:none}.c-carousel-fixed-nav ::ng-deep span{display:block}.c-carousel-fixed-header{margin-bottom:32px}@media (min-width: 992px){.c-carousel-fixed-header{margin-bottom:40px}}.c-carousel-fixed-header .c-carousel-fixed-header-inner{display:flex;align-items:center;justify-content:space-between;gap:16px}.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:20px;font-weight:600;line-height:24px;color:#011e41}@media (min-width: 992px){.c-carousel-fixed-header .c-carousel-fixed-header-inner .c-carousel-fixed-title{font-size:32px;line-height:35px}}.c-carousel-fixed-container{overflow-x:hidden;width:calc(100vw - var(--scrollbar-width, 0px));margin-left:calc(-1 * var(--left-offset, 0px));padding-left:var(--left-offset, 0px)}.c-carousel-fixed-slides{display:flex;transition:transform .5s ease-out;touch-action:pan-y;cursor:default;will-change:transform}:host ::ng-deep .c-carousel-fixed-item{cursor:grab}:host ::ng-deep .c-carousel-fixed-item:active{cursor:grabbing}.c-carousel-fixed-footer{display:flex;justify-content:center;margin-top:32px}@media (min-width: 992px){.c-carousel-fixed-footer{margin-top:40px}}.c-carousel-fixed-footer .c-carousel-fixed-dots{display:flex;align-items:center;gap:8px;margin:0 8px;min-width:0;white-space:nowrap;position:relative;scroll-behavior:smooth}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot{width:7px;height:7px;border-radius:50%;background:var(--carousel-dot-inactive);transition:background .3s;cursor:pointer;display:inline-block;flex-shrink:0}.c-carousel-fixed-footer .c-carousel-fixed-dots .c-carousel-fixed-dot.active{width:10px;height:10px;background:var(--carousel-dot-active)}@media (max-width: 768px){.c-carousel-fixed-footer .c-carousel-fixed-dots{margin:0 12px;max-width:100px;overflow:hidden}}\n"] }]
|
|
3331
3354
|
}], ctorParameters: () => [{ type: i0.Renderer2 }], propDecorators: { items: [{
|
|
3332
3355
|
type: ContentChildren,
|
|
3333
3356
|
args: ['carouselItem', { read: ElementRef }]
|
|
@@ -3337,6 +3360,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImpo
|
|
|
3337
3360
|
}], bleedShell: [{
|
|
3338
3361
|
type: ViewChild,
|
|
3339
3362
|
args: ['bleedShell', { static: false }]
|
|
3363
|
+
}], dotsContainer: [{
|
|
3364
|
+
type: ViewChild,
|
|
3365
|
+
args: ['dotsContainer']
|
|
3340
3366
|
}], itemWidth: [{
|
|
3341
3367
|
type: Input
|
|
3342
3368
|
}], gap: [{
|