fw-webbuilder 1.1.267 → 1.1.269

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
@@ -378,11 +378,6 @@ declare class webBuilderService {
378
378
  getOrders_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
379
379
  updateOrder(id: string, data: any): Promise<any>;
380
380
  deleteOrder(id: string): Promise<any>;
381
- /**
382
- * Hàm tạo ID đối tượng theo định dạng ObjectId của MongoDB
383
- * @returns {string} ID đối tượng 24 ký tự hex
384
- */
385
- generateObjectId(): string;
386
381
  addAdminCategory(data: any): Promise<any>;
387
382
  updateAdminCategory(id: string, data: any): Promise<any>;
388
383
  deleteAdminCategory(id: string): Promise<any>;
@@ -451,6 +446,38 @@ declare class webBuilderService {
451
446
  * Trích xuất tên các Font từ chuỗi HTML link của Google Fonts
452
447
  */
453
448
  getFontNames(fontHtml: string): string[];
449
+ /**
450
+ * hàm chuyển tên thành slug
451
+ * vd: "Giới thieu" => "gioi-thieu"
452
+ * @param name tên cần format
453
+ */
454
+ convertNameToSlug(name: string): string;
455
+ removeVietnamese(str: string): string;
456
+ /**
457
+ * Hàm sắp xếp mảng các đối tượng theo trường tiếng Việt
458
+ * @param data_filter
459
+ * @param field
460
+ * @param lang
461
+ * @param order
462
+ * @returns
463
+ */
464
+ sortVietnameseString(data_filter: any[], field: string, lang?: string, order?: number): any[];
465
+ /**
466
+ * Hàm tạo ID đối tượng theo định dạng ObjectId của MongoDB
467
+ * @returns {string} ID đối tượng 24 ký tự hex
468
+ */
469
+ generateObjectId(): string;
470
+ /**
471
+ * Tạo màu hex ngẫu nhiên
472
+ * @returns {string} Màu hex ngẫu nhiên
473
+ */
474
+ randomColor(): string;
475
+ handleNextPrevFrame(_this: any, direction: 'next' | 'prev', classTransition: string): void;
476
+ handleNextPrevCol(_this: any, direction: 'next' | 'prev', classTransition: string): void;
477
+ onMouseDown(_this: any, event: any, type: 'mouse' | 'touch', classTransition: string): void;
478
+ onMouseMove(_this: any, event: any, type: 'mouse' | 'touch'): void;
479
+ onMouseUp(_this: any, event: any, type: 'mouse' | 'touch', classTransition: string): void;
480
+ onMouseLeave(_this: any, event: any): void;
454
481
  static ɵfac: i0.ɵɵFactoryDeclaration<webBuilderService, never>;
455
482
  static ɵprov: i0.ɵɵInjectableDeclaration<webBuilderService>;
456
483
  }
@@ -1829,7 +1856,6 @@ declare class WbFrameProductDetailConfig implements OnInit {
1829
1856
 
1830
1857
  declare class WbFrameProducts implements OnInit, OnDestroy {
1831
1858
  webBuilderService: webBuilderService;
1832
- functionService: FunctionService;
1833
1859
  elementRef: ElementRef;
1834
1860
  authService: AuthService;
1835
1861
  map: ComponentMapService;
@@ -1866,7 +1892,7 @@ declare class WbFrameProducts implements OnInit, OnDestroy {
1866
1892
  changeGridSub: any;
1867
1893
  private lastGridSignature;
1868
1894
  autoSlideInterval: any;
1869
- constructor(webBuilderService: webBuilderService, functionService: FunctionService, elementRef: ElementRef, authService: AuthService, map: ComponentMapService);
1895
+ constructor(webBuilderService: webBuilderService, elementRef: ElementRef, authService: AuthService, map: ComponentMapService);
1870
1896
  ngOnInit(): void;
1871
1897
  updateDataClone(): void;
1872
1898
  ngOnChanges(changes: SimpleChanges): void;
@@ -1908,9 +1934,9 @@ declare class WbFrameProductsConfig implements OnInit {
1908
1934
 
1909
1935
  declare class WbFrameProductsAdmin implements OnInit {
1910
1936
  webBuilderService: webBuilderService;
1911
- functionService: FunctionService;
1912
1937
  private modal;
1913
1938
  private translate;
1939
+ private toast;
1914
1940
  data: any;
1915
1941
  device: any;
1916
1942
  categories: any;
@@ -1931,7 +1957,7 @@ declare class WbFrameProductsAdmin implements OnInit {
1931
1957
  pageSize: number;
1932
1958
  readonly nzModalData: any;
1933
1959
  dataMap: any;
1934
- constructor(webBuilderService: webBuilderService, functionService: FunctionService, modal: NzModalService, translate: TranslateService);
1960
+ constructor(webBuilderService: webBuilderService, modal: NzModalService, translate: TranslateService, toast: NzMessageService);
1935
1961
  ngOnInit(): void;
1936
1962
  ngAfterViewInit(): void;
1937
1963
  getCategories(): void;
@@ -2240,13 +2266,13 @@ declare class WbButton implements OnInit {
2240
2266
  private router;
2241
2267
  webBuilderService: webBuilderService;
2242
2268
  authService: AuthService;
2243
- functionService: FunctionService;
2244
2269
  elementRef: ElementRef;
2245
2270
  private modal;
2246
2271
  modalRef: NzModalRef<WbBlockBlank>;
2247
2272
  private drawerService;
2248
2273
  private cart;
2249
2274
  private translate;
2275
+ private toast;
2250
2276
  data: any;
2251
2277
  device: any;
2252
2278
  class: any;
@@ -2267,7 +2293,7 @@ declare class WbButton implements OnInit {
2267
2293
  _scrollHandler: any;
2268
2294
  routerSubscription: any;
2269
2295
  previousUrl: string;
2270
- constructor(router: Router, webBuilderService: webBuilderService, authService: AuthService, functionService: FunctionService, elementRef: ElementRef, modal: NzModalService, modalRef: NzModalRef<WbBlockBlank>, drawerService: DrawerService, cart: CartService, translate: TranslateService);
2296
+ constructor(router: Router, webBuilderService: webBuilderService, authService: AuthService, elementRef: ElementRef, modal: NzModalService, modalRef: NzModalRef<WbBlockBlank>, drawerService: DrawerService, cart: CartService, translate: TranslateService, toast: NzMessageService);
2271
2297
  ngOnInit(): void;
2272
2298
  onDblClickContent(event: MouseEvent): void;
2273
2299
  onEditContentBlur(): void;
@@ -2307,7 +2333,7 @@ declare class WbButton implements OnInit {
2307
2333
  getIcon(): any;
2308
2334
  handleSendContact(): void;
2309
2335
  getHref(): any;
2310
- static ɵfac: i0.ɵɵFactoryDeclaration<WbButton, [null, null, null, null, null, null, { optional: true; }, null, null, null]>;
2336
+ static ɵfac: i0.ɵɵFactoryDeclaration<WbButton, [null, null, null, null, null, { optional: true; }, null, null, null, null]>;
2311
2337
  static ɵcmp: i0.ɵɵComponentDeclaration<WbButton, "wb-button", 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; }; "isClone": { "alias": "isClone"; "required": false; }; "product": { "alias": "product"; "required": false; }; }, {}, never, never, true, never>;
2312
2338
  }
2313
2339
 
@@ -2795,7 +2821,6 @@ declare class WbCheckboxFilterConfig implements OnInit {
2795
2821
 
2796
2822
  declare class WbProductImageList implements OnInit {
2797
2823
  webBuilderService: webBuilderService;
2798
- private functionService;
2799
2824
  data: any;
2800
2825
  device: any;
2801
2826
  class: any;
@@ -2806,7 +2831,7 @@ declare class WbProductImageList implements OnInit {
2806
2831
  product: any;
2807
2832
  imgs: any;
2808
2833
  changeNumberImgsSub: any;
2809
- constructor(webBuilderService: webBuilderService, functionService: FunctionService);
2834
+ constructor(webBuilderService: webBuilderService);
2810
2835
  ngOnInit(): void;
2811
2836
  updateDataClone(): void;
2812
2837
  ngOnChanges(changes: SimpleChanges): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fw-webbuilder",
3
- "version": "1.1.267",
3
+ "version": "1.1.269",
4
4
  "peerDependencies": {
5
5
  "@fingerprintjs/fingerprintjs": "^5.2.0",
6
6
  "@abacritt/angularx-social-login": "2.4.0",