@myrmidon/cadmus-thesaurus-list 9.0.0 → 9.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.
@@ -113,10 +113,10 @@ class ThesaurusListRepository {
113
113
  this._store.reset();
114
114
  });
115
115
  }
116
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusListRepository, deps: [{ token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable }); }
117
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusListRepository, providedIn: 'root' }); }
116
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusListRepository, deps: [{ token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable }); }
117
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusListRepository, providedIn: 'root' }); }
118
118
  }
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusListRepository, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusListRepository, decorators: [{
120
120
  type: Injectable,
121
121
  args: [{ providedIn: 'root' }]
122
122
  }], ctorParameters: () => [{ type: i2.ThesaurusService }] });
@@ -167,10 +167,10 @@ class ThesaurusFilterComponent {
167
167
  const filter = this.getFilter();
168
168
  this._repository.setFilter(filter);
169
169
  }
170
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusFilterComponent, deps: [{ token: i1.FormBuilder }, { token: ThesaurusListRepository }], target: i0.ɵɵFactoryTarget.Component }); }
171
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.0", type: ThesaurusFilterComponent, isStandalone: false, selector: "cadmus-thesaurus-filter", ngImport: i0, template: "<form role=\"form\" [formGroup]=\"form\" (submit)=\"apply()\">\r\n <div class=\"form-row\">\r\n <!-- id -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>ID</mat-label>\r\n <input matInput formControlName=\"id\" maxlength=\"100\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- language -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>language</mat-label>\r\n <input matInput formControlName=\"language\" maxlength=\"2\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- alias -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>alias</mat-label>\r\n <mat-select formControlName=\"alias\">\r\n <mat-option [value]=\"null\">(any)</mat-option>\r\n <mat-option [value]=\"true\">alias</mat-option>\r\n <mat-option [value]=\"false\">not an alias</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n (click)=\"reset()\"\r\n color=\"warn\"\r\n matTooltip=\"Reset all the filters\"\r\n >\r\n <mat-icon class=\"mat-warn\">clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n mat-icon-button\r\n color=\"primary\"\r\n [disabled]=\"form.invalid\"\r\n matTooltip=\"Apply filters\"\r\n >\r\n <mat-icon class=\"mat-primary\">check_circle</mat-icon>\r\n </button>\r\n </div>\r\n</form>\r\n", styles: [".form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}\n"], dependencies: [{ 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i7$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
170
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusFilterComponent, deps: [{ token: i1.FormBuilder }, { token: ThesaurusListRepository }], target: i0.ɵɵFactoryTarget.Component }); }
171
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.1", type: ThesaurusFilterComponent, isStandalone: false, selector: "cadmus-thesaurus-filter", ngImport: i0, template: "<form role=\"form\" [formGroup]=\"form\" (submit)=\"apply()\">\r\n <div class=\"form-row\">\r\n <!-- id -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>ID</mat-label>\r\n <input matInput formControlName=\"id\" maxlength=\"100\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- language -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>language</mat-label>\r\n <input matInput formControlName=\"language\" maxlength=\"2\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- alias -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>alias</mat-label>\r\n <mat-select formControlName=\"alias\">\r\n <mat-option [value]=\"null\">(any)</mat-option>\r\n <mat-option [value]=\"true\">alias</mat-option>\r\n <mat-option [value]=\"false\">not an alias</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n (click)=\"reset()\"\r\n color=\"warn\"\r\n matTooltip=\"Reset all the filters\"\r\n >\r\n <mat-icon class=\"mat-warn\">clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n mat-icon-button\r\n color=\"primary\"\r\n [disabled]=\"form.invalid\"\r\n matTooltip=\"Apply filters\"\r\n >\r\n <mat-icon class=\"mat-primary\">check_circle</mat-icon>\r\n </button>\r\n </div>\r\n</form>\r\n", styles: [".form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}\n"], dependencies: [{ 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.MaxLengthValidator, selector: "[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]", inputs: ["maxlength"] }, { 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: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i7$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
172
172
  }
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusFilterComponent, decorators: [{
173
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusFilterComponent, decorators: [{
174
174
  type: Component,
175
175
  args: [{ selector: 'cadmus-thesaurus-filter', standalone: false, template: "<form role=\"form\" [formGroup]=\"form\" (submit)=\"apply()\">\r\n <div class=\"form-row\">\r\n <!-- id -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>ID</mat-label>\r\n <input matInput formControlName=\"id\" maxlength=\"100\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- language -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>language</mat-label>\r\n <input matInput formControlName=\"language\" maxlength=\"2\" />\r\n </mat-form-field>\r\n </div>\r\n\r\n <!-- alias -->\r\n <div>\r\n <mat-form-field>\r\n <mat-label>alias</mat-label>\r\n <mat-select formControlName=\"alias\">\r\n <mat-option [value]=\"null\">(any)</mat-option>\r\n <mat-option [value]=\"true\">alias</mat-option>\r\n <mat-option [value]=\"false\">not an alias</mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n (click)=\"reset()\"\r\n color=\"warn\"\r\n matTooltip=\"Reset all the filters\"\r\n >\r\n <mat-icon class=\"mat-warn\">clear</mat-icon>\r\n </button>\r\n <button\r\n type=\"submit\"\r\n mat-icon-button\r\n color=\"primary\"\r\n [disabled]=\"form.invalid\"\r\n matTooltip=\"Apply filters\"\r\n >\r\n <mat-icon class=\"mat-primary\">check_circle</mat-icon>\r\n </button>\r\n </div>\r\n</form>\r\n", styles: [".form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}\n"] }]
176
176
  }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: ThesaurusListRepository }] });
