fw-webbuilder 1.1.281 → 1.1.283
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 +66 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
|
12
12
|
import { Router, ActivatedRoute } from '@angular/router';
|
|
13
13
|
import { Title, Meta, SafeHtml, SafeUrl, DomSanitizer } from '@angular/platform-browser';
|
|
14
14
|
import { NzTableQueryParams } from 'ng-zorro-antd/table';
|
|
15
|
+
import { NzImageService } from 'ng-zorro-antd/image';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* CÁCH LÀM CLONE
|
|
@@ -472,6 +473,11 @@ declare class webBuilderService {
|
|
|
472
473
|
* Trích xuất tên các Font từ chuỗi HTML link của Google Fonts
|
|
473
474
|
*/
|
|
474
475
|
getFontNames(fontHtml: string): string[];
|
|
476
|
+
/**
|
|
477
|
+
* Cấu hình TinyMCE chuẩn hóa dùng chung cho toàn bộ ứng dụng (Đoạn văn bản, Sản phẩm, Tin tức, Danh mục)
|
|
478
|
+
* Tự động đồng bộ Font chữ Google, Font chủ đề, Màu chủ đề và Line Height
|
|
479
|
+
*/
|
|
480
|
+
getTinyMceConfig(customOptions?: any): any;
|
|
475
481
|
/**
|
|
476
482
|
* hàm chuyển tên thành slug
|
|
477
483
|
* vd: "Giới thieu" => "gioi-thieu"
|
|
@@ -711,6 +717,7 @@ declare class WbDragDrop implements OnInit {
|
|
|
711
717
|
el: ElementRef;
|
|
712
718
|
private renderer;
|
|
713
719
|
private modal;
|
|
720
|
+
get isCloneObject(): boolean;
|
|
714
721
|
/**
|
|
715
722
|
* DOM phần tử cha
|
|
716
723
|
*/
|
|
@@ -1204,7 +1211,7 @@ declare class WbImageListNumberConfig implements OnInit {
|
|
|
1204
1211
|
static ɵcmp: i0.ɵɵComponentDeclaration<WbImageListNumberConfig, "wb-image-list-number-config", never, { "data": { "alias": "data"; "required": false; }; "device": { "alias": "device"; "required": false; }; "configNumber": { "alias": "configNumber"; "required": false; }; "classGrid": { "alias": "classGrid"; "required": false; }; }, {}, never, never, true, never>;
|
|
1205
1212
|
}
|
|
1206
1213
|
|
|
1207
|
-
declare class WbLinkPageConfig implements OnInit {
|
|
1214
|
+
declare class WbLinkPageConfig implements OnInit, OnChanges {
|
|
1208
1215
|
webBuilderService: webBuilderService;
|
|
1209
1216
|
private modal;
|
|
1210
1217
|
private translate;
|
|
@@ -1215,6 +1222,13 @@ declare class WbLinkPageConfig implements OnInit {
|
|
|
1215
1222
|
dialogTypeOptions: any[];
|
|
1216
1223
|
drawerPositionOptions: any[];
|
|
1217
1224
|
pages: any;
|
|
1225
|
+
pageGroups: {
|
|
1226
|
+
label: string;
|
|
1227
|
+
type: string;
|
|
1228
|
+
pages: any[];
|
|
1229
|
+
}[];
|
|
1230
|
+
selectedPageId: string | null;
|
|
1231
|
+
pageTypeMap: Record<string, string>;
|
|
1218
1232
|
clickActionOptions: {
|
|
1219
1233
|
label: string;
|
|
1220
1234
|
value: string;
|
|
@@ -1222,9 +1236,16 @@ declare class WbLinkPageConfig implements OnInit {
|
|
|
1222
1236
|
blocks: any;
|
|
1223
1237
|
constructor(webBuilderService: webBuilderService, modal: NzModalService, translate: TranslateService);
|
|
1224
1238
|
get filteredFreeblocks(): any;
|
|
1239
|
+
getPageTypeName(type: string): string;
|
|
1240
|
+
getPageName(item: any): string;
|
|
1241
|
+
getPageLabel(item: any): string;
|
|
1242
|
+
buildPageGroups(): void;
|
|
1225
1243
|
ngOnInit(): void;
|
|
1244
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1245
|
+
initSelectedPage(): void;
|
|
1246
|
+
onSelectPage(pageId: string): void;
|
|
1226
1247
|
getPages(): void;
|
|
1227
|
-
getBlocks(): void;
|
|
1248
|
+
getBlocks(pageId?: string): void;
|
|
1228
1249
|
updateClass(): void;
|
|
1229
1250
|
updateConfig(): void;
|
|
1230
1251
|
openManageImgs(): void;
|
|
@@ -1888,6 +1909,9 @@ declare class WbFrameProducts implements OnInit, OnDestroy {
|
|
|
1888
1909
|
elementRef: ElementRef;
|
|
1889
1910
|
authService: AuthService;
|
|
1890
1911
|
map: ComponentMapService;
|
|
1912
|
+
private route;
|
|
1913
|
+
private modal;
|
|
1914
|
+
private translate;
|
|
1891
1915
|
data: any;
|
|
1892
1916
|
device: any;
|
|
1893
1917
|
class: any;
|
|
@@ -1921,8 +1945,12 @@ declare class WbFrameProducts implements OnInit, OnDestroy {
|
|
|
1921
1945
|
changeGridSub: any;
|
|
1922
1946
|
private lastGridSignature;
|
|
1923
1947
|
autoSlideInterval: any;
|
|
1924
|
-
constructor(webBuilderService: webBuilderService, elementRef: ElementRef, authService: AuthService, map: ComponentMapService);
|
|
1948
|
+
constructor(webBuilderService: webBuilderService, elementRef: ElementRef, authService: AuthService, map: ComponentMapService, route: ActivatedRoute, modal: NzModalService, translate: TranslateService);
|
|
1949
|
+
onDblClick(event: MouseEvent): void;
|
|
1950
|
+
handleEditContent(): void;
|
|
1925
1951
|
ngOnInit(): void;
|
|
1952
|
+
loadRelateDataByRoute(): void;
|
|
1953
|
+
handleFetchRelateData(product: any): void;
|
|
1926
1954
|
updateDataClone(): void;
|
|
1927
1955
|
ngOnChanges(changes: SimpleChanges): void;
|
|
1928
1956
|
ngDoCheck(): void;
|
|
@@ -2267,9 +2295,11 @@ declare class WbBreadcumb implements OnInit {
|
|
|
2267
2295
|
routeSub?: Subscription;
|
|
2268
2296
|
constructor(route: ActivatedRoute, webBuilderService: webBuilderService, router: Router);
|
|
2269
2297
|
ngOnInit(): void;
|
|
2298
|
+
updateItemName(slug?: string | null): void;
|
|
2270
2299
|
updateDataClone(): void;
|
|
2271
2300
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2272
2301
|
handleNavigate(): void;
|
|
2302
|
+
getIcon(): any;
|
|
2273
2303
|
static ɵfac: i0.ɵɵFactoryDeclaration<WbBreadcumb, never>;
|
|
2274
2304
|
static ɵcmp: i0.ɵɵComponentDeclaration<WbBreadcumb, "wb-breadcumb", 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>;
|
|
2275
2305
|
}
|
|
@@ -3177,7 +3207,39 @@ declare class WbStyleDirective implements DoCheck {
|
|
|
3177
3207
|
static ɵdir: i0.ɵɵDirectiveDeclaration<WbStyleDirective, "[wbStyle]", never, { "wbStyle": { "alias": "wbStyle"; "required": false; }; }, {}, never, never, true, never>;
|
|
3178
3208
|
}
|
|
3179
3209
|
|
|
3210
|
+
declare class ModalSelectBlockTemplateComponent implements OnInit {
|
|
3211
|
+
webBuilderService: webBuilderService;
|
|
3212
|
+
private msg;
|
|
3213
|
+
private imageService;
|
|
3214
|
+
translate: TranslateService;
|
|
3215
|
+
readonly modalData: any;
|
|
3216
|
+
readonly modalRef: NzModalRef<any, any>;
|
|
3217
|
+
loading: boolean;
|
|
3218
|
+
submitting: boolean;
|
|
3219
|
+
selectedCategory: string;
|
|
3220
|
+
keySearch: string;
|
|
3221
|
+
blockTemplates: any[];
|
|
3222
|
+
categories: {
|
|
3223
|
+
label: string;
|
|
3224
|
+
value: string;
|
|
3225
|
+
icon: string;
|
|
3226
|
+
}[];
|
|
3227
|
+
constructor(webBuilderService: webBuilderService, msg: NzMessageService, imageService: NzImageService, translate: TranslateService);
|
|
3228
|
+
ngOnInit(): void;
|
|
3229
|
+
loadBlockTemplates(): void;
|
|
3230
|
+
onCategoryChange(catValue: string): void;
|
|
3231
|
+
get filteredTemplates(): any[];
|
|
3232
|
+
get targetBlockId(): string | undefined;
|
|
3233
|
+
get position(): 'above' | 'below' | 'end';
|
|
3234
|
+
onSelectBlankBlock(): Promise<void>;
|
|
3235
|
+
onSelectTemplate(template: any): Promise<void>;
|
|
3236
|
+
getCategoryLabel(category: string): string;
|
|
3237
|
+
onPreviewTemplate(tpl: any, event?: Event): void;
|
|
3238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalSelectBlockTemplateComponent, never>;
|
|
3239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalSelectBlockTemplateComponent, "app-modal-select-block-template", never, {}, {}, never, never, true, never>;
|
|
3240
|
+
}
|
|
3241
|
+
|
|
3180
3242
|
declare const WEBBUILDER_API_URL: InjectionToken<string>;
|
|
3181
3243
|
|
|
3182
|
-
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, 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 };
|
|
3244
|
+
export { AuthService, COUNTRY_CODES, CartService, CommonConfigMapService, ComponentConfigMapService, ComponentMapService, DEVICES, DrawerService, FONTS, FunctionService, LIST_LANGUAGES, MAIN_SECTOR, ManageImgsComponent, ModalSelectBlockTemplateComponent, PAYMENT_METHODS, SelectLanguageComponent, TOOLS, TOOLS_BLOCK, TOOLS_OBJECT, WEBBUILDER_API_URL, WbAnimationConfig, WbBackgroundColorConfig, 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 };
|
|
3183
3245
|
export type { UploadTask };
|