@myrmidon/cadmus-part-codicology-shelfmarks 2.0.4 → 2.0.5
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-part-codicology-shelfmarks.module.mjs +4 -4
- package/esm2020/lib/cod-shelfmark-editor/cod-shelfmark-editor.component.mjs +3 -3
- package/esm2020/lib/cod-shelfmarks-part/cod-shelfmarks-part.component.mjs +3 -3
- package/esm2020/lib/cod-shelfmarks-part-feature/cod-shelfmarks-part-feature.component.mjs +3 -3
- package/fesm2015/myrmidon-cadmus-part-codicology-shelfmarks.mjs +13 -13
- package/fesm2020/myrmidon-cadmus-part-codicology-shelfmarks.mjs +13 -13
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ import { CodShelfmarksPartFeatureComponent } from './cod-shelfmarks-part-feature
|
|
|
19
19
|
import * as i0 from "@angular/core";
|
|
20
20
|
export class CadmusPartCodicologyShelfmarksModule {
|
|
21
21
|
}
|
|
22
|
-
CadmusPartCodicologyShelfmarksModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
23
|
-
CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.
|
|
22
|
+
CadmusPartCodicologyShelfmarksModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
23
|
+
CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, declarations: [CodShelfmarksPartComponent,
|
|
24
24
|
CodShelfmarkEditorComponent,
|
|
25
25
|
CodShelfmarksPartFeatureComponent], imports: [CommonModule,
|
|
26
26
|
FormsModule,
|
|
@@ -39,7 +39,7 @@ CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersi
|
|
|
39
39
|
CadmusUiPgModule], exports: [CodShelfmarksPartComponent,
|
|
40
40
|
CodShelfmarkEditorComponent,
|
|
41
41
|
CodShelfmarksPartFeatureComponent] });
|
|
42
|
-
CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.
|
|
42
|
+
CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, imports: [CommonModule,
|
|
43
43
|
FormsModule,
|
|
44
44
|
ReactiveFormsModule,
|
|
45
45
|
// material
|
|
@@ -54,7 +54,7 @@ CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersi
|
|
|
54
54
|
CadmusStateModule,
|
|
55
55
|
CadmusUiModule,
|
|
56
56
|
CadmusUiPgModule] });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, decorators: [{
|
|
58
58
|
type: NgModule,
|
|
59
59
|
args: [{
|
|
60
60
|
declarations: [
|
|
@@ -81,9 +81,9 @@ export class CodShelfmarkEditorComponent {
|
|
|
81
81
|
this.shelfmarkChange.emit(this._shelfmark);
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
-
CodShelfmarkEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
85
|
-
CodShelfmarkEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
84
|
+
CodShelfmarkEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarkEditorComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
+
CodShelfmarkEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarkEditorComponent, selector: "cadmus-cod-shelfmark-editor", inputs: { shelfmark: "shelfmark", tagEntries: "tagEntries", libEntries: "libEntries" }, outputs: { shelfmarkChange: "shelfmarkChange", editorClose: "editorClose" }, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div>\r\n <!-- tag (bound) -->\r\n <mat-form-field *ngIf=\"tagEntries?.length\" style=\"width: 8em\">\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"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 <!-- tag (free) -->\r\n <mat-form-field *ngIf=\"!tagEntries?.length\">\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- city -->\r\n \r\n <mat-form-field>\r\n <mat-label>city</mat-label>\r\n <input matInput [formControl]=\"city\" />\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.required && (city.dirty || city.touched)\"\r\n >city required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.maxLength && (city.dirty || city.touched)\"\r\n >city too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <!-- library (bound) -->\r\n <mat-form-field *ngIf=\"libEntries?.length\" style=\"width: 8em\">\r\n <mat-label>library</mat-label>\r\n <mat-select [formControl]=\"library\">\r\n <mat-option *ngFor=\"let e of libEntries\" [value]=\"e.id\">{{\r\n e.value\r\n }}</mat-option>\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- library (free) -->\r\n <mat-form-field *ngIf=\"!libEntries?.length\">\r\n <mat-label>library</mat-label>\r\n <input matInput [formControl]=\"library\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.maxLength && (library.dirty || library.touched)\r\n \"\r\n >library too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- fund -->\r\n \r\n <mat-form-field>\r\n <mat-label>fund</mat-label>\r\n <input matInput [formControl]=\"fund\" />\r\n <mat-error\r\n *ngIf=\"$any(fund).errors?.maxLength && (fund.dirty || fund.touched)\"\r\n >fund too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- location -->\r\n \r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input matInput [formControl]=\"location\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.required &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.maxLength &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <!-- buttons -->\r\n <div>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Discard changes\"\r\n (click)=\"cancel()\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Accept changes\"\r\n [disabled]=\"form.invalid || form.pristine\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\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.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.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.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.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i7.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarkEditorComponent, decorators: [{
|
|
87
87
|
type: Component,
|
|
88
88
|
args: [{ selector: 'cadmus-cod-shelfmark-editor', template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div>\r\n <!-- tag (bound) -->\r\n <mat-form-field *ngIf=\"tagEntries?.length\" style=\"width: 8em\">\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"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 <!-- tag (free) -->\r\n <mat-form-field *ngIf=\"!tagEntries?.length\">\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- city -->\r\n \r\n <mat-form-field>\r\n <mat-label>city</mat-label>\r\n <input matInput [formControl]=\"city\" />\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.required && (city.dirty || city.touched)\"\r\n >city required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.maxLength && (city.dirty || city.touched)\"\r\n >city too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <!-- library (bound) -->\r\n <mat-form-field *ngIf=\"libEntries?.length\" style=\"width: 8em\">\r\n <mat-label>library</mat-label>\r\n <mat-select [formControl]=\"library\">\r\n <mat-option *ngFor=\"let e of libEntries\" [value]=\"e.id\">{{\r\n e.value\r\n }}</mat-option>\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- library (free) -->\r\n <mat-form-field *ngIf=\"!libEntries?.length\">\r\n <mat-label>library</mat-label>\r\n <input matInput [formControl]=\"library\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.maxLength && (library.dirty || library.touched)\r\n \"\r\n >library too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- fund -->\r\n \r\n <mat-form-field>\r\n <mat-label>fund</mat-label>\r\n <input matInput [formControl]=\"fund\" />\r\n <mat-error\r\n *ngIf=\"$any(fund).errors?.maxLength && (fund.dirty || fund.touched)\"\r\n >fund too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- location -->\r\n \r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input matInput [formControl]=\"location\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.required &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.maxLength &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <!-- buttons -->\r\n <div>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Discard changes\"\r\n (click)=\"cancel()\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Accept changes\"\r\n [disabled]=\"form.invalid || form.pristine\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </div>\r\n</form>\r\n" }]
|
|
89
89
|
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { shelfmark: [{
|
|
@@ -141,9 +141,9 @@ export class CodShelfmarksPartComponent extends ModelEditorComponentBase {
|
|
|
141
141
|
this.shelfmarks.setValue(entries);
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
CodShelfmarksPartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
145
|
-
CodShelfmarksPartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
144
|
+
CodShelfmarksPartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartComponent, deps: [{ token: i1.AuthJwtService }, { token: i2.FormBuilder }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
145
|
+
CodShelfmarksPartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarksPartComponent, selector: "cadmus-cod-shelfmarks-part", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>picture_in_picture</mat-icon>\r\n </div>\r\n <mat-card-title>Shelfmarks Part</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-tab-group [(selectedIndex)]=\"tabIndex\">\r\n <mat-tab label=\"shelfmarks\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-flat-button\r\n color=\"primary\"\r\n (click)=\"addShelfmark()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> shelfmark\r\n </button>\r\n </div>\r\n <table *ngIf=\"shelfmarks?.value?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>tag</th>\r\n <th>city</th>\r\n <th>library</th>\r\n <th>fund</th>\r\n <th>location</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let entry of shelfmarks?.value;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <td>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"primary\"\r\n matTooltip=\"Edit this shelfmark\"\r\n (click)=\"editShelfmark(entry, i)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark up\"\r\n [disabled]=\"first\"\r\n (click)=\"moveShelfmarkUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark down\"\r\n [disabled]=\"last\"\r\n (click)=\"moveShelfmarkDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Delete this shelfmark\"\r\n (click)=\"deleteShelfmark(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ entry.tag }}</td>\r\n <td>{{ entry.city }}</td>\r\n <td>{{ entry.library }}</td>\r\n <td>{{ entry.fund }}</td>\r\n <td>{{ entry.location }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </mat-tab>\r\n\r\n <mat-tab label=\"shelfmark\" *ngIf=\"editedShelfmark\">\r\n <cadmus-cod-shelfmark-editor\r\n [tagEntries]=\"tagEntries\"\r\n [libEntries]=\"libEntries\"\r\n [shelfmark]=\"editedShelfmark\"\r\n (shelfmarkChange)=\"onShelfmarkSave($event)\"\r\n (editorClose)=\"editShelfmark(null)\"\r\n ></cadmus-cod-shelfmark-editor>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <cadmus-close-save-buttons\r\n [form]=\"form\"\r\n [noSave]=\"userLevel < 2\"\r\n (closeRequest)=\"close()\"\r\n ></cadmus-close-save-buttons>\r\n </mat-card-actions>\r\n </mat-card>\r\n</form>\r\n", styles: ["th{font-weight:400;color:silver}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i6.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i6.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i6.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i6.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i6.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i7.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i8.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i10.CloseSaveButtonsComponent, selector: "cadmus-close-save-buttons", inputs: ["form", "noSave"], outputs: ["closeRequest"] }, { kind: "component", type: i11.CodShelfmarkEditorComponent, selector: "cadmus-cod-shelfmark-editor", inputs: ["shelfmark", "tagEntries", "libEntries"], outputs: ["shelfmarkChange", "editorClose"] }] });
|
|
146
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartComponent, decorators: [{
|
|
147
147
|
type: Component,
|
|
148
148
|
args: [{ selector: 'cadmus-cod-shelfmarks-part', template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>picture_in_picture</mat-icon>\r\n </div>\r\n <mat-card-title>Shelfmarks Part</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-tab-group [(selectedIndex)]=\"tabIndex\">\r\n <mat-tab label=\"shelfmarks\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-flat-button\r\n color=\"primary\"\r\n (click)=\"addShelfmark()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> shelfmark\r\n </button>\r\n </div>\r\n <table *ngIf=\"shelfmarks?.value?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>tag</th>\r\n <th>city</th>\r\n <th>library</th>\r\n <th>fund</th>\r\n <th>location</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let entry of shelfmarks?.value;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <td>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"primary\"\r\n matTooltip=\"Edit this shelfmark\"\r\n (click)=\"editShelfmark(entry, i)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark up\"\r\n [disabled]=\"first\"\r\n (click)=\"moveShelfmarkUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark down\"\r\n [disabled]=\"last\"\r\n (click)=\"moveShelfmarkDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Delete this shelfmark\"\r\n (click)=\"deleteShelfmark(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ entry.tag }}</td>\r\n <td>{{ entry.city }}</td>\r\n <td>{{ entry.library }}</td>\r\n <td>{{ entry.fund }}</td>\r\n <td>{{ entry.location }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </mat-tab>\r\n\r\n <mat-tab label=\"shelfmark\" *ngIf=\"editedShelfmark\">\r\n <cadmus-cod-shelfmark-editor\r\n [tagEntries]=\"tagEntries\"\r\n [libEntries]=\"libEntries\"\r\n [shelfmark]=\"editedShelfmark\"\r\n (shelfmarkChange)=\"onShelfmarkSave($event)\"\r\n (editorClose)=\"editShelfmark(null)\"\r\n ></cadmus-cod-shelfmark-editor>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <cadmus-close-save-buttons\r\n [form]=\"form\"\r\n [noSave]=\"userLevel < 2\"\r\n (closeRequest)=\"close()\"\r\n ></cadmus-close-save-buttons>\r\n </mat-card-actions>\r\n </mat-card>\r\n</form>\r\n", styles: ["th{font-weight:400;color:silver}\n"] }]
|
|
149
149
|
}], ctorParameters: function () { return [{ type: i1.AuthJwtService }, { type: i2.FormBuilder }, { type: i3.DialogService }]; } });
|
|
@@ -15,9 +15,9 @@ export class CodShelfmarksPartFeatureComponent extends EditPartFeatureBase {
|
|
|
15
15
|
return ['cod-shelfmark-tags', 'cod-shelfmark-libraries'];
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
CodShelfmarksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
19
|
-
CodShelfmarksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
18
|
+
CodShelfmarksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
CodShelfmarksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarksPartFeatureComponent, selector: "cadmus-cod-shelfmarks-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-cod-shelfmarks-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-cod-shelfmarks-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CodShelfmarksPartComponent, selector: "cadmus-cod-shelfmarks-part" }] });
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartFeatureComponent, decorators: [{
|
|
21
21
|
type: Component,
|
|
22
22
|
args: [{ selector: 'cadmus-cod-shelfmarks-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-cod-shelfmarks-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-cod-shelfmarks-part>\r\n" }]
|
|
23
23
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
@@ -193,9 +193,9 @@ class CodShelfmarkEditorComponent {
|
|
|
193
193
|
this.shelfmarkChange.emit(this._shelfmark);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
CodShelfmarkEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
197
|
-
CodShelfmarkEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
196
|
+
CodShelfmarkEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarkEditorComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
197
|
+
CodShelfmarkEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarkEditorComponent, selector: "cadmus-cod-shelfmark-editor", inputs: { shelfmark: "shelfmark", tagEntries: "tagEntries", libEntries: "libEntries" }, outputs: { shelfmarkChange: "shelfmarkChange", editorClose: "editorClose" }, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div>\r\n <!-- tag (bound) -->\r\n <mat-form-field *ngIf=\"tagEntries?.length\" style=\"width: 8em\">\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"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 <!-- tag (free) -->\r\n <mat-form-field *ngIf=\"!tagEntries?.length\">\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- city -->\r\n \r\n <mat-form-field>\r\n <mat-label>city</mat-label>\r\n <input matInput [formControl]=\"city\" />\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.required && (city.dirty || city.touched)\"\r\n >city required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.maxLength && (city.dirty || city.touched)\"\r\n >city too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <!-- library (bound) -->\r\n <mat-form-field *ngIf=\"libEntries?.length\" style=\"width: 8em\">\r\n <mat-label>library</mat-label>\r\n <mat-select [formControl]=\"library\">\r\n <mat-option *ngFor=\"let e of libEntries\" [value]=\"e.id\">{{\r\n e.value\r\n }}</mat-option>\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- library (free) -->\r\n <mat-form-field *ngIf=\"!libEntries?.length\">\r\n <mat-label>library</mat-label>\r\n <input matInput [formControl]=\"library\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.maxLength && (library.dirty || library.touched)\r\n \"\r\n >library too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- fund -->\r\n \r\n <mat-form-field>\r\n <mat-label>fund</mat-label>\r\n <input matInput [formControl]=\"fund\" />\r\n <mat-error\r\n *ngIf=\"$any(fund).errors?.maxLength && (fund.dirty || fund.touched)\"\r\n >fund too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- location -->\r\n \r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input matInput [formControl]=\"location\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.required &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.maxLength &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <!-- buttons -->\r\n <div>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Discard changes\"\r\n (click)=\"cancel()\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Accept changes\"\r\n [disabled]=\"form.invalid || form.pristine\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\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.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: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5$1.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.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i7.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarkEditorComponent, decorators: [{
|
|
199
199
|
type: Component,
|
|
200
200
|
args: [{ selector: 'cadmus-cod-shelfmark-editor', template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div>\r\n <!-- tag (bound) -->\r\n <mat-form-field *ngIf=\"tagEntries?.length\" style=\"width: 8em\">\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"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 <!-- tag (free) -->\r\n <mat-form-field *ngIf=\"!tagEntries?.length\">\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- city -->\r\n \r\n <mat-form-field>\r\n <mat-label>city</mat-label>\r\n <input matInput [formControl]=\"city\" />\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.required && (city.dirty || city.touched)\"\r\n >city required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.maxLength && (city.dirty || city.touched)\"\r\n >city too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <!-- library (bound) -->\r\n <mat-form-field *ngIf=\"libEntries?.length\" style=\"width: 8em\">\r\n <mat-label>library</mat-label>\r\n <mat-select [formControl]=\"library\">\r\n <mat-option *ngFor=\"let e of libEntries\" [value]=\"e.id\">{{\r\n e.value\r\n }}</mat-option>\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- library (free) -->\r\n <mat-form-field *ngIf=\"!libEntries?.length\">\r\n <mat-label>library</mat-label>\r\n <input matInput [formControl]=\"library\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.maxLength && (library.dirty || library.touched)\r\n \"\r\n >library too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- fund -->\r\n \r\n <mat-form-field>\r\n <mat-label>fund</mat-label>\r\n <input matInput [formControl]=\"fund\" />\r\n <mat-error\r\n *ngIf=\"$any(fund).errors?.maxLength && (fund.dirty || fund.touched)\"\r\n >fund too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- location -->\r\n \r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input matInput [formControl]=\"location\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.required &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.maxLength &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <!-- buttons -->\r\n <div>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Discard changes\"\r\n (click)=\"cancel()\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Accept changes\"\r\n [disabled]=\"form.invalid || form.pristine\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </div>\r\n</form>\r\n" }]
|
|
201
201
|
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { shelfmark: [{
|
|
@@ -337,9 +337,9 @@ class CodShelfmarksPartComponent extends ModelEditorComponentBase {
|
|
|
337
337
|
this.shelfmarks.setValue(entries);
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
CodShelfmarksPartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
341
|
-
CodShelfmarksPartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
340
|
+
CodShelfmarksPartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartComponent, deps: [{ token: i1$1.AuthJwtService }, { token: i1.FormBuilder }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
341
|
+
CodShelfmarksPartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarksPartComponent, selector: "cadmus-cod-shelfmarks-part", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>picture_in_picture</mat-icon>\r\n </div>\r\n <mat-card-title>Shelfmarks Part</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-tab-group [(selectedIndex)]=\"tabIndex\">\r\n <mat-tab label=\"shelfmarks\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-flat-button\r\n color=\"primary\"\r\n (click)=\"addShelfmark()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> shelfmark\r\n </button>\r\n </div>\r\n <table *ngIf=\"shelfmarks?.value?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>tag</th>\r\n <th>city</th>\r\n <th>library</th>\r\n <th>fund</th>\r\n <th>location</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let entry of shelfmarks?.value;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <td>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"primary\"\r\n matTooltip=\"Edit this shelfmark\"\r\n (click)=\"editShelfmark(entry, i)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark up\"\r\n [disabled]=\"first\"\r\n (click)=\"moveShelfmarkUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark down\"\r\n [disabled]=\"last\"\r\n (click)=\"moveShelfmarkDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Delete this shelfmark\"\r\n (click)=\"deleteShelfmark(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ entry.tag }}</td>\r\n <td>{{ entry.city }}</td>\r\n <td>{{ entry.library }}</td>\r\n <td>{{ entry.fund }}</td>\r\n <td>{{ entry.location }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </mat-tab>\r\n\r\n <mat-tab label=\"shelfmark\" *ngIf=\"editedShelfmark\">\r\n <cadmus-cod-shelfmark-editor\r\n [tagEntries]=\"tagEntries\"\r\n [libEntries]=\"libEntries\"\r\n [shelfmark]=\"editedShelfmark\"\r\n (shelfmarkChange)=\"onShelfmarkSave($event)\"\r\n (editorClose)=\"editShelfmark(null)\"\r\n ></cadmus-cod-shelfmark-editor>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <cadmus-close-save-buttons\r\n [form]=\"form\"\r\n [noSave]=\"userLevel < 2\"\r\n (closeRequest)=\"close()\"\r\n ></cadmus-close-save-buttons>\r\n </mat-card-actions>\r\n </mat-card>\r\n</form>\r\n", styles: ["th{font-weight:400;color:silver}\n"], 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i6$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i6$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i6$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i6$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i6$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8$1.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i8$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i10.CloseSaveButtonsComponent, selector: "cadmus-close-save-buttons", inputs: ["form", "noSave"], outputs: ["closeRequest"] }, { kind: "component", type: CodShelfmarkEditorComponent, selector: "cadmus-cod-shelfmark-editor", inputs: ["shelfmark", "tagEntries", "libEntries"], outputs: ["shelfmarkChange", "editorClose"] }] });
|
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartComponent, decorators: [{
|
|
343
343
|
type: Component,
|
|
344
344
|
args: [{ selector: 'cadmus-cod-shelfmarks-part', template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>picture_in_picture</mat-icon>\r\n </div>\r\n <mat-card-title>Shelfmarks Part</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-tab-group [(selectedIndex)]=\"tabIndex\">\r\n <mat-tab label=\"shelfmarks\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-flat-button\r\n color=\"primary\"\r\n (click)=\"addShelfmark()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> shelfmark\r\n </button>\r\n </div>\r\n <table *ngIf=\"shelfmarks?.value?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>tag</th>\r\n <th>city</th>\r\n <th>library</th>\r\n <th>fund</th>\r\n <th>location</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let entry of shelfmarks?.value;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <td>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"primary\"\r\n matTooltip=\"Edit this shelfmark\"\r\n (click)=\"editShelfmark(entry, i)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark up\"\r\n [disabled]=\"first\"\r\n (click)=\"moveShelfmarkUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark down\"\r\n [disabled]=\"last\"\r\n (click)=\"moveShelfmarkDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Delete this shelfmark\"\r\n (click)=\"deleteShelfmark(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ entry.tag }}</td>\r\n <td>{{ entry.city }}</td>\r\n <td>{{ entry.library }}</td>\r\n <td>{{ entry.fund }}</td>\r\n <td>{{ entry.location }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </mat-tab>\r\n\r\n <mat-tab label=\"shelfmark\" *ngIf=\"editedShelfmark\">\r\n <cadmus-cod-shelfmark-editor\r\n [tagEntries]=\"tagEntries\"\r\n [libEntries]=\"libEntries\"\r\n [shelfmark]=\"editedShelfmark\"\r\n (shelfmarkChange)=\"onShelfmarkSave($event)\"\r\n (editorClose)=\"editShelfmark(null)\"\r\n ></cadmus-cod-shelfmark-editor>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <cadmus-close-save-buttons\r\n [form]=\"form\"\r\n [noSave]=\"userLevel < 2\"\r\n (closeRequest)=\"close()\"\r\n ></cadmus-close-save-buttons>\r\n </mat-card-actions>\r\n </mat-card>\r\n</form>\r\n", styles: ["th{font-weight:400;color:silver}\n"] }]
|
|
345
345
|
}], ctorParameters: function () { return [{ type: i1$1.AuthJwtService }, { type: i1.FormBuilder }, { type: i3.DialogService }]; } });
|
|
@@ -352,17 +352,17 @@ class CodShelfmarksPartFeatureComponent extends EditPartFeatureBase {
|
|
|
352
352
|
return ['cod-shelfmark-tags', 'cod-shelfmark-libraries'];
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
CodShelfmarksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
356
|
-
CodShelfmarksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
355
|
+
CodShelfmarksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartFeatureComponent, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: i3$1.ItemService }, { token: i3$1.ThesaurusService }, { token: i4$1.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
356
|
+
CodShelfmarksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarksPartFeatureComponent, selector: "cadmus-cod-shelfmarks-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-cod-shelfmarks-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-cod-shelfmarks-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5$2.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: CodShelfmarksPartComponent, selector: "cadmus-cod-shelfmarks-part" }] });
|
|
357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartFeatureComponent, decorators: [{
|
|
358
358
|
type: Component,
|
|
359
359
|
args: [{ selector: 'cadmus-cod-shelfmarks-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-cod-shelfmarks-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-cod-shelfmarks-part>\r\n" }]
|
|
360
360
|
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: i3$1.ItemService }, { type: i3$1.ThesaurusService }, { type: i4$1.PartEditorService }]; } });
|
|
361
361
|
|
|
362
362
|
class CadmusPartCodicologyShelfmarksModule {
|
|
363
363
|
}
|
|
364
|
-
CadmusPartCodicologyShelfmarksModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
365
|
-
CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.
|
|
364
|
+
CadmusPartCodicologyShelfmarksModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
365
|
+
CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, declarations: [CodShelfmarksPartComponent,
|
|
366
366
|
CodShelfmarkEditorComponent,
|
|
367
367
|
CodShelfmarksPartFeatureComponent], imports: [CommonModule,
|
|
368
368
|
FormsModule,
|
|
@@ -381,7 +381,7 @@ CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersi
|
|
|
381
381
|
CadmusUiPgModule], exports: [CodShelfmarksPartComponent,
|
|
382
382
|
CodShelfmarkEditorComponent,
|
|
383
383
|
CodShelfmarksPartFeatureComponent] });
|
|
384
|
-
CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.
|
|
384
|
+
CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, imports: [CommonModule,
|
|
385
385
|
FormsModule,
|
|
386
386
|
ReactiveFormsModule,
|
|
387
387
|
// material
|
|
@@ -396,7 +396,7 @@ CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersi
|
|
|
396
396
|
CadmusStateModule,
|
|
397
397
|
CadmusUiModule,
|
|
398
398
|
CadmusUiPgModule] });
|
|
399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, decorators: [{
|
|
400
400
|
type: NgModule,
|
|
401
401
|
args: [{
|
|
402
402
|
declarations: [
|
|
@@ -192,9 +192,9 @@ class CodShelfmarkEditorComponent {
|
|
|
192
192
|
this.shelfmarkChange.emit(this._shelfmark);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
|
-
CodShelfmarkEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
196
|
-
CodShelfmarkEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
195
|
+
CodShelfmarkEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarkEditorComponent, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
196
|
+
CodShelfmarkEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarkEditorComponent, selector: "cadmus-cod-shelfmark-editor", inputs: { shelfmark: "shelfmark", tagEntries: "tagEntries", libEntries: "libEntries" }, outputs: { shelfmarkChange: "shelfmarkChange", editorClose: "editorClose" }, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div>\r\n <!-- tag (bound) -->\r\n <mat-form-field *ngIf=\"tagEntries?.length\" style=\"width: 8em\">\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"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 <!-- tag (free) -->\r\n <mat-form-field *ngIf=\"!tagEntries?.length\">\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- city -->\r\n \r\n <mat-form-field>\r\n <mat-label>city</mat-label>\r\n <input matInput [formControl]=\"city\" />\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.required && (city.dirty || city.touched)\"\r\n >city required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.maxLength && (city.dirty || city.touched)\"\r\n >city too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <!-- library (bound) -->\r\n <mat-form-field *ngIf=\"libEntries?.length\" style=\"width: 8em\">\r\n <mat-label>library</mat-label>\r\n <mat-select [formControl]=\"library\">\r\n <mat-option *ngFor=\"let e of libEntries\" [value]=\"e.id\">{{\r\n e.value\r\n }}</mat-option>\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- library (free) -->\r\n <mat-form-field *ngIf=\"!libEntries?.length\">\r\n <mat-label>library</mat-label>\r\n <input matInput [formControl]=\"library\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.maxLength && (library.dirty || library.touched)\r\n \"\r\n >library too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- fund -->\r\n \r\n <mat-form-field>\r\n <mat-label>fund</mat-label>\r\n <input matInput [formControl]=\"fund\" />\r\n <mat-error\r\n *ngIf=\"$any(fund).errors?.maxLength && (fund.dirty || fund.touched)\"\r\n >fund too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- location -->\r\n \r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input matInput [formControl]=\"location\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.required &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.maxLength &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <!-- buttons -->\r\n <div>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Discard changes\"\r\n (click)=\"cancel()\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Accept changes\"\r\n [disabled]=\"form.invalid || form.pristine\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\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.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: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i5$1.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.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatLabel, selector: "mat-label" }, { kind: "directive", type: i6.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "component", type: i7.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i8.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarkEditorComponent, decorators: [{
|
|
198
198
|
type: Component,
|
|
199
199
|
args: [{ selector: 'cadmus-cod-shelfmark-editor', template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <div>\r\n <!-- tag (bound) -->\r\n <mat-form-field *ngIf=\"tagEntries?.length\" style=\"width: 8em\">\r\n <mat-label>tag</mat-label>\r\n <mat-select [formControl]=\"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 <!-- tag (free) -->\r\n <mat-form-field *ngIf=\"!tagEntries?.length\">\r\n <mat-label>tag</mat-label>\r\n <input matInput [formControl]=\"tag\" />\r\n <mat-error\r\n *ngIf=\"$any(tag).errors?.maxLength && (tag.dirty || tag.touched)\"\r\n >tag too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- city -->\r\n \r\n <mat-form-field>\r\n <mat-label>city</mat-label>\r\n <input matInput [formControl]=\"city\" />\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.required && (city.dirty || city.touched)\"\r\n >city required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"$any(city).errors?.maxLength && (city.dirty || city.touched)\"\r\n >city too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <div>\r\n <!-- library (bound) -->\r\n <mat-form-field *ngIf=\"libEntries?.length\" style=\"width: 8em\">\r\n <mat-label>library</mat-label>\r\n <mat-select [formControl]=\"library\">\r\n <mat-option *ngFor=\"let e of libEntries\" [value]=\"e.id\">{{\r\n e.value\r\n }}</mat-option>\r\n </mat-select>\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- library (free) -->\r\n <mat-form-field *ngIf=\"!libEntries?.length\">\r\n <mat-label>library</mat-label>\r\n <input matInput [formControl]=\"library\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.required && (library.dirty || library.touched)\r\n \"\r\n >library required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(library).errors?.maxLength && (library.dirty || library.touched)\r\n \"\r\n >library too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- fund -->\r\n \r\n <mat-form-field>\r\n <mat-label>fund</mat-label>\r\n <input matInput [formControl]=\"fund\" />\r\n <mat-error\r\n *ngIf=\"$any(fund).errors?.maxLength && (fund.dirty || fund.touched)\"\r\n >fund too long</mat-error\r\n >\r\n </mat-form-field>\r\n <!-- location -->\r\n \r\n <mat-form-field>\r\n <mat-label>location</mat-label>\r\n <input matInput [formControl]=\"location\" />\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.required &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location required</mat-error\r\n >\r\n <mat-error\r\n *ngIf=\"\r\n $any(location).errors?.maxLength &&\r\n (location.dirty || location.touched)\r\n \"\r\n >location too long</mat-error\r\n >\r\n </mat-form-field>\r\n </div>\r\n <!-- buttons -->\r\n <div>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Discard changes\"\r\n (click)=\"cancel()\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n color=\"primary\"\r\n mat-icon-button\r\n matTooltip=\"Accept changes\"\r\n [disabled]=\"form.invalid || form.pristine\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </div>\r\n</form>\r\n" }]
|
|
200
200
|
}], ctorParameters: function () { return [{ type: i1.FormBuilder }]; }, propDecorators: { shelfmark: [{
|
|
@@ -335,9 +335,9 @@ class CodShelfmarksPartComponent extends ModelEditorComponentBase {
|
|
|
335
335
|
this.shelfmarks.setValue(entries);
|
|
336
336
|
}
|
|
337
337
|
}
|
|
338
|
-
CodShelfmarksPartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
339
|
-
CodShelfmarksPartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
338
|
+
CodShelfmarksPartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartComponent, deps: [{ token: i1$1.AuthJwtService }, { token: i1.FormBuilder }, { token: i3.DialogService }], target: i0.ɵɵFactoryTarget.Component });
|
|
339
|
+
CodShelfmarksPartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarksPartComponent, selector: "cadmus-cod-shelfmarks-part", usesInheritance: true, ngImport: i0, template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>picture_in_picture</mat-icon>\r\n </div>\r\n <mat-card-title>Shelfmarks Part</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-tab-group [(selectedIndex)]=\"tabIndex\">\r\n <mat-tab label=\"shelfmarks\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-flat-button\r\n color=\"primary\"\r\n (click)=\"addShelfmark()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> shelfmark\r\n </button>\r\n </div>\r\n <table *ngIf=\"shelfmarks?.value?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>tag</th>\r\n <th>city</th>\r\n <th>library</th>\r\n <th>fund</th>\r\n <th>location</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let entry of shelfmarks?.value;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <td>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"primary\"\r\n matTooltip=\"Edit this shelfmark\"\r\n (click)=\"editShelfmark(entry, i)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark up\"\r\n [disabled]=\"first\"\r\n (click)=\"moveShelfmarkUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark down\"\r\n [disabled]=\"last\"\r\n (click)=\"moveShelfmarkDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Delete this shelfmark\"\r\n (click)=\"deleteShelfmark(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ entry.tag }}</td>\r\n <td>{{ entry.city }}</td>\r\n <td>{{ entry.library }}</td>\r\n <td>{{ entry.fund }}</td>\r\n <td>{{ entry.location }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </mat-tab>\r\n\r\n <mat-tab label=\"shelfmark\" *ngIf=\"editedShelfmark\">\r\n <cadmus-cod-shelfmark-editor\r\n [tagEntries]=\"tagEntries\"\r\n [libEntries]=\"libEntries\"\r\n [shelfmark]=\"editedShelfmark\"\r\n (shelfmarkChange)=\"onShelfmarkSave($event)\"\r\n (editorClose)=\"editShelfmark(null)\"\r\n ></cadmus-cod-shelfmark-editor>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <cadmus-close-save-buttons\r\n [form]=\"form\"\r\n [noSave]=\"userLevel < 2\"\r\n (closeRequest)=\"close()\"\r\n ></cadmus-close-save-buttons>\r\n </mat-card-actions>\r\n </mat-card>\r\n</form>\r\n", styles: ["th{font-weight:400;color:silver}\n"], 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.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i6$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i6$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i6$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i6$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i6$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i6$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i8$1.MatTab, selector: "mat-tab", inputs: ["disabled"], exportAs: ["matTab"] }, { kind: "component", type: i8$1.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple", "fitInkBarToContent", "mat-stretch-tabs"], exportAs: ["matTabGroup"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i10.CloseSaveButtonsComponent, selector: "cadmus-close-save-buttons", inputs: ["form", "noSave"], outputs: ["closeRequest"] }, { kind: "component", type: CodShelfmarkEditorComponent, selector: "cadmus-cod-shelfmark-editor", inputs: ["shelfmark", "tagEntries", "libEntries"], outputs: ["shelfmarkChange", "editorClose"] }] });
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartComponent, decorators: [{
|
|
341
341
|
type: Component,
|
|
342
342
|
args: [{ selector: 'cadmus-cod-shelfmarks-part', template: "<form [formGroup]=\"form\" (submit)=\"save()\">\r\n <mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>picture_in_picture</mat-icon>\r\n </div>\r\n <mat-card-title>Shelfmarks Part</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <mat-tab-group [(selectedIndex)]=\"tabIndex\">\r\n <mat-tab label=\"shelfmarks\">\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-flat-button\r\n color=\"primary\"\r\n (click)=\"addShelfmark()\"\r\n >\r\n <mat-icon>add_circle</mat-icon> shelfmark\r\n </button>\r\n </div>\r\n <table *ngIf=\"shelfmarks?.value?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>tag</th>\r\n <th>city</th>\r\n <th>library</th>\r\n <th>fund</th>\r\n <th>location</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr\r\n *ngFor=\"\r\n let entry of shelfmarks?.value;\r\n let i = index;\r\n let first = first;\r\n let last = last\r\n \"\r\n >\r\n <td>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"primary\"\r\n matTooltip=\"Edit this shelfmark\"\r\n (click)=\"editShelfmark(entry, i)\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark up\"\r\n [disabled]=\"first\"\r\n (click)=\"moveShelfmarkUp(i)\"\r\n >\r\n <mat-icon>arrow_upward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Move this shelfmark down\"\r\n [disabled]=\"last\"\r\n (click)=\"moveShelfmarkDown(i)\"\r\n >\r\n <mat-icon>arrow_downward</mat-icon>\r\n </button>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Delete this shelfmark\"\r\n (click)=\"deleteShelfmark(i)\"\r\n >\r\n <mat-icon>remove_circle</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ entry.tag }}</td>\r\n <td>{{ entry.city }}</td>\r\n <td>{{ entry.library }}</td>\r\n <td>{{ entry.fund }}</td>\r\n <td>{{ entry.location }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </mat-tab>\r\n\r\n <mat-tab label=\"shelfmark\" *ngIf=\"editedShelfmark\">\r\n <cadmus-cod-shelfmark-editor\r\n [tagEntries]=\"tagEntries\"\r\n [libEntries]=\"libEntries\"\r\n [shelfmark]=\"editedShelfmark\"\r\n (shelfmarkChange)=\"onShelfmarkSave($event)\"\r\n (editorClose)=\"editShelfmark(null)\"\r\n ></cadmus-cod-shelfmark-editor>\r\n </mat-tab>\r\n </mat-tab-group>\r\n </mat-card-content>\r\n <mat-card-actions>\r\n <cadmus-close-save-buttons\r\n [form]=\"form\"\r\n [noSave]=\"userLevel < 2\"\r\n (closeRequest)=\"close()\"\r\n ></cadmus-close-save-buttons>\r\n </mat-card-actions>\r\n </mat-card>\r\n</form>\r\n", styles: ["th{font-weight:400;color:silver}\n"] }]
|
|
343
343
|
}], ctorParameters: function () { return [{ type: i1$1.AuthJwtService }, { type: i1.FormBuilder }, { type: i3.DialogService }]; } });
|
|
@@ -350,17 +350,17 @@ class CodShelfmarksPartFeatureComponent extends EditPartFeatureBase {
|
|
|
350
350
|
return ['cod-shelfmark-tags', 'cod-shelfmark-libraries'];
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
|
-
CodShelfmarksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
354
|
-
CodShelfmarksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
355
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
353
|
+
CodShelfmarksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartFeatureComponent, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: i3$1.ItemService }, { token: i3$1.ThesaurusService }, { token: i4$1.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
354
|
+
CodShelfmarksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: CodShelfmarksPartFeatureComponent, selector: "cadmus-cod-shelfmarks-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-cod-shelfmarks-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-cod-shelfmarks-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5$2.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: CodShelfmarksPartComponent, selector: "cadmus-cod-shelfmarks-part" }] });
|
|
355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CodShelfmarksPartFeatureComponent, decorators: [{
|
|
356
356
|
type: Component,
|
|
357
357
|
args: [{ selector: 'cadmus-cod-shelfmarks-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-cod-shelfmarks-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-cod-shelfmarks-part>\r\n" }]
|
|
358
358
|
}], ctorParameters: function () { return [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: i3$1.ItemService }, { type: i3$1.ThesaurusService }, { type: i4$1.PartEditorService }]; } });
|
|
359
359
|
|
|
360
360
|
class CadmusPartCodicologyShelfmarksModule {
|
|
361
361
|
}
|
|
362
|
-
CadmusPartCodicologyShelfmarksModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
363
|
-
CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.
|
|
362
|
+
CadmusPartCodicologyShelfmarksModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
363
|
+
CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, declarations: [CodShelfmarksPartComponent,
|
|
364
364
|
CodShelfmarkEditorComponent,
|
|
365
365
|
CodShelfmarksPartFeatureComponent], imports: [CommonModule,
|
|
366
366
|
FormsModule,
|
|
@@ -379,7 +379,7 @@ CadmusPartCodicologyShelfmarksModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersi
|
|
|
379
379
|
CadmusUiPgModule], exports: [CodShelfmarksPartComponent,
|
|
380
380
|
CodShelfmarkEditorComponent,
|
|
381
381
|
CodShelfmarksPartFeatureComponent] });
|
|
382
|
-
CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.
|
|
382
|
+
CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, imports: [CommonModule,
|
|
383
383
|
FormsModule,
|
|
384
384
|
ReactiveFormsModule,
|
|
385
385
|
// material
|
|
@@ -394,7 +394,7 @@ CadmusPartCodicologyShelfmarksModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersi
|
|
|
394
394
|
CadmusStateModule,
|
|
395
395
|
CadmusUiModule,
|
|
396
396
|
CadmusUiPgModule] });
|
|
397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
397
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CadmusPartCodicologyShelfmarksModule, decorators: [{
|
|
398
398
|
type: NgModule,
|
|
399
399
|
args: [{
|
|
400
400
|
declarations: [
|