@@ -296,10 +296,10 @@ class ThesaurusImportComponent {
296
296
  this.uploadProgress = 0;
297
297
  this.uploadEnd.emit(false);
298
298
  }
299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusImportComponent, deps: [{ token: i1.FormBuilder }, { token: i2$1.EnvService }, { token: i2.UploadService }], target: i0.ɵɵFactoryTarget.Component }); }
300
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.0", type: ThesaurusImportComponent, isStandalone: false, selector: "cadmus-thesaurus-import", outputs: { uploadStart: "uploadStart", uploadEnd: "uploadEnd" }, ngImport: i0, template: "<!-- form -->\n<form [formGroup]=\"form\" (submit)=\"upload()\">\n <fieldset>\n <legend>source</legend>\n\n <!-- file picker -->\n <div>\n <input\n #fileInput\n type=\"file\"\n class=\"hidden\"\n (change)=\"onFileSelected($event)\"\n />\n <button\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n class=\"mat-primary\"\n (click)=\"fileInput.click()\"\n [disabled]=\"uploading\"\n >\n select file\n </button>\n <span class=\"file-name\">{{ file.value?.name }}</span>\n @if ($any(file).errors?.required) {\n <span class=\"error\">file required</span>\n } @if ($any(file).errors?.invalidExtension) {\n <span class=\"error\">invalid file type</span>\n }\n </div>\n <br />\n\n <!-- mode -->\n <div class=\"form-row\">\n <mat-form-field>\n <mat-label>mode</mat-label>\n <mat-select [formControl]=\"mode\">\n <mat-option value=\"R\">replace</mat-option>\n <mat-option value=\"P\">patch</mat-option>\n <mat-option value=\"S\">synch</mat-option>\n </mat-select>\n <mat-hint>\n @if (mode.value === 'R') {\n <span\n >if the imported thesaurus already exists, it is fully replaced by\n the new one.</span\n >\n } @if (mode.value === 'P') {\n <span\n >the existing thesaurus is patched with the imported one: any\n existing entry has its value overwritten; any non existing entry is\n just added.</span\n >\n } @if (mode.value === 'S') {\n <span\n >equal to patch, with the addition that any existing entry not found\n in the imported thesaurus is removed.</span\n >\n }\n </mat-hint>\n @if ($any(mode).errors?.required && (mode.dirty || mode.touched)) {\n <mat-error>mode required</mat-error>\n }\n </mat-form-field>\n\n <!-- dry -->\n <mat-checkbox [formControl]=\"dryRun\">dry run</mat-checkbox>\n </div>\n\n <!-- Excel -->\n @if ( file.value?.name?.endsWith('.xlsx') ||\n file.value?.name?.endsWith('.xls') ) {\n <div>\n <fieldset>\n <legend>Excel</legend>\n <div class=\"form-row\">\n <!-- excelSheet -->\n <mat-form-field class=\"nr-input\">\n <mat-label>sheet</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelSheet\" />\n </mat-form-field>\n <!-- excelRow -->\n <mat-form-field class=\"nr-input\">\n <mat-label>1st row</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelRow\" />\n </mat-form-field>\n <!-- excelColumn -->\n <mat-form-field class=\"nr-input\">\n <mat-label>1st column</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelColumn\" />\n </mat-form-field>\n </div>\n </fieldset>\n </div>\n }\n\n <!-- submit -->\n <div style=\"margin-top: 16px\">\n <button\n type=\"submit\"\n mat-flat-button\n color=\"warn\"\n class=\"mat-warn\"\n [disabled]=\"uploading || form.invalid\"\n >\n upload\n </button>\n </div>\n </fieldset>\n</form>\n\n<!-- uploading -->\n@if (uploading) {\n<div>\n <div>\n <button\n type=\"button\"\n mat-flat-button\n color=\"warn\"\n class=\"mat-warn\"\n (click)=\"onCancel()\"\n >\n cancel\n </button>\n </div>\n <div style=\"margin-top: 16px\">\n <mat-progress-bar max=\"100\" [value]=\"uploadProgress\"></mat-progress-bar>\n </div>\n</div>\n}\n\n<!-- result -->\n@if (result) {\n<div>\n @if (result.error) {\n <div class=\"error\">{{ result.error }}</div>\n } @if (result.importedIds.length) {\n <div>\n <div>\n <mat-card>\n <mat-card-header>\n <mat-card-title>Imported IDs</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <ol>\n @for (id of result.importedIds; track id) {\n <li>{{ id }}</li>\n }\n </ol>\n </mat-card-content>\n </mat-card>\n </div>\n </div>\n }\n</div>\n}\n", styles: ["fieldset{border:1px solid #ddd;border-radius:4px;margin:8px 0;padding:8px}legend{color:silver}.hidden{display:none}.file-name{color:#4169e1;margin-left:16px}.nr-input{width:6em}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}.error{margin:8px;color:#fff;padding:4px 8px;background-color:#fb3939;border:1px solid rgb(251,57,57);border-radius:6px}\n"], dependencies: [{ 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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { 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.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { 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: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i7.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i9$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i7$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] }); }
299
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusImportComponent, deps: [{ token: i1.FormBuilder }, { token: i2$1.EnvService }, { token: i2.UploadService }], target: i0.ɵɵFactoryTarget.Component }); }
300
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: ThesaurusImportComponent, isStandalone: false, selector: "cadmus-thesaurus-import", outputs: { uploadStart: "uploadStart", uploadEnd: "uploadEnd" }, ngImport: i0, template: "<!-- form -->\n<form [formGroup]=\"form\" (submit)=\"upload()\">\n <fieldset>\n <legend>source</legend>\n\n <!-- file picker -->\n <div>\n <input\n #fileInput\n type=\"file\"\n class=\"hidden\"\n (change)=\"onFileSelected($event)\"\n />\n <button\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n class=\"mat-primary\"\n (click)=\"fileInput.click()\"\n [disabled]=\"uploading\"\n >\n select file\n </button>\n <span class=\"file-name\">{{ file.value?.name }}</span>\n @if ($any(file).errors?.required) {\n <span class=\"error\">file required</span>\n } @if ($any(file).errors?.invalidExtension) {\n <span class=\"error\">invalid file type</span>\n }\n </div>\n <br />\n\n <!-- mode -->\n <div class=\"form-row\">\n <mat-form-field>\n <mat-label>mode</mat-label>\n <mat-select [formControl]=\"mode\">\n <mat-option value=\"R\">replace</mat-option>\n <mat-option value=\"P\">patch</mat-option>\n <mat-option value=\"S\">synch</mat-option>\n </mat-select>\n <mat-hint>\n @if (mode.value === 'R') {\n <span\n >if the imported thesaurus already exists, it is fully replaced by\n the new one.</span\n >\n } @if (mode.value === 'P') {\n <span\n >the existing thesaurus is patched with the imported one: any\n existing entry has its value overwritten; any non existing entry is\n just added.</span\n >\n } @if (mode.value === 'S') {\n <span\n >equal to patch, with the addition that any existing entry not found\n in the imported thesaurus is removed.</span\n >\n }\n </mat-hint>\n @if ($any(mode).errors?.required && (mode.dirty || mode.touched)) {\n <mat-error>mode required</mat-error>\n }\n </mat-form-field>\n\n <!-- dry -->\n <mat-checkbox [formControl]=\"dryRun\">dry run</mat-checkbox>\n </div>\n\n <!-- Excel -->\n @if ( file.value?.name?.endsWith('.xlsx') ||\n file.value?.name?.endsWith('.xls') ) {\n <div>\n <fieldset>\n <legend>Excel</legend>\n <div class=\"form-row\">\n <!-- excelSheet -->\n <mat-form-field class=\"nr-input\">\n <mat-label>sheet</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelSheet\" />\n </mat-form-field>\n <!-- excelRow -->\n <mat-form-field class=\"nr-input\">\n <mat-label>1st row</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelRow\" />\n </mat-form-field>\n <!-- excelColumn -->\n <mat-form-field class=\"nr-input\">\n <mat-label>1st column</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelColumn\" />\n </mat-form-field>\n </div>\n </fieldset>\n </div>\n }\n\n <!-- submit -->\n <div style=\"margin-top: 16px\">\n <button\n type=\"submit\"\n mat-flat-button\n color=\"warn\"\n class=\"mat-warn\"\n [disabled]=\"uploading || form.invalid\"\n >\n upload\n </button>\n </div>\n </fieldset>\n</form>\n\n<!-- uploading -->\n@if (uploading) {\n<div>\n <div>\n <button\n type=\"button\"\n mat-flat-button\n color=\"warn\"\n class=\"mat-warn\"\n (click)=\"onCancel()\"\n >\n cancel\n </button>\n </div>\n <div style=\"margin-top: 16px\">\n <mat-progress-bar max=\"100\" [value]=\"uploadProgress\"></mat-progress-bar>\n </div>\n</div>\n}\n\n<!-- result -->\n@if (result) {\n<div>\n @if (result.error) {\n <div class=\"error\">{{ result.error }}</div>\n } @if (result.importedIds.length) {\n <div>\n <div>\n <mat-card>\n <mat-card-header>\n <mat-card-title>Imported IDs</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <ol>\n @for (id of result.importedIds; track id) {\n <li>{{ id }}</li>\n }\n </ol>\n </mat-card-content>\n </mat-card>\n </div>\n </div>\n }\n</div>\n}\n", styles: ["fieldset{border:1px solid #ddd;border-radius:4px;margin:8px 0;padding:8px}legend{color:silver}.hidden{display:none}.file-name{color:#4169e1;margin-left:16px}.nr-input{width:6em}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}.error{margin:8px;color:#fff;padding:4px 8px;background-color:#fb3939;border:1px solid rgb(251,57,57);border-radius:6px}\n"], dependencies: [{ 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.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { 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.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { 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: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i6$1.MatCheckbox, selector: "mat-checkbox", inputs: ["aria-label", "aria-labelledby", "aria-describedby", "aria-expanded", "aria-controls", "aria-owns", "id", "required", "labelPosition", "name", "value", "disableRipple", "tabIndex", "color", "disabledInteractive", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { kind: "component", type: i7.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i7.MatLabel, selector: "mat-label" }, { kind: "directive", type: i7.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i7.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i6.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "component", type: i9$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i7$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i8$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }] }); }
301
301
  }
