@wizishop/angular-components 0.0.133 → 0.0.137
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 +1458 -1730
- package/bundles/wizishop-angular-components.umd.js +15 -5
- 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/checkbox/checkbox.component.js +5 -3
- package/esm2015/lib/components/header-page/header-page.component.js +7 -4
- package/esm2015/lib/components/hn/h1/h1.component.js +9 -4
- package/esm2015/lib/directives/zindex-toggle/zindex-toggle.directive.js +3 -1
- package/fesm2015/wizishop-angular-components.js +19 -7
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/checkbox/checkbox.component.d.ts +1 -0
- package/lib/components/header-page/header-page.component.d.ts +1 -0
- package/lib/components/hn/h1/h1.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.137.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.133.tgz +0 -0
|
@@ -573,9 +573,11 @@
|
|
|
573
573
|
ZindexToggleDirective.prototype.switchToggle = function () {
|
|
574
574
|
if (this.isActived) {
|
|
575
575
|
this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode, 'zindexToggle');
|
|
576
|
+
this.renderer.addClass(this.currentElement.nativeElement.parentElement.parentNode.parentNode, 'zindexToggle');
|
|
576
577
|
}
|
|
577
578
|
else {
|
|
578
579
|
this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode, 'zindexToggle');
|
|
580
|
+
this.renderer.removeClass(this.currentElement.nativeElement.parentElement.parentNode.parentNode, 'zindexToggle');
|
|
579
581
|
}
|
|
580
582
|
};
|
|
581
583
|
ZindexToggleDirective.prototype.ngOnDestroy = function () {
|
|
@@ -687,6 +689,7 @@
|
|
|
687
689
|
this.hasInput = false;
|
|
688
690
|
this.inputPlaceholder = '';
|
|
689
691
|
this.id = '';
|
|
692
|
+
this.whiteSpace = true;
|
|
690
693
|
this.disabled = false;
|
|
691
694
|
}
|
|
692
695
|
CheckboxComponent.prototype.registerOnChange = function (fn) {
|
|
@@ -719,7 +722,7 @@
|
|
|
719
722
|
CheckboxComponent.decorators = [
|
|
720
723
|
{ type: i0.Component, args: [{
|
|
721
724
|
selector: 'wac-checkbox',
|
|
722
|
-
template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [value]=\"value\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [checked]=\"checked\"\n (ngModelChange)=\"onChange($event)\"\n />\n <label [attr.for]=\"id\"><span
|
|
725
|
+
template: "<div class=\"wac-field-checkbox\" [ngClass]=\"{ 'wac-field-checkbox--nowrap': type === 'column', 'disable-wt' : !whiteSpace, alone: alone }\">\n <div class=\"wac-field-checkbox__row\">\n <input\n type=\"checkbox\"\n [id]=\"id\"\n class=\"is-checkradio\"\n [name]=\"name\"\n [value]=\"value\"\n [disabled]=\"disabled\"\n [(ngModel)]=\"value\"\n [checked]=\"checked\"\n (ngModelChange)=\"onChange($event)\"\n />\n <label [attr.for]=\"id\"><span [innerHTML]=\"label\"></span></label>\n </div>\n <input\n *ngIf=\"hasInput && checked\"\n [@inOutYAnimation]\n type=\"text\"\n [placeholder]=\"inputPlaceholder\"\n (click)=\"inputClick($event)\"\n />\n</div>\n",
|
|
723
726
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }],
|
|
724
727
|
animations: [inOutY]
|
|
725
728
|
},] }
|
|
@@ -734,7 +737,8 @@
|
|
|
734
737
|
hasInput: [{ type: i0.Input }],
|
|
735
738
|
inputPlaceholder: [{ type: i0.Input }],
|
|
736
739
|
id: [{ type: i0.Input }],
|
|
737
|
-
name: [{ type: i0.Input }]
|
|
740
|
+
name: [{ type: i0.Input }],
|
|
741
|
+
whiteSpace: [{ type: i0.Input }]
|
|
738
742
|
};
|
|
739
743
|
|
|
740
744
|
var FiltersTableService = /** @class */ (function () {
|
|
@@ -2040,6 +2044,7 @@
|
|
|
2040
2044
|
|
|
2041
2045
|
var H1Component = /** @class */ (function () {
|
|
2042
2046
|
function H1Component() {
|
|
2047
|
+
this.withImg = false;
|
|
2043
2048
|
}
|
|
2044
2049
|
H1Component.prototype.ngOnInit = function () { };
|
|
2045
2050
|
return H1Component;
|
|
@@ -2047,10 +2052,13 @@
|
|
|
2047
2052
|
H1Component.decorators = [
|
|
2048
2053
|
{ type: i0.Component, args: [{
|
|
2049
2054
|
selector: 'wac-h1',
|
|
2050
|
-
template: "<h1 class=\"wac-h1\"><ng-content></ng-content></h1>\n"
|
|
2055
|
+
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg}\"><ng-content></ng-content></h1>\n"
|
|
2051
2056
|
},] }
|
|
2052
2057
|
];
|
|
2053
2058
|
H1Component.ctorParameters = function () { return []; };
|
|
2059
|
+
H1Component.propDecorators = {
|
|
2060
|
+
withImg: [{ type: i0.Input }]
|
|
2061
|
+
};
|
|
2054
2062
|
|
|
2055
2063
|
var H2Component = /** @class */ (function () {
|
|
2056
2064
|
function H2Component() {
|
|
@@ -2086,6 +2094,7 @@
|
|
|
2086
2094
|
|
|
2087
2095
|
var HeaderPageComponent = /** @class */ (function () {
|
|
2088
2096
|
function HeaderPageComponent() {
|
|
2097
|
+
this.withImg = false;
|
|
2089
2098
|
}
|
|
2090
2099
|
HeaderPageComponent.prototype.ngOnInit = function () { };
|
|
2091
2100
|
return HeaderPageComponent;
|
|
@@ -2093,13 +2102,14 @@
|
|
|
2093
2102
|
HeaderPageComponent.decorators = [
|
|
2094
2103
|
{ type: i0.Component, args: [{
|
|
2095
2104
|
selector: 'wac-header-page',
|
|
2096
|
-
template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\">\n <div class=\"wac-header-page__maxWidth__top__left\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1>{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
|
|
2105
|
+
template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\">\n <div class=\"wac-header-page__maxWidth__top__left\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1 [withImg]=\"withImg\">{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
|
|
2097
2106
|
},] }
|
|
2098
2107
|
];
|
|
2099
2108
|
HeaderPageComponent.ctorParameters = function () { return []; };
|
|
2100
2109
|
HeaderPageComponent.propDecorators = {
|
|
2101
2110
|
title: [{ type: i0.Input }],
|
|
2102
|
-
linkBack: [{ type: i0.Input }]
|
|
2111
|
+
linkBack: [{ type: i0.Input }],
|
|
2112
|
+
withImg: [{ type: i0.Input }]
|
|
2103
2113
|
};
|
|
2104
2114
|
|
|
2105
2115
|
var InputComponent = /** @class */ (function () {
|