realreport-designer 1.11.17 → 1.11.19

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.
@@ -5181,15 +5181,17 @@ declare class FocusView extends VisualElement {
5181
5181
  protected _initDom(doc: Document, dom: HTMLElement): void;
5182
5182
  }
5183
5183
 
5184
- declare type FontFormat = 'truetype' | 'opentype' | 'woff';
5184
+ declare type FontFormat = 'truetype' | 'opentype' | 'woff' | 'woff2';
5185
5185
 
5186
5186
  /**
5187
- * FontManager 폰트 관련 리소스 관리
5187
+ * FontResource 폰트 관련 리소스 관리
5188
5188
  * 폰트 관련 리소스를 base64로 보관하고 가져다 사용할 수 있도록 작성
5189
5189
  */
5190
- declare class FontManager extends EventAware {
5191
- static readonly FONT_ADDED = "onFontManagerFontAdded";
5192
- static readonly FONT_REMOVED = "onFontManagerFontRemoved";
5190
+ declare class FontResource extends EventAware {
5191
+ static readonly FONT_ADDED = "onFontResourceFontAdded";
5192
+ static readonly FONT_REMOVED = "onFontResourceFontRemoved";
5193
+ private static readonly FONT_TYPES;
5194
+ private static readonly FONT_SIGNATURES;
5193
5195
  private _fontSources;
5194
5196
  constructor();
5195
5197
  protected _doDispose(): void;
@@ -5199,19 +5201,32 @@ declare class FontManager extends EventAware {
5199
5201
  getFonts(name: string, weight?: FontWeight): FontSource[];
5200
5202
  getFontsByWeight(weight: FontWeight): FontSource[];
5201
5203
  private $_convertFontWeight;
5204
+ /**
5205
+ * Font MIME Types 변환
5206
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@font-face#font_mime_types
5207
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@font-face/src#font_formats
5208
+ * @param fontType
5209
+ * @returns font face에서 정의할 font format 문자열
5210
+ */
5202
5211
  private $_convertFontType;
5212
+ private $_detectFontType;
5213
+ private $_matchSignature;
5203
5214
  private $_fireFontAdded;
5204
5215
  private $_fireFontRemoved;
5205
5216
  }
5206
5217
 
5218
+ /**
5219
+ * blob 형태로 관리하면 폰트를 가져올 때 사용하기 용이하다.
5220
+ * url 생성 및 해제도 간편하고, font-face에서 요구하는 형식이 blob url이기 때문
5221
+ */
5207
5222
  declare type FontSource = {
5208
5223
  name: string;
5209
- source: string;
5210
- fontWeight: FontWeight;
5224
+ source: Blob;
5225
+ weight: FontWeight;
5211
5226
  format: FontFormat;
5212
5227
  };
5213
5228
 
5214
- declare type FontWeight = 'normal' | 'bold';
5229
+ declare type FontWeight = '100' | '200' | '300' | '400' | '500' | '600' | 'normal' | 'bold';
5215
5230
 
5216
5231
  declare abstract class FormulaConverterError extends Error {
5217
5232
  code: FormulaConverterErrorCode;
@@ -7819,6 +7834,36 @@ declare interface MapSource {
7819
7834
  exclude?: string[];
7820
7835
  }
7821
7836
 
7837
+ declare class MarkdownBand extends ReportItem {
7838
+ static readonly DEFAULT_WIDTH = "100%";
7839
+ static readonly DEFAULT_HEIGHT = 100;
7840
+ static readonly ALLOWED_TAGS: string[];
7841
+ static readonly PROP_HTML = "html";
7842
+ static readonly PROPINFOS: IPropInfo[];
7843
+ static readonly STYLE_PROPS: string[];
7844
+ static readonly $_ctor: string;
7845
+ static readonly ITEM_TYPE = "Markdown Band";
7846
+ private _html;
7847
+ rowIndex: number;
7848
+ constructor(name: string);
7849
+ get html(): string;
7850
+ set html(value: string);
7851
+ getHtml(ctx: PrintContext): string;
7852
+ getPrintText(ctx: PrintContext): string;
7853
+ getSaveType(): string;
7854
+ get outlineLabel(): string;
7855
+ protected _doDefaultInit(loader: IReportLoader, parent: ReportGroupItem, hintWidth: number, hintHeight: number): void;
7856
+ protected _getEditProps(): IPropInfo[];
7857
+ protected _getStyleProps(): string[];
7858
+ protected _doLoad(loader: IReportLoader, src: any): void;
7859
+ protected _doSave(target: object): void;
7860
+ canRotate(): boolean;
7861
+ canAdoptDragSource(source: any): boolean;
7862
+ adoptDragSource(source: any): IDropResult;
7863
+ canPropAdoptDragSource(prop: IPropInfo, source: any): boolean;
7864
+ adoptPropDragSource(prop: IPropInfo, source: any): IDropResult;
7865
+ }
7866
+
7822
7867
  declare type MenuItem = {
7823
7868
  type: 'text';
7824
7869
  label?: ((clickedElement: HTMLElement, menu: MenuItem) => string) | string;
@@ -8611,7 +8656,7 @@ declare abstract class PrintContextBase<R extends ReportBase = ReportBase> exten
8611
8656
  private _tags;
8612
8657
  private _bandSave;
8613
8658
  async: boolean;
8614
- band: DataBand | CrosstabBand | TextBand;
8659
+ band: DataBand | CrosstabBand | TextBand | MarkdownBand;
8615
8660
  pages: PrintPage[];
8616
8661
  floatings: HTMLDivElement[];
8617
8662
  reportCount: number;
@@ -10750,7 +10795,7 @@ declare abstract class ReportBase<T extends ReportPageBase = ReportPageBase> ext
10750
10795
  private _unit;
10751
10796
  private _assetRoot;
10752
10797
  protected _assets: AssetManager;
10753
- private _fontManager;
10798
+ private _fontResource;
10754
10799
  private _data;
10755
10800
  protected _designData: DesignDataManager;
10756
10801
  protected _i18n: I18nManager;
@@ -10838,13 +10883,13 @@ declare abstract class ReportBase<T extends ReportPageBase = ReportPageBase> ext
10838
10883
  get reportItemRegistry(): ReportItemRegistry;
10839
10884
  /** assets */
10840
10885
  get assets(): AssetManager;
10841
- /** fontManager */
10842
- get fontManager(): FontManager;
10886
+ /** fontResource */
10887
+ get fontResource(): FontResource;
10843
10888
  /**
10844
10889
  * Setter Injection인 이유는 리소스는 외부에서 한번만 생성후에 관리한다.
10845
10890
  * 새로운 리포트 모델을 생성할 때 폰트관련 리소스는 외부 정보이므로 주입받아서 사용하자.
10846
10891
  */
10847
- set fontManager(fontManager: FontManager);
10892
+ set fontResource(fontResource: FontResource);
10848
10893
  /** editing */
10849
10894
  get editing(): ReportEditableObject<ReportRootItem>;
10850
10895
  get root(): ReportRootItem;
@@ -11101,7 +11146,7 @@ declare class ReportDesigner_2 extends VisualContainer {
11101
11146
  private _itembarMode;
11102
11147
  private _panelMode;
11103
11148
  private _report;
11104
- private _fontManager;
11149
+ private _fontResource;
11105
11150
  private _defaultFont;
11106
11151
  private _server;
11107
11152
  private _isRemote;
@@ -11253,7 +11298,7 @@ declare class ReportDesigner_2 extends VisualContainer {
11253
11298
  get inspector(): PropertyInspector;
11254
11299
  get dataPanel(): DataPanel;
11255
11300
  get dialog(): DialogView;
11256
- get fontManager(): FontManager;
11301
+ get fontResource(): FontResource;
11257
11302
  get defaultFont(): string;
11258
11303
  set defaultFont(fontName: string);
11259
11304
  get tableContainerDesigner(): TableDesigner;
@@ -11397,8 +11442,6 @@ declare class ReportDesigner_2 extends VisualContainer {
11397
11442
  private $_disposeViewer;
11398
11443
  private $_loadPreviewData;
11399
11444
  private $_refreshPanel;
11400
- private $_addFontManagerListener;
11401
- private $_appendFontFaceStyle;
11402
11445
  /**
11403
11446
  * 에디터 관련 doLayout을 수행함.
11404
11447
  * 리포트 타입에 따라, 리포트에디터, 엑셀에디터 전용 doLayout함수를 호출함.
@@ -12914,6 +12957,7 @@ declare enum ReportItemType {
12914
12957
  SPACE = "space",
12915
12958
  SIMPLEBAND = "simpleband",
12916
12959
  TABLEBAND = "tableband",
12960
+ MARKDOWNBAND = "markdownband",
12917
12961
  BANDGROUP = "bandgroup",
12918
12962
  BANDCELL = "bandcell",
12919
12963
  CROSSTAB = "crosstab",
@@ -17007,10 +17051,20 @@ export declare interface UserDataTemplateGroup {
17007
17051
  items: IUserDataTemplateItem[];
17008
17052
  }
17009
17053
 
17054
+ /**
17055
+ * 사용자가 등록할 폰트 소스 정보
17056
+ */
17010
17057
  declare type UserFontSource = {
17058
+ /** 폰트 이름 */
17011
17059
  name: string;
17012
- source: string;
17013
- fontWeight: FontWeight;
17060
+ /** 폰트 데이터 (URL, Blob 등) */
17061
+ source: string | Blob;
17062
+ /**
17063
+ * @deprecated Use `weight` instead. This property will be removed in a future version.
17064
+ */
17065
+ fontWeight?: FontWeight;
17066
+ /** 폰트 굵기 */
17067
+ weight: FontWeight;
17014
17068
  };
17015
17069
 
17016
17070
  export declare interface UserReportCategoryTemplate {