@wizishop/angular-components 14.2.2 → 14.2.4
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 +31 -0
- package/esm2020/lib/components/shared-components.module.mjs +8 -4
- package/esm2020/lib/components/summary/summary.component.mjs +41 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/wizishop-angular-components.mjs +45 -4
- package/fesm2015/wizishop-angular-components.mjs.map +1 -1
- package/fesm2020/wizishop-angular-components.mjs +45 -4
- package/fesm2020/wizishop-angular-components.mjs.map +1 -1
- package/lib/components/shared-components.module.d.ts +45 -44
- package/lib/components/summary/summary.component.d.ts +17 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/wizishop-angular-components-14.2.4.tgz +0 -0
- package/wizishop-angular-components-14.2.2.tgz +0 -0
|
@@ -5327,6 +5327,44 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImpor
|
|
|
5327
5327
|
}]
|
|
5328
5328
|
}] });
|
|
5329
5329
|
|
|
5330
|
+
;
|
|
5331
|
+
class SummaryComponent {
|
|
5332
|
+
constructor() {
|
|
5333
|
+
this._activeItem = 0;
|
|
5334
|
+
this.itemChanged = new EventEmitter();
|
|
5335
|
+
}
|
|
5336
|
+
set activeItem(activeItem) {
|
|
5337
|
+
this._activeItem = activeItem;
|
|
5338
|
+
}
|
|
5339
|
+
get activeItem() {
|
|
5340
|
+
return this._activeItem;
|
|
5341
|
+
}
|
|
5342
|
+
scrollToItem(i) {
|
|
5343
|
+
this._activeItem = i;
|
|
5344
|
+
this.itemChanged.emit(i);
|
|
5345
|
+
if (this.items[i].href) {
|
|
5346
|
+
const yOffset = -20;
|
|
5347
|
+
const element = window.document.getElementById(this.items[i].href);
|
|
5348
|
+
if (element) {
|
|
5349
|
+
const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset;
|
|
5350
|
+
window.scrollTo({ top: y, behavior: 'smooth' });
|
|
5351
|
+
}
|
|
5352
|
+
}
|
|
5353
|
+
}
|
|
5354
|
+
}
|
|
5355
|
+
SummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: SummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5356
|
+
SummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.7", type: SummaryComponent, selector: "wac-summary", inputs: { activeItem: "activeItem", items: "items" }, outputs: { itemChanged: "itemChanged" }, ngImport: i0, template: "<div class=\"wac-summary\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <p [ngClass]=\"{'active' : activeItem === i, 'item-link': item.href}\" (click)=\"scrollToItem(i)\">{{ item.label }}</p>\n </ng-container>\n</div>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
5357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.7", ngImport: i0, type: SummaryComponent, decorators: [{
|
|
5358
|
+
type: Component,
|
|
5359
|
+
args: [{ selector: 'wac-summary', encapsulation: ViewEncapsulation.None, template: "<div class=\"wac-summary\">\n <ng-container *ngFor=\"let item of items; let i = index\">\n <p [ngClass]=\"{'active' : activeItem === i, 'item-link': item.href}\" (click)=\"scrollToItem(i)\">{{ item.label }}</p>\n </ng-container>\n</div>\n" }]
|
|
5360
|
+
}], ctorParameters: function () { return []; }, propDecorators: { activeItem: [{
|
|
5361
|
+
type: Input
|
|
5362
|
+
}], items: [{
|
|
5363
|
+
type: Input
|
|
5364
|
+
}], itemChanged: [{
|
|
5365
|
+
type: Output
|
|
5366
|
+
}] } });
|
|
5367
|
+
|
|
5330
5368
|
const components = [
|
|
5331
5369
|
TagComponent,
|
|
5332
5370
|
TabComponent,
|
|
@@ -5385,7 +5423,8 @@ const components = [
|
|
|
5385
5423
|
MosaicComponent,
|
|
5386
5424
|
ContentWithButtonsComponent,
|
|
5387
5425
|
WrapperMultipleBlockComponent,
|
|
5388
|
-
DraganddropListComponent
|
|
5426
|
+
DraganddropListComponent,
|
|
5427
|
+
SummaryComponent
|
|
5389
5428
|
];
|
|
5390
5429
|
const exportsFromModule = [
|
|
5391
5430
|
PaginationComponent,
|
|
@@ -5463,7 +5502,8 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
5463
5502
|
MosaicComponent,
|
|
5464
5503
|
ContentWithButtonsComponent,
|
|
5465
5504
|
WrapperMultipleBlockComponent,
|
|
5466
|
-
DraganddropListComponent
|
|
5505
|
+
DraganddropListComponent,
|
|
5506
|
+
SummaryComponent], imports: [CommonModule,
|
|
5467
5507
|
FormsModule,
|
|
5468
5508
|
NwbAllModule, i1$3.TranslateModule, ReactiveFormsModule,
|
|
5469
5509
|
SharedDirectives,
|
|
@@ -5543,7 +5583,8 @@ SharedComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
|
|
|
5543
5583
|
MosaicComponent,
|
|
5544
5584
|
ContentWithButtonsComponent,
|
|
5545
5585
|
WrapperMultipleBlockComponent,
|
|
5546
|
-
DraganddropListComponent,
|
|
5586
|
+
DraganddropListComponent,
|
|
5587
|
+
SummaryComponent, PaginationComponent,
|
|
5547
5588
|
TableComponent,
|
|
5548
5589
|
TableColumn,
|
|
5549
5590
|
CheckBoxRow,
|
|
@@ -5662,5 +5703,5 @@ class TableFiltersGroup extends NwbFilterGroup {
|
|
|
5662
5703
|
* Generated bundle index. Do not edit.
|
|
5663
5704
|
*/
|
|
5664
5705
|
|
|
5665
|
-
export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BlockWithCheckboxComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CardPriceComponent, CheckBoxRow, CheckboxComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, DebounceKeyupDirective, DeleteComponent, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpansionExport, ExpansionModule, ExpansionPanelBase, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FilterOptionsPipe, FiltersComponent, FiltersTableService, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, SearchComponent, SelectComponent, SelectFiltersPipe, SelectInTextComponent, SelectOptionDirective, SelectSearchTriggerComponent, SelectTestComponent, SelectedListComponent, SeparatorComponent, SettingsComponent, SharedComponentsModule, SharedDirectives, SharedPipes, SnackbarComponent, StateComponent, SwitchComponent, TabComponent, TableColumn, TableColumnHeader, TableComponent, TableFiltersGroup, TableRow, TagComponent, TagLabelComponent, TextAreaComponent, TextComponent, TokenCheckComponent, TooltipComponent, TreeComponent, TreeModule, UploadComponent, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperMultipleBlockComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective };
|
|
5706
|
+
export { ACCORDION_ITEM, AbstractDebounceDirective, AccordionComponent, AlertComponent, AlertPopupComponent, AlertPopupModule, AlertPopupService, AreAllOptionsSelectedPipe, AutoHideDirective, BackComponent, BlockComponent, BlockWithCheckboxComponent, BreadcrumbsComponent, ButtonComponent, CalendarComponent, CardPriceComponent, CheckBoxRow, CheckboxComponent, ConfirmDeleteComponent, ContentWithButtonsComponent, DebounceKeyupDirective, DeleteComponent, DraganddropListComponent, DropdownComponent, EXPANSION_PANEL_HEADER, ExpansionExport, ExpansionModule, ExpansionPanelBase, ExpansionPanelComponent, ExpansionPanelDirective, ExpansionPanelHeaderComponent, ExpansionPanelHeaderDirective, FilterOptionsPipe, FiltersComponent, FiltersTableService, FormatObjectToRecursifTreePipe, FormatObjectToSimpleTreePipe, FreePopinComponent, H1Component, H2Component, H3Component, H4Component, HeaderPageComponent, HtmlContainer, ImageComponent, InfoComponent, InputComponent, InputSearchComponent, InputWithSelectComponent, KeypressEnterDirective, LabelComponent, LinkComponent, LoaderComponent, LogoComponent, MosaicComponent, MultipleSearchComponent, MultipleSearchPlusComponent, OptionCallToActionComponent, OptionComponent, OptionalDisableContainerComponent, PaginationComponent, PlaceholderComponent, PopinComponent, ProgressBarComponent, RadioComponent, SearchComponent, SelectComponent, 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, UploadComponent, VarDirective, WiziComponentsModule, WrapperBlocsComponent, WrapperComponent, WrapperMultipleBlockComponent, WrapperSidebarComponent, WzEditInPlaceComponent, ZindexToggleDirective };
|
|
5666
5707
|
//# sourceMappingURL=wizishop-angular-components.mjs.map
|