@myrmidon/cadmus-part-epigraphy-formula-patterns 10.0.0 → 12.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.
@@ -1,40 +0,0 @@
1
- import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
2
- import { DialogService } from '@myrmidon/ngx-mat-tools';
3
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
4
- import { EpiFormulaPattern, EpiFormulaToken } from '../epi-formula-patterns-part';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Epigraphic formula pattern editor.
8
- */
9
- export declare class EpiFormulaPatternComponent {
10
- private _dialogService;
11
- /**
12
- * The pattern being edited.
13
- */
14
- readonly pattern: import("@angular/core").ModelSignal<EpiFormulaPattern | undefined>;
15
- readonly langEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
16
- readonly tagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
17
- readonly tokTagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
18
- readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
19
- editedIndex: number;
20
- edited?: EpiFormulaToken;
21
- eid: FormControl<string | null>;
22
- language: FormControl<string>;
23
- tag: FormControl<string | null>;
24
- tokens: FormControl<EpiFormulaToken[]>;
25
- form: FormGroup;
26
- constructor(formBuilder: FormBuilder, _dialogService: DialogService);
27
- private updateForm;
28
- addToken(): void;
29
- editToken(token: EpiFormulaToken, index: number): void;
30
- closeToken(): void;
31
- saveToken(token: EpiFormulaToken): void;
32
- deleteToken(index: number): void;
33
- moveTokenUp(index: number): void;
34
- moveTokenDown(index: number): void;
35
- private getPattern;
36
- cancel(): void;
37
- save(): void;
38
- static ɵfac: i0.ɵɵFactoryDeclaration<EpiFormulaPatternComponent, never>;
39
- static ɵcmp: i0.ɵɵComponentDeclaration<EpiFormulaPatternComponent, "cadmus-epi-formula-pattern", never, { "pattern": { "alias": "pattern"; "required": false; "isSignal": true; }; "langEntries": { "alias": "langEntries"; "required": false; "isSignal": true; }; "tagEntries": { "alias": "tagEntries"; "required": false; "isSignal": true; }; "tokTagEntries": { "alias": "tokTagEntries"; "required": false; "isSignal": true; }; }, { "pattern": "patternChange"; "editorClose": "editorClose"; }, never, never, true, never>;
40
- }
@@ -1,38 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FormControl, FormBuilder, FormGroup, UntypedFormGroup } from '@angular/forms';
3
- import { DialogService } from '@myrmidon/ngx-mat-tools';
4
- import { AuthJwtService } from '@myrmidon/auth-jwt-login';
5
- import { EditedObject, ModelEditorComponentBase } from '@myrmidon/cadmus-ui';
6
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
7
- import { EpiFormulaPattern, EpiFormulaPatternsPart } from '../epi-formula-patterns-part';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * EpiFormulaPatterns part editor component.
11
- * Thesauri: epi-formula-pattern-languages, epi-formula-pattern-tags,
12
- * epi-formula-token-tags (all optional).
13
- */
14
- export declare class EpiFormulaPatternsPartComponent extends ModelEditorComponentBase<EpiFormulaPatternsPart> implements OnInit {
15
- private _dialogService;
16
- editedIndex: number;
17
- edited: EpiFormulaPattern | undefined;
18
- langEntries: ThesaurusEntry[] | undefined;
19
- tagEntries: ThesaurusEntry[] | undefined;
20
- tokTagEntries: ThesaurusEntry[] | undefined;
21
- patterns: FormControl<EpiFormulaPattern[]>;
22
- constructor(authService: AuthJwtService, formBuilder: FormBuilder, _dialogService: DialogService);
23
- ngOnInit(): void;
24
- protected buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
25
- private updateThesauri;
26
- private updateForm;
27
- protected onDataSet(data?: EditedObject<EpiFormulaPatternsPart>): void;
28
- protected getValue(): EpiFormulaPatternsPart;
29
- addPattern(): void;
30
- editPattern(entry: EpiFormulaPattern, index: number): void;
31
- closePattern(): void;
32
- savePattern(pattern: EpiFormulaPattern): void;
33
- deletePattern(index: number): void;
34
- movePatternUp(index: number): void;
35
- movePatternDown(index: number): void;
36
- static ɵfac: i0.ɵɵFactoryDeclaration<EpiFormulaPatternsPartComponent, never>;
37
- static ɵcmp: i0.ɵɵComponentDeclaration<EpiFormulaPatternsPartComponent, "cadmus-epi-formula-patterns-part", never, {}, {}, never, never, true, never>;
38
- }
@@ -1,12 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { Router, ActivatedRoute } from '@angular/router';
3
- import { MatSnackBar } from '@angular/material/snack-bar';
4
- import { EditPartFeatureBase, PartEditorService } from '@myrmidon/cadmus-state';
5
- import { ItemService, ThesaurusService } from '@myrmidon/cadmus-api';
6
- import * as i0 from "@angular/core";
7
- export declare class EpiFormulaPatternsPartFeatureComponent extends EditPartFeatureBase implements OnInit {
8
- constructor(router: Router, route: ActivatedRoute, snackbar: MatSnackBar, itemService: ItemService, thesaurusService: ThesaurusService, editorService: PartEditorService);
9
- protected getReqThesauriIds(): string[];
10
- static ɵfac: i0.ɵɵFactoryDeclaration<EpiFormulaPatternsPartFeatureComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<EpiFormulaPatternsPartFeatureComponent, "cadmus-epi-formula-patterns-part-feature", never, {}, {}, never, never, true, never>;
12
- }
@@ -1,118 +0,0 @@
1
- import { Part } from '@myrmidon/cadmus-core';
2
- /**
3
- * A single token in an epigraphic formula pattern.
4
- */
5
- export interface EpiFormulaToken {
6
- tags: string[];
7
- values: string[];
8
- isOptional?: boolean;
9
- isPlaceholder?: boolean;
10
- note?: string;
11
- }
12
- /**
13
- * An epigraphic formula pattern.
14
- */
15
- export interface EpiFormulaPattern {
16
- eid?: string;
17
- language: string;
18
- tag?: string;
19
- tokens: EpiFormulaToken[];
20
- }
21
- /**
22
- * The epigraphic formula patterns part model.
23
- */
24
- export interface EpiFormulaPatternsPart extends Part {
25
- patterns: EpiFormulaPattern[];
26
- }
27
- /**
28
- * The type ID used to identify the EpiFormulaPatternsPart type.
29
- */
30
- export declare const EPI_FORMULA_PATTERNS_PART_TYPEID = "it.vedph.epigraphy.formula-patterns";
31
- /**
32
- * JSON schema for the EpiFormulaPatterns part.
33
- * You can use the JSON schema tool at https://jsonschema.net/.
34
- */
35
- export declare const EPI_FORMULA_PATTERNS_PART_SCHEMA: {
36
- $schema: string;
37
- $id: string;
38
- type: string;
39
- title: string;
40
- required: string[];
41
- properties: {
42
- timeCreated: {
43
- type: string;
44
- pattern: string;
45
- };
46
- creatorId: {
47
- type: string;
48
- };
49
- timeModified: {
50
- type: string;
51
- pattern: string;
52
- };
53
- userId: {
54
- type: string;
55
- };
56
- id: {
57
- type: string;
58
- pattern: string;
59
- };
60
- itemId: {
61
- type: string;
62
- pattern: string;
63
- };
64
- typeId: {
65
- type: string;
66
- pattern: string;
67
- };
68
- roleId: {
69
- type: string[];
70
- pattern: string;
71
- };
72
- patterns: {
73
- type: string;
74
- items: {
75
- type: string;
76
- required: string[];
77
- properties: {
78
- eid: {
79
- type: string;
80
- };
81
- language: {
82
- type: string;
83
- };
84
- tag: {
85
- type: string;
86
- };
87
- tokens: {
88
- type: string;
89
- items: {
90
- type: string;
91
- required: string[];
92
- properties: {
93
- tag: {
94
- type: string;
95
- };
96
- values: {
97
- type: string;
98
- items: {
99
- type: string;
100
- };
101
- };
102
- isOptional: {
103
- type: string;
104
- };
105
- isPlaceholder: {
106
- type: string;
107
- };
108
- note: {
109
- type: string;
110
- };
111
- };
112
- };
113
- };
114
- };
115
- };
116
- };
117
- };
118
- };
@@ -1,33 +0,0 @@
1
- import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
2
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
3
- import { EpiFormulaToken } from '../epi-formula-patterns-part';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Epigraphic formula pattern's token editor.
7
- */
8
- export declare class EpiFormulaTokenComponent {
9
- /**
10
- * The token being edited.
11
- */
12
- readonly token: import("@angular/core").ModelSignal<EpiFormulaToken | undefined>;
13
- readonly tagEntries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
14
- editorClose: import("@angular/core").OutputEmitterRef<void>;
15
- optional: FormControl<boolean>;
16
- placeholder: FormControl<boolean>;
17
- tags: FormControl<ThesaurusEntry[]>;
18
- values: FormControl<string>;
19
- note: FormControl<string | null>;
20
- form: FormGroup;
21
- constructor(formBuilder: FormBuilder);
22
- private updateForm;
23
- onEntryChange(entry: ThesaurusEntry): void;
24
- removeTag(index: number): void;
25
- moveTagUp(index: number): void;
26
- moveTagDown(index: number): void;
27
- private getToken;
28
- cancel(): void;
29
- save(): void;
30
- renderLabel(label: string): string;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<EpiFormulaTokenComponent, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<EpiFormulaTokenComponent, "cadmus-epi-formula-token", never, { "token": { "alias": "token"; "required": false; "isSignal": true; }; "tagEntries": { "alias": "tagEntries"; "required": false; "isSignal": true; }; }, { "token": "tokenChange"; "editorClose": "editorClose"; }, never, never, true, never>;
33
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { EpiFormulaToken } from './epi-formula-patterns-part';
3
- import * as i0 from "@angular/core";
4
- export declare class EpiFormulaTokenPipe implements PipeTransform {
5
- transform(value: EpiFormulaToken | undefined | null): unknown;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<EpiFormulaTokenPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<EpiFormulaTokenPipe, "epiFormulaToken", true>;
8
- }
package/public-api.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './lib/epi-formula-patterns-part';
2
- export * from './lib/epi-formula-patterns-part/epi-formula-patterns-part.component';
3
- export * from './lib/epi-formula-patterns-part-feature/epi-formula-patterns-part-feature.component';
4
- export * from './lib/epi-formula-pattern/epi-formula-pattern.component';
5
- export * from './lib/epi-formula-token/epi-formula-token.component';
6
- export * from './lib/epi-formula-token.pipe';