@talrace/ngx-noder 0.0.9 → 0.0.10
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/esm2022/lib/apart-components/add-link-dialog/add-link-dialog.component.mjs +7 -1
- package/esm2022/lib/apart-components/editor-toolbar/editor-mobile-toolbar/editor-mobile-toolbar.component.mjs +2 -2
- package/esm2022/lib/editor/content/helpers/link.helper.mjs +6 -0
- package/esm2022/lib/editor/display/layers/text.layer.mjs +7 -8
- package/esm2022/lib/editor/execution/edit.session.mjs +18 -5
- package/esm2022/lib/editor/execution/editor.mjs +4 -3
- package/esm2022/lib/editor/execution/helpers/format-style.helper.mjs +42 -1
- package/esm2022/lib/editor/operations/helpers/link-operations.helper.mjs +38 -20
- package/esm2022/lib/editor/operations/operations-helper.helper.mjs +16 -8
- package/esm2022/lib/models/generated/link.model.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/talrace-ngx-noder.mjs +139 -51
- package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
- package/lib/editor/content/helpers/link.helper.d.ts +4 -0
- package/lib/editor/display/layers/text.layer.d.ts +1 -1
- package/lib/editor/execution/edit.session.d.ts +1 -0
- package/lib/editor/execution/helpers/format-style.helper.d.ts +2 -0
- package/lib/editor/operations/helpers/link-operations.helper.d.ts +2 -1
- package/lib/models/generated/link.model.d.ts +3 -1
- package/package.json +8 -8
- package/public-api.d.ts +1 -0
- package/src/styles.scss +0 -1
- package/src/scss/_fonts.scss +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EdgeElementModel } from '../../components/edges/edge-element.model';
|
|
2
|
-
import { EditSession } from '../../execution/edit.session';
|
|
3
2
|
import { EditorService } from '../../interaction/editor.service';
|
|
3
|
+
import { EditSession } from '../../execution/edit.session';
|
|
4
4
|
import { ILayerConfig } from './layer.config';
|
|
5
5
|
import { Lines } from '../../content/display-data/lines';
|
|
6
6
|
import { PageType } from '../../components/edges/page-type.enum';
|
|
@@ -100,6 +100,7 @@ export declare class EditSession {
|
|
|
100
100
|
insertParagraph(position: CursorParagraph, paragraphModel: InsertParagraphModel): CursorParagraph;
|
|
101
101
|
addComponent<T extends BaseNoderComponent>(customElements: ComponentRef<T>[], model: CustomContent, componentType: Type<T>): void;
|
|
102
102
|
applyToolbarStyles(): void;
|
|
103
|
+
getStyleForCursor(index: number): TextStyleModel[];
|
|
103
104
|
restore(model: RestoreModel): void;
|
|
104
105
|
restoreComponents<T extends BaseNoderComponent>(models: CustomContent[], components: ComponentRef<BaseNoderComponent>[], componentType: Type<T>, restoreIndex: number, restoreEndIndex: number): void;
|
|
105
106
|
restoreElementComponents(elements: ElementModel[], restoreIndex: number, restoreEndIndex: number): void;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { FormatModel } from '../../../models/generated/format.model';
|
|
2
|
+
import { LinkModel } from '../../../models/generated/link.model';
|
|
2
3
|
export declare class FormatStyleHelper {
|
|
3
4
|
static getFormatsAtRange(formats: FormatModel[], startIndex: number, endIndex: number): FormatModel[];
|
|
4
5
|
static getFormatAtIndex(formats: FormatModel[], index: number): FormatModel;
|
|
5
6
|
static mergeFormats(formats: FormatModel[], startIndex: number, endIndex: number): void;
|
|
6
7
|
static getPrevFormatAtIndex(formats: FormatModel[], index: number): FormatModel | null;
|
|
8
|
+
static combineSection(formats: FormatModel[], links: LinkModel[], startIndex: number, endIndex: number): FormatModel[];
|
|
7
9
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LinkModel } from '../../../models/generated/link.model';
|
|
2
|
+
import { TextStyleModel } from '../../../models/generated/text-style.model';
|
|
2
3
|
export declare class LinkOperationsHelper {
|
|
3
|
-
static insert(links: LinkModel[], link: string,
|
|
4
|
+
static insert(links: LinkModel[], link: string, startIndex: number, endIndex: number, textStyle: TextStyleModel): void;
|
|
4
5
|
static insertContent(links: LinkModel[], insertIndex: number, textLength: number): void;
|
|
5
6
|
static removeContent(links: LinkModel[], startIndex: number, endIndex: number): void;
|
|
6
7
|
static restore(links: LinkModel[], startIndex: number, contentLength: number, newlinks: LinkModel[]): void;
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@talrace/ngx-noder",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/common": "^17.
|
|
7
|
-
"@angular/core": "^17.
|
|
8
|
-
"@angular/forms": "^17.
|
|
9
|
-
"@angular/material": "^17.
|
|
10
|
-
"@angular/router": "^17.
|
|
6
|
+
"@angular/common": "^17.3.12",
|
|
7
|
+
"@angular/core": "^17.3.12",
|
|
8
|
+
"@angular/forms": "^17.3.12",
|
|
9
|
+
"@angular/material": "^17.3.6",
|
|
10
|
+
"@angular/router": "^17.3.12",
|
|
11
11
|
"@ngxs/router-plugin": "^3.8.2",
|
|
12
12
|
"@ngxs/store": "^3.8.2",
|
|
13
13
|
"material-icons": "^1.13.12",
|
|
14
|
-
"ngx-colors": "^3.
|
|
14
|
+
"ngx-colors": "^3.6.0",
|
|
15
15
|
"ngx-toastr": "^18.0.0",
|
|
16
16
|
"roboto-fontface": "0.10.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"tslib": "^2.3
|
|
19
|
+
"tslib": "^2.6.3"
|
|
20
20
|
},
|
|
21
21
|
"sideEffects": false,
|
|
22
22
|
"module": "fesm2022/talrace-ngx-noder.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export * from './lib/apart-components/editor-toolbar/editor-toolbar/editor-toolb
|
|
|
27
27
|
export * from './lib/apart-components/editor-toolbar/shared/enums/alignment.enum';
|
|
28
28
|
export * from './lib/apart-components/editor-toolbar/shared/enums/editor-toolbar-mode.enum';
|
|
29
29
|
export * from './lib/apart-components/editor-toolbar/shared/services/editor-toolbar.service';
|
|
30
|
+
export * from './lib/apart-components/text-format-mobile/text-format-mobile.component';
|
|
30
31
|
export * from './lib/editor/interaction/mode.enum';
|
|
31
32
|
export * from './lib/editor/revision.helper';
|
|
32
33
|
export * from './lib/apart-components/add-link-dialog/add-link-dialog.component';
|
package/src/styles.scss
CHANGED
package/src/scss/_fonts.scss
DELETED