fw-webbuilder 1.1.282 → 1.1.284

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
@@ -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
  */
@@ -3200,7 +3207,39 @@ declare class WbStyleDirective implements DoCheck {
3200
3207
  static ɵdir: i0.ɵɵDirectiveDeclaration<WbStyleDirective, "[wbStyle]", never, { "wbStyle": { "alias": "wbStyle"; "required": false; }; }, {}, never, never, true, never>;
3201
3208
  }
3202
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
+
3203
3242
  declare const WEBBUILDER_API_URL: InjectionToken<string>;
3204
3243
 
3205
- 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 };
3206
3245
  export type { UploadTask };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fw-webbuilder",
3
- "version": "1.1.282",
3
+ "version": "1.1.284",
4
4
  "peerDependencies": {
5
5
  "@fingerprintjs/fingerprintjs": "^5.2.0",
6
6
  "@abacritt/angularx-social-login": "2.4.0",