@wizishop/angular-components 0.0.247 → 0.0.251
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 +6484 -6384
- package/bundles/wizishop-angular-components.umd.js +56 -5
- 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/card-price/card-price.component.js +2 -2
- package/esm2015/lib/components/charging-bar/charging-bar.component.js +19 -0
- package/esm2015/lib/components/expanded-panel/expanded-panel.component.js +22 -0
- package/esm2015/lib/components/popin/popin.component.js +9 -4
- package/esm2015/lib/components/shared-components.module.js +6 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/wizishop-angular-components.js +52 -6
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/charging-bar/charging-bar.component.d.ts +6 -0
- package/lib/components/expanded-panel/expanded-panel.component.d.ts +8 -0
- package/lib/components/popin/popin.component.d.ts +2 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/wizishop-angular-components-0.0.251.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.247.tgz +0 -0
|
@@ -3579,6 +3579,7 @@
|
|
|
3579
3579
|
this.visibleChange = new i0.EventEmitter();
|
|
3580
3580
|
this.response = new i0.EventEmitter();
|
|
3581
3581
|
this.background = true;
|
|
3582
|
+
this.closeOnBackgroundClick = true;
|
|
3582
3583
|
this.firstOpen = true;
|
|
3583
3584
|
}
|
|
3584
3585
|
PopinComponent.prototype.ngOnInit = function () {
|
|
@@ -3592,7 +3593,11 @@
|
|
|
3592
3593
|
this.response.emit(false);
|
|
3593
3594
|
this.closePopin();
|
|
3594
3595
|
};
|
|
3595
|
-
PopinComponent.prototype.closePopin = function () {
|
|
3596
|
+
PopinComponent.prototype.closePopin = function (clickOnBackground) {
|
|
3597
|
+
if (clickOnBackground === void 0) { clickOnBackground = false; }
|
|
3598
|
+
if (!this.closeOnBackgroundClick && clickOnBackground) {
|
|
3599
|
+
return;
|
|
3600
|
+
}
|
|
3596
3601
|
if (!this.firstOpen) { //trick for auto-hide directive that close immediatly the pop-in
|
|
3597
3602
|
this.visible = false;
|
|
3598
3603
|
this.visibleChange.emit(this.visible);
|
|
@@ -3607,7 +3612,7 @@
|
|
|
3607
3612
|
PopinComponent.decorators = [
|
|
3608
3613
|
{ type: i0.Component, args: [{
|
|
3609
3614
|
selector: 'wac-popin',
|
|
3610
|
-
template: "<div class=\"wac-free\" *ngIf=\"visible\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin()\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img *ngIf=\"imgSrc\" [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free__background\" *ngIf=\"background\"></div>\n</div>\n"
|
|
3615
|
+
template: "<div class=\"wac-free\" *ngIf=\"visible\">\n <div class=\"wac-free__wrapper\" wzAutoHide (clickOutside)=\"closePopin(true)\">\n <a class=\"wac-free__wrapper__button-close\" (click)=\"closePopin()\">\n <i class=\"fas fa-times\"></i>\n </a>\n <div class=\"wac-free__wrapper__content\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\">\n <img *ngIf=\"imgSrc\" [src]=\"imgSrc\" alt=\"barre admin\" />\n\n <h2 class=\"wac-popin__wrapper__title\" [innerHTML]=\"title\"></h2>\n\n <p class=\"wac-popin__wrapper__text\" [innerHTML]=\"content\"></p>\n </perfect-scrollbar>\n </div>\n <div class=\"wac-free__wrapper__buttons\">\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"okButtonLabel\">\n <wac-button [extraClasses]=\"'is-success'\" [label]=\"okButtonLabel\" hasLoader=\"true\" (click)=\"validatePopin()\"></wac-button>\n </div>\n <div class=\"wac-free__wrapper__buttons__button\" *ngIf=\"koButtonLabel\">\n <wac-button [extraClasses]=\"'is-danger is-outlined'\" [label]=\"koButtonLabel\" hasLoader=\"true\" (click)=\"refusePopin()\"></wac-button>\n </div>\n </div>\n </div>\n <div class=\"wac-free__background\" *ngIf=\"background\"></div>\n</div>\n"
|
|
3611
3616
|
},] }
|
|
3612
3617
|
];
|
|
3613
3618
|
PopinComponent.ctorParameters = function () { return [
|
|
@@ -3624,7 +3629,8 @@
|
|
|
3624
3629
|
visible: [{ type: i0.Input }],
|
|
3625
3630
|
visibleChange: [{ type: i0.Output }],
|
|
3626
3631
|
response: [{ type: i0.Output }],
|
|
3627
|
-
background: [{ type: i0.Input }]
|
|
3632
|
+
background: [{ type: i0.Input }],
|
|
3633
|
+
closeOnBackgroundClick: [{ type: i0.Input }]
|
|
3628
3634
|
};
|
|
3629
3635
|
|
|
3630
3636
|
var FreePopinComponent = /** @class */ (function () {
|
|
@@ -4327,7 +4333,7 @@
|
|
|
4327
4333
|
CardPriceComponent.decorators = [
|
|
4328
4334
|
{ type: i0.Component, args: [{
|
|
4329
4335
|
selector: 'wac-card-price',
|
|
4330
|
-
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\"
|
|
4336
|
+
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\" [innerHTML]=\"priceWording\"></span>\n </div>\n <div class=\"subtitle\">{{subtitle}}</div>\n <div class=\"cta\" *ngIf=\"!selected && !hideButton\">\n <wac-button [noPadding]=\"true\" [label]=\"btnLabel\" [extraClasses]=\"extraClasses\" (click)=\"triggerClick()\" [disabled]=\"disabled\" [whiteSpaceNowrap]=\"true\" [textcolor]=\"btnTextcolor\"></wac-button>\n </div>\n <div class=\"cta\" *ngIf=\"selected && !hideButton\">\n <wac-button [noPadding]=\"true\" [icon]=\"'fa-solid fa-check'\" [label]=\"btnLabelSelected\" [extraClasses]=\"extraClassesSelected\" [whiteSpaceNowrap]=\"true\"></wac-button>\n </div>\n <div class=\"package-subtitle\" *ngIf=\"selected\">{{packageSubtitle}}</div>\n <div class=\"link-bottom\" *ngIf=\"linkPackageLabel\">\n <wac-link (click)=\"removePackageTrigger()\">{{linkPackageLabel}}</wac-link>\n </div>\n</div>\n"
|
|
4331
4337
|
},] }
|
|
4332
4338
|
];
|
|
4333
4339
|
CardPriceComponent.ctorParameters = function () { return []; };
|
|
@@ -4670,6 +4676,47 @@
|
|
|
4670
4676
|
itemsChange: [{ type: i0.Output }]
|
|
4671
4677
|
};
|
|
4672
4678
|
|
|
4679
|
+
var ChargingBarComponent = /** @class */ (function () {
|
|
4680
|
+
function ChargingBarComponent() {
|
|
4681
|
+
this.value = 0;
|
|
4682
|
+
}
|
|
4683
|
+
ChargingBarComponent.prototype.ngOnInit = function () {
|
|
4684
|
+
};
|
|
4685
|
+
return ChargingBarComponent;
|
|
4686
|
+
}());
|
|
4687
|
+
ChargingBarComponent.decorators = [
|
|
4688
|
+
{ type: i0.Component, args: [{
|
|
4689
|
+
selector: 'wac-charging-bar',
|
|
4690
|
+
template: "<div class=\"wac-charging-bar\">\n <div class=\"wac-charging-bar__wrapLine\">\n <div class=\"wac-charging-bar__wrapLine__line\">\n <div class=\"wac-charging-bar__wrapLine__line__width\" [ngStyle]=\"{'max-width': value + '%'}\"></div>\n </div>\n </div>\n <div class=\"wac-charging-bar__number\" [innerHTML]=\"value + '%'\"></div>\n</div>\n"
|
|
4691
|
+
},] }
|
|
4692
|
+
];
|
|
4693
|
+
ChargingBarComponent.ctorParameters = function () { return []; };
|
|
4694
|
+
ChargingBarComponent.propDecorators = {
|
|
4695
|
+
value: [{ type: i0.Input }]
|
|
4696
|
+
};
|
|
4697
|
+
|
|
4698
|
+
var ExpandedPanelComponent = /** @class */ (function () {
|
|
4699
|
+
function ExpandedPanelComponent() {
|
|
4700
|
+
this.section = false;
|
|
4701
|
+
this.open = false;
|
|
4702
|
+
}
|
|
4703
|
+
ExpandedPanelComponent.prototype.ngOnInit = function () {
|
|
4704
|
+
};
|
|
4705
|
+
return ExpandedPanelComponent;
|
|
4706
|
+
}());
|
|
4707
|
+
ExpandedPanelComponent.decorators = [
|
|
4708
|
+
{ type: i0.Component, args: [{
|
|
4709
|
+
selector: 'wac-expanded-panel',
|
|
4710
|
+
template: "<div class=\"wac-expanded-panel\">\n <div class=\"wac-expanded-panel__top\" (click)=\"open = !open\">\n <div class=\"wac-expanded-panel__top__label\" [ngClass]=\"{'big': section}\" [innerHTML]=\"label\"></div>\n <div class=\"wac-expanded-panel__top__icon\" [ngClass]=\"{'is-open': open, 'big': section}\">\n <i class=\"fa-regular fa-angle-down\"></i>\n </div>\n </div>\n <div class=\"wac-expanded-panel__bottom\" [ngClass]=\"{'is-open': open}\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
4711
|
+
},] }
|
|
4712
|
+
];
|
|
4713
|
+
ExpandedPanelComponent.ctorParameters = function () { return []; };
|
|
4714
|
+
ExpandedPanelComponent.propDecorators = {
|
|
4715
|
+
label: [{ type: i0.Input }],
|
|
4716
|
+
section: [{ type: i0.Input }],
|
|
4717
|
+
open: [{ type: i0.Input }]
|
|
4718
|
+
};
|
|
4719
|
+
|
|
4673
4720
|
var components = [
|
|
4674
4721
|
TagComponent,
|
|
4675
4722
|
TabComponent,
|
|
@@ -4721,7 +4768,9 @@
|
|
|
4721
4768
|
MosaicComponent,
|
|
4722
4769
|
ContentWithButtonsComponent,
|
|
4723
4770
|
WrapperMultipleBlockComponent,
|
|
4724
|
-
DraganddropListComponent
|
|
4771
|
+
DraganddropListComponent,
|
|
4772
|
+
ChargingBarComponent,
|
|
4773
|
+
ExpandedPanelComponent
|
|
4725
4774
|
];
|
|
4726
4775
|
var exportsFromModule = [
|
|
4727
4776
|
PaginationComponent,
|
|
@@ -4831,6 +4880,7 @@
|
|
|
4831
4880
|
exports.ButtonComponent = ButtonComponent;
|
|
4832
4881
|
exports.CalendarComponent = CalendarComponent;
|
|
4833
4882
|
exports.CardPriceComponent = CardPriceComponent;
|
|
4883
|
+
exports.ChargingBarComponent = ChargingBarComponent;
|
|
4834
4884
|
exports.CheckBoxRow = CheckBoxRow;
|
|
4835
4885
|
exports.CheckboxComponent = CheckboxComponent;
|
|
4836
4886
|
exports.ConfirmDeleteComponent = ConfirmDeleteComponent;
|
|
@@ -4839,6 +4889,7 @@
|
|
|
4839
4889
|
exports.DeleteComponent = DeleteComponent;
|
|
4840
4890
|
exports.DraganddropListComponent = DraganddropListComponent;
|
|
4841
4891
|
exports.DropdownComponent = DropdownComponent;
|
|
4892
|
+
exports.ExpandedPanelComponent = ExpandedPanelComponent;
|
|
4842
4893
|
exports.FiltersComponent = FiltersComponent;
|
|
4843
4894
|
exports.FiltersTableService = FiltersTableService;
|
|
4844
4895
|
exports.FormatObjectToRecursifTreePipe = FormatObjectToRecursifTreePipe;
|