@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.
@@ -4041,13 +4041,14 @@ class BlockSeparatorComponent {
4041
4041
  constructor() { }
4042
4042
  }
4043
4043
  BlockSeparatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4044
- 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 });
4044
+ 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 });
4045
4045
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockSeparatorComponent, decorators: [{
4046
4046
  type: Component,
4047
4047
  args: [{
4048
4048
  selector: 'wac-block-separator',
4049
4049
  template: ``,
4050
- encapsulation: ViewEncapsulation.None
4050
+ encapsulation: ViewEncapsulation.None,
4051
+ standalone: true
4051
4052
  }]
4052
4053
  }], ctorParameters: function () { return []; } });
4053
4054
 
@@ -5808,10 +5809,10 @@ class BlockTitleLegacyComponent {
5808
5809
  }
5809
5810
  }
5810
5811
  BlockTitleLegacyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockTitleLegacyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5811
- 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 });
5812
+ 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 });
5812
5813
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: BlockTitleLegacyComponent, decorators: [{
5813
5814
  type: Component,
5814
- 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>" }]
5815
+ 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>" }]
5815
5816
  }], ctorParameters: function () { return []; }, propDecorators: { simple: [{
5816
5817
  type: Input
5817
5818
  }], icon: [{
@@ -5911,6 +5912,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
5911
5912
  type: Input
5912
5913
  }] } });
5913
5914
 
