@wizishop/angular-components 15.1.33 → 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.
@@ -5912,6 +5912,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
5912
5912
  type: Input
5913
5913
  }] } });
5914
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
+
5915
6019
  const components = [
5916
6020
  TagComponent,
5917
6021
  ButtonComponent,
@@ -5969,7 +6073,9 @@ const components = [
5969
6073
  GooglePreviewComponent,
5970
6074
  DraganddropListComponent,
5971
6075
  ChargingBarComponent,
5972
- ExpandedPanelComponent
6076
+ ExpandedPanelComponent,
6077
+ RowComponent,
6078
+ ColumnComponent
5973
6079
  ];
5974
6080
  const exportsFromModule = [
5975
6081
  PaginationComponent,
@@ -6056,7 +6162,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6056
6162
  GooglePreviewComponent,
6057
6163
  DraganddropListComponent,
6058
6164
  ChargingBarComponent,
6059
- ExpandedPanelComponent], imports: [CommonModule,
6165
+ ExpandedPanelComponent,
6166
+ RowComponent,
6167
+ ColumnComponent], imports: [CommonModule,
6060
6168
  FormsModule,
6061
6169
  NwbAllModule, i1$2.TranslateModule, ReactiveFormsModule,
6062
6170
  SharedDirectives,
@@ -6141,7 +6249,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6141
6249
  GooglePreviewComponent,
6142
6250
  DraganddropListComponent,
6143
6251
  ChargingBarComponent,
6144
- ExpandedPanelComponent, PaginationComponent,
6252
+ ExpandedPanelComponent,
6253
+ RowComponent,
6254
+ ColumnComponent, PaginationComponent,
6145
6255
  TableComponent,
6146
6256
  TableColumn,
6147
6257
  CheckBoxRow,
@@ -6407,5 +6517,5 @@ const switchInOut = trigger('switchInOut', [
6407
6517
  * Generated bundle index. Do not edit.
6408
6518
  */
6409
6519
 
6410
- 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 };
6411
6521
  //# sourceMappingURL=wizishop-angular-components.mjs.map