@wizishop/angular-components 0.0.191 → 0.0.195
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 +5693 -5676
- package/bundles/wizishop-angular-components.umd.js +25 -3
- package/bundles/wizishop-angular-components.umd.js.map +1 -1
- package/bundles/wizishop-angular-components.umd.min.js +2 -2
- package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
- package/esm2015/lib/components/confirm-delete/confirm-delete.component.js +23 -4
- package/esm2015/lib/components/selects/select/select.component.js +4 -2
- package/fesm2015/wizishop-angular-components.js +24 -3
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/confirm-delete/confirm-delete.component.d.ts +7 -2
- package/lib/components/selects/select/select.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.195.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.191.tgz +0 -0
|
@@ -3159,6 +3159,7 @@
|
|
|
3159
3159
|
this.translateService = translateService;
|
|
3160
3160
|
this.search = false;
|
|
3161
3161
|
this.searchValue = '';
|
|
3162
|
+
this.openUp = false;
|
|
3162
3163
|
this.searchValueChange = new i0.EventEmitter();
|
|
3163
3164
|
this.type = 'default';
|
|
3164
3165
|
this.maxWidth = '100%';
|
|
@@ -3254,7 +3255,7 @@
|
|
|
3254
3255
|
SelectComponent.decorators = [
|
|
3255
3256
|
{ type: i0.Component, args: [{
|
|
3256
3257
|
selector: 'wac-select',
|
|
3257
|
-
template: "<p *ngIf=\"label\" [innerHTML]=\"label\" class=\"wac-select__label\"></p>\n\n<div class=\"wac-select\" wzAutoHide (clickOutside)=\"onClose()\" [ngStyle]=\"{ 'max-width': maxWidth }\" [zIndexToggle]=\"openCategories\">\n\n <div class=\"wac-select__current\" [ngClass]=\"{ 'select-disabled' : disabled }\" (click)=\"!disabled && openCategories = !openCategories\" *ngIf=\"!search\">\n <span *ngIf=\"indexItemSelected !== -1\" class=\"icon\" [innerHTML]=\"items[indexItemSelected].icon\"></span>\n <span [innerHTML]=\"indexItemSelected !== -1 ? items[indexItemSelected].name : placeholder\"></span><span><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n\n <div class=\"wac-select__current wac-select__current--withSearch\" [ngClass]=\"{ 'select-disabled' : disabled, 'open-search': openCategories }\" *ngIf=\"search\">\n <div class=\"wac-select__current__search\" *ngIf=\"openCategories && !disabled\">\n <i class=\"far fa-search\"></i>\n <input #search type=\"text\" [(ngModel)]=\"searchValue\" (ngModelChange)=\"onSearcheValueChange()\" (keypressEnter)=\"onClickCallToAction()\"/>\n </div>\n <span (click)=\"openCategories = !openCategories;\" *ngIf=\"items[indexItemSelected]?.icon && !openCategories\" class=\"icon\" [innerHTML]=\"items[indexItemSelected].icon\"></span>\n <span (click)=\"showCategories()\" [innerHTML]=\"items[indexItemSelected]?.name ? items[indexItemSelected].name : placeholder\"></span>\n <span (click)=\"openCategories = !openCategories;\"><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n\n <div class=\"wac-select__content\" *ngIf=\"!disabled\" [ngClass]=\"{ hidden: !openCategories, open: type === 'open' }\" [ngStyle]=\"{ 'max-width': maxWidthItems }\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\" *ngIf=\"items.length\">\n\n <div *ngIf=\"callToAction\" class=\"wac-select__content__cta\">\n <div (click)=\"onClickCallToAction()\">\n <i *ngIf=\"callToAction.icon\" [classList]=\"callToAction.icon\"></i><strong *ngIf=\"callToAction.boldText\">{{ callToAction.boldText }}</strong\n ><span>{{ callToAction?.name }}</span>\n </div>\n </div>\n\n <div\n *ngFor=\"let item of items | selectFilters: searchValue; let index = index;\"\n (click)=\"onClose()\"\n class=\"wac-select__content__item\"\n >\n <div [ngClass]=\"{ selected: item.selected }\" (click)=\"onSelectItem(item.id)\">\n <span class=\"icon\" [innerHTML]=\"item.icon\" *ngIf=\"item.icon\"></span>{{ item.name }}\n </div>\n </div>\n\n </perfect-scrollbar>\n\n <div *ngIf=\"!(items | selectFilters: searchValue)?.length\" class=\"wac-select__content__empty\">\n <span>{{'wac.datatable.noresult' | translate}}</span>\n </div>\n\n </div>\n</div
|
|
3258
|
+
template: "<p *ngIf=\"label\" [innerHTML]=\"label\" class=\"wac-select__label\"></p>\n\n<div class=\"wac-select\" wzAutoHide (clickOutside)=\"onClose()\" [ngStyle]=\"{ 'max-width': maxWidth }\" [ngClass]=\"{'to-top': openUp}\" [zIndexToggle]=\"openCategories\">\n\n <div class=\"wac-select__current\" [ngClass]=\"{ 'select-disabled' : disabled }\" (click)=\"!disabled && openCategories = !openCategories\" *ngIf=\"!search\">\n <span *ngIf=\"indexItemSelected !== -1\" class=\"icon\" [innerHTML]=\"items[indexItemSelected].icon\"></span>\n <span [innerHTML]=\"indexItemSelected !== -1 ? items[indexItemSelected].name : placeholder\"></span><span><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n\n <div class=\"wac-select__current wac-select__current--withSearch\" [ngClass]=\"{ 'select-disabled' : disabled, 'open-search': openCategories }\" *ngIf=\"search\">\n <div class=\"wac-select__current__search\" *ngIf=\"openCategories && !disabled\">\n <i class=\"far fa-search\"></i>\n <input #search type=\"text\" [(ngModel)]=\"searchValue\" (ngModelChange)=\"onSearcheValueChange()\" (keypressEnter)=\"onClickCallToAction()\"/>\n </div>\n <span (click)=\"openCategories = !openCategories;\" *ngIf=\"items[indexItemSelected]?.icon && !openCategories\" class=\"icon\" [innerHTML]=\"items[indexItemSelected].icon\"></span>\n <span (click)=\"showCategories()\" [innerHTML]=\"items[indexItemSelected]?.name ? items[indexItemSelected].name : placeholder\"></span>\n <span (click)=\"openCategories = !openCategories;\"><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n\n <div class=\"wac-select__content\" *ngIf=\"!disabled\" [ngClass]=\"{ hidden: !openCategories, open: type === 'open' }\" [ngStyle]=\"{ 'max-width': maxWidthItems }\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\" *ngIf=\"items.length\">\n\n <div *ngIf=\"callToAction\" class=\"wac-select__content__cta\">\n <div (click)=\"onClickCallToAction()\">\n <i *ngIf=\"callToAction.icon\" [classList]=\"callToAction.icon\"></i><strong *ngIf=\"callToAction.boldText\">{{ callToAction.boldText }}</strong\n ><span>{{ callToAction?.name }}</span>\n </div>\n </div>\n\n <div\n *ngFor=\"let item of items | selectFilters: searchValue; let index = index;\"\n (click)=\"onClose()\"\n class=\"wac-select__content__item\"\n >\n <div [ngClass]=\"{ selected: item.selected }\" (click)=\"onSelectItem(item.id)\">\n <span class=\"icon\" [innerHTML]=\"item.icon\" *ngIf=\"item.icon\"></span>{{ item.name }}\n </div>\n </div>\n\n </perfect-scrollbar>\n\n <div *ngIf=\"!(items | selectFilters: searchValue)?.length\" class=\"wac-select__content__empty\">\n <span>{{'wac.datatable.noresult' | translate}}</span>\n </div>\n\n </div>\n</div>\n",
|
|
3258
3259
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: SelectComponent, multi: true }]
|
|
3259
3260
|
},] }
|
|
3260
3261
|
];
|
|
@@ -3268,6 +3269,7 @@
|
|
|
3268
3269
|
maxWidthItems: [{ type: i0.Input }],
|
|
3269
3270
|
search: [{ type: i0.Input }],
|
|
3270
3271
|
searchValue: [{ type: i0.Input }],
|
|
3272
|
+
openUp: [{ type: i0.Input }],
|
|
3271
3273
|
searchValueChange: [{ type: i0.Output }],
|
|
3272
3274
|
type: [{ type: i0.Input }],
|
|
3273
3275
|
callToAction: [{ type: i0.Input }],
|
|
@@ -4375,6 +4377,7 @@
|
|
|
4375
4377
|
this.confirm = new i0.EventEmitter();
|
|
4376
4378
|
this.backgroundColor = '#fff';
|
|
4377
4379
|
this.borderRadius = '0px';
|
|
4380
|
+
this.hideText = false;
|
|
4378
4381
|
}
|
|
4379
4382
|
ConfirmDeleteComponent.prototype.ngOnInit = function () {
|
|
4380
4383
|
};
|
|
@@ -4386,12 +4389,29 @@
|
|
|
4386
4389
|
this.confirm.emit(true);
|
|
4387
4390
|
this.open = false;
|
|
4388
4391
|
};
|
|
4392
|
+
ConfirmDeleteComponent.prototype.responsiveControl = function (size) {
|
|
4393
|
+
if (size < 342) {
|
|
4394
|
+
this.hideText = true;
|
|
4395
|
+
}
|
|
4396
|
+
else {
|
|
4397
|
+
this.hideText = false;
|
|
4398
|
+
}
|
|
4399
|
+
};
|
|
4400
|
+
ConfirmDeleteComponent.prototype.onResize = function () {
|
|
4401
|
+
this.responsiveControl(this.container.nativeElement.offsetWidth);
|
|
4402
|
+
};
|
|
4403
|
+
ConfirmDeleteComponent.prototype.ngAfterViewInit = function () {
|
|
4404
|
+
var _this = this;
|
|
4405
|
+
setTimeout(function () {
|
|
4406
|
+
_this.responsiveControl(_this.container.nativeElement.offsetWidth);
|
|
4407
|
+
}, 100);
|
|
4408
|
+
};
|
|
4389
4409
|
return ConfirmDeleteComponent;
|
|
4390
4410
|
}());
|
|
4391
4411
|
ConfirmDeleteComponent.decorators = [
|
|
4392
4412
|
{ type: i0.Component, args: [{
|
|
4393
4413
|
selector: 'wac-confirm-delete',
|
|
4394
|
-
template: "<div class=\"wac-confirm-delete\" [ngClass]=\"{'is-open': open}\" [style.backgroundColor]=\"backgroundColor\" [style.borderRadius]=\"borderRadius\">\n <div>\n <span [innerHTML]=\"label\"></span>\n </div>\n <div>\n <div><wac-button [label]=\"labelCancel\" [extraClasses]=\"'is-outlined is-grey'\" (click)=\"eventCancel($event)\"></wac-button></div>\n <div><wac-button [label]=\"labelConfirm\" [extraClasses]=\"'is-danger'\" (click)=\"eventConfirm($event)\"></wac-button></div>\n </div>\n</div>\n"
|
|
4414
|
+
template: "<div class=\"wac-confirm-delete\" #container [ngClass]=\"{'is-open': open, 'hide-text': hideText}\" [style.backgroundColor]=\"backgroundColor\" [style.borderRadius]=\"borderRadius\">\n <div>\n <span [innerHTML]=\"label\"></span>\n </div>\n <div>\n <div><wac-button [label]=\"labelCancel\" [extraClasses]=\"'is-outlined is-grey'\" (click)=\"eventCancel($event)\"></wac-button></div>\n <div><wac-button [label]=\"labelConfirm\" [extraClasses]=\"'is-danger'\" (click)=\"eventConfirm($event)\"></wac-button></div>\n </div>\n</div>\n"
|
|
4395
4415
|
},] }
|
|
4396
4416
|
];
|
|
4397
4417
|
ConfirmDeleteComponent.ctorParameters = function () { return []; };
|
|
@@ -4402,7 +4422,9 @@
|
|
|
4402
4422
|
labelConfirm: [{ type: i0.Input }],
|
|
4403
4423
|
confirm: [{ type: i0.Output }],
|
|
4404
4424
|
backgroundColor: [{ type: i0.Input }],
|
|
4405
|
-
borderRadius: [{ type: i0.Input }]
|
|
4425
|
+
borderRadius: [{ type: i0.Input }],
|
|
4426
|
+
container: [{ type: i0.ViewChild, args: ['container',] }],
|
|
4427
|
+
onResize: [{ type: i0.HostListener, args: ['window:resize',] }]
|
|
4406
4428
|
};
|
|
4407
4429
|
|
|
4408
4430
|
var MosaicComponent = /** @class */ (function () {
|