@wizishop/angular-components 15.1.15 → 15.1.19
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/angular-components.scss +50 -50
- package/esm2020/lib/components/alert-popup/alert-popup.service.mjs +6 -3
- package/esm2020/lib/components/select/select/select.directive.mjs +2 -2
- package/esm2020/lib/components/table/shared/distinct-until-table-filters-changed.mjs +21 -0
- package/esm2020/lib/components/table/table.component.mjs +1 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/wizishop-angular-components.mjs +25 -6
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +28 -6
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/table/shared/distinct-until-table-filters-changed.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-15.1.19.tgz +0 -0
- package/wizishop-angular-components-15.1.15.tgz +0 -0
|
@@ -8,7 +8,7 @@ import * as i2 from '@angular/forms';
|
|
|
8
8
|
import { NG_VALUE_ACCESSOR, FormsModule, FormGroupDirective, ReactiveFormsModule } from '@angular/forms';
|
|
9
9
|
import * as i4$1 from 'ngx-perfect-scrollbar';
|
|
10
10
|
import { PerfectScrollbarModule } from 'ngx-perfect-scrollbar';
|
|
11
|
-
import { Subject, merge, takeUntil as takeUntil$1, startWith, fromEvent, ReplaySubject, interval, map as map$1 } from 'rxjs';
|
|
11
|
+
import { Subject, merge, takeUntil as takeUntil$1, startWith, fromEvent, ReplaySubject, interval, map as map$1, distinctUntilChanged as distinctUntilChanged$1, tap as tap$1 } from 'rxjs';
|
|
12
12
|
import { takeUntil, debounceTime, distinctUntilChanged, tap, filter, map, takeWhile } from 'rxjs/operators';
|
|
13
13
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
14
14
|
import { TAB, DOWN_ARROW, UP_ARROW, LEFT_ARROW, RIGHT_ARROW, A, Z, ZERO, NINE, ENTER, hasModifierKey, ESCAPE } from '@angular/cdk/keycodes';
|
|
@@ -716,7 +716,7 @@ class SelectDirective {
|
|
|
716
716
|
this.valueChangeService.selectPreviousOption();
|
|
717
717
|
return;
|
|
718
718
|
}
|
|
719
|
-
if (isTyping) {
|
|
719
|
+
if (isTyping) { // todo add option to disable this feature, specially when inputs are inside the option
|
|
720
720
|
this.valueChangeService.searchOptionByFirstLetter(event.key);
|
|
721
721
|
return;
|
|
722
722
|
}
|
|
@@ -1541,7 +1541,6 @@ class TableComponent {
|
|
|
1541
1541
|
this.checkBoxRows.changes.subscribe(() => {
|
|
1542
1542
|
this.multiSelectionService.handle(this.checkBoxRows);
|
|
1543
1543
|
});
|
|
1544
|
-
console.log('this.tableRows', this.tableRows);
|
|
1545
1544
|
}
|
|
1546
1545
|
onToggleAllCheckBox(event) {
|
|
1547
1546
|
this.toggleAllCheckBox.emit(event.target.checked);
|
|
@@ -4418,9 +4417,12 @@ class AlertPopupService {
|
|
|
4418
4417
|
}
|
|
4419
4418
|
}
|
|
4420
4419
|
AlertPopupService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: AlertPopupService, deps: [{ token: DomService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4421
|
-
AlertPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: AlertPopupService });
|
|
4420
|
+
AlertPopupService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: AlertPopupService, providedIn: 'root' });
|
|
4422
4421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.1", ngImport: i0, type: AlertPopupService, decorators: [{
|
|
4423
|
-
type: Injectable
|
|
4422
|
+
type: Injectable,
|
|
4423
|
+
args: [{
|
|
4424
|
+
providedIn: 'root'
|
|
4425
|
+
}]
|
|
4424
4426
|
}], ctorParameters: function () { return [{ type: DomService }]; } });
|
|
4425
4427
|
|
|
4426
4428
|
class AlertPopupModule {
|
|
@@ -6287,6 +6289,26 @@ class TableFiltersGroup extends NwbFilterGroup {
|
|
|
6287
6289
|
}
|
|
6288
6290
|
}
|
|
6289
6291
|
|
|
6292
|
+
/**
|
|
6293
|
+
* Avoid to fetch data when totalItems change
|
|
6294
|
+
* @returns
|
|
6295
|
+
*/
|
|
6296
|
+
function distinctUntilTableFiltersChanged() {
|
|
6297
|
+
return distinctUntilChanged$1((previousFilters, currentFilters) => {
|
|
6298
|
+
return previousFilters.searchValue === currentFilters.searchValue &&
|
|
6299
|
+
previousFilters.sort === currentFilters.sort &&
|
|
6300
|
+
previousFilters.order === currentFilters.order &&
|
|
6301
|
+
previousFilters.currentPage === currentFilters.currentPage &&
|
|
6302
|
+
previousFilters.itemsPerPage === currentFilters.itemsPerPage;
|
|
6303
|
+
});
|
|
6304
|
+
}
|
|
6305
|
+
function updateTableFiltersTotalItems(tableFilters$, totalItems) {
|
|
6306
|
+
return tap$1((response) => tableFilters$.next({
|
|
6307
|
+
...tableFilters$.getValue(),
|
|
6308
|
+
totalItems: totalItems ?? response['totalItems']
|
|
6309
|
+
}));
|
|
6310
|
+
}
|
|
6311
|
+
|
|
6290
6312
|
const currentUsedSelectorForThisAnimation$3 = 'li, div';
|
|
6291
6313
|
const showFromBottom = trigger('showFromBottom', [
|
|
6292
6314
|
transition('* => *', [
|
|
@@ -6422,5 +6444,5 @@ const switchInOut = trigger('switchInOut', [
|
|
|
6422
6444
|
* Generated bundle index. Do not edit.
|
|
6423
6445
|
*/
|
|
6424
6446
|
|
|
6425
|
-
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, 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, 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 };
|
|
6426
6448
|
//# sourceMappingURL=wizishop-angular-components.mjs.map
|