302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusImportComponent, decorators: [{
302
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusImportComponent, decorators: [{
303
303
  type: Component,
304
304
  args: [{ selector: 'cadmus-thesaurus-import', standalone: false, template: "<!-- form -->\n<form [formGroup]=\"form\" (submit)=\"upload()\">\n <fieldset>\n <legend>source</legend>\n\n <!-- file picker -->\n <div>\n <input\n #fileInput\n type=\"file\"\n class=\"hidden\"\n (change)=\"onFileSelected($event)\"\n />\n <button\n type=\"button\"\n mat-flat-button\n color=\"primary\"\n class=\"mat-primary\"\n (click)=\"fileInput.click()\"\n [disabled]=\"uploading\"\n >\n select file\n </button>\n <span class=\"file-name\">{{ file.value?.name }}</span>\n @if ($any(file).errors?.required) {\n <span class=\"error\">file required</span>\n } @if ($any(file).errors?.invalidExtension) {\n <span class=\"error\">invalid file type</span>\n }\n </div>\n <br />\n\n <!-- mode -->\n <div class=\"form-row\">\n <mat-form-field>\n <mat-label>mode</mat-label>\n <mat-select [formControl]=\"mode\">\n <mat-option value=\"R\">replace</mat-option>\n <mat-option value=\"P\">patch</mat-option>\n <mat-option value=\"S\">synch</mat-option>\n </mat-select>\n <mat-hint>\n @if (mode.value === 'R') {\n <span\n >if the imported thesaurus already exists, it is fully replaced by\n the new one.</span\n >\n } @if (mode.value === 'P') {\n <span\n >the existing thesaurus is patched with the imported one: any\n existing entry has its value overwritten; any non existing entry is\n just added.</span\n >\n } @if (mode.value === 'S') {\n <span\n >equal to patch, with the addition that any existing entry not found\n in the imported thesaurus is removed.</span\n >\n }\n </mat-hint>\n @if ($any(mode).errors?.required && (mode.dirty || mode.touched)) {\n <mat-error>mode required</mat-error>\n }\n </mat-form-field>\n\n <!-- dry -->\n <mat-checkbox [formControl]=\"dryRun\">dry run</mat-checkbox>\n </div>\n\n <!-- Excel -->\n @if ( file.value?.name?.endsWith('.xlsx') ||\n file.value?.name?.endsWith('.xls') ) {\n <div>\n <fieldset>\n <legend>Excel</legend>\n <div class=\"form-row\">\n <!-- excelSheet -->\n <mat-form-field class=\"nr-input\">\n <mat-label>sheet</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelSheet\" />\n </mat-form-field>\n <!-- excelRow -->\n <mat-form-field class=\"nr-input\">\n <mat-label>1st row</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelRow\" />\n </mat-form-field>\n <!-- excelColumn -->\n <mat-form-field class=\"nr-input\">\n <mat-label>1st column</mat-label>\n <input matInput type=\"number\" min=\"1\" [formControl]=\"excelColumn\" />\n </mat-form-field>\n </div>\n </fieldset>\n </div>\n }\n\n <!-- submit -->\n <div style=\"margin-top: 16px\">\n <button\n type=\"submit\"\n mat-flat-button\n color=\"warn\"\n class=\"mat-warn\"\n [disabled]=\"uploading || form.invalid\"\n >\n upload\n </button>\n </div>\n </fieldset>\n</form>\n\n<!-- uploading -->\n@if (uploading) {\n<div>\n <div>\n <button\n type=\"button\"\n mat-flat-button\n color=\"warn\"\n class=\"mat-warn\"\n (click)=\"onCancel()\"\n >\n cancel\n </button>\n </div>\n <div style=\"margin-top: 16px\">\n <mat-progress-bar max=\"100\" [value]=\"uploadProgress\"></mat-progress-bar>\n </div>\n</div>\n}\n\n<!-- result -->\n@if (result) {\n<div>\n @if (result.error) {\n <div class=\"error\">{{ result.error }}</div>\n } @if (result.importedIds.length) {\n <div>\n <div>\n <mat-card>\n <mat-card-header>\n <mat-card-title>Imported IDs</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <ol>\n @for (id of result.importedIds; track id) {\n <li>{{ id }}</li>\n }\n </ol>\n </mat-card-content>\n </mat-card>\n </div>\n </div>\n }\n</div>\n}\n", styles: ["fieldset{border:1px solid #ddd;border-radius:4px;margin:8px 0;padding:8px}legend{color:silver}.hidden{display:none}.file-name{color:#4169e1;margin-left:16px}.nr-input{width:6em}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}.error{margin:8px;color:#fff;padding:4px 8px;background-color:#fb3939;border:1px solid rgb(251,57,57);border-radius:6px}\n"] }]
305
305
  }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2$1.EnvService }, { type: i2.UploadService }], propDecorators: { uploadStart: [{
@@ -378,10 +378,10 @@ class ThesaurusListComponent {
378
378
  onUploadEnd() {
379
379
  this._repository.reset();
380
380
  }
381
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusListComponent, deps: [{ token: ThesaurusListRepository }, { token: i2.ThesaurusService }, { token: i3.DialogService }, { token: i4.Router }, { token: i5$1.AuthJwtService }, { token: i2.UserLevelService }, { token: i6$2.MatSnackBar }, { token: i2$1.EnvService }], target: i0.ɵɵFactoryTarget.Component }); }
382
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.0", type: ThesaurusListComponent, isStandalone: false, selector: "cadmus-thesaurus-list", ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <mat-card-title> Thesauri </mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <div id=\"container\">\n <!-- filters -->\n <div id=\"filters\">\n <cadmus-thesaurus-filter></cadmus-thesaurus-filter>\n </div>\n\n <!-- list -->\n @if (page$ | async; as page) {\n <div id=\"list\">\n @if (loading$ | async) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n }\n <table>\n <thead>\n <th></th>\n <th>id</th>\n <th>entries</th>\n </thead>\n <tbody>\n @for (thesaurus of page.items; track thesaurus.id) {\n <tr>\n <td class=\"fit-width\">\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Edit {{ thesaurus.id }}\"\n color=\"primary\"\n (click)=\"editThesaurus(thesaurus)\"\n >\n <mat-icon class=\"mat-primary\">mode_edit</mat-icon>\n </button>\n @if (userLevel > 2) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Delete {{ thesaurus.id }}\"\n color=\"warn\"\n (click)=\"deleteThesaurus(thesaurus)\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n }\n <button\n type=\"button\"\n mat-icon-button\n matTooltip=\"Download this thesaurus\"\n [disabled]=\"downloading\"\n (click)=\"downloadThesaurus(thesaurus.id)\"\n >\n <mat-icon>download</mat-icon>\n </button>\n </td>\n <td>{{ thesaurus.id }}</td>\n <td>\n {{ thesaurus.entries?.length || 0 }}\n </td>\n </tr>\n }\n </tbody>\n </table>\n <!-- pagination -->\n <mat-paginator\n [length]=\"page.total\"\n [pageIndex]=\"page.pageNumber - 1\"\n [pageSize]=\"page.pageSize\"\n [pageSizeOptions]=\"[5, 10, 20, 50, 100]\"\n (page)=\"onPageChange($event)\"\n [showFirstLastButtons]=\"true\"\n ></mat-paginator>\n <!-- importer -->\n @if (importEnabled) {\n <div>\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Import thesauri</mat-panel-title>\n </mat-expansion-panel-header>\n <cadmus-thesaurus-import\n (uploadEnd)=\"onUploadEnd()\"\n ></cadmus-thesaurus-import>\n </mat-expansion-panel>\n </div>\n }\n </div>\n }\n </div>\n </mat-card-content>\n @if ( user?.roles?.includes('admin') || user?.roles?.includes('editor') ||\n user?.roles?.includes('operator') ) {\n <mat-card-actions>\n @if (userLevel > 1) {\n <button\n type=\"button\"\n color=\"primary\"\n class=\"mat-primary\"\n mat-flat-button\n matTooltip=\"Add a new thesaurus\"\n (click)=\"addThesaurus()\"\n >\n <mat-icon>add_circle</mat-icon>\n thesaurus\n </button>\n }\n </mat-card-actions>\n }\n</mat-card>\n", styles: ["table{width:100%;border-collapse:collapse}th{font-weight:400;color:silver}td.fit-width{width:1px;white-space:nowrap}tbody tr:nth-child(odd){background-color:#e2e2e2}th{text-align:left;font-weight:400;color:silver}td.command{width:24px}div#container{display:grid;grid-template-rows:1fr;grid-template-columns:auto 1fr;grid-template-areas:\"filters list\";gap:16px}#filters{grid-area:filters;max-width:230px}#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"filters\"}#filters{max-width:none}.noif-lt-md{display:none}}\n"], dependencies: [{ kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i9$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ThesaurusFilterComponent, selector: "cadmus-thesaurus-filter" }, { kind: "component", type: ThesaurusImportComponent, selector: "cadmus-thesaurus-import", outputs: ["uploadStart", "uploadEnd"] }, { kind: "pipe", type: i17.AsyncPipe, name: "async" }] }); }
381
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusListComponent, deps: [{ token: ThesaurusListRepository }, { token: i2.ThesaurusService }, { token: i3.DialogService }, { token: i4.Router }, { token: i5$1.AuthJwtService }, { token: i2.UserLevelService }, { token: i6$2.MatSnackBar }, { token: i2$1.EnvService }], target: i0.ɵɵFactoryTarget.Component }); }
382
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: ThesaurusListComponent, isStandalone: false, selector: "cadmus-thesaurus-list", ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <mat-card-title> Thesauri </mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <div id=\"container\">\n <!-- filters -->\n <div id=\"filters\">\n <cadmus-thesaurus-filter></cadmus-thesaurus-filter>\n </div>\n\n <!-- list -->\n @if (page$ | async; as page) {\n <div id=\"list\">\n @if (loading$ | async) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n }\n <table>\n <thead>\n <th></th>\n <th>id</th>\n <th>entries</th>\n </thead>\n <tbody>\n @for (thesaurus of page.items; track thesaurus.id) {\n <tr>\n <td class=\"fit-width\">\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Edit {{ thesaurus.id }}\"\n color=\"primary\"\n (click)=\"editThesaurus(thesaurus)\"\n >\n <mat-icon class=\"mat-primary\">mode_edit</mat-icon>\n </button>\n @if (userLevel > 2) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Delete {{ thesaurus.id }}\"\n color=\"warn\"\n (click)=\"deleteThesaurus(thesaurus)\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n }\n <button\n type=\"button\"\n mat-icon-button\n matTooltip=\"Download this thesaurus\"\n [disabled]=\"downloading\"\n (click)=\"downloadThesaurus(thesaurus.id)\"\n >\n <mat-icon>download</mat-icon>\n </button>\n </td>\n <td>{{ thesaurus.id }}</td>\n <td>\n {{ thesaurus.entries?.length || 0 }}\n </td>\n </tr>\n }\n </tbody>\n </table>\n <!-- pagination -->\n <mat-paginator\n [length]=\"page.total\"\n [pageIndex]=\"page.pageNumber - 1\"\n [pageSize]=\"page.pageSize\"\n [pageSizeOptions]=\"[5, 10, 20, 50, 100]\"\n (page)=\"onPageChange($event)\"\n [showFirstLastButtons]=\"true\"\n ></mat-paginator>\n <!-- importer -->\n @if (importEnabled) {\n <div>\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Import thesauri</mat-panel-title>\n </mat-expansion-panel-header>\n <cadmus-thesaurus-import\n (uploadEnd)=\"onUploadEnd()\"\n ></cadmus-thesaurus-import>\n </mat-expansion-panel>\n </div>\n }\n </div>\n }\n </div>\n </mat-card-content>\n @if ( user?.roles?.includes('admin') || user?.roles?.includes('editor') ||\n user?.roles?.includes('operator') ) {\n <mat-card-actions>\n @if (userLevel > 1) {\n <button\n type=\"button\"\n color=\"primary\"\n class=\"mat-primary\"\n mat-flat-button\n matTooltip=\"Add a new thesaurus\"\n (click)=\"addThesaurus()\"\n >\n <mat-icon>add_circle</mat-icon>\n thesaurus\n </button>\n }\n </mat-card-actions>\n }\n</mat-card>\n", styles: ["table{width:100%;border-collapse:collapse}th{font-weight:400;color:silver}td.fit-width{width:1px;white-space:nowrap}tbody tr:nth-child(odd){background-color:#e2e2e2}th{text-align:left;font-weight:400;color:silver}td.command{width:24px}div#container{display:grid;grid-template-rows:1fr;grid-template-columns:auto 1fr;grid-template-areas:\"filters list\";gap:16px}#filters{grid-area:filters;max-width:230px}#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"filters\"}#filters{max-width:none}.noif-lt-md{display:none}}\n"], dependencies: [{ kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i9$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9$1.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i9$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i9.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: ThesaurusFilterComponent, selector: "cadmus-thesaurus-filter" }, { kind: "component", type: ThesaurusImportComponent, selector: "cadmus-thesaurus-import", outputs: ["uploadStart", "uploadEnd"] }, { kind: "pipe", type: i17.AsyncPipe, name: "async" }] }); }
383
383
  }
