vhobjects-user 0.9.8 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -145,6 +145,10 @@ export declare class AtwFrameProductByCategory implements OnInit {
145
145
  */
146
146
  onDrop(event: DragEvent): void;
147
147
  private onGetProduct;
148
+ /**
149
+ * 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
150
+ */
151
+ pageUrl(page: number): string;
148
152
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwFrameProductByCategory, never>;
149
153
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwFrameProductByCategory, "atw-frame-product-by-category", never, { "resolution": "resolution"; "data": "data"; "id_subproject": "id_subproject"; "type": "type"; "objectChoosing": "objectChoosing"; "device": "device"; "blockChoosing": "blockChoosing"; "isPressingShift": "isPressingShift"; "isClone": "isClone"; "array_object_selected": "array_object_selected"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; "showToolBarObject": "showToolBarObject"; }, never, never>;
150
154
  }
@@ -2,8 +2,8 @@ import { EventEmitter, 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';
5
- import { Router } from '@angular/router';
6
5
  import { FunctionService } from 'vhobjects-service/src/services';
6
+ import { ActivatedRoute, Router } from '@angular/router';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class AtwFrameProducts implements OnInit {
9
9
  private vhQueryAutoWeb;
@@ -13,6 +13,7 @@ export declare class AtwFrameProducts implements OnInit {
13
13
  private vhEventMediator;
14
14
  private platformId;
15
15
  private router;
16
+ private route;
16
17
  array_object_selected: any[];
17
18
  resolution: any;
18
19
  data: any;
@@ -79,8 +80,9 @@ export declare class AtwFrameProducts implements OnInit {
79
80
  hanldleProcessResizeOffset: EventEmitter<any>;
80
81
  isComponentExist: ElementRef<HTMLDivElement>;
81
82
  private isItemVisible;
83
+ private link_object;
82
84
  constructor(vhQueryAutoWeb: VhQueryAutoWeb, pipeFrameService: PipeFrameService, functionService: FunctionService, element: ElementRef, // Dùng cho hàm setAnimationVisible trong functionService
83
- vhEventMediator: VhEventMediator, platformId: Object, router: Router);
85
+ vhEventMediator: VhEventMediator, platformId: Object, router: Router, route: ActivatedRoute);
84
86
  ngOnInit(): void;
85
87
  outputs: {
86
88
  showToolBarObject: (event: any) => void;
@@ -131,6 +133,10 @@ export declare class AtwFrameProducts implements OnInit {
131
133
  * @param value
132
134
  */
133
135
  transferFn(value: number): void;
136
+ /**
137
+ * Tính lại pageShowChoose từ đầu dựa trên pageCurrent, xử lý đúng cả khi nhảy nhiều trang (vd: goToPage)
138
+ */
139
+ private updatePageShowChoose;
134
140
  /** Chuyển về trang trước đó
135
141
  *
136
142
  */
@@ -160,6 +166,10 @@ export declare class AtwFrameProducts implements OnInit {
160
166
  * @param event
161
167
  */
162
168
  onDrop(event: DragEvent): void;
169
+ /**
170
+ * 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
+ */
172
+ pageUrl(page: number): string;
163
173
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwFrameProducts, never>;
164
174
  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>;
165
175
  }
@@ -87,7 +87,10 @@ export declare class AtwFrameTabs implements OnInit {
87
87
  /**
88
88
  * hàm xử lý tính toán lại vị trí những objects cần dịch chuyển và những objects không bị ảnh hưởng
89
89
  */
90
- private hanldleProcessResizeOffsetFrame;
90
+ private resizeObserver;
91
+ private lastObservedSize;
92
+ private setupResizeObserver;
93
+ private handleResize;
91
94
  static ɵfac: i0.ɵɵFactoryDeclaration<AtwFrameTabs, never>;
92
95
  static ɵcmp: i0.ɵɵComponentDeclaration<AtwFrameTabs, "atw-frame-tabs", never, { "data": "data"; "isClone": "isClone"; "id_subproject": "id_subproject"; "resolution": "resolution"; "type": "type"; "objectChoosing": "objectChoosing"; "device": "device"; "blockChoosing": "blockChoosing"; "array_object_selected": "array_object_selected"; "isPressingShift": "isPressingShift"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; "showToolBarObject": "showToolBarObject"; }, never, never>;
93
96
  }
@@ -0,0 +1,53 @@
1
+ import { ElementRef, EventEmitter, OnInit, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2
+ import { Subscription } from 'rxjs';
3
+ import { VhEventMediator, VhQueryAutoWeb } from 'vhautowebdb';
4
+ import { FunctionService } from 'vhobjects-service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class AtwNewFieldFrameGridDetail implements OnInit {
7
+ functionService: FunctionService;
8
+ private platformId;
9
+ private vhEventMediator;
10
+ private vhQueryAutoWeb;
11
+ private cdr;
12
+ id_subproject: any;
13
+ product: any;
14
+ resolution: any;
15
+ data: any;
16
+ type: any;
17
+ device: any;
18
+ currentField: any;
19
+ hanldleProcessResizeOffset: EventEmitter<any>;
20
+ isComponentExist: ElementRef<HTMLDivElement>;
21
+ headerTitleFrame: ElementRef<HTMLDivElement>;
22
+ headerDescFrame: ElementRef<HTMLDivElement>;
23
+ config: any;
24
+ cutWebMan: boolean;
25
+ animation: any;
26
+ staticdata: any;
27
+ prevHeight: any;
28
+ class: any;
29
+ observer: IntersectionObserver;
30
+ subscription: Subscription;
31
+ subscribe: Subscription;
32
+ dynamicHeight: string | null;
33
+ dynamicStyles: {
34
+ [key: string]: any;
35
+ } | null;
36
+ /** Biến chứa danh sách dữ liệu */
37
+ dataList: Record<string, string>[];
38
+ constructor(functionService: FunctionService, platformId: Object, vhEventMediator: VhEventMediator, vhQueryAutoWeb: VhQueryAutoWeb, cdr: ChangeDetectorRef);
39
+ ngOnInit(): void;
40
+ ngOnChanges(change: SimpleChanges): void;
41
+ ngAfterViewInit(): void;
42
+ ngOnDestroy(): void;
43
+ private getDetailObject;
44
+ getHeightItem(): string;
45
+ updateItemStyles(): void;
46
+ private getHeight;
47
+ private resizeObserver;
48
+ private lastObservedSize;
49
+ private setupResizeObserver;
50
+ private handleResize;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<AtwNewFieldFrameGridDetail, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<AtwNewFieldFrameGridDetail, "atw-newField-frame-grid-detail", never, { "id_subproject": "id_subproject"; "product": "product"; "resolution": "resolution"; "data": "data"; "type": "type"; "device": "device"; "currentField": "currentField"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
53
+ }
@@ -7,14 +7,15 @@ import * as i5 from "./customize-newField/newField-ckeditor/newField-ckeditor.co
7
7
  import * as i6 from "./customize-newField/newField-text/newField-text.component";
8
8
  import * as i7 from "./customize-newField/newField-radio-button/newField-radio-button.component";
9
9
  import * as i8 from "./customize-newField/newField-image/newField-image.component";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "ngx-color-picker";
12
- import * as i11 from "vhobjects-service";
13
- import * as i12 from "@angular/forms";
14
- import * as i13 from "@ckeditor/ckeditor5-angular";
15
- import * as i14 from "../../../../vh-language.pipe";
10
+ import * as i9 from "./customize-newField/newField-frame-grid-detail/newField-frame-grid-detail.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "ngx-color-picker";
13
+ import * as i12 from "vhobjects-service";
14
+ import * as i13 from "@angular/forms";
15
+ import * as i14 from "@ckeditor/ckeditor5-angular";
16
+ import * as i15 from "../../../../vh-language.pipe";
16
17
  export declare class CustomizeNewFieldModule {
17
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomizeNewFieldModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<CustomizeNewFieldModule, [typeof i1.AtwCustomizeNewField, typeof i2.AtwNewFieldSelect, typeof i3.AtwNewFieldInput, typeof i4.AtwNewFieldCalendar, typeof i5.AtwNewFieldCkeditor, typeof i6.AtwNewFieldText, typeof i7.AtwNewFieldRadioButton, typeof i8.AtwNewFieldImage], [typeof i9.CommonModule, typeof i10.ColorPickerModule, typeof i11.MaterialModule, typeof i11.NgZorroAntModule, typeof i12.ReactiveFormsModule, typeof i13.CKEditorModule, typeof i14.VhLanguagePipeModule, typeof i12.FormsModule], never>;
19
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CustomizeNewFieldModule, [typeof i1.AtwCustomizeNewField, typeof i2.AtwNewFieldSelect, typeof i3.AtwNewFieldInput, typeof i4.AtwNewFieldCalendar, typeof i5.AtwNewFieldCkeditor, typeof i6.AtwNewFieldText, typeof i7.AtwNewFieldRadioButton, typeof i8.AtwNewFieldImage, typeof i9.AtwNewFieldFrameGridDetail], [typeof i10.CommonModule, typeof i11.ColorPickerModule, typeof i12.MaterialModule, typeof i12.NgZorroAntModule, typeof i13.ReactiveFormsModule, typeof i14.CKEditorModule, typeof i15.VhLanguagePipeModule, typeof i13.FormsModule], never>;
19
20
  static ɵinj: i0.ɵɵInjectorDeclaration<CustomizeNewFieldModule>;
20
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vhobjects-user",
3
- "version": "0.9.8",
3
+ "version": "1.0.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^12.2.0",
6
6
  "@angular/core": "^12.2.0"