fw-webbuilder 1.1.240 → 1.1.241

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/index.d.ts CHANGED
@@ -19,6 +19,10 @@ import { NzTableQueryParams } from 'ng-zorro-antd/table';
19
19
  */
20
20
  declare class webBuilderService {
21
21
  private http;
22
+ private pendingObjectUpdates;
23
+ private pendingBlockUpdates;
24
+ private pendingPageUpdates;
25
+ private pendingProjectUpdates;
22
26
  private apiUrl;
23
27
  private urlBE;
24
28
  group: any;
@@ -110,8 +114,6 @@ declare class webBuilderService {
110
114
  FONTS: any;
111
115
  ctrlZ: any;
112
116
  ctrlY: any;
113
- productDetail: any;
114
- categoryDetail: any;
115
117
  constructor(http: HttpClient);
116
118
  closeConnection(): void;
117
119
  onNotifyChange(callback: (data: any) => void): any;
@@ -249,6 +251,7 @@ declare class webBuilderService {
249
251
  updateNews(id: string, data: any): Promise<any>;
250
252
  deleteNews(id: string): Promise<any>;
251
253
  getNews_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
254
+ getDetailNews_byLink(link: string): Promise<any>;
252
255
  getNewss_byCategoryLink(link_category: string, query: any, sort: any, page?: number, limit?: number): Promise<any>;
253
256
  addNewField(data: any): Promise<any>;
254
257
  updateNewField(id: string, data: any): Promise<any>;
@@ -353,6 +356,7 @@ declare class webBuilderService {
353
356
  deleteContactSupport(id: string): Promise<any>;
354
357
  getContactSupports_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
355
358
  getAdminUsers_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
359
+ addAdminUser(data: any): Promise<any>;
356
360
  /**
357
361
  * Biến dữ liệu thô AI (data.txt) thành danh sách các khỏi (block) có chứa objects
358
362
  * @param rawData Mảng data thô chứa thông tin layout từ AI
@@ -368,9 +372,7 @@ declare class webBuilderService {
368
372
  updateExpiredAt(id_project: string, expired_at: string): Promise<any>;
369
373
  getDashboard(startDate: string, endDate: string): Promise<Object>;
370
374
  private getVisitorId;
371
- addAdminUser(data: any): Promise<any>;
372
375
  changeTemplate(db: string, id_template: string): Promise<Object>;
373
- getDetailNews_byLink(link: string): Promise<any>;
374
376
  static ɵfac: i0.ɵɵFactoryDeclaration<webBuilderService, never>;
375
377
  static ɵprov: i0.ɵɵInjectableDeclaration<webBuilderService>;
376
378
  }
@@ -1044,6 +1046,7 @@ declare class WbHideShowConfig implements OnInit {
1044
1046
  updateConfig(): void;
1045
1047
  updateHidden(key: string, value: boolean): void;
1046
1048
  onChangedirection(): void;
1049
+ changeOverFlow(): void;
1047
1050
  static ɵfac: i0.ɵɵFactoryDeclaration<WbHideShowConfig, never>;
1048
1051
  static ɵcmp: i0.ɵɵComponentDeclaration<WbHideShowConfig, "wb-hide-show-config", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "classCursor": { "alias": "classCursor"; "required": false; }; "classOverflowY": { "alias": "classOverflowY"; "required": false; }; "classFlexDirection": { "alias": "classFlexDirection"; "required": false; }; "classGap": { "alias": "classGap"; "required": false; }; "configTypeDisplay": { "alias": "configTypeDisplay"; "required": false; }; "configEnableZoom": { "alias": "configEnableZoom"; "required": false; }; "configRequired": { "alias": "configRequired"; "required": false; }; }, {}, never, never, true, never>;
1049
1052
  }
@@ -1751,14 +1754,12 @@ declare class WbFrameProductDetailConfig implements OnInit {
1751
1754
  static ɵcmp: i0.ɵɵComponentDeclaration<WbFrameProductDetailConfig, "wb-frame-product-detail-config", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "class": { "alias": "class"; "required": false; }; "config": { "alias": "config"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
1752
1755
  }
1753
1756
 
1754
- declare class WbFrameProducts implements OnInit, DoCheck, OnDestroy {
1757
+ declare class WbFrameProducts implements OnInit, OnDestroy {
1755
1758
  webBuilderService: webBuilderService;
1756
1759
  functionService: FunctionService;
1757
1760
  elementRef: ElementRef;
1758
1761
  authService: AuthService;
1759
1762
  map: ComponentMapService;
1760
- private route;
1761
- private router;
1762
1763
  data: any;
1763
1764
  device: any;
1764
1765
  class: any;
@@ -1782,12 +1783,6 @@ declare class WbFrameProducts implements OnInit, DoCheck, OnDestroy {
1782
1783
  currentMouseX: number;
1783
1784
  currentIndex: number;
1784
1785
  /** ----------------- SLIDE --------------------- */
1785
- /** ------------------------Pagination------------------------ */
1786
- pageCurrent: number;
1787
- totalPages: number;
1788
- limit: number;
1789
- pageShowChoose: any;
1790
- pageGoto: number;
1791
1786
  products: any;
1792
1787
  /**
1793
1788
  * products2D: Dùng để nhóm sản phẩm theo hàng và cột
@@ -1795,17 +1790,13 @@ declare class WbFrameProducts implements OnInit, DoCheck, OnDestroy {
1795
1790
  * để vuốt(slide) theo nhóm
1796
1791
  */
1797
1792
  products2D: any;
1798
- oldCols: number;
1799
- oldRows: number;
1800
- oldLayout: string;
1793
+ changeGridSub: any;
1801
1794
  autoSlideInterval: any;
1802
- routeSub: any;
1803
- constructor(webBuilderService: webBuilderService, functionService: FunctionService, elementRef: ElementRef, authService: AuthService, map: ComponentMapService, route: ActivatedRoute, router: Router);
1795
+ constructor(webBuilderService: webBuilderService, functionService: FunctionService, elementRef: ElementRef, authService: AuthService, map: ComponentMapService);
1804
1796
  ngOnInit(): void;
1805
1797
  updateDataClone(): void;
1806
1798
  ngOnChanges(changes: SimpleChanges): void;
1807
1799
  ngOnDestroy(): void;
1808
- ngDoCheck(): void;
1809
1800
  calcProducts(): void;
1810
1801
  onMouseDown(event: any, type: 'mouse' | 'touch'): void;
1811
1802
  onMouseMove(event: any, type: 'mouse' | 'touch'): void;
@@ -1815,13 +1806,6 @@ declare class WbFrameProducts implements OnInit, DoCheck, OnDestroy {
1815
1806
  handlePrev(): void;
1816
1807
  startAutoSlide(): void;
1817
1808
  stopAutoSlide(): void;
1818
- /** ------------------------Pagination Methods------------------------ */
1819
- gotoPreviousPage(): void;
1820
- gotoNextPage(): void;
1821
- updateListPage(): void;
1822
- transferFn(value: number): void;
1823
- calcProducts2D(): void;
1824
- getGridTemplateRows(): string;
1825
1809
  static ɵfac: i0.ɵɵFactoryDeclaration<WbFrameProducts, never>;
1826
1810
  static ɵcmp: i0.ɵɵComponentDeclaration<WbFrameProducts, "wb-frame-products", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "class": { "alias": "class"; "required": false; }; "config": { "alias": "config"; "required": false; }; "animation": { "alias": "animation"; "required": false; }; "type": { "alias": "type"; "required": false; }; "product": { "alias": "product"; "required": false; }; }, {}, never, never, true, never>;
1827
1811
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fw-webbuilder",
3
- "version": "1.1.240",
3
+ "version": "1.1.241",
4
4
  "peerDependencies": {
5
5
  "@fingerprintjs/fingerprintjs": "^5.2.0",
6
6
  "@abacritt/angularx-social-login": "2.4.0",