vhobjects-config 0.5.2 → 0.5.4

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.
@@ -261,6 +261,7 @@ export declare class AtwFrameProductsViewedConfig implements OnInit {
261
261
  * @param event customize sau khi thay đổi
262
262
  */
263
263
  openAnimationDetail(event: any): void;
264
+ updateTypeDisplay(): void;
264
265
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwFrameProductsViewedConfig, never>;
265
266
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwFrameProductsViewedConfig, "atw-frame-products-viewed-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "position": "position"; "class": "class"; "config": "config"; "type": "type"; "staticdata": "staticdata"; }, { "changeOptionConfig": "changeOptionConfig"; }, never, never>;
266
267
  }
@@ -231,7 +231,7 @@ export declare class AtwFrameTabsConfig implements OnInit {
231
231
  handleOkConfirm(): void;
232
232
  openImageFree(): void;
233
233
  updateTabChoosingStaticData(): void;
234
- updateTabChoosingName(): void;
234
+ updateTabChoosingName(field?: string): void;
235
235
  /**
236
236
  * Hàm này set customize mở phần mở rộng của config từ choose-animations-config truyền về
237
237
  * @param event customize sau khi thay đổi
@@ -33,7 +33,6 @@ export declare class AtwIconConfig implements OnInit {
33
33
  blocks_of_page?: any;
34
34
  iconSelected: EventEmitter<any>;
35
35
  isViewAll: boolean;
36
- fonts: any[];
37
36
  effect_hover: any[];
38
37
  customize: any[];
39
38
  effect_hover_data: any;
@@ -44,9 +43,6 @@ export declare class AtwIconConfig implements OnInit {
44
43
  id_subproject: any;
45
44
  textareaValue: string;
46
45
  dataAfterChange: any;
47
- checkIconSvg: boolean;
48
- checkIcon: boolean;
49
- selectTypeIcon: string;
50
46
  styles_field: {
51
47
  title: string;
52
48
  index: number;
@@ -64,21 +60,29 @@ export declare class AtwIconConfig implements OnInit {
64
60
  * @param event width hieght của element sau khi thay đổi
65
61
  */
66
62
  changeWidthHeight(event: any): void;
67
- parsePx(value: string | undefined): number;
63
+ /**
64
+ * Lấy fontSize từ width tổng và từ viền, khoảng đệm
65
+ */
66
+ getFontSizeFromWidth(w?: any): number;
67
+ /**
68
+ * Chọn loại icon hiển thị
69
+ */
68
70
  chooseTypeICon(value: any): void;
69
- openMap: OpenMap;
70
- saveSVG(): void;
71
71
  /**
72
- * Hàm này dùng để cho phép mở menu config .
73
- * Khi mở vị trí menu[0] thì các menu khác (menu[n]) đóng lại.
74
- * @param: value
75
- */
72
+ * Upload file SVG từ máy
73
+ * @param event file upload từ máy
74
+ */
75
+ onFileSelected(event: any): void;
76
+ /**
77
+ * Nhập Link URL
78
+ * @param url
79
+ */
80
+ loadSvgFromUrl(url?: string): void;
76
81
  /**
77
- * hàm này để xử thay đổi cấu hình của hay là StaticData
78
- * nếu this.objectChoosing.dynamic_data = true thì cập nhật vào
79
- * ngược lại cập nhật vào staticData
80
- */
81
- handleChangeConfig(): void;
82
+ * Chọn nguồn hiển thị icon svg
83
+ */
84
+ toggleIconSvgSource(event: any): void;
85
+ openMap: OpenMap;
82
86
  openHandler(value: string): void;
83
87
  /**
84
88
  * Hàm đóng
@@ -0,0 +1,187 @@
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { OnInit, SimpleChanges } from '@angular/core';
3
+ import { NzPlacementType } from 'ng-zorro-antd/dropdown';
4
+ import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AtwImageDetailRepeatConfig implements OnInit {
7
+ private http;
8
+ private vhQueryAutoWeb;
9
+ private vhEventMediator;
10
+ private platformId;
11
+ objectChoosing: any;
12
+ device: any;
13
+ class: any;
14
+ staticdata: any;
15
+ config: any;
16
+ type: any;
17
+ isCarouselActive: boolean;
18
+ isCarouselOtherImageActive: boolean;
19
+ isHoverZoomActive: boolean;
20
+ carouselID: string;
21
+ gridClass: string;
22
+ gridObjSelected: any;
23
+ arrayImage: any;
24
+ id_subproject: any;
25
+ counterIndex: number;
26
+ positionSelect: NzPlacementType;
27
+ carouselState: any;
28
+ iconArrowsSelected: any;
29
+ bootstrapIconArrows: any;
30
+ bootstrapIconArrowsUpDown: any;
31
+ style_fields: ({
32
+ title: string;
33
+ index: number;
34
+ isDrop?: undefined;
35
+ } | {
36
+ title: string;
37
+ index: number;
38
+ isDrop: boolean;
39
+ })[];
40
+ opacityArrow: string;
41
+ opacityArrowHover: string;
42
+ isViewAll: boolean;
43
+ currentViewAll: any;
44
+ effect_hover: any[];
45
+ effect_hover_data: any;
46
+ constructor(http: HttpClient, vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, platformId: Object);
47
+ ngAfterViewChecked(): void;
48
+ ngOnChanges(changes: SimpleChanges): void;
49
+ ngOnInit(): void;
50
+ setVariablesValue(): void;
51
+ setVariablesValueUpDown(): void;
52
+ /**
53
+ * hàm này nhận sk thay đổi width height từ component app-width-height-config truyền về
54
+ * @param event width hieght của element sau khi thay đổi
55
+ */
56
+ changeWidthHeight(event: any): void;
57
+ createElementID(): void;
58
+ /**
59
+ *
60
+ * @param element element cần lấy translateX
61
+ * @returns translateX: number
62
+ */
63
+ getTranslateX(element: any): number;
64
+ /**Click next của Carousel cài đặt
65
+ *
66
+ * @param id : id của carousel 'effect-carousel'
67
+ * @param amountStep số lần chuyển slide mong muốn (tự xác định trước)
68
+ */
69
+ onNext(id: any, amountStep: any): void;
70
+ /** Xử lí chuyển slide của carousel
71
+ * @param id : id của carousel [carouselID]
72
+ */
73
+ hanldeNext(id: any): void;
74
+ /** Xử lí chuyển slide của carousel
75
+ * @param id : id của carousel [carouselID]
76
+ */
77
+ hanldePrev(id: any): void;
78
+ /** Xử lí | kiểm tra hiệu ứng chuyển slide của carousel
79
+ * @param id : id của carousel [carouselID]
80
+ * @event
81
+ * các hiệu ứng
82
+ * 'carousel-default' : mặc định
83
+ * 'carousel-fadeout' : mờ dần
84
+ * 'carousel-transition' : chuyển tiếp
85
+ */
86
+ onImageNext(id: any, event: any): void;
87
+ /** Xử lí | kiểm tra hiệu ứng chuyển slide của carousel
88
+ * @param id : id của carousel [carouselID]
89
+ * @event
90
+ */
91
+ onImagePrev(id: any): void;
92
+ /** Đi tới slide thứ number
93
+ * @param id : id của carousel [carouselID]
94
+ * @param number : vị trí slide trong mảng hình ảnh arrayImage
95
+ */
96
+ gotoImageIndex(id: any, number: any): void;
97
+ /** Function event khi ấn chuột vào ảnh và giữ lại
98
+ * @param id : id của carousel [carouselID]
99
+ * @param event
100
+ */
101
+ onMouseDown(id: any, event: any): void;
102
+ /** Function event khi nhả chuột khỏi ảnh
103
+ * @param id : id của carousel [carouselID]
104
+ * @param event
105
+ */
106
+ onMouseUp(id: any, event: any): void;
107
+ /** Function event khi chuột nằm trong ảnh
108
+ * @param id : id của carousel [carouselID]
109
+ * @param event
110
+ */
111
+ onMouseEnter(id: any, event: any): void;
112
+ /** Function event khi di chuyển chuột trong ảnh
113
+ * @param id : id của carousel [carouselID]
114
+ * @param event
115
+ */
116
+ onMouseMove(id: any, event: any): void;
117
+ /** Kiểm tra xem ảnh đã ở giới hạn chưa
118
+ * @param id : id của carousel [carouselID]
119
+ * @param event
120
+ */
121
+ checkBoundary(id: any): void;
122
+ /** Chọn hiệu ứng khi chuyển slide
123
+ * @param effectName : Tên hiệu ứng 'carousel-default' | 'carousel-fadeout' | 'carousel-transition' | 'carousel-default'
124
+ */
125
+ onSelectEffect(effectName: any): void;
126
+ onClickObject(target: any, event: any): void;
127
+ removeOutlineActive(): void;
128
+ /**
129
+ * Hàm update object vào database.
130
+ */
131
+ updateObject(): void;
132
+ /**
133
+ *Hàm update config vào database.
134
+ */
135
+ updateConfig(): void;
136
+ /**
137
+ *Hàm update class vào database.
138
+ */
139
+ updateClass(): void;
140
+ /**
141
+ * Cập nhật staticdata lên database
142
+ */
143
+ updateStaticdata(): void;
144
+ onChangeArrows(arrows: any): void;
145
+ onChangeArrowsGrid2(arrows: any): void;
146
+ onChangeArrowsUpDown(arrows: any): void;
147
+ onSelectColor(): void;
148
+ onChangeColour(apply: any, event: any): void;
149
+ onChangeColourOpacity(apply: any, event: any): void;
150
+ onChangeColourOpacityUpDown(apply: any, event: any): void;
151
+ /** Xử lí lưu vị trí ảnh
152
+ * -> xử lí dữ liệu bóng -> css: object-position: `x y`
153
+ */
154
+ handleSetPositionImage(): void;
155
+ scale(): void;
156
+ hexToRgbA(hex: any, opacity: any): string;
157
+ openColour(event: any): void;
158
+ onSelectColorFor(event: any): void;
159
+ onZoomSwitch(): void;
160
+ position(value: any): void;
161
+ isOpenViewAll(event: any): void;
162
+ /**
163
+ * Hàm này dùng để mở rộng phần cấu hình.
164
+ * @param field_text : trả về phần tử được chọn của mảng style_field
165
+ */
166
+ openViewAll(field_text: any): void;
167
+ /**
168
+ * Hàm này dùng để cho phép mở menu config .
169
+ * Khi mở ở vị trí menu[0] thì các menu khác (menu[n]) đóng lại.
170
+ * @param: value
171
+ */
172
+ openHandler(value: string, isSub?: boolean): void;
173
+ openMapSub: {
174
+ [name: string]: boolean;
175
+ };
176
+ openMap: {
177
+ [name: string]: boolean;
178
+ };
179
+ customize: any[];
180
+ /**
181
+ * Hàm này set customize mở phần mở rộng của config từ choose-animations-config truyền về
182
+ * @param event customize sau khi thay đổi
183
+ */
184
+ openAnimationDetail(event: any): void;
185
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwImageDetailRepeatConfig, never>;
186
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwImageDetailRepeatConfig, "atw-image-detail-repeat-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "staticdata": "staticdata"; "config": "config"; "type": "type"; }, {}, never, never>;
187
+ }
@@ -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 {};
@@ -13,6 +13,7 @@ export declare class AtwShapeConfig implements OnInit {
13
13
  private vhImage;
14
14
  private vhEventMediator;
15
15
  private matdialog;
16
+ private matDialog;
16
17
  functionService: FunctionService;
17
18
  private languageService;
18
19
  private platformId;
@@ -55,7 +56,7 @@ export declare class AtwShapeConfig implements OnInit {
55
56
  subproject: any;
56
57
  isShowConfirmPopup: boolean;
57
58
  isConfirmLoading: boolean;
58
- constructor(vhQueryAutoWeb: VhQueryAutoWeb, sanitizer: DomSanitizer, http: HttpClient, vhImage: VhImage, vhEventMediator: VhEventMediator, matdialog: MatDialog, functionService: FunctionService, languageService: LanguageService, platformId: Object);
59
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, sanitizer: DomSanitizer, http: HttpClient, vhImage: VhImage, vhEventMediator: VhEventMediator, matdialog: MatDialog, matDialog: MatDialog, functionService: FunctionService, languageService: LanguageService, platformId: Object);
59
60
  ngOnInit(): void;
60
61
  ngOnChanges(): void;
61
62
  /**
@@ -222,6 +223,11 @@ export declare class AtwShapeConfig implements OnInit {
222
223
  updateSetups(): void;
223
224
  updateDisplaySharedConfig(device: string): void;
224
225
  updateDisplaySharedClass(device: string): void;
226
+ /**
227
+ * Mở popup so sánh màu nền và màu chữ có tương phản hay không
228
+ * (Để tối ưu Accessibility trong SEO)
229
+ */
230
+ openEditShape(): void;
225
231
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwShapeConfig, never>;
226
232
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwShapeConfig, "atw-shape-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "config": "config"; "staticdata": "staticdata"; "type": "type"; }, {}, never, never>;
227
233
  }
