@wizishop/angular-components 0.0.25 → 0.0.29
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 +2626 -2580
- package/bundles/wizishop-angular-components.umd.js +92 -4
- 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/block.component.js +5 -3
- package/esm2015/lib/components/selects/select/select.component.js +2 -2
- package/esm2015/lib/components/shared-components.module.js +4 -2
- package/esm2015/lib/components/snackbar/snackbar.component.js +66 -0
- package/esm2015/lib/components/snackbar/snackbar.module.js +18 -0
- package/esm2015/public-api.js +3 -1
- package/fesm2015/wizishop-angular-components.js +87 -6
- package/fesm2015/wizishop-angular-components.js.map +1 -1
- package/lib/components/block/block.component.d.ts +1 -0
- package/lib/components/snackbar/snackbar.component.d.ts +18 -0
- package/lib/components/snackbar/snackbar.module.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/wizishop-angular-components-0.0.29.tgz +0 -0
- package/wizishop-angular-components.metadata.json +1 -1
- package/wizishop-angular-components-0.0.25.tgz +0 -0
|
@@ -2854,7 +2854,7 @@
|
|
|
2854
2854
|
SelectComponent.decorators = [
|
|
2855
2855
|
{ type: i0.Component, args: [{
|
|
2856
2856
|
selector: 'wac-select',
|
|
2857
|
-
template: "<p *ngIf=\"label\" [innerHTML]=\"label\" class=\"wac-select__label\"></p>\n<div class=\"wac-select\" wzAutoHide (clickOutside)=\"onClose()\" [ngStyle]=\"{ 'max-width': maxWidth }\" [zIndexToggle]=\"openCategories\">\n <div #current class=\"wac-select__current\" [ngClass]=\"{ 'select-disabled' : disabled }\" (click)=\"!disabled && openCategories = !openCategories\">\n <span *ngIf=\"currentLabelIcon\" class=\"icon\" [innerHTML]=\"currentLabelIcon\"></span><span
|
|
2857
|
+
template: "<p *ngIf=\"label\" [innerHTML]=\"label\" class=\"wac-select__label\"></p>\n<div class=\"wac-select\" wzAutoHide (clickOutside)=\"onClose()\" [ngStyle]=\"{ 'max-width': maxWidth }\" [zIndexToggle]=\"openCategories\">\n <div #current class=\"wac-select__current\" [ngClass]=\"{ 'select-disabled' : disabled }\" (click)=\"!disabled && openCategories = !openCategories\">\n <span *ngIf=\"currentLabelIcon\" class=\"icon\" [innerHTML]=\"currentLabelIcon\"></span><span [innerHTML]=\"currentLabel\"></span><span><i class=\"fas fa-chevron-down\"></i></span>\n </div>\n <div class=\"wac-select__content\" *ngIf=\"!disabled\" [ngClass]=\"{ hidden: !openCategories, open: type === 'open' }\" [ngStyle]=\"{ 'max-width': maxWidthItems }\">\n <perfect-scrollbar [config]=\"{ suppressScrollX: true }\" *ngIf=\"items.length > 0\">\n <div *ngIf=\"callToAction\" class=\"wac-select__content__cta\">\n <div (click)=\"onClickCallToAction()\">\n <i *ngIf=\"callToAction.icon\" [classList]=\"callToAction.icon\"></i><strong *ngIf=\"callToAction.boldText\">{{ callToAction.boldText }}</strong\n ><span>{{ callToAction?.name }}</span>\n </div>\n </div>\n <div (click)=\"onClose()\" class=\"wac-select__content__item\" *ngFor=\"let item of items; trackBy: customTB; let index = index;\">\n <div [ngClass]=\"{ selected: item.selected }\" (click)=\"onSelectItem(index)\">\n <span class=\"icon\" [innerHTML]=\"item.icon\" *ngIf=\"item.icon\"></span>{{ item.name }}\n </div>\n </div>\n </perfect-scrollbar>\n </div>\n</div>\n"
|
|
2858
2858
|
},] }
|
|
2859
2859
|
];
|
|
2860
2860
|
SelectComponent.ctorParameters = function () { return []; };
|
|
@@ -3238,13 +3238,14 @@
|
|
|
3238
3238
|
this.icon = '';
|
|
3239
3239
|
this.titleUppercase = true;
|
|
3240
3240
|
this.borderRadius = false;
|
|
3241
|
+
this.removePadding = false;
|
|
3241
3242
|
}
|
|
3242
3243
|
return BlockComponent;
|
|
3243
3244
|
}());
|
|
3244
3245
|
BlockComponent.decorators = [
|
|
3245
3246
|
{ type: i0.Component, args: [{
|
|
3246
3247
|
selector: 'wac-block',
|
|
3247
|
-
template: "<div\n class=\"wac-block\"\n [ngClass]=\"{ 'wac-block__external': titleExternalBlock, sticky: sticky, noFullHeight: noFullHeight, 'border-radius': borderRadius }\"\n>\n <h2 *ngIf=\"titleBlock.length\" class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple, 'no-uppercase': !titleUppercase }\">\n {{ titleBlock }} <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n </h2>\n <div class=\"wac-block__content\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
3248
|
+
template: "<div\n class=\"wac-block\"\n [ngClass]=\"{ 'wac-block__external': titleExternalBlock, sticky: sticky, noFullHeight: noFullHeight, 'border-radius': borderRadius, 'no-padding' : removePadding }\"\n>\n <h2 *ngIf=\"titleBlock.length\" class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple, 'no-uppercase': !titleUppercase }\">\n {{ titleBlock }} <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n </h2>\n <div class=\"wac-block__content\">\n <ng-content></ng-content>\n </div>\n</div>\n"
|
|
3248
3249
|
},] }
|
|
3249
3250
|
];
|
|
3250
3251
|
BlockComponent.ctorParameters = function () { return []; };
|
|
@@ -3256,7 +3257,8 @@
|
|
|
3256
3257
|
noFullHeight: [{ type: i0.Input }],
|
|
3257
3258
|
icon: [{ type: i0.Input }],
|
|
3258
3259
|
titleUppercase: [{ type: i0.Input }],
|
|
3259
|
-
borderRadius: [{ type: i0.Input }]
|
|
3260
|
+
borderRadius: [{ type: i0.Input }],
|
|
3261
|
+
removePadding: [{ type: i0.Input }]
|
|
3260
3262
|
};
|
|
3261
3263
|
|
|
3262
3264
|
var WrapperComponent = /** @class */ (function () {
|
|
@@ -3336,6 +3338,89 @@
|
|
|
3336
3338
|
sidebar: [{ type: i0.Input }]
|
|
3337
3339
|
};
|
|
3338
3340
|
|
|
3341
|
+
var SnackbarComponent = /** @class */ (function () {
|
|
3342
|
+
function SnackbarComponent() {
|
|
3343
|
+
this.visible = false;
|
|
3344
|
+
this.visibleChange = new i0.EventEmitter();
|
|
3345
|
+
this.response = new i0.EventEmitter();
|
|
3346
|
+
this.manualClose = false;
|
|
3347
|
+
}
|
|
3348
|
+
SnackbarComponent.prototype.ngOnInit = function () {
|
|
3349
|
+
var _this = this;
|
|
3350
|
+
if (this.duration > 0) {
|
|
3351
|
+
this.timer = setTimeout(function () { return _this.manualClose = true; }, this.duration);
|
|
3352
|
+
}
|
|
3353
|
+
};
|
|
3354
|
+
SnackbarComponent.prototype.validate = function () {
|
|
3355
|
+
this.response.emit(true);
|
|
3356
|
+
this.closeSnackbar();
|
|
3357
|
+
this.manualClose = true;
|
|
3358
|
+
};
|
|
3359
|
+
SnackbarComponent.prototype.refuse = function () {
|
|
3360
|
+
this.response.emit(false);
|
|
3361
|
+
this.closeSnackbar();
|
|
3362
|
+
this.manualClose = true;
|
|
3363
|
+
};
|
|
3364
|
+
SnackbarComponent.prototype.closeSnackbar = function () {
|
|
3365
|
+
this.visible = false;
|
|
3366
|
+
this.visibleChange.emit(this.visible);
|
|
3367
|
+
};
|
|
3368
|
+
return SnackbarComponent;
|
|
3369
|
+
}());
|
|
3370
|
+
SnackbarComponent.decorators = [
|
|
3371
|
+
{ type: i0.Component, args: [{
|
|
3372
|
+
selector: 'wac-snackbar',
|
|
3373
|
+
template: "<div class=\"wac-snackbar\">\n <div [class]=\"'notification is-active ' + ((color) ? color : 'is-transparent')\"\n [@state]=\"visible ? 'active': 'inactive'\"\n >\n <div class=\"columns\">\n <div class=\"column notification--message\" [ngClass]=\"{'is-half': textButtonOk}\"\n [innerHTML]=\"message\">\n </div>\n <div class=\"column is-half\">\n <button [class]=\"'button ' + ((buttonColor) ? buttonColor : 'is-success')\"\n (click)=\"validate()\">{{textButtonOk}}\n </button>\n <button [class]=\"'button ' + ((buttonColor) ? buttonColor : 'is-success')\"\n (click)=\"refuse()\">{{textButtonKo}}\n </button>\n </div>\n </div>\n </div>\n</div>\n",
|
|
3374
|
+
host: {
|
|
3375
|
+
class: 'nwb-snack-bar'
|
|
3376
|
+
},
|
|
3377
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
3378
|
+
animations: [
|
|
3379
|
+
animations.trigger('state', [
|
|
3380
|
+
animations.state('void', animations.style({
|
|
3381
|
+
bottom: '-100px'
|
|
3382
|
+
})),
|
|
3383
|
+
animations.state('inactive', animations.style({
|
|
3384
|
+
bottom: '-100px'
|
|
3385
|
+
})),
|
|
3386
|
+
animations.state('active', animations.style({
|
|
3387
|
+
bottom: '0px'
|
|
3388
|
+
})),
|
|
3389
|
+
animations.transition('void => active', animations.animate(300)),
|
|
3390
|
+
animations.transition('active => inactive', animations.animate(300))
|
|
3391
|
+
])
|
|
3392
|
+
]
|
|
3393
|
+
},] }
|
|
3394
|
+
];
|
|
3395
|
+
SnackbarComponent.propDecorators = {
|
|
3396
|
+
message: [{ type: i0.Input }],
|
|
3397
|
+
textButtonOk: [{ type: i0.Input }],
|
|
3398
|
+
textButtonKo: [{ type: i0.Input }],
|
|
3399
|
+
duration: [{ type: i0.Input }],
|
|
3400
|
+
color: [{ type: i0.Input }],
|
|
3401
|
+
buttonColor: [{ type: i0.Input }],
|
|
3402
|
+
visible: [{ type: i0.Input }],
|
|
3403
|
+
visibleChange: [{ type: i0.Output }],
|
|
3404
|
+
response: [{ type: i0.Output }]
|
|
3405
|
+
};
|
|
3406
|
+
|
|
3407
|
+
var SnackbarModule = /** @class */ (function () {
|
|
3408
|
+
function SnackbarModule() {
|
|
3409
|
+
}
|
|
3410
|
+
return SnackbarModule;
|
|
3411
|
+
}());
|
|
3412
|
+
SnackbarModule.decorators = [
|
|
3413
|
+
{ type: i0.NgModule, args: [{
|
|
3414
|
+
imports: [
|
|
3415
|
+
common.CommonModule,
|
|
3416
|
+
forms.FormsModule
|
|
3417
|
+
],
|
|
3418
|
+
exports: [SnackbarComponent],
|
|
3419
|
+
declarations: [SnackbarComponent],
|
|
3420
|
+
providers: [],
|
|
3421
|
+
},] }
|
|
3422
|
+
];
|
|
3423
|
+
|
|
3339
3424
|
var components = [
|
|
3340
3425
|
TagComponent,
|
|
3341
3426
|
TabComponent,
|
|
@@ -3414,7 +3499,8 @@
|
|
|
3414
3499
|
InputModule,
|
|
3415
3500
|
LoaderModule,
|
|
3416
3501
|
ProgressBarModule,
|
|
3417
|
-
ngxPerfectScrollbar.PerfectScrollbarModule
|
|
3502
|
+
ngxPerfectScrollbar.PerfectScrollbarModule,
|
|
3503
|
+
SnackbarModule
|
|
3418
3504
|
],
|
|
3419
3505
|
declarations: components,
|
|
3420
3506
|
exports: __spread(components, exportsFromModule)
|
|
@@ -3488,6 +3574,8 @@
|
|
|
3488
3574
|
exports.SettingsComponent = SettingsComponent;
|
|
3489
3575
|
exports.SharedComponentsModule = SharedComponentsModule;
|
|
3490
3576
|
exports.SharedDirectives = SharedDirectives;
|
|
3577
|
+
exports.SnackbarComponent = SnackbarComponent;
|
|
3578
|
+
exports.SnackbarModule = SnackbarModule;
|
|
3491
3579
|
exports.StateComponent = StateComponent;
|
|
3492
3580
|
exports.SwitchComponent = SwitchComponent;
|
|
3493
3581
|
exports.TabComponent = TabComponent;
|