@rolatech/angular-product 17.0.0 → 17.1.1
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/esm2022/index.mjs +5 -12
- package/esm2022/lib/components/index.mjs +12 -0
- package/esm2022/lib/components/product-action/product-action.component.mjs +25 -0
- package/esm2022/lib/components/product-info/product-info.component.mjs +17 -0
- package/esm2022/lib/components/product-item/product-item.component.mjs +17 -0
- package/esm2022/lib/components/product-manage-option-add/product-manage-option-add.component.mjs +68 -0
- package/esm2022/lib/components/product-manage-option-item/product-manage-option-item.component.mjs +49 -0
- package/esm2022/lib/components/product-manage-variant/product-manage-variant.component.mjs +115 -0
- package/esm2022/lib/components/product-mange-option-action/product-manage-option-action.component.mjs +22 -0
- package/esm2022/lib/components/product-mange-section-item/product-mange-section-item.component.mjs +89 -0
- package/esm2022/lib/components/product-media/product-media.component.mjs +34 -0
- package/esm2022/lib/components/product-option/product-option.component.mjs +23 -0
- package/esm2022/lib/components/product-owner-renderer/product-owner-renderer.component.mjs +20 -0
- package/esm2022/lib/components/product-pricing/product-pricing.component.mjs +31 -0
- package/esm2022/lib/components/product-section/product-section.component.mjs +26 -0
- package/esm2022/lib/interfaces/category.mjs +2 -0
- package/esm2022/lib/interfaces/index.mjs +2 -0
- package/esm2022/lib/interfaces/product.mjs +32 -0
- package/esm2022/lib/pages/product/product-category/product-category.component.mjs +70 -8
- package/esm2022/lib/pages/product/product-details/product-details.component.mjs +193 -0
- package/esm2022/lib/pages/product/product-details/selected.pipe.mjs +18 -0
- package/esm2022/lib/pages/product/product-index/product-index.component.mjs +39 -8
- package/esm2022/lib/pages/product/product-layout/product-layout.component.mjs +46 -8
- package/esm2022/lib/pages/product/product.routes.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-content/product-manage-content.component.mjs +5 -5
- package/esm2022/lib/pages/product-manage/product-manage-create/product-manage-create.component.mjs +61 -0
- package/esm2022/lib/pages/product-manage/product-manage-index/product-manage-index.component.mjs +155 -0
- package/esm2022/lib/pages/product-manage/product-manage-info/product-manage-info.component.mjs +98 -8
- package/esm2022/lib/pages/product-manage/product-manage-inventory/product-manage-inventory.component.mjs +14 -0
- package/esm2022/lib/pages/product-manage/product-manage-item/product-manage-item.component.mjs +27 -0
- package/esm2022/lib/pages/product-manage/product-manage-item-header/product-manage-item-header.component.mjs +12 -0
- package/esm2022/lib/pages/product-manage/product-manage-layout/product-manage-layout.component.mjs +51 -8
- package/esm2022/lib/pages/product-manage/product-manage-media/product-manage-media.component.mjs +133 -8
- package/esm2022/lib/pages/product-manage/product-manage-options/product-manage-options.component.mjs +102 -0
- package/esm2022/lib/pages/product-manage/product-manage-pricing/product-manage-pricing.component.mjs +5 -5
- package/esm2022/lib/pages/product-manage/product-manage-schedule/product-manage-schedule.component.mjs +14 -0
- package/esm2022/lib/pages/product-manage/product-manage-sections/product-manage-sections.component.mjs +170 -0
- package/esm2022/lib/pages/product-manage/product-manage-variants/product-manage-variants.component.mjs +133 -0
- package/esm2022/lib/pages/product-manage/product-manage.routes.mjs +34 -4
- package/esm2022/lib/services/index.mjs +4 -0
- package/esm2022/lib/services/product-category.service.mjs +38 -0
- package/esm2022/provider.mjs +13 -0
- package/fesm2022/rolatech-angular-product-product-index.component-C_cbg95R.mjs +70 -0
- package/fesm2022/rolatech-angular-product-product-index.component-C_cbg95R.mjs.map +1 -0
- package/fesm2022/rolatech-angular-product.mjs +1697 -76
- package/fesm2022/rolatech-angular-product.mjs.map +1 -1
- package/index.d.ts +4 -11
- package/lib/components/index.d.ts +11 -0
- package/lib/components/product-action/product-action.component.d.ts +11 -0
- package/lib/components/product-info/product-info.component.d.ts +7 -0
- package/lib/components/product-item/product-item.component.d.ts +7 -0
- package/lib/components/product-manage-option-add/product-manage-option-add.component.d.ts +20 -0
- package/lib/components/product-manage-option-item/product-manage-option-item.component.d.ts +14 -0
- package/lib/components/product-manage-variant/product-manage-variant.component.d.ts +18 -0
- package/lib/components/product-mange-option-action/product-manage-option-action.component.d.ts +10 -0
- package/lib/components/product-mange-section-item/product-mange-section-item.component.d.ts +33 -0
- package/lib/components/product-media/product-media.component.d.ts +12 -0
- package/lib/components/product-option/product-option.component.d.ts +14 -0
- package/lib/components/product-owner-renderer/product-owner-renderer.component.d.ts +8 -0
- package/lib/components/product-pricing/product-pricing.component.d.ts +12 -0
- package/lib/components/product-section/product-section.component.d.ts +16 -0
- package/lib/interfaces/category.d.ts +16 -0
- package/lib/interfaces/index.d.ts +2 -0
- package/lib/interfaces/product.d.ts +91 -0
- package/lib/pages/product/product-category/product-category.component.d.ts +19 -2
- package/lib/pages/product/product-details/product-details.component.d.ts +39 -0
- package/lib/pages/product/product-details/selected.pipe.d.ts +8 -0
- package/lib/pages/product/product-index/product-index.component.d.ts +12 -2
- package/lib/pages/product/product-layout/product-layout.component.d.ts +15 -2
- package/lib/pages/product-manage/product-manage-content/product-manage-content.component.d.ts +1 -1
- package/lib/pages/product-manage/product-manage-create/product-manage-create.component.d.ts +11 -0
- package/lib/pages/product-manage/product-manage-index/product-manage-index.component.d.ts +38 -0
- package/lib/pages/product-manage/product-manage-info/product-manage-info.component.d.ts +26 -2
- package/lib/pages/product-manage/product-manage-inventory/product-manage-inventory.component.d.ts +5 -0
- package/lib/pages/product-manage/product-manage-item/product-manage-item.component.d.ts +12 -0
- package/lib/pages/product-manage/product-manage-item-header/product-manage-item-header.component.d.ts +5 -0
- package/lib/pages/product-manage/product-manage-layout/product-manage-layout.component.d.ts +22 -2
- package/lib/pages/product-manage/product-manage-media/product-manage-media.component.d.ts +26 -2
- package/lib/pages/product-manage/product-manage-options/product-manage-options.component.d.ts +17 -0
- package/lib/pages/product-manage/product-manage-pricing/product-manage-pricing.component.d.ts +1 -1
- package/lib/pages/product-manage/product-manage-schedule/product-manage-schedule.component.d.ts +5 -0
- package/lib/pages/product-manage/product-manage-sections/product-manage-sections.component.d.ts +29 -0
- package/lib/pages/product-manage/product-manage-variants/product-manage-variants.component.d.ts +27 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/product-category.service.d.ts +12 -0
- package/package.json +1 -1
- package/provider.d.ts +2 -0
- package/themes/_default.scss +1 -1
- package/esm2022/lib/angular-product/angular-product.component.mjs +0 -12
- package/esm2022/lib/pages/product/product-detail/product-detail.component.mjs +0 -12
- package/esm2022/lib/pages/product-manage/product-manage-details/product-manage-details.component.mjs +0 -12
- package/lib/angular-product/angular-product.component.d.ts +0 -5
- package/lib/pages/product/product-detail/product-detail.component.d.ts +0 -5
- package/lib/pages/product-manage/product-manage-details/product-manage-details.component.d.ts +0 -5
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProductInfoComponent {
|
|
3
|
+
name: import("@angular/core").InputSignal<string>;
|
|
4
|
+
description: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductInfoComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductInfoComponent, "rolatech-product-info", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Product } from '../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProductItemComponent {
|
|
4
|
+
product: import("@angular/core").InputSignal<Product>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductItemComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductItemComponent, "rolatech-product-item", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { DoCheck } from '@angular/core';
|
|
2
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
3
|
+
import { ProductOption } from '../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProductManageOptionAddComponent implements DoCheck {
|
|
6
|
+
option: ProductOption;
|
|
7
|
+
addOnBlur: boolean;
|
|
8
|
+
readonly separatorKeysCodes: readonly [13, 188];
|
|
9
|
+
cancel: import("@angular/core").OutputEmitterRef<void>;
|
|
10
|
+
save: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
11
|
+
action: boolean;
|
|
12
|
+
output: import("@angular/core").OutputEmitterRef<any>;
|
|
13
|
+
onCancel(): void;
|
|
14
|
+
onSave(): void;
|
|
15
|
+
addOptionValues(event: MatChipInputEvent): void;
|
|
16
|
+
removeValue(value: any): void;
|
|
17
|
+
ngDoCheck(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageOptionAddComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageOptionAddComponent, "rolatech-product-manage-option-add", never, {}, { "cancel": "cancel"; "save": "save"; "output": "output"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProductOption } from '../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProductManageOptionItemComponent {
|
|
4
|
+
option: import("@angular/core").InputSignal<ProductOption>;
|
|
5
|
+
addOnBlur: boolean;
|
|
6
|
+
delete: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
7
|
+
save: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
8
|
+
edit: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
9
|
+
onDelete(): void;
|
|
10
|
+
onSave(): void;
|
|
11
|
+
onEdit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageOptionItemComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageOptionItemComponent, "rolatech-product-manage-option-item", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; }, { "delete": "delete"; "save": "save"; "edit": "edit"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ProductInventoryStatus, ProductVariant } from '../../interfaces';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProductManageVariantComponent {
|
|
6
|
+
dialog: MatDialog;
|
|
7
|
+
variant: import("@angular/core").ModelSignal<ProductVariant>;
|
|
8
|
+
expanded: boolean;
|
|
9
|
+
upload: import("@angular/core").OutputEmitterRef<FormData>;
|
|
10
|
+
variantStatus: typeof ProductInventoryStatus;
|
|
11
|
+
enumKeys: string[];
|
|
12
|
+
onUpload(event: any): void;
|
|
13
|
+
onMediaClick(i: number): void;
|
|
14
|
+
statusCompareFn(t1: any, t2: any): boolean;
|
|
15
|
+
onStatusChange(event: MatSelectChange): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageVariantComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageVariantComponent, "rolatech-product-manage-variant", never, { "variant": { "alias": "variant"; "required": true; "isSignal": true; }; }, { "variant": "variantChange"; "upload": "upload"; }, never, never, true, never>;
|
|
18
|
+
}
|
package/lib/components/product-mange-option-action/product-manage-option-action.component.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProductOption } from '../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProductManageOptionActionComponent {
|
|
4
|
+
delete: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
5
|
+
save: import("@angular/core").OutputEmitterRef<ProductOption>;
|
|
6
|
+
onDelete(option: ProductOption): void;
|
|
7
|
+
onSave(option: ProductOption): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageOptionActionComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageOptionActionComponent, "rolatech-product-manage-option-action", never, {}, { "delete": "delete"; "save": "save"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { Media } from '@rolatech/angular-common';
|
|
3
|
+
import { ProductSection } from '../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProductManageSectionItemComponent implements OnInit {
|
|
6
|
+
isUploading: import("@angular/core").InputSignal<boolean | undefined>;
|
|
7
|
+
section: import("@angular/core").InputSignal<ProductSection>;
|
|
8
|
+
actions: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
selectMedia: import("@angular/core").InputSignal<any>;
|
|
10
|
+
upload: import("@angular/core").OutputEmitterRef<{
|
|
11
|
+
section: ProductSection;
|
|
12
|
+
data: FormData | null;
|
|
13
|
+
}>;
|
|
14
|
+
delete: import("@angular/core").OutputEmitterRef<ProductSection>;
|
|
15
|
+
save: import("@angular/core").OutputEmitterRef<ProductSection>;
|
|
16
|
+
deleteMedia: import("@angular/core").OutputEmitterRef<{
|
|
17
|
+
section: ProductSection;
|
|
18
|
+
media: Media;
|
|
19
|
+
}>;
|
|
20
|
+
selectedImg: Media | any;
|
|
21
|
+
expanded: boolean;
|
|
22
|
+
constructor();
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
onUpload(data: any): void;
|
|
25
|
+
onMediaItemClick(image: Media): void;
|
|
26
|
+
select(item: any): void;
|
|
27
|
+
deleteImage(): void;
|
|
28
|
+
onSave(section: ProductSection): void;
|
|
29
|
+
onDelete(section: ProductSection): void;
|
|
30
|
+
onDeleteMedia(media: Media): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageSectionItemComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageSectionItemComponent, "rolatech-product-manage-section-item", never, { "isUploading": { "alias": "isUploading"; "required": false; "isSignal": true; }; "section": { "alias": "section"; "required": true; "isSignal": true; }; "actions": { "alias": "actions"; "required": false; "isSignal": true; }; "selectMedia": { "alias": "selectMedia"; "required": false; "isSignal": true; }; }, { "upload": "upload"; "delete": "delete"; "save": "save"; "deleteMedia": "deleteMedia"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { Media } from '@rolatech/angular-common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ProductMediaComponent {
|
|
5
|
+
dialog: MatDialog;
|
|
6
|
+
media: import("@angular/core").InputSignal<Media[]>;
|
|
7
|
+
min: import("@angular/core").InputSignal<boolean>;
|
|
8
|
+
mediaIndex: number;
|
|
9
|
+
onImageClick(i: any): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductMediaComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductMediaComponent, "rolatech-product-media", never, { "media": { "alias": "media"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ProductOption, ProductOptionValue } from '../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProductOptionComponent {
|
|
4
|
+
option: import("@angular/core").InputSignal<ProductOption>;
|
|
5
|
+
change: import("@angular/core").OutputEmitterRef<{
|
|
6
|
+
option: ProductOption;
|
|
7
|
+
value: ProductOptionValue;
|
|
8
|
+
}>;
|
|
9
|
+
selected: import("@angular/core").ModelSignal<ProductOption | undefined>;
|
|
10
|
+
value: import("@angular/core").ModelSignal<ProductOptionValue | undefined>;
|
|
11
|
+
onChange(value: ProductOptionValue): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductOptionComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductOptionComponent, "rolatech-product-option", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "selected": { "alias": "selected"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "change": "change"; "selected": "selectedChange"; "value": "valueChange"; }, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProductOwnerRendererComponent {
|
|
3
|
+
name: import("@angular/core").InputSignal<string | undefined>;
|
|
4
|
+
avatar: import("@angular/core").InputSignal<string | undefined>;
|
|
5
|
+
username: import("@angular/core").InputSignal<string | undefined>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductOwnerRendererComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductOwnerRendererComponent, "rolatech-product-owner-renderer", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "avatar": { "alias": "avatar"; "required": false; "isSignal": true; }; "username": { "alias": "username"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Product } from '../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProductPricingComponent {
|
|
4
|
+
product: import("@angular/core").InputSignal<Product>;
|
|
5
|
+
price: import("@angular/core").InputSignal<number>;
|
|
6
|
+
displayPrice: import("@angular/core").Signal<string>;
|
|
7
|
+
wish: import("@angular/core").OutputEmitterRef<Product>;
|
|
8
|
+
inWishList: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
onWish(product: Product): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductPricingComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductPricingComponent, "rolatech-product-pricing", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; "price": { "alias": "price"; "required": true; "isSignal": true; }; "inWishList": { "alias": "inWishList"; "required": false; "isSignal": true; }; }, { "wish": "wish"; }, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ViewportScroller } from '@angular/common';
|
|
3
|
+
import { ProductSection } from '../../interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ProductSectionComponent implements OnInit {
|
|
6
|
+
section: import("@angular/core").InputSignal<ProductSection>;
|
|
7
|
+
user: import("@angular/core").InputSignal<string | undefined>;
|
|
8
|
+
username: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
+
viewportScroller: ViewportScroller;
|
|
10
|
+
row: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
reverse: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
onClickScroller(id: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductSectionComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSectionComponent, "rolatech-product-section", never, { "section": { "alias": "section"; "required": true; "isSignal": true; }; "user": { "alias": "user"; "required": false; "isSignal": true; }; "username": { "alias": "username"; "required": false; "isSignal": true; }; "row": { "alias": "row"; "required": false; "isSignal": true; }; "reverse": { "alias": "reverse"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Product } from './product';
|
|
2
|
+
export interface ProductCategory {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
media: ProductCategoryMedia[];
|
|
6
|
+
products: Product[];
|
|
7
|
+
createdAt: string;
|
|
8
|
+
originId: string;
|
|
9
|
+
children: ProductCategory;
|
|
10
|
+
parent: ProductCategory;
|
|
11
|
+
}
|
|
12
|
+
export interface ProductCategoryMedia {
|
|
13
|
+
id: string;
|
|
14
|
+
url: string;
|
|
15
|
+
alt: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ProductCategory } from './category';
|
|
2
|
+
export interface Product {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
media: ProductMedia[];
|
|
7
|
+
status: ProductStatus | string;
|
|
8
|
+
type: ProductType | string;
|
|
9
|
+
scope: ProductScope | string;
|
|
10
|
+
categories: ProductCategory[];
|
|
11
|
+
tags: ProductTag[];
|
|
12
|
+
sections: ProductSection[];
|
|
13
|
+
options: ProductOption[];
|
|
14
|
+
variants?: ProductVariant[];
|
|
15
|
+
price: number;
|
|
16
|
+
userId: string;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ProductSection {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
description: string;
|
|
24
|
+
media: ProductMedia[];
|
|
25
|
+
isUploading?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface ProductVariant {
|
|
28
|
+
id: string;
|
|
29
|
+
title: string;
|
|
30
|
+
price: number;
|
|
31
|
+
sku: string;
|
|
32
|
+
options: ProductVariantOption[];
|
|
33
|
+
media: ProductVariantMedia[];
|
|
34
|
+
isUploading?: boolean;
|
|
35
|
+
status: ProductInventoryStatus | string;
|
|
36
|
+
}
|
|
37
|
+
export interface ProductVariantMedia {
|
|
38
|
+
url: string;
|
|
39
|
+
alt: string;
|
|
40
|
+
uploading?: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface ProductVariantOption {
|
|
43
|
+
option: ProductOption;
|
|
44
|
+
value: ProductOptionValue;
|
|
45
|
+
}
|
|
46
|
+
export interface ProductTag {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
}
|
|
50
|
+
export declare enum ProductStatus {
|
|
51
|
+
DRAFT,
|
|
52
|
+
AWAITING,
|
|
53
|
+
PENDING,
|
|
54
|
+
ACCEPTED,
|
|
55
|
+
ACTIVE,
|
|
56
|
+
DELETED,
|
|
57
|
+
ARCHIVED
|
|
58
|
+
}
|
|
59
|
+
export declare enum ProductType {
|
|
60
|
+
DIGITAL = "\u865A\u62DF\u5546\u54C1",
|
|
61
|
+
PHYSICAL = "\u5B9E\u4F53\u5546\u54C1",
|
|
62
|
+
OTHER = "\u5176\u4ED6"
|
|
63
|
+
}
|
|
64
|
+
export declare enum ProductInventoryStatus {
|
|
65
|
+
IN_STOCK = "\u6709\u8D27",
|
|
66
|
+
LOW_STOCK = "\u5E93\u5B58\u4E0D\u8DB3",
|
|
67
|
+
OUT_OF_STOCK = "\u552E\u7F44",
|
|
68
|
+
DISCONTINUED = "\u5DF2\u505C\u4EA7"
|
|
69
|
+
}
|
|
70
|
+
export declare enum ProductScope {
|
|
71
|
+
WEB,
|
|
72
|
+
GLOBAL
|
|
73
|
+
}
|
|
74
|
+
export interface ProductMedia {
|
|
75
|
+
id: string;
|
|
76
|
+
url: string;
|
|
77
|
+
alt: string;
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
uuid: string;
|
|
81
|
+
selected: boolean;
|
|
82
|
+
}
|
|
83
|
+
export interface ProductOption {
|
|
84
|
+
id: string;
|
|
85
|
+
name: string;
|
|
86
|
+
values: ProductOptionValue[];
|
|
87
|
+
}
|
|
88
|
+
export interface ProductOptionValue {
|
|
89
|
+
id?: string;
|
|
90
|
+
name: string;
|
|
91
|
+
}
|
|
@@ -1,5 +1,22 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
3
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
4
|
+
import { Product, ProductCategory } from '../../../interfaces';
|
|
5
|
+
import { ProductCategoryService } from '../../../services';
|
|
1
6
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductCategoryComponent {
|
|
7
|
+
export declare class ProductCategoryComponent extends BaseComponent implements OnInit {
|
|
8
|
+
categoryService: ProductCategoryService;
|
|
9
|
+
productService: ProductService;
|
|
10
|
+
category: ProductCategory;
|
|
11
|
+
products: Product[];
|
|
12
|
+
categories: ProductCategory[];
|
|
13
|
+
loading: boolean;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
findAllCategories(): void;
|
|
16
|
+
findCategoryById(id: string): void;
|
|
17
|
+
findAllProducts(): void;
|
|
18
|
+
findProductsByCategoryId(id: string): void;
|
|
19
|
+
loadProductsByCategory(item: any): void;
|
|
3
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCategoryComponent, "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCategoryComponent, "rolatech-product-category", never, {}, {}, never, never, true, never>;
|
|
5
22
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { OnInit, Signal } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
3
|
+
import { Product, ProductOption, ProductVariant, ProductVariantOption } from '../../../interfaces';
|
|
4
|
+
import { AuthService, AuthUserService } from '@rolatech/angular-auth';
|
|
5
|
+
import { CartService, ProductService } from '@rolatech/angular-services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ProductDetailsComponent extends BaseComponent implements OnInit {
|
|
8
|
+
authService: AuthService;
|
|
9
|
+
authUserService: AuthUserService;
|
|
10
|
+
productService: ProductService;
|
|
11
|
+
cartService: CartService;
|
|
12
|
+
authenticated: Signal<boolean | null>;
|
|
13
|
+
product: Product;
|
|
14
|
+
fullname: string;
|
|
15
|
+
username: string;
|
|
16
|
+
user: any;
|
|
17
|
+
inWishList: boolean;
|
|
18
|
+
purchased: boolean;
|
|
19
|
+
selectedOption: ProductOption;
|
|
20
|
+
variants: ProductVariant[];
|
|
21
|
+
selectedVariant: ProductVariant;
|
|
22
|
+
variantOption: import("@angular/core").WritableSignal<ProductVariantOption | undefined>;
|
|
23
|
+
variantOptionChanged: Signal<ProductVariantOption | undefined>;
|
|
24
|
+
results: any[];
|
|
25
|
+
constructor();
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
getProduct(): void;
|
|
28
|
+
private findVariant;
|
|
29
|
+
findUserBaseInfo(userId: string): void;
|
|
30
|
+
private findWishlistBy;
|
|
31
|
+
onWish(e: any): void;
|
|
32
|
+
onCart(e: any): void;
|
|
33
|
+
private removeFromWishlist;
|
|
34
|
+
private addToWishlist;
|
|
35
|
+
checkout(e: any): void;
|
|
36
|
+
onOptionChange(e: any): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDetailsComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductDetailsComponent, "rolatech-product-details", never, {}, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ProductOption, ProductVariant } from '../../../interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SelectedPipe implements PipeTransform {
|
|
5
|
+
transform(variant: ProductVariant, option: ProductOption): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectedPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SelectedPipe, "selected", true>;
|
|
8
|
+
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
3
|
+
import { Product } from '../../../interfaces/product';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductIndexComponent {
|
|
5
|
+
export declare class ProductIndexComponent implements OnInit {
|
|
6
|
+
productService: ProductService;
|
|
7
|
+
products: import("@angular/core").WritableSignal<Product[]>;
|
|
8
|
+
meta: any;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
constructor();
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
findProducts(): void;
|
|
3
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductIndexComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductIndexComponent, "
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductIndexComponent, "rolatech-product-index", never, {}, {}, never, never, true, never>;
|
|
5
15
|
}
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
3
|
+
import { ProductCategory } from '../../../interfaces';
|
|
4
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
5
|
+
import { ProductCategoryService } from '../../../services';
|
|
1
6
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductLayoutComponent {
|
|
7
|
+
export declare class ProductLayoutComponent extends BaseComponent implements OnInit {
|
|
8
|
+
categories: ProductCategory[];
|
|
9
|
+
categoryService: ProductCategoryService;
|
|
10
|
+
productService: ProductService;
|
|
11
|
+
selectIndex: number;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
findCategories(): void;
|
|
14
|
+
loadProductByCategoryIndex(index: number): void;
|
|
15
|
+
nextCategory(): void;
|
|
3
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductLayoutComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductLayoutComponent, "
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductLayoutComponent, "rolatech-product-layout", never, {}, {}, never, never, true, never>;
|
|
5
18
|
}
|
package/lib/pages/product-manage/product-manage-content/product-manage-content.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ProductManageContentComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageContentComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageContentComponent, "
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageContentComponent, "rolatech-product-manage-content", never, {}, {}, never, ["rolatech-toolbar", "*"], true, never>;
|
|
5
5
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProductManageCreateComponent {
|
|
3
|
+
private productService;
|
|
4
|
+
private router;
|
|
5
|
+
private route;
|
|
6
|
+
private snackBar;
|
|
7
|
+
product: any;
|
|
8
|
+
create(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageCreateComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageCreateComponent, "rolatech-product-manage-create", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
4
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
5
|
+
import { MatTableDataSource } from '@angular/material/table';
|
|
6
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
7
|
+
import { Product } from '../../../interfaces';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class ProductManageIndexComponent implements OnInit {
|
|
10
|
+
paginator: import("@angular/core").Signal<MatPaginator | undefined>;
|
|
11
|
+
dialog: MatDialog;
|
|
12
|
+
snackBar: MatSnackBar;
|
|
13
|
+
productService: ProductService;
|
|
14
|
+
isLoading: boolean;
|
|
15
|
+
isSearch: boolean;
|
|
16
|
+
pageEvent: PageEvent;
|
|
17
|
+
length: number;
|
|
18
|
+
pageSize: number;
|
|
19
|
+
pageSizeOptions: number[];
|
|
20
|
+
dataSource: MatTableDataSource<any, MatPaginator>;
|
|
21
|
+
products: Product[];
|
|
22
|
+
displayedColumns: string[];
|
|
23
|
+
orderOptions: {
|
|
24
|
+
key: string;
|
|
25
|
+
value: string;
|
|
26
|
+
icon: string;
|
|
27
|
+
sort: string;
|
|
28
|
+
}[];
|
|
29
|
+
status: any;
|
|
30
|
+
orderString: string;
|
|
31
|
+
classrooms: any;
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
find(event?: PageEvent | null): any;
|
|
34
|
+
archived(product: any): void;
|
|
35
|
+
delete(product: Product): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageIndexComponent, never>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageIndexComponent, "rolatech-product-manage-index", never, {}, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
3
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
4
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
5
|
+
import { Product, ProductCategory, ProductStatus, ProductType } from '../../../interfaces';
|
|
6
|
+
import { ProductCategoryService } from '../../../services';
|
|
1
7
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductManageInfoComponent {
|
|
8
|
+
export declare class ProductManageInfoComponent extends BaseComponent implements OnInit {
|
|
9
|
+
productService: ProductService;
|
|
10
|
+
categoryService: ProductCategoryService;
|
|
11
|
+
product: Product;
|
|
12
|
+
status: typeof ProductStatus;
|
|
13
|
+
categories: ProductCategory[];
|
|
14
|
+
selectedCategoyIds: string[];
|
|
15
|
+
productType: typeof ProductType;
|
|
16
|
+
selectedType?: string | undefined;
|
|
17
|
+
enumKeys: string[];
|
|
18
|
+
enumValues: ProductType[];
|
|
19
|
+
price: import("@angular/core").ModelSignal<string | undefined>;
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
find(): void;
|
|
22
|
+
typeCompareFn(t1: any, t2: any): boolean;
|
|
23
|
+
compareFn(o1: ProductCategory, o2: ProductCategory): boolean;
|
|
24
|
+
onTypeChange(event: MatSelectChange): void;
|
|
25
|
+
onCategoryChange(event: any): void;
|
|
26
|
+
update(): void;
|
|
3
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageInfoComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageInfoComponent, "
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageInfoComponent, "rolatech-product-manage-info", never, { "price": { "alias": "price"; "required": false; "isSignal": true; }; }, { "price": "priceChange"; }, never, never, true, never>;
|
|
5
29
|
}
|
package/lib/pages/product-manage/product-manage-inventory/product-manage-inventory.component.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProductManageInventoryComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageInventoryComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageInventoryComponent, "rolatech-product-manage-inventory", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Product, ProductStatus } from '../../../interfaces';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ProductManageItemComponent {
|
|
4
|
+
product: import("@angular/core").InputSignal<Product>;
|
|
5
|
+
thumbnail: import("@angular/core").InputSignal<unknown>;
|
|
6
|
+
status: typeof ProductStatus;
|
|
7
|
+
publish(): void;
|
|
8
|
+
archived(): void;
|
|
9
|
+
delete(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageItemComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageItemComponent, "rolatech-product-manage-item", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; "thumbnail": { "alias": "thumbnail"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ProductManageItemHeaderComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageItemHeaderComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageItemHeaderComponent, "rolatech-product-manage-item-header", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -1,5 +1,25 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
|
+
import { Product } from '../../../interfaces/product';
|
|
6
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
1
7
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductManageLayoutComponent {
|
|
8
|
+
export declare class ProductManageLayoutComponent implements OnInit {
|
|
9
|
+
id: string;
|
|
10
|
+
product: Product;
|
|
11
|
+
submitted: boolean;
|
|
12
|
+
accepted: boolean;
|
|
13
|
+
isDraft: boolean;
|
|
14
|
+
route: ActivatedRoute;
|
|
15
|
+
productService: ProductService;
|
|
16
|
+
dialog: MatDialog;
|
|
17
|
+
snackBar: MatSnackBar;
|
|
18
|
+
constructor();
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
get(): void;
|
|
21
|
+
updateStatus(): void;
|
|
22
|
+
publish(): void;
|
|
3
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageLayoutComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageLayoutComponent, "
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageLayoutComponent, "rolatech-product-manage-layout", never, {}, {}, never, never, true, never>;
|
|
5
25
|
}
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
4
|
+
import { ActivatedRoute } from '@angular/router';
|
|
5
|
+
import { Media } from '@rolatech/angular-common';
|
|
6
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
7
|
+
import { ProductStatus } from '../../../interfaces';
|
|
1
8
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class ProductManageMediaComponent {
|
|
9
|
+
export declare class ProductManageMediaComponent implements OnInit {
|
|
10
|
+
route: ActivatedRoute;
|
|
11
|
+
productService: ProductService;
|
|
12
|
+
dialog: MatDialog;
|
|
13
|
+
snackBar: MatSnackBar;
|
|
14
|
+
id: string;
|
|
15
|
+
isUploading: boolean;
|
|
16
|
+
isLoading: boolean;
|
|
17
|
+
media: Media[];
|
|
18
|
+
status: typeof ProductStatus;
|
|
19
|
+
constructor();
|
|
20
|
+
ngOnInit(): void;
|
|
21
|
+
find(): void;
|
|
22
|
+
onImageClick(i: any): void;
|
|
23
|
+
private createFileChunk;
|
|
24
|
+
onUploadMedia2(event: any): void;
|
|
25
|
+
onUploadMedia(event: any): void;
|
|
26
|
+
onMediaDelete(item: any): void;
|
|
3
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageMediaComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageMediaComponent, "
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageMediaComponent, "rolatech-product-manage-media", never, {}, {}, never, never, true, never>;
|
|
5
29
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '@rolatech/angular-components';
|
|
3
|
+
import { ProductService } from '@rolatech/angular-services';
|
|
4
|
+
import { ProductOption } from '../../../interfaces';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ProductManageOptionsComponent extends BaseComponent implements OnInit {
|
|
7
|
+
productService: ProductService;
|
|
8
|
+
options: ProductOption[];
|
|
9
|
+
add: boolean;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
find(): void;
|
|
12
|
+
saveOption(option: ProductOption): void;
|
|
13
|
+
onUpdateOption(option: ProductOption): void;
|
|
14
|
+
onDeleteOption(option: ProductOption): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageOptionsComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageOptionsComponent, "rolatech-product-manage-options", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
package/lib/pages/product-manage/product-manage-pricing/product-manage-pricing.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class ProductManagePricingComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManagePricingComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManagePricingComponent, "
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManagePricingComponent, "rolatech-product-manage-pricing", never, {}, {}, never, never, true, never>;
|
|
5
5
|
}
|