@wizishop/angular-components 0.0.135 → 0.0.140

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.
Files changed (30) hide show
  1. package/angular-components.scss +3399 -3129
  2. package/bundles/wizishop-angular-components.umd.js +93 -10
  3. package/bundles/wizishop-angular-components.umd.js.map +1 -1
  4. package/bundles/wizishop-angular-components.umd.min.js +2 -2
  5. package/bundles/wizishop-angular-components.umd.min.js.map +1 -1
  6. package/esm2015/lib/components/breadcrumbs/breadcrumbs.component.js +17 -0
  7. package/esm2015/lib/components/breadcrumbs/breadcrumbs.dto.js +2 -0
  8. package/esm2015/lib/components/card-price/card-price.component.js +29 -0
  9. package/esm2015/lib/components/header-page/header-page.component.js +7 -4
  10. package/esm2015/lib/components/hn/h1/h1.component.js +9 -4
  11. package/esm2015/lib/components/shared-components.module.js +10 -2
  12. package/esm2015/lib/components/switch/switch.component.js +4 -2
  13. package/esm2015/lib/components/text-area/text-area.component.js +4 -2
  14. package/esm2015/lib/components/wrapper-sidebar/wrapper-sidebar.component.js +19 -0
  15. package/esm2015/public-api.js +4 -1
  16. package/fesm2015/wizishop-angular-components.js +88 -9
  17. package/fesm2015/wizishop-angular-components.js.map +1 -1
  18. package/lib/components/breadcrumbs/breadcrumbs.component.d.ts +7 -0
  19. package/lib/components/breadcrumbs/breadcrumbs.dto.d.ts +5 -0
  20. package/lib/components/card-price/card-price.component.d.ts +14 -0
  21. package/lib/components/header-page/header-page.component.d.ts +1 -0
  22. package/lib/components/hn/h1/h1.component.d.ts +1 -0
  23. package/lib/components/switch/switch.component.d.ts +1 -0
  24. package/lib/components/text-area/text-area.component.d.ts +1 -0
  25. package/lib/components/wrapper-sidebar/wrapper-sidebar.component.d.ts +6 -0
  26. package/package.json +1 -1
  27. package/public-api.d.ts +3 -0
  28. package/wizishop-angular-components-0.0.140.tgz +0 -0
  29. package/wizishop-angular-components.metadata.json +1 -1
  30. package/wizishop-angular-components-0.0.135.tgz +0 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router')) :
3
- typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router));
5
- }(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router'), require('ngx-autosize')) :
3
+ typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router', 'ngx-autosize'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router, global.ngxAutosize));
5
+ }(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router, ngxAutosize) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -1991,6 +1991,7 @@
1991
1991
  this.size = null;
1992
1992
  this.min = null;
1993
1993
  this.max = null;
1994
+ this.dynamicSize = false;
1994
1995
  this.progressBar = false;
1995
1996
  this.disabled = false;
1996
1997
  this.id = 'wac-textarea__' +
@@ -2026,7 +2027,7 @@
2026
2027
  TextAreaComponent.decorators = [
2027
2028
  { type: i0.Component, args: [{
2028
2029
  selector: 'wac-text-area',
2029
- template: "<div class=\"field wac-text-area\">\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 ></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 && 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",
2030
+ 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 ></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 && 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",
2030
2031
  providers: [{ provide: forms.NG_VALUE_ACCESSOR, useExisting: TextAreaComponent, multi: true }]
2031
2032
  },] }
2032
2033
  ];
@@ -2039,11 +2040,13 @@
2039
2040
  size: [{ type: i0.Input }],
2040
2041
  min: [{ type: i0.Input }],
2041
2042
  max: [{ type: i0.Input }],
2043
+ dynamicSize: [{ type: i0.Input }],
2042
2044
  progressBar: [{ type: i0.Input }]
2043
2045
  };
2044
2046
 
