@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.
@@ -5932,6 +5932,116 @@ 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.lineDisplayContent = false;
5946
+ this.border = false;
5947
+ this.halfMarginChild = '';
5948
+ this.nbChildsClass = '';
5949
+ }
5950
+ ngOnInit() {
5951
+ this.id = 'row-' + Math.floor(Math.random() * 1000);
5952
+ if (this.marginChild) {
5953
+ this.halfMarginChild = parseInt(this.marginChild) / 2 + 'px';
5954
+ }
5955
+ }
5956
+ responsiveControl(size) {
5957
+ if (size > 1024) {
5958
+ this.classWidth = '';
5959
+ }
5960
+ else if (size <= 480) {
5961
+ this.classWidth = 'low';
5962
+ }
5963
+ else {
5964
+ this.classWidth = 'medium';
5965
+ }
5966
+ }
5967
+ handleResponsiveAuto(size) {
5968
+ if (size < 500) {
5969
+ this.responsiveClass = 'mobile';
5970
+ }
5971
+ else {
5972
+ this.responsiveClass = '';
5973
+ }
5974
+ }
5975
+ onResize() {
5976
+ const size = this.container.nativeElement.offsetWidth;
5977
+ this.responsiveControl(size);
5978
+ if (this.responsiveAuto) {
5979
+ this.handleResponsiveAuto(size);
5980
+ }
5981
+ }
5982
+ ngAfterContentInit() {
5983
+ setTimeout(() => {
5984
+ this.childs = this.container.nativeElement.childElementCount;
5985
+ if (this.width) {
5986
+ document.getElementById(this.id).parentElement.style.maxWidth = this.width;
5987
+ }
5988
+ if (this.height) {
5989
+ document.getElementById(this.id).parentElement.style.maxHeight = this.height;
5990
+ }
5991
+ if (this.childs > 1 && this.marginChild) {
5992
+ for (let i = 0; i < this.childs; i++) {
5993
+ const child = document.getElementById(this.id).children[i];
5994
+ child.style.marginLeft = this.halfMarginChild;
5995
+ child.style.marginRight = this.halfMarginChild;
5996
+ }
5997
+ }
5998
+ this.nbChildsClass = 'nb-child-' + this.childs;
5999
+ this.onResize();
6000
+ }, 1);
6001
+ }
6002
+ }
6003
+ RowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6004
+ 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 });
6005
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: RowComponent, decorators: [{
6006
+ type: Component,
6007
+ 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" }]
6008
+ }], propDecorators: { position: [{
6009
+ type: Input
6010
+ }], width: [{
6011
+ type: Input
6012
+ }], height: [{
6013
+ type: Input
6014
+ }], responsiveAuto: [{
6015
+ type: Input
6016
+ }], childrensWidthAuto: [{
6017
+ type: Input
6018
+ }], visibility: [{
6019
+ type: Input
6020
+ }], marginChild: [{
6021
+ type: Input
6022
+ }], addWacBlock: [{
6023
+ type: Input
6024
+ }], lineDisplayContent: [{
6025
+ type: Input
6026
+ }], border: [{
6027
+ type: Input
6028
+ }], container: [{
6029
+ type: ViewChild,
6030
+ args: [`container`]
6031
+ }], onResize: [{
6032
+ type: HostListener,
6033
+ args: ['window:resize', ['$event']]
6034
+ }] } });
6035
+
6036
+ class ColumnComponent {
6037
+ }
6038
+ ColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6039
+ 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" });
6040
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ColumnComponent, decorators: [{
6041
+ type: Component,
6042
+ args: [{ selector: 'wac-column', template: "<p>column works!</p>\n" }]
6043
+ }] });
6044
+
5935
6045
  const components = [
5936
6046
  TagComponent,
5937
6047
  ButtonComponent,
@@ -5989,7 +6099,9 @@ const components = [
5989
6099
  GooglePreviewComponent,
5990
6100
  DraganddropListComponent,
5991
6101
  ChargingBarComponent,
5992
- ExpandedPanelComponent
6102
+ ExpandedPanelComponent,
6103
+ RowComponent,
6104
+ ColumnComponent
5993
6105
  ];
5994
6106
  const exportsFromModule = [
5995
6107
  PaginationComponent,
@@ -6076,7 +6188,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6076
6188
  GooglePreviewComponent,
6077
6189
  DraganddropListComponent,
6078
6190
  ChargingBarComponent,
6079
- ExpandedPanelComponent], imports: [CommonModule,
6191
+ ExpandedPanelComponent,
6192
+ RowComponent,
6193
+ ColumnComponent], imports: [CommonModule,
6080
6194
  FormsModule,
6081
6195
  NwbAllModule, i1$2.TranslateModule, ReactiveFormsModule,
6082
6196
  SharedDirectives,
@@ -6161,7 +6275,9 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
6161
6275
  GooglePreviewComponent,
6162
6276
  DraganddropListComponent,
6163
6277
  ChargingBarComponent,
6164
- ExpandedPanelComponent, PaginationComponent,
6278
+ ExpandedPanelComponent,
6279
+ RowComponent,
6280
+ ColumnComponent, PaginationComponent,
6165
6281
  TableComponent,
6166
6282
  TableColumn,
6167
6283
  CheckBoxRow,
@@ -6424,5 +6540,5 @@ const switchInOut = trigger('switchInOut', [
6424
6540
  * Generated bundle index. Do not edit.
6425
6541
  */
6426
6542
 
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 };
6543
+ 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
6544
  //# sourceMappingURL=wizishop-angular-components.mjs.map