@@ -4,6 +4,7 @@ import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
4
4
  import { LanguageService } from 'vhobjects-service/src/services';
5
5
  import { FunctionService } from 'vhobjects-service/src/services';
6
6
  import { NzModalService } from 'ng-zorro-antd/modal';
7
+ import { MatDialog } from '@angular/material/dialog';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class AtwMenuHorizontalConfig implements OnInit {
9
10
  vhQueryAutoWeb: VhQueryAutoWeb;
@@ -14,6 +15,7 @@ export declare class AtwMenuHorizontalConfig implements OnInit {
14
15
  private nzModalService;
15
16
  private platformId;
16
17
  functionService: FunctionService;
18
+ private matDialog;
17
19
  objectChoosing: any;
18
20
  device: any;
19
21
  class: any;
@@ -27,6 +29,12 @@ export declare class AtwMenuHorizontalConfig implements OnInit {
27
29
  title: string;
28
30
  index: number;
29
31
  }[];
32
+ fieldConfigGradient: {
33
+ 5: string;
34
+ 6: string;
35
+ 7: string;
36
+ 8: string;
37
+ };
30
38
  dataAfterChange: any;
31
39
  valueRange: number;
32
40
  valueParameter: number;
@@ -67,7 +75,7 @@ export declare class AtwMenuHorizontalConfig implements OnInit {
67
75
  label: string;
68
76
  value: string;
69
77
  }[];
70
- constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService);
78
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService, matDialog: MatDialog);
71
79
  ngOnInit(): void;
