@wizishop/angular-components 0.0.160 → 0.0.164
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 +4593 -4543
- package/bundles/wizishop-angular-components.umd.js +47 -6
- 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 +5 -3
- package/esm2015/lib/components/hn/h1/h1.component.js +5 -3
- package/esm2015/lib/components/mosaic/mosaic.component.js +34 -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 +46 -7
- 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/mosaic/mosaic.component.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-0.0.164.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.160.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 () {
|
|
@@ -4371,6 +4376,40 @@
|
|
|
4371
4376
|
borderRadius: [{ type: i0.Input }]
|
|
4372
4377
|
};
|
|
4373
4378
|
|
|
4379
|
+
var MosaicComponent = /** @class */ (function () {
|
|
4380
|
+
function MosaicComponent() {
|
|
4381
|
+
this.isLoading = true;
|
|
4382
|
+
}
|
|
4383
|
+
MosaicComponent.prototype.ngOnInit = function () {
|
|
4384
|
+
if (this.items) {
|
|
4385
|
+
var splitItems = this.sliceIntoChunks(this.items, (this.items.length / 3));
|
|
4386
|
+
this.columnLeft = splitItems[0];
|
|
4387
|
+
this.columnCenter = splitItems[1];
|
|
4388
|
+
this.columnRight = splitItems[2];
|
|
4389
|
+
}
|
|
4390
|
+
this.isLoading = false;
|
|
4391
|
+
};
|
|
4392
|
+
MosaicComponent.prototype.sliceIntoChunks = function (arr, chunkSize) {
|
|
4393
|
+
var res = [];
|
|
4394
|
+
for (var i = 0; i < arr.length; i += chunkSize) {
|
|
4395
|
+
var chunk = arr.slice(i, i + chunkSize);
|
|
4396
|
+
res.push(chunk);
|
|
4397
|
+
}
|
|
4398
|
+
return res;
|
|
4399
|
+
};
|
|
4400
|
+
return MosaicComponent;
|
|
4401
|
+
}());
|
|
4402
|
+
MosaicComponent.decorators = [
|
|
4403
|
+
{ type: i0.Component, args: [{
|
|
4404
|
+
selector: 'wac-mosaic',
|
|
4405
|
+
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>\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>\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>\n </div>\n </div>\n</div>\n"
|
|
4406
|
+
},] }
|
|
4407
|
+
];
|
|
4408
|
+
MosaicComponent.ctorParameters = function () { return []; };
|
|
4409
|
+
MosaicComponent.propDecorators = {
|
|
4410
|
+
items: [{ type: i0.Input }]
|
|
4411
|
+
};
|
|
4412
|
+
|
|
4374
4413
|
var components = [
|
|
4375
4414
|
TagComponent,
|
|
4376
4415
|
TabComponent,
|
|
@@ -4418,7 +4457,8 @@
|
|
|
4418
4457
|
CardPriceComponent,
|
|
4419
4458
|
TokenCheckComponent,
|
|
4420
4459
|
BlockWithCheckboxComponent,
|
|
4421
|
-
ConfirmDeleteComponent
|
|
4460
|
+
ConfirmDeleteComponent,
|
|
4461
|
+
MosaicComponent
|
|
4422
4462
|
];
|
|
4423
4463
|
var exportsFromModule = [
|
|
4424
4464
|
PaginationComponent,
|
|
@@ -4552,6 +4592,7 @@
|
|
|
4552
4592
|
exports.LinkComponent = LinkComponent;
|
|
4553
4593
|
exports.LoaderComponent = LoaderComponent;
|
|
4554
4594
|
exports.LogoComponent = LogoComponent;
|
|
4595
|
+
exports.MosaicComponent = MosaicComponent;
|
|
4555
4596
|
exports.MultipleSearchComponent = MultipleSearchComponent;
|
|
4556
4597
|
exports.MultipleSearchPlusComponent = MultipleSearchPlusComponent;
|
|
4557
4598
|
exports.PaginationComponent = PaginationComponent;
|