@wizishop/angular-components 14.4.3 → 14.4.5

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.
@@ -773,8 +773,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
773
773
  class TwoDigitDecimalNumberDirective {
774
774
  constructor(el) {
775
775
  this.el = el;
776
- this.decimalSeparator = ['.', ','];
777
- this.regex = new RegExp(/^\d+[.,]?\d{0,2}$/g); // user can put . or , char.
776
+ this.decimalSeparator = ['.', ',']; // user can put . or , char.
778
777
  // input also cannot start from , or .
779
778
  this.specialKeys = ['Backspace', 'Tab', 'End', 'Home', '-', 'ArrowLeft', 'ArrowRight', 'Del', 'Delete'];
780
779
  }
@@ -785,8 +784,8 @@ class TwoDigitDecimalNumberDirective {
785
784
  const current = this.el.nativeElement.value;
786
785
  const position = this.el.nativeElement.selectionStart;
787
786
  const next = [current.slice(0, position), event.key == 'Decimal' ? '.' : event.key, current.slice(position)].join('');
788
- const regex = new RegExp(`^\d+[${this.decimalSeparator.join('')}]?\d{0,2}$`, 'g');
789
- if (next && !String(next).match(regex)) {
787
+ const regex = new RegExp(`^\\d+[${this.decimalSeparator.join('')}]?\\d{0,2}$`, 'g');
788
+ if (next && !regex.test(next)) {
790
789
  event.preventDefault();
791
790
  }
792
791
  }
@@ -4657,11 +4656,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
4657
4656
  }]
4658
4657
  }] });
4659
4658
 
4659
+ class CallComponentFunctionPipe {
4660
+ /**
4661
+ * Maps object to an arbitrary result through a plan-name function
4662
+ *
4663
+ * @param value an item to transform
4664
+ * @param mapper a mapping function
4665
+ * @param args arbitrary number of additional arguments
4666
+ */
4667
+ transform(value, mapper, ...args) {
4668
+ return mapper(value, ...args);
4669
+ }
4670
+ }
4671
+ CallComponentFunctionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CallComponentFunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
4672
+ CallComponentFunctionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.7", ngImport: i0, type: CallComponentFunctionPipe, name: "wacFn" });
4673
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CallComponentFunctionPipe, decorators: [{
4674
+ type: Pipe,
4675
+ args: [{
4676
+ name: 'wacFn',
4677
+ }]
4678
+ }] });
4679
+
4660
4680
  const exportedPipes = [
4661
4681
  FormatObjectToRecursifTreePipe,
4662
4682
  FormatObjectToSimpleTreePipe,
4663
4683
  FilterOptionsPipe,
4664
- FindOptionSelectedPipe
4684
+ FindOptionSelectedPipe,
4685
+ CallComponentFunctionPipe
4665
4686
  ];
4666
4687
  const pipes = [
4667
4688
  SelectFiltersPipe,
@@ -4673,11 +4694,13 @@ SharedPipes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14
4673
4694
  SharedPipes.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.7", ngImport: i0, type: SharedPipes, declarations: [FormatObjectToRecursifTreePipe,
4674
4695
  FormatObjectToSimpleTreePipe,
4675
4696
  FilterOptionsPipe,
4676
- FindOptionSelectedPipe, SelectFiltersPipe,
4697
+ FindOptionSelectedPipe,
4698
+ CallComponentFunctionPipe, SelectFiltersPipe,
4677
4699
  AreAllOptionsSelectedPipe], imports: [CommonModule, FormsModule], exports: [FormatObjectToRecursifTreePipe,
4678
4700
  FormatObjectToSimpleTreePipe,
4679
4701
  FilterOptionsPipe,
4680
- FindOptionSelectedPipe, SelectFiltersPipe,
4702
+ FindOptionSelectedPipe,
4703
+ CallComponentFunctionPipe, SelectFiltersPipe,
4681
4704
  AreAllOptionsSelectedPipe] });
4682
4705
  SharedPipes.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: SharedPipes, imports: [CommonModule, FormsModule] });
4683
4706
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: SharedPipes, decorators: [{
@@ -6191,5 +6214,5 @@ class TableFiltersGroup extends NwbFilterGroup {
6191
6214
  * Generated bundle index. Do not edit.
6192
6215
  */
6193
6216
 
6194
- export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BlockSeparatorComponent, BlockTitleLegacyComponent, BlockWithCheckboxComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CardPriceComponent, ChargingBarComponent, CheckBoxRow, CheckboxComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, DebounceKeyupDirective, DeleteComponent, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpandedPanelComponent, ExpansionExport, ExpansionModule, ExpansionPanelBase, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FilterOptionsPipe, FiltersComponent, FiltersTableService, FindOptionSelectedPipe, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, GooglePreviewComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, SearchComponent, SelectComponent, SelectDirective, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectTestComponent, 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 };
6217
+ 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, DebounceKeyupDirective, DeleteComponent, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpandedPanelComponent, ExpansionExport, ExpansionModule, ExpansionPanelBase, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FilterOptionsPipe, FiltersComponent, FiltersTableService, FindOptionSelectedPipe, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, GooglePreviewComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OnlyNumberDirective, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, SearchComponent, SelectComponent, SelectDirective, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectTestComponent, 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 };
6195
6218
  //# sourceMappingURL=wizishop-angular-components.mjs.map