72
80
  ngOnChanges(changes: SimpleChanges): void;
73
81
  /**
@@ -210,6 +218,46 @@ export declare class AtwMenuHorizontalConfig implements OnInit {
210
218
  * Cập nhật số dòng
211
219
  */
212
220
  updateLineNumber(menu: any): void;
221
+ /**
222
+ * Mở popup so sánh màu nền và màu chữ có tương phản hay không
223
+ * (Để tối ưu Accessibility trong SEO)
224
+ */
225
+ openColorContrast(type: 'menu' | 'menu_con' | 'khi_chon_menu' | 'khi_chon_menu_con'): void;
226
+ /**
227
+ * Hàm này thực hiện thêm màu gradient vào array.
228
+ * - menu - 5
229
+ * - menu_con - 6
230
+ * - khi_chon_menu - 7
231
+ * - khi_chon_menu_con - 8
232
+ */
233
+ addGradient(value: any, currentViewAllIndex: any): void;
234
+ /**
235
+ * @param index : vị trí phần tử muốn xóa
236
+ * 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ử đó.
237
+ * - menu - 5
238
+ * - menu_con - 6
239
+ * - khi_chon_menu - 7
240
+ * - khi_chon_menu_con - 8
241
+ */
242
+ deleteGradient(index: any, currentViewAllIndex: any): void;
243
+ /**
244
+ * Hàm này cho phép chọn options direction của màu gradient
245
+ * @param direction : trả về hướng phối màu được chọn
246
+ * @param event : trả về element được active
247
+ * - menu - 5
248
+ * - menu_con - 6
249
+ * - khi_chon_menu - 7
250
+ * - khi_chon_menu_con - 8
251
+ */
252
+ chooseOption(direction: any, event: any, currentViewAllIndex: any): void;
253
+ /**
254
+ * hàm cập nhật background linear-gradient
255
+ * - menu - 5
256
+ * - menu_con - 6
257
+ * - khi_chon_menu - 7
258
+ * - khi_chon_menu_con - 8
259
+ */
260
+ updateBackgroundRgb(currentViewAllIndex: any): void;
213
261
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwMenuHorizontalConfig, never>;
214
262
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwMenuHorizontalConfig, "atw-menu-horizontal-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "config": "config"; "staticdata": "staticdata"; }, {}, never, never>;
215
263
  }
