@cuby-ui/core 0.0.596 → 0.0.598
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/editor/editor.component.d.ts +25 -10
- package/esm2022/editor/editor.component.mjs +151 -66
- package/esm2022/editor/widgets/editor-block/editor-block.component.mjs +2 -2
- package/esm2022/editor/widgets/editor-modal/editor-modal.component.mjs +2 -2
- package/esm2022/editor/widgets/editor-readonly/editor-readonly.component.mjs +2 -2
- package/esm2022/widgets/ui/criterion-readonly-info/criterion-readonly-info.component.mjs +2 -2
- package/esm2022/widgets/ui/framer-preview/framer-preview.component.mjs +2 -2
- package/esm2022/widgets/ui/instruction-readonly-info/instruction-readonly-info.component.mjs +2 -2
- package/esm2022/widgets/ui/modal-operation-part/modal-operation-part.component.mjs +2 -2
- package/esm2022/widgets/ui/utility-info-readonly/utility-info-readonly.component.mjs +2 -2
- package/fesm2022/cuby-ui-core.mjs +157 -72
- package/fesm2022/cuby-ui-core.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -8,50 +8,63 @@ export declare class CuiEditorComponent implements OnDestroy {
|
|
|
8
8
|
private readonly editorService;
|
|
9
9
|
private readonly jTextService;
|
|
10
10
|
private readonly POOLING_DELAY;
|
|
11
|
-
private readonly
|
|
12
|
-
private readonly SCROLL_THROTTLE_TIME;
|
|
11
|
+
private readonly RETRY_DELAY;
|
|
13
12
|
private readonly emptyQueue;
|
|
14
13
|
private initChain;
|
|
15
|
-
private
|
|
16
|
-
private
|
|
14
|
+
private lazyLoadObserver;
|
|
15
|
+
private lazyLoadSubscription;
|
|
17
16
|
private isSkipCombinedBlockOnChange;
|
|
18
17
|
private isFirst;
|
|
19
18
|
private isChanging;
|
|
20
19
|
private isSkip;
|
|
21
20
|
private isRequested;
|
|
22
21
|
private isDestroyed;
|
|
22
|
+
private isPreloadFinished;
|
|
23
|
+
private hasEndLeftZone;
|
|
23
24
|
private blockIdsMap;
|
|
24
25
|
private combinedBlocks;
|
|
25
26
|
private index;
|
|
26
27
|
private page;
|
|
28
|
+
private lazyLoadVersion;
|
|
27
29
|
private addedBlocks;
|
|
28
30
|
private updatedBlocks;
|
|
29
31
|
private removedBlocksIds;
|
|
30
32
|
private changesQueue;
|
|
31
33
|
private abortController;
|
|
32
|
-
protected readonly editorId: string;
|
|
33
34
|
private readonly isReadonly;
|
|
34
35
|
private readonly requestOptions;
|
|
36
|
+
private readonly editorEndRef;
|
|
37
|
+
protected readonly isEditorReady: import("@angular/core").WritableSignal<boolean>;
|
|
38
|
+
protected readonly editorId: string;
|
|
35
39
|
protected readonly editorRef: import("@angular/core").Signal<ElementRef<HTMLElement>>;
|
|
36
40
|
readonly editorApiId: import("@angular/core").InputSignal<string>;
|
|
37
41
|
readonly config: import("@angular/core").InputSignal<CuiEditorConfig>;
|
|
38
42
|
readonly requestSize: import("@angular/core").InputSignal<number>;
|
|
39
43
|
readonly editorEmpty: import("@angular/core").OutputEmitterRef<boolean>;
|
|
44
|
+
readonly editorReady: import("@angular/core").OutputEmitterRef<void>;
|
|
40
45
|
editor: EditorJS;
|
|
41
46
|
editorElement: HTMLElement;
|
|
42
47
|
constructor();
|
|
43
48
|
ngOnDestroy(): void;
|
|
44
|
-
private
|
|
49
|
+
private loadPage;
|
|
50
|
+
private finishPageLoad;
|
|
51
|
+
private retryPageLoad;
|
|
52
|
+
private scheduleNextPage;
|
|
53
|
+
private continueLazyLoad;
|
|
54
|
+
private finishPreload;
|
|
55
|
+
private finishFirstRender;
|
|
45
56
|
private onEditorChange;
|
|
46
57
|
private onAddedCombinedBlock;
|
|
47
58
|
private onUpdatedCombinedBlock;
|
|
48
59
|
private onRemovedCombinedBlock;
|
|
49
|
-
private
|
|
60
|
+
private onEditorEndMove;
|
|
50
61
|
private initEditorEffect;
|
|
51
62
|
private initEditorChanges;
|
|
52
|
-
private
|
|
63
|
+
private recalculateAllBlocksAfterRemoval;
|
|
64
|
+
private observeEditorEnd;
|
|
65
|
+
private createLazyLoadObserver;
|
|
66
|
+
private getViewportElement;
|
|
53
67
|
private initEditorEvents;
|
|
54
|
-
private startPooling;
|
|
55
68
|
private teardownEditor;
|
|
56
69
|
private enqueueInit;
|
|
57
70
|
private runEditorInit;
|
|
@@ -72,9 +85,11 @@ export declare class CuiEditorComponent implements OnDestroy {
|
|
|
72
85
|
private setBlockIdsToMap;
|
|
73
86
|
private updateElementLocalIdWithMainId;
|
|
74
87
|
private setStartBlock;
|
|
88
|
+
private renderStartBlock;
|
|
75
89
|
private setFocus;
|
|
76
90
|
private checkIsEmpty;
|
|
77
91
|
private resetData;
|
|
92
|
+
private resetLazyLoad;
|
|
78
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<CuiEditorComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CuiEditorComponent, "cui-editor", never, { "editorApiId": { "alias": "editorApiId"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "requestSize": { "alias": "requestSize"; "required": false; "isSignal": true; }; }, { "editorEmpty": "editorEmpty"; }, never, never, true, never>;
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CuiEditorComponent, "cui-editor", never, { "editorApiId": { "alias": "editorApiId"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "requestSize": { "alias": "requestSize"; "required": false; "isSignal": true; }; }, { "editorEmpty": "editorEmpty"; "editorReady": "editorReady"; }, never, never, true, never>;
|
|
80
95
|
}
|