@wizishop/angular-components 0.0.131 → 0.0.134
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 +3036 -3010
- package/bundles/wizishop-angular-components.umd.js +8 -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 +2 -2
- package/esm2015/lib/components/inputs/input-search/input-search.component.js +2 -2
- package/esm2015/lib/components/selects/select/select.component.js +3 -2
- package/fesm2015/wizishop-angular-components.js +8 -5
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/checkbox/checkbox.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.134.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.131.tgz +0 -0
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
var InputSearchComponent = /** @class */ (function () {
|
|
339
339
|
function InputSearchComponent() {
|
|
340
340
|
this.placeholder = '';
|
|
341
|
-
this.smallPadding = false;
|
|
341
|
+
this.smallPadding = false; // todo Try to be more flexible like changing type : export type PaddingConfig = "default" | "small" | "big" | "no-padding";
|
|
342
342
|
this.innerValue = '';
|
|
343
343
|
this.changeDebounced = new i0.EventEmitter(); // debounced
|
|
344
344
|
this.onTouchedCallback = function () { };
|
|
@@ -687,6 +687,7 @@
|
|
|
687
687
|
this.hasInput = false;
|
|
688
688
|
this.inputPlaceholder = '';
|
|
689
689
|
this.id = '';
|
|
690
|
+
this.whiteSpace = true;
|
|
690
691
|
this.disabled = false;
|
|
691
692
|
}
|
|
692
693
|
CheckboxComponent.prototype.registerOnChange = function (fn) {
|
|
@@ -719,7 +720,7 @@
|
|
|
719
720
|
CheckboxComponent.decorators = [
|
|
720
721
|
{ type: i0.Component, args: [{
|
|
721
722
|
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
|
|
723
|
+
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
724
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: CheckboxComponent, multi: true }],
|
|
724
725
|
animations: [inOutY]
|
|
725
726
|
},] }
|
|
@@ -734,7 +735,8 @@
|
|
|
734
735
|
hasInput: [{ type: i0.Input }],
|
|
735
736
|
inputPlaceholder: [{ type: i0.Input }],
|
|
736
737
|
id: [{ type: i0.Input }],
|
|
737
|
-
name: [{ type: i0.Input }]
|
|
738
|
+
name: [{ type: i0.Input }],
|
|
739
|
+
whiteSpace: [{ type: i0.Input }]
|
|
738
740
|
};
|
|
739
741
|
|
|
740
742
|
var FiltersTableService = /** @class */ (function () {
|
|
@@ -2093,7 +2095,7 @@
|
|
|
2093
2095
|
HeaderPageComponent.decorators = [
|
|
2094
2096
|
{ type: i0.Component, args: [{
|
|
2095
2097
|
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 <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"
|
|
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"
|
|
2097
2099
|
},] }
|
|
2098
2100
|
];
|
|
2099
2101
|
HeaderPageComponent.ctorParameters = function () { return []; };
|
|
@@ -3186,7 +3188,8 @@
|
|
|
3186
3188
|
var _this = this;
|
|
3187
3189
|
this.openCategories = true;
|
|
3188
3190
|
setTimeout(function () {
|
|
3189
|
-
|
|
3191
|
+
var _a;
|
|
3192
|
+
(_a = _this.searchElement.nativeElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
3190
3193
|
}, 0);
|
|
3191
3194
|
};
|
|
3192
3195
|
SelectComponent.prototype.unselectAll = function () {
|