buildingproduct-library 0.2.76 → 0.2.78
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/assets/images/pdf-icon.svg +45 -0
- package/{buildingproduct-library-0.2.76.tgz → buildingproduct-library-0.2.78.tgz} +0 -0
- package/bundles/buildingproduct-library.umd.js +3471 -2489
- package/bundles/buildingproduct-library.umd.js.map +1 -1
- package/esm2015/lib/account-dropdown/account-dropdown.component.js +38 -4
- package/esm2015/lib/account-dropdown/account-dropdown.service.js +3 -3
- package/esm2015/lib/checkout/add-new-address/add-new-address.component.js +22 -13
- package/esm2015/lib/checkout/checkout.module.js +10 -2
- package/esm2015/lib/checkout/custom-checkout/custom-checkout.component.js +7 -28
- package/esm2015/lib/checkout/order-confirmation/order-confirmation.component.js +2 -3
- package/esm2015/lib/checkout/order-review/delivery-information/delivery-information.component.js +1 -1
- package/esm2015/lib/checkout/order-review/order-review-grid/order-review-grid.component.js +86 -16
- package/esm2015/lib/checkout/order-review/order-review-list/order-review-list.component.js +72 -15
- package/esm2015/lib/checkout/order-review/order-review.component.js +3 -27
- package/esm2015/lib/contact-us/contact-us.component.js +1 -1
- package/esm2015/lib/custom-cart/addto-saved-carts/addto-saved-carts.component.js +2 -2
- package/esm2015/lib/custom-cart/custom-cart.component.js +3 -27
- package/esm2015/lib/custom-cart/custom-cart.module.js +3 -3
- package/esm2015/lib/custom-mini-cart/custom-mini-cart.component.js +110 -52
- package/esm2015/lib/custom-mini-cart/custom-mini-cart.module.js +2 -2
- package/esm2015/lib/custom-navigation/custom-navigation.component.js +122 -0
- package/esm2015/lib/custom-navigation/custom-navigation.module.js +3 -3
- package/esm2015/lib/custom-order-details/custom-order-details.component.js +26 -21
- package/esm2015/lib/custom-order-details/custom-order-details.module.js +15 -7
- package/esm2015/lib/custom-order-details/download-popup/download-popup.component.js +1 -1
- package/esm2015/lib/custom-order-details/order-detail-grid/order-detail-grid.component.js +105 -22
- package/esm2015/lib/custom-order-details/order-detail-list/order-detail-list.component.js +89 -23
- package/esm2015/lib/custom-order-history/custom-order-history.component.js +49 -22
- package/esm2015/lib/custom-order-history/custom-order-history.module.js +10 -2
- package/esm2015/lib/custom-order-history/slider-progress/slider-progress.component.js +1 -1
- package/esm2015/lib/custom-saved-cart/custom-saved-cart-details/custom-save-cart-dtl/custom-save-cart-dtl.component.js +2 -2
- package/esm2015/lib/custom-saved-cart/custom-saved-cart-details/custom-saved-cart-details.module.js +2 -2
- package/esm2015/lib/custom-saved-cart/custom-saved-cart-details/saved-cart-details-action/saved-cart-details-action.component.js +4 -28
- package/esm2015/lib/custom-saved-cart/custom-saved-cart-details/saved-cart-details-overview/saved-cart-details-overview.component.js +1 -1
- package/esm2015/lib/custom-saved-cart/custom-saved-cart.component.js +6 -4
- package/esm2015/lib/custom-saved-cart/custom-saved-cart.module.js +2 -2
- package/esm2015/lib/custom-saved-cart/saved-cart.service.js +11 -2
- package/esm2015/lib/custom-search/custom-search.component.js +3 -3
- package/esm2015/lib/custom-user-account/custom-user-account.component.js +2 -2
- package/esm2015/lib/directives/custom-directives.module.js +1 -1
- package/esm2015/lib/directives/custom-paginatior.directive.js +101 -31
- package/esm2015/lib/find-store/find-store.component.js +2 -2
- package/esm2015/lib/help-support/help-support.component.js +1 -1
- package/esm2015/lib/my-account/account-dashboard/account-dashboard.component.js +2 -2
- package/esm2015/lib/my-account/account-statements/account-statements.component.js +2 -2
- package/esm2015/lib/my-account/invoice-credit/invoice-credit.component.js +51 -17
- package/esm2015/lib/my-account/my-account.component.js +2 -2
- package/esm2015/lib/my-account/my-account.module.js +11 -3
- package/esm2015/lib/my-team/my-team.component.js +25 -17
- package/esm2015/lib/my-team/my-team.module.js +11 -7
- package/esm2015/lib/services/endPointURL.js +6 -1
- package/esm2015/lib/services/user-account-detail-service.service.js +172 -4
- package/esm2015/lib/shared/CustomProduct.js +5 -4
- package/esm2015/lib/shared/active-saved-cart/active-saved-cart.component.js +20 -11
- package/esm2015/lib/shared/custom-breadcrum/custom-breadcrum.component.js +17 -7
- package/esm2015/lib/shared/custom-cart-detail/custom-cart-detail.component.js +1 -1
- package/esm2015/lib/shared/custom-cart-detail/custom-cart-grid/custom-cart-grid.component.js +198 -102
- package/esm2015/lib/shared/custom-cart-detail/custom-cart-list/custom-cart-list.component.js +64 -22
- package/esm2015/lib/shared/custom-cart-detail/custom-product-quantity-form/custom-product-quantity-form.component.js +129 -80
- package/esm2015/lib/shared/date-range-picker/date-range-picker.component.js +59 -9
- package/esm2015/lib/shared/regEx.validator.js +3 -1
- package/esm2015/lib/shared/saved-cart-popup/saved-cart-popup.component.js +1 -1
- package/esm2015/lib/shared/shared-components.module.js +21 -10
- package/esm2015/lib/shared/shared-download-order/shared-download-order.component.js +116 -31
- package/esm2015/lib/spa-custom-header.module.js +14 -13
- package/esm2015/public-api.js +2 -2
- package/fesm2015/buildingproduct-library.js +1996 -1081
- package/fesm2015/buildingproduct-library.js.map +1 -1
- package/lib/checkout/add-new-address/add-new-address.component.d.ts +1 -0
- package/lib/checkout/checkout.module.d.ts +12 -10
- package/lib/checkout/custom-checkout/custom-checkout.component.d.ts +2 -5
- package/lib/checkout/order-review/order-review-grid/order-review-grid.component.d.ts +8 -2
- package/lib/checkout/order-review/order-review-list/order-review-list.component.d.ts +5 -2
- package/lib/checkout/order-review/order-review.component.d.ts +1 -4
- package/lib/custom-cart/custom-cart.component.d.ts +1 -4
- package/lib/custom-mini-cart/custom-mini-cart.component.d.ts +11 -3
- package/lib/custom-navigation/{custom-navigation/custom-navigation.component.d.ts → custom-navigation.component.d.ts} +1 -1
- package/lib/custom-navigation/custom-navigation.module.d.ts +1 -1
- package/lib/custom-order-details/custom-order-details.component.d.ts +5 -2
- package/lib/custom-order-details/custom-order-details.module.d.ts +6 -4
- package/lib/custom-order-details/order-detail-grid/order-detail-grid.component.d.ts +14 -4
- package/lib/custom-order-details/order-detail-list/order-detail-list.component.d.ts +10 -3
- package/lib/custom-order-history/custom-order-history.component.d.ts +3 -0
- package/lib/custom-order-history/custom-order-history.module.d.ts +8 -6
- package/lib/custom-saved-cart/custom-saved-cart-details/saved-cart-details-action/saved-cart-details-action.component.d.ts +1 -4
- package/lib/custom-saved-cart/custom-saved-cart.component.d.ts +1 -0
- package/lib/custom-saved-cart/saved-cart.service.d.ts +1 -0
- package/lib/custom-search/custom-search.component.d.ts +1 -1
- package/lib/directives/custom-paginatior.directive.d.ts +6 -1
- package/lib/find-store/find-store.component.d.ts +1 -1
- package/lib/my-account/account-statements/account-statements.component.d.ts +1 -1
- package/lib/my-account/invoice-credit/invoice-credit.component.d.ts +8 -2
- package/lib/my-account/my-account.component.d.ts +1 -1
- package/lib/my-account/my-account.module.d.ts +7 -5
- package/lib/my-team/my-team.component.d.ts +2 -0
- package/lib/my-team/my-team.module.d.ts +7 -6
- package/lib/services/endPointURL.d.ts +3 -0
- package/lib/services/user-account-detail-service.service.d.ts +27 -1
- package/lib/shared/CustomProduct.d.ts +1 -0
- package/lib/shared/active-saved-cart/active-saved-cart.component.d.ts +3 -1
- package/lib/shared/custom-breadcrum/custom-breadcrum.component.d.ts +3 -1
- package/lib/shared/custom-cart-detail/custom-cart-grid/custom-cart-grid.component.d.ts +17 -9
- package/lib/shared/custom-cart-detail/custom-cart-list/custom-cart-list.component.d.ts +8 -6
- package/lib/shared/custom-cart-detail/custom-product-quantity-form/custom-product-quantity-form.component.d.ts +11 -3
- package/lib/shared/date-range-picker/date-range-picker.component.d.ts +11 -3
- package/lib/shared/regEx.validator.d.ts +2 -0
- package/lib/shared/shared-components.module.d.ts +10 -8
- package/lib/shared/shared-download-order/shared-download-order.component.d.ts +6 -4
- package/lib/spa-custom-header.module.d.ts +7 -6
- package/package.json +3 -1
- package/public-api.d.ts +1 -1
- package/esm2015/lib/custom-navigation/custom-navigation/custom-navigation.component.js +0 -121
- package/esm2015/lib/preference/preference.component.js +0 -19
- package/esm2015/lib/preference/preference.module.js +0 -45
- package/lib/preference/preference.component.d.ts +0 -8
- package/lib/preference/preference.module.d.ts +0 -10
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
1
2
|
import { AuthService } from '@spartacus/core';
|
|
2
3
|
import { UserAccountFacade } from '@spartacus/user/account/root';
|
|
3
4
|
import { BehaviorSubject } from "rxjs";
|
|
@@ -5,11 +6,36 @@ import * as i0 from "@angular/core";
|
|
|
5
6
|
export declare class UserAccountDetailServiceService {
|
|
6
7
|
private auth;
|
|
7
8
|
private userAccount;
|
|
9
|
+
private router;
|
|
8
10
|
env: any;
|
|
11
|
+
_isCreateInviteGroup: boolean;
|
|
12
|
+
_isViewOrdersGroup: boolean;
|
|
13
|
+
_isPricingGroup: boolean;
|
|
14
|
+
_isPlaceOrdersGroup: boolean;
|
|
15
|
+
_isAccountManagementGroup: boolean;
|
|
16
|
+
_isAccountOwnerGroup: boolean;
|
|
17
|
+
_isInvoiceStatement: boolean;
|
|
18
|
+
_isICart: boolean;
|
|
19
|
+
_currentEmail: any;
|
|
20
|
+
_isDataLoaded: BehaviorSubject<boolean>;
|
|
21
|
+
currentUID: any;
|
|
9
22
|
envData: BehaviorSubject<any>;
|
|
10
|
-
constructor(auth: AuthService, userAccount: UserAccountFacade, env: any);
|
|
23
|
+
constructor(auth: AuthService, userAccount: UserAccountFacade, router: Router, env: any);
|
|
24
|
+
initialize(): Promise<any>;
|
|
11
25
|
getSharedEnv(): any;
|
|
12
26
|
getUserAccount(): import("rxjs").Observable<import("@spartacus/user/account/root").User | undefined>;
|
|
27
|
+
getIsUserLoggedIn(): import("rxjs").Observable<boolean>;
|
|
28
|
+
setCheckPermissions(): void;
|
|
29
|
+
isAccountOwnerPermission(): boolean;
|
|
30
|
+
isCreateInviteGroupPermission(): Promise<boolean>;
|
|
31
|
+
isInvoiceStatementGroupPermission(): Promise<boolean>;
|
|
32
|
+
isPricingPermission(): Promise<boolean>;
|
|
33
|
+
isCartPermission(): Promise<boolean>;
|
|
34
|
+
isViewOrdersPermission(): Promise<boolean>;
|
|
35
|
+
isPlaceOrdersPermission(): Promise<boolean>;
|
|
36
|
+
navigateToHome(): void;
|
|
37
|
+
isAccountManagementPermission(): Promise<boolean>;
|
|
38
|
+
getCurrentEmail(): any;
|
|
13
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<UserAccountDetailServiceService, never>;
|
|
14
40
|
static ɵprov: i0.ɵɵInjectableDeclaration<UserAccountDetailServiceService>;
|
|
15
41
|
}
|
|
@@ -4,6 +4,7 @@ import { SavedCartService } from '@spartacus/cart/saved-cart/core';
|
|
|
4
4
|
import { RoutingService } from '@spartacus/core';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { SaveCartService } from '../../custom-saved-cart/save-cart.service';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class ActiveSavedCartComponent implements OnInit, OnChanges {
|
|
9
10
|
cd: ChangeDetectorRef;
|
|
@@ -11,6 +12,7 @@ export declare class ActiveSavedCartComponent implements OnInit, OnChanges {
|
|
|
11
12
|
routing: RoutingService;
|
|
12
13
|
private formBuilder;
|
|
13
14
|
private saveCart;
|
|
15
|
+
private router;
|
|
14
16
|
closebutton: any;
|
|
15
17
|
savedCartList: {
|
|
16
18
|
savedCarts: string;
|
|
@@ -43,7 +45,7 @@ export declare class ActiveSavedCartComponent implements OnInit, OnChanges {
|
|
|
43
45
|
selectedCartId: any;
|
|
44
46
|
isDeletePopup?: boolean;
|
|
45
47
|
closedPopup: EventEmitter<any>;
|
|
46
|
-
constructor(cd: ChangeDetectorRef, service: SaveCartService, routing: RoutingService, formBuilder: FormBuilder, saveCart: SavedCartService);
|
|
48
|
+
constructor(cd: ChangeDetectorRef, service: SaveCartService, routing: RoutingService, formBuilder: FormBuilder, saveCart: SavedCartService, router: Router);
|
|
47
49
|
ngOnChanges(changes: SimpleChanges): void;
|
|
48
50
|
ngOnInit(): void;
|
|
49
51
|
get f(): any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Title } from '@angular/platform-browser';
|
|
2
3
|
import { Router } from '@angular/router';
|
|
3
4
|
import { CmsBreadcrumbsComponent, CmsService, PageMetaService, TranslationService } from '@spartacus/core';
|
|
4
5
|
import { CmsComponentData, PageTitleComponent } from '@spartacus/storefront';
|
|
@@ -9,6 +10,7 @@ export declare class CustomBreadcrumComponent extends PageTitleComponent impleme
|
|
|
9
10
|
route: Router;
|
|
10
11
|
private cms;
|
|
11
12
|
private translation;
|
|
13
|
+
titleService: Title;
|
|
12
14
|
protected pageMetaService: PageMetaService;
|
|
13
15
|
crumbs$: Observable<any[]>;
|
|
14
16
|
pageState: any;
|
|
@@ -18,7 +20,7 @@ export declare class CustomBreadcrumComponent extends PageTitleComponent impleme
|
|
|
18
20
|
modalRef: any;
|
|
19
21
|
alreadyCalled: boolean;
|
|
20
22
|
customCrumbData?: any;
|
|
21
|
-
constructor(component: CmsComponentData<CmsBreadcrumbsComponent>, route: Router, cms: CmsService, translation: TranslationService, pageMetaService: PageMetaService);
|
|
23
|
+
constructor(component: CmsComponentData<CmsBreadcrumbsComponent>, route: Router, cms: CmsService, translation: TranslationService, titleService: Title, pageMetaService: PageMetaService);
|
|
22
24
|
ngOnInit(): void;
|
|
23
25
|
private setCrumbs;
|
|
24
26
|
goToHome(url: any): void;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { ActiveCartService, CmsService } from '@spartacus/core';
|
|
4
3
|
import { CartService } from '../../../services/cart.service';
|
|
5
|
-
import {
|
|
4
|
+
import { ActiveCartService, CmsService } from '@spartacus/core';
|
|
5
|
+
import { FormArray, FormBuilder } from '@angular/forms';
|
|
6
6
|
import { SavedCartDetailsService } from '../../../custom-saved-cart/custom-saved-cart-details/saved-cart-details.service';
|
|
7
7
|
import { ActivatedRoute } from '@angular/router';
|
|
8
|
+
import { NgxMasonryComponent } from 'ngx-masonry';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class CustomCartGridComponent implements OnInit, OnChanges {
|
|
10
11
|
private cartService;
|
|
@@ -25,6 +26,7 @@ export declare class CustomCartGridComponent implements OnInit, OnChanges {
|
|
|
25
26
|
isCardData: any;
|
|
26
27
|
updateCartEntry: EventEmitter<any>;
|
|
27
28
|
closeInviteModal: any;
|
|
29
|
+
masonry: NgxMasonryComponent;
|
|
28
30
|
isModalSelectedColor: any;
|
|
29
31
|
imageModalSrc: any;
|
|
30
32
|
selectedColour: any;
|
|
@@ -37,6 +39,8 @@ export declare class CustomCartGridComponent implements OnInit, OnChanges {
|
|
|
37
39
|
showToast: boolean;
|
|
38
40
|
cartPageData: boolean;
|
|
39
41
|
saveCardOrderId: any;
|
|
42
|
+
additionalColors: any;
|
|
43
|
+
additionalColorsId: any;
|
|
40
44
|
env: any;
|
|
41
45
|
environment: any;
|
|
42
46
|
constructor(cartService: CartService, cdr: ChangeDetectorRef, formBuilder: FormBuilder, activeCartService: ActiveCartService, cmsService: CmsService, savedCartService: SavedCartDetailsService, route: ActivatedRoute);
|
|
@@ -44,30 +48,34 @@ export declare class CustomCartGridComponent implements OnInit, OnChanges {
|
|
|
44
48
|
get cartForm(): FormArray;
|
|
45
49
|
hasCartDetails(): boolean;
|
|
46
50
|
updateDefaultCartDetails(): void;
|
|
47
|
-
getColours(cartDetails: any, index: number): void;
|
|
48
|
-
updateSelectedColourCode(code: any): void;
|
|
49
51
|
ngOnChanges(changes: SimpleChanges): void;
|
|
50
52
|
showHide(ind: number): void;
|
|
51
53
|
arrowHideShow(id: number): void;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
getClassifications(data: any): any;
|
|
55
|
+
getColourDetails(configInfo: any, type: any): any;
|
|
56
|
+
getColours(cartDetails: any, index: number, event: any): void;
|
|
57
|
+
updateSelectedColourCode(code: any): void;
|
|
58
|
+
modalSelectedColor(event: any, colour: any, ind: number, skuCode?: any): void;
|
|
54
59
|
addtionalModalSelectedColor(event: any, colour: any, ind: number): void;
|
|
55
|
-
proceedWithSubmit(color: any, ind: number): void;
|
|
60
|
+
proceedWithSubmit(cart: any, color: any, ind: number): void;
|
|
56
61
|
cancel(): void;
|
|
57
62
|
deleteEntry(entNumber: any): void;
|
|
63
|
+
reoladCartEntires(event: any): void;
|
|
58
64
|
isNullOrEmpty(value: any): boolean;
|
|
59
|
-
|
|
65
|
+
updateProductColor(cart: any, color: any, index: any, skuCode?: any): void;
|
|
66
|
+
updateCartDetails(cart: any, index: any, color?: any, skuCode?: any): void;
|
|
60
67
|
prodQtyErrors(index: any): any;
|
|
61
68
|
jobReferenceErrors(index: any): any;
|
|
62
69
|
isFormValid(index: any, cart: any): any;
|
|
63
70
|
updateCart(event: any, cart: any, index: any): void;
|
|
64
71
|
updateJobReference(event: any, cart: any, index: any): void;
|
|
65
|
-
reoladCartEntires(): void;
|
|
66
72
|
getImageDetails(cartDetails: any, thumbnail?: any): any;
|
|
67
73
|
viewImage(event: any, cartDetails: any): void;
|
|
68
74
|
getPdfLink(cartDetails: any): void;
|
|
69
75
|
hasImage(cartDetails: any): boolean;
|
|
70
76
|
closeToast(): void;
|
|
77
|
+
addMoreClicked(): void;
|
|
78
|
+
additionalColrs(cart: any, i: any): void;
|
|
71
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomCartGridComponent, never>;
|
|
72
80
|
static ɵcmp: i0.ɵɵComponentDeclaration<CustomCartGridComponent, "app-custom-cart-grid", never, { "additionalPara": "additionalPara"; "cartDetails": "cartDetails"; "isCardData": "isCardData"; }, { "updateCartEntry": "updateCartEntry"; }, never, never>;
|
|
73
81
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { BehaviorSubject } from "rxjs";
|
|
3
|
+
import { CartService } from "../../../services/cart.service";
|
|
3
4
|
import { ActiveCartService, CmsService } from "@spartacus/core";
|
|
4
5
|
import { FormArray, FormBuilder } from "@angular/forms";
|
|
5
|
-
import { CartService } from "../../../services/cart.service";
|
|
6
|
-
import { SavedCartDetailsService } from "../../../custom-saved-cart/custom-saved-cart-details/saved-cart-details.service";
|
|
7
6
|
import { ActivatedRoute } from "@angular/router";
|
|
7
|
+
import { SavedCartDetailsService } from "../../../custom-saved-cart/custom-saved-cart-details/saved-cart-details.service";
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class CustomCartListComponent implements OnInit, OnChanges {
|
|
10
10
|
private cartService;
|
|
@@ -44,17 +44,18 @@ export declare class CustomCartListComponent implements OnInit, OnChanges {
|
|
|
44
44
|
updateDefaultCartDetails(): void;
|
|
45
45
|
ngOnChanges(changes: SimpleChanges): void;
|
|
46
46
|
showHide(ind: number): void;
|
|
47
|
+
getColourDetails(configInfo: any, type: any): any;
|
|
47
48
|
getColours(cartDetails: any, index: number, event: any): void;
|
|
48
49
|
updateSelectedColourCode(code: any): void;
|
|
49
|
-
modalSelectedColor(event: any, colour: any, ind: number): void;
|
|
50
|
+
modalSelectedColor(event: any, colour: any, ind: number, skuCode?: any): void;
|
|
50
51
|
addtionalModalSelectedColor(event: any, colour: any, ind: number): void;
|
|
51
52
|
proceedWithSubmit(color: any, ind: number): void;
|
|
52
53
|
cancel(): void;
|
|
53
54
|
deleteEntry(entNumber: any): void;
|
|
54
|
-
reoladCartEntires(): void;
|
|
55
|
+
reoladCartEntires(event: any): void;
|
|
55
56
|
isNullOrEmpty(value: any): boolean;
|
|
56
|
-
updateProductColor(cart: any, color: any, index: any): void;
|
|
57
|
-
updateCartDetails(cart: any, index: any, color?: any): void;
|
|
57
|
+
updateProductColor(cart: any, color: any, index: any, skuCode?: any): void;
|
|
58
|
+
updateCartDetails(cart: any, index: any, color?: any, skuCode?: any): void;
|
|
58
59
|
prodQtyErrors(index: any): any;
|
|
59
60
|
jobReferenceErrors(index: any): any;
|
|
60
61
|
isFormValid(index: any, cart: any): any;
|
|
@@ -63,6 +64,7 @@ export declare class CustomCartListComponent implements OnInit, OnChanges {
|
|
|
63
64
|
getImageDetails(cartDetails: any, thumbnail?: any): any;
|
|
64
65
|
viewImage(event: any, cartDetails: any): void;
|
|
65
66
|
getPdfLink(cartDetails: any): void;
|
|
67
|
+
getClassifications(data: any): any;
|
|
66
68
|
hasImage(cartDetails: any): boolean;
|
|
67
69
|
closeToast(): void;
|
|
68
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomCartListComponent, never>;
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
2
2
|
import { CurrentProductService } from '@spartacus/storefront';
|
|
3
|
-
import { ActiveCartService, Product } from '@spartacus/core';
|
|
3
|
+
import { ActiveCartService, CmsService, Product, ProductService } from '@spartacus/core';
|
|
4
4
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import { FormArray, FormBuilder, FormGroup } from '@angular/forms';
|
|
6
6
|
import { CartService } from '../../../services/cart.service';
|
|
7
|
+
import { Router } from '@angular/router';
|
|
8
|
+
import { NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class CustomProductQuantityFormComponent implements OnInit, OnChanges {
|
|
9
11
|
private formBuilder;
|
|
10
12
|
private cdr;
|
|
11
13
|
private cartService;
|
|
14
|
+
private router;
|
|
15
|
+
private productService;
|
|
16
|
+
private cmsService;
|
|
17
|
+
private modalService;
|
|
12
18
|
private activeCartService;
|
|
13
19
|
private currentProductService;
|
|
14
20
|
env: any;
|
|
@@ -49,10 +55,12 @@ export declare class CustomProductQuantityFormComponent implements OnInit, OnCha
|
|
|
49
55
|
closeInviteModal: any;
|
|
50
56
|
closebutton: any;
|
|
51
57
|
updateCartEntires: EventEmitter<any>;
|
|
58
|
+
addMoreClicked: EventEmitter<any>;
|
|
52
59
|
screenWidth: any;
|
|
53
|
-
constructor(formBuilder: FormBuilder, cdr: ChangeDetectorRef, cartService: CartService, activeCartService: ActiveCartService, currentProductService: CurrentProductService);
|
|
60
|
+
constructor(formBuilder: FormBuilder, cdr: ChangeDetectorRef, cartService: CartService, router: Router, productService: ProductService, cmsService: CmsService, modalService: NgbModal, activeCartService: ActiveCartService, currentProductService: CurrentProductService);
|
|
54
61
|
ngOnInit(): void;
|
|
55
62
|
ngOnChanges(changes: SimpleChanges): void;
|
|
63
|
+
updateFormDetails(): void;
|
|
56
64
|
createProductForm(): void;
|
|
57
65
|
updateBundling(event: any): void;
|
|
58
66
|
isNullOrEmpty(value: any): boolean;
|
|
@@ -88,5 +96,5 @@ export declare class CustomProductQuantityFormComponent implements OnInit, OnCha
|
|
|
88
96
|
pad3Digits(value: any): any;
|
|
89
97
|
updateLenthValue(element: any): void;
|
|
90
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomProductQuantityFormComponent, never>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CustomProductQuantityFormComponent, "app-custom-product-quantity-form", never, { "hasBundle": "hasBundle"; "productCode": "productCode"; "productDetails": "productDetails"; "unitType": "unitType"; "accessoriesPrice": "accessoriesPrice"; "selectedColour": "selectedColour"; "cuttingValidation": "cuttingValidation"; "finishedAvailableColours": "finishedAvailableColours"; "isFinishedProduct": "isFinishedProduct"; "isFlashingProduct": "isFlashingProduct"; "listView": "listView"; }, { "updateCartEntires": "updateCartEntires"; }, never, never>;
|
|
99
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomProductQuantityFormComponent, "app-custom-product-quantity-form", never, { "hasBundle": "hasBundle"; "productCode": "productCode"; "productDetails": "productDetails"; "unitType": "unitType"; "accessoriesPrice": "accessoriesPrice"; "selectedColour": "selectedColour"; "cuttingValidation": "cuttingValidation"; "finishedAvailableColours": "finishedAvailableColours"; "isFinishedProduct": "isFinishedProduct"; "isFlashingProduct": "isFlashingProduct"; "listView": "listView"; }, { "updateCartEntires": "updateCartEntires"; "addMoreClicked": "addMoreClicked"; }, never, never>;
|
|
92
100
|
}
|
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, AfterViewInit, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, AfterViewInit, ElementRef, ChangeDetectorRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DateRangePickerComponent implements OnInit, AfterViewInit, ControlValueAccessor {
|
|
5
6
|
private _eref;
|
|
6
7
|
cd: ChangeDetectorRef;
|
|
8
|
+
private renderer;
|
|
9
|
+
isMobile: boolean;
|
|
10
|
+
isTablet: boolean;
|
|
11
|
+
isDesktop: boolean;
|
|
12
|
+
showWaitCursor: BehaviorSubject<boolean>;
|
|
7
13
|
selectedDateRange?: any;
|
|
8
14
|
selectedDateKey: string;
|
|
9
15
|
calendarPlaceholder: string;
|
|
@@ -13,10 +19,10 @@ export declare class DateRangePickerComponent implements OnInit, AfterViewInit,
|
|
|
13
19
|
selectedDate: EventEmitter<any>;
|
|
14
20
|
pickerDirective: any;
|
|
15
21
|
ranges: any;
|
|
16
|
-
constructor(_eref: ElementRef, cd: ChangeDetectorRef);
|
|
22
|
+
constructor(_eref: ElementRef, cd: ChangeDetectorRef, renderer: Renderer2);
|
|
17
23
|
ngOnInit(): void;
|
|
18
24
|
ngAfterViewInit(): void;
|
|
19
|
-
onClick(event:
|
|
25
|
+
onClick(event: MouseEvent): void;
|
|
20
26
|
openDatepicker(): void;
|
|
21
27
|
onChange: (e: Event) => void;
|
|
22
28
|
datesUpdated(eve: any): void;
|
|
@@ -26,6 +32,8 @@ export declare class DateRangePickerComponent implements OnInit, AfterViewInit,
|
|
|
26
32
|
registerOnTouched(fn: () => void): void;
|
|
27
33
|
setDisabledState(isDisabled: boolean): void;
|
|
28
34
|
onTypeChange: (val: any) => void;
|
|
35
|
+
onResize(event: any): void;
|
|
36
|
+
onPageRefresh(): void;
|
|
29
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
30
38
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "app-date-range-picker", never, { "selectedDateRange": "selectedDateRange"; }, { "selectedDate": "selectedDate"; }, never, never>;
|
|
31
39
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { ValidatorFn } from "@angular/forms";
|
|
2
2
|
export declare class RegexConstants {
|
|
3
3
|
static NUMBER_1_99: RegExp;
|
|
4
|
+
static NUMBER_1_999: RegExp;
|
|
5
|
+
static ANGLE_0_360: RegExp;
|
|
4
6
|
static DECIMAL_4_3: RegExp;
|
|
5
7
|
static BUNDLE_NAME: RegExp;
|
|
6
8
|
static JOB_REFERENCE: RegExp;
|
|
@@ -10,15 +10,17 @@ import * as i8 from "./date-range-picker/date-range-picker.component";
|
|
|
10
10
|
import * as i9 from "./shared-download-order/shared-download-order.component";
|
|
11
11
|
import * as i10 from "../pipes/custom-date-pipe.pipe";
|
|
12
12
|
import * as i11 from "@angular/common";
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@spartacus/
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "@angular/
|
|
17
|
-
import * as i16 from "@
|
|
18
|
-
import * as i17 from "@
|
|
19
|
-
import * as i18 from "
|
|
13
|
+
import * as i12 from "@angular/platform-browser/animations";
|
|
14
|
+
import * as i13 from "@spartacus/storefront";
|
|
15
|
+
import * as i14 from "@spartacus/core";
|
|
16
|
+
import * as i15 from "@angular/router";
|
|
17
|
+
import * as i16 from "@angular/forms";
|
|
18
|
+
import * as i17 from "@ng-bootstrap/ng-bootstrap";
|
|
19
|
+
import * as i18 from "@angular/material/radio";
|
|
20
|
+
import * as i19 from "ngx-masonry";
|
|
21
|
+
import * as i20 from "ngx-daterangepicker-material";
|
|
20
22
|
export declare class SharedComponentsModule {
|
|
21
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedComponentsModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof i1.CustomBreadcrumComponent, typeof i2.SavedCartPopupComponent, typeof i3.ActiveSavedCartComponent, typeof i4.CustomCartGridComponent, typeof i5.CustomCartListComponent, typeof i6.SplitPipe, typeof i7.CustomProductQuantityFormComponent, typeof i8.DateRangePickerComponent, typeof i9.SharedDownloadOrderComponent, typeof i10.CustomDatePipe], [typeof i11.CommonModule, typeof i12.MediaModule, typeof
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedComponentsModule, [typeof i1.CustomBreadcrumComponent, typeof i2.SavedCartPopupComponent, typeof i3.ActiveSavedCartComponent, typeof i4.CustomCartGridComponent, typeof i5.CustomCartListComponent, typeof i6.SplitPipe, typeof i7.CustomProductQuantityFormComponent, typeof i8.DateRangePickerComponent, typeof i9.SharedDownloadOrderComponent, typeof i10.CustomDatePipe], [typeof i11.CommonModule, typeof i12.BrowserAnimationsModule, typeof i13.MediaModule, typeof i13.IconModule, typeof i14.UrlModule, typeof i15.RouterModule, typeof i13.BreadcrumbModule, typeof i16.ReactiveFormsModule, typeof i17.NgbModule, typeof i16.FormsModule, typeof i18.MatRadioModule, typeof i17.NgbToastModule, typeof i19.NgxMasonryModule, typeof i20.NgxDaterangepickerMd], [typeof i1.CustomBreadcrumComponent, typeof i2.SavedCartPopupComponent, typeof i3.ActiveSavedCartComponent, typeof i4.CustomCartGridComponent, typeof i5.CustomCartListComponent, typeof i7.CustomProductQuantityFormComponent, typeof i8.DateRangePickerComponent, typeof i9.SharedDownloadOrderComponent, typeof i10.CustomDatePipe]>;
|
|
23
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedComponentsModule>;
|
|
24
26
|
}
|
|
@@ -10,8 +10,6 @@ export declare class SharedDownloadOrderComponent implements OnInit, OnDestroy {
|
|
|
10
10
|
protected orderFacade: OrderFacade;
|
|
11
11
|
private cartService;
|
|
12
12
|
showWaitCursor: BehaviorSubject<boolean>;
|
|
13
|
-
orderDetailsView: any;
|
|
14
|
-
cartDetailsView: any;
|
|
15
13
|
orderDetails: any;
|
|
16
14
|
cartDetails: any;
|
|
17
15
|
totalPrice: any;
|
|
@@ -32,7 +30,11 @@ export declare class SharedDownloadOrderComponent implements OnInit, OnDestroy {
|
|
|
32
30
|
getOrderDetails(divRef: any): void;
|
|
33
31
|
savePdf(divRef: any): void;
|
|
34
32
|
download(divRef: any): void;
|
|
35
|
-
|
|
33
|
+
isNullOrEmpty(value: any): boolean;
|
|
34
|
+
getColourDetails(configInfo: any, type: any): any;
|
|
35
|
+
getProductImage(cartDetails: any, thumbnail?: any): any;
|
|
36
|
+
hasColour(cartDetails: any): boolean;
|
|
37
|
+
getClassifications(data: any): any;
|
|
36
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDownloadOrderComponent, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SharedDownloadOrderComponent, "app-shared-download-order", never, { "
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SharedDownloadOrderComponent, "app-shared-download-order", never, { "isOrder": "isOrder"; }, {}, never, never>;
|
|
38
40
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { UserAccountDetailServiceService } from './services/user-account-detail-service.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
import * as i1 from "./spa-custom-header.component";
|
|
4
5
|
import * as i2 from "@angular/platform-browser";
|
|
@@ -16,13 +17,13 @@ import * as i13 from "./custom-search/custom-search.module";
|
|
|
16
17
|
import * as i14 from "@angular/common/http";
|
|
17
18
|
import * as i15 from "./custom-header-paragraph/custom-header-paragraph.module";
|
|
18
19
|
import * as i16 from "./contact-us/contact-us.module";
|
|
19
|
-
import * as i17 from "./
|
|
20
|
-
import * as i18 from "
|
|
21
|
-
import * as i19 from "@ngrx/store";
|
|
20
|
+
import * as i17 from "./custom-header-logo/custom-header-logo.module";
|
|
21
|
+
import * as i18 from "@ngrx/store";
|
|
22
22
|
export declare class SpaCustomHeaderModule {
|
|
23
|
-
|
|
23
|
+
private userService;
|
|
24
|
+
constructor(userService: UserAccountDetailServiceService, parentModule?: SpaCustomHeaderModule);
|
|
24
25
|
static forRoot(env: any): ModuleWithProviders<SpaCustomHeaderModule>;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpaCustomHeaderModule, [{ optional: true; skipSelf: true; }]>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SpaCustomHeaderModule, [typeof i1.SpaCustomHeaderComponent], [typeof i2.BrowserModule, typeof i3.CommonModule, typeof i4.MediaModule, typeof i4.IconModule, typeof i5.UrlModule, typeof i6.RouterModule, typeof i7.AccountDropdownModule, typeof i8.CustomMiniCartModule, typeof i9.LibNavigationModule, typeof i10.CustomUserAccountModule, typeof i11.HelpSupportModule, typeof i12.FindStoreModule, typeof i13.CustomSearchModule, typeof i14.HttpClientModule, typeof i15.CustomHeaderParagraphModule, typeof i16.ContactUsModule, typeof i17.
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpaCustomHeaderModule, [null, { optional: true; skipSelf: true; }]>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SpaCustomHeaderModule, [typeof i1.SpaCustomHeaderComponent], [typeof i2.BrowserModule, typeof i3.CommonModule, typeof i4.MediaModule, typeof i4.IconModule, typeof i5.UrlModule, typeof i6.RouterModule, typeof i7.AccountDropdownModule, typeof i8.CustomMiniCartModule, typeof i9.LibNavigationModule, typeof i10.CustomUserAccountModule, typeof i11.HelpSupportModule, typeof i12.FindStoreModule, typeof i13.CustomSearchModule, typeof i14.HttpClientModule, typeof i15.CustomHeaderParagraphModule, typeof i16.ContactUsModule, typeof i17.CustomHeaderLogoModule, typeof i18.StoreRootModule, typeof i5.ConfigModule], [typeof i1.SpaCustomHeaderComponent]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<SpaCustomHeaderModule>;
|
|
28
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "buildingproduct-library",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.78",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@agm/core": "^3.0.0-beta.0",
|
|
6
6
|
"@angular-devkit/build-angular": "~12.2.0",
|
|
@@ -70,7 +70,9 @@
|
|
|
70
70
|
"karma-jasmine": "~4.0.0",
|
|
71
71
|
"karma-jasmine-html-reporter": "~1.7.0",
|
|
72
72
|
"ng-packagr": "^12.2.7",
|
|
73
|
+
"masonry-layout": "^4.2.2",
|
|
73
74
|
"ngx-infinite-scroll": "^8.0.0",
|
|
75
|
+
"ngx-masonry": "^12.0.0",
|
|
74
76
|
"rxjs": "~6.6.0",
|
|
75
77
|
"ts-loader": "^6.0.4",
|
|
76
78
|
"typescript": "~4.3.5",
|
package/public-api.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export * from './lib/spa-custom-header.module';
|
|
|
4
4
|
export * from './lib/custom-mini-cart/custom-mini-cart.module';
|
|
5
5
|
export * from './lib/custom-mini-cart/custom-mini-cart.component';
|
|
6
6
|
export * from './lib/custom-navigation/custom-navigation.module';
|
|
7
|
-
export * from './lib/custom-navigation/custom-navigation
|
|
7
|
+
export * from './lib/custom-navigation/custom-navigation.component';
|
|
8
8
|
export * from './lib/account-dropdown/account-dropdown.component';
|
|
9
9
|
export * from './lib/account-dropdown/account-dropdown.module';
|
|
10
10
|
export * from './lib/my-team/my-team.component';
|