@myrmidon/cadmus-refs-asserted-ids 0.0.1
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/README.md +24 -0
- package/esm2020/lib/asserted-id/asserted-id.component.mjs +95 -0
- package/esm2020/lib/asserted-ids/asserted-ids.component.mjs +209 -0
- package/esm2020/lib/cadmus-refs-asserted-ids.module.mjs +70 -0
- package/esm2020/myrmidon-cadmus-refs-asserted-ids.mjs +5 -0
- package/esm2020/public-api.mjs +7 -0
- package/fesm2015/myrmidon-cadmus-refs-asserted-ids.mjs +370 -0
- package/fesm2015/myrmidon-cadmus-refs-asserted-ids.mjs.map +1 -0
- package/fesm2020/myrmidon-cadmus-refs-asserted-ids.mjs +368 -0
- package/fesm2020/myrmidon-cadmus-refs-asserted-ids.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/asserted-id/asserted-id.component.d.ts +37 -0
- package/lib/asserted-ids/asserted-ids.component.d.ts +60 -0
- package/lib/cadmus-refs-asserted-ids.module.d.ts +19 -0
- package/package.json +44 -0
- package/public-api.d.ts +3 -0
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Component, Input, Output, ViewChildren, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/forms';
|
|
4
|
+
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { debounceTime } from 'rxjs/operators';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import * as i3 from '@angular/material/expansion';
|
|
9
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
10
|
+
import * as i4 from '@angular/material/form-field';
|
|
11
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
12
|
+
import * as i5 from '@angular/material/input';
|
|
13
|
+
import { MatInputModule } from '@angular/material/input';
|
|
14
|
+
import * as i6 from '@angular/material/select';
|
|
15
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
16
|
+
import * as i7 from '@angular/material/core';
|
|
17
|
+
import * as i8 from '@myrmidon/cadmus-refs-assertion';
|
|
18
|
+
import { CadmusRefsAssertionModule } from '@myrmidon/cadmus-refs-assertion';
|
|
19
|
+
import * as i3$1 from '@angular/material/button';
|
|
20
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
21
|
+
import * as i6$1 from '@angular/material/icon';
|
|
22
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
23
|
+
import { CadmusCoreModule } from '@myrmidon/cadmus-core';
|
|
24
|
+
import { CadmusRefsDocReferencesModule } from '@myrmidon/cadmus-refs-doc-references';
|
|
25
|
+
|
|
26
|
+
class AssertedIdComponent {
|
|
27
|
+
constructor(formBuilder) {
|
|
28
|
+
this.idChange = new EventEmitter();
|
|
29
|
+
// form
|
|
30
|
+
this.tag = formBuilder.control(null, Validators.maxLength(50));
|
|
31
|
+
this.value = formBuilder.control(null, [
|
|
32
|
+
Validators.required,
|
|
33
|
+
Validators.maxLength(500),
|
|
34
|
+
]);
|
|
35
|
+
this.scope = formBuilder.control(null, Validators.maxLength(500));
|
|
36
|
+
this.form = formBuilder.group({
|
|
37
|
+
tag: this.tag,
|
|
38
|
+
value: this.value,
|
|
39
|
+
scope: this.scope,
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
get id() {
|
|
43
|
+
return this._id;
|
|
44
|
+
}
|
|
45
|
+
set id(value) {
|
|
46
|
+
this._id = value;
|
|
47
|
+
this.updateForm(value);
|
|
48
|
+
}
|
|
49
|
+
ngOnInit() {
|
|
50
|
+
this.form.valueChanges.pipe(debounceTime(300)).subscribe((_) => {
|
|
51
|
+
if (!this._updatingForm) {
|
|
52
|
+
this.emitIdChange();
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
onAssertionChange(assertion) {
|
|
57
|
+
this.assertion = assertion;
|
|
58
|
+
setTimeout(() => this.emitIdChange(), 0);
|
|
59
|
+
}
|
|
60
|
+
updateForm(value) {
|
|
61
|
+
this._updatingForm = true;
|
|
62
|
+
if (!value) {
|
|
63
|
+
this.form.reset();
|
|
64
|
+
this.assertion = undefined;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
this.tag.setValue(value.tag || null);
|
|
68
|
+
this.value.setValue(value.value);
|
|
69
|
+
this.scope.setValue(value.scope);
|
|
70
|
+
this.initialAssertion = value.assertion;
|
|
71
|
+
this.form.markAsPristine();
|
|
72
|
+
}
|
|
73
|
+
this._updatingForm = false;
|
|
74
|
+
this.emitIdChange();
|
|
75
|
+
}
|
|
76
|
+
getId() {
|
|
77
|
+
var _a, _b, _c;
|
|
78
|
+
return {
|
|
79
|
+
tag: (_a = this.tag.value) === null || _a === void 0 ? void 0 : _a.trim(),
|
|
80
|
+
value: ((_b = this.value.value) === null || _b === void 0 ? void 0 : _b.trim()) || '',
|
|
81
|
+
scope: ((_c = this.scope.value) === null || _c === void 0 ? void 0 : _c.trim()) || '',
|
|
82
|
+
assertion: this.assertion,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
emitIdChange() {
|
|
86
|
+
this.idChange.emit(this.getId());
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
AssertedIdComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AssertedIdComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
AssertedIdComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: AssertedIdComponent, selector: "cadmus-refs-asserted-id", inputs: { scopeEntries: "scopeEntries", idTagEntries: "idTagEntries", assTagEntries: "assTagEntries", refTypeEntries: "refTypeEntries", refTagEntries: "refTagEntries", id: "id" }, outputs: { idChange: "idChange" }, ngImport: i0, template: "<form [formGroup]=\"form\">\n <div>\n <!-- tag (bound) -->\n <mat-form-field *ngIf=\"idTagEntries?.length\" style=\"width: 8em\">\n <mat-select [formControl]=\"tag\" placeholder=\"tag\">\n <mat-option *ngFor=\"let e of idTagEntries\" [value]=\"e.id\">{{\n e.value\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n <!-- tag (free) -->\n <mat-form-field *ngIf=\"!idTagEntries?.length\" style=\"width: 8em\">\n <input matInput [formControl]=\"tag\" placeholder=\"tag\" />\n <mat-error *ngIf=\"tag.errors?.maxLength && (tag.dirty || tag.touched)\"\n >tag too long</mat-error\n >\n </mat-form-field>\n \n\n <!-- scope (bound) -->\n <mat-form-field *ngIf=\"scopeEntries?.length\" style=\"width: 8em\">\n <mat-select [formControl]=\"scope\" placeholder=\"scope\">\n <mat-option *ngFor=\"let e of scopeEntries\" [value]=\"e.id\">{{\n e.value\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n <!-- scope (free) -->\n <mat-form-field *ngIf=\"!scopeEntries?.length\" style=\"width: 8em\">\n <input matInput [formControl]=\"scope\" placeholder=\"scope\" />\n <mat-error\n *ngIf=\"scope.errors?.maxLength && (scope.dirty || scope.touched)\"\n >scope too long</mat-error\n >\n </mat-form-field>\n <!-- value -->\n \n <mat-form-field>\n <input matInput [formControl]=\"value\" placeholder=\"value\" />\n <mat-error\n *ngIf=\"value.errors?.required && (value.dirty || value.touched)\"\n >value required</mat-error\n >\n <mat-error\n *ngIf=\"value.errors?.maxLength && (value.dirty || value.touched)\"\n >value too long</mat-error\n >\n </mat-form-field>\n </div>\n\n <!-- assertion -->\n <mat-expansion-panel>\n <mat-expansion-panel-header>assertion</mat-expansion-panel-header>\n <cadmus-refs-assertion\n [assTagEntries]=\"assTagEntries\"\n [refTypeEntries]=\"refTypeEntries\"\n [refTagEntries]=\"refTagEntries\"\n [assertion]=\"initialAssertion\"\n (assertionChange)=\"onAssertionChange($event)\"\n >\n </cadmus-refs-assertion>\n </mat-expansion-panel>\n</form>\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i8.AssertionComponent, selector: "cadmus-refs-assertion", inputs: ["assTagEntries", "refTypeEntries", "refTagEntries", "assertion"], outputs: ["assertionChange"] }] });
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AssertedIdComponent, decorators: [{
|
|
92
|
+
type: Component,
|
|
93
|
+
args: [{ selector: 'cadmus-refs-asserted-id', template: "<form [formGroup]=\"form\">\n <div>\n <!-- tag (bound) -->\n <mat-form-field *ngIf=\"idTagEntries?.length\" style=\"width: 8em\">\n <mat-select [formControl]=\"tag\" placeholder=\"tag\">\n <mat-option *ngFor=\"let e of idTagEntries\" [value]=\"e.id\">{{\n e.value\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n <!-- tag (free) -->\n <mat-form-field *ngIf=\"!idTagEntries?.length\" style=\"width: 8em\">\n <input matInput [formControl]=\"tag\" placeholder=\"tag\" />\n <mat-error *ngIf=\"tag.errors?.maxLength && (tag.dirty || tag.touched)\"\n >tag too long</mat-error\n >\n </mat-form-field>\n \n\n <!-- scope (bound) -->\n <mat-form-field *ngIf=\"scopeEntries?.length\" style=\"width: 8em\">\n <mat-select [formControl]=\"scope\" placeholder=\"scope\">\n <mat-option *ngFor=\"let e of scopeEntries\" [value]=\"e.id\">{{\n e.value\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n <!-- scope (free) -->\n <mat-form-field *ngIf=\"!scopeEntries?.length\" style=\"width: 8em\">\n <input matInput [formControl]=\"scope\" placeholder=\"scope\" />\n <mat-error\n *ngIf=\"scope.errors?.maxLength && (scope.dirty || scope.touched)\"\n >scope too long</mat-error\n >\n </mat-form-field>\n <!-- value -->\n \n <mat-form-field>\n <input matInput [formControl]=\"value\" placeholder=\"value\" />\n <mat-error\n *ngIf=\"value.errors?.required && (value.dirty || value.touched)\"\n >value required</mat-error\n >\n <mat-error\n *ngIf=\"value.errors?.maxLength && (value.dirty || value.touched)\"\n >value too long</mat-error\n >\n </mat-form-field>\n </div>\n\n <!-- assertion -->\n <mat-expansion-panel>\n <mat-expansion-panel-header>assertion</mat-expansion-panel-header>\n <cadmus-refs-assertion\n [assTagEntries]=\"assTagEntries\"\n [refTypeEntries]=\"refTypeEntries\"\n [refTagEntries]=\"refTagEntries\"\n [assertion]=\"initialAssertion\"\n (assertionChange)=\"onAssertionChange($event)\"\n >\n </cadmus-refs-assertion>\n </mat-expansion-panel>\n</form>\n" }]
|
|
94
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { scopeEntries: [{
|
|
95
|
+
type: Input
|
|
96
|
+
}], idTagEntries: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], assTagEntries: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], refTypeEntries: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}], refTagEntries: [{
|
|
103
|
+
type: Input
|
|
104
|
+
}], id: [{
|
|
105
|
+
type: Input
|
|
106
|
+
}], idChange: [{
|
|
107
|
+
type: Output
|
|
108
|
+
}] } });
|
|
109
|
+
|
|
110
|
+
class AssertedIdsComponent {
|
|
111
|
+
constructor(_formBuilder) {
|
|
112
|
+
this._formBuilder = _formBuilder;
|
|
113
|
+
this._ids = [];
|
|
114
|
+
this._idsSubs = [];
|
|
115
|
+
this.idsChange = new EventEmitter();
|
|
116
|
+
this.assEdOpen = false;
|
|
117
|
+
// form
|
|
118
|
+
this.idsArr = _formBuilder.array([]);
|
|
119
|
+
this.form = _formBuilder.group({
|
|
120
|
+
idsArr: this.idsArr,
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The asserted IDs.
|
|
125
|
+
*/
|
|
126
|
+
get ids() {
|
|
127
|
+
return this._ids;
|
|
128
|
+
}
|
|
129
|
+
set ids(value) {
|
|
130
|
+
this._ids = value || [];
|
|
131
|
+
this.updateForm(value);
|
|
132
|
+
}
|
|
133
|
+
ngAfterViewInit() {
|
|
134
|
+
var _a;
|
|
135
|
+
// focus on newly added ID
|
|
136
|
+
this._idSubscription = (_a = this.idQueryList) === null || _a === void 0 ? void 0 : _a.changes.pipe(debounceTime(300)).subscribe((lst) => {
|
|
137
|
+
if (!this._updatingForm && lst.length > 0) {
|
|
138
|
+
lst.last.nativeElement.focus();
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
unsubscribeIds() {
|
|
143
|
+
for (let i = 0; i < this._idsSubs.length; i++) {
|
|
144
|
+
this._idsSubs[i].unsubscribe();
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
ngOnDestroy() {
|
|
148
|
+
var _a;
|
|
149
|
+
this.unsubscribeIds();
|
|
150
|
+
(_a = this._idSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
151
|
+
}
|
|
152
|
+
getIdGroup(id) {
|
|
153
|
+
return this._formBuilder.group({
|
|
154
|
+
value: this._formBuilder.control(id === null || id === void 0 ? void 0 : id.value, [
|
|
155
|
+
Validators.required,
|
|
156
|
+
Validators.maxLength(500),
|
|
157
|
+
]),
|
|
158
|
+
scope: this._formBuilder.control(id === null || id === void 0 ? void 0 : id.scope, Validators.maxLength(50)),
|
|
159
|
+
tag: this._formBuilder.control(id === null || id === void 0 ? void 0 : id.tag, Validators.maxLength(50)),
|
|
160
|
+
assertion: this._formBuilder.control(id === null || id === void 0 ? void 0 : id.assertion),
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
addId(id) {
|
|
164
|
+
const g = this.getIdGroup(id);
|
|
165
|
+
this._idsSubs.push(g.valueChanges.pipe(debounceTime(300)).subscribe((_) => {
|
|
166
|
+
this.emitIdsChange();
|
|
167
|
+
}));
|
|
168
|
+
this.idsArr.push(g);
|
|
169
|
+
if (!this._updatingForm) {
|
|
170
|
+
this.emitIdsChange();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
removeId(index) {
|
|
174
|
+
this.closeAssertion();
|
|
175
|
+
this._idsSubs[index].unsubscribe();
|
|
176
|
+
this._idsSubs.splice(index, 1);
|
|
177
|
+
this.idsArr.removeAt(index);
|
|
178
|
+
this.emitIdsChange();
|
|
179
|
+
}
|
|
180
|
+
swapArrElems(a, i, j) {
|
|
181
|
+
if (i === j) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
const t = a[i];
|
|
185
|
+
a[i] = a[j];
|
|
186
|
+
a[j] = t;
|
|
187
|
+
}
|
|
188
|
+
moveIdUp(index) {
|
|
189
|
+
if (index < 1) {
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
this.closeAssertion();
|
|
193
|
+
const ctl = this.idsArr.controls[index];
|
|
194
|
+
this.idsArr.removeAt(index);
|
|
195
|
+
this.idsArr.insert(index - 1, ctl);
|
|
196
|
+
this.swapArrElems(this._idsSubs, index, index - 1);
|
|
197
|
+
this.emitIdsChange();
|
|
198
|
+
}
|
|
199
|
+
moveIdDown(index) {
|
|
200
|
+
if (index + 1 >= this.idsArr.length) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
this.closeAssertion();
|
|
204
|
+
const item = this.idsArr.controls[index];
|
|
205
|
+
this.idsArr.removeAt(index);
|
|
206
|
+
this.idsArr.insert(index + 1, item);
|
|
207
|
+
this.swapArrElems(this._idsSubs, index, index + 1);
|
|
208
|
+
this.emitIdsChange();
|
|
209
|
+
}
|
|
210
|
+
clearIds() {
|
|
211
|
+
this.closeAssertion();
|
|
212
|
+
this.idsArr.clear();
|
|
213
|
+
this.unsubscribeIds();
|
|
214
|
+
this._idsSubs = [];
|
|
215
|
+
if (!this._updatingForm) {
|
|
216
|
+
this.emitIdsChange();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
editAssertion(index) {
|
|
220
|
+
// save the currently edited assertion if any
|
|
221
|
+
this.saveAssertion();
|
|
222
|
+
// edit the new assertion
|
|
223
|
+
this.initialAssertion = this.idsArr.at(index).controls['assertion'].value;
|
|
224
|
+
this.assertionNr = index + 1;
|
|
225
|
+
this.assEdOpen = true;
|
|
226
|
+
}
|
|
227
|
+
onAssertionChange(assertion) {
|
|
228
|
+
this.assertion = assertion;
|
|
229
|
+
}
|
|
230
|
+
saveAssertion() {
|
|
231
|
+
// save the currently edited assertion if any
|
|
232
|
+
if (this.assertionNr) {
|
|
233
|
+
const g = this.idsArr.at(this.assertionNr - 1);
|
|
234
|
+
g.controls['assertion'].setValue(this.assertion);
|
|
235
|
+
this.closeAssertion();
|
|
236
|
+
this.emitIdsChange();
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
closeAssertion() {
|
|
240
|
+
if (this.assertionNr) {
|
|
241
|
+
this.assEdOpen = false;
|
|
242
|
+
this.assertionNr = 0;
|
|
243
|
+
this.initialAssertion = undefined;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
updateForm(ids) {
|
|
247
|
+
if (!this.idsArr) {
|
|
248
|
+
return;
|
|
249
|
+
}
|
|
250
|
+
this._updatingForm = true;
|
|
251
|
+
this.clearIds();
|
|
252
|
+
if (!ids) {
|
|
253
|
+
this.form.reset();
|
|
254
|
+
}
|
|
255
|
+
else {
|
|
256
|
+
for (const id of ids) {
|
|
257
|
+
this.addId(id);
|
|
258
|
+
}
|
|
259
|
+
this.form.markAsPristine();
|
|
260
|
+
}
|
|
261
|
+
this._updatingForm = false;
|
|
262
|
+
this.emitIdsChange();
|
|
263
|
+
}
|
|
264
|
+
getIds() {
|
|
265
|
+
var _a, _b, _c;
|
|
266
|
+
const ids = [];
|
|
267
|
+
for (let i = 0; i < this.idsArr.length; i++) {
|
|
268
|
+
const g = this.idsArr.controls[i];
|
|
269
|
+
ids.push({
|
|
270
|
+
value: (_a = g.controls.value.value) === null || _a === void 0 ? void 0 : _a.trim(),
|
|
271
|
+
scope: (_b = g.controls.scope.value) === null || _b === void 0 ? void 0 : _b.trim(),
|
|
272
|
+
tag: (_c = g.controls.tag.value) === null || _c === void 0 ? void 0 : _c.trim(),
|
|
273
|
+
assertion: g.controls.assertion.value,
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
return ids;
|
|
277
|
+
}
|
|
278
|
+
emitIdsChange() {
|
|
279
|
+
this.idsChange.emit(this.getIds());
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
AssertedIdsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AssertedIdsComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
283
|
+
AssertedIdsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: AssertedIdsComponent, selector: "cadmus-refs-asserted-ids", inputs: { ids: "ids", scopeEntries: "scopeEntries", tagEntries: "tagEntries", assTagEntries: "assTagEntries", refTypeEntries: "refTypeEntries", refTagEntries: "refTagEntries" }, outputs: { idsChange: "idsChange" }, viewQueries: [{ propertyName: "idQueryList", predicate: ["id"], descendants: true }], ngImport: i0, template: "<form [formGroup]=\"form\">\r\n <div formArrayName=\"idsArr\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n (click)=\"addId()\"\r\n matTooltip=\"Add a new ID\"\r\n >\r\n <mat-icon>add_circle</mat-icon> add ID\r\n </button>\r\n </div>\r\n <div\r\n *ngFor=\"\r\n let item of idsArr.controls;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <!-- child form -->\r\n <div [formGroupName]=\"i\">\r\n <!-- child actions -->\r\n {{ i + 1 }}.\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Remove this ID\"\r\n color=\"warn\"\r\n (click)=\"removeId(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n <button\r\n [disabled]=\"first\"\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Move ID up\"\r\n (click)=\"moveIdUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n [disabled]=\"last\"\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Move ID down\"\r\n (click)=\"moveIdDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n\r\n <!-- child controls -->\r\n <!-- value -->\r\n <mat-form-field>\r\n <input\r\n #id\r\n autofocus\r\n matInput\r\n formControlName=\"value\"\r\n placeholder=\"external ID\"\r\n />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].value?.hasError('required') &&\r\n ($any(item)['controls'].value.dirty ||\r\n $any(item)['controls'].value.touched)\r\n \"\r\n >ID required\r\n </mat-error>\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].value?.hasError('max-length') &&\r\n ($any(item)['controls'].value.dirty ||\r\n $any(item)['controls'].value.touched)\r\n \"\r\n >ID too long\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n \r\n <!-- scope (bound) -->\r\n <ng-container *ngIf=\"scopeEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <mat-select formControlName=\"scope\" placeholder=\"scope\">\r\n <mat-option *ngFor=\"let e of scopeEntries\" [value]=\"e.id\">\r\n {{ e.value }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- scope (free) -->\r\n <ng-container *ngIf=\"!scopeEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <input matInput formControlName=\"scope\" placeholder=\"scope\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].scope?.hasError('max-length') &&\r\n ($any(item)['controls'].scope.dirty ||\r\n $any(item)['controls'].scope.touched)\r\n \"\r\n >scope too long\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n \r\n <!-- tag (bound) -->\r\n <ng-container *ngIf=\"tagEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <mat-select formControlName=\"tag\" placeholder=\"tag\">\r\n <mat-option *ngFor=\"let e of tagEntries\" [value]=\"e.id\">\r\n {{ e.value }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- tag (free) -->\r\n <ng-container *ngIf=\"!tagEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <input matInput formControlName=\"tag\" placeholder=\"tag\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].tag?.hasError('max-length') &&\r\n ($any(item)['controls'].tag.dirty ||\r\n $any(item)['controls'].tag.touched)\r\n \"\r\n >tag too long\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- assertion -->\r\n \r\n <button\r\n type=\"button\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Edit assertion\"\r\n (click)=\"editAssertion(i)\"\r\n >\r\n <mat-icon>feedback</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <!-- assertion -->\r\n <mat-expansion-panel\r\n *ngIf=\"idsArr?.length\"\r\n [disabled]=\"!assertionNr\"\r\n [(expanded)]=\"assEdOpen\"\r\n >\r\n <mat-expansion-panel-header\r\n >#{{ assertionNr }} assertion</mat-expansion-panel-header\r\n >\r\n <cadmus-refs-assertion\r\n [assertion]=\"initialAssertion\"\r\n [assTagEntries]=\"assTagEntries\"\r\n [refTagEntries]=\"refTagEntries\"\r\n [refTypeEntries]=\"refTypeEntries\"\r\n (assertionChange)=\"onAssertionChange($event)\"\r\n ></cadmus-refs-assertion>\r\n <button\r\n color=\"primary\"\r\n type=\"button\"\r\n mat-icon-button\r\n (click)=\"saveAssertion()\"\r\n >\r\n <mat-icon>check_circle</mat-icon> save assertion\r\n </button>\r\n </mat-expansion-panel>\r\n </div>\r\n</form>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i1.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "component", type: i3$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i3.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i4.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i7.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "component", type: i8.AssertionComponent, selector: "cadmus-refs-assertion", inputs: ["assTagEntries", "refTypeEntries", "refTagEntries", "assertion"], outputs: ["assertionChange"] }] });
|
|
284
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: AssertedIdsComponent, decorators: [{
|
|
285
|
+
type: Component,
|
|
286
|
+
args: [{ selector: 'cadmus-refs-asserted-ids', template: "<form [formGroup]=\"form\">\r\n <div formArrayName=\"idsArr\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n (click)=\"addId()\"\r\n matTooltip=\"Add a new ID\"\r\n >\r\n <mat-icon>add_circle</mat-icon> add ID\r\n </button>\r\n </div>\r\n <div\r\n *ngFor=\"\r\n let item of idsArr.controls;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <!-- child form -->\r\n <div [formGroupName]=\"i\">\r\n <!-- child actions -->\r\n {{ i + 1 }}.\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Remove this ID\"\r\n color=\"warn\"\r\n (click)=\"removeId(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n <button\r\n [disabled]=\"first\"\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Move ID up\"\r\n (click)=\"moveIdUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n [disabled]=\"last\"\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Move ID down\"\r\n (click)=\"moveIdDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n\r\n <!-- child controls -->\r\n <!-- value -->\r\n <mat-form-field>\r\n <input\r\n #id\r\n autofocus\r\n matInput\r\n formControlName=\"value\"\r\n placeholder=\"external ID\"\r\n />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].value?.hasError('required') &&\r\n ($any(item)['controls'].value.dirty ||\r\n $any(item)['controls'].value.touched)\r\n \"\r\n >ID required\r\n </mat-error>\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].value?.hasError('max-length') &&\r\n ($any(item)['controls'].value.dirty ||\r\n $any(item)['controls'].value.touched)\r\n \"\r\n >ID too long\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n \r\n <!-- scope (bound) -->\r\n <ng-container *ngIf=\"scopeEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <mat-select formControlName=\"scope\" placeholder=\"scope\">\r\n <mat-option *ngFor=\"let e of scopeEntries\" [value]=\"e.id\">\r\n {{ e.value }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- scope (free) -->\r\n <ng-container *ngIf=\"!scopeEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <input matInput formControlName=\"scope\" placeholder=\"scope\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].scope?.hasError('max-length') &&\r\n ($any(item)['controls'].scope.dirty ||\r\n $any(item)['controls'].scope.touched)\r\n \"\r\n >scope too long\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n \r\n <!-- tag (bound) -->\r\n <ng-container *ngIf=\"tagEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <mat-select formControlName=\"tag\" placeholder=\"tag\">\r\n <mat-option *ngFor=\"let e of tagEntries\" [value]=\"e.id\">\r\n {{ e.value }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- tag (free) -->\r\n <ng-container *ngIf=\"!tagEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <input matInput formControlName=\"tag\" placeholder=\"tag\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].tag?.hasError('max-length') &&\r\n ($any(item)['controls'].tag.dirty ||\r\n $any(item)['controls'].tag.touched)\r\n \"\r\n >tag too long\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- assertion -->\r\n \r\n <button\r\n type=\"button\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Edit assertion\"\r\n (click)=\"editAssertion(i)\"\r\n >\r\n <mat-icon>feedback</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <!-- assertion -->\r\n <mat-expansion-panel\r\n *ngIf=\"idsArr?.length\"\r\n [disabled]=\"!assertionNr\"\r\n [(expanded)]=\"assEdOpen\"\r\n >\r\n <mat-expansion-panel-header\r\n >#{{ assertionNr }} assertion</mat-expansion-panel-header\r\n >\r\n <cadmus-refs-assertion\r\n [assertion]=\"initialAssertion\"\r\n [assTagEntries]=\"assTagEntries\"\r\n [refTagEntries]=\"refTagEntries\"\r\n [refTypeEntries]=\"refTypeEntries\"\r\n (assertionChange)=\"onAssertionChange($event)\"\r\n ></cadmus-refs-assertion>\r\n <button\r\n color=\"primary\"\r\n type=\"button\"\r\n mat-icon-button\r\n (click)=\"saveAssertion()\"\r\n >\r\n <mat-icon>check_circle</mat-icon> save assertion\r\n </button>\r\n </mat-expansion-panel>\r\n </div>\r\n</form>\r\n" }]
|
|
287
|
+
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { idQueryList: [{
|
|
288
|
+
type: ViewChildren,
|
|
289
|
+
args: ['id']
|
|
290
|
+
}], ids: [{
|
|
291
|
+
type: Input
|
|
292
|
+
}], scopeEntries: [{
|
|
293
|
+
type: Input
|
|
294
|
+
}], tagEntries: [{
|
|
295
|
+
type: Input
|
|
296
|
+
}], assTagEntries: [{
|
|
297
|
+
type: Input
|
|
298
|
+
}], refTypeEntries: [{
|
|
299
|
+
type: Input
|
|
300
|
+
}], refTagEntries: [{
|
|
301
|
+
type: Input
|
|
302
|
+
}], idsChange: [{
|
|
303
|
+
type: Output
|
|
304
|
+
}] } });
|
|
305
|
+
|
|
306
|
+
class CadmusRefsAssertedIdsModule {
|
|
307
|
+
}
|
|
308
|
+
CadmusRefsAssertedIdsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CadmusRefsAssertedIdsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
309
|
+
CadmusRefsAssertedIdsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.0", ngImport: i0, type: CadmusRefsAssertedIdsModule, declarations: [AssertedIdComponent, AssertedIdsComponent], imports: [CommonModule,
|
|
310
|
+
FormsModule,
|
|
311
|
+
ReactiveFormsModule,
|
|
312
|
+
// material
|
|
313
|
+
MatButtonModule,
|
|
314
|
+
MatExpansionModule,
|
|
315
|
+
MatFormFieldModule,
|
|
316
|
+
MatIconModule,
|
|
317
|
+
MatInputModule,
|
|
318
|
+
MatSelectModule,
|
|
319
|
+
// Cadmus
|
|
320
|
+
CadmusCoreModule,
|
|
321
|
+
CadmusRefsDocReferencesModule,
|
|
322
|
+
CadmusRefsAssertionModule], exports: [AssertedIdComponent, AssertedIdsComponent] });
|
|
323
|
+
CadmusRefsAssertedIdsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CadmusRefsAssertedIdsModule, imports: [CommonModule,
|
|
324
|
+
FormsModule,
|
|
325
|
+
ReactiveFormsModule,
|
|
326
|
+
// material
|
|
327
|
+
MatButtonModule,
|
|
328
|
+
MatExpansionModule,
|
|
329
|
+
MatFormFieldModule,
|
|
330
|
+
MatIconModule,
|
|
331
|
+
MatInputModule,
|
|
332
|
+
MatSelectModule,
|
|
333
|
+
// Cadmus
|
|
334
|
+
CadmusCoreModule,
|
|
335
|
+
CadmusRefsDocReferencesModule,
|
|
336
|
+
CadmusRefsAssertionModule] });
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CadmusRefsAssertedIdsModule, decorators: [{
|
|
338
|
+
type: NgModule,
|
|
339
|
+
args: [{
|
|
340
|
+
declarations: [AssertedIdComponent, AssertedIdsComponent],
|
|
341
|
+
imports: [
|
|
342
|
+
CommonModule,
|
|
343
|
+
FormsModule,
|
|
344
|
+
ReactiveFormsModule,
|
|
345
|
+
// material
|
|
346
|
+
MatButtonModule,
|
|
347
|
+
MatExpansionModule,
|
|
348
|
+
MatFormFieldModule,
|
|
349
|
+
MatIconModule,
|
|
350
|
+
MatInputModule,
|
|
351
|
+
MatSelectModule,
|
|
352
|
+
// Cadmus
|
|
353
|
+
CadmusCoreModule,
|
|
354
|
+
CadmusRefsDocReferencesModule,
|
|
355
|
+
CadmusRefsAssertionModule,
|
|
356
|
+
],
|
|
357
|
+
exports: [AssertedIdComponent, AssertedIdsComponent],
|
|
358
|
+
}]
|
|
359
|
+
}] });
|
|
360
|
+
|
|
361
|
+
/*
|
|
362
|
+
* Public API Surface of cadmus-refs-asserted-ids
|
|
363
|
+
*/
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Generated bundle index. Do not edit.
|
|
367
|
+
*/
|
|
368
|
+
|
|
369
|
+
export { AssertedIdComponent, AssertedIdsComponent, CadmusRefsAssertedIdsModule };
|
|
370
|
+
//# sourceMappingURL=myrmidon-cadmus-refs-asserted-ids.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"myrmidon-cadmus-refs-asserted-ids.mjs","sources":["../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/lib/asserted-id/asserted-id.component.ts","../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/lib/asserted-id/asserted-id.component.html","../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/lib/asserted-ids/asserted-ids.component.ts","../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/lib/asserted-ids/asserted-ids.component.html","../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/lib/cadmus-refs-asserted-ids.module.ts","../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/public-api.ts","../../../../projects/myrmidon/cadmus-refs-asserted-ids/src/myrmidon-cadmus-refs-asserted-ids.ts"],"sourcesContent":["import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';\r\nimport {\r\n FormBuilder,\r\n FormControl,\r\n FormGroup,\r\n Validators,\r\n} from '@angular/forms';\r\nimport { ThesaurusEntry } from '@myrmidon/cadmus-core';\r\nimport { Assertion } from '@myrmidon/cadmus-refs-assertion';\r\nimport { debounceTime } from 'rxjs/operators';\r\n\r\nexport interface AssertedId {\r\n tag?: string;\r\n value: string;\r\n scope: string;\r\n assertion?: Assertion;\r\n}\r\n\r\n@Component({\r\n selector: 'cadmus-refs-asserted-id',\r\n templateUrl: './asserted-id.component.html',\r\n styleUrls: ['./asserted-id.component.css'],\r\n})\r\nexport class AssertedIdComponent implements OnInit {\r\n private _updatingForm: boolean | undefined;\r\n private _id: AssertedId | undefined;\r\n\r\n public tag: FormControl<string | null>;\r\n public value: FormControl<string | null>;\r\n public scope: FormControl<string | null>;\r\n public form: FormGroup;\r\n\r\n public initialAssertion?: Assertion;\r\n public assertion?: Assertion;\r\n\r\n @Input()\r\n public scopeEntries?: ThesaurusEntry[];\r\n\r\n @Input()\r\n public idTagEntries?: ThesaurusEntry[];\r\n\r\n @Input()\r\n public assTagEntries?: ThesaurusEntry[];\r\n\r\n @Input()\r\n public refTypeEntries: ThesaurusEntry[] | undefined;\r\n\r\n @Input()\r\n public refTagEntries: ThesaurusEntry[] | undefined;\r\n\r\n @Input()\r\n public get id(): AssertedId | undefined {\r\n return this._id;\r\n }\r\n public set id(value: AssertedId | undefined) {\r\n this._id = value;\r\n this.updateForm(value);\r\n }\r\n\r\n @Output()\r\n public idChange: EventEmitter<AssertedId>;\r\n\r\n constructor(formBuilder: FormBuilder) {\r\n this.idChange = new EventEmitter<AssertedId>();\r\n // form\r\n this.tag = formBuilder.control(null, Validators.maxLength(50));\r\n this.value = formBuilder.control(null, [\r\n Validators.required,\r\n Validators.maxLength(500),\r\n ]);\r\n this.scope = formBuilder.control(null, Validators.maxLength(500));\r\n this.form = formBuilder.group({\r\n tag: this.tag,\r\n value: this.value,\r\n scope: this.scope,\r\n });\r\n }\r\n\r\n ngOnInit(): void {\r\n this.form.valueChanges.pipe(debounceTime(300)).subscribe((_) => {\r\n if (!this._updatingForm) {\r\n this.emitIdChange();\r\n }\r\n });\r\n }\r\n\r\n public onAssertionChange(assertion: Assertion | undefined): void {\r\n this.assertion = assertion;\r\n setTimeout(() => this.emitIdChange(), 0);\r\n }\r\n\r\n private updateForm(value: AssertedId | undefined): void {\r\n this._updatingForm = true;\r\n if (!value) {\r\n this.form.reset();\r\n this.assertion = undefined;\r\n } else {\r\n this.tag.setValue(value.tag || null);\r\n this.value.setValue(value.value);\r\n this.scope.setValue(value.scope);\r\n this.initialAssertion = value.assertion;\r\n this.form.markAsPristine();\r\n }\r\n this._updatingForm = false;\r\n this.emitIdChange();\r\n }\r\n\r\n private getId(): AssertedId {\r\n return {\r\n tag: this.tag.value?.trim(),\r\n value: this.value.value?.trim() || '',\r\n scope: this.scope.value?.trim() || '',\r\n assertion: this.assertion,\r\n };\r\n }\r\n\r\n public emitIdChange(): void {\r\n this.idChange.emit(this.getId());\r\n }\r\n}\r\n","<form [formGroup]=\"form\">\n <div>\n <!-- tag (bound) -->\n <mat-form-field *ngIf=\"idTagEntries?.length\" style=\"width: 8em\">\n <mat-select [formControl]=\"tag\" placeholder=\"tag\">\n <mat-option *ngFor=\"let e of idTagEntries\" [value]=\"e.id\">{{\n e.value\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n <!-- tag (free) -->\n <mat-form-field *ngIf=\"!idTagEntries?.length\" style=\"width: 8em\">\n <input matInput [formControl]=\"tag\" placeholder=\"tag\" />\n <mat-error *ngIf=\"tag.errors?.maxLength && (tag.dirty || tag.touched)\"\n >tag too long</mat-error\n >\n </mat-form-field>\n \n\n <!-- scope (bound) -->\n <mat-form-field *ngIf=\"scopeEntries?.length\" style=\"width: 8em\">\n <mat-select [formControl]=\"scope\" placeholder=\"scope\">\n <mat-option *ngFor=\"let e of scopeEntries\" [value]=\"e.id\">{{\n e.value\n }}</mat-option>\n </mat-select>\n </mat-form-field>\n <!-- scope (free) -->\n <mat-form-field *ngIf=\"!scopeEntries?.length\" style=\"width: 8em\">\n <input matInput [formControl]=\"scope\" placeholder=\"scope\" />\n <mat-error\n *ngIf=\"scope.errors?.maxLength && (scope.dirty || scope.touched)\"\n >scope too long</mat-error\n >\n </mat-form-field>\n <!-- value -->\n \n <mat-form-field>\n <input matInput [formControl]=\"value\" placeholder=\"value\" />\n <mat-error\n *ngIf=\"value.errors?.required && (value.dirty || value.touched)\"\n >value required</mat-error\n >\n <mat-error\n *ngIf=\"value.errors?.maxLength && (value.dirty || value.touched)\"\n >value too long</mat-error\n >\n </mat-form-field>\n </div>\n\n <!-- assertion -->\n <mat-expansion-panel>\n <mat-expansion-panel-header>assertion</mat-expansion-panel-header>\n <cadmus-refs-assertion\n [assTagEntries]=\"assTagEntries\"\n [refTypeEntries]=\"refTypeEntries\"\n [refTagEntries]=\"refTagEntries\"\n [assertion]=\"initialAssertion\"\n (assertionChange)=\"onAssertionChange($event)\"\n >\n </cadmus-refs-assertion>\n </mat-expansion-panel>\n</form>\n","import {\r\n Component,\r\n EventEmitter,\r\n Input,\r\n OnDestroy,\r\n Output,\r\n QueryList,\r\n ViewChildren,\r\n} from '@angular/core';\r\nimport { FormArray, FormBuilder, FormGroup, Validators } from '@angular/forms';\r\n\r\nimport { ThesaurusEntry } from '@myrmidon/cadmus-core';\r\nimport { Assertion } from '@myrmidon/cadmus-refs-assertion';\r\n\r\nimport { Subscription } from 'rxjs';\r\nimport { debounceTime } from 'rxjs/operators';\r\nimport { AssertedId } from '../asserted-id/asserted-id.component';\r\n\r\n@Component({\r\n selector: 'cadmus-refs-asserted-ids',\r\n templateUrl: './asserted-ids.component.html',\r\n styleUrls: ['./asserted-ids.component.css'],\r\n})\r\nexport class AssertedIdsComponent implements OnDestroy {\r\n private _ids: AssertedId[];\r\n private _idSubscription: Subscription | undefined;\r\n private _idsSubs: Subscription[];\r\n private _updatingForm: boolean | undefined;\r\n\r\n @ViewChildren('id') idQueryList: QueryList<any> | undefined;\r\n\r\n /**\r\n * The asserted IDs.\r\n */\r\n @Input()\r\n public get ids(): AssertedId[] {\r\n return this._ids;\r\n }\r\n public set ids(value: AssertedId[]) {\r\n this._ids = value || [];\r\n this.updateForm(value);\r\n }\r\n\r\n /**\r\n * The ID scopes thesaurus entries.\r\n */\r\n @Input()\r\n public scopeEntries: ThesaurusEntry[] | undefined;\r\n\r\n /**\r\n * The ID tags thesaurus entries.\r\n */\r\n @Input()\r\n public tagEntries: ThesaurusEntry[] | undefined;\r\n\r\n // thesauri for assertions\r\n @Input()\r\n public assTagEntries?: ThesaurusEntry[];\r\n\r\n @Input()\r\n public refTypeEntries: ThesaurusEntry[] | undefined;\r\n\r\n @Input()\r\n public refTagEntries: ThesaurusEntry[] | undefined;\r\n\r\n /**\r\n * Emitted whenever any ID changes.\r\n */\r\n @Output()\r\n public idsChange: EventEmitter<AssertedId[]>;\r\n\r\n public idsArr: FormArray;\r\n public form: FormGroup;\r\n // edited assertion\r\n public assEdOpen: boolean;\r\n public assertionNr?: number;\r\n public initialAssertion?: Assertion;\r\n public assertion?: Assertion;\r\n\r\n constructor(private _formBuilder: FormBuilder) {\r\n this._ids = [];\r\n this._idsSubs = [];\r\n this.idsChange = new EventEmitter<AssertedId[]>();\r\n this.assEdOpen = false;\r\n // form\r\n this.idsArr = _formBuilder.array([]);\r\n this.form = _formBuilder.group({\r\n idsArr: this.idsArr,\r\n });\r\n }\r\n\r\n public ngAfterViewInit(): void {\r\n // focus on newly added ID\r\n this._idSubscription = this.idQueryList?.changes\r\n .pipe(debounceTime(300))\r\n .subscribe((lst: QueryList<any>) => {\r\n if (!this._updatingForm && lst.length > 0) {\r\n lst.last.nativeElement.focus();\r\n }\r\n });\r\n }\r\n\r\n private unsubscribeIds(): void {\r\n for (let i = 0; i < this._idsSubs.length; i++) {\r\n this._idsSubs[i].unsubscribe();\r\n }\r\n }\r\n\r\n public ngOnDestroy(): void {\r\n this.unsubscribeIds();\r\n this._idSubscription?.unsubscribe();\r\n }\r\n\r\n private getIdGroup(id?: AssertedId): FormGroup {\r\n return this._formBuilder.group({\r\n value: this._formBuilder.control(id?.value, [\r\n Validators.required,\r\n Validators.maxLength(500),\r\n ]),\r\n scope: this._formBuilder.control(id?.scope, Validators.maxLength(50)),\r\n tag: this._formBuilder.control(id?.tag, Validators.maxLength(50)),\r\n assertion: this._formBuilder.control(id?.assertion),\r\n });\r\n }\r\n\r\n public addId(id?: AssertedId): void {\r\n const g = this.getIdGroup(id);\r\n this._idsSubs.push(\r\n g.valueChanges.pipe(debounceTime(300)).subscribe((_) => {\r\n this.emitIdsChange();\r\n })\r\n );\r\n this.idsArr.push(g);\r\n if (!this._updatingForm) {\r\n this.emitIdsChange();\r\n }\r\n }\r\n\r\n public removeId(index: number): void {\r\n this.closeAssertion();\r\n this._idsSubs[index].unsubscribe();\r\n this._idsSubs.splice(index, 1);\r\n this.idsArr.removeAt(index);\r\n this.emitIdsChange();\r\n }\r\n\r\n private swapArrElems(a: any[], i: number, j: number): void {\r\n if (i === j) {\r\n return;\r\n }\r\n const t = a[i];\r\n a[i] = a[j];\r\n a[j] = t;\r\n }\r\n\r\n public moveIdUp(index: number): void {\r\n if (index < 1) {\r\n return;\r\n }\r\n this.closeAssertion();\r\n const ctl = this.idsArr.controls[index];\r\n this.idsArr.removeAt(index);\r\n this.idsArr.insert(index - 1, ctl);\r\n\r\n this.swapArrElems(this._idsSubs, index, index - 1);\r\n\r\n this.emitIdsChange();\r\n }\r\n\r\n public moveIdDown(index: number): void {\r\n if (index + 1 >= this.idsArr.length) {\r\n return;\r\n }\r\n this.closeAssertion();\r\n const item = this.idsArr.controls[index];\r\n this.idsArr.removeAt(index);\r\n this.idsArr.insert(index + 1, item);\r\n\r\n this.swapArrElems(this._idsSubs, index, index + 1);\r\n\r\n this.emitIdsChange();\r\n }\r\n\r\n public clearIds(): void {\r\n this.closeAssertion();\r\n this.idsArr.clear();\r\n this.unsubscribeIds();\r\n this._idsSubs = [];\r\n if (!this._updatingForm) {\r\n this.emitIdsChange();\r\n }\r\n }\r\n\r\n public editAssertion(index: number): void {\r\n // save the currently edited assertion if any\r\n this.saveAssertion();\r\n // edit the new assertion\r\n this.initialAssertion = (\r\n this.idsArr.at(index) as FormGroup\r\n ).controls['assertion'].value;\r\n this.assertionNr = index + 1;\r\n this.assEdOpen = true;\r\n }\r\n\r\n public onAssertionChange(assertion: Assertion | undefined): void {\r\n this.assertion = assertion;\r\n }\r\n\r\n public saveAssertion(): void {\r\n // save the currently edited assertion if any\r\n if (this.assertionNr) {\r\n const g = this.idsArr.at(this.assertionNr - 1) as FormGroup;\r\n g.controls['assertion'].setValue(this.assertion);\r\n this.closeAssertion();\r\n this.emitIdsChange();\r\n }\r\n }\r\n\r\n private closeAssertion(): void {\r\n if (this.assertionNr) {\r\n this.assEdOpen = false;\r\n this.assertionNr = 0;\r\n this.initialAssertion = undefined;\r\n }\r\n }\r\n\r\n private updateForm(ids: AssertedId[]): void {\r\n if (!this.idsArr) {\r\n return;\r\n }\r\n this._updatingForm = true;\r\n this.clearIds();\r\n\r\n if (!ids) {\r\n this.form.reset();\r\n } else {\r\n for (const id of ids) {\r\n this.addId(id);\r\n }\r\n this.form.markAsPristine();\r\n }\r\n this._updatingForm = false;\r\n this.emitIdsChange();\r\n }\r\n\r\n private getIds(): AssertedId[] {\r\n const ids: AssertedId[] = [];\r\n for (let i = 0; i < this.idsArr.length; i++) {\r\n const g = this.idsArr.controls[i] as FormGroup;\r\n ids.push({\r\n value: g.controls.value.value?.trim(),\r\n scope: g.controls.scope.value?.trim(),\r\n tag: g.controls.tag.value?.trim(),\r\n assertion: g.controls.assertion.value,\r\n });\r\n }\r\n return ids;\r\n }\r\n\r\n private emitIdsChange(): void {\r\n this.idsChange.emit(this.getIds());\r\n }\r\n}\r\n","<form [formGroup]=\"form\">\r\n <div formArrayName=\"idsArr\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-stroked-button\r\n color=\"primary\"\r\n (click)=\"addId()\"\r\n matTooltip=\"Add a new ID\"\r\n >\r\n <mat-icon>add_circle</mat-icon> add ID\r\n </button>\r\n </div>\r\n <div\r\n *ngFor=\"\r\n let item of idsArr.controls;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <!-- child form -->\r\n <div [formGroupName]=\"i\">\r\n <!-- child actions -->\r\n {{ i + 1 }}.\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Remove this ID\"\r\n color=\"warn\"\r\n (click)=\"removeId(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n <button\r\n [disabled]=\"first\"\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Move ID up\"\r\n (click)=\"moveIdUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n [disabled]=\"last\"\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Move ID down\"\r\n (click)=\"moveIdDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n\r\n <!-- child controls -->\r\n <!-- value -->\r\n <mat-form-field>\r\n <input\r\n #id\r\n autofocus\r\n matInput\r\n formControlName=\"value\"\r\n placeholder=\"external ID\"\r\n />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].value?.hasError('required') &&\r\n ($any(item)['controls'].value.dirty ||\r\n $any(item)['controls'].value.touched)\r\n \"\r\n >ID required\r\n </mat-error>\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].value?.hasError('max-length') &&\r\n ($any(item)['controls'].value.dirty ||\r\n $any(item)['controls'].value.touched)\r\n \"\r\n >ID too long\r\n </mat-error>\r\n </mat-form-field>\r\n\r\n \r\n <!-- scope (bound) -->\r\n <ng-container *ngIf=\"scopeEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <mat-select formControlName=\"scope\" placeholder=\"scope\">\r\n <mat-option *ngFor=\"let e of scopeEntries\" [value]=\"e.id\">\r\n {{ e.value }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- scope (free) -->\r\n <ng-container *ngIf=\"!scopeEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <input matInput formControlName=\"scope\" placeholder=\"scope\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].scope?.hasError('max-length') &&\r\n ($any(item)['controls'].scope.dirty ||\r\n $any(item)['controls'].scope.touched)\r\n \"\r\n >scope too long\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n \r\n <!-- tag (bound) -->\r\n <ng-container *ngIf=\"tagEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <mat-select formControlName=\"tag\" placeholder=\"tag\">\r\n <mat-option *ngFor=\"let e of tagEntries\" [value]=\"e.id\">\r\n {{ e.value }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- tag (free) -->\r\n <ng-container *ngIf=\"!tagEntries\">\r\n <mat-form-field style=\"width: 8em\">\r\n <input matInput formControlName=\"tag\" placeholder=\"tag\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(item)['controls'].tag?.hasError('max-length') &&\r\n ($any(item)['controls'].tag.dirty ||\r\n $any(item)['controls'].tag.touched)\r\n \"\r\n >tag too long\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-container>\r\n\r\n <!-- assertion -->\r\n \r\n <button\r\n type=\"button\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Edit assertion\"\r\n (click)=\"editAssertion(i)\"\r\n >\r\n <mat-icon>feedback</mat-icon>\r\n </button>\r\n </div>\r\n </div>\r\n <!-- assertion -->\r\n <mat-expansion-panel\r\n *ngIf=\"idsArr?.length\"\r\n [disabled]=\"!assertionNr\"\r\n [(expanded)]=\"assEdOpen\"\r\n >\r\n <mat-expansion-panel-header\r\n >#{{ assertionNr }} assertion</mat-expansion-panel-header\r\n >\r\n <cadmus-refs-assertion\r\n [assertion]=\"initialAssertion\"\r\n [assTagEntries]=\"assTagEntries\"\r\n [refTagEntries]=\"refTagEntries\"\r\n [refTypeEntries]=\"refTypeEntries\"\r\n (assertionChange)=\"onAssertionChange($event)\"\r\n ></cadmus-refs-assertion>\r\n <button\r\n color=\"primary\"\r\n type=\"button\"\r\n mat-icon-button\r\n (click)=\"saveAssertion()\"\r\n >\r\n <mat-icon>check_circle</mat-icon> save assertion\r\n </button>\r\n </mat-expansion-panel>\r\n </div>\r\n</form>\r\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatExpansionModule } from '@angular/material/expansion';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatInputModule } from '@angular/material/input';\nimport { MatSelectModule } from '@angular/material/select';\n\nimport { CadmusCoreModule } from '@myrmidon/cadmus-core';\nimport { CadmusRefsAssertionModule } from '@myrmidon/cadmus-refs-assertion';\nimport { CadmusRefsDocReferencesModule } from '@myrmidon/cadmus-refs-doc-references';\n\nimport { AssertedIdComponent } from './asserted-id/asserted-id.component';\nimport { AssertedIdsComponent } from './asserted-ids/asserted-ids.component';\n\n@NgModule({\n declarations: [AssertedIdComponent, AssertedIdsComponent],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n // material\n MatButtonModule,\n MatExpansionModule,\n MatFormFieldModule,\n MatIconModule,\n MatInputModule,\n MatSelectModule,\n // Cadmus\n CadmusCoreModule,\n CadmusRefsDocReferencesModule,\n CadmusRefsAssertionModule,\n ],\n exports: [AssertedIdComponent, AssertedIdsComponent],\n})\nexport class CadmusRefsAssertedIdsModule {}\n","/*\n * Public API Surface of cadmus-refs-asserted-ids\n */\n\nexport * from './lib/asserted-id/asserted-id.component';\nexport * from './lib/asserted-ids/asserted-ids.component';\nexport * from './lib/cadmus-refs-asserted-ids.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i3","i4","i5","i6","i7","i8","i9","i10"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;MAuBa,mBAAmB,CAAA;AAuC9B,IAAA,WAAA,CAAY,WAAwB,EAAA;AAClC,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,EAAc,CAAC;;AAE/C,QAAA,IAAI,CAAC,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;QAC/D,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE;AACrC,YAAA,UAAU,CAAC,QAAQ;AACnB,YAAA,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC;AAC1B,SAAA,CAAC,CAAC;AACH,QAAA,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAClE,QAAA,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC;YAC5B,GAAG,EAAE,IA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