@rolatech/angular-product 17.1.7 → 17.1.9
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/lib/components/product-action/product-action.component.mjs +13 -6
- package/esm2022/lib/components/product-info/product-info.component.mjs +3 -3
- package/esm2022/lib/components/product-item/product-item.component.mjs +3 -3
- package/esm2022/lib/components/product-manage-option-add/product-manage-option-add.component.mjs +3 -3
- package/esm2022/lib/components/product-manage-option-item/product-manage-option-item.component.mjs +3 -3
- package/esm2022/lib/components/product-manage-variant/product-manage-variant.component.mjs +18 -6
- package/esm2022/lib/components/product-mange-option-action/product-manage-option-action.component.mjs +3 -3
- package/esm2022/lib/components/product-mange-section-item/product-mange-section-item.component.mjs +3 -3
- package/esm2022/lib/components/product-media/product-media.component.mjs +3 -3
- package/esm2022/lib/components/product-option/product-option.component.mjs +3 -3
- package/esm2022/lib/components/product-owner-renderer/product-owner-renderer.component.mjs +3 -3
- package/esm2022/lib/components/product-pricing/product-pricing.component.mjs +3 -3
- package/esm2022/lib/components/product-section/product-section.component.mjs +3 -3
- package/esm2022/lib/interfaces/product.mjs +7 -4
- package/esm2022/lib/pages/product/product-category/product-category.component.mjs +3 -3
- package/esm2022/lib/pages/product/product-details/product-details.component.mjs +13 -21
- package/esm2022/lib/pages/product/product-details/selected.pipe.mjs +3 -3
- package/esm2022/lib/pages/product/product-index/product-index.component.mjs +3 -3
- package/esm2022/lib/pages/product/product-layout/product-layout.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-content/product-manage-content.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-create/product-manage-create.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-index/product-manage-index.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-info/product-manage-info.component.mjs +21 -11
- package/esm2022/lib/pages/product-manage/product-manage-inventory/product-manage-inventory.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-item/product-manage-item.component.mjs +6 -5
- package/esm2022/lib/pages/product-manage/product-manage-item-header/product-manage-item-header.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-layout/product-manage-layout.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-media/product-manage-media.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-options/product-manage-options.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-pricing/product-manage-pricing.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-schedule/product-manage-schedule.component.mjs +3 -3
- package/esm2022/lib/pages/product-manage/product-manage-sections/product-manage-sections.component.mjs +4 -5
- package/esm2022/lib/pages/product-manage/product-manage-variants/product-manage-variants.component.mjs +7 -7
- package/esm2022/lib/services/product-category.service.mjs +3 -3
- package/fesm2022/{rolatech-angular-product-product-index.component-BlB8MTaW.mjs → rolatech-angular-product-product-index.component-tczMXyGD.mjs} +4 -28
- package/fesm2022/{rolatech-angular-product-product-index.component-BlB8MTaW.mjs.map → rolatech-angular-product-product-index.component-tczMXyGD.mjs.map} +1 -1
- package/fesm2022/rolatech-angular-product.mjs +154 -133
- package/fesm2022/rolatech-angular-product.mjs.map +1 -1
- package/lib/components/product-action/product-action.component.d.ts +4 -1
- package/lib/components/product-manage-variant/product-manage-variant.component.d.ts +2 -0
- package/lib/interfaces/product.d.ts +7 -0
- package/lib/pages/product-manage/product-manage-info/product-manage-info.component.d.ts +5 -5
- package/package.json +1 -1
|
@@ -4,8 +4,11 @@ export declare class ProductActionComponent {
|
|
|
4
4
|
product: import("@angular/core").InputSignal<Product>;
|
|
5
5
|
cart: import("@angular/core").OutputEmitterRef<Product>;
|
|
6
6
|
checkout: import("@angular/core").OutputEmitterRef<Product>;
|
|
7
|
+
deposit: import("@angular/core").OutputEmitterRef<Product>;
|
|
8
|
+
displayDeposit: import("@angular/core").Signal<string>;
|
|
7
9
|
onCart(product: Product): void;
|
|
8
10
|
onCheckout(product: Product): void;
|
|
11
|
+
onDeposit(product: Product): void;
|
|
9
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductActionComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductActionComponent, "rolatech-product-action", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, { "cart": "cart"; "checkout": "checkout"; }, never, never, true, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductActionComponent, "rolatech-product-action", never, { "product": { "alias": "product"; "required": true; "isSignal": true; }; }, { "cart": "cart"; "checkout": "checkout"; "deposit": "deposit"; }, never, never, true, never>;
|
|
11
14
|
}
|
|
@@ -5,6 +5,7 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class ProductManageVariantComponent {
|
|
6
6
|
dialog: MatDialog;
|
|
7
7
|
variant: import("@angular/core").ModelSignal<ProductVariant>;
|
|
8
|
+
price: import("@angular/core").Signal<string>;
|
|
8
9
|
expanded: boolean;
|
|
9
10
|
upload: import("@angular/core").OutputEmitterRef<FormData>;
|
|
10
11
|
variantStatus: typeof ProductInventoryStatus;
|
|
@@ -13,6 +14,7 @@ export declare class ProductManageVariantComponent {
|
|
|
13
14
|
onMediaClick(i: number): void;
|
|
14
15
|
statusCompareFn(t1: any, t2: any): boolean;
|
|
15
16
|
onStatusChange(event: MatSelectChange): void;
|
|
17
|
+
onPriceChange(event: any): void;
|
|
16
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageVariantComponent, never>;
|
|
17
19
|
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
20
|
}
|
|
@@ -13,10 +13,17 @@ export interface Product {
|
|
|
13
13
|
options: ProductOption[];
|
|
14
14
|
variants?: ProductVariant[];
|
|
15
15
|
price: number;
|
|
16
|
+
deposit: number;
|
|
17
|
+
priceType: ProductPriceType;
|
|
16
18
|
userId: string;
|
|
17
19
|
createdAt: string;
|
|
18
20
|
updatedAt: string;
|
|
19
21
|
}
|
|
22
|
+
export declare enum ProductPriceType {
|
|
23
|
+
FIXED = "\u56FA\u5B9A\u4EF7\u683C",
|
|
24
|
+
PARTIAL = "\u652F\u4ED8\u5B9A\u91D1",
|
|
25
|
+
VARIED = "\u591A\u53D8\u7684"
|
|
26
|
+
}
|
|
20
27
|
export interface ProductSection {
|
|
21
28
|
id: string;
|
|
22
29
|
title: string;
|
|
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { MatSelectChange } from '@angular/material/select';
|
|
3
3
|
import { BaseComponent } from '@rolatech/angular-components';
|
|
4
4
|
import { ProductService } from '@rolatech/angular-services';
|
|
5
|
-
import { Product, ProductCategory, ProductStatus, ProductType } from '../../../interfaces';
|
|
5
|
+
import { Product, ProductCategory, ProductPriceType, ProductStatus, ProductType } from '../../../interfaces';
|
|
6
6
|
import { ProductCategoryService } from '../../../services';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class ProductManageInfoComponent extends BaseComponent implements OnInit {
|
|
@@ -13,17 +13,17 @@ export declare class ProductManageInfoComponent extends BaseComponent implements
|
|
|
13
13
|
categories: ProductCategory[];
|
|
14
14
|
selectedCategoyIds: string[];
|
|
15
15
|
productType: typeof ProductType;
|
|
16
|
-
|
|
17
|
-
enumKeys: string[];
|
|
18
|
-
enumValues: ProductType[];
|
|
16
|
+
priceType: typeof ProductPriceType;
|
|
19
17
|
price: import("@angular/core").ModelSignal<string | undefined>;
|
|
18
|
+
deposit: import("@angular/core").ModelSignal<string>;
|
|
20
19
|
ngOnInit(): void;
|
|
21
20
|
find(): void;
|
|
22
21
|
typeCompareFn(t1: any, t2: any): boolean;
|
|
22
|
+
priceTypeCompareFn(t1: any, t2: any): boolean;
|
|
23
23
|
compareFn(o1: ProductCategory, o2: ProductCategory): boolean;
|
|
24
24
|
onTypeChange(event: MatSelectChange): void;
|
|
25
25
|
onCategoryChange(event: any): void;
|
|
26
26
|
update(): void;
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductManageInfoComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageInfoComponent, "rolatech-product-manage-info", never, { "price": { "alias": "price"; "required": false; "isSignal": true; }; }, { "price": "priceChange"; }, never, never, true, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductManageInfoComponent, "rolatech-product-manage-info", never, { "price": { "alias": "price"; "required": false; "isSignal": true; }; "deposit": { "alias": "deposit"; "required": false; "isSignal": true; }; }, { "price": "priceChange"; "deposit": "depositChange"; }, never, never, true, never>;
|
|
29
29
|
}
|