384
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ThesaurusListComponent, decorators: [{
384
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ThesaurusListComponent, decorators: [{
385
385
  type: Component,
386
386
  args: [{ selector: 'cadmus-thesaurus-list', standalone: false, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <mat-card-title> Thesauri </mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <div id=\"container\">\n <!-- filters -->\n <div id=\"filters\">\n <cadmus-thesaurus-filter></cadmus-thesaurus-filter>\n </div>\n\n <!-- list -->\n @if (page$ | async; as page) {\n <div id=\"list\">\n @if (loading$ | async) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n }\n <table>\n <thead>\n <th></th>\n <th>id</th>\n <th>entries</th>\n </thead>\n <tbody>\n @for (thesaurus of page.items; track thesaurus.id) {\n <tr>\n <td class=\"fit-width\">\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Edit {{ thesaurus.id }}\"\n color=\"primary\"\n (click)=\"editThesaurus(thesaurus)\"\n >\n <mat-icon class=\"mat-primary\">mode_edit</mat-icon>\n </button>\n @if (userLevel > 2) {\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Delete {{ thesaurus.id }}\"\n color=\"warn\"\n (click)=\"deleteThesaurus(thesaurus)\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n }\n <button\n type=\"button\"\n mat-icon-button\n matTooltip=\"Download this thesaurus\"\n [disabled]=\"downloading\"\n (click)=\"downloadThesaurus(thesaurus.id)\"\n >\n <mat-icon>download</mat-icon>\n </button>\n </td>\n <td>{{ thesaurus.id }}</td>\n <td>\n {{ thesaurus.entries?.length || 0 }}\n </td>\n </tr>\n }\n </tbody>\n </table>\n <!-- pagination -->\n <mat-paginator\n [length]=\"page.total\"\n [pageIndex]=\"page.pageNumber - 1\"\n [pageSize]=\"page.pageSize\"\n [pageSizeOptions]=\"[5, 10, 20, 50, 100]\"\n (page)=\"onPageChange($event)\"\n [showFirstLastButtons]=\"true\"\n ></mat-paginator>\n <!-- importer -->\n @if (importEnabled) {\n <div>\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Import thesauri</mat-panel-title>\n </mat-expansion-panel-header>\n <cadmus-thesaurus-import\n (uploadEnd)=\"onUploadEnd()\"\n ></cadmus-thesaurus-import>\n </mat-expansion-panel>\n </div>\n }\n </div>\n }\n </div>\n </mat-card-content>\n @if ( user?.roles?.includes('admin') || user?.roles?.includes('editor') ||\n user?.roles?.includes('operator') ) {\n <mat-card-actions>\n @if (userLevel > 1) {\n <button\n type=\"button\"\n color=\"primary\"\n class=\"mat-primary\"\n mat-flat-button\n matTooltip=\"Add a new thesaurus\"\n (click)=\"addThesaurus()\"\n >\n <mat-icon>add_circle</mat-icon>\n thesaurus\n </button>\n }\n </mat-card-actions>\n }\n</mat-card>\n", styles: ["table{width:100%;border-collapse:collapse}th{font-weight:400;color:silver}td.fit-width{width:1px;white-space:nowrap}tbody tr:nth-child(odd){background-color:#e2e2e2}th{text-align:left;font-weight:400;color:silver}td.command{width:24px}div#container{display:grid;grid-template-rows:1fr;grid-template-columns:auto 1fr;grid-template-areas:\"filters list\";gap:16px}#filters{grid-area:filters;max-width:230px}#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"filters\"}#filters{max-width:none}.noif-lt-md{display:none}}\n"] }]
387
387
  }], ctorParameters: () => [{ type: ThesaurusListRepository }, { type: i2.ThesaurusService }, { type: i3.DialogService }, { type: i4.Router }, { type: i5$1.AuthJwtService }, { type: i2.UserLevelService }, { type: i6$2.MatSnackBar }, { type: i2$1.EnvService }] });
