@wizishop/angular-components 0.0.166 → 0.0.170
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 +419 -419
- package/assets/i18n/en.json +1 -1
- package/assets/i18n/fr.json +1 -1
- package/bundles/wizishop-angular-components.umd.js +48 -32
- 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 +5 -3
- package/esm2015/lib/components/inputs/input/input.component.js +4 -2
- package/esm2015/lib/components/mosaic/mosaic.component.js +31 -25
- package/esm2015/lib/components/text-area/text-area.component.js +5 -4
- package/esm2015/lib/components/wrapper-sidebar/wrapper-sidebar.component.js +4 -3
- package/fesm2015/wizishop-angular-components.js +43 -31
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/block-with-checkbox/block-with-checkbox.component.d.ts +1 -0
- package/lib/components/inputs/input/input.component.d.ts +2 -0
- package/lib/components/mosaic/mosaic.component.d.ts +18 -12
- package/lib/components/text-area/text-area.component.d.ts +2 -1
- package/lib/components/wrapper-sidebar/wrapper-sidebar.component.d.ts +1 -0
- package/package.json +1 -1
- package/wizishop-angular-components-0.0.170.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.166.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"}
|
|
@@ -2030,7 +2030,7 @@
|
|
|
2030
2030
|
TextAreaComponent.decorators = [
|
|
2031
2031
|
{ type: i0.Component, args: [{
|
|
2032
2032
|
selector: 'wac-text-area',
|
|
2033
|
-
template: "<div class=\"field wac-text-area\" [ngClass]=\"{'dynamic': dynamicSize}\">\n <div class=\"field-label is-normal has-text-left\">\n <label class=\"label has-text-weight-normal\" [innerHTML]=\"label\" [for]=\"id\"></label>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p class=\"control\" [ngClass]=\"{ 'has-icons-right': textError }\">\n <textarea\n class=\"textarea\"\n [id]=\"id\"\n [ngClass]=\"{ 'is-danger': textError, 'has-help-text': textInfo != '' || size }\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n [autosize]=\"dynamicSize\"\n [onlyGrow]=\"true\"\n [maxlength]=\"maxlength ? maxlength : 524288\"\n ></textarea>\n\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n <span\n *ngIf=\"textInfo && (textError === null || textError === '')\"\n class=\"is-size-7 wac-text-area__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n <span *ngIf=\"textError\" class=\"is-size-7 wac-text-area__error has-text-danger\" [innerHtml]=\"textError\"></span>\n <span\n *ngIf=\"size && !progressBar\"\n class=\"is-size-7 wac-text-area__size\"\n [ngClass]=\"value
|
|
2033
|
+
template: "<div class=\"field wac-text-area\" [ngClass]=\"{'dynamic': dynamicSize}\">\n <div class=\"field-label is-normal has-text-left\">\n <label class=\"label has-text-weight-normal\" [innerHTML]=\"label\" [for]=\"id\"></label>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p class=\"control\" [ngClass]=\"{ 'has-icons-right': textError }\">\n <textarea\n class=\"textarea\"\n [id]=\"id\"\n [ngClass]=\"{ 'is-danger': textError, 'has-help-text': textInfo != '' || size }\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n [autosize]=\"dynamicSize\"\n [onlyGrow]=\"true\"\n [maxlength]=\"maxlength ? maxlength : 524288\"\n [minlength]=\"minlength ? minlength : 0\"\n ></textarea>\n\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n <span\n *ngIf=\"textInfo && (textError === null || textError === '')\"\n class=\"is-size-7 wac-text-area__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n <span *ngIf=\"textError\" class=\"is-size-7 wac-text-area__error has-text-danger\" [innerHtml]=\"textError\"></span>\n <span\n *ngIf=\"size && !progressBar\"\n class=\"is-size-7 wac-text-area__size\"\n [ngClass]=\"value.length > size ? 'has-text-danger' : ''\"\n >{{ value ? value.length : 0 }}/{{ size }}</span\n >\n </p>\n <wac-progress-bar *ngIf=\"progressBar && value\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
|
|
2034
2034
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: TextAreaComponent, multi: true }]
|
|
2035
2035
|
},] }
|
|
2036
2036
|
];
|
|
@@ -2042,11 +2042,12 @@
|
|
|
2042
2042
|
textError: [{ type: i0.Input }],
|
|
2043
2043
|
size: [{ type: i0.Input }],
|
|
2044
2044
|
min: [{ type: i0.Input }],
|
|
2045
|
-
maxlength: [{ type: i0.Input }],
|
|
2046
2045
|
max: [{ type: i0.Input }],
|
|
2047
2046
|
dynamicSize: [{ type: i0.Input }],
|
|
2048
2047
|
progressBar: [{ type: i0.Input }],
|
|
2049
|
-
disabled: [{ type: i0.Input }]
|
|
2048
|
+
disabled: [{ type: i0.Input }],
|
|
2049
|
+
maxlength: [{ type: i0.Input }],
|
|
2050
|
+
minlength: [{ type: i0.Input }]
|
|
2050
2051
|
};
|
|
2051
2052
|
|
|
2052
2053
|
var H1Component = /** @class */ (function () {
|
|
@@ -2213,7 +2214,7 @@
|
|
|
2213
2214
|
InputComponent.decorators = [
|
|
2214
2215
|
{ type: i0.Component, args: [{
|
|
2215
2216
|
selector: 'wac-input',
|
|
2216
|
-
template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'is-medium': medium, 'with-padding': padding, 'indication-left': indicationLeft, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"
|
|
2217
|
+
template: "<div\n class=\"field wac-input\"\n [ngClass]=\"{ 'has-no-block': withoutBlock, 'is-big': big, 'is-medium': medium, 'with-padding': padding, 'indication-left': indicationLeft, 'with-progress-bar': progressBar }\"\n>\n <div class=\"field-label is-normal has-text-left\" *ngIf=\"!withoutBlock\">\n <label\n [ngClass]=\"[boldLabel == 'true' ? 'label has-text-weight-bold' : 'label has-text-weight-normal', showTooltip ? 'label-inline' : '']\"\n [innerHTML]=\"label\"\n [for]=\"id\"\n ></label>\n <wac-tooltip\n *ngIf=\"showTooltip\"\n [tooltipIcon]=\"iconTooltip\"\n [tooltipText]=\"textTooltip\"\n [tooltipLink]=\"linkTooltip\"\n [tooltipUrl]=\"urlTooltip\"\n ></wac-tooltip>\n <!-- Size -->\n <span *ngIf=\"size && !progressBar\" class=\"is-size-7 wac-input__size\">\n <strong>{{ value.toString().length }}</strong> / {{ size }}\n </span>\n </div>\n <div class=\"field-body\">\n <div class=\"field\">\n <p\n class=\"control\"\n [ngClass]=\"{ 'has-icons-right': textError || success, 'has-icons-left': icon !== '', 'has-input-group': textAppend || textPrepend }\"\n >\n <!-- Text Prepend -->\n <span *ngIf=\"textPrepend\" class=\"has-input-group\">\n <span class=\"has-input-group-text prepend\">{{ textPrepend }}</span>\n <span *ngIf=\"icon !== ''\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n </span>\n\n <!-- Input -->\n <input\n [class]=\"'input ' + extraClasses\"\n [id]=\"id\"\n [ngClass]=\"{\n 'is-danger': textError,\n 'is-large': big,\n 'is-number': isNumber,\n 'remove-margin': disableMargin,\n 'text-append': textAppend\n }\"\n [type]=\"type\"\n [placeholder]=\"placeholder\"\n [attr.size]=\"size\"\n [(ngModel)]=\"value\"\n (ngModelChange)=\"onChange($event)\"\n (blur)=\"onBlur()\"\n [disabled]=\"disabled\"\n (focusout)=\"onFocusOut()\"\n [min]=\"min\"\n [max]=\"max\"\n [maxlength]=\"maxlength ? maxlength : 524288\"\n [minlength]=\"minlength ? minlength : 0\"\n (keypress)=\"keyPress($event)\"\n />\n\n <!-- Indication at the end of the input -->\n <span class=\"indication\" *ngIf=\"indication\" [ngClass]=\"{'reverse': indicationLeft}\">\n <span [innerHTML]=\"indication\"></span>\n </span>\n\n <!-- Text Append -->\n <span *ngIf=\"textAppend && !indicationLeft\" class=\"has-input-group\">\n <span class=\"has-input-group-text append\">{{ textAppend }}</span>\n <!-- error if text append not empty -->\n <span *ngIf=\"textError\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n </span>\n\n <!-- Icon Left -->\n <span *ngIf=\"icon !== '' && !textPrepend && !indicationLeft\" class=\"icon is-small is-left\">\n <i [class]=\"icon\"></i>\n </span>\n\n <!-- Icon error if textAppend empty -->\n <span *ngIf=\"textError && !textAppend && !indicationLeft\" class=\"icon is-small is-right\">\n <i class=\"fal fa-times has-text-danger\"></i>\n </span>\n\n <!-- Icon success -->\n <span *ngIf=\"success\" class=\"icon is-small is-right\">\n <i class=\"fas fa-check has-text-success\"></i>\n </span>\n\n <!-- Text Info -->\n <span\n *ngIf=\"textInfo && (textError === null || textError === '') && !progressBar && !indicationLeft\"\n class=\"is-size-7 wac-input__info text-info\"\n [innerHtml]=\"textInfo\"\n ></span>\n\n <!-- Text Error -->\n <span *ngIf=\"textError && !progressBar && !indicationLeft\" class=\"is-size-7 wac-input__error has-text-danger\" [innerHtml]=\"textError\"></span>\n </p>\n\n <!-- Progress Bar -->\n <wac-progress-bar *ngIf=\"progressBar && !indicationLeft\" [min]=\"min\" [max]=\"max\" [valueLength]=\"value.length\"></wac-progress-bar>\n </div>\n </div>\n</div>\n",
|
|
2217
2218
|
providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: InputComponent, multi: true }]
|
|
2218
2219
|
},] }
|
|
2219
2220
|
];
|
|
@@ -2248,6 +2249,8 @@
|
|
|
2248
2249
|
disabled: [{ type: i0.Input }],
|
|
2249
2250
|
indication: [{ type: i0.Input }],
|
|
2250
2251
|
success: [{ type: i0.Input }],
|
|
2252
|
+
maxlength: [{ type: i0.Input }],
|
|
2253
|
+
minlength: [{ type: i0.Input }],
|
|
2251
2254
|
indicationLeft: [{ type: i0.Input }],
|
|
2252
2255
|
keypressEnter: [{ type: i0.Output }]
|
|
2253
2256
|
};
|
|
@@ -4209,12 +4212,13 @@
|
|
|
4209
4212
|
WrapperSidebarComponent.decorators = [
|
|
4210
4213
|
{ type: i0.Component, args: [{
|
|
4211
4214
|
selector: 'wac-wrapper-sidebar',
|
|
4212
|
-
template: "<div class=\"wac-wrapper-sidebar\" [ngClass]=\"{'reverse': reverse}\">\n <div class=\"wac-wrapper-sidebar__left\">\n <ng-content select=\"[sidebar]\"></ng-content>\n </div>\n <div class=\"wac-wrapper-sidebar__right\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n</div>\n"
|
|
4215
|
+
template: "<div class=\"wac-wrapper-sidebar\" [ngClass]=\"{'reverse': reverse}\">\n <div class=\"wac-wrapper-sidebar__left\">\n <ng-content select=\"[sidebar]\"></ng-content>\n </div>\n <div class=\"wac-wrapper-sidebar__right\" [style.backgroundImage]=\"'url(' + backgroundGrey + ')'\">\n <ng-content select=\"[content]\"></ng-content>\n </div>\n</div>\n"
|
|
4213
4216
|
},] }
|
|
4214
4217
|
];
|
|
4215
4218
|
WrapperSidebarComponent.ctorParameters = function () { return []; };
|
|
4216
4219
|
WrapperSidebarComponent.propDecorators = {
|
|
4217
|
-
reverse: [{ type: i0.Input }]
|
|
4220
|
+
reverse: [{ type: i0.Input }],
|
|
4221
|
+
backgroundGrey: [{ type: i0.Input }]
|
|
4218
4222
|
};
|
|
4219
4223
|
|
|
4220
4224
|
var BreadcrumbsComponent = /** @class */ (function () {
|
|
@@ -4310,6 +4314,7 @@
|
|
|
4310
4314
|
this.checkboxAction = new i0.EventEmitter();
|
|
4311
4315
|
this.nameRadio = 'wacBlockCheckboxRadio';
|
|
4312
4316
|
this.isFirst = false;
|
|
4317
|
+
this.opacity = '.45';
|
|
4313
4318
|
}
|
|
4314
4319
|
BlockWithCheckboxComponent.prototype.ngOnInit = function () {
|
|
4315
4320
|
this.randomLabelName = 'radioBlock' + Math.random() * (900 - 700) + 700;
|
|
@@ -4334,7 +4339,7 @@
|
|
|
4334
4339
|
BlockWithCheckboxComponent.decorators = [
|
|
4335
4340
|
{ type: i0.Component, args: [{
|
|
4336
4341
|
selector: 'wac-block-with-checkbox',
|
|
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"
|
|
4342
|
+
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"
|
|
4338
4343
|
},] }
|
|
4339
4344
|
];
|
|
4340
4345
|
BlockWithCheckboxComponent.ctorParameters = function () { return []; };
|
|
@@ -4346,7 +4351,8 @@
|
|
|
4346
4351
|
worldAction: [{ type: i0.Output }],
|
|
4347
4352
|
checkboxAction: [{ type: i0.Output }],
|
|
4348
4353
|
nameRadio: [{ type: i0.Input }],
|
|
4349
|
-
isFirst: [{ type: i0.Input }]
|
|
4354
|
+
isFirst: [{ type: i0.Input }],
|
|
4355
|
+
opacity: [{ type: i0.Input }]
|
|
4350
4356
|
};
|
|
4351
4357
|
|
|
4352
4358
|
var ConfirmDeleteComponent = /** @class */ (function () {
|
|
@@ -4387,43 +4393,53 @@
|
|
|
4387
4393
|
|
|
4388
4394
|
var MosaicComponent = /** @class */ (function () {
|
|
4389
4395
|
function MosaicComponent() {
|
|
4390
|
-
this.
|
|
4391
|
-
this.
|
|
4396
|
+
this._imagesList = [];
|
|
4397
|
+
this.isLoading = false;
|
|
4398
|
+
this.numberOfColumn = 3;
|
|
4399
|
+
this.importImageSrc = new i0.EventEmitter();
|
|
4392
4400
|
}
|
|
4393
|
-
MosaicComponent.prototype
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
|
|
4397
|
-
|
|
4398
|
-
this.
|
|
4401
|
+
Object.defineProperty(MosaicComponent.prototype, "imagesList", {
|
|
4402
|
+
get: function () {
|
|
4403
|
+
return this._imagesList;
|
|
4404
|
+
},
|
|
4405
|
+
set: function (imagesList) {
|
|
4406
|
+
this._imagesList = imagesList;
|
|
4407
|
+
this.generateColumns();
|
|
4408
|
+
},
|
|
4409
|
+
enumerable: false,
|
|
4410
|
+
configurable: true
|
|
4411
|
+
});
|
|
4412
|
+
MosaicComponent.prototype.generateColumns = function () {
|
|
4413
|
+
this.columns = this.sliceIntoChunks();
|
|
4414
|
+
};
|
|
4415
|
+
MosaicComponent.prototype.sliceIntoChunks = function () {
|
|
4416
|
+
var columns = [];
|
|
4417
|
+
var numberOfImagePerColumn = this.imagesList.length / this.numberOfColumn;
|
|
4418
|
+
for (var i = 0; i < this.imagesList.length; i += numberOfImagePerColumn) {
|
|
4419
|
+
var chunk = this.imagesList.slice(i, i + numberOfImagePerColumn);
|
|
4420
|
+
columns.push(chunk);
|
|
4399
4421
|
}
|
|
4400
|
-
|
|
4422
|
+
return columns;
|
|
4401
4423
|
};
|
|
4402
|
-
MosaicComponent.prototype.
|
|
4403
|
-
this.
|
|
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;
|
|
4424
|
+
MosaicComponent.prototype.onImportImage = function (src) {
|
|
4425
|
+
this.importImageSrc.emit(src);
|
|
4412
4426
|
};
|
|
4413
4427
|
return MosaicComponent;
|
|
4414
4428
|
}());
|
|
4415
4429
|
MosaicComponent.decorators = [
|
|
4416
4430
|
{ type: i0.Component, args: [{
|
|
4417
4431
|
selector: 'wac-mosaic',
|
|
4418
|
-
template: "<div class=\"wac-
|
|
4432
|
+
template: "<div class=\"wac-mosaic\" *ngIf=\"!isLoading; else loading\">\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\n<ng-template #loading>\n <div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\n </div>\n</ng-template>\n",
|
|
4433
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
4419
4434
|
},] }
|
|
4420
4435
|
];
|
|
4421
4436
|
MosaicComponent.ctorParameters = function () { return []; };
|
|
4422
4437
|
MosaicComponent.propDecorators = {
|
|
4423
|
-
|
|
4424
|
-
|
|
4425
|
-
|
|
4426
|
-
|
|
4438
|
+
imagesList: [{ type: i0.Input }],
|
|
4439
|
+
isLoading: [{ type: i0.Input }],
|
|
4440
|
+
numberOfColumn: [{ type: i0.Input }],
|
|
4441
|
+
importButtonTemplate: [{ type: i0.Input }],
|
|
4442
|
+
importImageSrc: [{ type: i0.Output }]
|
|
4427
4443
|
};
|
|
4428
4444
|
|
|
4429
4445
|
var components = [
|