@wizishop/angular-components 15.1.31 → 15.1.34

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.
@@ -4056,13 +4056,14 @@ class BlockSeparatorComponent {
4056
4056
  constructor() { }
4057
4057
  }
4058
4058
  BlockSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4059
- BlockSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: BlockSeparatorComponent, selector: "wac-block-separator", ngImport: i0, template: ``, isInline: true, encapsulation: i0.ViewEncapsulation.None });
4059
+ BlockSeparatorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: BlockSeparatorComponent, isStandalone: true, selector: "wac-block-separator", ngImport: i0, template: ``, isInline: true, encapsulation: i0.ViewEncapsulation.None });
4060
4060
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockSeparatorComponent, decorators: [{
4061
4061
  type: Component,
4062
4062
  args: [{
4063
4063
  selector: 'wac-block-separator',
4064
4064
  template: ``,
4065
- encapsulation: ViewEncapsulation.None
4065
+ encapsulation: ViewEncapsulation.None,
4066
+ standalone: true
4066
4067
  }]
4067
4068
  }], ctorParameters: function () { return []; } });
4068
4069
 
@@ -5828,10 +5829,10 @@ class BlockTitleLegacyComponent {
5828
5829
  }
5829
5830
  }
5830
5831
  BlockTitleLegacyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockTitleLegacyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5831
- BlockTitleLegacyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: BlockTitleLegacyComponent, selector: "wac-block-title-legacy", inputs: { simple: "simple", icon: "icon" }, ngImport: i0, template: "<h2 class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple }\">\n <ng-content></ng-content> <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n</h2>", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
5832
+ BlockTitleLegacyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: BlockTitleLegacyComponent, isStandalone: true, selector: "wac-block-title-legacy", inputs: { simple: "simple", icon: "icon" }, ngImport: i0, template: "<h2 class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple }\">\n <ng-content></ng-content> <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n</h2>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
5832
5833
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockTitleLegacyComponent, decorators: [{
5833
5834
  type: Component,
5834
- args: [{ selector: 'wac-block-title-legacy', encapsulation: ViewEncapsulation.None, template: "<h2 class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple }\">\n <ng-content></ng-content> <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n</h2>" }]
5835
+ args: [{ selector: 'wac-block-title-legacy', encapsulation: ViewEncapsulation.None, standalone: true, imports: [CommonModule], template: "<h2 class=\"wac-block__title\" [ngClass]=\"{ 'is-simple': simple }\">\n <ng-content></ng-content> <i *ngIf=\"icon\" [ngClass]=\"icon\"></i>\n</h2>" }]
5835
5836
  }], ctorParameters: function () { return []; }, propDecorators: { simple: [{
5836
5837
  type: Input
5837
5838
  }], icon: [{
@@ -5931,6 +5932,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
5931
5932
  type: Input
5932
5933
  }] } });
5933
5934
 
