@myrmidon/cadmus-core 1.1.2 → 2.0.0
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/esm2020/lib/cadmus-core.module.mjs +4 -4
- package/esm2020/lib/guards/pending-changes.guard.mjs +13 -11
- package/esm2020/lib/models.mjs +1 -1
- package/esm2020/lib/pipes/sort.pipe.mjs +3 -3
- package/esm2020/lib/services/library-route.service.mjs +6 -6
- package/esm2020/lib/services/text-layer.service.mjs +15 -19
- package/fesm2015/myrmidon-cadmus-core.mjs +39 -40
- package/fesm2015/myrmidon-cadmus-core.mjs.map +1 -1
- package/fesm2020/myrmidon-cadmus-core.mjs +39 -40
- package/fesm2020/myrmidon-cadmus-core.mjs.map +1 -1
- package/lib/guards/pending-changes.guard.d.ts +3 -0
- package/lib/models.d.ts +0 -4
- package/lib/services/library-route.service.d.ts +2 -2
- package/lib/services/text-layer.service.d.ts +2 -3
- package/package.json +3 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CanDeactivate } from '@angular/router';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { DialogService } from '@myrmidon/ng-mat-tools';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
5
6
|
* Interface implemented by those components which require a pending changes
|
|
@@ -10,6 +11,8 @@ export interface ComponentCanDeactivate {
|
|
|
10
11
|
canDeactivate: () => boolean | Observable<boolean>;
|
|
11
12
|
}
|
|
12
13
|
export declare class PendingChangesGuard implements CanDeactivate<ComponentCanDeactivate> {
|
|
14
|
+
private _dialogService;
|
|
15
|
+
constructor(_dialogService: DialogService);
|
|
13
16
|
canDeactivate(component: ComponentCanDeactivate): boolean | Observable<boolean>;
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PendingChangesGuard, never>;
|
|
15
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<PendingChangesGuard>;
|
package/lib/models.d.ts
CHANGED
|
@@ -34,8 +34,6 @@ export declare enum FlagMatching {
|
|
|
34
34
|
* Filter for items.
|
|
35
35
|
*/
|
|
36
36
|
export interface ItemFilter {
|
|
37
|
-
pageNumber: number;
|
|
38
|
-
pageSize: number;
|
|
39
37
|
title?: string;
|
|
40
38
|
description?: string;
|
|
41
39
|
facetId?: string;
|
|
@@ -186,8 +184,6 @@ export interface ThesauriSet {
|
|
|
186
184
|
* Filter for thesauri.
|
|
187
185
|
*/
|
|
188
186
|
export interface ThesaurusFilter {
|
|
189
|
-
pageNumber: number;
|
|
190
|
-
pageSize: number;
|
|
191
187
|
id?: string;
|
|
192
188
|
isAlias?: boolean;
|
|
193
189
|
language?: string;
|
|
@@ -37,7 +37,7 @@ export declare class LibraryRouteService {
|
|
|
37
37
|
* would return "fr.it.vedph.comment". This is required to navigate to
|
|
38
38
|
* the correct fragment editor, which is the same for each fragment type,
|
|
39
39
|
* independently from its role.
|
|
40
|
-
* @param
|
|
40
|
+
* @param roleId The part role ID.
|
|
41
41
|
* @returns An object where frTypeId=fragment type ID and frRoleId=fragment role
|
|
42
42
|
* ID, or null.
|
|
43
43
|
*/
|
|
@@ -86,7 +86,7 @@ export declare class LibraryRouteService {
|
|
|
86
86
|
* as a suffix preceded by a colon.
|
|
87
87
|
*
|
|
88
88
|
* A fragment editing route is like
|
|
89
|
-
* "/items/<id>/<part-group>/fragment/<part-id>/<fr-typeid>/<loc>?
|
|
89
|
+
* "/items/<id>/<part-group>/fragment/<part-id>/<fr-typeid>/<loc>?frrid=<role-id>",
|
|
90
90
|
* where the role ID is as above, and the fragment's type ID is derived
|
|
91
91
|
* from the part's role ID, stripping the eventual fragment's role ID out.
|
|
92
92
|
*
|
|
@@ -52,8 +52,6 @@ export declare class TextLayerService {
|
|
|
52
52
|
* Render the specified token intersecting the specified range start location.
|
|
53
53
|
* The received token starts a multi-tokens range.
|
|
54
54
|
* @param loc location.
|
|
55
|
-
* @param locPortion the index of the token's portion (0-N). This is used
|
|
56
|
-
* to build a unique ID for each HTML span rendering a layer fragment.
|
|
57
55
|
* @param token token.
|
|
58
56
|
* @param sb target strings array.
|
|
59
57
|
* @param isSelected True if the token is selected.
|
|
@@ -133,8 +131,9 @@ export declare class TextLayerService {
|
|
|
133
131
|
* @param matcher The matcher function, which receives a node
|
|
134
132
|
* to match, and returns 1=match, 0=no match, -1=stop the
|
|
135
133
|
* find operation with a no match.
|
|
134
|
+
* @return 1=match, 0=no match, -1=stop the find operation with a no match.
|
|
136
135
|
*/
|
|
137
|
-
private
|
|
136
|
+
private matchNode;
|
|
138
137
|
private selHasAnySpan;
|
|
139
138
|
/**
|
|
140
139
|
* Get the location corresponding to the user selection,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/cadmus-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Cadmus - core.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Cadmus"
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"name": "Daniele Fusi"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@angular/common": "^
|
|
18
|
-
"@angular/core": "^
|
|
17
|
+
"@angular/common": "^15.0.0",
|
|
18
|
+
"@angular/core": "^15.0.0"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"tslib": "^2.3.0"
|