@wizishop/angular-components 0.0.164 → 0.0.168
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 +5074 -5037
- package/assets/i18n/en.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/bundles/wizishop-angular-components.umd.js +49 -21
- 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 +16 -5
- package/esm2015/lib/components/mosaic/mosaic.component.js +32 -19
- package/fesm2015/wizishop-angular-components.js +45 -21
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/block-with-checkbox/block-with-checkbox.component.d.ts +5 -0
- package/lib/components/mosaic/mosaic.component.d.ts +18 -8
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.168.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.164.tgz +0 -0
package/assets/i18n/en.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"wac.datatable.noresult":"There are no results for this search","wac.input.progressbar.information.good":"Very good","wac.input.progressbar.information.too.long":"Too long","wac.input.progressbar.information.too.short":"Too short","wac.PaginationComponent.on":"{{low}}-{{high}} of {{total}}","wac.PaginationComponent.page":"Go to page","wac.simpleSearchComponent.error":"The search field is compulsory"}
|
|
1
|
+
{"wac.datatable.noresult":"There are no results for this search","wac.input.progressbar.information.good":"Very good","wac.input.progressbar.information.too.long":"Too long","wac.input.progressbar.information.too.short":"Too short","wac.MosaicComponent.import":"Import","wac.PaginationComponent.on":"{{low}}-{{high}} of {{total}}","wac.PaginationComponent.page":"Go to page","wac.simpleSearchComponent.error":"The search field is compulsory"}
|
package/assets/i18n/fr.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"wac.datatable.noresult":"Il n'y a aucun résultat pour cette recherche","wac.input.progressbar.information.good":"Très bien","wac.input.progressbar.information.too.long":"Trop long","wac.input.progressbar.information.too.short":"Trop court","wac.PaginationComponent.on":"{{low}}-{{high}} sur {{total}}","wac.PaginationComponent.page":"Aller à la page","wac.simpleSearchComponent.error":"Le champ de recherche est obligatoire"}
|
|
1
|
+
{"wac.datatable.noresult":"Il n'y a aucun résultat pour cette recherche","wac.input.progressbar.information.good":"Très bien","wac.input.progressbar.information.too.long":"Trop long","wac.input.progressbar.information.too.short":"Trop court","wac.MosaicComponent.import":"Importer","wac.PaginationComponent.on":"{{low}}-{{high}} sur {{total}}","wac.PaginationComponent.page":"Aller à la page","wac.simpleSearchComponent.error":"Le champ de recherche est obligatoire"}
|
|
@@ -4308,13 +4308,18 @@
|
|
|
4308
4308
|
this.copyAction = new i0.EventEmitter();
|
|
4309
4309
|
this.worldAction = new i0.EventEmitter();
|
|
4310
4310
|
this.checkboxAction = new i0.EventEmitter();
|
|
4311
|
+
this.nameRadio = 'wacBlockCheckboxRadio';
|
|
4312
|
+
this.isFirst = false;
|
|
4313
|
+
this.opacity = '.45';
|
|
4311
4314
|
}
|
|
4312
4315
|
BlockWithCheckboxComponent.prototype.ngOnInit = function () {
|
|
4316
|
+
this.randomLabelName = 'radioBlock' + Math.random() * (900 - 700) + 700;
|
|
4313
4317
|
};
|
|
4314
4318
|
BlockWithCheckboxComponent.prototype.eventSelected = function (event) {
|
|
4315
|
-
|
|
4316
|
-
|
|
4319
|
+
console.log(event);
|
|
4320
|
+
this.selected = event.target.checked;
|
|
4317
4321
|
this.checkboxAction.emit(this.selected);
|
|
4322
|
+
this.isFirst = false;
|
|
4318
4323
|
};
|
|
4319
4324
|
BlockWithCheckboxComponent.prototype.eventCopy = function () {
|
|
4320
4325
|
this.copyAction.emit(true);
|
|
@@ -4322,12 +4327,15 @@
|
|
|
4322
4327
|
BlockWithCheckboxComponent.prototype.eventWorld = function () {
|
|
4323
4328
|
this.worldAction.emit(true);
|
|
4324
4329
|
};
|
|
4330
|
+
BlockWithCheckboxComponent.prototype.removeFirstClass = function () {
|
|
4331
|
+
document.querySelectorAll('.firstWacRadioBLock')[0].classList.remove('firstWacRadioBLock');
|
|
4332
|
+
};
|
|
4325
4333
|
return BlockWithCheckboxComponent;
|
|
4326
4334
|
}());
|
|
4327
4335
|
BlockWithCheckboxComponent.decorators = [
|
|
4328
4336
|
{ type: i0.Component, args: [{
|
|
4329
4337
|
selector: 'wac-block-with-checkbox',
|
|
4330
|
-
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=\"
|
|
4338
|
+
template: "<div class=\"block-with-checkbox\" [ngClass]=\"{'selected': inputRadioA.checked, 'firstWacRadioBLock': isFirst}\" [style.opacity]=\"opacity\" (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"
|
|
4331
4339
|
},] }
|
|
4332
4340
|
];
|
|
4333
4341
|
BlockWithCheckboxComponent.ctorParameters = function () { return []; };
|
|
@@ -4337,7 +4345,10 @@
|
|
|
4337
4345
|
iconWorld: [{ type: i0.Input }],
|
|
4338
4346
|
copyAction: [{ type: i0.Output }],
|
|
4339
4347
|
worldAction: [{ type: i0.Output }],
|
|
4340
|
-
checkboxAction: [{ type: i0.Output }]
|
|
4348
|
+
checkboxAction: [{ type: i0.Output }],
|
|
4349
|
+
nameRadio: [{ type: i0.Input }],
|
|
4350
|
+
isFirst: [{ type: i0.Input }],
|
|
4351
|
+
opacity: [{ type: i0.Input }]
|
|
4341
4352
|
};
|
|
4342
4353
|
|
|
4343
4354
|
var ConfirmDeleteComponent = /** @class */ (function () {
|
|
@@ -4378,36 +4389,53 @@
|
|
|
4378
4389
|
|
|
4379
4390
|
var MosaicComponent = /** @class */ (function () {
|
|
4380
4391
|
function MosaicComponent() {
|
|
4381
|
-
this.
|
|
4392
|
+
this._imagesList = [];
|
|
4393
|
+
this.isLoading = false;
|
|
4394
|
+
this.numberOfColumn = 3;
|
|
4395
|
+
this.importImageSrc = new i0.EventEmitter();
|
|
4382
4396
|
}
|
|
4383
|
-
MosaicComponent.prototype
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
this.
|
|
4397
|
+
Object.defineProperty(MosaicComponent.prototype, "imagesList", {
|
|
4398
|
+
get: function () {
|
|
4399
|
+
return this._imagesList;
|
|
4400
|
+
},
|
|
4401
|
+
set: function (imagesList) {
|
|
4402
|
+
this._imagesList = imagesList;
|
|
4403
|
+
this.generateColumns();
|
|
4404
|
+
},
|
|
4405
|
+
enumerable: false,
|
|
4406
|
+
configurable: true
|
|
4407
|
+
});
|
|
4408
|
+
MosaicComponent.prototype.generateColumns = function () {
|
|
4409
|
+
this.columns = this.sliceIntoChunks();
|
|
4410
|
+
};
|
|
4411
|
+
MosaicComponent.prototype.sliceIntoChunks = function () {
|
|
4412
|
+
var columns = [];
|
|
4413
|
+
var numberOfImagePerColumn = this.imagesList.length / this.numberOfColumn;
|
|
4414
|
+
for (var i = 0; i < this.imagesList.length; i += numberOfImagePerColumn) {
|
|
4415
|
+
var chunk = this.imagesList.slice(i, i + numberOfImagePerColumn);
|
|
4416
|
+
columns.push(chunk);
|
|
4389
4417
|
}
|
|
4390
|
-
|
|
4418
|
+
return columns;
|
|
4391
4419
|
};
|
|
4392
|
-
MosaicComponent.prototype.
|
|
4393
|
-
|
|
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;
|
|
4420
|
+
MosaicComponent.prototype.onImportImage = function (src) {
|
|
4421
|
+
this.importImageSrc.emit(src);
|
|
4399
4422
|
};
|
|
4400
4423
|
return MosaicComponent;
|
|
4401
4424
|
}());
|
|
4402
4425
|
MosaicComponent.decorators = [
|
|
4403
4426
|
{ type: i0.Component, args: [{
|
|
4404
4427
|
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\" *
|
|
4428
|
+
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\" *ngFor=\"let column of columns\">\n <div class=\"wac-mosaic__wrapper__column__image\" *ngFor=\"let image of column; let i = index;\">\n <img [src]=\"image.src\" [alt]=\"image.alt\"/>\n <div class=\"hover\">\n <ng-container\n [ngTemplateOutlet]=\"importButtonTemplate || defaultImportButton\"\n [ngTemplateOutletContext]=\"{ $implicit: image }\"\n >\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<ng-template #defaultImportButton let-image>\n <wac-button [icon]=\"'fa-solid fa-image'\" [label]=\"'wac.MosaicComponent.import' | translate\" [extraClasses]=\"'is-success'\" (click)=\"onImportImage(image.src)\"></wac-button>\n</ng-template>\n",
|
|
4429
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
4406
4430
|
},] }
|
|
4407
4431
|
];
|
|
4408
4432
|
MosaicComponent.ctorParameters = function () { return []; };
|
|
4409
4433
|
MosaicComponent.propDecorators = {
|
|
4410
|
-
|
|
4434
|
+
imagesList: [{ type: i0.Input }],
|
|
4435
|
+
isLoading: [{ type: i0.Input }],
|
|
4436
|
+
numberOfColumn: [{ type: i0.Input }],
|
|
4437
|
+
importButtonTemplate: [{ type: i0.Input }],
|
|
4438
|
+
importImageSrc: [{ type: i0.Output }]
|
|
4411
4439
|
};
|
|
4412
4440
|
|
|
4413
4441
|
var components = [
|