@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.
@@ -5932,6 +5932,110 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
5932
5932
  type: Input
5933
5933
  }] } });
5934
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
+
5935
6039
  const components = [
5936
6040
  TagComponent,
5937
6041
  ButtonComponent,
@@ -5989,7 +6093,9 @@ const components = [
5989
6093
  GooglePreviewComponent,
5990
6094
  DraganddropListComponent,
5991
6095
  ChargingBarComponent,
5992
- ExpandedPanelComponent
6096
+ ExpandedPanelComponent,
6097
+ RowComponent,
6098
+ ColumnComponent
5993
6099
  ];
5994
6100
  const exportsFromModule = [
5995
6101
  PaginationComponent,
@@ -6076,7 +6182,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6076
6182
  GooglePreviewComponent,
6077
6183
  DraganddropListComponent,
6078
6184
  ChargingBarComponent,
6079
- ExpandedPanelComponent], imports: [CommonModule,
6185
+ ExpandedPanelComponent,
6186
+ RowComponent,
6187
+ ColumnComponent], imports: [CommonModule,
6080
6188
  FormsModule,
6081
6189
  NwbAllModule, i1$2.TranslateModule, ReactiveFormsModule,
6082
6190
  SharedDirectives,
@@ -6161,7 +6269,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6161
6269
  GooglePreviewComponent,
6162
6270
  DraganddropListComponent,
6163
6271
  ChargingBarComponent,
6164
- ExpandedPanelComponent, PaginationComponent,
6272
+ ExpandedPanelComponent,
6273
+ RowComponent,
6274
+ ColumnComponent, PaginationComponent,
6165
6275
  TableComponent,
6166
6276
  TableColumn,
6167
6277
  CheckBoxRow,
@@ -6424,5 +6534,5 @@ const switchInOut = trigger('switchInOut', [
6424
6534
  * Generated bundle index. Do not edit.
6425
6535
  */
6426
6536
 
6427
- 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 };
6428
6538
  //# sourceMappingURL=wizishop-angular-components.mjs.map