@wizishop/angular-components 0.0.110 → 0.0.111
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/bundles/wizishop-angular-components.umd.js +19 -15
- 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 +20 -16
- package/fesm2015/wizishop-angular-components.js +19 -15
- 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.111.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.110.tgz +0 -0
|
@@ -941,9 +941,12 @@
|
|
|
941
941
|
get: function () {
|
|
942
942
|
return this._isLoading;
|
|
943
943
|
},
|
|
944
|
-
set: function (
|
|
945
|
-
|
|
946
|
-
|
|
944
|
+
set: function (isLoading) {
|
|
945
|
+
if (isLoading) {
|
|
946
|
+
this.launchLoading();
|
|
947
|
+
}
|
|
948
|
+
this._isLoading = isLoading;
|
|
949
|
+
this.isLoadingChange.next(isLoading);
|
|
947
950
|
},
|
|
948
951
|
enumerable: false,
|
|
949
952
|
configurable: true
|
|
@@ -988,20 +991,21 @@
|
|
|
988
991
|
};
|
|
989
992
|
ButtonComponent.prototype.onButtonClick = function (event) {
|
|
990
993
|
event.stopPropagation();
|
|
991
|
-
if (
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
else {
|
|
1002
|
-
this.waitForConfirmDelete = false;
|
|
994
|
+
if (this.disabled) {
|
|
995
|
+
return;
|
|
996
|
+
}
|
|
997
|
+
if (this.hasLoader) {
|
|
998
|
+
this.launchLoading();
|
|
999
|
+
}
|
|
1000
|
+
if (!this.waitForConfirmDelete) {
|
|
1001
|
+
this.click.emit(event);
|
|
1002
|
+
if (this.confirmDelete) {
|
|
1003
|
+
this.resetMaxWidthDelete();
|
|
1003
1004
|
}
|
|
1004
1005
|
}
|
|
1006
|
+
else {
|
|
1007
|
+
this.waitForConfirmDelete = false;
|
|
1008
|
+
}
|
|
1005
1009
|
};
|
|
1006
1010
|
ButtonComponent.prototype.ngAfterViewInit = function () {
|
|
1007
1011
|
var _this = this;
|