vhobjects-user 1.0.7 → 1.0.8
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/fesm2015/vhobjects-user.js +1 -1
- package/fesm2015/vhobjects-user.js.map +1 -1
- package/lib/frames/frame-categories/user/frame-categories/frame-categories.component.d.ts +10 -2
- package/lib/frames/frame-products/user/frame-products/frame-products.component.d.ts +6 -2
- package/lib/objects/basic/button/user/button/button.component.d.ts +6 -1
- package/lib/objects/basic/button-repeat/user/button-repeat/button-repeat.component.d.ts +7 -2
- package/lib/objects/category/describe-category/user/describe-category/describe-category.component.d.ts +10 -4
- package/lib/objects/news/date-posted-news/user/date-posted-news/date-posted-news.component.d.ts +7 -3
- package/lib/objects/news/description-news/user/description-news.component.d.ts +7 -3
- package/lib/objects/news/text-news-title/user/text-news-title.component.d.ts +7 -2
- package/lib/objects/product/button-view-detail/user/button-view-detail.component.d.ts +7 -3
- package/lib/objects/product/customize-newField/user/customize-newField/customize-newField.component.d.ts +2 -1
- package/lib/objects/product/customize-newField/user/customize-newField/newField-ckeditor/newField-ckeditor.component.d.ts +7 -4
- package/lib/objects/product/customize-newField/user/customize-newField/newField-text/newField-text.component.d.ts +7 -3
- package/lib/objects/product/payment-method/user/payment-method.component.d.ts +4 -3
- package/lib/objects/product/text-short-description/user/text-short-description.component.d.ts +6 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, NgZone, OnInit } from '@angular/core';
|
|
2
2
|
import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
3
3
|
import { PipeFrameService } from '../../../../../services/pipe-frame.service';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
@@ -13,6 +13,7 @@ export declare class AtwFrameCategories implements OnInit {
|
|
|
13
13
|
element: ElementRef;
|
|
14
14
|
private platformId;
|
|
15
15
|
router: Router;
|
|
16
|
+
private zone;
|
|
16
17
|
array_object_selected: any[];
|
|
17
18
|
resolution: any;
|
|
18
19
|
data: any;
|
|
@@ -81,8 +82,10 @@ export declare class AtwFrameCategories implements OnInit {
|
|
|
81
82
|
prevHeight: any;
|
|
82
83
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
83
84
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
85
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
86
|
+
private hovering;
|
|
84
87
|
constructor(vhQueryAutoWeb: VhQueryAutoWeb, pipeFrameService: PipeFrameService, vhEventMediator: VhEventMediator, functionService: FunctionService, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
85
|
-
platformId: Object, router: Router);
|
|
88
|
+
platformId: Object, router: Router, zone: NgZone);
|
|
86
89
|
ngOnInit(): void;
|
|
87
90
|
outputs: {
|
|
88
91
|
showToolBarObject: (event: any) => void;
|
|
@@ -161,6 +164,11 @@ export declare class AtwFrameCategories implements OnInit {
|
|
|
161
164
|
* @param event
|
|
162
165
|
*/
|
|
163
166
|
onDrop(event: DragEvent): void;
|
|
167
|
+
/**
|
|
168
|
+
* Trả về URL đầy đủ của trang hiện tại kèm query param page, dùng cho href hiển thị khi hover
|
|
169
|
+
*/
|
|
170
|
+
pageUrl(page: number): string;
|
|
171
|
+
onCellHover(key: string, v: boolean): void;
|
|
164
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwFrameCategories, never>;
|
|
165
173
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwFrameCategories, "atw-frame-categories", never, { "array_object_selected": "array_object_selected"; "resolution": "resolution"; "data": "data"; "id_subproject": "id_subproject"; "type": "type"; "objectChoosing": "objectChoosing"; "device": "device"; "blockChoosing": "blockChoosing"; "isPressingShift": "isPressingShift"; "isClone": "isClone"; }, { "showToolBarObject": "showToolBarObject"; "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
166
174
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, EventEmitter, NgZone, OnInit } from '@angular/core';
|
|
2
2
|
import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
3
3
|
import { ElementRef } from '@angular/core';
|
|
4
4
|
import { PipeFrameService } from '../../../../../services/pipe-frame.service';
|
|
@@ -14,6 +14,7 @@ export declare class AtwFrameProducts implements OnInit {
|
|
|
14
14
|
private platformId;
|
|
15
15
|
private router;
|
|
16
16
|
private route;
|
|
17
|
+
private zone;
|
|
17
18
|
array_object_selected: any[];
|
|
18
19
|
resolution: any;
|
|
19
20
|
data: any;
|
|
@@ -81,8 +82,10 @@ export declare class AtwFrameProducts implements OnInit {
|
|
|
81
82
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
82
83
|
private isItemVisible;
|
|
83
84
|
private link_object;
|
|
85
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
86
|
+
private hovering;
|
|
84
87
|
constructor(vhQueryAutoWeb: VhQueryAutoWeb, pipeFrameService: PipeFrameService, functionService: FunctionService, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
85
|
-
vhEventMediator: VhEventMediator, platformId: Object, router: Router, route: ActivatedRoute);
|
|
88
|
+
vhEventMediator: VhEventMediator, platformId: Object, router: Router, route: ActivatedRoute, zone: NgZone);
|
|
86
89
|
ngOnInit(): void;
|
|
87
90
|
outputs: {
|
|
88
91
|
showToolBarObject: (event: any) => void;
|
|
@@ -170,6 +173,7 @@ export declare class AtwFrameProducts implements OnInit {
|
|
|
170
173
|
* Trả về URL đầy đủ của trang hiện tại kèm query param page, dùng cho href hiển thị khi hover
|
|
171
174
|
*/
|
|
172
175
|
pageUrl(page: number): string;
|
|
176
|
+
onCellHover(key: string, v: boolean): void;
|
|
173
177
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwFrameProducts, never>;
|
|
174
178
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwFrameProducts, "atw-frame-products", never, { "array_object_selected": "array_object_selected"; "resolution": "resolution"; "data": "data"; "id_subproject": "id_subproject"; "type": "type"; "objectChoosing": "objectChoosing"; "device": "device"; "blockChoosing": "blockChoosing"; "isPressingShift": "isPressingShift"; "isClone": "isClone"; }, { "showToolBarObject": "showToolBarObject"; "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
175
179
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { OnInit, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { VhAlgorithm, VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
6
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class AtwButton implements OnInit {
|
|
9
|
+
private matDialog;
|
|
7
10
|
private router;
|
|
8
11
|
private route;
|
|
9
12
|
private vhQueryAutoWeb;
|
|
@@ -27,11 +30,13 @@ export declare class AtwButton implements OnInit {
|
|
|
27
30
|
config: any;
|
|
28
31
|
animation: any;
|
|
29
32
|
clientSize: any;
|
|
33
|
+
subProject: any;
|
|
30
34
|
private observer;
|
|
31
35
|
private subscription;
|
|
32
36
|
/** Subscription để theo dõi sự kiện thay đổi ngôn ngữ */
|
|
33
37
|
private languageChangedSubscription;
|
|
34
|
-
|
|
38
|
+
isParentHover$: Observable<boolean>;
|
|
39
|
+
constructor(matDialog: MatDialog, router: Router, route: ActivatedRoute, vhQueryAutoWeb: VhQueryAutoWeb, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
35
40
|
elementRef: ElementRef, functionService: FunctionService, vhAlgorithm: VhAlgorithm, platformId: Object, vhEventMediator: VhEventMediator);
|
|
36
41
|
ngOnInit(): void;
|
|
37
42
|
getDetailObject(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { OnInit, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, ElementRef, EventEmitter, ChangeDetectionStrategy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { VhAlgorithm, VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AtwButtonRepeat implements OnInit {
|
|
@@ -17,6 +18,7 @@ export declare class AtwButtonRepeat implements OnInit {
|
|
|
17
18
|
id_subproject: any;
|
|
18
19
|
product: any;
|
|
19
20
|
index: any;
|
|
21
|
+
hoverKey?: string;
|
|
20
22
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
21
23
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
22
24
|
prevHeight: any;
|
|
@@ -31,10 +33,13 @@ export declare class AtwButtonRepeat implements OnInit {
|
|
|
31
33
|
/** Subscription để theo dõi sự kiện thay đổi ngôn ngữ */
|
|
32
34
|
private languageChangedSubscription;
|
|
33
35
|
dataItem: any;
|
|
36
|
+
isParentHover$: Observable<boolean>;
|
|
37
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
34
38
|
constructor(router: Router, vhQueryAutoWeb: VhQueryAutoWeb, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
35
39
|
functionService: FunctionService, vhAlgorithm: VhAlgorithm, platformId: Object, vhEventMediator: VhEventMediator);
|
|
36
40
|
ngOnInit(): void;
|
|
37
41
|
private getDetailObject;
|
|
42
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
38
43
|
ngAfterViewInit(): void;
|
|
39
44
|
ngOnDestroy(): void;
|
|
40
45
|
navigate(event: any): void;
|
|
@@ -44,5 +49,5 @@ export declare class AtwButtonRepeat implements OnInit {
|
|
|
44
49
|
private scrollToBlockWhenAvailable;
|
|
45
50
|
showRoute(): any;
|
|
46
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwButtonRepeat, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwButtonRepeat, "atw-button-repeat", never, { "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; "product": "product"; "index": "index"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwButtonRepeat, "atw-button-repeat", never, { "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; "product": "product"; "index": "index"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
48
53
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
4
4
|
import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AtwDescribeCategory implements OnInit {
|
|
7
8
|
private platformId;
|
|
@@ -16,6 +17,7 @@ export declare class AtwDescribeCategory implements OnInit {
|
|
|
16
17
|
device: any;
|
|
17
18
|
index: any;
|
|
18
19
|
id_subproject: any;
|
|
20
|
+
hoverKey?: string;
|
|
19
21
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
20
22
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
21
23
|
prevHeight: any;
|
|
@@ -73,6 +75,8 @@ export declare class AtwDescribeCategory implements OnInit {
|
|
|
73
75
|
};
|
|
74
76
|
private observer;
|
|
75
77
|
private subscription;
|
|
78
|
+
isParentHover$: Observable<boolean>;
|
|
79
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
76
80
|
constructor(platformId: Object, functionService: FunctionService, vhEventMediator: VhEventMediator, cdr: ChangeDetectorRef, vhQueryAutoWeb: VhQueryAutoWeb, element: ElementRef);
|
|
77
81
|
ngOnInit(): void;
|
|
78
82
|
ngAfterViewInit(): void;
|
|
@@ -94,12 +98,14 @@ export declare class AtwDescribeCategory implements OnInit {
|
|
|
94
98
|
*/
|
|
95
99
|
updateContentHeight(element: HTMLElement, init?: boolean): void;
|
|
96
100
|
/**
|
|
97
|
-
* Set trường content theo ngôn ngữ, dựa trên this.category và ngôn ngữ được chọn trong functionService.selectedLanguageCode, nếu không có thì hiện '
|
|
101
|
+
* Set trường content theo ngôn ngữ, dựa trên this.category và ngôn ngữ được chọn trong functionService.selectedLanguageCode, nếu không có thì hiện ''
|
|
98
102
|
*/
|
|
99
103
|
setDataContentValue(): void;
|
|
100
104
|
onEditorReady(editor: any): void;
|
|
101
|
-
|
|
105
|
+
checkContentLoaded(editor: any): void;
|
|
106
|
+
waitForImageToLoad(image: HTMLImageElement): Promise<void>;
|
|
107
|
+
onContentFullyRendered(): void;
|
|
102
108
|
private addAltPropertyOfImg;
|
|
103
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwDescribeCategory, never>;
|
|
104
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwDescribeCategory, "describe-category", never, { "category": "category"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwDescribeCategory, "describe-category", never, { "category": "category"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
105
111
|
}
|
package/lib/objects/news/date-posted-news/user/date-posted-news/date-posted-news.component.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DatePipe } from '@angular/common';
|
|
2
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, ElementRef, OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { VhAlgorithm, VhQueryAutoWeb } from 'vhautowebdb';
|
|
5
5
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
6
6
|
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
7
|
+
import { Observable, Subscription } from 'rxjs';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class AtwDatePostedNews implements OnInit {
|
|
10
10
|
private router;
|
|
@@ -20,6 +20,7 @@ export declare class AtwDatePostedNews implements OnInit {
|
|
|
20
20
|
type: any;
|
|
21
21
|
device: any;
|
|
22
22
|
id_subproject: any;
|
|
23
|
+
hoverKey?: string;
|
|
23
24
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
24
25
|
config: any;
|
|
25
26
|
animation: any;
|
|
@@ -28,8 +29,11 @@ export declare class AtwDatePostedNews implements OnInit {
|
|
|
28
29
|
class: any;
|
|
29
30
|
observer: IntersectionObserver;
|
|
30
31
|
subscription: Subscription;
|
|
32
|
+
isParentHover$: Observable<boolean>;
|
|
33
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
31
34
|
constructor(router: Router, vhQueryAutoWeb: VhQueryAutoWeb, vhAlgorithm: VhAlgorithm, functionService: FunctionService, datePipe: DatePipe, translateService: TranslateService, platformId: Object, element: ElementRef);
|
|
32
35
|
ngOnInit(): void;
|
|
36
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
33
37
|
ngAfterViewInit(): void;
|
|
34
38
|
ngOnDestroy(): void;
|
|
35
39
|
/**
|
|
@@ -45,5 +49,5 @@ export declare class AtwDatePostedNews implements OnInit {
|
|
|
45
49
|
*/
|
|
46
50
|
navigate(): void;
|
|
47
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwDatePostedNews, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwDatePostedNews, "atw-date-posted-news", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; }, {}, never, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwDatePostedNews, "atw-date-posted-news", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, {}, never, never>;
|
|
49
53
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
4
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AtwDescriptionNews implements OnInit {
|
|
7
8
|
functionService: FunctionService;
|
|
@@ -15,6 +16,7 @@ export declare class AtwDescriptionNews implements OnInit {
|
|
|
15
16
|
device: any;
|
|
16
17
|
index: any;
|
|
17
18
|
id_subproject: any;
|
|
19
|
+
hoverKey?: string;
|
|
18
20
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
19
21
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
20
22
|
prevHeight: any;
|
|
@@ -73,6 +75,8 @@ export declare class AtwDescriptionNews implements OnInit {
|
|
|
73
75
|
};
|
|
74
76
|
private observer;
|
|
75
77
|
private subscription;
|
|
78
|
+
isParentHover$: Observable<boolean>;
|
|
79
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
76
80
|
constructor(functionService: FunctionService, vhEventMediator: VhEventMediator, vhQueryAutoWeb: VhQueryAutoWeb, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
77
81
|
platformId: Object);
|
|
78
82
|
ngOnInit(): void;
|
|
@@ -95,12 +99,12 @@ export declare class AtwDescriptionNews implements OnInit {
|
|
|
95
99
|
*/
|
|
96
100
|
updateContentHeight(element: HTMLElement, init?: boolean): void;
|
|
97
101
|
/**
|
|
98
|
-
* Set trường content theo ngôn ngữ, dựa trên this.product và ngôn ngữ được chọn trong functionService.selectedLanguageCode, nếu không có thì hiện '
|
|
102
|
+
* Set trường content theo ngôn ngữ, dựa trên this.product và ngôn ngữ được chọn trong functionService.selectedLanguageCode, nếu không có thì hiện ''
|
|
99
103
|
*/
|
|
100
104
|
setDataContentValue(code?: string): void;
|
|
101
105
|
onEditorReady(editor: any): void;
|
|
102
106
|
private checkImageLoaded;
|
|
103
107
|
private addAltPropertyOfImg;
|
|
104
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwDescriptionNews, never>;
|
|
105
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwDescriptionNews, "atw-description-news", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwDescriptionNews, "atw-description-news", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
106
110
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { VhAlgorithm, VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
4
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AtwTextNewsTitle implements OnInit {
|
|
7
8
|
private router;
|
|
@@ -19,6 +20,7 @@ export declare class AtwTextNewsTitle implements OnInit {
|
|
|
19
20
|
device: any;
|
|
20
21
|
index: any;
|
|
21
22
|
id_subproject: any;
|
|
23
|
+
hoverKey?: string;
|
|
22
24
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
23
25
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
24
26
|
staticdata: any;
|
|
@@ -30,9 +32,12 @@ export declare class AtwTextNewsTitle implements OnInit {
|
|
|
30
32
|
private subscription;
|
|
31
33
|
private languageChangedSubscription;
|
|
32
34
|
prevHeight: any;
|
|
35
|
+
isParentHover$: Observable<boolean>;
|
|
36
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
33
37
|
constructor(router: Router, route: ActivatedRoute, vhQueryAutoWeb: VhQueryAutoWeb, elementRef: ElementRef, functionService: FunctionService, vhAlgorithm: VhAlgorithm, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
34
38
|
platformId: Object, vhEventMediator: VhEventMediator);
|
|
35
39
|
ngOnInit(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
36
41
|
ngOnDestroy(): void;
|
|
37
42
|
ngAfterViewInit(): void;
|
|
38
43
|
/**
|
|
@@ -45,5 +50,5 @@ export declare class AtwTextNewsTitle implements OnInit {
|
|
|
45
50
|
*/
|
|
46
51
|
textToArray(text: any): any[];
|
|
47
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwTextNewsTitle, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwTextNewsTitle, "atw-text-news-title", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
53
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwTextNewsTitle, "atw-text-news-title", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
49
54
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { VhAlgorithm, VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
4
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
5
|
import { MatDialog } from '@angular/material/dialog';
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
6
|
+
import { Observable, Subscription } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class AtwButtonViewDetail implements OnInit {
|
|
9
9
|
private matDialog;
|
|
@@ -21,6 +21,7 @@ export declare class AtwButtonViewDetail implements OnInit {
|
|
|
21
21
|
id_subproject: any;
|
|
22
22
|
product: any;
|
|
23
23
|
closePopup: any;
|
|
24
|
+
hoverKey?: string;
|
|
24
25
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
25
26
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
26
27
|
prevHeight: any;
|
|
@@ -34,9 +35,12 @@ export declare class AtwButtonViewDetail implements OnInit {
|
|
|
34
35
|
clientSize: any;
|
|
35
36
|
/** Subscription để theo dõi sự kiện thay đổi ngôn ngữ */
|
|
36
37
|
languageChangedSubscription: any;
|
|
38
|
+
isParentHover$: Observable<boolean>;
|
|
39
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
37
40
|
constructor(matDialog: MatDialog, router: Router, route: ActivatedRoute, vhQueryAutoWeb: VhQueryAutoWeb, functionService: FunctionService, vhAlgorithm: VhAlgorithm, vhEventMediator: VhEventMediator, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
38
41
|
platformId: Object);
|
|
39
42
|
ngOnInit(): void;
|
|
43
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
40
44
|
ngAfterViewInit(): void;
|
|
41
45
|
ngOnDestroy(): void;
|
|
42
46
|
/**
|
|
@@ -49,5 +53,5 @@ export declare class AtwButtonViewDetail implements OnInit {
|
|
|
49
53
|
*/
|
|
50
54
|
setProductViewed(product: any): void;
|
|
51
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwButtonViewDetail, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwButtonViewDetail, "atw-button-view-detail", never, { "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; "product": "product"; "closePopup": "closePopup"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwButtonViewDetail, "atw-button-view-detail", never, { "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; "product": "product"; "closePopup": "closePopup"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
53
57
|
}
|
|
@@ -14,6 +14,7 @@ export declare class AtwCustomizeNewField implements OnInit {
|
|
|
14
14
|
device: any;
|
|
15
15
|
index: any;
|
|
16
16
|
id_subproject: any;
|
|
17
|
+
hoverKey?: string;
|
|
17
18
|
/**
|
|
18
19
|
* isCart true: giỏ gọi chứa object newField
|
|
19
20
|
* dùng trong trường hợp chọn thuộc tính cho newField
|
|
@@ -39,5 +40,5 @@ export declare class AtwCustomizeNewField implements OnInit {
|
|
|
39
40
|
getNewField(): void;
|
|
40
41
|
hanldleProcessResizeOffsetNewField(event: any): void;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwCustomizeNewField, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwCustomizeNewField, "atw-customize-newField", never, { "product": "product"; "category": "category"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "isCart": "isCart"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwCustomizeNewField, "atw-customize-newField", never, { "product": "product"; "category": "category"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; "isCart": "isCart"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
43
44
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { VhEventMediator } from 'vhautowebdb';
|
|
4
4
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AtwNewFieldCkeditor implements OnInit {
|
|
7
8
|
functionService: FunctionService;
|
|
8
9
|
private vhEventMediator;
|
|
9
10
|
private platformId;
|
|
10
|
-
private cdf;
|
|
11
11
|
product: any;
|
|
12
12
|
data: any;
|
|
13
13
|
type: any;
|
|
14
14
|
device: any;
|
|
15
15
|
index: any;
|
|
16
16
|
id_subproject: any;
|
|
17
|
+
hoverKey?: string;
|
|
17
18
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
18
19
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
19
20
|
prevHeight: any;
|
|
@@ -70,7 +71,9 @@ export declare class AtwNewFieldCkeditor implements OnInit {
|
|
|
70
71
|
icon_name: string;
|
|
71
72
|
};
|
|
72
73
|
};
|
|
73
|
-
|
|
74
|
+
isParentHover$: Observable<boolean>;
|
|
75
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
76
|
+
constructor(functionService: FunctionService, vhEventMediator: VhEventMediator, platformId: Object);
|
|
74
77
|
ngOnInit(): void;
|
|
75
78
|
ngAfterViewInit(): void;
|
|
76
79
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -105,5 +108,5 @@ export declare class AtwNewFieldCkeditor implements OnInit {
|
|
|
105
108
|
private checkImageLoaded;
|
|
106
109
|
private addAltPropertyOfImg;
|
|
107
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwNewFieldCkeditor, never>;
|
|
108
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwNewFieldCkeditor, "atw-newField-ckeditor", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
111
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwNewFieldCkeditor, "atw-newField-ckeditor", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
109
112
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { VhAlgorithm, VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
4
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
|
-
import { Subscription } from 'rxjs';
|
|
5
|
+
import { Observable, Subscription } from 'rxjs';
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class AtwNewFieldText implements OnInit {
|
|
@@ -20,6 +20,7 @@ export declare class AtwNewFieldText implements OnInit {
|
|
|
20
20
|
product: any;
|
|
21
21
|
currentField: any;
|
|
22
22
|
id_subproject: any;
|
|
23
|
+
hoverKey?: string;
|
|
23
24
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
24
25
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
25
26
|
prevHeight: any;
|
|
@@ -31,9 +32,12 @@ export declare class AtwNewFieldText implements OnInit {
|
|
|
31
32
|
class: any;
|
|
32
33
|
observer: IntersectionObserver;
|
|
33
34
|
subscription: Subscription;
|
|
35
|
+
isParentHover$: Observable<boolean>;
|
|
36
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
34
37
|
constructor(router: Router, vhQueryAutoWeb: VhQueryAutoWeb, vhAlgorithm: VhAlgorithm, functionService: FunctionService, matDialog: MatDialog, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
35
38
|
platformId: Object, vhEventMediator: VhEventMediator);
|
|
36
39
|
ngOnInit(): void;
|
|
40
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
37
41
|
ngOnDestroy(): void;
|
|
38
42
|
ngAfterViewInit(): void;
|
|
39
43
|
/**
|
|
@@ -86,5 +90,5 @@ export declare class AtwNewFieldText implements OnInit {
|
|
|
86
90
|
*/
|
|
87
91
|
scrollToBlockWhenAvailable(blockId: string, offset?: number): void;
|
|
88
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwNewFieldText, never>;
|
|
89
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwNewFieldText, "atw-newField-text", never, { "data": "data"; "type": "type"; "device": "device"; "product": "product"; "currentField": "currentField"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
93
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwNewFieldText, "atw-newField-text", never, { "data": "data"; "type": "type"; "device": "device"; "product": "product"; "currentField": "currentField"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
90
94
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { TemplateRef, ElementRef, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, TemplateRef, ElementRef, OnDestroy, EventEmitter } from '@angular/core';
|
|
2
2
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
3
3
|
import { VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
4
|
import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class AtwPaymentMethod {
|
|
6
|
+
export declare class AtwPaymentMethod implements OnInit, OnDestroy {
|
|
7
7
|
functionService: FunctionService;
|
|
8
8
|
private vhQueryAutoWeb;
|
|
9
9
|
private modalService;
|
|
@@ -32,11 +32,12 @@ export declare class AtwPaymentMethod {
|
|
|
32
32
|
ngOnDestroy(): void;
|
|
33
33
|
getDetailObject(): void;
|
|
34
34
|
get isPreviewMode(): boolean;
|
|
35
|
+
get productQuantity(): number;
|
|
36
|
+
get isOutOfStock(): boolean;
|
|
35
37
|
selectOption(option: 'delivery' | 'pickup'): void;
|
|
36
38
|
mergeStyles(base: any, selected: any, isSelected: boolean): any;
|
|
37
39
|
openModal(event: Event): void;
|
|
38
40
|
closeModal(): void;
|
|
39
|
-
goToOrder(): void;
|
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwPaymentMethod, never>;
|
|
41
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwPaymentMethod, "atw-payment-method", never, { "data": "data"; "type": "type"; "device": "device"; "id_subproject": "id_subproject"; "product": "product"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
42
43
|
}
|
package/lib/objects/product/text-short-description/user/text-short-description.component.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { ChangeDetectionStrategy, ElementRef, EventEmitter, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
4
|
import { FunctionService } from 'vhobjects-service/src/services';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class AtwTextShortDescription implements OnInit {
|
|
7
8
|
functionService: FunctionService;
|
|
@@ -15,6 +16,7 @@ export declare class AtwTextShortDescription implements OnInit {
|
|
|
15
16
|
device: any;
|
|
16
17
|
index: any;
|
|
17
18
|
id_subproject: any;
|
|
19
|
+
hoverKey?: string;
|
|
18
20
|
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
19
21
|
isComponentExist: ElementRef<HTMLDivElement>;
|
|
20
22
|
prevHeight: any;
|
|
@@ -73,6 +75,8 @@ export declare class AtwTextShortDescription implements OnInit {
|
|
|
73
75
|
};
|
|
74
76
|
private observer;
|
|
75
77
|
private subscription;
|
|
78
|
+
isParentHover$: Observable<boolean>;
|
|
79
|
+
changeDetection: ChangeDetectionStrategy.OnPush;
|
|
76
80
|
constructor(functionService: FunctionService, vhEventMediator: VhEventMediator, vhQueryAutoWeb: VhQueryAutoWeb, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
|
|
77
81
|
platformId: Object);
|
|
78
82
|
ngOnInit(): void;
|
|
@@ -110,5 +114,5 @@ export declare class AtwTextShortDescription implements OnInit {
|
|
|
110
114
|
private checkImageLoaded;
|
|
111
115
|
private addAltPropertyOfImg;
|
|
112
116
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwTextShortDescription, never>;
|
|
113
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AtwTextShortDescription, "atw-text-short-description", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
117
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwTextShortDescription, "atw-text-short-description", never, { "product": "product"; "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; "hoverKey": "hoverKey"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
114
118
|
}
|