@snabcentr/client-ui 3.6.1 → 3.6.2
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.
Potentially problematic release.
This version of @snabcentr/client-ui might be problematic. Click here for more details.
- package/catalog/hover-image-carousel/hover-image-carousel.component.d.ts +5 -1
- package/esm2022/catalog/hover-image-carousel/hover-image-carousel.component.mjs +17 -4
- package/fesm2022/snabcentr-client-ui.mjs +16 -3
- package/fesm2022/snabcentr-client-ui.mjs.map +1 -1
- package/package.json +1 -1
- package/release_notes.tmp +2 -2
@@ -17,12 +17,16 @@ export declare class HoverImageCarouselComponent {
|
|
17
17
|
*/
|
18
18
|
currentIndex: WritableSignal<number>;
|
19
19
|
/**
|
20
|
-
* Обработчик события mousemove.
|
20
|
+
* Обработчик события `mousemove.silent`.
|
21
21
|
*
|
22
22
|
* @param offsetX Отступ курсора мыши по оси X от края {@link HTMLElement}.
|
23
23
|
* @param target Объект {@link HTMLElement} в котором лежат изображения
|
24
24
|
*/
|
25
25
|
private onHover;
|
26
|
+
/**
|
27
|
+
* Обработчик события `mouseleave.silent`.
|
28
|
+
*/
|
29
|
+
private onLeave;
|
26
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<HoverImageCarouselComponent, never>;
|
27
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<HoverImageCarouselComponent, "sc-hover-image-carousel", never, { "images": { "alias": "images"; "required": false; }; "isShowActions": { "alias": "isShowActions"; "required": false; }; }, {}, never, never, true, never>;
|
28
32
|
}
|
@@ -20,7 +20,7 @@ export class HoverImageCarouselComponent {
|
|
20
20
|
this.currentIndex = signal(0);
|
21
21
|
}
|
22
22
|
/**
|
23
|
-
* Обработчик события mousemove.
|
23
|
+
* Обработчик события `mousemove.silent`.
|
24
24
|
*
|
25
25
|
* @param offsetX Отступ курсора мыши по оси X от края {@link HTMLElement}.
|
26
26
|
* @param target Объект {@link HTMLElement} в котором лежат изображения
|
@@ -29,17 +29,27 @@ export class HoverImageCarouselComponent {
|
|
29
29
|
if (this.images.length <= 1 || offsetX < 0) {
|
30
30
|
return;
|
31
31
|
}
|
32
|
+
// new Event().preventDefault
|
32
33
|
const elementWidth = target.offsetWidth;
|
33
34
|
const hoverPercentage = offsetX / elementWidth;
|
34
35
|
const newIndex = Math.floor(hoverPercentage * this.images.length);
|
35
36
|
this.currentIndex.set(newIndex);
|
36
37
|
}
|
38
|
+
/**
|
39
|
+
* Обработчик события `mouseleave.silent`.
|
40
|
+
*/
|
41
|
+
onLeave() {
|
42
|
+
if (this.images.length <= 1) {
|
43
|
+
return;
|
44
|
+
}
|
45
|
+
this.currentIndex.set(0);
|
46
|
+
}
|
37
47
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: HoverImageCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: HoverImageCarouselComponent, isStandalone: true, selector: "sc-hover-image-carousel", inputs: { images: "images", isShowActions: "isShowActions" }, host: { listeners: { "mousemove.silent": "onHover($event.offsetX,$event.target)" } }, ngImport: i0, template: "<div\n class=\"overflow-hidden rounded-xl\"\n [class.mb-2]=\"images.length <= 1 && isShowActions\"\n [style.aspect-ratio]=\"'20/19'\"\n>\n <img\n [src]=\"images[currentIndex()]\"\n class=\"size-full rounded-xl object-contain\"\n />\n</div>\n\n@if (images.length > 1 && isShowActions) {\n <tui-pagination\n size=\"s\"\n [length]=\"images.length\"\n [index]=\"currentIndex()\"\n />\n}\n", dependencies: [{ kind: "component", type: TuiPagination, selector: "tui-pagination", inputs: ["length", "focusable", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: HoverImageCarouselComponent, isStandalone: true, selector: "sc-hover-image-carousel", inputs: { images: "images", isShowActions: "isShowActions" }, host: { listeners: { "mousemove.silent": "onHover($event.offsetX,$event.target)", "mouseleave.silent": "onLeave()" } }, ngImport: i0, template: "<div\n class=\"overflow-hidden rounded-xl\"\n [class.mb-2]=\"images.length <= 1 && isShowActions\"\n [style.aspect-ratio]=\"'20/19'\"\n>\n <img\n [src]=\"images[currentIndex()]\"\n class=\"size-full rounded-xl object-contain\"\n />\n</div>\n\n@if (images.length > 1 && isShowActions) {\n <tui-pagination\n size=\"s\"\n [length]=\"images.length\"\n [index]=\"currentIndex()\"\n (indexChange)=\"currentIndex.set($event)\"\n (mousemove.silent)=\"$event.stopPropagation()\"\n />\n}\n", dependencies: [{ kind: "component", type: TuiPagination, selector: "tui-pagination", inputs: ["length", "focusable", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
39
49
|
}
|
40
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: HoverImageCarouselComponent, decorators: [{
|
41
51
|
type: Component,
|
42
|
-
args: [{ selector: 'sc-hover-image-carousel',
|
52
|
+
args: [{ standalone: true, selector: 'sc-hover-image-carousel', imports: [TuiPagination], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"overflow-hidden rounded-xl\"\n [class.mb-2]=\"images.length <= 1 && isShowActions\"\n [style.aspect-ratio]=\"'20/19'\"\n>\n <img\n [src]=\"images[currentIndex()]\"\n class=\"size-full rounded-xl object-contain\"\n />\n</div>\n\n@if (images.length > 1 && isShowActions) {\n <tui-pagination\n size=\"s\"\n [length]=\"images.length\"\n [index]=\"currentIndex()\"\n (indexChange)=\"currentIndex.set($event)\"\n (mousemove.silent)=\"$event.stopPropagation()\"\n />\n}\n" }]
|
43
53
|
}], propDecorators: { images: [{
|
44
54
|
type: Input
|
45
55
|
}], isShowActions: [{
|
@@ -47,5 +57,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
47
57
|
}], onHover: [{
|
48
58
|
type: HostListener,
|
49
59
|
args: ['mousemove.silent', ['$event.offsetX', '$event.target']]
|
60
|
+
}], onLeave: [{
|
61
|
+
type: HostListener,
|
62
|
+
args: ['mouseleave.silent']
|
50
63
|
}] } });
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG92ZXItaW1hZ2UtY2Fyb3VzZWwuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xpZW50LXVpL2NhdGFsb2cvaG92ZXItaW1hZ2UtY2Fyb3VzZWwvaG92ZXItaW1hZ2UtY2Fyb3VzZWwuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvY2xpZW50LXVpL2NhdGFsb2cvaG92ZXItaW1hZ2UtY2Fyb3VzZWwvaG92ZXItaW1hZ2UtY2Fyb3VzZWwuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLFNBQVMsRUFBRSxZQUFZLEVBQUUsS0FBSyxFQUFFLE1BQU0sRUFBa0IsTUFBTSxlQUFlLENBQUM7QUFDaEgsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFFOUM7O0dBRUc7QUFRSCxNQUFNLE9BQU8sMkJBQTJCO0lBUHhDO1FBUUk7O1dBRUc7UUFFSSxXQUFNLEdBQWEsRUFBRSxDQUFDO1FBRTdCOztXQUVHO1FBRUksa0JBQWEsR0FBWSxJQUFJLENBQUM7UUFFckM7O1dBRUc7UUFDSSxpQkFBWSxHQUEyQixNQUFNLENBQUMsQ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CByb3VuZGVkLXhsIG9iamVjdC1jb250YWluXCJcbiAgICAvPlxuPC9kaXY+XG5cbkBpZiAoaW1hZ2VzLmxlbmd0aCA+IDEgJiYgaXNTaG93QWN0aW9ucykge1xuICAgIDx0dWktcGFnaW5hdGlvblxuICAgICAgICBzaXplPVwic1wiXG4gICAgICAgIFtsZW5ndGhdPVwiaW1hZ2VzLmxlbmd0aFwiXG4gICAgICAgIFtpbmRleF09XCJjdXJyZW50SW5kZXgoKVwiXG4gICAgICAgIChpbmRleENoYW5nZSk9XCJjdXJyZW50SW5kZXguc2V0KCRldmVudClcIlxuICAgICAgICAobW91c2Vtb3ZlLnNpbGVudCk9XCIkZXZlbnQuc3RvcFByb3BhZ2F0aW9uKClcIlxuICAgIC8+XG59XG4iXX0=
|
@@ -3316,7 +3316,7 @@ class HoverImageCarouselComponent {
|
|
3316
3316
|
this.currentIndex = signal(0);
|
3317
3317
|
}
|
3318
3318
|
/**
|
3319
|
-
* Обработчик события mousemove.
|
3319
|
+
* Обработчик события `mousemove.silent`.
|
3320
3320
|
*
|
3321
3321
|
* @param offsetX Отступ курсора мыши по оси X от края {@link HTMLElement}.
|
3322
3322
|
* @param target Объект {@link HTMLElement} в котором лежат изображения
|
@@ -3325,17 +3325,27 @@ class HoverImageCarouselComponent {
|
|
3325
3325
|
if (this.images.length <= 1 || offsetX < 0) {
|
3326
3326
|
return;
|
3327
3327
|
}
|
3328
|
+
// new Event().preventDefault
|
3328
3329
|
const elementWidth = target.offsetWidth;
|
3329
3330
|
const hoverPercentage = offsetX / elementWidth;
|
3330
3331
|
const newIndex = Math.floor(hoverPercentage * this.images.length);
|
3331
3332
|
this.currentIndex.set(newIndex);
|
3332
3333
|
}
|
3334
|
+
/**
|
3335
|
+
* Обработчик события `mouseleave.silent`.
|
3336
|
+
*/
|
3337
|
+
onLeave() {
|
3338
|
+
if (this.images.length <= 1) {
|
3339
|
+
return;
|
3340
|
+
}
|
3341
|
+
this.currentIndex.set(0);
|
3342
|
+
}
|
3333
3343
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: HoverImageCarouselComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
3334
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: HoverImageCarouselComponent, isStandalone: true, selector: "sc-hover-image-carousel", inputs: { images: "images", isShowActions: "isShowActions" }, host: { listeners: { "mousemove.silent": "onHover($event.offsetX,$event.target)" } }, ngImport: i0, template: "<div\n class=\"overflow-hidden rounded-xl\"\n [class.mb-2]=\"images.length <= 1 && isShowActions\"\n [style.aspect-ratio]=\"'20/19'\"\n>\n <img\n [src]=\"images[currentIndex()]\"\n class=\"size-full rounded-xl object-contain\"\n />\n</div>\n\n@if (images.length > 1 && isShowActions) {\n <tui-pagination\n size=\"s\"\n [length]=\"images.length\"\n [index]=\"currentIndex()\"\n />\n}\n", dependencies: [{ kind: "component", type: TuiPagination, selector: "tui-pagination", inputs: ["length", "focusable", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
3344
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: HoverImageCarouselComponent, isStandalone: true, selector: "sc-hover-image-carousel", inputs: { images: "images", isShowActions: "isShowActions" }, host: { listeners: { "mousemove.silent": "onHover($event.offsetX,$event.target)", "mouseleave.silent": "onLeave()" } }, ngImport: i0, template: "<div\n class=\"overflow-hidden rounded-xl\"\n [class.mb-2]=\"images.length <= 1 && isShowActions\"\n [style.aspect-ratio]=\"'20/19'\"\n>\n <img\n [src]=\"images[currentIndex()]\"\n class=\"size-full rounded-xl object-contain\"\n />\n</div>\n\n@if (images.length > 1 && isShowActions) {\n <tui-pagination\n size=\"s\"\n [length]=\"images.length\"\n [index]=\"currentIndex()\"\n (indexChange)=\"currentIndex.set($event)\"\n (mousemove.silent)=\"$event.stopPropagation()\"\n />\n}\n", dependencies: [{ kind: "component", type: TuiPagination, selector: "tui-pagination", inputs: ["length", "focusable", "size", "disabled", "activePadding", "sidePadding", "content", "index"], outputs: ["indexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
3335
3345
|
}
|
3336
3346
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: HoverImageCarouselComponent, decorators: [{
|
3337
3347
|
type: Component,
|
3338
|
-
args: [{ selector: 'sc-hover-image-carousel',
|
3348
|
+
args: [{ standalone: true, selector: 'sc-hover-image-carousel', imports: [TuiPagination], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"overflow-hidden rounded-xl\"\n [class.mb-2]=\"images.length <= 1 && isShowActions\"\n [style.aspect-ratio]=\"'20/19'\"\n>\n <img\n [src]=\"images[currentIndex()]\"\n class=\"size-full rounded-xl object-contain\"\n />\n</div>\n\n@if (images.length > 1 && isShowActions) {\n <tui-pagination\n size=\"s\"\n [length]=\"images.length\"\n [index]=\"currentIndex()\"\n (indexChange)=\"currentIndex.set($event)\"\n (mousemove.silent)=\"$event.stopPropagation()\"\n />\n}\n" }]
|
3339
3349
|
}], propDecorators: { images: [{
|
3340
3350
|
type: Input
|
3341
3351
|
}], isShowActions: [{
|
@@ -3343,6 +3353,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImpo
|
|
3343
3353
|
}], onHover: [{
|
3344
3354
|
type: HostListener,
|
3345
3355
|
args: ['mousemove.silent', ['$event.offsetX', '$event.target']]
|
3356
|
+
}], onLeave: [{
|
3357
|
+
type: HostListener,
|
3358
|
+
args: ['mouseleave.silent']
|
3346
3359
|
}] } });
|
3347
3360
|
|
3348
3361
|
/**
|