2045
2047
  var H1Component = /** @class */ (function () {
2046
2048
  function H1Component() {
2049
+ this.withImg = false;
2047
2050
  }
2048
2051
  H1Component.prototype.ngOnInit = function () { };
2049
2052
  return H1Component;
@@ -2051,10 +2054,13 @@
2051
2054
  H1Component.decorators = [
2052
2055
  { type: i0.Component, args: [{
2053
2056
  selector: 'wac-h1',
2054
- template: "<h1 class=\"wac-h1\"><ng-content></ng-content></h1>\n"
2057
+ template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg}\"><ng-content></ng-content></h1>\n"
2055
2058
  },] }
2056
2059
  ];
2057
2060
  H1Component.ctorParameters = function () { return []; };
2061
+ H1Component.propDecorators = {
2062
+ withImg: [{ type: i0.Input }]
2063
+ };
2058
2064
 
2059
2065
  var H2Component = /** @class */ (function () {
2060
2066
  function H2Component() {
@@ -2090,6 +2096,7 @@
2090
2096
 
2091
2097
  var HeaderPageComponent = /** @class */ (function () {
2092
2098
  function HeaderPageComponent() {
2099
+ this.withImg = false;
2093
2100
  }
2094
2101
  HeaderPageComponent.prototype.ngOnInit = function () { };
2095
2102
  return HeaderPageComponent;
@@ -2097,13 +2104,14 @@
2097
2104
  HeaderPageComponent.decorators = [
2098
2105
  { type: i0.Component, args: [{
2099
2106
  selector: 'wac-header-page',
2100
- template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\">\n <div class=\"wac-header-page__maxWidth__top__left\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1>{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
2107
+ template: "<div class=\"wac-header-page\">\n <div class=\"wac-header-page__maxWidth\">\n <div class=\"wac-header-page__maxWidth__top\">\n <div class=\"wac-header-page__maxWidth__top__left\">\n <!-- TODO Hard to use when only want a button and not a router link -->\n <a *ngIf=\"linkBack\" [routerLink]=\"linkBack\"><i class=\"fas fa-chevron-left\"></i></a>\n <wac-h1 [withImg]=\"withImg\">{{ title }}<ng-content select=\"[role=header]\"></ng-content></wac-h1>\n </div>\n <div class=\"wac-header-page__maxWidth__top__right\">\n <ng-content></ng-content>\n </div>\n </div>\n </div>\n</div>\n"
2101
2108
  },] }
2102
2109
  ];
2103
2110
  HeaderPageComponent.ctorParameters = function () { return []; };
2104
2111
  HeaderPageComponent.propDecorators = {
2105
2112
  title: [{ type: i0.Input }],
2106
- linkBack: [{ type: i0.Input }]
2113
+ linkBack: [{ type: i0.Input }],
2114
+ withImg: [{ type: i0.Input }]
2107
2115
  };
2108
2116
 
2109
2117
  var InputComponent = /** @class */ (function () {
@@ -2368,6 +2376,7 @@
2368
2376
  this.textStateDisable = '';
2369
2377
  this.showInput = false;
2370
2378
  this.danger = false;
2379
+ this.whiteSpace = false;
2371
2380
  this.switchChange = new i0.EventEmitter(); // todo set emitted type
2372
2381
  this.changeInput = new i0.EventEmitter(); // todo set emitted type
2373
2382
  }
@@ -2385,7 +2394,7 @@
2385
2394
  SwitchComponent.decorators = [
2386
2395
  { type: i0.Component, args: [{
2387
2396
  selector: 'wac-switch',
2388
- template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span *ngIf=\"textState\"\n >{{ textState }} <strong class=\"disable\" *ngIf=\"textStateDisable\">{{ textStateDisable }}</strong>\n <strong class=\"enable\" *ngIf=\"textStateEnable\">{{ textStateEnable }}</strong></span\n ></span\n >\n </label>\n</div>\n<div class=\"wac-show-input\" *ngIf=\"showInput && value\">\n <input [placeholder]=\"placholderInput\" type=\"text\" [(ngModel)]=\"valueInput\" (blur)=\"triggerInput()\" />\n</div>\n"
2397
+ template: "<div class=\"wac-switch\">\n <input type=\"checkbox\" [checked]=\"value\" (change)=\"changeValue($event)\" [id]=\"id\" [ngClass]=\"{ danger: danger }\"/>\n <label [for]=\"id\" class=\"wac-switch__label\">\n <span class=\"wac-switch__label__text\"\n ><ng-content></ng-content\n ><span\n *ngIf=\"textState\"\n [ngStyle]=\"{'whiteSpace': whiteSpace ? 'nowrap' :'normal'}\"\n >{{ textState }} <strong class=\"disable\" *ngIf=\"textStateDisable\">{{ textStateDisable }}</strong>\n <strong class=\"enable\" *ngIf=\"textStateEnable\">{{ textStateEnable }}</strong></span\n ></span\n >\n </label>\n</div>\n<div class=\"wac-show-input\" *ngIf=\"showInput && value\">\n <input [placeholder]=\"placholderInput\" type=\"text\" [(ngModel)]=\"valueInput\" (blur)=\"triggerInput()\" />\n</div>\n"
2389
2398
  },] }
2390
2399
  ];
2391
2400
  SwitchComponent.ctorParameters = function () { return []; };
@@ -2397,6 +2406,7 @@
2397
2406
  showInput: [{ type: i0.Input }],
2398
2407
  placholderInput: [{ type: i0.Input }],
2399
2408
  danger: [{ type: i0.Input }],
2409
+ whiteSpace: [{ type: i0.Input }],
2400
2410
  switchChange: [{ type: i0.Output }],
2401
2411
  changeInput: [{ type: i0.Output }]
2402
2412
  };
@@ -4177,6 +4187,72 @@
4177
4187
  },] }
4178
4188
  ];
4179
4189
 
4190
+ var WrapperSidebarComponent = /** @class */ (function () {
4191
+ function WrapperSidebarComponent() {
4192
+ this.reverse = false;
4193
+ }
4194
+ WrapperSidebarComponent.prototype.ngOnInit = function () {
4195
+ };
4196
+ return WrapperSidebarComponent;
4197
+ }());
4198
+ WrapperSidebarComponent.decorators = [
4199
+ { type: i0.Component, args: [{
4200
+ selector: 'wac-wrapper-sidebar',
4201
+ 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"
4202
+ },] }
4203
+ ];
4204
+ WrapperSidebarComponent.ctorParameters = function () { return []; };
4205
+ WrapperSidebarComponent.propDecorators = {
4206
+ reverse: [{ type: i0.Input }]
4207
+ };
4208
+
4209
+ var BreadcrumbsComponent = /** @class */ (function () {
4210
+ function BreadcrumbsComponent() {
4211
+ }
4212
+ BreadcrumbsComponent.prototype.ngOnInit = function () {
4213
+ };
4214
+ return BreadcrumbsComponent;
4215
+ }());
4216
+ BreadcrumbsComponent.decorators = [
4217
+ { type: i0.Component, args: [{
4218
+ selector: 'wac-breadcrumbs',
4219
+ template: "<div class=\"wac-breadcrumbs\">\n <div class=\"wac-breadcrumbs__wrapper\">\n <div class=\"wac-breadcrumbs__item\" *ngFor=\"let b of breadcrumbs; let i = index;\">\n <div class=\"round\" [ngClass]=\"{'valid': b.valid, 'current': b['current']}\"><span *ngIf=\"!b.valid\"><span *ngIf=\"i < 9\">0</span>{{ i + 1 }}</span><i class=\"fas fa-check\" *ngIf=\"b.valid\"></i></div>\n <div class=\"name\" [ngClass]=\"{'valid': b.valid}\">{{ b.name }}</div>\n <i class=\"fas fa-chevron-right\"></i>\n </div>\n </div>\n</div>\n"
4220
+ },] }
4221
+ ];
4222
+ BreadcrumbsComponent.ctorParameters = function () { return []; };
4223
+ BreadcrumbsComponent.propDecorators = {
4224
+ breadcrumbs: [{ type: i0.Input }]
4225
+ };
4226
+
4227
+ var CardPriceComponent = /** @class */ (function () {
4228
+ function CardPriceComponent() {
4229
+ this.click = new i0.EventEmitter();
4230
+ }
4231
+ CardPriceComponent.prototype.ngOnInit = function () {
4232
+ };
4233
+ CardPriceComponent.prototype.triggerClick = function () {
4234
+ this.click.emit(true);
4235
+ };
4236
+ return CardPriceComponent;
4237
+ }());
4238
+ CardPriceComponent.decorators = [
4239
+ { type: i0.Component, args: [{
4240
+ selector: 'wac-card-price',
4241
+ 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=\"is-success\" (click)=\"triggerClick()\"></wac-button>\n </div>\n</div>\n"
4242
+ },] }
4243
+ ];
4244
+ CardPriceComponent.ctorParameters = function () { return []; };
4245
+ CardPriceComponent.propDecorators = {
4246
+ amount: [{ type: i0.Input }],
4247
+ title: [{ type: i0.Input }],
4248
+ price: [{ type: i0.Input }],
4249
+ currency: [{ type: i0.Input }],
4250
+ priceWording: [{ type: i0.Input }],
4251
+ subtitle: [{ type: i0.Input }],
4252
+ btnLabel: [{ type: i0.Input }],
4253
+ click: [{ type: i0.Output }]
4254
+ };
4255
+
4180
4256
  var components = [
4181
4257
  TagComponent,
4182
4258
  TabComponent,
@@ -4218,7 +4294,10 @@
4218
4294
  WrapperBlocsComponent,
4219
4295
  SnackbarComponent,
4220
4296
  SearchComponent,
4221
- SelectedListComponent
4297
+ SelectedListComponent,
4298
+ WrapperSidebarComponent,
4299
+ BreadcrumbsComponent,
4300
+ CardPriceComponent
4222
4301
  ];
4223
4302
  var exportsFromModule = [
4224
4303
  PaginationComponent,
@@ -4263,6 +4342,7 @@
4263
4342
  ngxPerfectScrollbar.PerfectScrollbarModule,
4264
4343
  AlertPopupModule,
4265
4344
  router.RouterModule,
4345
+ ngxAutosize.AutosizeModule,
4266
4346
  TreeModule
4267
4347
  ],
4268
4348
  declarations: components,
@@ -4319,8 +4399,10 @@
4319
4399
  exports.AutoHideDirective = AutoHideDirective;
4320
4400
  exports.BackComponent = BackComponent;
4321
4401
  exports.BlockComponent = BlockComponent;
4402
+ exports.BreadcrumbsComponent = BreadcrumbsComponent;
4322
4403
  exports.ButtonComponent = ButtonComponent;
4323
4404
  exports.CalendarComponent = CalendarComponent;
4405
+ exports.CardPriceComponent = CardPriceComponent;
4324
4406
  exports.CheckBoxRow = CheckBoxRow;
4325
4407
  exports.CheckboxComponent = CheckboxComponent;
4326
4408
  exports.DebounceKeyupDirective = DebounceKeyupDirective;
@@ -4383,6 +4465,7 @@
4383
4465
  exports.WiziComponentsModule = WiziComponentsModule;
4384
4466
  exports.WrapperBlocsComponent = WrapperBlocsComponent;
4385
4467
  exports.WrapperComponent = WrapperComponent;
4468
+ exports.WrapperSidebarComponent = WrapperSidebarComponent;
4386
4469
  exports.WzEditInPlaceComponent = WzEditInPlaceComponent;
4387
4470
  exports.ZindexToggleDirective = ZindexToggleDirective;
4388
4471
  exports.ɵa = DomService;