5935
+ class RowComponent {
5936
+ constructor() {
5937
+ this.id = '';
5938
+ this.childs = 0;
5939
+ this.classWidth = '';
5940
+ this.responsiveClass = '';
5941
+ this.responsiveAuto = false;
5942
+ this.childrensWidthAuto = false;
5943
+ this.marginChild = '';
5944
+ this.addWacBlock = false;
5945
+ this.halfMarginChild = '';
5946
+ this.nbChildsClass = '';
5947
+ }
5948
+ ngOnInit() {
5949
+ this.id = 'row-' + Math.floor(Math.random() * 1000);
5950
+ if (this.marginChild) {
5951
+ this.halfMarginChild = parseInt(this.marginChild) / 2 + 'px';
5952
+ }
5953
+ }
5954
+ responsiveControl(size) {
5955
+ if (size > 1024) {
5956
+ this.classWidth = '';
5957
+ }
5958
+ else if (size <= 480) {
5959
+ this.classWidth = 'low';
5960
+ }
5961
+ else {
5962
+ this.classWidth = 'medium';
5963
+ }
5964
+ }
5965
+ handleResponsiveAuto(size) {
5966
+ if (size < 500) {
5967
+ this.responsiveClass = 'mobile';
5968
+ }
5969
+ else {
5970
+ this.responsiveClass = '';
5971
+ }
5972
+ }
5973
+ onResize() {
5974
+ const size = this.container.nativeElement.offsetWidth;
5975
+ this.responsiveControl(size);
5976
+ if (this.responsiveAuto) {
5977
+ this.handleResponsiveAuto(size);
5978
+ }
5979
+ }
5980
+ ngAfterContentInit() {
5981
+ setTimeout(() => {
5982
+ this.childs = this.container.nativeElement.childElementCount;
5983
+ if (this.width) {
5984
+ document.getElementById(this.id).parentElement.style.maxWidth = this.width;
5985
+ }
5986
+ if (this.height) {
5987
+ document.getElementById(this.id).parentElement.style.maxHeight = this.height;
5988
+ }
5989
+ if (this.childs > 1 && this.marginChild) {
5990
+ for (let i = 0; i < this.childs; i++) {
5991
+ const child = document.getElementById(this.id).children[i];
5992
+ child.style.marginLeft = this.halfMarginChild;
5993
+ child.style.marginRight = this.halfMarginChild;
5994
+ }
5995
+ }
5996
+ this.nbChildsClass = 'nb-child-' + this.childs;
5997
+ this.onResize();
5998
+ }, 1);
5999
+ }
6000
+ }
6001
+ RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6002
+ RowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: RowComponent, selector: "wac-row", inputs: { position: "position", width: "width", height: "height", responsiveAuto: "responsiveAuto", childrensWidthAuto: "childrensWidthAuto", visibility: "visibility", marginChild: "marginChild", addWacBlock: "addWacBlock" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div [ngStyle]=\"{'transform': (childs > 1 ? 'translateX(-' + halfMarginChild + ')' : 'wrong'), 'width': (childs > 1 ? 'calc(100% + ' + marginChild + ')' : 'wrong')}\" class=\"wac-row {{ addWacBlock ? 'white-block' : '' }} {{ childrensWidthAuto ? 'childrens-width-auto' : '' }} {{ position ? position : '' }} {{ visibility ? visibility : '' }} {{ responsiveClass ? responsiveClass : '' }} {{nbChildsClass}} {{classWidth}}\" #container [ngClass]=\"{\n 'multiple-child': childs > 3,\n 'five-or-more-child': childs > 4,\n 'alone': childs === 1\n}\" [id]=\"id\">\n <ng-content></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], encapsulation: i0.ViewEncapsulation.None });
6003
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, decorators: [{
6004
+ type: Component,
6005
+ args: [{ selector: 'wac-row', encapsulation: ViewEncapsulation.None, template: "<div [ngStyle]=\"{'transform': (childs > 1 ? 'translateX(-' + halfMarginChild + ')' : 'wrong'), 'width': (childs > 1 ? 'calc(100% + ' + marginChild + ')' : 'wrong')}\" class=\"wac-row {{ addWacBlock ? 'white-block' : '' }} {{ childrensWidthAuto ? 'childrens-width-auto' : '' }} {{ position ? position : '' }} {{ visibility ? visibility : '' }} {{ responsiveClass ? responsiveClass : '' }} {{nbChildsClass}} {{classWidth}}\" #container [ngClass]=\"{\n 'multiple-child': childs > 3,\n 'five-or-more-child': childs > 4,\n 'alone': childs === 1\n}\" [id]=\"id\">\n <ng-content></ng-content>\n</div>\n" }]
6006
+ }], propDecorators: { position: [{
6007
+ type: Input
6008
+ }], width: [{
6009
+ type: Input
6010
+ }], height: [{
6011
+ type: Input
6012
+ }], responsiveAuto: [{
6013
+ type: Input
6014
+ }], childrensWidthAuto: [{
6015
+ type: Input
6016
+ }], visibility: [{
6017
+ type: Input
6018
+ }], marginChild: [{
6019
+ type: Input
6020
+ }], addWacBlock: [{
6021
+ type: Input
6022
+ }], container: [{
6023
+ type: ViewChild,
6024
+ args: [`container`]
6025
+ }], onResize: [{
6026
+ type: HostListener,
6027
+ args: ['window:resize', ['$event']]
6028
+ }] } });
6029
+
6030
+ class ColumnComponent {
6031
+ }
6032
+ ColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6033
+ ColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.1", type: ColumnComponent, selector: "wac-column", ngImport: i0, template: "<p>column works!</p>\n" });
6034
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, decorators: [{
6035
+ type: Component,
6036
+ args: [{ selector: 'wac-column', template: "<p>column works!</p>\n" }]
6037
+ }] });
6038
+
5934
6039
  const components = [
5935
6040
  TagComponent,
5936
6041
  ButtonComponent,
@@ -5962,7 +6067,6 @@ const components = [
5962
6067
  MultipleSearchPlusComponent,
5963
6068
  PopinComponent,
5964
6069
  FreePopinComponent,
5965
- BlockTitleLegacyComponent,
5966
6070
  WrapperComponent,
5967
6071
  FiltersComponent,
5968
6072
  WrapperBlocsComponent,
@@ -5985,12 +6089,13 @@ const components = [
5985
6089
  ContentWithButtonsComponent,
5986
6090
  WrapperMultipleBlockComponent,
5987
6091
  DraganddropListComponent,
5988
- BlockSeparatorComponent,
5989
6092
  SummaryComponent,
5990
6093
  GooglePreviewComponent,
5991
6094
  DraganddropListComponent,
5992
6095
  ChargingBarComponent,
5993
- ExpandedPanelComponent
6096
+ ExpandedPanelComponent,
6097
+ RowComponent,
6098
+ ColumnComponent
5994
6099
  ];
5995
6100
  const exportsFromModule = [
5996
6101
  PaginationComponent,
@@ -6015,6 +6120,8 @@ const standaloneComponents = [
6015
6120
  InputComponent,
6016
6121
  InputSearchComponent,
6017
6122
  InputWithSelectComponent,
6123
+ BlockTitleLegacyComponent,
6124
+ BlockSeparatorComponent,
6018
6125
  ];
6019
6126
  class SharedComponentsModule {
6020
6127
  }
@@ -6049,7 +6156,6 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6049
6156
  MultipleSearchPlusComponent,
6050
6157
  PopinComponent,
6051
6158
  FreePopinComponent,
6052
- BlockTitleLegacyComponent,
6053
6159
  WrapperComponent,
6054
6160
  FiltersComponent,
6055
6161
  WrapperBlocsComponent,
@@ -6072,12 +6178,13 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6072
6178
  ContentWithButtonsComponent,
6073
6179
  WrapperMultipleBlockComponent,
6074
6180
  DraganddropListComponent,
6075
- BlockSeparatorComponent,
6076
6181
  SummaryComponent,
6077
6182
  GooglePreviewComponent,
6078
6183
  DraganddropListComponent,
6079
6184
  ChargingBarComponent,
6080
- ExpandedPanelComponent], imports: [CommonModule,
6185
+ ExpandedPanelComponent,
6186
+ RowComponent,
6187
+ ColumnComponent], imports: [CommonModule,
6081
6188
  FormsModule,
6082
6189
  NwbAllModule, i1$2.TranslateModule, ReactiveFormsModule,
6083
6190
  SharedDirectives,
@@ -6104,7 +6211,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6104
6211
  ProgressBarComponent,
6105
6212
  InputComponent,
6106
6213
  InputSearchComponent,
6107
- InputWithSelectComponent], exports: [TagComponent,
6214
+ InputWithSelectComponent,
6215
+ BlockTitleLegacyComponent,
6216
+ BlockSeparatorComponent], exports: [TagComponent,
6108
6217
  ButtonComponent,
6109
6218
  InfoComponent,
6110
6219
  SettingsComponent,
@@ -6134,7 +6243,6 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6134
6243
  MultipleSearchPlusComponent,
6135
6244
  PopinComponent,
6136
6245
  FreePopinComponent,
6137
- BlockTitleLegacyComponent,
6138
6246
  WrapperComponent,
6139
6247
  FiltersComponent,
6140
6248
  WrapperBlocsComponent,
@@ -6157,12 +6265,13 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6157
6265
  ContentWithButtonsComponent,
6158
6266
  WrapperMultipleBlockComponent,
6159
6267
  DraganddropListComponent,
6160
- BlockSeparatorComponent,
6161
6268
  SummaryComponent,
6162
6269
  GooglePreviewComponent,
6163
6270
  DraganddropListComponent,
6164
6271
  ChargingBarComponent,
6165
- ExpandedPanelComponent, PaginationComponent,
6272
+ ExpandedPanelComponent,
6273
+ RowComponent,
6274
+ ColumnComponent, PaginationComponent,
6166
6275
  TableComponent,
6167
6276
  TableColumn,
6168
6277
  CheckBoxRow,
@@ -6179,7 +6288,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6179
6288
  ProgressBarComponent,
6180
6289
  InputComponent,
6181
6290
  InputSearchComponent,
6182
- InputWithSelectComponent] });
6291
+ InputWithSelectComponent,
6292
+ BlockTitleLegacyComponent,
6293
+ BlockSeparatorComponent] });
6183
6294
  SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: SharedComponentsModule, imports: [CommonModule,
6184
6295
  FormsModule,
6185
6296
  NwbAllModule,
@@ -6423,5 +6534,5 @@ const switchInOut = trigger('switchInOut', [
6423
6534
  * Generated bundle index. Do not edit.
6424
6535
  */
6425
6536
 
6426
- export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BlockSeparatorComponent, BlockTitleLegacyComponent, BlockWithCheckboxComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CallComponentFunctionPipe, CardPriceComponent, ChargingBarComponent, CheckBoxRow, CheckboxComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, CopyToClipBoardDirective, DebounceKeyupDirective, DeleteComponent, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpandedPanelComponent, ExpansionExport, ExpansionModule, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FilterOptionsPipe, FiltersComponent, FiltersTableService, FindOptionSelectedPipe, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, GooglePreviewComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HistoryService, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, RadioDirective, RadioGroupDirective, ScrollToDirective, SearchComponent, SelectComponent, SelectDirective, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SnackbarComponent, StateComponent, SummaryComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TagComponent, TagLabelComponent, TextAreaComponent, TextComponent, TokenCheckComponent, TooltipComponent, TreeComponent, TreeModule, TwoDigitDecimalNumberDirective, UploadComponent, ValueChangeService, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperMultipleBlockComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective, animateListFromBottom, animateListFromLeft, animateListFromRight, animateListFromTop, distinctUntilTableFiltersChanged, inOutX, inOutY, opacityAnimation, showFromBottom, showFromLeft, showFromRight, showFromTop, switchInOut, updateTableFiltersTotalItems, uuid };
6537
+ export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BlockSeparatorComponent, BlockTitleLegacyComponent, BlockWithCheckboxComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CallComponentFunctionPipe, CardPriceComponent, ChargingBarComponent, CheckBoxRow, CheckboxComponent, ColumnComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, CopyToClipBoardDirective, DebounceKeyupDirective, DeleteComponent, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpandedPanelComponent, ExpansionExport, ExpansionModule, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FilterOptionsPipe, FiltersComponent, FiltersTableService, FindOptionSelectedPipe, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, GooglePreviewComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HistoryService, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, RadioDirective, RadioGroupDirective, RowComponent, ScrollToDirective, SearchComponent, SelectComponent, SelectDirective, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SnackbarComponent, StateComponent, SummaryComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TagComponent, TagLabelComponent, TextAreaComponent, TextComponent, TokenCheckComponent, TooltipComponent, TreeComponent, TreeModule, TwoDigitDecimalNumberDirective, UploadComponent, ValueChangeService, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperMultipleBlockComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective, animateListFromBottom, animateListFromLeft, animateListFromRight, animateListFromTop, distinctUntilTableFiltersChanged, inOutX, inOutY, opacityAnimation, showFromBottom, showFromLeft, showFromRight, showFromTop, switchInOut, updateTableFiltersTotalItems, uuid };
6427
6538
  //# sourceMappingURL=wizishop-angular-components.mjs.map