@@ -4,6 +4,7 @@ import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
4
4
  import { LanguageService } from 'vhobjects-service/src/services';
5
5
  import { FunctionService } from 'vhobjects-service/src/services';
6
6
  import { NzModalService } from 'ng-zorro-antd/modal';
7
+ import { MatDialog } from '@angular/material/dialog';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class AtwMenuVerticalConfig implements OnInit {
9
10
  vhQueryAutoWeb: VhQueryAutoWeb;
@@ -14,6 +15,7 @@ export declare class AtwMenuVerticalConfig implements OnInit {
14
15
  private nzModalService;
15
16
  private platformId;
16
17
  functionService: FunctionService;
18
+ private matDialog;
17
19
  objectChoosing: any;
18
20
  device: any;
19
21
  class: any;
@@ -27,6 +29,12 @@ export declare class AtwMenuVerticalConfig implements OnInit {
27
29
  title: string;
28
30
  index: number;
29
31
  }[];
32
+ fieldConfigGradient: {
33
+ 5: string;
34
+ 6: string;
35
+ 7: string;
36
+ 8: string;
37
+ };
30
38
  dataAfterChange: any;
31
39
  valueRange: number;
32
40
  valueParameter: number;
@@ -67,7 +75,7 @@ export declare class AtwMenuVerticalConfig implements OnInit {
67
75
  label: string;
68
76
  value: string;
69
77
  }[];
70
- constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService);
78
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, http: HttpClient, vhEventMediator: VhEventMediator, renderer: Renderer2, languageService: LanguageService, nzModalService: NzModalService, platformId: Object, functionService: FunctionService, matDialog: MatDialog);
71
79
  ngOnInit(): void;
