@wizishop/angular-components 15.1.8 → 15.1.10

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.
@@ -936,6 +936,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImpor
936
936
  type: Output
937
937
  }] } });
938
938
 
939
+ class ScrollToDirective {
940
+ constructor() {
941
+ this.scrollConfig = { behavior: "smooth", block: "start", inline: "nearest" };
942
+ this.cursor = 'pointer';
943
+ }
944
+ onClick() {
945
+ const element = document.getElementById(this.elementId);
946
+ element?.scrollIntoView(this.scrollConfig);
947
+ }
948
+ }
949
+ ScrollToDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ScrollToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
950
+ ScrollToDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.1", type: ScrollToDirective, isStandalone: true, selector: "[wacScrollTo]", inputs: { elementId: "elementId", scrollConfig: "scrollConfig" }, host: { listeners: { "click": "onClick()" }, properties: { "style.cursor": "this.cursor" } }, ngImport: i0 });
951
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: ScrollToDirective, decorators: [{
952
+ type: Directive,
953
+ args: [{
954
+ selector: '[wacScrollTo]',
955
+ standalone: true,
956
+ }]
957
+ }], propDecorators: { elementId: [{
958
+ type: Input
959
+ }], scrollConfig: [{
960
+ type: Input
961
+ }], onClick: [{
962
+ type: HostListener,
963
+ args: ['click']
964
+ }], cursor: [{
965
+ type: HostBinding,
966
+ args: ['style.cursor']
967
+ }] } });
968
+
939
969
  const directives$2 = [
940
970
  DebounceKeyupDirective,
941
971
  AbstractDebounceDirective,
@@ -964,7 +994,7 @@ SharedDirectives.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
964
994
  OnlyNumberDirective,
965
995
  TwoDigitDecimalNumberDirective,
966
996
  RadioDirective,
967
- RadioGroupDirective], imports: [CommonModule, FormsModule, CopyToClipBoardDirective], exports: [DebounceKeyupDirective,
997
+ RadioGroupDirective], imports: [CommonModule, FormsModule, CopyToClipBoardDirective, ScrollToDirective], exports: [DebounceKeyupDirective,
968
998
  AbstractDebounceDirective,
969
999
  AutoHideDirective,
970
1000
  ZindexToggleDirective,
@@ -975,14 +1005,14 @@ SharedDirectives.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versio
975
1005
  OnlyNumberDirective,
976
1006
  TwoDigitDecimalNumberDirective,
977
1007
  RadioDirective,
978
- RadioGroupDirective, CopyToClipBoardDirective] });
1008
+ RadioGroupDirective, CopyToClipBoardDirective, ScrollToDirective] });
979
1009
  SharedDirectives.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: SharedDirectives, imports: [CommonModule, FormsModule] });
980
1010
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: SharedDirectives, decorators: [{
981
1011
  type: NgModule,
982
1012
  args: [{
983
- imports: [CommonModule, FormsModule, CopyToClipBoardDirective],
1013
+ imports: [CommonModule, FormsModule, CopyToClipBoardDirective, ScrollToDirective],
984
1014
  declarations: directives$2,
985
- exports: [...directives$2, CopyToClipBoardDirective]
1015
+ exports: [...directives$2, CopyToClipBoardDirective, ScrollToDirective]
986
1016
  }]
987
1017
  }] });
988
1018
 
@@ -5230,13 +5260,11 @@ class BlockWithCheckboxComponent {
5230
5260
  this.selected = false;
5231
5261
  this.disabled = false;
5232
5262
  this.checkboxAction = new EventEmitter();
5263
+ this.randomLabelName = uuid();
5233
5264
  this.nameRadio = 'wacBlockCheckboxRadio';
5234
5265
  this.isFirst = false;
5235
5266
  this.opacity = '.45';
5236
5267
  }
5237
- ngOnInit() {
5238
- this.randomLabelName = 'radioBlock' + Math.random() * (900 - 700) + 700;
5239
- }
5240
5268
  eventSelected(event) {
5241
5269
  if (!this.disabled) {
5242
5270
  this.selected = event.target.checked;
@@ -6416,5 +6444,5 @@ const switchInOut = trigger('switchInOut', [
6416
6444
  * Generated bundle index. Do not edit.
6417
6445
  */
6418
6446
 
6419
- 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, LoaderModule, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, RadioDirective, RadioGroupDirective, 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, inOutX, inOutY, opacityAnimation, showFromBottom, showFromLeft, showFromRight, showFromTop, switchInOut, uuid };
6447
+ 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, LoaderModule, 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, inOutX, inOutY, opacityAnimation, showFromBottom, showFromLeft, showFromRight, showFromTop, switchInOut, uuid };
6420
6448
  //# sourceMappingURL=wizishop-angular-components.mjs.map