5915
+ class RowComponent {
5916
+ constructor() {
5917
+ this.id = '';
5918
+ this.childs = 0;
5919
+ this.classWidth = '';
5920
+ this.responsiveClass = '';
5921
+ this.responsiveAuto = false;
5922
+ this.childrensWidthAuto = false;
5923
+ this.marginChild = '';
5924
+ this.addWacBlock = false;
5925
+ this.halfMarginChild = '';
5926
+ this.nbChildsClass = '';
5927
+ }
5928
+ ngOnInit() {
5929
+ this.id = 'row-' + Math.floor(Math.random() * 1000);
5930
+ if (this.marginChild) {
5931
+ this.halfMarginChild = parseInt(this.marginChild) / 2 + 'px';
5932
+ }
5933
+ }
5934
+ responsiveControl(size) {
5935
+ if (size > 1024) {
5936
+ this.classWidth = '';
5937
+ }
5938
+ else if (size <= 480) {
5939
+ this.classWidth = 'low';
5940
+ }
5941
+ else {
5942
+ this.classWidth = 'medium';
5943
+ }
5944
+ }
5945
+ handleResponsiveAuto(size) {
5946
+ if (size < 500) {
5947
+ this.responsiveClass = 'mobile';
5948
+ }
5949
+ else {
5950
+ this.responsiveClass = '';
5951
+ }
5952
+ }
5953
+ onResize() {
5954
+ const size = this.container.nativeElement.offsetWidth;
5955
+ this.responsiveControl(size);
5956
+ if (this.responsiveAuto) {
5957
+ this.handleResponsiveAuto(size);
5958
+ }
5959
+ }
5960
+ ngAfterContentInit() {
5961
+ setTimeout(() => {
5962
+ this.childs = this.container.nativeElement.childElementCount;
5963
+ if (this.width) {
5964
+ document.getElementById(this.id).parentElement.style.maxWidth = this.width;
5965
+ }
5966
+ if (this.height) {
5967
+ document.getElementById(this.id).parentElement.style.maxHeight = this.height;
5968
+ }
5969
+ if (this.childs > 1 && this.marginChild) {
5970
+ for (let i = 0; i < this.childs; i++) {
5971
+ const child = document.getElementById(this.id).children[i];
5972
+ child.style.marginLeft = this.halfMarginChild;
5973
+ child.style.marginRight = this.halfMarginChild;
5974
+ }
5975
+ }
5976
+ this.nbChildsClass = 'nb-child-' + this.childs;
5977
+ this.onResize();
5978
+ }, 1);
5979
+ }
5980
+ }
5981
+ RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5982
+ 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 });
5983
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, decorators: [{
5984
+ type: Component,
5985
+ 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" }]
5986
+ }], propDecorators: { position: [{
5987
+ type: Input
5988
+ }], width: [{
5989
+ type: Input
5990
+ }], height: [{
5991
+ type: Input
5992
+ }], responsiveAuto: [{
5993
+ type: Input
5994
+ }], childrensWidthAuto: [{
5995
+ type: Input
5996
+ }], visibility: [{
5997
+ type: Input
5998
+ }], marginChild: [{
5999
+ type: Input
6000
+ }], addWacBlock: [{
6001
+ type: Input
6002
+ }], container: [{
6003
+ type: ViewChild,
6004
+ args: [`container`]
6005
+ }], onResize: [{
6006
+ type: HostListener,
6007
+ args: ['window:resize', ['$event']]
6008
+ }] } });
6009
+
6010
+ class ColumnComponent {
6011
+ }
6012
+ ColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6013
+ 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" });
6014
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, decorators: [{
6015
+ type: Component,
6016
+ args: [{ selector: 'wac-column', template: "<p>column works!</p>\n" }]
6017
+ }] });
6018
+
5914
6019
  const components = [
5915
6020
  TagComponent,
5916
6021
  ButtonComponent,
@@ -5942,7 +6047,6 @@ const components = [
5942
6047
  MultipleSearchPlusComponent,
5943
6048
  PopinComponent,
5944
6049
  FreePopinComponent,
5945
- BlockTitleLegacyComponent,
5946
6050
  WrapperComponent,
5947
6051
  FiltersComponent,
5948
6052
  WrapperBlocsComponent,
@@ -5965,12 +6069,13 @@ const components = [
5965
6069
  ContentWithButtonsComponent,
5966
6070
  WrapperMultipleBlockComponent,
5967
6071
  DraganddropListComponent,
5968
- BlockSeparatorComponent,
5969
6072
  SummaryComponent,
5970
6073
  GooglePreviewComponent,
5971
6074
  DraganddropListComponent,
5972
6075
  ChargingBarComponent,
5973
- ExpandedPanelComponent
6076
+ ExpandedPanelComponent,
6077
+ RowComponent,
6078
+ ColumnComponent
5974
6079
  ];
5975
6080
  const exportsFromModule = [
5976
6081
  PaginationComponent,
@@ -5995,6 +6100,8 @@ const standaloneComponents = [
5995
6100
  InputComponent,
5996
6101
  InputSearchComponent,
5997
6102
  InputWithSelectComponent,
6103
+ BlockTitleLegacyComponent,
6104
+ BlockSeparatorComponent,
5998
6105
  ];
5999
6106
  class SharedComponentsModule {
6000
6107
  }
@@ -6029,7 +6136,6 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6029
6136
  MultipleSearchPlusComponent,
6030
6137
  PopinComponent,
6031
6138
  FreePopinComponent,
6032
- BlockTitleLegacyComponent,
6033
6139
  WrapperComponent,
6034
6140
  FiltersComponent,
6035
6141
  WrapperBlocsComponent,
@@ -6052,12 +6158,13 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6052
6158
  ContentWithButtonsComponent,
6053
6159
  WrapperMultipleBlockComponent,
6054
6160
  DraganddropListComponent,
6055
- BlockSeparatorComponent,
6056
6161
  SummaryComponent,
6057
6162
  GooglePreviewComponent,
6058
6163
  DraganddropListComponent,
6059
6164
  ChargingBarComponent,
6060
- ExpandedPanelComponent], imports: [CommonModule,
6165
+ ExpandedPanelComponent,
6166
+ RowComponent,
6167
+ ColumnComponent], imports: [CommonModule,
6061
6168
  FormsModule,
6062
6169
  NwbAllModule, i1$2.TranslateModule, ReactiveFormsModule,
6063
6170
  SharedDirectives,
@@ -6084,7 +6191,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6084
6191
  ProgressBarComponent,
6085
6192
  InputComponent,
6086
6193
  InputSearchComponent,
6087
- InputWithSelectComponent], exports: [TagComponent,
6194
+ InputWithSelectComponent,
6195
+ BlockTitleLegacyComponent,
6196
+ BlockSeparatorComponent], exports: [TagComponent,
6088
6197
  ButtonComponent,
6089
6198
  InfoComponent,
6090
6199
  SettingsComponent,
@@ -6114,7 +6223,6 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6114
6223
  MultipleSearchPlusComponent,
6115
6224
  PopinComponent,
6116
6225
  FreePopinComponent,
6117
- BlockTitleLegacyComponent,
6118
6226
  WrapperComponent,
6119
6227
  FiltersComponent,
6120
6228
  WrapperBlocsComponent,
@@ -6137,12 +6245,13 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6137
6245
  ContentWithButtonsComponent,
6138
6246
  WrapperMultipleBlockComponent,
6139
6247
  DraganddropListComponent,
6140
- BlockSeparatorComponent,
6141
6248
  SummaryComponent,
6142
6249
  GooglePreviewComponent,
6143
6250
  DraganddropListComponent,
6144
6251
  ChargingBarComponent,
6145
- ExpandedPanelComponent, PaginationComponent,
6252
+ ExpandedPanelComponent,
6253
+ RowComponent,
6254
+ ColumnComponent, PaginationComponent,
6146
6255
  TableComponent,
6147
6256
  TableColumn,
6148
6257
  CheckBoxRow,
@@ -6159,7 +6268,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6159
6268
  ProgressBarComponent,
6160
6269
  InputComponent,
6161
6270
  InputSearchComponent,
6162
- InputWithSelectComponent] });
6271
+ InputWithSelectComponent,
6272
+ BlockTitleLegacyComponent,
6273
+ BlockSeparatorComponent] });
6163
6274
  SharedComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: SharedComponentsModule, imports: [CommonModule,
6164
6275
  FormsModule,
6165
6276
  NwbAllModule,
@@ -6406,5 +6517,5 @@ const switchInOut = trigger('switchInOut', [
6406
6517
  * Generated bundle index. Do not edit.
6407
6518
  */
6408
6519
 
6409
- 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 };
6520
+ 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 };
6410
6521
  //# sourceMappingURL=wizishop-angular-components.mjs.map