@wizishop/angular-components 0.0.134 → 0.0.139
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 +4347 -4343
- package/bundles/wizishop-angular-components.umd.js +14 -4
- 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/header-page/header-page.component.js +7 -4
- package/esm2015/lib/components/hn/h1/h1.component.js +9 -4
- package/esm2015/lib/components/switch/switch.component.js +4 -2
- package/esm2015/lib/directives/zindex-toggle/zindex-toggle.directive.js +3 -1
- package/fesm2015/wizishop-angular-components.js +18 -6
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/header-page/header-page.component.d.ts +1 -0
- package/lib/components/hn/h1/h1.component.d.ts +1 -0
- package/lib/components/switch/switch.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.139.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.134.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 () {
|
|
@@ -2042,6 +2044,7 @@
|
|
|
2042
2044
|
|
|
2043
2045
|
var H1Component = /** @class */ (function () {
|
|
2044
2046
|
function H1Component() {
|
|
2047
|
+
this.withImg = false;
|
|
2045
2048
|
}
|
|
2046
2049
|
H1Component.prototype.ngOnInit = function () { };
|
|
2047
2050
|
return H1Component;
|
|
@@ -2049,10 +2052,13 @@
|
|
|
2049
2052
|
H1Component.decorators = [
|
|
2050
2053
|
{ type: i0.Component, args: [{
|
|
2051
2054
|
selector: 'wac-h1',
|
|
2052
|
-
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"
|
|
2053
2056
|
},] }
|
|
2054
2057
|
];
|
|
2055
2058
|
H1Component.ctorParameters = function () { return []; };
|
|
2059
|
+
H1Component.propDecorators = {
|
|
2060
|
+
withImg: [{ type: i0.Input }]
|
|
2061
|
+
};
|
|
2056
2062
|
|
|
2057
2063
|
var H2Component = /** @class */ (function () {
|
|
2058
2064
|
function H2Component() {
|
|
@@ -2088,6 +2094,7 @@
|
|
|
2088
2094
|
|
|
2089
2095
|
var HeaderPageComponent = /** @class */ (function () {
|
|
2090
2096
|
function HeaderPageComponent() {
|
|
2097
|
+
this.withImg = false;
|
|
2091
2098
|
}
|
|
2092
2099
|
HeaderPageComponent.prototype.ngOnInit = function () { };
|
|
2093
2100
|
return HeaderPageComponent;
|
|
@@ -2095,13 +2102,14 @@
|
|
|
2095
2102
|
HeaderPageComponent.decorators = [
|
|
2096
2103
|
{ type: i0.Component, args: [{
|
|
2097
2104
|
selector: 'wac-header-page',
|
|
2098
|
-
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"
|
|
2099
2106
|
},] }
|
|
2100
2107
|
];
|
|
2101
2108
|
HeaderPageComponent.ctorParameters = function () { return []; };
|
|
2102
2109
|
HeaderPageComponent.propDecorators = {
|
|
2103
2110
|
title: [{ type: i0.Input }],
|
|
2104
|
-
linkBack: [{ type: i0.Input }]
|
|
2111
|
+
linkBack: [{ type: i0.Input }],
|
|
2112
|
+
withImg: [{ type: i0.Input }]
|
|
2105
2113
|
};
|
|
2106
2114
|
|
|
2107
2115
|
var InputComponent = /** @class */ (function () {
|
|
@@ -2366,6 +2374,7 @@
|
|
|
2366
2374
|
this.textStateDisable = '';
|
|
2367
2375
|
this.showInput = false;
|
|
2368
2376
|
this.danger = false;
|
|
2377
|
+
this.whiteSpace = false;
|
|
2369
2378
|
this.switchChange = new i0.EventEmitter(); // todo set emitted type
|
|
2370
2379
|
this.changeInput = new i0.EventEmitter(); // todo set emitted type
|
|
2371
2380
|
}
|
|
@@ -2383,7 +2392,7 @@
|
|
|
2383
2392
|
SwitchComponent.decorators = [
|
|
2384
2393
|
{ type: i0.Component, args: [{
|
|
2385
2394
|
selector: 'wac-switch',
|
|
2386
|
-
template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span
|
|
2395
|
+
template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span\n *ngIf=\"textState\"\n [ngStyle]=\"{'whiteSpace': whiteSpace ? 'nowrap' :'normal'}\"\n >{{ textState }} <strong class=\"disable\" *ngIf=\"textStateDisable\">{{ textStateDisable }}</strong>\n <strong class=\"enable\" *ngIf=\"textStateEnable\">{{ textStateEnable }}</strong></span\n ></span\n >\n </label>\n</div>\n<div class=\"wac-show-input\" *ngIf=\"showInput && value\">\n <input [placeholder]=\"placholderInput\" type=\"text\" [(ngModel)]=\"valueInput\" (blur)=\"triggerInput()\" />\n</div>\n"
|
|
2387
2396
|
},] }
|
|
2388
2397
|
];
|
|
2389
2398
|
SwitchComponent.ctorParameters = function () { return []; };
|
|
@@ -2395,6 +2404,7 @@
|
|
|
2395
2404
|
showInput: [{ type: i0.Input }],
|
|
2396
2405
|
placholderInput: [{ type: i0.Input }],
|
|
2397
2406
|
danger: [{ type: i0.Input }],
|
|
2407
|
+
whiteSpace: [{ type: i0.Input }],
|
|
2398
2408
|
switchChange: [{ type: i0.Output }],
|
|
2399
2409
|
changeInput: [{ type: i0.Output }]
|
|
2400
2410
|
};
|