@wizishop/angular-components 0.0.137 → 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 +4773 -4773
- package/bundles/wizishop-angular-components.umd.js +3 -1
- 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/switch/switch.component.js +4 -2
- package/fesm2015/wizishop-angular-components.js +3 -1
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- 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.137.tgz +0 -0
|
@@ -2374,6 +2374,7 @@
|
|
|
2374
2374
|
this.textStateDisable = '';
|
|
2375
2375
|
this.showInput = false;
|
|
2376
2376
|
this.danger = false;
|
|
2377
|
+
this.whiteSpace = false;
|
|
2377
2378
|
this.switchChange = new i0.EventEmitter(); // todo set emitted type
|
|
2378
2379
|
this.changeInput = new i0.EventEmitter(); // todo set emitted type
|
|
2379
2380
|
}
|
|
@@ -2391,7 +2392,7 @@
|
|
|
2391
2392
|
SwitchComponent.decorators = [
|
|
2392
2393
|
{ type: i0.Component, args: [{
|
|
2393
2394
|
selector: 'wac-switch',
|
|
2394
|
-
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"
|
|
2395
2396
|
},] }
|
|
2396
2397
|
];
|
|
2397
2398
|
SwitchComponent.ctorParameters = function () { return []; };
|
|
@@ -2403,6 +2404,7 @@
|
|
|
2403
2404
|
showInput: [{ type: i0.Input }],
|
|
2404
2405
|
placholderInput: [{ type: i0.Input }],
|
|
2405
2406
|
danger: [{ type: i0.Input }],
|
|
2407
|
+
whiteSpace: [{ type: i0.Input }],
|
|
2406
2408
|
switchChange: [{ type: i0.Output }],
|
|
2407
2409
|
changeInput: [{ type: i0.Output }]
|
|
2408
2410
|
};
|