@wizishop/angular-components 15.1.38 → 15.1.40
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/angular-components.scss +140 -197
- package/esm2020/lib/components/row/row.component.mjs +16 -4
- package/fesm2015/wizishop-angular-components.mjs +15 -3
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +15 -3
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/row/row.component.d.ts +3 -1
- package/package.json +1 -1
- package/wizishop-angular-components-15.1.40.tgz +0 -0
- package/wizishop-angular-components-15.1.38.tgz +0 -0
|
@@ -5921,15 +5921,17 @@ class RowComponent {
|
|
|
5921
5921
|
this.responsiveAuto = false;
|
|
5922
5922
|
this.childrensWidthAuto = false;
|
|
5923
5923
|
this.marginChild = '';
|
|
5924
|
+
this.marginBottomChild = '';
|
|
5924
5925
|
this.addWacBlock = false;
|
|
5925
5926
|
this.lineDisplayContent = false;
|
|
5926
5927
|
this.border = false;
|
|
5927
5928
|
this.padding = '';
|
|
5929
|
+
this.lastChildIsDown = false;
|
|
5928
5930
|
this.halfMarginChild = '';
|
|
5929
5931
|
this.nbChildsClass = '';
|
|
5930
5932
|
}
|
|
5931
5933
|
ngOnInit() {
|
|
5932
|
-
this.id = 'row-' + Math.floor(Math.random() *
|
|
5934
|
+
this.id = 'row-' + Math.floor(Math.random() * 100000);
|
|
5933
5935
|
if (this.marginChild) {
|
|
5934
5936
|
this.halfMarginChild = parseInt(this.marginChild) / 2 + 'px';
|
|
5935
5937
|
}
|
|
@@ -5976,16 +5978,22 @@ class RowComponent {
|
|
|
5976
5978
|
child.style.marginRight = this.halfMarginChild;
|
|
5977
5979
|
}
|
|
5978
5980
|
}
|
|
5981
|
+
if (this.childs > 1 && this.marginBottomChild) {
|
|
5982
|
+
for (let i = 0; i < this.childs; i++) {
|
|
5983
|
+
const child = document.getElementById(this.id).children[i];
|
|
5984
|
+
child.style.marginBottom = this.marginBottomChild;
|
|
5985
|
+
}
|
|
5986
|
+
}
|
|
5979
5987
|
this.nbChildsClass = 'nb-child-' + this.childs;
|
|
5980
5988
|
this.onResize();
|
|
5981
5989
|
}, 1);
|
|
5982
5990
|
}
|
|
5983
5991
|
}
|
|
5984
5992
|
RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5985
|
-
RowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: RowComponent, selector: "wac-row", inputs: { position: "position", width: "width", height: "height", responsiveAuto: "responsiveAuto", childrensWidthAuto: "childrensWidthAuto", visibility: "visibility", marginChild: "marginChild", addWacBlock: "addWacBlock", lineDisplayContent: "lineDisplayContent", border: "border", padding: "padding" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div [ngStyle]=\"{'padding': padding,'transform': (childs > 1 ? 'translateX(-' + halfMarginChild + ')' : 'wrong'), 'width': (childs > 1 ? 'calc(100% + ' + marginChild + ')' : 'wrong')}\" class=\"wac-row {{ addWacBlock ? 'white-block' : '' }} {{ lineDisplayContent ? 'direction-column' : '' }} {{ border ? 'with-border' : '' }} {{ childrensWidthAuto ? 'childrens-width-auto' : '' }} {{ position ? position : '' }} {{ visibility ? visibility : '' }} {{ responsiveClass ? responsiveClass : '' }} {{nbChildsClass}} {{classWidth}}\" #container [ngClass]=\"{\n 'multiple-child': childs > 3,\n 'five-or-more-child': childs > 4,\n 'alone': childs === 1\n}\" [id]=\"id\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5993
|
+
RowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: RowComponent, selector: "wac-row", inputs: { position: "position", width: "width", height: "height", responsiveAuto: "responsiveAuto", childrensWidthAuto: "childrensWidthAuto", visibility: "visibility", marginChild: "marginChild", marginBottomChild: "marginBottomChild", addWacBlock: "addWacBlock", lineDisplayContent: "lineDisplayContent", border: "border", padding: "padding", lastChildIsDown: "lastChildIsDown" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div [ngStyle]=\"{'padding': padding,'transform': (childs > 1 ? 'translateX(-' + halfMarginChild + ')' : 'wrong'), 'width': (childs > 1 ? 'calc(100% + ' + marginChild + ')' : 'wrong')}\" class=\"wac-row {{ addWacBlock ? 'white-block' : '' }} {{ lineDisplayContent ? 'direction-column' : '' }} {{ border ? 'with-border' : '' }} {{ lastChildIsDown ? 'last-child-down' : '' }} {{ childrensWidthAuto ? 'childrens-width-auto' : '' }} {{ position ? position : '' }} {{ visibility ? visibility : '' }} {{ responsiveClass ? responsiveClass : '' }} {{nbChildsClass}} {{classWidth}}\" #container [ngClass]=\"{\n 'multiple-child': childs > 3,\n 'five-or-more-child': childs > 4,\n 'alone': childs === 1\n}\" [id]=\"id\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5986
5994
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, decorators: [{
|
|
5987
5995
|
type: Component,
|
|
5988
|
-
args: [{ selector: 'wac-row', encapsulation: ViewEncapsulation.None, template: "<div [ngStyle]=\"{'padding': padding,'transform': (childs > 1 ? 'translateX(-' + halfMarginChild + ')' : 'wrong'), 'width': (childs > 1 ? 'calc(100% + ' + marginChild + ')' : 'wrong')}\" class=\"wac-row {{ addWacBlock ? 'white-block' : '' }} {{ lineDisplayContent ? 'direction-column' : '' }} {{ border ? 'with-border' : '' }} {{ childrensWidthAuto ? 'childrens-width-auto' : '' }} {{ position ? position : '' }} {{ visibility ? visibility : '' }} {{ responsiveClass ? responsiveClass : '' }} {{nbChildsClass}} {{classWidth}}\" #container [ngClass]=\"{\n 'multiple-child': childs > 3,\n 'five-or-more-child': childs > 4,\n 'alone': childs === 1\n}\" [id]=\"id\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
5996
|
+
args: [{ selector: 'wac-row', encapsulation: ViewEncapsulation.None, template: "<div [ngStyle]=\"{'padding': padding,'transform': (childs > 1 ? 'translateX(-' + halfMarginChild + ')' : 'wrong'), 'width': (childs > 1 ? 'calc(100% + ' + marginChild + ')' : 'wrong')}\" class=\"wac-row {{ addWacBlock ? 'white-block' : '' }} {{ lineDisplayContent ? 'direction-column' : '' }} {{ border ? 'with-border' : '' }} {{ lastChildIsDown ? 'last-child-down' : '' }} {{ childrensWidthAuto ? 'childrens-width-auto' : '' }} {{ position ? position : '' }} {{ visibility ? visibility : '' }} {{ responsiveClass ? responsiveClass : '' }} {{nbChildsClass}} {{classWidth}}\" #container [ngClass]=\"{\n 'multiple-child': childs > 3,\n 'five-or-more-child': childs > 4,\n 'alone': childs === 1\n}\" [id]=\"id\">\n <ng-content></ng-content>\n</div>\n" }]
|
|
5989
5997
|
}], propDecorators: { position: [{
|
|
5990
5998
|
type: Input
|
|
5991
5999
|
}], width: [{
|
|
@@ -6000,6 +6008,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
6000
6008
|
type: Input
|
|
6001
6009
|
}], marginChild: [{
|
|
6002
6010
|
type: Input
|
|
6011
|
+
}], marginBottomChild: [{
|
|
6012
|
+
type: Input
|
|
6003
6013
|
}], addWacBlock: [{
|
|
6004
6014
|
type: Input
|
|
6005
6015
|
}], lineDisplayContent: [{
|
|
@@ -6008,6 +6018,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
|
|
|
6008
6018
|
type: Input
|
|
6009
6019
|
}], padding: [{
|
|
6010
6020
|
type: Input
|
|
6021
|
+
}], lastChildIsDown: [{
|
|
6022
|
+
type: Input
|
|
6011
6023
|
}], container: [{
|
|
6012
6024
|
type: ViewChild,
|
|
6013
6025
|
args: [`container`]
|