fw-webbuilder 1.1.178 → 1.1.180
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/fesm2022/fw-webbuilder.mjs +1 -1
- package/index.d.ts +25 -7
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -2,13 +2,13 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Subject, Observable, Subscription } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { OnInit, ElementRef, Renderer2, SimpleChanges, OnDestroy, ChangeDetectorRef, DoCheck, KeyValueDiffers, InjectionToken } from '@angular/core';
|
|
5
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
5
|
import * as ng_zorro_antd_message from 'ng-zorro-antd/message';
|
|
7
6
|
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
8
7
|
import { Overlay } from '@angular/cdk/overlay';
|
|
9
8
|
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
|
10
9
|
import { TranslateService } from '@ngx-translate/core';
|
|
11
10
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
11
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
12
12
|
import { NzTableQueryParams } from 'ng-zorro-antd/table';
|
|
13
13
|
import { SafeHtml } from '@angular/platform-browser';
|
|
14
14
|
|
|
@@ -26,7 +26,6 @@ declare class SocketService {
|
|
|
26
26
|
declare class webBuilderService {
|
|
27
27
|
private http;
|
|
28
28
|
private socketService;
|
|
29
|
-
private route;
|
|
30
29
|
private apiUrl;
|
|
31
30
|
private urlBE;
|
|
32
31
|
group: any;
|
|
@@ -118,7 +117,7 @@ declare class webBuilderService {
|
|
|
118
117
|
FONTS: any;
|
|
119
118
|
ctrlZ: any;
|
|
120
119
|
ctrlY: any;
|
|
121
|
-
constructor(http: HttpClient, socketService: SocketService
|
|
120
|
+
constructor(http: HttpClient, socketService: SocketService);
|
|
122
121
|
closeConnection(): void;
|
|
123
122
|
onNotifyChange(callback: (data: any) => void): any;
|
|
124
123
|
notifyChange(data: any): void;
|
|
@@ -154,6 +153,14 @@ declare class webBuilderService {
|
|
|
154
153
|
updateProject(id: string, data: any): Promise<any>;
|
|
155
154
|
deleteProject(id: string): Promise<any>;
|
|
156
155
|
getProjects_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
|
|
156
|
+
/**
|
|
157
|
+
* dùng route khác vì route này không cần đăng nhập
|
|
158
|
+
* @param query
|
|
159
|
+
* @param sort
|
|
160
|
+
* @param page
|
|
161
|
+
* @param limit
|
|
162
|
+
* @returns
|
|
163
|
+
*/
|
|
157
164
|
getTemplates_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
|
|
158
165
|
addTemplate(data: any): Promise<any>;
|
|
159
166
|
updateTemplate(id: string, data: any): Promise<any>;
|
|
@@ -329,9 +336,11 @@ declare class webBuilderService {
|
|
|
329
336
|
*/
|
|
330
337
|
handleCloneBlock(page: any, block: any, codeUpdate: any): Promise<void>;
|
|
331
338
|
/**
|
|
332
|
-
*
|
|
333
|
-
* @param parent đối tượng cha
|
|
334
|
-
* @param object đối tượng clone
|
|
339
|
+
* Nhân bản object: tạo record mới với _id riêng, is_clone trỏ về gốc
|
|
340
|
+
* @param parent đối tượng cha (block hoặc object)
|
|
341
|
+
* @param object đối tượng cần clone
|
|
342
|
+
* @param change_position nếu true thì đặt vị trí top/left = 0
|
|
343
|
+
* @param codeUpdate mã nhóm cho Ctrl+Z
|
|
335
344
|
*/
|
|
336
345
|
handleCloneObject(parent: any, object: any, change_position: boolean | undefined, codeUpdate: any): Promise<void>;
|
|
337
346
|
handleOrder(customer_info: any, note: any, payment_method: any, id_user: any): Promise<any>;
|
|
@@ -364,6 +373,10 @@ declare class webBuilderService {
|
|
|
364
373
|
addEndUser(data: any): Promise<any>;
|
|
365
374
|
updateEndUser(id: string, data: any): Promise<any>;
|
|
366
375
|
deleteEndUser(id: string): Promise<any>;
|
|
376
|
+
addContactSupport(data: any): Promise<any>;
|
|
377
|
+
deleteContactSupport(id: string): Promise<any>;
|
|
378
|
+
getContactSupports_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
|
|
379
|
+
getAdminUsers_byFields(query: any, sort: any, page?: number, limit?: number): Promise<any>;
|
|
367
380
|
static ɵfac: i0.ɵɵFactoryDeclaration<webBuilderService, never>;
|
|
368
381
|
static ɵprov: i0.ɵɵInjectableDeclaration<webBuilderService>;
|
|
369
382
|
}
|
|
@@ -558,6 +571,11 @@ declare const FONTS: {
|
|
|
558
571
|
name: string;
|
|
559
572
|
value: string;
|
|
560
573
|
}[];
|
|
574
|
+
declare const COUNTRY_CODES: {
|
|
575
|
+
code: string;
|
|
576
|
+
flag: string;
|
|
577
|
+
name: string;
|
|
578
|
+
}[];
|
|
561
579
|
|
|
562
580
|
declare class WbDragDrop implements OnInit {
|
|
563
581
|
webBuilderService: webBuilderService;
|
|
@@ -2793,4 +2811,4 @@ declare class WbStyleDirective implements DoCheck {
|
|
|
2793
2811
|
|
|
2794
2812
|
declare const WEBBUILDER_API_URL: InjectionToken<string>;
|
|
2795
2813
|
|
|
2796
|
-
export { AuthService, CartService, CommonConfigMapService, ComponentConfigMapService, ComponentMapService, DEVICES, DrawerService, FONTS, FunctionService, LIST_LANGUAGES, MAIN_SECTOR, ManageImgsComponent, PAYMENT_METHODS, SelectLanguageComponent, TOOLS, TOOLS_BLOCK, TOOLS_OBJECT, WEBBUILDER_API_URL, WbAnimationConfig, WbBackgroundColorConfig, WbBackgroundImageConfig, WbBannerAnimationConfig, WbBlockBlank, WbBlockBlankConfig, WbBorderConfig, WbBorderRadiusConfig, WbBreadcumb, WbBreadcumbConfig, WbButton, WbButtonConfig, WbButtonQuantity, WbButtonQuantityConfig, WbButtonSetDefaultAddress, WbButtonSetDefaultAddressConfig, WbCheckboxConfig, WbCheckboxFilter, WbCheckboxFilterConfig, WbCkeditorConfig, WbDialogConfig, WbDragDrop, WbFilterConfig, WbFilterImageConfig, WbFixedConfig, WbFrameBanner, WbFrameBannerConfig, WbFrameBlank, WbFrameBlankConfig, WbFrameCart, WbFrameCartConfig, WbFrameCollapse, WbFrameCollapseConfig, WbFrameContentConfig, WbFrameProductDetail, WbFrameProductDetailConfig, WbFrameProducts, WbFrameProductsAdmin, WbFrameProductsByCategory, WbFrameProductsByCategoryConfig, WbFrameProductsConfig, WbFrameTab, WbFrameTabConfig, WbFreeblockConfig, WbGoogleMap, WbGoogleMapConfig, WbGridConfig, WbHideShowConfig, WbIconConfig, WbImage, WbImageConfig, WbImageListNumberConfig, WbInput, WbInputConfig, WbLine, WbLineConfig, WbLinkPageConfig, WbMapConfig, WbMaskImageConfig, WbMenuContentConfig, WbMenuHorizontal, WbMenuHorizontalConfig, WbMenuMobile, WbMenuMobileConfig, WbObjectFitConfig, WbOrdinalConfig, WbPaddingConfig, WbPageConfig, WbPaginationConfig, WbPositionConfig, WbPositionInConfig, WbPositionOutConfig, WbProductImageList, WbProductImageListConfig, WbProductSelectAttribute, WbProductSelectAttributeConfig, WbRotateConfig, WbScrollbarConfig, WbSelectCountry, WbSelectCountryConfig, WbSelectProvinceDistrictWard, WbSelectProvinceDistrictWardConfig, WbShadowConfig, WbSlideConfig, WbStickyConfig, WbStyleDirective, WbText, WbTextConfig, WbTextFormatConfig, WbTextParagraph, WbTextParagraphConfig, WbToolTipConfig, WbUploadImageConfig, WbVideo, WbVideoConfig, WbVirtualSelected, WbWidthHeightConfig, webBuilderService };
|
|
2814
|
+
export { AuthService, COUNTRY_CODES, CartService, CommonConfigMapService, ComponentConfigMapService, ComponentMapService, DEVICES, DrawerService, FONTS, FunctionService, LIST_LANGUAGES, MAIN_SECTOR, ManageImgsComponent, PAYMENT_METHODS, SelectLanguageComponent, TOOLS, TOOLS_BLOCK, TOOLS_OBJECT, WEBBUILDER_API_URL, WbAnimationConfig, WbBackgroundColorConfig, WbBackgroundImageConfig, WbBannerAnimationConfig, WbBlockBlank, WbBlockBlankConfig, WbBorderConfig, WbBorderRadiusConfig, WbBreadcumb, WbBreadcumbConfig, WbButton, WbButtonConfig, WbButtonQuantity, WbButtonQuantityConfig, WbButtonSetDefaultAddress, WbButtonSetDefaultAddressConfig, WbCheckboxConfig, WbCheckboxFilter, WbCheckboxFilterConfig, WbCkeditorConfig, WbDialogConfig, WbDragDrop, WbFilterConfig, WbFilterImageConfig, WbFixedConfig, WbFrameBanner, WbFrameBannerConfig, WbFrameBlank, WbFrameBlankConfig, WbFrameCart, WbFrameCartConfig, WbFrameCollapse, WbFrameCollapseConfig, WbFrameContentConfig, WbFrameProductDetail, WbFrameProductDetailConfig, WbFrameProducts, WbFrameProductsAdmin, WbFrameProductsByCategory, WbFrameProductsByCategoryConfig, WbFrameProductsConfig, WbFrameTab, WbFrameTabConfig, WbFreeblockConfig, WbGoogleMap, WbGoogleMapConfig, WbGridConfig, WbHideShowConfig, WbIconConfig, WbImage, WbImageConfig, WbImageListNumberConfig, WbInput, WbInputConfig, WbLine, WbLineConfig, WbLinkPageConfig, WbMapConfig, WbMaskImageConfig, WbMenuContentConfig, WbMenuHorizontal, WbMenuHorizontalConfig, WbMenuMobile, WbMenuMobileConfig, WbObjectFitConfig, WbOrdinalConfig, WbPaddingConfig, WbPageConfig, WbPaginationConfig, WbPositionConfig, WbPositionInConfig, WbPositionOutConfig, WbProductImageList, WbProductImageListConfig, WbProductSelectAttribute, WbProductSelectAttributeConfig, WbRotateConfig, WbScrollbarConfig, WbSelectCountry, WbSelectCountryConfig, WbSelectProvinceDistrictWard, WbSelectProvinceDistrictWardConfig, WbShadowConfig, WbSlideConfig, WbStickyConfig, WbStyleDirective, WbText, WbTextConfig, WbTextFormatConfig, WbTextParagraph, WbTextParagraphConfig, WbToolTipConfig, WbUploadImageConfig, WbVideo, WbVideoConfig, WbVirtualSelected, WbWidthHeightConfig, webBuilderService };
|