@wizishop/angular-components 15.1.33 → 15.1.35

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,116 @@ 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.lineDisplayContent = false;
5926
+ this.border = false;
5927
+ this.halfMarginChild = '';
5928
+ this.nbChildsClass = '';
5929
+ }
5930
+ ngOnInit() {
5931
+ this.id = 'row-' + Math.floor(Math.random() * 1000);
5932
+ if (this.marginChild) {
5933
+ this.halfMarginChild = parseInt(this.marginChild) / 2 + 'px';
5934
+ }
5935
+ }
5936
+ responsiveControl(size) {
5937
+ if (size > 1024) {
5938
+ this.classWidth = '';
5939
+ }
5940
+ else if (size <= 480) {
5941
+ this.classWidth = 'low';
5942
+ }
5943
+ else {
5944
+ this.classWidth = 'medium';
5945
+ }
5946
+ }
5947
+ handleResponsiveAuto(size) {
5948
+ if (size < 500) {
5949
+ this.responsiveClass = 'mobile';
5950
+ }
5951
+ else {
5952
+ this.responsiveClass = '';
5953
+ }
5954
+ }
5955
+ onResize() {
5956
+ const size = this.container.nativeElement.offsetWidth;
5957
+ this.responsiveControl(size);
5958
+ if (this.responsiveAuto) {
5959
+ this.handleResponsiveAuto(size);
5960
+ }
5961
+ }
5962
+ ngAfterContentInit() {
5963
+ setTimeout(() => {
5964
+ this.childs = this.container.nativeElement.childElementCount;
5965
+ if (this.width) {
5966
+ document.getElementById(this.id).parentElement.style.maxWidth = this.width;
5967
+ }
5968
+ if (this.height) {
5969
+ document.getElementById(this.id).parentElement.style.maxHeight = this.height;
5970
+ }
5971
+ if (this.childs > 1 && this.marginChild) {
5972
+ for (let i = 0; i < this.childs; i++) {
5973
+ const child = document.getElementById(this.id).children[i];
5974
+ child.style.marginLeft = this.halfMarginChild;
5975
+ child.style.marginRight = this.halfMarginChild;
5976
+ }
5977
+ }
5978
+ this.nbChildsClass = 'nb-child-' + this.childs;
5979
+ this.onResize();
5980
+ }, 1);
5981
+ }
5982
+ }
5983
+ RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
5984
+ 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", lineDisplayContent: "lineDisplayContent", border: "border" }, 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' : '' }} {{ lineDisplayContent ? 'direction-column' : '' }} {{ border ? 'with-border' : '' }} {{ 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 });
5985
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, decorators: [{
5986
+ type: Component,
5987
+ 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' : '' }} {{ lineDisplayContent ? 'direction-column' : '' }} {{ border ? 'with-border' : '' }} {{ 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" }]
5988
+ }], propDecorators: { position: [{
5989
+ type: Input
5990
+ }], width: [{
5991
+ type: Input
5992
+ }], height: [{
5993
+ type: Input
5994
+ }], responsiveAuto: [{
5995
+ type: Input
5996
+ }], childrensWidthAuto: [{
5997
+ type: Input
5998
+ }], visibility: [{
5999
+ type: Input
6000
+ }], marginChild: [{
6001
+ type: Input
6002
+ }], addWacBlock: [{
6003
+ type: Input
6004
+ }], lineDisplayContent: [{
6005
+ type: Input
6006
+ }], border: [{
6007
+ type: Input
6008
+ }], container: [{
6009
+ type: ViewChild,
6010
+ args: [`container`]
6011
+ }], onResize: [{
6012
+ type: HostListener,
6013
+ args: ['window:resize', ['$event']]
6014
+ }] } });
6015
+
6016
+ class ColumnComponent {
6017
+ }
6018
+ ColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6019
+ 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" });
6020
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, decorators: [{
6021
+ type: Component,
6022
+ args: [{ selector: 'wac-column', template: "<p>column works!</p>\n" }]
6023
+ }] });
6024
+
5915
6025
  const components = [
5916
6026
  TagComponent,
5917
6027
  ButtonComponent,
@@ -5969,7 +6079,9 @@ const components = [
5969
6079
  GooglePreviewComponent,
5970
6080
  DraganddropListComponent,
5971
6081
  ChargingBarComponent,
5972
- ExpandedPanelComponent
6082
+ ExpandedPanelComponent,
6083
+ RowComponent,
6084
+ ColumnComponent
5973
6085
  ];
5974
6086
  const exportsFromModule = [
5975
6087
  PaginationComponent,
@@ -6056,7 +6168,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6056
6168
  GooglePreviewComponent,
6057
6169
  DraganddropListComponent,
6058
6170
  ChargingBarComponent,
6059
- ExpandedPanelComponent], imports: [CommonModule,
6171
+ ExpandedPanelComponent,
6172
+ RowComponent,
6173
+ ColumnComponent], imports: [CommonModule,
6060
6174
  FormsModule,
6061
6175
  NwbAllModule, i1$2.TranslateModule, ReactiveFormsModule,
6062
6176
  SharedDirectives,
@@ -6141,7 +6255,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6141
6255
  GooglePreviewComponent,
6142
6256
  DraganddropListComponent,
6143
6257
  ChargingBarComponent,
6144
- ExpandedPanelComponent, PaginationComponent,
6258
+ ExpandedPanelComponent,
6259
+ RowComponent,
6260
+ ColumnComponent, PaginationComponent,
6145
6261
  TableComponent,
6146
6262
  TableColumn,
6147
6263
  CheckBoxRow,
@@ -6407,5 +6523,5 @@ const switchInOut = trigger('switchInOut', [
6407
6523
  * Generated bundle index. Do not edit.
6408
6524
  */
6409
6525
 
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 };
6526
+ 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
6527
  //# sourceMappingURL=wizishop-angular-components.mjs.map