@wizishop/angular-components 0.0.54 → 0.0.58
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 +404 -366
- package/bundles/wizishop-angular-components.umd.js +8 -14
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +1 -1
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/button/button.component.js +5 -5
- package/fesm2015/wizishop-angular-components.js +4 -4
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/button/button.component.d.ts +1 -1
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.58.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.54.tgz +0 -0
|
@@ -230,16 +230,10 @@
|
|
|
230
230
|
r[k] = a[j];
|
|
231
231
|
return r;
|
|
232
232
|
}
|
|
233
|
-
function __spreadArray(to, from
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
if (!ar)
|
|
238
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
239
|
-
ar[i] = from[i];
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
233
|
+
function __spreadArray(to, from) {
|
|
234
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
235
|
+
to[j] = from[i];
|
|
236
|
+
return to;
|
|
243
237
|
}
|
|
244
238
|
function __await(v) {
|
|
245
239
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -945,8 +939,8 @@
|
|
|
945
939
|
}
|
|
946
940
|
}, 200);
|
|
947
941
|
};
|
|
948
|
-
ButtonComponent.prototype.addMaxWidth = function (
|
|
949
|
-
this.buttonMaxWidth =
|
|
942
|
+
ButtonComponent.prototype.addMaxWidth = function () {
|
|
943
|
+
this.buttonMaxWidth = this.buttonWidth + 'px';
|
|
950
944
|
};
|
|
951
945
|
ButtonComponent.prototype.resetMaxWidth = function () {
|
|
952
946
|
this.buttonMaxWidth = '0px';
|
|
@@ -966,14 +960,14 @@
|
|
|
966
960
|
if (_this.animation) {
|
|
967
961
|
_this.buttonWidth = _this.calculWidth.nativeElement.offsetWidth;
|
|
968
962
|
}
|
|
969
|
-
},
|
|
963
|
+
}, 1000);
|
|
970
964
|
};
|
|
971
965
|
return ButtonComponent;
|
|
972
966
|
}());
|
|
973
967
|
ButtonComponent.decorators = [
|
|
974
968
|
{ type: i0.Component, args: [{
|
|
975
969
|
selector: 'wac-button',
|
|
976
|
-
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"onButtonClick($event)\"\n (mouseleave)=\"animation ? resetMaxWidth() : ''\"\n (mouseenter)=\"animation ? addMaxWidth(
|
|
970
|
+
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"onButtonClick($event)\"\n (mouseleave)=\"animation ? resetMaxWidth() : ''\"\n (mouseenter)=\"animation ? addMaxWidth() : ''\"\n [ngClass]=\"[label === '' ? 'alone' : '',animationRight ? 'animation-right' : '', animation ? 'animationText' : '', isLoading ? 'is-loading' : '', opacity ? 'opacity' : '', disabled ? 'disabled' : '', widthAuto ? 'width-auto' : '', whiteSpaceNowrap ? 'white-space-no-wrap' : '']\"\n>\n <span class=\"wac-button__wrapper\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span class=\"wac-button__animation\" [style.maxWidth]=\"buttonMaxWidth\" [style.width]=\"buttonWidth + 'px'\">\n <span #calculWidth class=\"wac-button__animation__text\" [innerHTML]=\"animationText\"></span>\n </span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading || interval !== null\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n\n </span>\n</a>\n"
|
|
977
971
|
},] }
|
|
978
972
|
];
|
|
979
973
|
ButtonComponent.ctorParameters = function () { return []; };
|