@wizishop/angular-components 0.0.161 → 0.0.166
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 +5518 -5431
- package/bundles/wizishop-angular-components.umd.js +67 -10
- 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/block-with-checkbox/block-with-checkbox.component.js +14 -5
- package/esm2015/lib/components/header-page/header-page.component.js +5 -3
- package/esm2015/lib/components/hn/h1/h1.component.js +5 -3
- package/esm2015/lib/components/mosaic/mosaic.component.js +41 -0
- package/esm2015/lib/components/shared-components.module.js +4 -2
- package/esm2015/lib/components/text-area/text-area.component.js +3 -2
- package/esm2015/public-api.js +2 -1
- package/fesm2015/wizishop-angular-components.js +66 -11
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/block-with-checkbox/block-with-checkbox.component.d.ts +4 -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/lib/components/mosaic/mosaic.component.d.ts +15 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-0.0.166.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.161.tgz +0 -0
|
@@ -2045,13 +2045,15 @@
|
|
|
2045
2045
|
maxlength: [{ type: i0.Input }],
|
|
2046
2046
|
max: [{ type: i0.Input }],
|
|
2047
2047
|
dynamicSize: [{ type: i0.Input }],
|
|
2048
|
-
progressBar: [{ type: i0.Input }]
|
|
2048
|
+
progressBar: [{ type: i0.Input }],
|
|
2049
|
+
disabled: [{ type: i0.Input }]
|
|
2049
2050
|
};
|
|
2050
2051
|
|
|
2051
2052
|
var H1Component = /** @class */ (function () {
|
|
2052
2053
|
function H1Component() {
|
|
2053
2054
|
this.annotation = '';
|
|
2054
2055
|
this.withImg = false;
|
|
2056
|
+
this.center = false;
|
|
2055
2057
|
}
|
|
2056
2058
|
H1Component.prototype.ngOnInit = function () { };
|
|
2057
2059
|
return H1Component;
|
|
@@ -2059,13 +2061,14 @@
|
|
|
2059
2061
|
H1Component.decorators = [
|
|
2060
2062
|
{ type: i0.Component, args: [{
|
|
2061
2063
|
selector: 'wac-h1',
|
|
2062
|
-
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg}\"><ng-content></ng-content><small *ngIf=\"annotation !== ''\">{{ annotation }}</small></h1>\n"
|
|
2064
|
+
template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg, 'center': center}\"><ng-content></ng-content><small *ngIf=\"annotation !== ''\">{{ annotation }}</small></h1>\n"
|
|
2063
2065
|
},] }
|
|
2064
2066
|
];
|
|
2065
2067
|
H1Component.ctorParameters = function () { return []; };
|
|
2066
2068
|
H1Component.propDecorators = {
|
|
2067
2069
|
annotation: [{ type: i0.Input }],
|
|
2068
|
-
withImg: [{ type: i0.Input }]
|
|
2070
|
+
withImg: [{ type: i0.Input }],
|
|
2071
|
+
center: [{ type: i0.Input }]
|
|
2069
2072
|
};
|
|
2070
2073
|
|
|
2071
2074
|
var H2Component = /** @class */ (function () {
|
|
@@ -2103,6 +2106,7 @@
|
|
|
2103
2106
|
var HeaderPageComponent = /** @class */ (function () {
|
|
2104
2107
|
function HeaderPageComponent() {
|
|
2105
2108
|
this.withImg = false;
|
|
2109
|
+
this.center = false;
|
|
2106
2110
|
}
|
|
2107
2111
|
HeaderPageComponent.prototype.ngOnInit = function () { };
|
|
2108
2112
|
return HeaderPageComponent;
|
|
@@ -2110,14 +2114,15 @@
|
|
|
2110
2114
|
HeaderPageComponent.decorators = [
|
|
2111
2115
|
{ type: i0.Component, args: [{
|
|
2112
2116
|
selector: 'wac-header-page',
|
|
2113
|
-
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"
|
|
2117
|
+
template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\" [ngClass]=\"{'center':center}\">\n <div class=\"wac-header-page__maxWidth__top__left\" [ngClass]=\"{'fullsize':center}\">\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 [center]=\"center\" [withImg]=\"withImg\">{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\" *ngIf=\"!center\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
|
|
2114
2118
|
},] }
|
|
2115
2119
|
];
|
|
2116
2120
|
HeaderPageComponent.ctorParameters = function () { return []; };
|
|
2117
2121
|
HeaderPageComponent.propDecorators = {
|
|
2118
2122
|
title: [{ type: i0.Input }],
|
|
2119
2123
|
linkBack: [{ type: i0.Input }],
|
|
2120
|
-
withImg: [{ type: i0.Input }]
|
|
2124
|
+
withImg: [{ type: i0.Input }],
|
|
2125
|
+
center: [{ type: i0.Input }]
|
|
2121
2126
|
};
|
|
2122
2127
|
|
|
2123
2128
|
var InputComponent = /** @class */ (function () {
|
|
@@ -4303,13 +4308,17 @@
|
|
|
4303
4308
|
this.copyAction = new i0.EventEmitter();
|
|
4304
4309
|
this.worldAction = new i0.EventEmitter();
|
|
4305
4310
|
this.checkboxAction = new i0.EventEmitter();
|
|
4311
|
+
this.nameRadio = 'wacBlockCheckboxRadio';
|
|
4312
|
+
this.isFirst = false;
|
|
4306
4313
|
}
|
|
4307
4314
|
BlockWithCheckboxComponent.prototype.ngOnInit = function () {
|
|
4315
|
+
this.randomLabelName = 'radioBlock' + Math.random() * (900 - 700) + 700;
|
|
4308
4316
|
};
|
|
4309
4317
|
BlockWithCheckboxComponent.prototype.eventSelected = function (event) {
|
|
4310
|
-
|
|
4311
|
-
|
|
4318
|
+
console.log(event);
|
|
4319
|
+
this.selected = event.target.checked;
|
|
4312
4320
|
this.checkboxAction.emit(this.selected);
|
|
4321
|
+
this.isFirst = false;
|
|
4313
4322
|
};
|
|
4314
4323
|
BlockWithCheckboxComponent.prototype.eventCopy = function () {
|
|
4315
4324
|
this.copyAction.emit(true);
|
|
@@ -4317,12 +4326,15 @@
|
|
|
4317
4326
|
BlockWithCheckboxComponent.prototype.eventWorld = function () {
|
|
4318
4327
|
this.worldAction.emit(true);
|
|
4319
4328
|
};
|
|
4329
|
+
BlockWithCheckboxComponent.prototype.removeFirstClass = function () {
|
|
4330
|
+
document.querySelectorAll('.firstWacRadioBLock')[0].classList.remove('firstWacRadioBLock');
|
|
4331
|
+
};
|
|
4320
4332
|
return BlockWithCheckboxComponent;
|
|
4321
4333
|
}());
|
|
4322
4334
|
BlockWithCheckboxComponent.decorators = [
|
|
4323
4335
|
{ type: i0.Component, args: [{
|
|
4324
4336
|
selector: 'wac-block-with-checkbox',
|
|
4325
|
-
template: "<div class=\"block-with-checkbox\">\n <div class=\"block-with-checkbox__left\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input type=\"
|
|
4337
|
+
template: "<div class=\"block-with-checkbox\" [ngClass]=\"{'selected': inputRadioA.checked, 'firstWacRadioBLock': isFirst}\" (mouseover)=\"removeFirstClass()\">\n <div class=\"block-with-checkbox__left\" (click)=\"inputRadioA.click()\">\n <div class=\"wac-radio-block\">\n <div class=\"wac-radio__row\">\n <input #inputRadioA [name]=\"nameRadio\" type=\"radio\" [value]=\"selected\" (change)=\"eventSelected($event)\" [id]=\"randomLabelName\">\n <label [for]=\"randomLabelName\"></label>\n </div>\n </div>\n </div>\n <div class=\"block-with-checkbox__center\" (click)=\"inputRadioA.click()\">\n <ng-content></ng-content>\n </div>\n <div class=\"block-with-checkbox__right\">\n <div><wac-button extraClasses=\"is-blue opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconCopy\" (click)=\"eventCopy()\"></wac-button></div>\n <div><wac-button extraClasses=\"is-green opacity static-width\" [iconFontSize]=\"18\" [icon]=\"iconWorld\" (click)=\"eventWorld()\"></wac-button></div>\n </div>\n</div>\n"
|
|
4326
4338
|
},] }
|
|
4327
4339
|
];
|
|
4328
4340
|
BlockWithCheckboxComponent.ctorParameters = function () { return []; };
|
|
@@ -4332,7 +4344,9 @@
|
|
|
4332
4344
|
iconWorld: [{ type: i0.Input }],
|
|
4333
4345
|
copyAction: [{ type: i0.Output }],
|
|
4334
4346
|
worldAction: [{ type: i0.Output }],
|
|
4335
|
-
checkboxAction: [{ type: i0.Output }]
|
|
4347
|
+
checkboxAction: [{ type: i0.Output }],
|
|
4348
|
+
nameRadio: [{ type: i0.Input }],
|
|
4349
|
+
isFirst: [{ type: i0.Input }]
|
|
4336
4350
|
};
|
|
4337
4351
|
|
|
4338
4352
|
var ConfirmDeleteComponent = /** @class */ (function () {
|
|
@@ -4371,6 +4385,47 @@
|
|
|
4371
4385
|
borderRadius: [{ type: i0.Input }]
|
|
4372
4386
|
};
|
|
4373
4387
|
|
|
4388
|
+
var MosaicComponent = /** @class */ (function () {
|
|
4389
|
+
function MosaicComponent() {
|
|
4390
|
+
this.isLoading = true;
|
|
4391
|
+
this.import = new i0.EventEmitter();
|
|
4392
|
+
}
|
|
4393
|
+
MosaicComponent.prototype.ngOnInit = function () {
|
|
4394
|
+
if (this.items) {
|
|
4395
|
+
var splitItems = this.sliceIntoChunks(this.items, (this.items.length / 3));
|
|
4396
|
+
this.columnLeft = splitItems[0];
|
|
4397
|
+
this.columnCenter = splitItems[1];
|
|
4398
|
+
this.columnRight = splitItems[2];
|
|
4399
|
+
}
|
|
4400
|
+
this.isLoading = false;
|
|
4401
|
+
};
|
|
4402
|
+
MosaicComponent.prototype.emitIndex = function (index) {
|
|
4403
|
+
this.import.emit(index);
|
|
4404
|
+
};
|
|
4405
|
+
MosaicComponent.prototype.sliceIntoChunks = function (arr, chunkSize) {
|
|
4406
|
+
var res = [];
|
|
4407
|
+
for (var i = 0; i < arr.length; i += chunkSize) {
|
|
4408
|
+
var chunk = arr.slice(i, i + chunkSize);
|
|
4409
|
+
res.push(chunk);
|
|
4410
|
+
}
|
|
4411
|
+
return res;
|
|
4412
|
+
};
|
|
4413
|
+
return MosaicComponent;
|
|
4414
|
+
}());
|
|
4415
|
+
MosaicComponent.decorators = [
|
|
4416
|
+
{ type: i0.Component, args: [{
|
|
4417
|
+
selector: 'wac-mosaic',
|
|
4418
|
+
template: "<div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\n</div>\n<div class=\"wac-mosaic\" *ngIf=\"!isLoading\">\n <div class=\"wac-mosaic__wrapper\">\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnLeft\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnLeft; let i = index;\">\n <img [src]=\"img\" />\n <div class=\"hover\">\n <wac-button [icon]=\"iconButtons\" [label]=\"labelButtons\" [extraClasses]=\"'is-success'\" (click)=\"emitIndex(i)\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnCenter\" >\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnCenter; let i = index;\">\n <img [src]=\"img\" />\n <div class=\"hover\">\n <wac-button [icon]=\"iconButtons\" [label]=\"labelButtons\" [extraClasses]=\"'is-success'\" (click)=\"emitIndex(i + this.columnLeft.length)\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-mosaic__wrapper__column\" *ngIf=\"columnRight\">\n <div class=\"wac-mosaic__wrapper__column__item\" *ngFor=\"let img of columnRight; let i = index;\">\n <img [src]=\"img\" />\n <div class=\"hover\">\n <wac-button [icon]=\"iconButtons\" [label]=\"labelButtons\" [extraClasses]=\"'is-success'\" (click)=\"emitIndex(i + this.columnLeft.length + this.columnCenter.length)\"></wac-button>\n </div>\n </div>\n </div>\n </div>\n</div>\n"
|
|
4419
|
+
},] }
|
|
4420
|
+
];
|
|
4421
|
+
MosaicComponent.ctorParameters = function () { return []; };
|
|
4422
|
+
MosaicComponent.propDecorators = {
|
|
4423
|
+
items: [{ type: i0.Input }],
|
|
4424
|
+
labelButtons: [{ type: i0.Input }],
|
|
4425
|
+
iconButtons: [{ type: i0.Input }],
|
|
4426
|
+
import: [{ type: i0.Output }]
|
|
4427
|
+
};
|
|
4428
|
+
|
|
4374
4429
|
var components = [
|
|
4375
4430
|
TagComponent,
|
|
4376
4431
|
TabComponent,
|
|
@@ -4418,7 +4473,8 @@
|
|
|
4418
4473
|
CardPriceComponent,
|
|
4419
4474
|
TokenCheckComponent,
|
|
4420
4475
|
BlockWithCheckboxComponent,
|
|
4421
|
-
ConfirmDeleteComponent
|
|
4476
|
+
ConfirmDeleteComponent,
|
|
4477
|
+
MosaicComponent
|
|
4422
4478
|
];
|
|
4423
4479
|
var exportsFromModule = [
|
|
4424
4480
|
PaginationComponent,
|
|
@@ -4552,6 +4608,7 @@
|
|
|
4552
4608
|
exports.LinkComponent = LinkComponent;
|
|
4553
4609
|
exports.LoaderComponent = LoaderComponent;
|
|
4554
4610
|
exports.LogoComponent = LogoComponent;
|
|
4611
|
+
exports.MosaicComponent = MosaicComponent;
|
|
4555
4612
|
exports.MultipleSearchComponent = MultipleSearchComponent;
|
|
4556
4613
|
exports.MultipleSearchPlusComponent = MultipleSearchPlusComponent;
|
|
4557
4614
|
exports.PaginationComponent = PaginationComponent;
|