@wizishop/angular-components 0.0.174 → 0.0.177
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 +2514 -2133
- package/bundles/wizishop-angular-components.umd.js +83 -46
- 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/block-with-checkbox/block-with-checkbox.component.js +9 -20
- package/esm2015/lib/components/button/button.component.js +6 -2
- package/esm2015/lib/components/card-price/card-price.component.js +15 -3
- package/esm2015/lib/components/content-with-buttons/content-with-buttons.component.js +14 -0
- package/esm2015/lib/components/mosaic/mosaic.component.js +39 -20
- package/esm2015/lib/components/shared-components.module.js +4 -2
- package/esm2015/public-api.js +2 -1
- package/fesm2015/wizishop-angular-components.js +81 -43
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/block-with-checkbox/block-with-checkbox.component.d.ts +1 -6
- package/lib/components/button/button.component.d.ts +3 -0
- package/lib/components/card-price/card-price.component.d.ts +7 -0
- package/lib/components/content-with-buttons/content-with-buttons.component.d.ts +5 -0
- package/lib/components/mosaic/mosaic.component.d.ts +10 -8
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-0.0.177.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.174.tgz +0 -0
|
@@ -1243,6 +1243,7 @@
|
|
|
1243
1243
|
this.animationText = '';
|
|
1244
1244
|
this.confirmDelete = false;
|
|
1245
1245
|
this.confirmDeleteText = '';
|
|
1246
|
+
this.tooltipPosition = 'top-center';
|
|
1246
1247
|
this.confirmDeletePosition = 'right';
|
|
1247
1248
|
this.click = new i0.EventEmitter();
|
|
1248
1249
|
this.isLoadingChange = new i0.EventEmitter();
|
|
@@ -1332,7 +1333,7 @@
|
|
|
1332
1333
|
ButtonComponent.decorators = [
|
|
1333
1334
|
{ type: i0.Component, args: [{
|
|
1334
1335
|
selector: 'wac-button',
|
|
1335
|
-
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"confirmDelete && waitForConfirmDelete ? addMaxWidthDelete() : '';onButtonClick($event);\"\n (mouseleave)=\"animation ? resetMaxWidth() : '';\"\n (mouseenter)=\"animation ? addMaxWidth() : '';\"\n wzAutoHide (clickOutside)=\"confirmDelete && !waitForConfirmDelete ? resetMaxWidthDelete() : ''\"\n [ngClass]=\"[\n label === '' ? 'alone' : '',\n coin ? 'has-coin width-auto' : '',\n animationRight ? 'animation-right' : '',\n animation ? 'animationText' : '',\n isLoading ? 'is-loading' : '',\n opacity ? 'opacity' : '',\n disabled ? 'disabled' : '',\n widthAuto ? 'width-auto' : '',\n whiteSpaceNowrap ? 'white-space-no-wrap' : '',\n !waitForConfirmDelete && confirmDelete ? 'step-delete' : '',\n confirmDelete ? 'deletePosition-' + confirmDeletePosition : ''\n ]\"\n [ngStyle]=\"{\n 'text-align': contentHorizontalPosition\n }\"\n>\n <span class=\"wac-button__wrapper\" [style.color]=\"textcolor ? textcolor : ''\">\n <i *ngIf=\"icon\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span class=\"wac-button__animation\" [style.maxWidth]=\"buttonMaxWidth\" [style.width]=\"buttonWidth + 'px'\">\n <span #calculWidth class=\"wac-button__animation__text\" [innerHTML]=\"animationText\"></span>\n </span>\n <span class=\"wac-button__confirmDelete\" [style.maxWidth]=\"buttonMaxWidthDelete\" [style.width]=\"buttonWidthDelete + 'px'\">\n <span #calculWidthDelete class=\"wac-button__confirmDelete__text\" [innerHTML]=\"confirmDeleteText\"></span>\n </span>\n <span *ngIf=\"coin\" class=\"wac-button__coin\"><i class=\"fa-solid fa-coin-front\"></i><span [innerHTML]=\"coin\"></span></span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n\n </span>\n</a>\n"
|
|
1336
|
+
template: "<a\n [class]=\"'wac-button ' + extraClasses\"\n (click)=\"confirmDelete && waitForConfirmDelete ? addMaxWidthDelete() : '';onButtonClick($event);\"\n (mouseleave)=\"animation ? resetMaxWidth() : '';\"\n (mouseenter)=\"animation ? addMaxWidth() : '';\"\n wzAutoHide (clickOutside)=\"confirmDelete && !waitForConfirmDelete ? resetMaxWidthDelete() : ''\"\n [ngClass]=\"[\n label === '' ? 'alone' : '',\n coin ? 'has-coin width-auto' : '',\n animationRight ? 'animation-right' : '',\n animation ? 'animationText' : '',\n isLoading ? 'is-loading' : '',\n opacity ? 'opacity' : '',\n disabled ? 'disabled' : '',\n widthAuto ? 'width-auto' : '',\n whiteSpaceNowrap ? 'white-space-no-wrap' : '',\n !waitForConfirmDelete && confirmDelete ? 'step-delete' : '',\n confirmDelete ? 'deletePosition-' + confirmDeletePosition : ''\n ]\"\n [ngStyle]=\"{\n 'text-align': contentHorizontalPosition\n }\"\n>\n <span class=\"wac-button__wrapper\" [style.color]=\"textcolor ? textcolor : ''\">\n <i *ngIf=\"icon\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n <span class=\"wac-button__animation\" [style.maxWidth]=\"buttonMaxWidth\" [style.width]=\"buttonWidth + 'px'\">\n <span #calculWidth class=\"wac-button__animation__text\" [innerHTML]=\"animationText\"></span>\n </span>\n <span class=\"wac-button__confirmDelete\" [style.maxWidth]=\"buttonMaxWidthDelete\" [style.width]=\"buttonWidthDelete + 'px'\">\n <span #calculWidthDelete class=\"wac-button__confirmDelete__text\" [innerHTML]=\"confirmDeleteText\"></span>\n </span>\n <span *ngIf=\"coin\" class=\"wac-button__coin\"><i class=\"fa-solid fa-coin-front\"></i><span [innerHTML]=\"coin\"></span></span>\n <span\n class=\"wac-button__loader\"\n [ngClass]=\"extraClasses.includes('is-outlined') ? 'outlined' : ''\"\n *ngIf=\"isLoading\"\n [style.width]=\"currentLoading + '%'\"\n >\n <span *ngIf=\"extraClasses.includes('is-outlined')\">\n <i *ngIf=\"icon !== ''\" [ngClass]=\"icon\" [style.font-size.px]=\"iconFontSize\"></i>\n {{ label }}\n <i *ngIf=\"iconNext !== ''\" [ngClass]=\"iconNext\" [style.font-size.px]=\"iconFontSize\"></i>\n </span>\n </span>\n <span class=\"wac-button__tooltips {{ tooltipPosition }}\" [style.minWidth]=\"tooltipWidth\" *ngIf=\"tooltip\">\n {{ tooltip }}\n </span>\n</a>\n"
|
|
1336
1337
|
},] }
|
|
1337
1338
|
];
|
|
1338
1339
|
ButtonComponent.ctorParameters = function () { return []; };
|
|
@@ -1355,6 +1356,9 @@
|
|
|
1355
1356
|
confirmDelete: [{ type: i0.Input }],
|
|
1356
1357
|
confirmDeleteText: [{ type: i0.Input }],
|
|
1357
1358
|
coin: [{ type: i0.Input }],
|
|
1359
|
+
tooltip: [{ type: i0.Input }],
|
|
1360
|
+
tooltipWidth: [{ type: i0.Input }],
|
|
1361
|
+
tooltipPosition: [{ type: i0.Input }],
|
|
1358
1362
|
confirmDeletePosition: [{ type: i0.Input }],
|
|
1359
1363
|
click: [{ type: i0.Output }],
|
|
1360
1364
|
isLoading: [{ type: i0.Input }],
|
|
@@ -4251,39 +4255,51 @@
|
|
|
4251
4255
|
|
|
4252
4256
|
var CardPriceComponent = /** @class */ (function () {
|
|
4253
4257
|
function CardPriceComponent() {
|
|
4258
|
+
this.selected = false;
|
|
4254
4259
|
this.disabled = false;
|
|
4255
4260
|
this.btnTextcolor = '#ffffff';
|
|
4256
4261
|
this.extraClasses = 'is-success';
|
|
4262
|
+
this.extraClassesSelected = 'is-success is-outlined';
|
|
4257
4263
|
this.hideButton = false;
|
|
4258
4264
|
this.click = new i0.EventEmitter();
|
|
4265
|
+
this.removePackage = new i0.EventEmitter();
|
|
4259
4266
|
}
|
|
4260
4267
|
CardPriceComponent.prototype.ngOnInit = function () {
|
|
4261
4268
|
};
|
|
4262
4269
|
CardPriceComponent.prototype.triggerClick = function () {
|
|
4263
4270
|
this.click.emit(true);
|
|
4264
4271
|
};
|
|
4272
|
+
CardPriceComponent.prototype.removePackageTrigger = function () {
|
|
4273
|
+
this.removePackage.emit(true);
|
|
4274
|
+
};
|
|
4265
4275
|
return CardPriceComponent;
|
|
4266
4276
|
}());
|
|
4267
4277
|
CardPriceComponent.decorators = [
|
|
4268
4278
|
{ type: i0.Component, args: [{
|
|
4269
4279
|
selector: 'wac-card-price',
|
|
4270
|
-
template: "<div class=\"wac-card-price\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [textcolor]=\"btnTextcolor\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n</div>\n"
|
|
4280
|
+
template: "<div class=\"wac-card-price\" [ngClass]=\"{'selected': selected}\">\n <strong>{{amount}}</strong>\n <p>{{title}}</p>\n <div class=\"price\">\n <span class=\"amount\">{{price}} <span>{{currency}}</span></span><span class=\"month\">{{priceWording}}</span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\" *ngIf=\"!selected\">\n <wac-button [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [whiteSpaceNowrap]=\"true\" [textcolor]=\"btnTextcolor\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n <div class=\"cta\" *ngIf=\"selected\">\n <wac-button [icon]=\"'fa-solid fa-check'\" [label]=\"btnLabelSelected\" [extraClasses]=\"extraClassesSelected\" [whiteSpaceNowrap]=\"true\" *ngIf=\"!hideButton\"></wac-button>\n </div>\n <div class=\"package-subtitle\" *ngIf=\"packageSubtitle\">{{packageSubtitle}}</div>\n <div class=\"link-bottom\">\n <wac-link (click)=\"removePackageTrigger()\">{{linkPackageLabel}}</wac-link>\n </div>\n</div>\n"
|
|
4271
4281
|
},] }
|
|
4272
4282
|
];
|
|
4273
4283
|
CardPriceComponent.ctorParameters = function () { return []; };
|
|
4274
4284
|
CardPriceComponent.propDecorators = {
|
|
4275
4285
|
amount: [{ type: i0.Input }],
|
|
4276
4286
|
title: [{ type: i0.Input }],
|
|
4287
|
+
selected: [{ type: i0.Input }],
|
|
4288
|
+
btnLabelSelected: [{ type: i0.Input }],
|
|
4277
4289
|
price: [{ type: i0.Input }],
|
|
4278
4290
|
currency: [{ type: i0.Input }],
|
|
4279
4291
|
priceWording: [{ type: i0.Input }],
|
|
4280
4292
|
subtitle: [{ type: i0.Input }],
|
|
4281
4293
|
btnLabel: [{ type: i0.Input }],
|
|
4294
|
+
packageSubtitle: [{ type: i0.Input }],
|
|
4295
|
+
linkPackageLabel: [{ type: i0.Input }],
|
|
4282
4296
|
disabled: [{ type: i0.Input }],
|
|
4283
4297
|
btnTextcolor: [{ type: i0.Input }],
|
|
4284
4298
|
extraClasses: [{ type: i0.Input }],
|
|
4299
|
+
extraClassesSelected: [{ type: i0.Input }],
|
|
4285
4300
|
hideButton: [{ type: i0.Input }],
|
|
4286
|
-
click: [{ type: i0.Output }]
|
|
4301
|
+
click: [{ type: i0.Output }],
|
|
4302
|
+
removePackage: [{ type: i0.Output }]
|
|
4287
4303
|
};
|
|
4288
4304
|
|
|
4289
4305
|
var TokenCheckComponent = /** @class */ (function () {
|
|
@@ -4310,10 +4326,7 @@
|
|
|
4310
4326
|
var BlockWithCheckboxComponent = /** @class */ (function () {
|
|
4311
4327
|
function BlockWithCheckboxComponent() {
|
|
4312
4328
|
this.selected = false;
|
|
4313
|
-
this.
|
|
4314
|
-
this.iconWorld = 'fa-thin fa-globe';
|
|
4315
|
-
this.copyAction = new i0.EventEmitter();
|
|
4316
|
-
this.worldAction = new i0.EventEmitter();
|
|
4329
|
+
this.disabled = false;
|
|
4317
4330
|
this.checkboxAction = new i0.EventEmitter();
|
|
4318
4331
|
this.nameRadio = 'wacBlockCheckboxRadio';
|
|
4319
4332
|
this.isFirst = false;
|
|
@@ -4323,16 +4336,11 @@
|
|
|
4323
4336
|
this.randomLabelName = 'radioBlock' + Math.random() * (900 - 700) + 700;
|
|
4324
4337
|
};
|
|
4325
4338
|
BlockWithCheckboxComponent.prototype.eventSelected = function (event) {
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
BlockWithCheckboxComponent.prototype.eventCopy = function () {
|
|
4332
|
-
this.copyAction.emit(true);
|
|
4333
|
-
};
|
|
4334
|
-
BlockWithCheckboxComponent.prototype.eventWorld = function () {
|
|
4335
|
-
this.worldAction.emit(true);
|
|
4339
|
+
if (!this.disabled) {
|
|
4340
|
+
this.selected = event.target.checked;
|
|
4341
|
+
this.checkboxAction.emit(this.selected);
|
|
4342
|
+
this.isFirst = false;
|
|
4343
|
+
}
|
|
4336
4344
|
};
|
|
4337
4345
|
BlockWithCheckboxComponent.prototype.removeFirstClass = function () {
|
|
4338
4346
|
if (typeof document.querySelectorAll('.firstWacRadioBLock')[0] !== typeof undefined) {
|
|
@@ -4344,16 +4352,13 @@
|
|
|
4344
4352
|
BlockWithCheckboxComponent.decorators = [
|
|
4345
4353
|
{ type: i0.Component, args: [{
|
|
4346
4354
|
selector: 'wac-block-with-checkbox',
|
|
4347
|
-
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
|
|
4355
|
+
template: "<div class=\"block-with-checkbox\" [ngClass]=\"{'selected': inputRadioA.checked || selected, 'firstWacRadioBLock': isFirst, 'disabled': disabled}\" [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\" [checked]=\"selected\" [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>\n"
|
|
4348
4356
|
},] }
|
|
4349
4357
|
];
|
|
4350
4358
|
BlockWithCheckboxComponent.ctorParameters = function () { return []; };
|
|
4351
4359
|
BlockWithCheckboxComponent.propDecorators = {
|
|
4352
4360
|
selected: [{ type: i0.Input }],
|
|
4353
|
-
|
|
4354
|
-
iconWorld: [{ type: i0.Input }],
|
|
4355
|
-
copyAction: [{ type: i0.Output }],
|
|
4356
|
-
worldAction: [{ type: i0.Output }],
|
|
4361
|
+
disabled: [{ type: i0.Input }],
|
|
4357
4362
|
checkboxAction: [{ type: i0.Output }],
|
|
4358
4363
|
nameRadio: [{ type: i0.Input }],
|
|
4359
4364
|
isFirst: [{ type: i0.Input }],
|
|
@@ -4398,36 +4403,49 @@
|
|
|
4398
4403
|
|
|
4399
4404
|
var MosaicComponent = /** @class */ (function () {
|
|
4400
4405
|
function MosaicComponent() {
|
|
4401
|
-
this.
|
|
4406
|
+
this.imagesList = [];
|
|
4402
4407
|
this.isLoading = false;
|
|
4403
4408
|
this.numberOfColumn = 3;
|
|
4404
4409
|
this.importImageSrc = new i0.EventEmitter();
|
|
4410
|
+
this.loadMoreImages = new i0.EventEmitter();
|
|
4405
4411
|
}
|
|
4406
|
-
|
|
4407
|
-
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
}
|
|
4417
|
-
MosaicComponent.prototype.generateColumns = function () {
|
|
4418
|
-
|
|
4412
|
+
MosaicComponent.prototype.ngOnChanges = function (changes) {
|
|
4413
|
+
console.log('changes', changes);
|
|
4414
|
+
var isNumberOfColumnChange = changes.numberOfColumn && (changes.numberOfColumn.currentValue !== changes.numberOfColumn.previousValue);
|
|
4415
|
+
if (changes.imagesList) {
|
|
4416
|
+
this.generateColumns(changes.imagesList.previousValue, changes.imagesList.currentValue, isNumberOfColumnChange);
|
|
4417
|
+
return;
|
|
4418
|
+
}
|
|
4419
|
+
if (isNumberOfColumnChange) {
|
|
4420
|
+
this.generateColumns(null, this.imagesList, isNumberOfColumnChange);
|
|
4421
|
+
}
|
|
4422
|
+
};
|
|
4423
|
+
MosaicComponent.prototype.generateColumns = function (previousList, currentList, isNumberOfColumnChange) {
|
|
4424
|
+
var isNewListSmaller = (currentList && previousList) && (currentList.length < previousList.length);
|
|
4425
|
+
var resetColumns = isNumberOfColumnChange || isNewListSmaller;
|
|
4426
|
+
var isPreviousListExisting = previousList === null || previousList === void 0 ? void 0 : previousList.length;
|
|
4427
|
+
var newImagesToDisplay = !isPreviousListExisting || resetColumns ? currentList : currentList.slice(previousList.length);
|
|
4428
|
+
var columns = this.separateImagesIntoColumns(newImagesToDisplay);
|
|
4429
|
+
if (isPreviousListExisting && !resetColumns) {
|
|
4430
|
+
var existingColumns = this.columns;
|
|
4431
|
+
columns = this.concatColumns(existingColumns, columns);
|
|
4432
|
+
}
|
|
4433
|
+
this.columns = columns;
|
|
4419
4434
|
};
|
|
4420
|
-
MosaicComponent.prototype.
|
|
4435
|
+
MosaicComponent.prototype.separateImagesIntoColumns = function (newImagesToDisplay) {
|
|
4421
4436
|
var columns = [];
|
|
4422
|
-
var numberOfImagePerColumn =
|
|
4423
|
-
for (var i = 0; i <
|
|
4424
|
-
var chunk =
|
|
4437
|
+
var numberOfImagePerColumn = Math.floor(newImagesToDisplay.length / this.numberOfColumn);
|
|
4438
|
+
for (var i = 0; i < newImagesToDisplay.length; i += numberOfImagePerColumn) {
|
|
4439
|
+
var chunk = newImagesToDisplay.slice(i, i + numberOfImagePerColumn);
|
|
4425
4440
|
columns.push(chunk);
|
|
4426
4441
|
}
|
|
4427
4442
|
return columns;
|
|
4428
4443
|
};
|
|
4444
|
+
MosaicComponent.prototype.concatColumns = function (oldColumns, newColumns) {
|
|
4445
|
+
return oldColumns.map(function (oldColumn, columnIndex) { return __spread(oldColumn, newColumns[columnIndex]); });
|
|
4446
|
+
};
|
|
4429
4447
|
MosaicComponent.prototype.onBottomReached = function () {
|
|
4430
|
-
|
|
4448
|
+
this.loadMoreImages.emit();
|
|
4431
4449
|
};
|
|
4432
4450
|
MosaicComponent.prototype.onImportImage = function (src) {
|
|
4433
4451
|
this.importImageSrc.emit(src);
|
|
@@ -4437,8 +4455,9 @@
|
|
|
4437
4455
|
MosaicComponent.decorators = [
|
|
4438
4456
|
{ type: i0.Component, args: [{
|
|
4439
4457
|
selector: 'wac-mosaic',
|
|
4440
|
-
template: "<div class=\"wac-mosaic\"
|
|
4441
|
-
encapsulation: i0.ViewEncapsulation.None
|
|
4458
|
+
template: "<div class=\"wac-mosaic\">\n <ng-scrollbar (reachedBottom)=\"onBottomReached()\" reachedOffset=\"200\" class=\"wac-mosaic__wrapper__scrollbar\">\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]=\"hoverImageTemplate || defaultImportButton\"\n [ngTemplateOutletContext]=\"{ $implicit: image }\"\n >\n </ng-container>\n </div>\n </div>\n </div>\n </div>\n </ng-scrollbar>\n</div>\n\n<div class=\"wac-mosaic__loader\" *ngIf=\"isLoading\">\n <wac-loader></wac-loader>\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",
|
|
4459
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
4460
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
4442
4461
|
},] }
|
|
4443
4462
|
];
|
|
4444
4463
|
MosaicComponent.ctorParameters = function () { return []; };
|
|
@@ -4446,10 +4465,26 @@
|
|
|
4446
4465
|
imagesList: [{ type: i0.Input }],
|
|
4447
4466
|
isLoading: [{ type: i0.Input }],
|
|
4448
4467
|
numberOfColumn: [{ type: i0.Input }],
|
|
4449
|
-
|
|
4450
|
-
importImageSrc: [{ type: i0.Output }]
|
|
4468
|
+
hoverImageTemplate: [{ type: i0.Input }],
|
|
4469
|
+
importImageSrc: [{ type: i0.Output }],
|
|
4470
|
+
loadMoreImages: [{ type: i0.Output }]
|
|
4451
4471
|
};
|
|
4452
4472
|
|
|
4473
|
+
var ContentWithButtonsComponent = /** @class */ (function () {
|
|
4474
|
+
function ContentWithButtonsComponent() {
|
|
4475
|
+
}
|
|
4476
|
+
ContentWithButtonsComponent.prototype.ngOnInit = function () {
|
|
4477
|
+
};
|
|
4478
|
+
return ContentWithButtonsComponent;
|
|
4479
|
+
}());
|
|
4480
|
+
ContentWithButtonsComponent.decorators = [
|
|
4481
|
+
{ type: i0.Component, args: [{
|
|
4482
|
+
selector: 'wac-content-with-buttons',
|
|
4483
|
+
template: "<p>content-with-buttons works!</p>\n"
|
|
4484
|
+
},] }
|
|
4485
|
+
];
|
|
4486
|
+
ContentWithButtonsComponent.ctorParameters = function () { return []; };
|
|
4487
|
+
|
|
4453
4488
|
var components = [
|
|
4454
4489
|
TagComponent,
|
|
4455
4490
|
TabComponent,
|
|
@@ -4498,7 +4533,8 @@
|
|
|
4498
4533
|
TokenCheckComponent,
|
|
4499
4534
|
BlockWithCheckboxComponent,
|
|
4500
4535
|
ConfirmDeleteComponent,
|
|
4501
|
-
MosaicComponent
|
|
4536
|
+
MosaicComponent,
|
|
4537
|
+
ContentWithButtonsComponent
|
|
4502
4538
|
];
|
|
4503
4539
|
var exportsFromModule = [
|
|
4504
4540
|
PaginationComponent,
|
|
@@ -4610,6 +4646,7 @@
|
|
|
4610
4646
|
exports.CheckBoxRow = CheckBoxRow;
|
|
4611
4647
|
exports.CheckboxComponent = CheckboxComponent;
|
|
4612
4648
|
exports.ConfirmDeleteComponent = ConfirmDeleteComponent;
|
|
4649
|
+
exports.ContentWithButtonsComponent = ContentWithButtonsComponent;
|
|
4613
4650
|
exports.DebounceKeyupDirective = DebounceKeyupDirective;
|
|
4614
4651
|
exports.DeleteComponent = DeleteComponent;
|
|
4615
4652
|
exports.DropdownComponent = DropdownComponent;
|