72
80
  ngOnChanges(changes: SimpleChanges): void;
73
81
  /**
@@ -214,6 +222,46 @@ export declare class AtwMenuVerticalConfig implements OnInit {
214
222
  * Cập nhật số dòng
215
223
  */
216
224
  updateLineNumber(menu: any): void;
225
+ /**
226
+ * Mở popup so sánh màu nền và màu chữ có tương phản hay không
227
+ * (Để tối ưu Accessibility trong SEO)
228
+ */
229
+ openColorContrast(type: 'menu' | 'menu_con' | 'khi_chon_menu' | 'khi_chon_menu_con'): void;
230
+ /**
231
+ * Hàm này thực hiện thêm màu gradient vào array.
232
+ * - menu - 5
233
+ * - menu_con - 6
234
+ * - khi_chon_menu - 7
235
+ * - khi_chon_menu_con - 8
236
+ */
237
+ addGradient(value: any, currentViewAllIndex: any): void;
238
+ /**
239
+ * @param index : vị trí phần tử muốn xóa
240
+ * 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ử đó.
241
+ * - menu - 5
242
+ * - menu_con - 6
243
+ * - khi_chon_menu - 7
244
+ * - khi_chon_menu_con - 8
245
+ */
246
+ deleteGradient(index: any, currentViewAllIndex: any): void;
247
+ /**
248
+ * Hàm này cho phép chọn options direction của màu gradient
249
+ * @param direction : trả về hướng phối màu được chọn
250
+ * @param event : trả về element được active
251
+ * - menu - 5
252
+ * - menu_con - 6
253
+ * - khi_chon_menu - 7
254
+ * - khi_chon_menu_con - 8
255
+ */
256
+ chooseOption(direction: any, event: any, currentViewAllIndex: any): void;
257
+ /**
258
+ * hàm cập nhật background linear-gradient
259
+ * - menu - 5
260
+ * - menu_con - 6
261
+ * - khi_chon_menu - 7
262
+ * - khi_chon_menu_con - 8
263
+ */
264
+ updateBackgroundRgb(currentViewAllIndex: any): void;
217
265
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwMenuVerticalConfig, never>;
218
266
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwMenuVerticalConfig, "atw-menu-vertical-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "config": "config"; "staticdata": "staticdata"; }, {}, never, never>;
219
267
  }
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { OnInit, SimpleChanges } from '@angular/core';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import { VhQueryAutoWeb, VhEventMediator } from 'vhautowebdb';
5
- import { FunctionService } from 'vhobjects-service/src/services';
5
+ import { FunctionService, ThemeService } from 'vhobjects-service/src/services';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class AtwButtonViewDetailConfig implements OnInit {
8
8
  vhQueryAutoWeb: VhQueryAutoWeb;
@@ -12,6 +12,7 @@ export declare class AtwButtonViewDetailConfig implements OnInit {
12
12
  private platformId;
13
13
  functionService: FunctionService;
14
14
  private matDialog;
15
+ themeService: ThemeService;
15
16
  isCollapsed: boolean;
16
17
  objectChoosing: any;
17
18
  device: any;
@@ -49,7 +50,7 @@ export declare class AtwButtonViewDetailConfig implements OnInit {
49
50
  effect_hover_data: any;
50
51
  width: number;
51
52
  height: number;
52
- constructor(vhQueryAutoWeb: VhQueryAutoWeb, dialog: MatDialog, http: HttpClient, vhEventMediator: VhEventMediator, platformId: Object, functionService: FunctionService, matDialog: MatDialog);
53
+ constructor(vhQueryAutoWeb: VhQueryAutoWeb, dialog: MatDialog, http: HttpClient, vhEventMediator: VhEventMediator, platformId: Object, functionService: FunctionService, matDialog: MatDialog, themeService: ThemeService);
53
54
  parserPercent: (value: string) => string;
54
55
  formatterPercent: (value: number) => string;
55
56
  ngOnInit(): void;
@@ -2,12 +2,14 @@ import { OnInit, SimpleChanges } from '@angular/core';
2
2
  import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
3
3
  import { NzPlacementType } from 'ng-zorro-antd/dropdown';
4
4
  import { HttpClient } from '@angular/common/http';
5
+ import { MatDialog } from '@angular/material/dialog';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class AtwImageDetailConfig implements OnInit {
7
8
  private http;
8
9
  private vhQueryAutoWeb;
9
10
  private vhEventMediator;
10
11
  private platformId;
12
+ private dialog;
11
13
  objectChoosing: any;
12
14
  device: any;
13
15
  class: any;
@@ -43,7 +45,7 @@ export declare class AtwImageDetailConfig implements OnInit {
43
45
  currentViewAll: any;
44
46
  effect_hover: any[];
45
47
  effect_hover_data: any;
46
- constructor(http: HttpClient, vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, platformId: Object);
48
+ constructor(http: HttpClient, vhQueryAutoWeb: VhQueryAutoWeb, vhEventMediator: VhEventMediator, platformId: Object, dialog: MatDialog);
47
49
  ngAfterViewChecked(): void;
48
50
  ngOnChanges(changes: SimpleChanges): void;
49
51
  ngOnInit(): void;
@@ -182,6 +184,7 @@ export declare class AtwImageDetailConfig implements OnInit {
182
184
  * @param event customize sau khi thay đổi
183
185
  */
184
186
  openAnimationDetail(event: any): void;
187
+ openDialogChooseIcon(): void;
185
188
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwImageDetailConfig, never>;
186
189
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwImageDetailConfig, "atw-image-detail-config", never, { "objectChoosing": "objectChoosing"; "device": "device"; "class": "class"; "staticdata": "staticdata"; "config": "config"; "type": "type"; }, {}, never, never>;
187
190
  }