@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
@@ -11,6 +11,7 @@ import { trigger, transition, style, animate, state } from '@angular/animations'
11
11
  import { TagInputModule } from 'ngx-chips';
12
12
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
13
13
  import { RouterModule } from '@angular/router';
14
+ import { AutosizeModule } from 'ngx-autosize';
14
15
 
15
16
  class LoaderComponent {
16
17
  constructor() {
@@ -1604,6 +1605,7 @@ class TextAreaComponent {
1604
1605
  this.size = null;
1605
1606
  this.min = null;
1606
1607
  this.max = null;
1608
+ this.dynamicSize = false;
1607
1609
  this.progressBar = false;
1608
1610
  this.disabled = false;
1609
1611
  this.id = 'wac-textarea__' +
@@ -1638,7 +1640,7 @@ class TextAreaComponent {
1638
1640
  TextAreaComponent.decorators = [
1639
1641
  { type: Component, args: [{
1640
1642
  selector: 'wac-text-area',
1641
- 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",
1643
+ 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",
1642
1644
  providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: TextAreaComponent, multi: true }]
1643
1645
  },] }
1644
1646
  ];
@@ -1651,20 +1653,26 @@ TextAreaComponent.propDecorators = {
1651
1653
  size: [{ type: Input }],
1652
1654
  min: [{ type: Input }],
1653
1655
  max: [{ type: Input }],
1656
+ dynamicSize: [{ type: Input }],
1654
1657
  progressBar: [{ type: Input }]
1655
1658
  };
1656
1659
 
1657
1660
  class H1Component {
1658
- constructor() { }
1661
+ constructor() {
1662
+ this.withImg = false;
1663
+ }
1659
1664
  ngOnInit() { }
1660
1665
  }
1661
1666
  H1Component.decorators = [
1662
1667
  { type: Component, args: [{
1663
1668
  selector: 'wac-h1',
1664
- template: "<h1 class=\"wac-h1\"><ng-content></ng-content></h1>\n"
1669
+ template: "<h1 class=\"wac-h1\" [ngClass]=\"{'with-img': withImg}\"><ng-content></ng-content></h1>\n"
1665
1670
  },] }
1666
1671
  ];
1667
1672
  H1Component.ctorParameters = () => [];
1673
+ H1Component.propDecorators = {
1674
+ withImg: [{ type: Input }]
1675
+ };
1668
1676
 
1669
1677
  class H2Component {
1670
1678
  constructor() { }
@@ -1696,19 +1704,22 @@ H3Component.propDecorators = {
1696
1704
  };
1697
1705
 
1698
1706
  class HeaderPageComponent {
1699
- constructor() { }
1707
+ constructor() {
1708
+ this.withImg = false;
1709
+ }
1700
1710
  ngOnInit() { }
1701
1711
  }
1702
1712
  HeaderPageComponent.decorators = [
1703
1713
  { type: Component, args: [{
1704
1714
  selector: 'wac-header-page',
1705
- 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"
1715
+ 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"
1706
1716
  },] }
1707
1717
  ];
1708
1718
  HeaderPageComponent.ctorParameters = () => [];
1709
1719
  HeaderPageComponent.propDecorators = {
1710
1720
  title: [{ type: Input }],
1711
- linkBack: [{ type: Input }]
1721
+ linkBack: [{ type: Input }],
1722
+ withImg: [{ type: Input }]
1712
1723
  };
1713
1724
 
1714
1725
  class InputComponent {
@@ -1965,6 +1976,7 @@ class SwitchComponent {
1965
1976
  this.textStateDisable = '';
1966
1977
  this.showInput = false;
1967
1978
  this.danger = false;
1979
+ this.whiteSpace = false;
1968
1980
  this.switchChange = new EventEmitter(); // todo set emitted type
1969
1981
  this.changeInput = new EventEmitter(); // todo set emitted type
1970
1982
  }
@@ -1981,7 +1993,7 @@ class SwitchComponent {
1981
1993
  SwitchComponent.decorators = [
1982
1994
  { type: Component, args: [{
1983
1995
  selector: 'wac-switch',
1984
- 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"
1996
+ 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"
1985
1997
  },] }
1986
1998
  ];
1987
1999
  SwitchComponent.ctorParameters = () => [];
@@ -1993,6 +2005,7 @@ SwitchComponent.propDecorators = {
1993
2005
  showInput: [{ type: Input }],
1994
2006
  placholderInput: [{ type: Input }],
1995
2007
  danger: [{ type: Input }],
2008
+ whiteSpace: [{ type: Input }],
1996
2009
  switchChange: [{ type: Output }],
1997
2010
  changeInput: [{ type: Output }]
1998
2011
  };
@@ -3654,6 +3667,68 @@ TreeModule.decorators = [
3654
3667
  },] }
3655
3668
  ];
3656
3669
 
3670
+ class WrapperSidebarComponent {
3671
+ constructor() {
3672
+ this.reverse = false;
3673
+ }
3674
+ ngOnInit() {
3675
+ }
3676
+ }
3677
+ WrapperSidebarComponent.decorators = [
3678
+ { type: Component, args: [{
3679
+ selector: 'wac-wrapper-sidebar',
3680
+ 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"
3681
+ },] }
3682
+ ];
3683
+ WrapperSidebarComponent.ctorParameters = () => [];
3684
+ WrapperSidebarComponent.propDecorators = {
3685
+ reverse: [{ type: Input }]
3686
+ };
3687
+
3688
+ class BreadcrumbsComponent {
3689
+ constructor() { }
3690
+ ngOnInit() {
3691
+ }
3692
+ }
3693
+ BreadcrumbsComponent.decorators = [
3694
+ { type: Component, args: [{
3695
+ selector: 'wac-breadcrumbs',
3696
+ 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"
3697
+ },] }
3698
+ ];
3699
+ BreadcrumbsComponent.ctorParameters = () => [];
3700
+ BreadcrumbsComponent.propDecorators = {
3701
+ breadcrumbs: [{ type: Input }]
3702
+ };
3703
+
3704
+ class CardPriceComponent {
3705
+ constructor() {
3706
+ this.click = new EventEmitter();
3707
+ }
3708
+ ngOnInit() {
3709
+ }
3710
+ triggerClick() {
3711
+ this.click.emit(true);
3712
+ }
3713
+ }
3714
+ CardPriceComponent.decorators = [
3715
+ { type: Component, args: [{
3716
+ selector: 'wac-card-price',
3717
+ 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"
3718
+ },] }
3719
+ ];
3720
+ CardPriceComponent.ctorParameters = () => [];
3721
+ CardPriceComponent.propDecorators = {
3722
+ amount: [{ type: Input }],
3723
+ title: [{ type: Input }],
3724
+ price: [{ type: Input }],
3725
+ currency: [{ type: Input }],
3726
+ priceWording: [{ type: Input }],
3727
+ subtitle: [{ type: Input }],
3728
+ btnLabel: [{ type: Input }],
3729
+ click: [{ type: Output }]
3730
+ };
3731
+
3657
3732
  const components = [
3658
3733
  TagComponent,
3659
3734
  TabComponent,
@@ -3695,7 +3770,10 @@ const components = [
3695
3770
  WrapperBlocsComponent,
3696
3771
  SnackbarComponent,
3697
3772
  SearchComponent,
3698
- SelectedListComponent
3773
+ SelectedListComponent,
3774
+ WrapperSidebarComponent,
3775
+ BreadcrumbsComponent,
3776
+ CardPriceComponent
3699
3777
  ];
3700
3778
  const exportsFromModule = [
3701
3779
  PaginationComponent,
@@ -3737,6 +3815,7 @@ SharedComponentsModule.decorators = [
3737
3815
  PerfectScrollbarModule,
3738
3816
  AlertPopupModule,
3739
3817
  RouterModule,
3818
+ AutosizeModule,
3740
3819
  TreeModule
3741
3820
  ],
3742
3821
  declarations: components,
@@ -3776,5 +3855,5 @@ class TableFiltersGroup extends NwbFilterGroup {
3776
3855
  * Generated bundle index. Do not edit.
3777
3856
  */
3778
3857
 
3779
- export { AbstractDebounceDirective, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, ButtonComponent, CalendarComponent, CheckBoxRow, CheckboxComponent, DebounceKeyupDirective, DeleteComponent, DropdownComponent, FiltersComponent, FiltersTableService, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MultipleSearchComponent, MultipleSearchPlusComponent, PaginationComponent, PopinComponent, ProgressBarComponent, RadioComponent, SearchComponent, SelectComponent, SelectFiltersPipe, SelectInTextComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SnackbarComponent, StateComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TagComponent, TextAreaComponent, TextComponent, TooltipComponent, TreeComponent, TreeModule, UploadComponent, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WzEditInPlaceComponent, ZindexToggleDirective, DomService as ɵa, PaginationModule as ɵb, PagniationArrayTotalPages as ɵc, PagniationIsLastPage as ɵd, PagniationText as ɵe, TableModule as ɵf, InputSearchModule as ɵg, InputModule as ɵh, TooltipModule as ɵi, ProgressBarModule as ɵj, LoaderModule as ɵk, CheckboxModule as ɵl, inOutY as ɵm, TableCheckboxIdService as ɵn, MultiSelectionService as ɵo, inOutX as ɵp };
3858
+ export { AbstractDebounceDirective, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CardPriceComponent, CheckBoxRow, CheckboxComponent, DebounceKeyupDirective, DeleteComponent, DropdownComponent, FiltersComponent, FiltersTableService, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MultipleSearchComponent, MultipleSearchPlusComponent, PaginationComponent, PopinComponent, ProgressBarComponent, RadioComponent, SearchComponent, SelectComponent, SelectFiltersPipe, SelectInTextComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SnackbarComponent, StateComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TagComponent, TextAreaComponent, TextComponent, TooltipComponent, TreeComponent, TreeModule, UploadComponent, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective, DomService as ɵa, PaginationModule as ɵb, PagniationArrayTotalPages as ɵc, PagniationIsLastPage as ɵd, PagniationText as ɵe, TableModule as ɵf, InputSearchModule as ɵg, InputModule as ɵh, TooltipModule as ɵi, ProgressBarModule as ɵj, LoaderModule as ɵk, CheckboxModule as ɵl, inOutY as ɵm, TableCheckboxIdService as ɵn, MultiSelectionService as ɵo, inOutX as ɵp };
3780
3859
  //# sourceMappingURL=wizishop-angular-components.js.map