@wizishop/angular-components 15.1.9 → 15.1.11
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/esm2020/lib/directives/scroll-to/scroll-to.directive.mjs +13 -4
- package/fesm2015/wizishop-angular-components.mjs +11 -2
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +11 -2
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/directives/scroll-to/scroll-to.directive.d.ts +3 -1
- package/package.json +1 -1
- package/wizishop-angular-components-15.1.11.tgz +0 -0
- package/wizishop-angular-components-15.1.9.tgz +0 -0
|
@@ -937,13 +937,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
937
937
|
}] } });
|
|
938
938
|
|
|
939
939
|
class ScrollToDirective {
|
|
940
|
+
constructor() {
|
|
941
|
+
this.scrollConfig = { behavior: "smooth", block: "start", inline: "nearest" };
|
|
942
|
+
this.cursor = 'pointer';
|
|
943
|
+
}
|
|
940
944
|
onClick() {
|
|
941
945
|
const element = document.getElementById(this.elementId);
|
|
942
|
-
element?.scrollIntoView(
|
|
946
|
+
element?.scrollIntoView(this.scrollConfig);
|
|
943
947
|
}
|
|
944
948
|
}
|
|
945
949
|
ScrollToDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ScrollToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
946
|
-
ScrollToDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.1", type: ScrollToDirective, isStandalone: true, selector: "[wacScrollTo]", inputs: { elementId: "elementId" }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
950
|
+
ScrollToDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.1", type: ScrollToDirective, isStandalone: true, selector: "[wacScrollTo]", inputs: { elementId: "elementId", scrollConfig: "scrollConfig" }, host: { listeners: { "click": "onClick()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 });
|
|
947
951
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ScrollToDirective, decorators: [{
|
|
948
952
|
type: Directive,
|
|
949
953
|
args: [{
|
|
@@ -952,9 +956,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
952
956
|
}]
|
|
953
957
|
}], propDecorators: { elementId: [{
|
|
954
958
|
type: Input
|
|
959
|
+
}], scrollConfig: [{
|
|
960
|
+
type: Input
|
|
955
961
|
}], onClick: [{
|
|
956
962
|
type: HostListener,
|
|
957
963
|
args: ['click']
|
|
964
|
+
}], cursor: [{
|
|
965
|
+
type: HostBinding,
|
|
966
|
+
args: ['style.cursor']
|
|
958
967
|
}] } });
|
|
959
968
|
|
|
960
969
|
const directives$2 = [
|