simpo-component-library 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -24
- package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
- package/esm2022/lib/components/hover-elements/hover-elements.component.mjs +7 -5
- package/esm2022/lib/constants/business.constant.mjs +14 -0
- package/esm2022/lib/directive/background-directive.mjs +1 -1
- package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
- package/esm2022/lib/directive/border-directive.mjs +23 -11
- package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
- package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/color.directive.mjs +1 -1
- package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
- package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
- package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
- package/esm2022/lib/directive/corner-directive.mjs +1 -1
- package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
- package/esm2022/lib/directive/image-container.directive.mjs +1 -1
- package/esm2022/lib/directive/image-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/image-position.directive.mjs +1 -1
- package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/spacing-horizontal.directive.mjs +48 -0
- package/esm2022/lib/directive/sticky-directive.mjs +1 -1
- package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/text-size.directive.mjs +1 -1
- package/esm2022/lib/directive/wrap-containers.directive.mjs +31 -0
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +134 -28
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +104 -39
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +296 -61
- package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +13 -3
- package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +13 -4
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +212 -42
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +11 -2
- package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +11 -0
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +77 -10
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +13 -7
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +272 -39
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +252 -33
- package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +44 -17
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +300 -28
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +124 -0
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +183 -17
- package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +11 -3
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +2 -1
- package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +10 -1
- package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
- package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.model.mjs +1 -1
- package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
- package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
- package/esm2022/lib/elements/index.mjs +1 -1
- package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
- package/esm2022/lib/elements/text/text.component.mjs +3 -3
- package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
- package/esm2022/lib/pipes/amount.pipe.mjs +35 -0
- package/esm2022/lib/pipes/gender.pipe.mjs +36 -0
- package/esm2022/lib/sections/BaseSection.mjs +1 -1
- package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
- package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
- package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +9 -4
- package/esm2022/lib/sections/banner-grid-section/banner-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
- package/esm2022/lib/sections/blog-list/blog-list.component.mjs +3 -3
- package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
- package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +12 -12
- package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +1 -1
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
- package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
- package/esm2022/lib/sections/contact-us/contact-us.component.mjs +7 -5
- package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
- package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
- package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
- package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
- package/esm2022/lib/sections/footer-section/footer-section.component.mjs +3 -3
- package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
- package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
- package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
- package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
- package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
- package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +42 -18
- package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
- package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
- package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
- package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
- package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
- package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
- package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
- package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
- package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
- package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
- package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
- package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
- package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
- package/esm2022/lib/sections/text-section/text-section.component.mjs +2 -2
- package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-section/video-section.component.mjs +11 -3
- package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
- package/esm2022/lib/sections/view-blog/view-blog.component.mjs +3 -3
- package/esm2022/lib/services/cart.service.mjs +54 -120
- package/esm2022/lib/services/endUser.service.mjs +28 -0
- package/esm2022/lib/services/events.service.mjs +4 -1
- package/esm2022/lib/services/rest.service.mjs +58 -16
- package/esm2022/lib/services/storage.service.mjs +103 -35
- package/esm2022/lib/styles/index.mjs +8 -1
- package/esm2022/lib/styles/style.model.mjs +1 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/simpo-component-library.mjs +2535 -729
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/hover-elements/hover-elements.component.d.ts +2 -1
- package/lib/constants/business.constant.d.ts +11 -0
- package/lib/directive/spacing-horizontal.directive.d.ts +18 -0
- package/lib/directive/wrap-containers.directive.d.ts +14 -0
- package/lib/ecommerce/sections/address/address.component.d.ts +30 -9
- package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +31 -6
- package/lib/ecommerce/sections/cart/cart.component.d.ts +26 -11
- package/lib/ecommerce/sections/cart/cart.modal.d.ts +10 -1
- package/lib/ecommerce/sections/checkout/checkout.component.d.ts +2 -0
- package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +2 -0
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +27 -9
- package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +5 -1
- package/lib/ecommerce/sections/item-varient/item-varient.component.d.ts +5 -0
- package/lib/ecommerce/sections/order-details/order-details.component.d.ts +16 -2
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +3 -2
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +33 -4
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +4 -1
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +39 -3
- package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +2 -0
- package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +11 -1
- package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +52 -13
- package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +6 -8
- package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +34 -0
- package/lib/ecommerce/sections/verify-payment/verify-payment.model.d.ts +23 -0
- package/lib/ecommerce/sections/whislist/whislist.component.d.ts +22 -6
- package/lib/ecommerce/styles/OrderedItems.modal.d.ts +6 -2
- package/lib/ecommerce/styles/cart.modal.d.ts +1 -0
- package/lib/ecommerce/styles/product.modal.d.ts +4 -0
- package/lib/ecommerce/styles/user.modal.d.ts +3 -3
- package/lib/pipes/amount.pipe.d.ts +7 -0
- package/lib/pipes/gender.pipe.d.ts +8 -0
- package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +1 -0
- package/lib/sections/banner-grid-section/banner-grid-section.model.d.ts +1 -0
- package/lib/sections/carousel-banner/carousel-banner.component.d.ts +7 -5
- package/lib/sections/carousel-banner/carousel-banner.model.d.ts +41 -26
- package/lib/sections/navbar-section/navbar-section.component.d.ts +6 -1
- package/lib/sections/navbar-section/navbar-section.model.d.ts +1 -1
- package/lib/sections/video-section/video-section.component.d.ts +4 -2
- package/lib/services/cart.service.d.ts +13 -8
- package/lib/services/endUser.service.d.ts +13 -0
- package/lib/services/events.service.d.ts +5 -2
- package/lib/services/rest.service.d.ts +16 -2
- package/lib/services/storage.service.d.ts +11 -44
- package/lib/styles/index.d.ts +6 -0
- package/lib/styles/style.model.d.ts +4 -1
- package/lib/styles/types.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/esm2022/lib/ecommerce/json/user-cart.json +0 -40
- package/esm2022/lib/ecommerce/json/user-details.json +0 -15
- package/esm2022/lib/ecommerce/json/user-favourite.json +0 -32
- package/simpo-component-library-1.5.0.tgz +0 -0
@@ -1,8 +1,9 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component, Input } from '@angular/core';
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
3
3
|
import { MatIcon } from '@angular/material/icon';
|
4
4
|
import { SimpoComponentModule } from '../../../components/index';
|
5
5
|
import { TimelineModule } from 'primeng/timeline';
|
6
|
+
import { BUSINESS_CONSTANTS } from '../../../constants/business.constant';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
import * as i1 from "../../../services/events.service";
|
8
9
|
import * as i2 from "@angular/common";
|
@@ -12,21 +13,82 @@ import * as i5 from "primeng/api";
|
|
12
13
|
export class OrderDetailsComponent {
|
13
14
|
constructor(_eventService) {
|
14
15
|
this._eventService = _eventService;
|
16
|
+
this.goBackEmitter = new EventEmitter();
|
15
17
|
this.isLoading = false;
|
16
|
-
this.orderTimiline = [
|
17
|
-
{ icon: "widgets", name: "Order Placed", desc: "Your order is successful placed track your order" },
|
18
|
-
{ icon: "local_shipping", name: "To be Shipped", desc: "Your order is successful placed track your order" },
|
19
|
-
{ icon: "inbox", name: "To be Delivered", desc: "Your order is successful placed track your order" },
|
20
|
-
];
|
18
|
+
this.orderTimiline = [];
|
21
19
|
}
|
22
20
|
ngOnInit() {
|
23
|
-
|
21
|
+
this.styles = this.data?.styles;
|
22
|
+
console.log(this.orderDetailData);
|
23
|
+
this.orderTimiline = this.orderDetailData?.brandOrderDetails?.[0]?.timeLineList?.map((timeline) => {
|
24
|
+
return {
|
25
|
+
icon: this.getIcon(timeline.orderStatus),
|
26
|
+
name: timeline.title,
|
27
|
+
desc: timeline.body
|
28
|
+
};
|
29
|
+
});
|
24
30
|
this._eventService.showLoadingScreen.subscribe((response) => {
|
25
31
|
this.isLoading = response;
|
26
32
|
});
|
27
33
|
}
|
34
|
+
getIcon(type) {
|
35
|
+
switch (type) {
|
36
|
+
case "ORDER_PLACED":
|
37
|
+
case "ORDER_CONFIRMED":
|
38
|
+
return "widgets";
|
39
|
+
case "DISPATCHED":
|
40
|
+
case "IN_TRANSIT":
|
41
|
+
case "OUT_FOR_DELIVERY":
|
42
|
+
return "local_shipping";
|
43
|
+
case "DELIVERED":
|
44
|
+
return "inbox";
|
45
|
+
case "CANCELLED":
|
46
|
+
return "cancel";
|
47
|
+
}
|
48
|
+
}
|
49
|
+
goBack() {
|
50
|
+
this.goBackEmitter.emit();
|
51
|
+
}
|
52
|
+
get getCardBGColor() {
|
53
|
+
return this.getComplementColor(this.styles?.background.color ?? "#00000");
|
54
|
+
}
|
55
|
+
get isMobile() {
|
56
|
+
return window.innerWidth <= 475;
|
57
|
+
}
|
58
|
+
getSupportingColor(bgColor) {
|
59
|
+
return this.getComplementColor(bgColor);
|
60
|
+
}
|
61
|
+
getComplementColor(hexColor) {
|
62
|
+
if (hexColor.length <= 4)
|
63
|
+
hexColor = this.convertHEX(hexColor);
|
64
|
+
hexColor = hexColor.replace(/^#/, '');
|
65
|
+
let r = parseInt(hexColor.substring(0, 2), 16);
|
66
|
+
let g = parseInt(hexColor.substring(2, 4), 16);
|
67
|
+
let b = parseInt(hexColor.substring(4, 6), 16);
|
68
|
+
r = 255 - r;
|
69
|
+
g = 255 - g;
|
70
|
+
b = 255 - b;
|
71
|
+
let compHex = `#${r.toString(16).padStart(2, '0')}${g.toString(16).padStart(2, '0')}${b.toString(16).padStart(2, '0')}`;
|
72
|
+
return compHex.toUpperCase();
|
73
|
+
}
|
74
|
+
convertHEX(hexColor) {
|
75
|
+
hexColor = hexColor.replace(/^#/, '');
|
76
|
+
let color = "#";
|
77
|
+
for (let i = 0; i < 3; i++)
|
78
|
+
color += (hexColor[i] + hexColor[i + 1]);
|
79
|
+
return color;
|
80
|
+
}
|
81
|
+
get currency() {
|
82
|
+
return BUSINESS_CONSTANTS.CURRENCY;
|
83
|
+
}
|
84
|
+
get canCancelOrder() {
|
85
|
+
return this.orderTimiline?.length == 1;
|
86
|
+
}
|
87
|
+
get orderAddress() {
|
88
|
+
return this.orderDetailData?.addressDetails?.addressLine1 + ', ' + this.orderDetailData?.addressDetails?.addressLine2 + ', ' + this.orderDetailData?.addressDetails?.localityName + ', ' + this.orderDetailData?.addressDetails?.cityName + ', ' + this.orderDetailData?.addressDetails?.stateName;
|
89
|
+
}
|
28
90
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: OrderDetailsComponent, deps: [{ token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Component }); }
|
29
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: OrderDetailsComponent, isStandalone: true, selector: "simpo-order-details", inputs: { responseData: "responseData", data: "data", index: "index", edit: "edit", delete: "delete" }, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading\">\
|
91
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: OrderDetailsComponent, isStandalone: true, selector: "simpo-order-details", inputs: { responseData: "responseData", data: "data", index: "index", edit: "edit", delete: "delete", orderDetailData: "orderDetailData" }, outputs: { goBackEmitter: "goBackEmitter" }, ngImport: i0, template: "<ng-container *ngIf=\"!isLoading\">\n <section class=\"d-flex justify-content-between main-section\" [style.flexDirection]=\"isMobile ? 'column' : 'row'\" [style.width.vw]=\"isMobile ? '100' : '65'\" style=\"margin: auto;\">\n <div class=\"left\" [style.width.%]=\"isMobile ? '90' : '70'\">\n <h1 class=\"fs-3 fw-normal mb-3 d-flex align-items-center onlyDesktop position-relative\" style=\"left: -35px;\">\n <mat-icon style=\"cursor: pointer;\" (click)=\"goBack()\">keyboard_arrow_left</mat-icon>\n <span>Order Details</span>\n </h1>\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"d-flex flex-column\">\n <span class=\"fs-5\">Order {{ orderDetailData?.orderNum }}</span>\n <span class=\"fs-6\">{{ orderDetailData?.createdTimeStamp | date: 'medium' }}, {{ orderDetailData?.brandOrderDetails?.[0]?.orderedItems.length }} items | <span [innerHTML]=\"currency\"></span> {{orderDetailData?.brandOrderDetails?.[0]?.billDetails?.totalGrossValue}}</span>\n </div>\n <span class=\"fw-bold fs-5\">{{orderDetailData?.brandOrderDetails?.[0]?.businessName | titlecase}}</span>\n </div>\n <ng-container *ngIf=\"!isMobile\">\n <ng-container *ngTemplateOutlet=\"timelineContainer\"></ng-container>\n </ng-container>\n <div>\n <div *ngFor=\"let item of orderDetailData?.brandOrderDetails?.[0]?.orderedItems\" class=\"d-flex mb-2\" style=\"gap: 10px; width: 100%;\">\n <img loading=\"lazy\" onerror=\"this.src='https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" [src]=\"item.imgUrl\" alt=\"\" style=\"height: 85px;width: 85px; border-radius: 5px;\">\n <div class=\"d-flex flex-column justify-content-center\" style=\"gap: 6px; width: 89%;\">\n <span class=\"fw-bold fs-6\">{{item.itemName}}</span>\n <!-- <span class=\"fs-6\">Size: XS</span> -->\n <div class=\"d-flex justify-content-between fs-6\">\n <span>{{item.quantity}} X <span [innerHTML]=\"currency\"></span> <span class=\"fw-bold\">{{(item.discountedPrice) | number: '1.0-2'}}</span></span>\n <span> <span [innerHTML]=\"currency\"></span> <span class=\"fw-bold\">{{(item.discountedPrice * item.quantity) | number: '1.0-2'}}</span></span>\n </div>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"isMobile\">\n <ng-container *ngTemplateOutlet=\"timelineContainer\"></ng-container>\n </ng-container>\n <div class=\"fs-6\">\n <div class=\"d-flex justify-content-between my-2\">\n <span class=\"fw-normal\">Item Total</span>\n <span class=\"fw-bold\"><span [innerHTML]=\"currency\"></span> {{orderDetailData?.billDetails?.totalNetValue | number:'1.0-2'}}</span>\n </div>\n <div class=\"d-flex justify-content-between my-2\">\n <span class=\"fw-normal\">Total Tax</span>\n <span class=\"fw-bold\"><span [innerHTML]=\"currency\"></span> {{orderDetailData?.billDetails?.totalTax | number:'1.0-2'}}</span>\n </div>\n\n <div class=\"d-flex justify-content-between my-2\">\n <span>Delivery</span>\n <span>FREE</span>\n </div>\n\n <div class=\"d-flex justify-content-between my-2\">\n <span class=\"fw-normal\">Grand Total</span>\n <span class=\"fw-bold\"><span [innerHTML]=\"currency\"></span> {{orderDetailData?.billDetails?.totalGrossValue | number:'1.0-2'}}</span>\n </div>\n </div>\n </div>\n <div class=\"right\" style=\"width: 28%;\" [style.width.%]=\"isMobile ? '90' : '28'\" [style.background]=\"getCardBGColor\">\n <h1 class=\"mb-3 fs-5\">User Details</h1>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px;\" [style.color]=\"getSupportingColor(getCardBGColor)\">Name:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">{{orderDetailData?.addressDetails?.receiverName}}</span>\n </div>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px\" [style.color]=\"getSupportingColor(getCardBGColor)\">Phone:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">{{ orderDetailData?.addressDetails?.receiverPhone }}</span>\n </div>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px\" [style.color]=\"getSupportingColor(getCardBGColor)\">Address:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">{{ orderAddress }}</span>\n </div>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px\" [style.color]=\"getSupportingColor(getCardBGColor)\">Payment:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">Manual Payment</span>\n </div>\n <a href=\"\">Track Order</a>\n </div>\n </section>\n</ng-container>\n\n<ng-template #timelineContainer>\n <hr />\n <div class=\"timeline\">\n <p-timeline [value]=\"orderTimiline\">\n <ng-template pTemplate=\"content\" let-event>\n <div class=\"d-flex time-line\">\n <mat-icon style=\"margin-right: 10px;\">{{ event.icon }}</mat-icon>\n <div class=\"d-flex flex-column ml-2\">\n <span class=\"fw-normal fs-6\">{{ event.name.replaceAll(\"_\", \" \") }}</span>\n <div class=\"fs-6 \">{{event.body.replaceAll(\"_\", \" \")}}</div>\n <div class=\"action-btn\">\n <button *ngIf=\"canCancelOrder\">Cancel Order</button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-timeline>\n </div>\n <hr />\n</ng-template>\n\n<ngx-skeleton-loader *ngIf=\"isLoading\" count=\"1\" appearance=\"circle\" [theme]=\"{\n width: '100%',\n height: '40vh',\n 'border-radius': '10px',\n 'position': 'relative',\n 'right': '5px'\n }\">\n </ngx-skeleton-loader>\n", styles: [".right{height:250px;padding:15px;background-color:#f8f8f8;border-radius:8px}hr{border-top-width:2px;margin:15px 0}.action-btn>button{font-size:14px!important;border:none;width:fit-content!important;margin-top:5px;border-radius:3px;padding:5px 10px;background-color:tomato;color:#fff}.mat-icon{height:30px;width:30px;font-size:30px}.timeline{margin:25px 0}.onlyMobile{display:none}@media only screen and (max-width: 475px){.onlyDesktop{display:none!important}.onlyMobile{display:block}.mat-icon{width:46px}.time-line{padding-bottom:6px}.right{width:92%!important;margin-bottom:4px!important;height:auto!important;padding:15px 0!important}.main-section,.left{width:100%!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i2.DecimalPipe, name: "number" }, { kind: "pipe", type: i2.TitleCasePipe, name: "titlecase" }, { kind: "pipe", type: i2.DatePipe, name: "date" }, { kind: "ngmodule", type: SimpoComponentModule }, { kind: "component", type: i3.NgxSkeletonLoaderComponent, selector: "ngx-skeleton-loader", inputs: ["count", "loadingText", "appearance", "animation", "ariaLabel", "theme"] }, { kind: "ngmodule", type: TimelineModule }, { kind: "component", type: i4.Timeline, selector: "p-timeline", inputs: ["value", "style", "styleClass", "align", "layout"] }, { kind: "directive", type: i5.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
30
92
|
}
|
31
93
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: OrderDetailsComponent, decorators: [{
|
32
94
|
type: Component,
|
@@ -35,7 +97,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
35
97
|
SimpoComponentModule,
|
36
98
|
TimelineModule,
|
37
99
|
MatIcon
|
38
|
-
], template: "<ng-container *ngIf=\"!isLoading\">\
|
100
|
+
], template: "<ng-container *ngIf=\"!isLoading\">\n <section class=\"d-flex justify-content-between main-section\" [style.flexDirection]=\"isMobile ? 'column' : 'row'\" [style.width.vw]=\"isMobile ? '100' : '65'\" style=\"margin: auto;\">\n <div class=\"left\" [style.width.%]=\"isMobile ? '90' : '70'\">\n <h1 class=\"fs-3 fw-normal mb-3 d-flex align-items-center onlyDesktop position-relative\" style=\"left: -35px;\">\n <mat-icon style=\"cursor: pointer;\" (click)=\"goBack()\">keyboard_arrow_left</mat-icon>\n <span>Order Details</span>\n </h1>\n <div class=\"d-flex justify-content-between align-items-end\">\n <div class=\"d-flex flex-column\">\n <span class=\"fs-5\">Order {{ orderDetailData?.orderNum }}</span>\n <span class=\"fs-6\">{{ orderDetailData?.createdTimeStamp | date: 'medium' }}, {{ orderDetailData?.brandOrderDetails?.[0]?.orderedItems.length }} items | <span [innerHTML]=\"currency\"></span> {{orderDetailData?.brandOrderDetails?.[0]?.billDetails?.totalGrossValue}}</span>\n </div>\n <span class=\"fw-bold fs-5\">{{orderDetailData?.brandOrderDetails?.[0]?.businessName | titlecase}}</span>\n </div>\n <ng-container *ngIf=\"!isMobile\">\n <ng-container *ngTemplateOutlet=\"timelineContainer\"></ng-container>\n </ng-container>\n <div>\n <div *ngFor=\"let item of orderDetailData?.brandOrderDetails?.[0]?.orderedItems\" class=\"d-flex mb-2\" style=\"gap: 10px; width: 100%;\">\n <img loading=\"lazy\" onerror=\"this.src='https://i.postimg.cc/hPS2JpV0/no-image-available.jpg'\" [src]=\"item.imgUrl\" alt=\"\" style=\"height: 85px;width: 85px; border-radius: 5px;\">\n <div class=\"d-flex flex-column justify-content-center\" style=\"gap: 6px; width: 89%;\">\n <span class=\"fw-bold fs-6\">{{item.itemName}}</span>\n <!-- <span class=\"fs-6\">Size: XS</span> -->\n <div class=\"d-flex justify-content-between fs-6\">\n <span>{{item.quantity}} X <span [innerHTML]=\"currency\"></span> <span class=\"fw-bold\">{{(item.discountedPrice) | number: '1.0-2'}}</span></span>\n <span> <span [innerHTML]=\"currency\"></span> <span class=\"fw-bold\">{{(item.discountedPrice * item.quantity) | number: '1.0-2'}}</span></span>\n </div>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"isMobile\">\n <ng-container *ngTemplateOutlet=\"timelineContainer\"></ng-container>\n </ng-container>\n <div class=\"fs-6\">\n <div class=\"d-flex justify-content-between my-2\">\n <span class=\"fw-normal\">Item Total</span>\n <span class=\"fw-bold\"><span [innerHTML]=\"currency\"></span> {{orderDetailData?.billDetails?.totalNetValue | number:'1.0-2'}}</span>\n </div>\n <div class=\"d-flex justify-content-between my-2\">\n <span class=\"fw-normal\">Total Tax</span>\n <span class=\"fw-bold\"><span [innerHTML]=\"currency\"></span> {{orderDetailData?.billDetails?.totalTax | number:'1.0-2'}}</span>\n </div>\n\n <div class=\"d-flex justify-content-between my-2\">\n <span>Delivery</span>\n <span>FREE</span>\n </div>\n\n <div class=\"d-flex justify-content-between my-2\">\n <span class=\"fw-normal\">Grand Total</span>\n <span class=\"fw-bold\"><span [innerHTML]=\"currency\"></span> {{orderDetailData?.billDetails?.totalGrossValue | number:'1.0-2'}}</span>\n </div>\n </div>\n </div>\n <div class=\"right\" style=\"width: 28%;\" [style.width.%]=\"isMobile ? '90' : '28'\" [style.background]=\"getCardBGColor\">\n <h1 class=\"mb-3 fs-5\">User Details</h1>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px;\" [style.color]=\"getSupportingColor(getCardBGColor)\">Name:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">{{orderDetailData?.addressDetails?.receiverName}}</span>\n </div>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px\" [style.color]=\"getSupportingColor(getCardBGColor)\">Phone:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">{{ orderDetailData?.addressDetails?.receiverPhone }}</span>\n </div>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px\" [style.color]=\"getSupportingColor(getCardBGColor)\">Address:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">{{ orderAddress }}</span>\n </div>\n <div class=\"my-2 fs-6\">\n <span style=\"margin-right: 10px\" [style.color]=\"getSupportingColor(getCardBGColor)\">Payment:</span>\n <span class=\"fw-bold pl-2\" [style.color]=\"getSupportingColor(getCardBGColor)\">Manual Payment</span>\n </div>\n <a href=\"\">Track Order</a>\n </div>\n </section>\n</ng-container>\n\n<ng-template #timelineContainer>\n <hr />\n <div class=\"timeline\">\n <p-timeline [value]=\"orderTimiline\">\n <ng-template pTemplate=\"content\" let-event>\n <div class=\"d-flex time-line\">\n <mat-icon style=\"margin-right: 10px;\">{{ event.icon }}</mat-icon>\n <div class=\"d-flex flex-column ml-2\">\n <span class=\"fw-normal fs-6\">{{ event.name.replaceAll(\"_\", \" \") }}</span>\n <div class=\"fs-6 \">{{event.body.replaceAll(\"_\", \" \")}}</div>\n <div class=\"action-btn\">\n <button *ngIf=\"canCancelOrder\">Cancel Order</button>\n </div>\n </div>\n </div>\n </ng-template>\n </p-timeline>\n </div>\n <hr />\n</ng-template>\n\n<ngx-skeleton-loader *ngIf=\"isLoading\" count=\"1\" appearance=\"circle\" [theme]=\"{\n width: '100%',\n height: '40vh',\n 'border-radius': '10px',\n 'position': 'relative',\n 'right': '5px'\n }\">\n </ngx-skeleton-loader>\n", styles: [".right{height:250px;padding:15px;background-color:#f8f8f8;border-radius:8px}hr{border-top-width:2px;margin:15px 0}.action-btn>button{font-size:14px!important;border:none;width:fit-content!important;margin-top:5px;border-radius:3px;padding:5px 10px;background-color:tomato;color:#fff}.mat-icon{height:30px;width:30px;font-size:30px}.timeline{margin:25px 0}.onlyMobile{display:none}@media only screen and (max-width: 475px){.onlyDesktop{display:none!important}.onlyMobile{display:block}.mat-icon{width:46px}.time-line{padding-bottom:6px}.right{width:92%!important;margin-bottom:4px!important;height:auto!important;padding:15px 0!important}.main-section,.left{width:100%!important}}\n"] }]
|
39
101
|
}], ctorParameters: () => [{ type: i1.EventsService }], propDecorators: { responseData: [{
|
40
102
|
type: Input
|
41
103
|
}], data: [{
|
@@ -46,5 +108,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImpor
|
|
46
108
|
type: Input
|
47
109
|
}], delete: [{
|
48
110
|
type: Input
|
111
|
+
}], orderDetailData: [{
|
112
|
+
type: Input,
|
113
|
+
args: ["orderDetailData"]
|
114
|
+
}], goBackEmitter: [{
|
115
|
+
type: Output
|
49
116
|
}] } });
|
50
|
-
//# sour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AgICAgICAgIDxkaXYgY2xhc3M9XCJ0aW1lbGluZVwiPlxyXG4gICAgICAgICAgICAgICAgPHAtdGltZWxpbmUgW3ZhbHVlXT1cIm9yZGVyVGltaWxpbmVcIj5cclxuICAgICAgICAgICAgICAgICAgICA8bmctdGVtcGxhdGUgcFRlbXBsYXRlPVwiY29udGVudFwiIGxldC1ldmVudD5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImQtZmxleFwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1pY29uIHN0eWxlPVwibWFyZ2luLXJpZ2h0OiAxMHB4O1wiPnt7IGV2ZW50Lmljb24gfX08L21hdC1pY29uPiBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkLWZsZXggZmxleC1jb2x1bW4gbWwtMlwiPlxyXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZnctbm9ybWFsIGZzLTZcIj57eyBldmVudC5uYW1lIH19PC9zcGFuPiAgICBcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZnMtNiB0ZXh0LW11dGVkXCI+e3tldmVudC5kZXNjfX08L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgICAgICA8L25nLXRlbXBsYXRlPlxyXG4gICAgICAgICAgICAgICAgPC9wLXRpbWVsaW5lPlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgPGhyIC8+XHJcbiAgICAgICAgICAgIDxkaXY+XHJcbiAgICAgICAgICAgICAgICA8ZGl2ICpuZ0Zvcj1cImxldCBpdGVtIG9mIHJlc3BvbnNlRGF0YS5pdGVtTGlzdFwiIGNsYXNzPVwiZC1mbGV4XCIgc3R5bGU9XCJnYXA6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ICAgICAgICAgIDxociAvPlxyXG4gICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZnMtNlwiPlxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtYmV0d2VlbiBteS0yXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJmdy1ub3JtYWxcIj5JdGVtIFRvdGFsPC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwiZnctYm9sZFwiPiYjeDIwYjk7IHt7cmVzcG9uc2VEYXRhLmFtb3VudH19PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgICAgICAgICBcclxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkLWZsZXgganVzdGlmeS1jb250ZW50LWJldHdlZW4gbXktMlwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxzcGFuPkRlbGl2ZXJ5PC9zcGFuPlxyXG4gICAgICAgICAgICAgICAgICAgIDxzcGFuPkZSRUU8L3NwYW4+XHJcbiAgICAgICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImQtZmxleCBqdXN0aWZ5LWNvbnRlbnQtYmV0d2VlbiBteS0yXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJmdy1ub3JtYWxcIj5HcmFuZCBUb3RhbDwvc3Bhbj5cclxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImZ3LWJvbGRcIj4mI3gyMGI5OyB7e3Jlc3BvbnNlRGF0YS5hbW91bnR9fTwvc3Bhbj5cclxuICAgICAgICAgICAgICAgIDwvZGl2PlxyXG4gICAgICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgICA8ZGl2IGNsYXNzPVwicmlnaHR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tMid9fTwvc3Bhbj48L3NwYW4+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPHNwYW4+IDxzcGFuIFtpbm5lckhUTUxdPVwiY3VycmVuY3lcIj48L3NwYW4+IDxzcGFuIGNsYXNzPVwiZnctYm9sZFwiPnt7KGl0ZW0uZGlzY291bnRlZFByaWNlICogaXRlbS5xdWFudGl0eSkgIHwgbnVtYmVyOiAnMS4wLTInfX08L3NwYW4+PC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ0lmPVwiaXNNb2JpbGVcIj5cbiAgICAgICAgICAgICAgICA8bmctY29udGFpbmVyICpuZ1RlbXBsYXRlT3V0bGV0PVwidGltZWxpbmVDb250YWluZXJcIj48L25nLWNvbnRhaW5lcj5cbiAgICAgICAgICAgIDwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgPGRpdiBjbGFzcz1cImZzLTZcIj5cbiAgICAgICAgICAgICAgICA8ZGl2IGNsYXNzPVwiZC1mbGV4IGp1c3RpZnktY29udGVudC1iZXR3ZWVuIG15LTJcIj5cbiAgICAgICAgICAgICAgICAgICAgPHNwYW4gY2xhc3M9XCJmdy1ub3JtYWxcIj5JdGVtIFRvdGFsPC9zcGFuPlxuICAgICAgICAgICAgICAgICAgICA8c3BhbiBjbGFzcz1cImZ3LWJvbGRcIj48c3BhbiBbaW5uZXJIVE1MXT1cImN1cnJlbmN5XCI+PC9zcGFuPiB7e29yZGVyRGV0YWlsRGF0YT8uYmlsbERldGFpbHM/LnRvdGFsTmV0VmFsdWUgfCBudW1iZXI6JzEuMC0yJ319PC9zcGFuPlxuICAgICAgICAgICAgICAgIDwvZGl2PlxuICAgICAgICAgICAgICAgIDxkaXYgY2xhc3M9XCJkLWZsZXgganVzdGlmeS1j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t0aGVtZV09XCJ7XG4gICAgd2lkdGg6ICcxMDAlJyxcbiAgICBoZWlnaHQ6ICc0MHZoJyxcbiAgICAnYm9yZGVyLXJhZGl1cyc6ICcxMHB4JyxcbiAgICAncG9zaXRpb24nOiAncmVsYXRpdmUnLFxuICAgICdyaWdodCc6ICc1cHgnXG4gIH1cIj5cbiAgPC9uZ3gtc2tlbGV0b24tbG9hZGVyPlxuIl19
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CommonModule } from '@angular/common';
|
2
|
-
import { Component, Input } from '@angular/core';
|
2
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
import * as i1 from "@angular/router";
|
5
5
|
import * as i2 from "@angular/common";
|
@@ -8,31 +8,37 @@ export class PagninationComponent {
|
|
8
8
|
this.router = router;
|
9
9
|
this.totalPages = 1;
|
10
10
|
this.currentPage = 1;
|
11
|
+
this.paginationChange = new EventEmitter();
|
11
12
|
this.bound = 5;
|
12
13
|
}
|
13
14
|
ngOnInit() {
|
14
15
|
}
|
15
16
|
goToNext() {
|
16
|
-
this.
|
17
|
+
this.paginationChange.emit(this.currentPage + 1);
|
18
|
+
// this.router.navigate(['/list'], { queryParams: {pageNo: this.currentPage +1} });
|
17
19
|
}
|
18
20
|
goToPrev() {
|
19
|
-
this.
|
21
|
+
this.paginationChange.emit(this.currentPage - 1);
|
22
|
+
// this.router.navigate(['/list'], { queryParams: {pageNo: this.currentPage -1} });
|
20
23
|
}
|
21
24
|
goToSelection(index) {
|
22
25
|
this.currentPage = index + 1;
|
23
|
-
this.
|
26
|
+
this.paginationChange.emit(this.currentPage);
|
27
|
+
// this.router.navigate(['/list'], { queryParams: {pageNo: this.currentPage} });
|
24
28
|
}
|
25
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: PagninationComponent, deps: [{ token: i1.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: PagninationComponent, isStandalone: true, selector: "simpo-pagnination", inputs: { totalPages: "totalPages", currentPage: "currentPage" }, ngImport: i0, template: "<section class=\"d-flex w-100 justify-content-center\">\
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.1.4", type: PagninationComponent, isStandalone: true, selector: "simpo-pagnination", inputs: { totalPages: "totalPages", currentPage: "currentPage" }, outputs: { paginationChange: "paginationChange" }, ngImport: i0, template: "<section class=\"d-flex w-100 justify-content-center main-section\">\n <div class=\"pagniation-btn\" (click)=\"goToPrev()\" [style.visibility]=\"currentPage == 1 ? 'hidden' : 'visible'\">Prev</div>\n <ng-container *ngFor=\"let _ of [].constructor(totalPages); let idx = index\">\n <span class=\"pagniation-btn\" [ngClass]=\"{'selected-page': (idx +1) == currentPage}\" (click)=\"goToSelection(idx)\">{{idx +1}}</span>\n </ng-container>\n <!-- <div *ngIf=\"totalPages > 6\" class=\"d-flex align-items-center\">\n <span class=\"pagniation-btn fs-2\">...</span>\n <span class=\"pagniation-btn\">{{totalPages}}</span>\n </div> -->\n <div class=\"pagniation-btn\" (click)=\"goToNext()\" [style.visibility]=\"currentPage == totalPages ? 'hidden' : 'visible'\">Next</div>\n</section>\n", styles: [".pagniation-btn{font-size:14px;padding:5px;border-radius:2px;width:45px;height:40px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#000}.selected-page{background-color:#000;color:#fff}@media only screen and (max-width: 475px){.main-section{position:relative;right:22px}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] }); }
|
27
31
|
}
|
28
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: PagninationComponent, decorators: [{
|
29
33
|
type: Component,
|
30
34
|
args: [{ selector: 'simpo-pagnination', standalone: true, imports: [
|
31
35
|
CommonModule
|
32
|
-
], template: "<section class=\"d-flex w-100 justify-content-center\">\
|
36
|
+
], template: "<section class=\"d-flex w-100 justify-content-center main-section\">\n <div class=\"pagniation-btn\" (click)=\"goToPrev()\" [style.visibility]=\"currentPage == 1 ? 'hidden' : 'visible'\">Prev</div>\n <ng-container *ngFor=\"let _ of [].constructor(totalPages); let idx = index\">\n <span class=\"pagniation-btn\" [ngClass]=\"{'selected-page': (idx +1) == currentPage}\" (click)=\"goToSelection(idx)\">{{idx +1}}</span>\n </ng-container>\n <!-- <div *ngIf=\"totalPages > 6\" class=\"d-flex align-items-center\">\n <span class=\"pagniation-btn fs-2\">...</span>\n <span class=\"pagniation-btn\">{{totalPages}}</span>\n </div> -->\n <div class=\"pagniation-btn\" (click)=\"goToNext()\" [style.visibility]=\"currentPage == totalPages ? 'hidden' : 'visible'\">Next</div>\n</section>\n", styles: [".pagniation-btn{font-size:14px;padding:5px;border-radius:2px;width:45px;height:40px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#000}.selected-page{background-color:#000;color:#fff}@media only screen and (max-width: 475px){.main-section{position:relative;right:22px}}\n"] }]
|
33
37
|
}], ctorParameters: () => [{ type: i1.Router }], propDecorators: { totalPages: [{
|
34
38
|
type: Input
|
35
39
|
}], currentPage: [{
|
36
40
|
type: Input
|
41
|
+
}], paginationChange: [{
|
42
|
+
type: Output
|
37
43
|
}] } });
|
38
|
-
//# sourceMappingURL=data:application/json;base64,
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnbmluYXRpb24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi9lY29tbWVy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