@@ -391,8 +391,8 @@ const RouterModuleForChild = RouterModule.forChild([
391
391
  { path: '', pathMatch: 'full', component: ThesaurusListComponent },
392
392
  ]);
393
393
  class CadmusThesaurusListModule {
394
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CadmusThesaurusListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
395
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: CadmusThesaurusListModule, declarations: [ThesaurusListComponent,
394
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: CadmusThesaurusListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
395
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.1", ngImport: i0, type: CadmusThesaurusListModule, declarations: [ThesaurusListComponent,
396
396
  ThesaurusFilterComponent,
397
397
  ThesaurusImportComponent], imports: [CommonModule,
398
398
  FormsModule,
@@ -417,7 +417,7 @@ class CadmusThesaurusListModule {
417
417
  NgMatToolsModule], exports: [ThesaurusListComponent,
418
418
  ThesaurusFilterComponent,
419
419
  ThesaurusImportComponent] }); }
420
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CadmusThesaurusListModule, imports: [CommonModule,
420
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: CadmusThesaurusListModule, imports: [CommonModule,
421
421
  FormsModule,
422
422
  ReactiveFormsModule,
423
423
  RouterModuleForChild,
@@ -440,7 +440,7 @@ class CadmusThesaurusListModule {
440
440
  NgToolsModule,
441
441
  NgMatToolsModule] }); }
442
442
  }
443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CadmusThesaurusListModule, decorators: [{
443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: CadmusThesaurusListModule, decorators: [{
444
444
  type: NgModule,
445
445
  args: [{
446
446
  imports: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/cadmus-thesaurus-list",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Cadmus - thesauri list.",
5
5
  "keywords": [
6
6
  "Cadmus"
@@ -19,7 +19,7 @@
19
19
  "@myrmidon/ng-tools": "^4.0.0",
20
20
  "@myrmidon/ng-mat-tools": "^4.0.0",
21
21
  "@myrmidon/cadmus-api": "^9.0.0",
22
- "@myrmidon/cadmus-ui": "^9.0.0"
22
+ "@myrmidon/cadmus-ui": "^9.0.1"
23
23
  },
24
24
  "dependencies": {
25
25
  "tslib": "^2.3.0"