@phuong-tran-redoc/document-engine-angular 0.1.3 → 0.1.4
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
|
@@ -1010,6 +1010,14 @@ declare class SelectComponent implements AfterContentInit, OnChanges, OnDestroy,
|
|
|
1010
1010
|
static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "document-engine-select", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "labelMode": { "alias": "labelMode"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, { "valueChange": "valueChange"; }, ["labelDirectives", "options"], ["[documentEngineSelectLabel]", "*"], true, never>;
|
|
1011
1011
|
}
|
|
1012
1012
|
|
|
1013
|
+
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1014
|
+
|
|
1015
|
+
interface HeadingOption {
|
|
1016
|
+
value: HeadingLevel | null;
|
|
1017
|
+
label: string;
|
|
1018
|
+
class: string;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1013
1021
|
interface ToolbarState {
|
|
1014
1022
|
isReadOnly: boolean;
|
|
1015
1023
|
canUndo: boolean;
|
|
@@ -1067,15 +1075,7 @@ declare class ToolbarComponent implements OnInit, OnDestroy {
|
|
|
1067
1075
|
value: TextCaseType;
|
|
1068
1076
|
label: string;
|
|
1069
1077
|
}[];
|
|
1070
|
-
|
|
1071
|
-
value: null;
|
|
1072
|
-
label: string;
|
|
1073
|
-
class: string;
|
|
1074
|
-
} | {
|
|
1075
|
-
value: number;
|
|
1076
|
-
label: string;
|
|
1077
|
-
class: string;
|
|
1078
|
-
})[];
|
|
1078
|
+
headingOptions: HeadingOption[];
|
|
1079
1079
|
readonly textAlignOptions: {
|
|
1080
1080
|
value: string;
|
|
1081
1081
|
label: string;
|
|
@@ -1105,6 +1105,13 @@ declare class ToolbarComponent implements OnInit, OnDestroy {
|
|
|
1105
1105
|
private updateToolbarState;
|
|
1106
1106
|
ngOnInit(): void;
|
|
1107
1107
|
ngOnDestroy(): void;
|
|
1108
|
+
/**
|
|
1109
|
+
* Read the configured heading levels off `config.heading`. It may be a boolean
|
|
1110
|
+
* (`true` = default levels, handled by buildHeadingOptions' fallback) or a
|
|
1111
|
+
* `Partial<HeadingOptions>` carrying a `levels` array. Returns undefined when no
|
|
1112
|
+
* explicit levels are set so the caller falls back to the default set.
|
|
1113
|
+
*/
|
|
1114
|
+
private resolveHeadingLevels;
|
|
1108
1115
|
runAndEmit(actionName: string, chain: () => void): void;
|
|
1109
1116
|
setFontSize(size: string | null): void;
|
|
1110
1117
|
setLineHeight(lineHeight: string | null): void;
|
|
@@ -1296,8 +1303,6 @@ interface DynamicFieldCategory {
|
|
|
1296
1303
|
fields: DynamicFieldItem[];
|
|
1297
1304
|
}
|
|
1298
1305
|
|
|
1299
|
-
type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1300
|
-
|
|
1301
1306
|
declare const urlValidator: ValidatorFn;
|
|
1302
1307
|
|
|
1303
1308
|
interface LinkAttrs$2 {
|
|
@@ -1817,4 +1822,4 @@ declare class EditorBubbleMenuComponent implements OnInit, AfterViewInit, OnDest
|
|
|
1817
1822
|
}
|
|
1818
1823
|
|
|
1819
1824
|
export { ARCHIVE, ARROW_DROP_DOWN, AngularRenderer, ButtonDirective, CHECK, CLEAR_ALL, CLOSE, CODE, CharacterCountComponent, CheckboxComponent, ColorPickerComponent, ColorPickerViewComponent, DEFAULT, DEFAULT_TOOLBAR_STATE, DESCRIPTION, DYNAMIC_FORM, DocumentEditorComponent, DocumentEditorModule, DocumentEngineKit, DynamicFieldsViewComponent, EDIT, EDITOR_CONTENT_WRAPPER_CLASS, EDITOR_HTML_PREPROCESSOR, EditorBubbleMenuComponent, EditorCapabilities, ErrorMessageComponent, EventManager, FORMAT_ALIGN_CENTER, FORMAT_ALIGN_JUSTIFY, FORMAT_ALIGN_LEFT, FORMAT_ALIGN_RIGHT, FORMAT_BOLD, FORMAT_CLEAR, FORMAT_COLOR_FILL, FORMAT_COLOR_TEXT, FORMAT_INDENT_DECREASE, FORMAT_INDENT_INCREASE, FORMAT_ITALIC, FORMAT_LINE_SPACING, FORMAT_LIST_BULLETED, FORMAT_LIST_NUMBERED, FORMAT_QUOTE, FORMAT_SIZE, FORMAT_STRIKETHROUGH, FORMAT_UNDERLINE, FocusTrapService, FooterComponent, INSERT_PAGE_BREAK, IconComponent, IconRegistryService, ImageInsertViewComponent, InputDirective, LINK, LINK_OFF, LabelDirective, LinkEditViewComponent, LinkMainViewComponent, LinkPropertiesViewComponent, MARKDOWN, MATCH_CASE, PHOTO, PRINT, PopoverDirective, REDO, RESTRICT_EDIT, SEARCH, SEARCH_OFF, SETTINGS, SPECIAL_CHARACTER, SUBSCRIPT, SUPERSCRIPT, SelectComponent, SelectLabelDirective, SelectOptionDirective, SpecialCharactersViewComponent, TABLE_CELL_PROPERTY, TABLE_COLUMN, TABLE_MERGE_CELL, TABLE_PROPERTY, TABLE_ROW, TABLE_ROWS, TableCellStyleViewComponent, TableCreateViewComponent, TableMainViewComponent, TableStyleViewComponent, TemplateViewComponent, TiptapBubbleMenuDirective, TiptapDraggableDirective, TiptapEditorDirective, TiptapFloatingMenuDirective, ToggleGroupComponent, ToggleOptionDirective, ToolbarBubbleMenuComponent, ToolbarComponent, ToolbarService, UNDO, VERTICAL_ALIGN_BOTTOM, VERTICAL_ALIGN_CENTER, VERTICAL_ALIGN_TOP, buildToolbarState, selectionChangeHandler, shouldShowFnFactory, urlValidator };
|
|
1820
|
-
export type { BubbleMenuProps, BubbleMenuViewConfig, BubbleMenuViewContent, BubbleTarget, ButtonType, DocumentEngineConfig, DynamicFieldCategory, DynamicFieldItem, EditorBubbleMenuConfig, EditorHtmlPreprocessor, HeadingLevel, IconButton, ImageConfig, ImagePickHook, MediaResult, OutsideHandler, SelectButton, SelectOption, TableCreateViewData, TemplateItem, ToolbarBubbleMenuConfig, ToolbarButton, ToolbarState };
|
|
1825
|
+
export type { BubbleMenuProps, BubbleMenuViewConfig, BubbleMenuViewContent, BubbleTarget, ButtonType, DocumentEngineConfig, DynamicFieldCategory, DynamicFieldItem, EditorBubbleMenuConfig, EditorHtmlPreprocessor, HeadingLevel, HeadingOption, IconButton, ImageConfig, ImagePickHook, MediaResult, OutsideHandler, SelectButton, SelectOption, TableCreateViewData, TemplateItem, ToolbarBubbleMenuConfig, ToolbarButton, ToolbarState };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phuong-tran-redoc/document-engine-angular",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Realestatedoc (Redoc)",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
37
|
"@floating-ui/dom": "^1.7.4",
|
|
38
|
-
"@phuong-tran-redoc/document-engine-core": "0.1.
|
|
38
|
+
"@phuong-tran-redoc/document-engine-core": "0.1.4"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"rxjs": "^7.5.0",
|