@wizishop/angular-components 0.0.102 → 0.0.105
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 +40 -8
- 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 +1 -3
- package/esm2015/lib/components/link/link.component.js +35 -6
- package/esm2015/lib/components/table/table.component.js +2 -2
- package/esm2015/lib/components/tag/tag.component.js +4 -3
- package/fesm2015/wizishop-angular-components.js +36 -8
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/link/link.component.d.ts +10 -4
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.105.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.102.tgz +0 -0
|
@@ -810,7 +810,7 @@
|
|
|
810
810
|
TableComponent.prototype.setTablesFilters = function () {
|
|
811
811
|
this.tableFilters = {
|
|
812
812
|
sort: this._tableFiltersGroup.get('sort'),
|
|
813
|
-
order: this._tableFiltersGroup.get('order'),
|
|
813
|
+
order: this._tableFiltersGroup.get('order') ? this._tableFiltersGroup.get('order') === 'true' : undefined,
|
|
814
814
|
searchValue: this._tableFiltersGroup.get('searchValue'),
|
|
815
815
|
itemsPerPage: this._tableFiltersGroup.get('itemsPerPage') ? parseInt(this._tableFiltersGroup.get('itemsPerPage')) : 0,
|
|
816
816
|
currentPage: this._tableFiltersGroup.get('currentPage') ? parseInt(this._tableFiltersGroup.get('currentPage')) : 0,
|
|
@@ -865,7 +865,8 @@
|
|
|
865
865
|
TagComponent.decorators = [
|
|
866
866
|
{ type: i0.Component, args: [{
|
|
867
867
|
selector: 'wac-tag',
|
|
868
|
-
template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big }\">\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n"
|
|
868
|
+
template: "<div class=\"wac-tag\" [classList]=\"'wac-tag--' + class\" [ngClass]=\"{ hover: hasClose, 'big': big }\">\n {{ label }}\n <span class=\"wac-tag__close\" *ngIf=\"hasClose\" (click)=\"toggleTag()\"><i class=\"fas fa-times\"></i></span>\n</div>\n",
|
|
869
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
869
870
|
},] }
|
|
870
871
|
];
|
|
871
872
|
TagComponent.ctorParameters = function () { return []; };
|
|
@@ -969,7 +970,6 @@
|
|
|
969
970
|
};
|
|
970
971
|
ButtonComponent.prototype.addMaxWidthDelete = function () {
|
|
971
972
|
this.buttonMaxWidthDelete = this.buttonWidthDelete + 'px';
|
|
972
|
-
console.log('here', this.buttonMaxWidthDelete);
|
|
973
973
|
};
|
|
974
974
|
ButtonComponent.prototype.resetMaxWidthDelete = function () {
|
|
975
975
|
this.buttonMaxWidthDelete = '0px';
|
|
@@ -1000,7 +1000,6 @@
|
|
|
1000
1000
|
}
|
|
1001
1001
|
if (_this.confirmDelete) {
|
|
1002
1002
|
_this.buttonWidthDelete = _this.calculWidthDelete.nativeElement.offsetWidth;
|
|
1003
|
-
console.log('here2', _this.buttonWidthDelete);
|
|
1004
1003
|
}
|
|
1005
1004
|
}, 1000);
|
|
1006
1005
|
};
|
|
@@ -1909,24 +1908,57 @@
|
|
|
1909
1908
|
};
|
|
1910
1909
|
|
|
1911
1910
|
var LinkComponent = /** @class */ (function () {
|
|
1912
|
-
function LinkComponent() {
|
|
1911
|
+
function LinkComponent(renderer2) {
|
|
1912
|
+
this.renderer2 = renderer2;
|
|
1913
1913
|
this.target = '_self';
|
|
1914
1914
|
}
|
|
1915
|
+
Object.defineProperty(LinkComponent.prototype, "href", {
|
|
1916
|
+
get: function () {
|
|
1917
|
+
return this._link;
|
|
1918
|
+
},
|
|
1919
|
+
set: function (link) {
|
|
1920
|
+
this._link = link;
|
|
1921
|
+
if (link) {
|
|
1922
|
+
this.setAttributesLink();
|
|
1923
|
+
}
|
|
1924
|
+
},
|
|
1925
|
+
enumerable: false,
|
|
1926
|
+
configurable: true
|
|
1927
|
+
});
|
|
1915
1928
|
LinkComponent.prototype.ngOnInit = function () { };
|
|
1929
|
+
LinkComponent.prototype.ngAfterViewInit = function () {
|
|
1930
|
+
this.setAttributesLink();
|
|
1931
|
+
};
|
|
1932
|
+
LinkComponent.prototype.setAttributesLink = function () {
|
|
1933
|
+
if (!this.linkComponent) {
|
|
1934
|
+
return;
|
|
1935
|
+
}
|
|
1936
|
+
if (this.href) {
|
|
1937
|
+
this.renderer2.setAttribute(this.linkComponent.nativeElement, "href", this.href);
|
|
1938
|
+
this.renderer2.setAttribute(this.linkComponent.nativeElement, "target", this.target);
|
|
1939
|
+
}
|
|
1940
|
+
else {
|
|
1941
|
+
this.renderer2.removeAttribute(this.linkComponent.nativeElement, "href");
|
|
1942
|
+
this.renderer2.removeAttribute(this.linkComponent.nativeElement, "target");
|
|
1943
|
+
}
|
|
1944
|
+
};
|
|
1916
1945
|
return LinkComponent;
|
|
1917
1946
|
}());
|
|
1918
1947
|
LinkComponent.decorators = [
|
|
1919
1948
|
{ type: i0.Component, args: [{
|
|
1920
1949
|
selector: 'wac-link',
|
|
1921
|
-
template: "<a class=\"wac-link\" [
|
|
1950
|
+
template: "<a #linkComponent class=\"wac-link\" [ngClass]=\"{ class: class }\" [id]=\"{ id: id }\"><ng-content></ng-content></a>\n"
|
|
1922
1951
|
},] }
|
|
1923
1952
|
];
|
|
1924
|
-
LinkComponent.ctorParameters = function () { return [
|
|
1953
|
+
LinkComponent.ctorParameters = function () { return [
|
|
1954
|
+
{ type: i0.Renderer2 }
|
|
1955
|
+
]; };
|
|
1925
1956
|
LinkComponent.propDecorators = {
|
|
1926
1957
|
href: [{ type: i0.Input }],
|
|
1927
1958
|
target: [{ type: i0.Input }],
|
|
1928
1959
|
id: [{ type: i0.Input }],
|
|
1929
|
-
class: [{ type: i0.Input }]
|
|
1960
|
+
class: [{ type: i0.Input }],
|
|
1961
|
+
linkComponent: [{ type: i0.ViewChild, args: ['linkComponent',] }]
|
|
1930
1962
|
};
|
|
1931
1963
|
|
|
1932
1964
|
var ProgressBarComponent = /** @class */ (function () {
|