@wizishop/angular-components 14.4.4 → 14.4.6
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.
- package/esm2020/lib/components/radio/radio.component.mjs +2 -1
- package/esm2020/lib/components/selects/select-test/select.component.mjs +2 -2
- package/esm2020/lib/components/selects/select-test/value-change.service.mjs +2 -2
- package/esm2020/lib/pipes/call-component-function.pipe.mjs +23 -0
- package/esm2020/lib/pipes/shared-pipes.module.mjs +8 -4
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/wizishop-angular-components.mjs +31 -6
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +31 -6
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/selects/select-test/value-change.service.d.ts +2 -2
- package/lib/pipes/call-component-function.pipe.d.ts +18 -0
- package/lib/pipes/shared-pipes.module.d.ts +6 -5
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-14.4.6.tgz +0 -0
- package/wizishop-angular-components-14.4.4.tgz +0 -0
|
@@ -552,7 +552,7 @@ class ValueChangeService {
|
|
|
552
552
|
return;
|
|
553
553
|
}
|
|
554
554
|
const selectedOption = this.getSelectedOptionComponent();
|
|
555
|
-
this.selectedOptionContent = selectedOption?.getContentRef()
|
|
555
|
+
this.selectedOptionContent = selectedOption?.getContentRef();
|
|
556
556
|
}
|
|
557
557
|
getSelectedOptionComponent() {
|
|
558
558
|
return this.optionChildren.find((option) => option.selected);
|
|
@@ -1824,6 +1824,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
1824
1824
|
|
|
1825
1825
|
class RadioComponent {
|
|
1826
1826
|
constructor() {
|
|
1827
|
+
// ! refacto
|
|
1827
1828
|
this.label = '';
|
|
1828
1829
|
this.id = '';
|
|
1829
1830
|
this.alone = false;
|
|
@@ -4656,11 +4657,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
4656
4657
|
}]
|
|
4657
4658
|
}] });
|
|
4658
4659
|
|
|
4660
|
+
class CallComponentFunctionPipe {
|
|
4661
|
+
/**
|
|
4662
|
+
* Maps object to an arbitrary result through a plan-name function
|
|
4663
|
+
*
|
|
4664
|
+
* @param value an item to transform
|
|
4665
|
+
* @param mapper a mapping function
|
|
4666
|
+
* @param args arbitrary number of additional arguments
|
|
4667
|
+
*/
|
|
4668
|
+
transform(value, mapper, ...args) {
|
|
4669
|
+
return mapper(value, ...args);
|
|
4670
|
+
}
|
|
4671
|
+
}
|
|
4672
|
+
CallComponentFunctionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CallComponentFunctionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4673
|
+
CallComponentFunctionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.0.7", ngImport: i0, type: CallComponentFunctionPipe, name: "wacFn" });
|
|
4674
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: CallComponentFunctionPipe, decorators: [{
|
|
4675
|
+
type: Pipe,
|
|
4676
|
+
args: [{
|
|
4677
|
+
name: 'wacFn',
|
|
4678
|
+
}]
|
|
4679
|
+
}] });
|
|
4680
|
+
|
|
4659
4681
|
const exportedPipes = [
|
|
4660
4682
|
FormatObjectToRecursifTreePipe,
|
|
4661
4683
|
FormatObjectToSimpleTreePipe,
|
|
4662
4684
|
FilterOptionsPipe,
|
|
4663
|
-
FindOptionSelectedPipe
|
|
4685
|
+
FindOptionSelectedPipe,
|
|
4686
|
+
CallComponentFunctionPipe
|
|
4664
4687
|
];
|
|
4665
4688
|
const pipes = [
|
|
4666
4689
|
SelectFiltersPipe,
|
|
@@ -4672,11 +4695,13 @@ SharedPipes.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14
|
|
|
4672
4695
|
SharedPipes.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.7", ngImport: i0, type: SharedPipes, declarations: [FormatObjectToRecursifTreePipe,
|
|
4673
4696
|
FormatObjectToSimpleTreePipe,
|
|
4674
4697
|
FilterOptionsPipe,
|
|
4675
|
-
FindOptionSelectedPipe,
|
|
4698
|
+
FindOptionSelectedPipe,
|
|
4699
|
+
CallComponentFunctionPipe, SelectFiltersPipe,
|
|
4676
4700
|
AreAllOptionsSelectedPipe], imports: [CommonModule, FormsModule], exports: [FormatObjectToRecursifTreePipe,
|
|
4677
4701
|
FormatObjectToSimpleTreePipe,
|
|
4678
4702
|
FilterOptionsPipe,
|
|
4679
|
-
FindOptionSelectedPipe,
|
|
4703
|
+
FindOptionSelectedPipe,
|
|
4704
|
+
CallComponentFunctionPipe, SelectFiltersPipe,
|
|
4680
4705
|
AreAllOptionsSelectedPipe] });
|
|
4681
4706
|
SharedPipes.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: SharedPipes, imports: [CommonModule, FormsModule] });
|
|
4682
4707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: SharedPipes, decorators: [{
|
|
@@ -4775,7 +4800,7 @@ class SelectTestComponent extends SelectDirective {
|
|
|
4775
4800
|
this._required = value;
|
|
4776
4801
|
}
|
|
4777
4802
|
get selectedOptionContent() {
|
|
4778
|
-
return this.valueChangeService.selectedOptionContent;
|
|
4803
|
+
return this.valueChangeService.selectedOptionContent.nativeElement.innerHTML || undefined;
|
|
4779
4804
|
}
|
|
4780
4805
|
;
|
|
4781
4806
|
set keepPanelOpen(keepPanelOpen) {
|
|
@@ -6190,5 +6215,5 @@ class TableFiltersGroup extends NwbFilterGroup {
|
|
|
6190
6215
|
* Generated bundle index. Do not edit.
|
|
6191
6216
|
*/
|
|
6192
6217
|
|
|
6193
|
-
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 };
|
|
6218
|
+
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 };
|
|
6194
6219
|
//# sourceMappingURL=wizishop-angular-components.mjs.map
|