barsa-novin-ray-core 2.2.72 → 2.2.73
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/directives/splide-slider.directive.mjs +16 -6
- package/esm2022/lib/root-portal/root-portal.component.mjs +25 -7
- package/esm2022/lib/services/portal.service.mjs +5 -1
- package/fesm2022/barsa-novin-ray-core.mjs +43 -11
- package/fesm2022/barsa-novin-ray-core.mjs.map +1 -1
- package/lib/directives/splide-slider.directive.d.ts +1 -0
- package/lib/root-portal/root-portal.component.d.ts +2 -0
- package/lib/services/portal.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3363,6 +3363,10 @@ class PortalService {
|
|
|
3363
3363
|
loadMo(id, typedefId) {
|
|
3364
3364
|
return this.apiService.loadPortalPageData(id, typedefId);
|
|
3365
3365
|
}
|
|
3366
|
+
setSiteImageUrl(backgroundColor, imageUrl) {
|
|
3367
|
+
this.imageUrl = imageUrl;
|
|
3368
|
+
this.backgroundColor = backgroundColor;
|
|
3369
|
+
}
|
|
3366
3370
|
pushActionNext(pushAction) {
|
|
3367
3371
|
this._localStorage.setItem('pushAction', JSON.stringify(pushAction));
|
|
3368
3372
|
this._pushAction$.next(pushAction);
|
|
@@ -12069,10 +12073,14 @@ class RootPortalComponent extends PageBaseComponent {
|
|
|
12069
12073
|
this.addFooter(pageData);
|
|
12070
12074
|
BigNumber.prototype.subtract = BigNumber.prototype.minus;
|
|
12071
12075
|
BigNumber.prototype.add = BigNumber.prototype.plus;
|
|
12072
|
-
const { BackgroundId } = this.pageData;
|
|
12076
|
+
const { BackgroundId, BackgroundColor, HasOverlay } = this.pageData;
|
|
12073
12077
|
if (BackgroundId) {
|
|
12078
|
+
this.backgroundColor = BackgroundColor;
|
|
12079
|
+
this.hasOverlay = HasOverlay !== 'False';
|
|
12074
12080
|
this._renderer2.addClass(this._el.nativeElement, 'root-custom-background');
|
|
12075
|
-
this.
|
|
12081
|
+
this.hasOverlay && this._renderer2.addClass(this._el.nativeElement, 'root-background-overlay');
|
|
12082
|
+
this.imageUrl = `/IH.ashx?ty=ID&moId=&id=${BackgroundId}`;
|
|
12083
|
+
this._portalService.setSiteImageUrl(BackgroundColor, this.imageUrl);
|
|
12076
12084
|
}
|
|
12077
12085
|
}
|
|
12078
12086
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: RootPortalComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -12116,9 +12124,16 @@ class RootPortalComponent extends PageBaseComponent {
|
|
|
12116
12124
|
<div id="headerSpaceHolder" #headerSpaceHolder>
|
|
12117
12125
|
<div id="bgOuterHolder" #bgOuterHolder>
|
|
12118
12126
|
<div id="bgInnerHolder" style="height: 100vh">
|
|
12119
|
-
<div
|
|
12120
|
-
|
|
12127
|
+
<div
|
|
12128
|
+
class="backgroundImage"
|
|
12129
|
+
id="backgroundImage"
|
|
12130
|
+
[style.background-color]="backgroundColor"
|
|
12131
|
+
[style.background-image]="'url(' + imageUrl + ')'"
|
|
12132
|
+
>
|
|
12133
|
+
<!-- <img class="picture" [src]="imageUrl" loading="lazy" /> -->
|
|
12134
|
+
@if(hasOverlay){
|
|
12121
12135
|
<span id="backgroundImageOverlay" class="overlay"></span>
|
|
12136
|
+
}
|
|
12122
12137
|
</div>
|
|
12123
12138
|
</div>
|
|
12124
12139
|
</div>
|
|
@@ -12181,9 +12196,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
12181
12196
|
<div id="headerSpaceHolder" #headerSpaceHolder>
|
|
12182
12197
|
<div id="bgOuterHolder" #bgOuterHolder>
|
|
12183
12198
|
<div id="bgInnerHolder" style="height: 100vh">
|
|
12184
|
-
<div
|
|
12185
|
-
|
|
12199
|
+
<div
|
|
12200
|
+
class="backgroundImage"
|
|
12201
|
+
id="backgroundImage"
|
|
12202
|
+
[style.background-color]="backgroundColor"
|
|
12203
|
+
[style.background-image]="'url(' + imageUrl + ')'"
|
|
12204
|
+
>
|
|
12205
|
+
<!-- <img class="picture" [src]="imageUrl" loading="lazy" /> -->
|
|
12206
|
+
@if(hasOverlay){
|
|
12186
12207
|
<span id="backgroundImageOverlay" class="overlay"></span>
|
|
12208
|
+
}
|
|
12187
12209
|
</div>
|
|
12188
12210
|
</div>
|
|
12189
12211
|
</div>
|
|
@@ -13865,18 +13887,22 @@ class SplideSliderDirective extends BaseDirective {
|
|
|
13865
13887
|
ngAfterViewInit() {
|
|
13866
13888
|
this._init();
|
|
13867
13889
|
setTimeout(() => {
|
|
13868
|
-
this.
|
|
13890
|
+
this._refreshSplide();
|
|
13869
13891
|
}, 200);
|
|
13870
13892
|
}
|
|
13871
13893
|
ngOnChanges(changes) {
|
|
13872
13894
|
super.ngOnChanges(changes);
|
|
13873
13895
|
const { moDataList } = changes;
|
|
13874
13896
|
if (moDataList && moDataList.currentValue) {
|
|
13875
|
-
this.
|
|
13897
|
+
this._refreshSplide();
|
|
13876
13898
|
}
|
|
13877
13899
|
}
|
|
13878
13900
|
onRefresh() {
|
|
13879
|
-
this.
|
|
13901
|
+
this._refreshSplide();
|
|
13902
|
+
}
|
|
13903
|
+
_refreshSplide() {
|
|
13904
|
+
this._splide && this._splide.refresh();
|
|
13905
|
+
this._splide && this._splide.length < this._splide.options.perPage && this._splide.Components.Arrows.destroy();
|
|
13880
13906
|
}
|
|
13881
13907
|
_init() {
|
|
13882
13908
|
this._renderer2.setAttribute(this.dom, 'data-splide', '{"direction":"rtl"}');
|
|
@@ -13897,12 +13923,18 @@ class SplideSliderDirective extends BaseDirective {
|
|
|
13897
13923
|
},
|
|
13898
13924
|
1279: {
|
|
13899
13925
|
perPage: +this.breakpoint1279
|
|
13900
|
-
}
|
|
13926
|
+
}
|
|
13901
13927
|
}
|
|
13902
13928
|
}).mount();
|
|
13903
13929
|
}
|
|
13904
13930
|
get _getCommonOptions() {
|
|
13905
|
-
return {
|
|
13931
|
+
return {
|
|
13932
|
+
rewind: true,
|
|
13933
|
+
arrows: this.moDataList?.length > 1,
|
|
13934
|
+
type: 'slide',
|
|
13935
|
+
direction: 'rtl',
|
|
13936
|
+
pagination: false
|
|
13937
|
+
};
|
|
13906
13938
|
}
|
|
13907
13939
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SplideSliderDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
13908
13940
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: SplideSliderDirective, selector: "[splideSlider]", inputs: { moDataList: "moDataList", type: "type", breakpoint991: "breakpoint991", breakpoint768: "breakpoint768", breakpoint480: "breakpoint480", breakpoint1279: "breakpoint1279", sliderPerPage: "sliderPerPage", sliderGap: "sliderGap", sliderPadding: "sliderPadding", width: "width" }, host: { properties: { "style.width": "this._width" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|