vhobjects-admin 0.5.4 → 0.5.6
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-admin.js +1 -1
- package/fesm2015/vhobjects-admin.js.map +1 -1
- package/lib/admin-config.module.d.ts +13 -11
- package/lib/frames/frame-products-viewed/admin-config/frame-products-viewed-admin-config/frame-products-viewed-admin-config.component.d.ts +1 -0
- package/lib/frames/frame-repeat/admin/frame-repeat-admin/frame-repeat-admin.component.d.ts +6 -4
- package/lib/frames/frame-tabs/admin-config/frame-tabs-admin-config/frame-tabs-admin-config.component.d.ts +1 -1
- package/lib/object-admin.pipe.d.ts +19 -17
- package/lib/objects/basic/flip-book/admin/flip-book-admin.component.d.ts +5 -2
- package/lib/objects/basic/flip-book/admin-config/flip-book-admin-config.component.d.ts +1 -1
- package/lib/objects/basic/icon/admin-config/icon-admin-config/icon-admin-config.component.d.ts +20 -15
- package/lib/objects/basic/image-detail-repeat/admin/image-detail-repeat-admin/image-detail-repeat-admin.component.d.ts +174 -0
- package/lib/objects/basic/image-detail-repeat/admin-config/image-detail-repeat-admin-config/image-detail-repeat-admin-config.component.d.ts +173 -0
- package/lib/objects/basic/shape/admin-config/shape-admin-config/shape-admin-config.component.d.ts +7 -1
- package/lib/objects/basic/shape/edit-shape/edit-shape.component.d.ts +146 -0
- package/lib/objects/menu/menu-horizontal/admin-config/menu-horizontal-admin-config/menu-horizontal-admin-config.component.d.ts +49 -1
- package/lib/objects/menu/menu-vertical/admin-config/menu-vertical-admin-config/menu-vertical-admin-config.component.d.ts +49 -1
- package/lib/objects/product/button-view-detail/admin-config/button-view-detail-admin-config/button-view-detail-admin-config.component.d.ts +3 -2
- package/lib/objects/product/image-detail/admin-config/image-detail-admin-config/image-detail-admin-config.component.d.ts +4 -1
- package/lib/objects/review/admin-config/review-admin-config/review-admin-config.component.d.ts +104 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
package/lib/objects/basic/shape/admin-config/shape-admin-config/shape-admin-config.component.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class AtwShapeAdminConfig extends AtwUpdateDbComponent {
|
|
|
12
12
|
private vhImage;
|
|
13
13
|
vhEventMediator: VhEventMediator;
|
|
14
14
|
private matdialog;
|
|
15
|
+
private matDialog;
|
|
15
16
|
private platformId;
|
|
16
17
|
functionService: FunctionService;
|
|
17
18
|
/** object đang chọn */
|
|
@@ -56,7 +57,7 @@ export declare class AtwShapeAdminConfig extends AtwUpdateDbComponent {
|
|
|
56
57
|
effect_hover_data: any;
|
|
57
58
|
customize: any[];
|
|
58
59
|
configMode: 'basic' | 'advanced';
|
|
59
|
-
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, nzMessageService: NzMessageService, vhImage: VhImage, vhEventMediator: VhEventMediator, matdialog: MatDialog, platformId: Object, functionService: FunctionService);
|
|
60
|
+
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, nzMessageService: NzMessageService, vhImage: VhImage, vhEventMediator: VhEventMediator, matdialog: MatDialog, matDialog: MatDialog, platformId: Object, functionService: FunctionService);
|
|
60
61
|
ngOnInit(): void;
|
|
61
62
|
ngOnChanges(): void;
|
|
62
63
|
/**
|
|
@@ -130,6 +131,11 @@ export declare class AtwShapeAdminConfig extends AtwUpdateDbComponent {
|
|
|
130
131
|
updateBgCheck(): void;
|
|
131
132
|
onRadiusChange(position: string, value: any): void;
|
|
132
133
|
onRadiusBlur(position: string, value: string): void;
|
|
134
|
+
/**
|
|
135
|
+
* Mở popup so sánh màu nền và màu chữ có tương phản hay không
|
|
136
|
+
* (Để tối ưu Accessibility trong SEO)
|
|
137
|
+
*/
|
|
138
|
+
openEditShape(): void;
|
|
133
139
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwShapeAdminConfig, never>;
|
|
134
140
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwShapeAdminConfig, "atw-shape-admin-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "config": "config"; "staticdata": "staticdata"; "blocks_of_page": "blocks_of_page"; "type": "type"; }, {}, never, never>;
|
|
135
141
|
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EditShapeComponent implements OnInit {
|
|
5
|
+
data: any;
|
|
6
|
+
private dialogRef;
|
|
7
|
+
private cd;
|
|
8
|
+
private platformId;
|
|
9
|
+
container: ElementRef<HTMLDivElement>;
|
|
10
|
+
svgOverlay: ElementRef<SVGSVGElement>;
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
bgImage: string;
|
|
14
|
+
bgColor: string;
|
|
15
|
+
shape: ClipShape;
|
|
16
|
+
units: Units;
|
|
17
|
+
gridStepPercent: number;
|
|
18
|
+
active: ActiveHandle;
|
|
19
|
+
dragging: boolean;
|
|
20
|
+
enableOverlay: boolean;
|
|
21
|
+
opacityOverlay: number;
|
|
22
|
+
editInput: ElementRef<HTMLInputElement | HTMLTextAreaElement>;
|
|
23
|
+
editing: boolean;
|
|
24
|
+
editingValue: string;
|
|
25
|
+
constructor(data: any, dialogRef: MatDialogRef<EditShapeComponent>, cd: ChangeDetectorRef, platformId: Object);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngAfterViewInit(): void;
|
|
28
|
+
/**
|
|
29
|
+
* Phân tích chuỗi clip-path (chỉ hỗ trợ polygon) để trả về mảng các cặp tọa độ [x, y] ở dạng chuỗi.
|
|
30
|
+
* @param clipPathString Chuỗi CSS clip-path, ví dụ: "polygon(50% 0%, 100% 50%)"
|
|
31
|
+
* @returns Mảng các cặp [x, y] (kiểu tuple) ở dạng chuỗi: Array<[string, string]>.
|
|
32
|
+
*/
|
|
33
|
+
private parseClipPath;
|
|
34
|
+
getClipPath(): string;
|
|
35
|
+
private polygonClip;
|
|
36
|
+
private insetClip;
|
|
37
|
+
private ellipseClip;
|
|
38
|
+
private circleClip;
|
|
39
|
+
private clientToPercent;
|
|
40
|
+
private snap;
|
|
41
|
+
pointerDownOnHandle(event: PointerEvent, handle: ActiveHandle): void;
|
|
42
|
+
onPointerMove(event: PointerEvent): void;
|
|
43
|
+
onPointerUp(event: PointerEvent): void;
|
|
44
|
+
svgClick(event: MouseEvent): void;
|
|
45
|
+
addPolygonPointAt(index: number): void;
|
|
46
|
+
private pointToSegmentDistance;
|
|
47
|
+
removePolygonPoint(i: number): void;
|
|
48
|
+
/** Hàm copy css vào bộ nhớ tạm */
|
|
49
|
+
copy(type: 'css' | 'value'): Promise<void>;
|
|
50
|
+
private loadShape;
|
|
51
|
+
polygonPointsAttr(): string;
|
|
52
|
+
/** Đóng popup */
|
|
53
|
+
close(isSave?: boolean): void;
|
|
54
|
+
handleKeyDown(event: KeyboardEvent): void;
|
|
55
|
+
chooseShape(event: any, item: any): void;
|
|
56
|
+
private isColor;
|
|
57
|
+
private normalizeToPercent;
|
|
58
|
+
/**
|
|
59
|
+
* Xử lý phím trong edit
|
|
60
|
+
* (Chỉ hoạt động khi edit)
|
|
61
|
+
* @param event Phím nhấn bàn phím
|
|
62
|
+
*/
|
|
63
|
+
onEditKeydown(event: KeyboardEvent): void;
|
|
64
|
+
/**
|
|
65
|
+
* Bắt đầu edit khi dblclick
|
|
66
|
+
*/
|
|
67
|
+
startEditing(event: MouseEvent): void;
|
|
68
|
+
/**
|
|
69
|
+
* Lưu thay đổi:
|
|
70
|
+
* - Cập nhật staticdata (Nội dung chuỗi)
|
|
71
|
+
* - Cập nhật class (style cho chuỗi)
|
|
72
|
+
* @param event mục đích để lấy `target as HTMLElement`
|
|
73
|
+
*/
|
|
74
|
+
saveEditing(event?: any): void;
|
|
75
|
+
/**
|
|
76
|
+
* Thoát chỉnh sửa trực tiếp
|
|
77
|
+
*/
|
|
78
|
+
private cancelEditing;
|
|
79
|
+
/**
|
|
80
|
+
* Đặt caret ở cuối cùng của chuỗi
|
|
81
|
+
*/
|
|
82
|
+
private placeCaretAtEnd;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EditShapeComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EditShapeComponent, "app-edit-shape", never, {}, {}, never, never>;
|
|
85
|
+
}
|
|
86
|
+
interface Point {
|
|
87
|
+
x: number;
|
|
88
|
+
y: number;
|
|
89
|
+
}
|
|
90
|
+
declare type Units = 'percent' | 'px';
|
|
91
|
+
interface PolygonShape {
|
|
92
|
+
kind: 'polygon';
|
|
93
|
+
points: Point[];
|
|
94
|
+
units: Units;
|
|
95
|
+
}
|
|
96
|
+
interface InsetShape {
|
|
97
|
+
kind: 'inset';
|
|
98
|
+
top: number;
|
|
99
|
+
right: number;
|
|
100
|
+
bottom: number;
|
|
101
|
+
left: number;
|
|
102
|
+
borderRadius?: string;
|
|
103
|
+
units: Units;
|
|
104
|
+
}
|
|
105
|
+
interface EllipseShape {
|
|
106
|
+
kind: 'ellipse';
|
|
107
|
+
cx: number;
|
|
108
|
+
cy: number;
|
|
109
|
+
rx: number;
|
|
110
|
+
ry: number;
|
|
111
|
+
rotation: number;
|
|
112
|
+
units: Units;
|
|
113
|
+
}
|
|
114
|
+
interface CircleShape {
|
|
115
|
+
kind: 'circle';
|
|
116
|
+
cx: number;
|
|
117
|
+
cy: number;
|
|
118
|
+
r: number;
|
|
119
|
+
units: Units;
|
|
120
|
+
}
|
|
121
|
+
declare type ClipShape = PolygonShape | InsetShape | EllipseShape | CircleShape;
|
|
122
|
+
declare type ActiveHandle = {
|
|
123
|
+
type: 'polygon-point';
|
|
124
|
+
index: number;
|
|
125
|
+
} | {
|
|
126
|
+
type: 'inset-edge';
|
|
127
|
+
edge: 'top' | 'right' | 'bottom' | 'left';
|
|
128
|
+
} | {
|
|
129
|
+
type: 'inset-corner';
|
|
130
|
+
corner: 'tl' | 'tr' | 'br' | 'bl' | string;
|
|
131
|
+
} | {
|
|
132
|
+
type: 'move-shape';
|
|
133
|
+
} | {
|
|
134
|
+
type: 'ellipse-center';
|
|
135
|
+
} | {
|
|
136
|
+
type: 'ellipse-radius-x';
|
|
137
|
+
} | {
|
|
138
|
+
type: 'ellipse-radius-y';
|
|
139
|
+
} | {
|
|
140
|
+
type: 'ellipse-rotation';
|
|
141
|
+
} | {
|
|
142
|
+
type: 'circle-center';
|
|
143
|
+
} | {
|
|
144
|
+
type: 'circle-radius';
|
|
145
|
+
} | null;
|
|
146
|
+
export {};
|
|
@@ -5,6 +5,7 @@ import { LanguageService } from 'vhobjects-service/src/services';
|
|
|
5
5
|
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
6
6
|
import { AtwUpdateDbComponent } from 'vhobjects-service';
|
|
7
7
|
import { FunctionService } from 'vhobjects-service';
|
|
8
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class AtwMenuHorizontalAdminConfig extends AtwUpdateDbComponent implements OnInit {
|
|
10
11
|
vhQueryAutoWeb: VhQueryAutoWeb;
|
|
@@ -15,6 +16,7 @@ export declare class AtwMenuHorizontalAdminConfig extends AtwUpdateDbComponent i
|
|
|
15
16
|
private nzModalService;
|
|
16
17
|
private platformId;
|
|
17
18
|
functionService: FunctionService;
|
|
19
|
+
private matDialog;
|
|
18
20
|
objectChoosing: any;
|
|
19
21
|
device: any;
|
|
20
22
|
class: any;
|
|
@@ -28,6 +30,12 @@ export declare class AtwMenuHorizontalAdminConfig extends AtwUpdateDbComponent i
|
|
|
28
30
|
title: string;
|
|
29
31
|
index: number;
|
|
30
32
|
}[];
|
|
33
|
+
fieldConfigGradient: {
|
|
34
|
+
5: string;
|
|
35
|
+
6: string;
|
|
36
|
+
7: string;
|
|
37
|
+
8: string;
|
|
38
|
+
};
|
|
31
39
|
dataAfterChange: any;
|
|
32
40
|
valueRange: number;
|
|
33
41
|
valueParameter: number;
|
|
@@ -69,7 +77,7 @@ export declare class AtwMenuHorizontalAdminConfig extends AtwUpdateDbComponent i
|
|
|
69
77
|
label: string;
|
|
70
78
|
value: string;
|
|
71
79
|
}[];
|
|
72
|
-
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService);
|
|
80
|
+
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService, matDialog: MatDialog);
|
|
73
81
|
ngOnInit(): void;
|
|
74
82
|
ngOnChanges(changes: SimpleChanges): void;
|
|
75
83
|
/**
|
|
@@ -202,6 +210,46 @@ export declare class AtwMenuHorizontalAdminConfig extends AtwUpdateDbComponent i
|
|
|
202
210
|
* Cập nhật số dòng
|
|
203
211
|
*/
|
|
204
212
|
updateLineNumber(menu: any): void;
|
|
213
|
+
/**
|
|
214
|
+
* Mở popup so sánh màu nền và màu chữ có tương phản hay không
|
|
215
|
+
* (Để tối ưu Accessibility trong SEO)
|
|
216
|
+
*/
|
|
217
|
+
openColorContrast(type: 'menu' | 'menu_con' | 'khi_chon_menu' | 'khi_chon_menu_con'): void;
|
|
218
|
+
/**
|
|
219
|
+
* Hàm này thực hiện thêm màu gradient vào array.
|
|
220
|
+
* - menu - 5
|
|
221
|
+
* - menu_con - 6
|
|
222
|
+
* - khi_chon_menu - 7
|
|
223
|
+
* - khi_chon_menu_con - 8
|
|
224
|
+
*/
|
|
225
|
+
addGradient(value: any, currentViewAllIndex: any): void;
|
|
226
|
+
/**
|
|
227
|
+
* @param index : vị trí phần tử muốn xóa
|
|
228
|
+
* Hàm này cho phép xóa phần tử màu gradient trong array bằng index của phần tử đó.
|
|
229
|
+
* - menu - 5
|
|
230
|
+
* - menu_con - 6
|
|
231
|
+
* - khi_chon_menu - 7
|
|
232
|
+
* - khi_chon_menu_con - 8
|
|
233
|
+
*/
|
|
234
|
+
deleteGradient(index: any, currentViewAllIndex: any): void;
|
|
235
|
+
/**
|
|
236
|
+
* Hàm này cho phép chọn options direction của màu gradient
|
|
237
|
+
* @param direction : trả về hướng phối màu được chọn
|
|
238
|
+
* @param event : trả về element được active
|
|
239
|
+
* - menu - 5
|
|
240
|
+
* - menu_con - 6
|
|
241
|
+
* - khi_chon_menu - 7
|
|
242
|
+
* - khi_chon_menu_con - 8
|
|
243
|
+
*/
|
|
244
|
+
chooseOption(direction: any, event: any, currentViewAllIndex: any): void;
|
|
245
|
+
/**
|
|
246
|
+
* hàm cập nhật background linear-gradient
|
|
247
|
+
* - menu - 5
|
|
248
|
+
* - menu_con - 6
|
|
249
|
+
* - khi_chon_menu - 7
|
|
250
|
+
* - khi_chon_menu_con - 8
|
|
251
|
+
*/
|
|
252
|
+
updateBackgroundRgb(currentViewAllIndex: any): void;
|
|
205
253
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwMenuHorizontalAdminConfig, never>;
|
|
206
254
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwMenuHorizontalAdminConfig, "atw-menu-horizontal-admin-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "config": "config"; "staticdata": "staticdata"; }, {}, never, never>;
|
|
207
255
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
|
|
4
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
4
5
|
import { LanguageService } from 'vhobjects-service/src/services';
|
|
5
6
|
import { AtwUpdateDbComponent } from 'vhobjects-service';
|
|
6
7
|
import { FunctionService } from 'vhobjects-service';
|
|
@@ -15,6 +16,7 @@ export declare class AtwMenuVerticalAdminConfig extends AtwUpdateDbComponent imp
|
|
|
15
16
|
private nzModalService;
|
|
16
17
|
private platformId;
|
|
17
18
|
functionService: FunctionService;
|
|
19
|
+
private matDialog;
|
|
18
20
|
objectChoosing: any;
|
|
19
21
|
device: any;
|
|
20
22
|
class: any;
|
|
@@ -28,6 +30,12 @@ export declare class AtwMenuVerticalAdminConfig extends AtwUpdateDbComponent imp
|
|
|
28
30
|
title: string;
|
|
29
31
|
index: number;
|
|
30
32
|
}[];
|
|
33
|
+
fieldConfigGradient: {
|
|
34
|
+
5: string;
|
|
35
|
+
6: string;
|
|
36
|
+
7: string;
|
|
37
|
+
8: string;
|
|
38
|
+
};
|
|
31
39
|
dataAfterChange: any;
|
|
32
40
|
valueRange: number;
|
|
33
41
|
valueParameter: number;
|
|
@@ -69,7 +77,7 @@ export declare class AtwMenuVerticalAdminConfig extends AtwUpdateDbComponent imp
|
|
|
69
77
|
label: string;
|
|
70
78
|
value: string;
|
|
71
79
|
}[];
|
|
72
|
-
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService);
|
|
80
|
+
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService, matDialog: MatDialog);
|
|
73
81
|
ngOnInit(): void;
|
|
74
82
|
ngOnChanges(changes: SimpleChanges): void;
|
|
75
83
|
/**
|
|
@@ -206,6 +214,46 @@ export declare class AtwMenuVerticalAdminConfig extends AtwUpdateDbComponent imp
|
|
|
206
214
|
* Cập nhật số dòng
|
|
207
215
|
*/
|
|
208
216
|
updateLineNumber(menu: any): void;
|
|
217
|
+
/**
|
|
218
|
+
* Mở popup so sánh màu nền và màu chữ có tương phản hay không
|
|
219
|
+
* (Để tối ưu Accessibility trong SEO)
|
|
220
|
+
*/
|
|
221
|
+
openColorContrast(type: 'menu' | 'menu_con' | 'khi_chon_menu' | 'khi_chon_menu_con'): void;
|
|
222
|
+
/**
|
|
223
|
+
* Hàm này thực hiện thêm màu gradient vào array.
|
|
224
|
+
* - menu - 5
|
|
225
|
+
* - menu_con - 6
|
|
226
|
+
* - khi_chon_menu - 7
|
|
227
|
+
* - khi_chon_menu_con - 8
|
|
228
|
+
*/
|
|
229
|
+
addGradient(value: any, currentViewAllIndex: any): void;
|
|
230
|
+
/**
|
|
231
|
+
* @param index : vị trí phần tử muốn xóa
|
|
232
|
+
* Hàm này cho phép xóa phần tử màu gradient trong array bằng index của phần tử đó.
|
|
233
|
+
* - menu - 5
|
|
234
|
+
* - menu_con - 6
|
|
235
|
+
* - khi_chon_menu - 7
|
|
236
|
+
* - khi_chon_menu_con - 8
|
|
237
|
+
*/
|
|
238
|
+
deleteGradient(index: any, currentViewAllIndex: any): void;
|
|
239
|
+
/**
|
|
240
|
+
* Hàm này cho phép chọn options direction của màu gradient
|
|
241
|
+
* @param direction : trả về hướng phối màu được chọn
|
|
242
|
+
* @param event : trả về element được active
|
|
243
|
+
* - menu - 5
|
|
244
|
+
* - menu_con - 6
|
|
245
|
+
* - khi_chon_menu - 7
|
|
246
|
+
* - khi_chon_menu_con - 8
|
|
247
|
+
*/
|
|
248
|
+
chooseOption(direction: any, event: any, currentViewAllIndex: any): void;
|
|
249
|
+
/**
|
|
250
|
+
* hàm cập nhật background linear-gradient
|
|
251
|
+
* - menu - 5
|
|
252
|
+
* - menu_con - 6
|
|
253
|
+
* - khi_chon_menu - 7
|
|
254
|
+
* - khi_chon_menu_con - 8
|
|
255
|
+
*/
|
|
256
|
+
updateBackgroundRgb(currentViewAllIndex: any): void;
|
|
209
257
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwMenuVerticalAdminConfig, never>;
|
|
210
258
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwMenuVerticalAdminConfig, "atw-menu-vertical-admin-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "config": "config"; "staticdata": "staticdata"; }, {}, never, never>;
|
|
211
259
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { OnInit, SimpleChanges } from '@angular/core';
|
|
3
3
|
import { VhQueryAutoWeb, VhEventMediator } from 'vhautowebdb';
|
|
4
|
-
import { FunctionService } from 'vhobjects-service';
|
|
4
|
+
import { FunctionService, ThemeService } from 'vhobjects-service';
|
|
5
5
|
import { AtwUpdateDbComponent } from 'vhobjects-service';
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -12,6 +12,7 @@ export declare class AtwButtonViewDetailAdminConfig extends AtwUpdateDbComponent
|
|
|
12
12
|
private platformId;
|
|
13
13
|
functionService: FunctionService;
|
|
14
14
|
private matDialog;
|
|
15
|
+
themeService: ThemeService;
|
|
15
16
|
objectChoosing: any;
|
|
16
17
|
device: any;
|
|
17
18
|
class: any;
|
|
@@ -41,7 +42,7 @@ export declare class AtwButtonViewDetailAdminConfig extends AtwUpdateDbComponent
|
|
|
41
42
|
effect_hover_data: any;
|
|
42
43
|
width: number;
|
|
43
44
|
height: number;
|
|
44
|
-
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, platformId: Object, functionService: FunctionService, matDialog: MatDialog);
|
|
45
|
+
constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, platformId: Object, functionService: FunctionService, matDialog: MatDialog, themeService: ThemeService);
|
|
45
46
|
parserPercent: (value: string) => string;
|
|
46
47
|
formatterPercent: (value: number) => string;
|
|
47
48
|
ngOnInit(): void;
|
|
@@ -4,6 +4,7 @@ import { NzPlacementType } from 'ng-zorro-antd/dropdown';
|
|
|
4
4
|
import { AtwUpdateDbComponent } from 'vhobjects-service';
|
|
5
5
|
import { FunctionService } from 'vhobjects-service';
|
|
6
6
|
import { HttpClient } from '@angular/common/http';
|
|
7
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class AtwImageDetailAdminConfig extends AtwUpdateDbComponent implements OnInit {
|
|
9
10
|
private http;
|
|
@@ -11,6 +12,7 @@ export declare class AtwImageDetailAdminConfig extends AtwUpdateDbComponent impl
|
|
|
11
12
|
vhEventMediator: VhEventMediator;
|
|
12
13
|
private platformId;
|
|
13
14
|
functionService: FunctionService;
|
|
15
|
+
private dialog;
|
|
14
16
|
objectChoosing: any;
|
|
15
17
|
device: any;
|
|
16
18
|
class: any;
|
|
@@ -47,7 +49,7 @@ export declare class AtwImageDetailAdminConfig extends AtwUpdateDbComponent impl
|
|
|
47
49
|
configMode: 'basic' | 'advanced';
|
|
48
50
|
effect_hover: any[];
|
|
49
51
|
effect_hover_data: any;
|
|
50
|
-
constructor(http: HttpClient, vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, platformId: Object, functionService: FunctionService);
|
|
52
|
+
constructor(http: HttpClient, vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, platformId: Object, functionService: FunctionService, dialog: MatDialog);
|
|
51
53
|
ngAfterViewChecked(): void;
|
|
52
54
|
ngOnChanges(changes: SimpleChanges): void;
|
|
53
55
|
ngOnInit(): void;
|
|
@@ -169,6 +171,7 @@ export declare class AtwImageDetailAdminConfig extends AtwUpdateDbComponent impl
|
|
|
169
171
|
* @param event customize sau khi thay đổi
|
|
170
172
|
*/
|
|
171
173
|
openAnimationDetail(event: any): void;
|
|
174
|
+
openDialogChooseIcon(): void;
|
|
172
175
|
static ɵfac: i0.ɵɵFactoryDeclaration<AtwImageDetailAdminConfig, never>;
|
|
173
176
|
static ɵcmp: i0.ɵɵComponentDeclaration<AtwImageDetailAdminConfig, "atw-image-detail-admin-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "staticdata": "staticdata"; "config": "config"; "type": "type"; }, {}, never, never>;
|
|
174
177
|
}
|
package/lib/objects/review/admin-config/review-admin-config/review-admin-config.component.d.ts
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
3
|
+
import { VhQueryAutoWeb, VhEventMediator } from 'vhautowebdb';
|
|
4
|
+
import { AtwUpdateDbComponent } from 'vhobjects-service';
|
|
5
|
+
import { FunctionService } from 'vhobjects-service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AtwReviewAdminConfig extends AtwUpdateDbComponent implements OnInit {
|
|
8
|
+
vhQueryAutoWeb: VhQueryAutoWeb;
|
|
9
|
+
vhEventMediator: VhEventMediator;
|
|
10
|
+
private http;
|
|
11
|
+
private platformId;
|
|
12
|
+
functionService: FunctionService;
|
|
13
|
+
objectChoosing: any;
|
|
14
|
+
device: any;
|
|
15
|
+
position: any;
|
|
16
|
+
class: any;
|
|
17
|
+
config: any;
|
|
18
|
+
staticdata: any;
|
|
19
|
+
type: any;
|
|
20
|
+
blocks_of_page: any;
|
|
21
|
+
changeOptionConfig: EventEmitter<any>;
|
|
22
|
+
isViewAll: boolean;
|
|
23
|
+
isCollapsed: boolean;
|
|
24
|
+
configMode: 'basic' | 'advanced';
|
|
25
|
+
currentViewAll: any;
|
|
26
|
+
fonts: any[];
|
|
27
|
+
effect_hover: any[];
|
|
28
|
+
effect_hover_data: any;
|
|
29
|
+
customize: any;
|
|
30
|
+
bootstrapIconArrows: any;
|
|
31
|
+
stylesField: {
|
|
32
|
+
title: string;
|
|
33
|
+
index: number;
|
|
34
|
+
}[];
|
|
35
|
+
typeGradient: {
|
|
36
|
+
type: string;
|
|
37
|
+
direction: string;
|
|
38
|
+
name: string;
|
|
39
|
+
deg: string;
|
|
40
|
+
}[];
|
|
41
|
+
constructor(vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, http: HttpClient, platformId: Object, functionService: FunctionService);
|
|
42
|
+
ngOnInit(): void;
|
|
43
|
+
openViewAll(field: any): void;
|
|
44
|
+
openMap: {
|
|
45
|
+
[name: string]: boolean;
|
|
46
|
+
};
|
|
47
|
+
openHandler(value: string): void;
|
|
48
|
+
/**
|
|
49
|
+
* Khi thay đổi cấu hình Giới hạn chiều cao để cuộn
|
|
50
|
+
*/
|
|
51
|
+
updateMaxHeight(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Hàm update object vào database.
|
|
54
|
+
*/
|
|
55
|
+
updateObject(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Hàm update class vào database.
|
|
58
|
+
*/
|
|
59
|
+
updateClass(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Hàm update config vào database.
|
|
62
|
+
*/
|
|
63
|
+
updateConfig(): void;
|
|
64
|
+
/**
|
|
65
|
+
* Hàm update staticdata vào database.
|
|
66
|
+
*/
|
|
67
|
+
updateStaticdata(): void;
|
|
68
|
+
/**
|
|
69
|
+
* Hàm này set customize mở phần mở rộng của config từ choose-animations-config truyền về
|
|
70
|
+
* @param event customize sau khi thay đổi
|
|
71
|
+
*/
|
|
72
|
+
openAnimationDetail(event: any): void;
|
|
73
|
+
updateBackgroundRgb(): void;
|
|
74
|
+
/**Hàm này dùng để click chọn màu nền của danh sách màu.
|
|
75
|
+
* @param bgColor : trả về màu được chọn
|
|
76
|
+
* @param event : trả về element được active
|
|
77
|
+
*/
|
|
78
|
+
chooseBg(bgColor: any, event: any): void;
|
|
79
|
+
/** Hàm này cho phép chọn options direction của màu gradient
|
|
80
|
+
* @param direction : trả về hướng phối màu được chọn
|
|
81
|
+
* @param event : trả về element được active
|
|
82
|
+
*/
|
|
83
|
+
chooseOption(direction: any, event: any): void;
|
|
84
|
+
/**
|
|
85
|
+
* Chuyển đổi mã màu hexadecimal thành mã màu rgba.
|
|
86
|
+
* @param hex : tham số trả về mã màu hex
|
|
87
|
+
* @returns string : trả về chuỗi rgb
|
|
88
|
+
*/
|
|
89
|
+
hexToRGB(hex: string): string;
|
|
90
|
+
/**
|
|
91
|
+
* Hàm này thực hiện thêm màu gradient vào array.
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
addGradient(value: any): void;
|
|
95
|
+
/**
|
|
96
|
+
* @param index : vị trí phần tử muốn xóa
|
|
97
|
+
* Hàm này cho phép xóa phần tử màu gradient trong array bằng index của phần tử đó.
|
|
98
|
+
*/
|
|
99
|
+
deleteGradient(index: any): void;
|
|
100
|
+
onChangeArrows(arrows: any): void;
|
|
101
|
+
onReviewTypeChange(type: 'review' | 'comment'): void;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtwReviewAdminConfig, never>;
|
|
103
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwReviewAdminConfig, "app-review-admin-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "position": "position"; "class": "class"; "config": "config"; "staticdata": "staticdata"; "type": "type"; "blocks_of_page": "blocks_of_page"; }, { "changeOptionConfig": "changeOptionConfig"; }, never, never>;
|
|
104
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -171,3 +171,6 @@ export * from './lib/objects/product/text-availability/admin-config/text-availab
|
|
|
171
171
|
export * from './lib/objects/basic/video-repeat/admin-config/video-repeat-admin-config.component';
|
|
172
172
|
export * from './lib/objects/basic/date-repeat/admin-config/date-repeat-admin-config.component';
|
|
173
173
|
export * from './lib/objects/basic/popup-repeat/admin-config/popup-repeat-admin-config/popup-repeat-admin-config.component';
|
|
174
|
+
export * from './lib/objects/review/admin-config/review-admin-config/review-admin-config.component';
|
|
175
|
+
export * from './lib/objects/basic/image-detail-repeat/admin/image-detail-repeat-admin/image-detail-repeat-admin.component';
|
|
176
|
+
export * from './lib/objects/basic/image-detail-repeat/admin-config/image-detail-repeat-admin-config/image-detail-repeat-admin-config.component';
|