@myrmidon/cadmus-item-search 2.0.1 → 2.0.2

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.
@@ -29,8 +29,8 @@ export const RouterModuleForChild = RouterModule.forChild([
29
29
  ]);
30
30
  export class CadmusItemSearchModule {
31
31
  }
32
- CadmusItemSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
- CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
32
+ CadmusItemSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
+ CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
34
34
  ReactiveFormsModule,
35
35
  FormsModule, i1.RouterModule,
36
36
  // material
@@ -52,7 +52,7 @@ CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
52
52
  CadmusStateModule,
53
53
  NgToolsModule,
54
54
  NgMatToolsModule], exports: [ItemQueryComponent, ItemSearchComponent] });
55
- CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
55
+ CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
56
56
  ReactiveFormsModule,
57
57
  FormsModule,
58
58
  RouterModuleForChild,
@@ -75,7 +75,7 @@ CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
75
75
  CadmusStateModule,
76
76
  NgToolsModule,
77
77
  NgMatToolsModule] });
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
79
79
  type: NgModule,
80
80
  args: [{
81
81
  imports: [
@@ -128,9 +128,9 @@ export class ItemQueryComponent {
128
128
  this._clipboard.copy(text);
129
129
  }
130
130
  }
131
- ItemQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component });
132
- ItemQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: { lastQueries: "lastQueries", disabled: "disabled" }, outputs: { querySubmit: "querySubmit" }, viewQueries: [{ propertyName: "queryElement", first: true, predicate: ["queryctl"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-content>\r\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\r\n <div>\r\n <!-- query -->\r\n <mat-form-field appearance=\"fill\" class=\"full-width\">\r\n <mat-label>query</mat-label>\r\n <textarea\r\n #queryctl\r\n matInput\r\n rows=\"3\"\r\n formControlName=\"query\"\r\n spellcheck=\"false\"\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"2\"\r\n cdkAutosizeMaxRows=\"4\"\r\n (keydown.enter)=\"submitQuery(); (false)\"\r\n ></textarea>\r\n <mat-error\r\n *ngIf=\"query.hasError('required') && (query.dirty || query.touched)\"\r\n >enter a query</mat-error\r\n >\r\n </mat-form-field>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Clear query\"\r\n (click)=\"query.reset()\"\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-button\r\n matTooltip=\"Search items\"\r\n [disabled]=\"disabled || form.invalid\"\r\n >\r\n <mat-icon>search</mat-icon>\r\n search\r\n </button>\r\n </div>\r\n <br />\r\n <!-- history -->\r\n <div *ngIf=\"lastQueries?.length\">\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>history</mat-label>\r\n <mat-select [formControl]=\"history\">\r\n <mat-option *ngFor=\"let q of lastQueries\" [value]=\"q\">\r\n {{ q }}\r\n </mat-option>\r\n </mat-select>\r\n <button\r\n matSuffix\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Copy to query\"\r\n [disabled]=\"!history.value\"\r\n (click)=\"setQuery(history.value)\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n <br />\r\n\r\n <!-- parts/frr list -->\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Pins Reference</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div *ngIf=\"partDefs?.length\">\r\n <mat-form-field>\r\n <mat-label>part/fr.</mat-label>\r\n <mat-select [formControl]=\"partDef\">\r\n <mat-option\r\n *ngFor=\"let def of partDefs\"\r\n [value]=\"def.typeId\"\r\n [matTooltip]=\"def.description\"\r\n >\r\n {{ def.name }} ({{ def.typeId?.startsWith(\"fr.\") ? \"F\" : \"P\" }})\r\n </mat-option>\r\n </mat-select>\r\n &nbsp;\r\n <mat-spinner\r\n [diameter]=\"16\"\r\n [strokeWidth]=\"2\"\r\n *ngIf=\"loadingPinDefs\"\r\n ></mat-spinner>\r\n </mat-form-field>\r\n <!-- selected part's pins -->\r\n <table class=\"pins\" *ngIf=\"pinDefs?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>name</th>\r\n <th>type</th>\r\n <th>tip</th>\r\n <th>attrs</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pd of pinDefs\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n matTooltip=\"Copy name\"\r\n (click)=\"copyToClipboard(pd.name)\"\r\n >\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ pd.name }}</td>\r\n <td>{{ pinTypeIdToString(pd.type) }}</td>\r\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\r\n <td>{{ pd.attributes }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </mat-expansion-panel>\r\n\r\n <!-- help -->\r\n <br />\r\n <mat-expansion-panel [expanded]=\"false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Quick Help</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"query-help\">\r\n <p>\r\n Pairs are between <code>[]</code>. Each pair has field name +\r\n operator + field value. Connect multiple pairs with\r\n <code>AND</code> and <code>OR</code>, and group them using brackets.\r\n Example:\r\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\r\n </p>\r\n <h4>Fields</h4>\r\n <ul>\r\n <li><code>t</code>, <code>title</code>: item's title.</li>\r\n <li>\r\n <code>dsc</code>, <code>description</code>: item's description.\r\n </li>\r\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\r\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\r\n <li><code>sortKey</code>: item's sort key.</li>\r\n <li><code>flags</code>: item's flags.</li>\r\n <li>\r\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\r\n part type ID.\r\n </li>\r\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\r\n <li><code>n</code>, <code>name</code>: pin's name.</li>\r\n <li><code>v</code>, <code>value</code>: pin's value.</li>\r\n </ul>\r\n <h4>Operators</h4>\r\n <ul>\r\n <li><code>=</code>: equal to.</li>\r\n <li><code>&lt;&gt;</code>: not equal to.</li>\r\n <li><code>*=</code>: contains.</li>\r\n <li><code>^=</code>: starts with.</li>\r\n <li><code>$=</code>: ends with.</li>\r\n <li>\r\n <code>?=</code>: wildcards: <code>?</code>=any single character,\r\n <code>*</code>=0-N characters.\r\n </li>\r\n <li><code>~=</code>: regular expression.</li>\r\n <li>\r\n <code>%=</code>: fuzzy matching. The value is followed by\r\n <code>:</code> and the minimum similarity treshold.\r\n </li>\r\n <li><code>==</code>: equal (numeric).</li>\r\n <li><code>!=</code>: not equal (numeric).</li>\r\n <li><code>&lt;</code>: less-than (numeric).</li>\r\n <li><code>&gt;</code>: greater-than (numeric).</li>\r\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\r\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\r\n <li>\r\n <code>:</code> (flags): any the specified flags (comma-separated)\r\n must be present.\r\n </li>\r\n <li>\r\n <code>&amp;:</code> (flags): all the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n <li>\r\n <code>!:</code> (flags): none of the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n </ul>\r\n <p>Flags can be specified either with name or value.</p>\r\n <p>\r\n Value escapes: <code>\\[</code>=<code>[</code>,\r\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\r\n character code.\r\n </p>\r\n </div>\r\n </mat-expansion-panel>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [".query-help{min-width:200px;max-height:400px;overflow-y:scroll}.query-help h4{font-weight:700;border-bottom:1px solid silver}.query-help code{color:#d2691e}.full-width{width:100%}table.pins tbody tr:nth-child(odd){background-color:#fafafa}table.pins th{text-align:left;font-weight:400;color:silver}\n"], dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.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: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.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: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i7.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i8.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i8.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i8.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i9.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9.MatLabel, selector: "mat-label" }, { kind: "directive", type: i9.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i9.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i11.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: "directive", type: i12.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i13.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i14.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemQueryComponent, decorators: [{
131
+ ItemQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component });
132
+ ItemQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: { lastQueries: "lastQueries", disabled: "disabled" }, outputs: { querySubmit: "querySubmit" }, viewQueries: [{ propertyName: "queryElement", first: true, predicate: ["queryctl"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-content>\r\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\r\n <div>\r\n <!-- query -->\r\n <mat-form-field appearance=\"fill\" class=\"full-width\">\r\n <mat-label>query</mat-label>\r\n <textarea\r\n #queryctl\r\n matInput\r\n rows=\"3\"\r\n formControlName=\"query\"\r\n spellcheck=\"false\"\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"2\"\r\n cdkAutosizeMaxRows=\"4\"\r\n (keydown.enter)=\"submitQuery(); (false)\"\r\n ></textarea>\r\n <mat-error\r\n *ngIf=\"query.hasError('required') && (query.dirty || query.touched)\"\r\n >enter a query</mat-error\r\n >\r\n </mat-form-field>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Clear query\"\r\n (click)=\"query.reset()\"\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-button\r\n matTooltip=\"Search items\"\r\n [disabled]=\"disabled || form.invalid\"\r\n >\r\n <mat-icon>search</mat-icon>\r\n search\r\n </button>\r\n </div>\r\n <br />\r\n <!-- history -->\r\n <div *ngIf=\"lastQueries?.length\">\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>history</mat-label>\r\n <mat-select [formControl]=\"history\">\r\n <mat-option *ngFor=\"let q of lastQueries\" [value]=\"q\">\r\n {{ q }}\r\n </mat-option>\r\n </mat-select>\r\n <button\r\n matSuffix\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Copy to query\"\r\n [disabled]=\"!history.value\"\r\n (click)=\"setQuery(history.value)\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n <br />\r\n\r\n <!-- parts/frr list -->\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Pins Reference</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div *ngIf=\"partDefs?.length\">\r\n <mat-form-field>\r\n <mat-label>part/fr.</mat-label>\r\n <mat-select [formControl]=\"partDef\">\r\n <mat-option\r\n *ngFor=\"let def of partDefs\"\r\n [value]=\"def.typeId\"\r\n [matTooltip]=\"def.description\"\r\n >\r\n {{ def.name }} ({{ def.typeId?.startsWith(\"fr.\") ? \"F\" : \"P\" }})\r\n </mat-option>\r\n </mat-select>\r\n &nbsp;\r\n <mat-spinner\r\n [diameter]=\"16\"\r\n [strokeWidth]=\"2\"\r\n *ngIf=\"loadingPinDefs\"\r\n ></mat-spinner>\r\n </mat-form-field>\r\n <!-- selected part's pins -->\r\n <table class=\"pins\" *ngIf=\"pinDefs?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>name</th>\r\n <th>type</th>\r\n <th>tip</th>\r\n <th>attrs</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pd of pinDefs\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n matTooltip=\"Copy name\"\r\n (click)=\"copyToClipboard(pd.name)\"\r\n >\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ pd.name }}</td>\r\n <td>{{ pinTypeIdToString(pd.type) }}</td>\r\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\r\n <td>{{ pd.attributes }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </mat-expansion-panel>\r\n\r\n <!-- help -->\r\n <br />\r\n <mat-expansion-panel [expanded]=\"false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Quick Help</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"query-help\">\r\n <p>\r\n Pairs are between <code>[]</code>. Each pair has field name +\r\n operator + field value. Connect multiple pairs with\r\n <code>AND</code> and <code>OR</code>, and group them using brackets.\r\n Example:\r\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\r\n </p>\r\n <h4>Fields</h4>\r\n <ul>\r\n <li><code>t</code>, <code>title</code>: item's title.</li>\r\n <li>\r\n <code>dsc</code>, <code>description</code>: item's description.\r\n </li>\r\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\r\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\r\n <li><code>sortKey</code>: item's sort key.</li>\r\n <li><code>flags</code>: item's flags.</li>\r\n <li>\r\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\r\n part type ID.\r\n </li>\r\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\r\n <li><code>n</code>, <code>name</code>: pin's name.</li>\r\n <li><code>v</code>, <code>value</code>: pin's value.</li>\r\n </ul>\r\n <h4>Operators</h4>\r\n <ul>\r\n <li><code>=</code>: equal to.</li>\r\n <li><code>&lt;&gt;</code>: not equal to.</li>\r\n <li><code>*=</code>: contains.</li>\r\n <li><code>^=</code>: starts with.</li>\r\n <li><code>$=</code>: ends with.</li>\r\n <li>\r\n <code>?=</code>: wildcards: <code>?</code>=any single character,\r\n <code>*</code>=0-N characters.\r\n </li>\r\n <li><code>~=</code>: regular expression.</li>\r\n <li>\r\n <code>%=</code>: fuzzy matching. The value is followed by\r\n <code>:</code> and the minimum similarity treshold.\r\n </li>\r\n <li><code>==</code>: equal (numeric).</li>\r\n <li><code>!=</code>: not equal (numeric).</li>\r\n <li><code>&lt;</code>: less-than (numeric).</li>\r\n <li><code>&gt;</code>: greater-than (numeric).</li>\r\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\r\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\r\n <li>\r\n <code>:</code> (flags): any the specified flags (comma-separated)\r\n must be present.\r\n </li>\r\n <li>\r\n <code>&amp;:</code> (flags): all the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n <li>\r\n <code>!:</code> (flags): none of the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n </ul>\r\n <p>Flags can be specified either with name or value.</p>\r\n <p>\r\n Value escapes: <code>\\[</code>=<code>[</code>,\r\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\r\n character code.\r\n </p>\r\n </div>\r\n </mat-expansion-panel>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [".query-help{min-width:200px;max-height:400px;overflow-y:scroll}.query-help h4{font-weight:700;border-bottom:1px solid silver}.query-help code{color:#d2691e}.full-width{width:100%}table.pins tbody tr:nth-child(odd){background-color:#fafafa}table.pins th{text-align:left;font-weight:400;color:silver}\n"], dependencies: [{ kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.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: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.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: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i7.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i8.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i8.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i8.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i9.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9.MatLabel, selector: "mat-label" }, { kind: "directive", type: i9.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i9.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i11.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: "directive", type: i12.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i13.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i14.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemQueryComponent, decorators: [{
134
134
  type: Component,
135
135
  args: [{ selector: 'cadmus-item-query', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-content>\r\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\r\n <div>\r\n <!-- query -->\r\n <mat-form-field appearance=\"fill\" class=\"full-width\">\r\n <mat-label>query</mat-label>\r\n <textarea\r\n #queryctl\r\n matInput\r\n rows=\"3\"\r\n formControlName=\"query\"\r\n spellcheck=\"false\"\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"2\"\r\n cdkAutosizeMaxRows=\"4\"\r\n (keydown.enter)=\"submitQuery(); (false)\"\r\n ></textarea>\r\n <mat-error\r\n *ngIf=\"query.hasError('required') && (query.dirty || query.touched)\"\r\n >enter a query</mat-error\r\n >\r\n </mat-form-field>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Clear query\"\r\n (click)=\"query.reset()\"\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-button\r\n matTooltip=\"Search items\"\r\n [disabled]=\"disabled || form.invalid\"\r\n >\r\n <mat-icon>search</mat-icon>\r\n search\r\n </button>\r\n </div>\r\n <br />\r\n <!-- history -->\r\n <div *ngIf=\"lastQueries?.length\">\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>history</mat-label>\r\n <mat-select [formControl]=\"history\">\r\n <mat-option *ngFor=\"let q of lastQueries\" [value]=\"q\">\r\n {{ q }}\r\n </mat-option>\r\n </mat-select>\r\n <button\r\n matSuffix\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Copy to query\"\r\n [disabled]=\"!history.value\"\r\n (click)=\"setQuery(history.value)\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n <br />\r\n\r\n <!-- parts/frr list -->\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Pins Reference</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div *ngIf=\"partDefs?.length\">\r\n <mat-form-field>\r\n <mat-label>part/fr.</mat-label>\r\n <mat-select [formControl]=\"partDef\">\r\n <mat-option\r\n *ngFor=\"let def of partDefs\"\r\n [value]=\"def.typeId\"\r\n [matTooltip]=\"def.description\"\r\n >\r\n {{ def.name }} ({{ def.typeId?.startsWith(\"fr.\") ? \"F\" : \"P\" }})\r\n </mat-option>\r\n </mat-select>\r\n &nbsp;\r\n <mat-spinner\r\n [diameter]=\"16\"\r\n [strokeWidth]=\"2\"\r\n *ngIf=\"loadingPinDefs\"\r\n ></mat-spinner>\r\n </mat-form-field>\r\n <!-- selected part's pins -->\r\n <table class=\"pins\" *ngIf=\"pinDefs?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>name</th>\r\n <th>type</th>\r\n <th>tip</th>\r\n <th>attrs</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pd of pinDefs\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n matTooltip=\"Copy name\"\r\n (click)=\"copyToClipboard(pd.name)\"\r\n >\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ pd.name }}</td>\r\n <td>{{ pinTypeIdToString(pd.type) }}</td>\r\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\r\n <td>{{ pd.attributes }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </mat-expansion-panel>\r\n\r\n <!-- help -->\r\n <br />\r\n <mat-expansion-panel [expanded]=\"false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Quick Help</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"query-help\">\r\n <p>\r\n Pairs are between <code>[]</code>. Each pair has field name +\r\n operator + field value. Connect multiple pairs with\r\n <code>AND</code> and <code>OR</code>, and group them using brackets.\r\n Example:\r\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\r\n </p>\r\n <h4>Fields</h4>\r\n <ul>\r\n <li><code>t</code>, <code>title</code>: item's title.</li>\r\n <li>\r\n <code>dsc</code>, <code>description</code>: item's description.\r\n </li>\r\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\r\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\r\n <li><code>sortKey</code>: item's sort key.</li>\r\n <li><code>flags</code>: item's flags.</li>\r\n <li>\r\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\r\n part type ID.\r\n </li>\r\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\r\n <li><code>n</code>, <code>name</code>: pin's name.</li>\r\n <li><code>v</code>, <code>value</code>: pin's value.</li>\r\n </ul>\r\n <h4>Operators</h4>\r\n <ul>\r\n <li><code>=</code>: equal to.</li>\r\n <li><code>&lt;&gt;</code>: not equal to.</li>\r\n <li><code>*=</code>: contains.</li>\r\n <li><code>^=</code>: starts with.</li>\r\n <li><code>$=</code>: ends with.</li>\r\n <li>\r\n <code>?=</code>: wildcards: <code>?</code>=any single character,\r\n <code>*</code>=0-N characters.\r\n </li>\r\n <li><code>~=</code>: regular expression.</li>\r\n <li>\r\n <code>%=</code>: fuzzy matching. The value is followed by\r\n <code>:</code> and the minimum similarity treshold.\r\n </li>\r\n <li><code>==</code>: equal (numeric).</li>\r\n <li><code>!=</code>: not equal (numeric).</li>\r\n <li><code>&lt;</code>: less-than (numeric).</li>\r\n <li><code>&gt;</code>: greater-than (numeric).</li>\r\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\r\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\r\n <li>\r\n <code>:</code> (flags): any the specified flags (comma-separated)\r\n must be present.\r\n </li>\r\n <li>\r\n <code>&amp;:</code> (flags): all the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n <li>\r\n <code>!:</code> (flags): none of the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n </ul>\r\n <p>Flags can be specified either with name or value.</p>\r\n <p>\r\n Value escapes: <code>\\[</code>=<code>[</code>,\r\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\r\n character code.\r\n </p>\r\n </div>\r\n </mat-expansion-panel>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [".query-help{min-width:200px;max-height:400px;overflow-y:scroll}.query-help h4{font-weight:700;border-bottom:1px solid silver}.query-help code{color:#d2691e}.full-width{width:100%}table.pins tbody tr:nth-child(odd){background-color:#fafafa}table.pins th{text-align:left;font-weight:400;color:silver}\n"] }]
136
136
  }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.Clipboard }, { type: i3.AppRepository }, { type: i4.ItemService }]; }, propDecorators: { queryElement: [{
@@ -17,21 +17,19 @@ import * as i13 from "@angular/material/tooltip";
17
17
  import * as i14 from "@myrmidon/cadmus-ui";
18
18
  import * as i15 from "../item-query/item-query.component";
19
19
  export class ItemSearchComponent {
20
- constructor(_repository, _dialogService, _router, _authService, _userLevelService, _appRepository) {
20
+ constructor(_repository, _dialogService, _router, _authService, _userLevelService, appRepository) {
21
21
  this._repository = _repository;
22
22
  this._dialogService = _dialogService;
23
23
  this._router = _router;
24
24
  this._authService = _authService;
25
25
  this._userLevelService = _userLevelService;
26
- this._appRepository = _appRepository;
27
26
  this.userLevel = 0;
28
- this.flagDefinitions$ = this._appRepository.flags$;
29
- this.facetDefinitions$ = this._appRepository.facets$;
30
27
  this.pagination$ = this._repository.pagination$;
31
28
  this.query$ = this._repository.query$;
32
29
  this.lastQueries$ = this._repository.lastQueries$;
33
30
  this.error$ = this._repository.error$;
34
31
  this.loading$ = this._repository.loading$;
32
+ this.app = appRepository.getValue();
35
33
  }
36
34
  ngOnInit() {
37
35
  this._authService.currentUser$.subscribe((user) => {
@@ -70,10 +68,10 @@ export class ItemSearchComponent {
70
68
  this._repository.clearCache();
71
69
  }
72
70
  }
73
- ItemSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchComponent, deps: [{ token: i1.ItemSearchRepository }, { token: i2.DialogService }, { token: i3.Router }, { token: i4.AuthJwtService }, { token: i5.UserLevelService }, { token: i6.AppRepository }], target: i0.ɵɵFactoryTarget.Component });
74
- ItemSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ItemSearchComponent, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td>\r\n <cadmus-facet-badge\r\n [facetId]=\"item.facetId\"\r\n [facetDefinitions]=\"$any(facetDefinitions$ | async)\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td>\r\n <cadmus-flags-badge\r\n [flags]=\"item.flags\"\r\n [flagDefinitions]=\"$any(flagDefinitions$ | async)\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["facetId", "facetDefinitions"] }, { kind: "component", type: i14.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["flags", "flagDefinitions"] }, { kind: "component", type: i15.ItemQueryComponent, selector: "cadmus-item-query", inputs: ["lastQueries", "disabled"], outputs: ["querySubmit"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.DatePipe, name: "date" }] });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchComponent, decorators: [{
71
+ ItemSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchComponent, deps: [{ token: i1.ItemSearchRepository }, { token: i2.DialogService }, { token: i3.Router }, { token: i4.AuthJwtService }, { token: i5.UserLevelService }, { token: i6.AppRepository }], target: i0.ɵɵFactoryTarget.Component });
72
+ ItemSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ItemSearchComponent, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\" style=\"width: 100%\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-facet-badge\r\n [data]=\"{ definitions: app.facets, facetId: item.facetId }\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-flags-badge\r\n [data]=\"{ definitions: app.flags, flags: item.flags }\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}td.fit-width{width:1px;white-space:nowrap}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["data"] }, { kind: "component", type: i14.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["data"] }, { kind: "component", type: i15.ItemQueryComponent, selector: "cadmus-item-query", inputs: ["lastQueries", "disabled"], outputs: ["querySubmit"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.DatePipe, name: "date" }] });
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchComponent, decorators: [{
76
74
  type: Component,
77
- args: [{ selector: 'cadmus-item-search', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td>\r\n <cadmus-facet-badge\r\n [facetId]=\"item.facetId\"\r\n [facetDefinitions]=\"$any(facetDefinitions$ | async)\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td>\r\n <cadmus-flags-badge\r\n [flags]=\"item.flags\"\r\n [flagDefinitions]=\"$any(flagDefinitions$ | async)\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"] }]
75
+ args: [{ selector: 'cadmus-item-search', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\" style=\"width: 100%\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-facet-badge\r\n [data]=\"{ definitions: app.facets, facetId: item.facetId }\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-flags-badge\r\n [data]=\"{ definitions: app.flags, flags: item.flags }\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}td.fit-width{width:1px;white-space:nowrap}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"] }]
78
76
  }], ctorParameters: function () { return [{ type: i1.ItemSearchRepository }, { type: i2.DialogService }, { type: i3.Router }, { type: i4.AuthJwtService }, { type: i5.UserLevelService }, { type: i6.AppRepository }]; } });
79
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS1zZWFyY2guY29tcG9uZW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YWJsZSAqbmdJZj1cInBhZ2luYXRpb24uZGF0YS5sZW5ndGhcIj5cclxuICAgICAgICAgIDx0aGVhZD5cclxuICAgICAgICAgICAgPHRoPjwvdGg+XHJcbiAgICAgICAgICAgIDx0aFxyXG4gICAgICAgICAgICAgICpuZ0lmPVwiXHJcbiAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2FkbWluJykgfHxcclxuICAgICAgICAgICAgICAgIHVzZXI/LnJvbGVzPy5pbmNsdWRlcygnZWRpdG9yJylcclxuICAgICAgICAgICAgICBcIlxyXG4gICAgICAgICAgICA+PC90aD5cclxuICAgICAgICAgICAgPHRoPmZhY2V0PC90aD5cclxuICAgICAgICAgICAgPHRoPmZsYWdzPC90aD5cclxuICAgICAgICAgICAgPHRoPnRpdGxlPC90aD5cclxuICAgICAgICAgICAgPHRoPmRlc2NyaXB0aW9uPC90aD5cclxuICAgICAgICAgICAgPHRoIGNsYXNzPVwibm9pZi1sdC1tZFwiPmdyb3VwPC90aD5cclxuICAgICAgICAgICAgPHRoIGNsYXNzPVwibm9pZi1sdC1tZFwiPnVzZXI8L3RoPlxyXG4gICAgICAgICAgICA8dGggY2xhc3M9XCJub2lmLWx0LW1kXCI+bGFzdCBzYXZlZDwvdGg+XHJcbiAgICAgICAgICAgIDx0aCBjbGFzcz1cIm5vaWYtbHQtbWRcIj5jcmVhdG9yPC90aD5cclxuICAgICAgICAgIDwvdGhlYWQ+XHJcbiAgICAgICAgICA8dGJvZHk+XHJcbiAgICAgICAgICAgIDx0ciAqbmdGb3I9XCJsZXQgaXRlbSBvZiBwYWdpbmF0aW9uLmRhdGFcIj5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJjb21tYW5kXCI+XHJcbiAgICAgICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcclxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImVkaXRJdGVtKGl0ZW0pXCJcclxuICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPm1vZGVfZWRpdDwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZFxyXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJjb21tYW5kXCJcclxuICAgICAgICAgICAgICAgICpuZ0lmPVwiXHJcbiAgICAgICAgICAgICAgICAgIHVzZXI/LnJvbGVzPy5pbmNsdWRlcygnYWRtaW4nKSB8fFxyXG4gICAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2VkaXRvcicpXHJcbiAgICAgICAgICAgICAgICBcIlxyXG4gICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgICAgKm5nSWY9XCJ1c2VyTGV2ZWwgPiAyXCJcclxuICAgICAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgICAgICBjb2xvcj1cIndhcm5cIlxyXG4gICAgICAgICAgICAgICAgICAoY2xpY2spPVwiZGVsZXRlSXRlbShpdGVtKVwiXHJcbiAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5kZWxldGU8L21hdC1pY29uPlxyXG4gICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGQ+XHJcbiAgICAgICAgICAgICAgICA8Y2FkbXVzLWZhY2V0LWJhZGdlXHJcbiAgICAgICAgICAgICAgICAgIFtmYWNldElkXT1cIml0ZW0uZmFjZXRJZFwiXHJcbiAgICAgICAgICAgICAgICAgIFtmYWNldERlZmluaXRpb25zXT1cIiRhbnkoZmFjZXREZWZpbml0aW9ucyQgfCBhc3luYylcIlxyXG4gICAgICAgICAgICAgICAgPjwvY2FkbXVzLWZhY2V0LWJhZGdlPlxyXG4gICAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkPlxyXG4gICAgICAgICAgICAgICAgPGNhZG11cy1mbGFncy1iYWRnZVxyXG4gICAgICAgICAgICAgICAgICBbZmxhZ3NdPVwiaXRlbS5mbGFnc1wiXHJcbiAgICAgICAgICAgICAgICAgIFtmbGFnRGVmaW5pdGlvbnNdPVwiJGFueShmbGFnRGVmaW5pdGlvbnMkIHwgYXN5bmMpXCJcclxuICAgICAgICAgICAgICAgID48L2NhZG11cy1mbGFncy1iYWRnZT5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZD57eyBpdGVtLnRpdGxlIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQ+e3sgaXRlbS5kZXNjcmlwdGlvbiB9fTwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwibm9pZi1sdC1tZFwiPnt7IGl0ZW0uZ3JvdXBJZCB9fTwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwibm9pZi1sdC1tZFwiPnt7IGl0ZW0udXNlcklkIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJub2lmLWx0LW1kXCI+XHJcbiAgICAgICAgICAgICAgICB7eyBpdGVtLnRpbWVNb2RpZmllZCB8IGRhdGU6IFwieXl5eS1NTS1kZCBISDptbTpzc1wiIH19XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJub2lmLWx0LW1kXCI+e3sgaXRlbS5jcmVhdG9ySWQgfX08L3RkPlxyXG4gICAgICAgICAgICA8L3RyPlxyXG4gICAgICAgICAgPC90Ym9keT5cclxuICAgICAgICA8L3RhYmxlPlxyXG5cclxuICAgICAgICA8IS0tIHBhZ2luYXRvciAtLT5cclxuICAgICAgICA8ZGl2XHJcbiAgICAgICAgICBzdHlsZT1cImdyaWQtYXJlYTogcGFnaW5hdG9yOyBqdXN0aWZ5LWNvbnRlbnQ6IGVuZFwiXHJcbiAgICAgICAgICBjbGFzcz1cImZvcm0tcm93XCJcclxuICAgICAgICA+XHJcbiAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgY29sb3I9XCJ3YXJuXCJcclxuICAgICAgICAgICAgbWF0VG9vbHRpcD1cIkNsZWFyIGl0ZW1zIGNhY2hlXCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cImNsZWFyQ2FjaGUoKVwiXHJcbiAgICAgICAgICA+XHJcbiAgICAgICAgICAgIDxtYXQtaWNvbj5hdXRvcmVuZXc8L21hdC1pY29uPlxyXG4gICAgICAgICAgPC9idXR0b24+XHJcblxyXG4gICAgICAgICAgPG1hdC1wYWdpbmF0b3JcclxuICAgICAgICAgICAgKm5nSWY9XCJwYWdpbmF0aW9uLmRhdGEubGVuZ3RoXCJcclxuICAgICAgICAgICAgW2xlbmd0aF09XCJwYWdpbmF0aW9uLnRvdGFsXCJcclxuICAgICAgICAgICAgW3BhZ2VTaXplXT1cInBhZ2luYXRpb24ucGVyUGFnZVwiXHJcbiAgICAgICAgICAgIFtwYWdlU2l6ZU9wdGlvbnNdPVwiWzIwLCA1MCwgNzUsIDEwMF1cIlxyXG4gICAgICAgICAgICBbcGFnZUluZGV4XT1cInBhZ2luYXRpb24uY3VycmVudFBhZ2UgLSAxXCJcclxuICAgICAgICAgICAgW3Nob3dGaXJzdExhc3RCdXR0b25zXT1cInRydWVcIlxyXG4gICAgICAgICAgICAocGFnZSk9XCJwYWdlQ2hh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gICAgICAgICAqbmdJZj1cIlxyXG4gICAgICAgICAgICAgICAgdXNlcj8ucm9sZXM/LmluY2x1ZGVzKCdhZG1pbicpIHx8XHJcbiAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2VkaXRvcicpXHJcbiAgICAgICAgICAgICAgXCJcclxuICAgICAgICAgICAgPjwvdGg+XHJcbiAgICAgICAgICAgIDx0aD5mYWNldDwvdGg+XHJcbiAgICAgICAgICAgIDx0aD5mbGFnczwvdGg+XHJcbiAgICAgICAgICAgIDx0aD50aXRsZTwvdGg+XHJcbiAgICAgICAgICAgIDx0aD5kZXNjcmlwdGlvbjwvdGg+XHJcbiAgICAgICAgICAgIDx0aCBjbGFzcz1cIm5vaWYtbHQtbWRcIj5ncm91cDwvdGg+XHJcbiAgICAgICAgICAgIDx0aCBjbGFzcz1cIm5vaWYtbHQtbWRcIj51c2VyPC90aD5cclxuICAgICAgICAgICAgPHRoIGNsYXNzPVwibm9pZi1sdC1tZFwiPmxhc3Qgc2F2ZWQ8L3RoPlxyXG4gICAgICAgICAgICA8dGggY2xhc3M9XCJub2lmLWx0LW1kXCI+Y3JlYXRvcjwvdGg+XHJcbiAgICAgICAgICA8L3RoZWFkPlxyXG4gICAgICAgICAgPHRib2R5PlxyXG4gICAgICAgICAgICA8dHIgKm5nRm9yPVwibGV0IGl0ZW0gb2YgcGFnaW5hdGlvbi5kYXRhXCI+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwiY29tbWFuZFwiPlxyXG4gICAgICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXHJcbiAgICAgICAgICAgICAgICAgIChjbGljayk9XCJlZGl0SXRlbShpdGVtKVwiXHJcbiAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5tb2RlX2VkaXQ8L21hdC1pY29uPlxyXG4gICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGRcclxuICAgICAgICAgICAgICAgIGNsYXNzPVwiY29tbWFuZFwiXHJcbiAgICAgICAgICAgICAgICAqbmdJZj1cIlxyXG4gICAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2FkbWluJykgfHxcclxuICAgICAgICAgICAgICAgICAgdXNlcj8ucm9sZXM/LmluY2x1ZGVzKCdlZGl0b3InKVxyXG4gICAgICAgICAgICAgICAgXCJcclxuICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgICpuZ0lmPVwidXNlckxldmVsID4gMlwiXHJcbiAgICAgICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICAgICAgY29sb3I9XCJ3YXJuXCJcclxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImRlbGV0ZUl0ZW0oaXRlbSlcIlxyXG4gICAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWljb24+ZGVsZXRlPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwiZml0LXdpZHRoXCI+XHJcbiAgICAgICAgICAgICAgICA8Y2FkbXVzLWZhY2V0LWJhZGdlXHJcbiAgICAgICAgICAgICAgICAgIFtkYXRhXT1cInsgZGVmaW5pdGlvbnM6IGFwcC5mYWNldHMsIGZhY2V0SWQ6IGl0ZW0uZmFjZXRJZCB9XCJcclxuICAgICAgICAgICAgICAgID48L2NhZG11cy1mYWNldC1iYWRnZT5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZCBjbGFzcz1cImZpdC13aWR0aFwiPlxyXG4gICAgICAgICAgICAgICAgPGNhZG11cy1mbGFncy1iYWRnZVxyXG4gICAgICAgICAgICAgICAgICBbZGF0YV09XCJ7IGRlZmluaXRpb25zOiBhcHAuZmxhZ3MsIGZsYWdzOiBpdGVtLmZsYWdzIH1cIlxyXG4gICAgICAgICAgICAgICAgPjwvY2FkbXVzLWZsYWdzLWJhZGdlPlxyXG4gICAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkPnt7IGl0ZW0udGl0bGUgfX08L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZD57eyBpdGVtLmRlc2NyaXB0aW9uIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJub2lmLWx0LW1kXCI+e3sgaXRlbS5ncm91cElkIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJub2lmLWx0LW1kXCI+e3sgaXRlbS51c2VySWQgfX08L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZCBjbGFzcz1cIm5vaWYtbHQtbWRcIj5cclxuICAgICAgICAgICAgICAgIHt7IGl0ZW0udGltZU1vZGlmaWVkIHwgZGF0ZSA6IFwieXl5eS1NTS1kZCBISDptbTpzc1wiIH19XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJub2lmLWx0LW1kXCI+e3sgaXRlbS5jcmVhdG9ySWQgfX08L3RkPlxyXG4gICAgICAgICAgICA8L3RyPlxyXG4gICAgICAgICAgPC90Ym9keT5cclxuICAgICAgICA8L3RhYmxlPlxyXG5cclxuICAgICAgICA8IS0tIHBhZ2luYXRvciAtLT5cclxuICAgICAgICA8ZGl2XHJcbiAgICAgICAgICBzdHlsZT1cImdyaWQtYXJlYTogcGFnaW5hdG9yOyBqdXN0aWZ5LWNvbnRlbnQ6IGVuZFwiXHJcbiAgICAgICAgICBjbGFzcz1cImZvcm0tcm93XCJcclxuICAgICAgICA+XHJcbiAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgY29sb3I9XCJ3YXJuXCJcclxuICAgICAgICAgICAgbWF0VG9vbHRpcD1cIkNsZWFyIGl0ZW1zIGNhY2hlXCJcclxuICAgICAgICAgICAgKGNsaWNrKT1cImNsZWFyQ2FjaGUoKVwiXHJcbiAgICAgICAgICA+XHJcbiAgICAgICAgICAgIDxtYXQtaWNvbj5hdXRvcmVuZXc8L21hdC1pY29uPlxyXG4gICAgICAgICAgPC9idXR0b24+XHJcblxyXG4gICAgICAgICAgPG1hdC1wYWdpbmF0b3JcclxuICAgICAgICAgICAgKm5nSWY9XCJwYWdpbmF0aW9uLmRhdGEubGVuZ3RoXCJcclxuICAgICAgICAgICAgW2xlbmd0aF09XCJwYWdpbmF0aW9uLnRvdGFsXCJcclxuICAgICAgICAgICAgW3BhZ2VTaXplXT1cInBhZ2luYXRpb24ucGVyUGFnZVwiXHJcbiAgICAgICAgICAgIFtwYWdlU2l6ZU9wdGlvbnNdPVwiWzIwLCA1MCwgNzUsIDEwMF1cIlxyXG4gICAgICAgICAgICBbcGFnZUluZGV4XT1cInBhZ2luYXRpb24uY3VycmVudFBhZ2UgLSAxXCJcclxuICAgICAgICAgICAgW3Nob3dGaXJzdExhc3RCdXR0b25zXT1cInRydWVcIlxyXG4gICAgICAgICAgICAocGFnZSk9XCJwYWdlQ2hhbmdlKCRldmVudClcIlxyXG4gICAgICAgICAgPjwvbWF0LXBhZ2luYXRvcj5cclxuICAgICAgICA8L2Rpdj5cclxuICAgICAgPC9kaXY+XHJcbiAgICA8L2Rpdj5cclxuICA8L21hdC1jYXJkLWNvbnRlbnQ+XHJcbjwvbWF0LWNhcmQ+XHJcbiJdfQ==
@@ -109,9 +109,9 @@ export class ItemSearchRepository {
109
109
  this._store.update(setProp('lastQueries', queries));
110
110
  }
111
111
  }
112
- ItemSearchRepository.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i1.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
113
- ItemSearchRepository.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' });
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchRepository, decorators: [{
112
+ ItemSearchRepository.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i1.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
113
+ ItemSearchRepository.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchRepository, decorators: [{
115
115
  type: Injectable,
116
116
  args: [{ providedIn: 'root' }]
117
117
  }], ctorParameters: function () { return [{ type: i1.ItemService }]; } });
@@ -162,9 +162,9 @@ class ItemQueryComponent {
162
162
  this._clipboard.copy(text);
163
163
  }
164
164
  }
165
- ItemQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component });
166
- ItemQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: { lastQueries: "lastQueries", disabled: "disabled" }, outputs: { querySubmit: "querySubmit" }, viewQueries: [{ propertyName: "queryElement", first: true, predicate: ["queryctl"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-content>\r\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\r\n <div>\r\n <!-- query -->\r\n <mat-form-field appearance=\"fill\" class=\"full-width\">\r\n <mat-label>query</mat-label>\r\n <textarea\r\n #queryctl\r\n matInput\r\n rows=\"3\"\r\n formControlName=\"query\"\r\n spellcheck=\"false\"\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"2\"\r\n cdkAutosizeMaxRows=\"4\"\r\n (keydown.enter)=\"submitQuery(); (false)\"\r\n ></textarea>\r\n <mat-error\r\n *ngIf=\"query.hasError('required') && (query.dirty || query.touched)\"\r\n >enter a query</mat-error\r\n >\r\n </mat-form-field>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Clear query\"\r\n (click)=\"query.reset()\"\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-button\r\n matTooltip=\"Search items\"\r\n [disabled]=\"disabled || form.invalid\"\r\n >\r\n <mat-icon>search</mat-icon>\r\n search\r\n </button>\r\n </div>\r\n <br />\r\n <!-- history -->\r\n <div *ngIf=\"lastQueries?.length\">\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>history</mat-label>\r\n <mat-select [formControl]=\"history\">\r\n <mat-option *ngFor=\"let q of lastQueries\" [value]=\"q\">\r\n {{ q }}\r\n </mat-option>\r\n </mat-select>\r\n <button\r\n matSuffix\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Copy to query\"\r\n [disabled]=\"!history.value\"\r\n (click)=\"setQuery(history.value)\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n <br />\r\n\r\n <!-- parts/frr list -->\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Pins Reference</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div *ngIf=\"partDefs?.length\">\r\n <mat-form-field>\r\n <mat-label>part/fr.</mat-label>\r\n <mat-select [formControl]=\"partDef\">\r\n <mat-option\r\n *ngFor=\"let def of partDefs\"\r\n [value]=\"def.typeId\"\r\n [matTooltip]=\"def.description\"\r\n >\r\n {{ def.name }} ({{ def.typeId?.startsWith(\"fr.\") ? \"F\" : \"P\" }})\r\n </mat-option>\r\n </mat-select>\r\n &nbsp;\r\n <mat-spinner\r\n [diameter]=\"16\"\r\n [strokeWidth]=\"2\"\r\n *ngIf=\"loadingPinDefs\"\r\n ></mat-spinner>\r\n </mat-form-field>\r\n <!-- selected part's pins -->\r\n <table class=\"pins\" *ngIf=\"pinDefs?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>name</th>\r\n <th>type</th>\r\n <th>tip</th>\r\n <th>attrs</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pd of pinDefs\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n matTooltip=\"Copy name\"\r\n (click)=\"copyToClipboard(pd.name)\"\r\n >\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ pd.name }}</td>\r\n <td>{{ pinTypeIdToString(pd.type) }}</td>\r\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\r\n <td>{{ pd.attributes }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </mat-expansion-panel>\r\n\r\n <!-- help -->\r\n <br />\r\n <mat-expansion-panel [expanded]=\"false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Quick Help</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"query-help\">\r\n <p>\r\n Pairs are between <code>[]</code>. Each pair has field name +\r\n operator + field value. Connect multiple pairs with\r\n <code>AND</code> and <code>OR</code>, and group them using brackets.\r\n Example:\r\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\r\n </p>\r\n <h4>Fields</h4>\r\n <ul>\r\n <li><code>t</code>, <code>title</code>: item's title.</li>\r\n <li>\r\n <code>dsc</code>, <code>description</code>: item's description.\r\n </li>\r\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\r\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\r\n <li><code>sortKey</code>: item's sort key.</li>\r\n <li><code>flags</code>: item's flags.</li>\r\n <li>\r\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\r\n part type ID.\r\n </li>\r\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\r\n <li><code>n</code>, <code>name</code>: pin's name.</li>\r\n <li><code>v</code>, <code>value</code>: pin's value.</li>\r\n </ul>\r\n <h4>Operators</h4>\r\n <ul>\r\n <li><code>=</code>: equal to.</li>\r\n <li><code>&lt;&gt;</code>: not equal to.</li>\r\n <li><code>*=</code>: contains.</li>\r\n <li><code>^=</code>: starts with.</li>\r\n <li><code>$=</code>: ends with.</li>\r\n <li>\r\n <code>?=</code>: wildcards: <code>?</code>=any single character,\r\n <code>*</code>=0-N characters.\r\n </li>\r\n <li><code>~=</code>: regular expression.</li>\r\n <li>\r\n <code>%=</code>: fuzzy matching. The value is followed by\r\n <code>:</code> and the minimum similarity treshold.\r\n </li>\r\n <li><code>==</code>: equal (numeric).</li>\r\n <li><code>!=</code>: not equal (numeric).</li>\r\n <li><code>&lt;</code>: less-than (numeric).</li>\r\n <li><code>&gt;</code>: greater-than (numeric).</li>\r\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\r\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\r\n <li>\r\n <code>:</code> (flags): any the specified flags (comma-separated)\r\n must be present.\r\n </li>\r\n <li>\r\n <code>&amp;:</code> (flags): all the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n <li>\r\n <code>!:</code> (flags): none of the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n </ul>\r\n <p>Flags can be specified either with name or value.</p>\r\n <p>\r\n Value escapes: <code>\\[</code>=<code>[</code>,\r\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\r\n character code.\r\n </p>\r\n </div>\r\n </mat-expansion-panel>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [".query-help{min-width:200px;max-height:400px;overflow-y:scroll}.query-help h4{font-weight:700;border-bottom:1px solid silver}.query-help code{color:#d2691e}.full-width{width:100%}table.pins tbody tr:nth-child(odd){background-color:#fafafa}table.pins th{text-align:left;font-weight:400;color:silver}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.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: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.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: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i8.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i8.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i8.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i9$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i9$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i9$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i11.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: "directive", type: i12.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i13.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i14.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemQueryComponent, decorators: [{
165
+ ItemQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component });
166
+ ItemQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: { lastQueries: "lastQueries", disabled: "disabled" }, outputs: { querySubmit: "querySubmit" }, viewQueries: [{ propertyName: "queryElement", first: true, predicate: ["queryctl"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-content>\r\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\r\n <div>\r\n <!-- query -->\r\n <mat-form-field appearance=\"fill\" class=\"full-width\">\r\n <mat-label>query</mat-label>\r\n <textarea\r\n #queryctl\r\n matInput\r\n rows=\"3\"\r\n formControlName=\"query\"\r\n spellcheck=\"false\"\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"2\"\r\n cdkAutosizeMaxRows=\"4\"\r\n (keydown.enter)=\"submitQuery(); (false)\"\r\n ></textarea>\r\n <mat-error\r\n *ngIf=\"query.hasError('required') && (query.dirty || query.touched)\"\r\n >enter a query</mat-error\r\n >\r\n </mat-form-field>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Clear query\"\r\n (click)=\"query.reset()\"\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-button\r\n matTooltip=\"Search items\"\r\n [disabled]=\"disabled || form.invalid\"\r\n >\r\n <mat-icon>search</mat-icon>\r\n search\r\n </button>\r\n </div>\r\n <br />\r\n <!-- history -->\r\n <div *ngIf=\"lastQueries?.length\">\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>history</mat-label>\r\n <mat-select [formControl]=\"history\">\r\n <mat-option *ngFor=\"let q of lastQueries\" [value]=\"q\">\r\n {{ q }}\r\n </mat-option>\r\n </mat-select>\r\n <button\r\n matSuffix\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Copy to query\"\r\n [disabled]=\"!history.value\"\r\n (click)=\"setQuery(history.value)\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n <br />\r\n\r\n <!-- parts/frr list -->\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Pins Reference</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div *ngIf=\"partDefs?.length\">\r\n <mat-form-field>\r\n <mat-label>part/fr.</mat-label>\r\n <mat-select [formControl]=\"partDef\">\r\n <mat-option\r\n *ngFor=\"let def of partDefs\"\r\n [value]=\"def.typeId\"\r\n [matTooltip]=\"def.description\"\r\n >\r\n {{ def.name }} ({{ def.typeId?.startsWith(\"fr.\") ? \"F\" : \"P\" }})\r\n </mat-option>\r\n </mat-select>\r\n &nbsp;\r\n <mat-spinner\r\n [diameter]=\"16\"\r\n [strokeWidth]=\"2\"\r\n *ngIf=\"loadingPinDefs\"\r\n ></mat-spinner>\r\n </mat-form-field>\r\n <!-- selected part's pins -->\r\n <table class=\"pins\" *ngIf=\"pinDefs?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>name</th>\r\n <th>type</th>\r\n <th>tip</th>\r\n <th>attrs</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pd of pinDefs\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n matTooltip=\"Copy name\"\r\n (click)=\"copyToClipboard(pd.name)\"\r\n >\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ pd.name }}</td>\r\n <td>{{ pinTypeIdToString(pd.type) }}</td>\r\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\r\n <td>{{ pd.attributes }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </mat-expansion-panel>\r\n\r\n <!-- help -->\r\n <br />\r\n <mat-expansion-panel [expanded]=\"false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Quick Help</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"query-help\">\r\n <p>\r\n Pairs are between <code>[]</code>. Each pair has field name +\r\n operator + field value. Connect multiple pairs with\r\n <code>AND</code> and <code>OR</code>, and group them using brackets.\r\n Example:\r\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\r\n </p>\r\n <h4>Fields</h4>\r\n <ul>\r\n <li><code>t</code>, <code>title</code>: item's title.</li>\r\n <li>\r\n <code>dsc</code>, <code>description</code>: item's description.\r\n </li>\r\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\r\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\r\n <li><code>sortKey</code>: item's sort key.</li>\r\n <li><code>flags</code>: item's flags.</li>\r\n <li>\r\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\r\n part type ID.\r\n </li>\r\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\r\n <li><code>n</code>, <code>name</code>: pin's name.</li>\r\n <li><code>v</code>, <code>value</code>: pin's value.</li>\r\n </ul>\r\n <h4>Operators</h4>\r\n <ul>\r\n <li><code>=</code>: equal to.</li>\r\n <li><code>&lt;&gt;</code>: not equal to.</li>\r\n <li><code>*=</code>: contains.</li>\r\n <li><code>^=</code>: starts with.</li>\r\n <li><code>$=</code>: ends with.</li>\r\n <li>\r\n <code>?=</code>: wildcards: <code>?</code>=any single character,\r\n <code>*</code>=0-N characters.\r\n </li>\r\n <li><code>~=</code>: regular expression.</li>\r\n <li>\r\n <code>%=</code>: fuzzy matching. The value is followed by\r\n <code>:</code> and the minimum similarity treshold.\r\n </li>\r\n <li><code>==</code>: equal (numeric).</li>\r\n <li><code>!=</code>: not equal (numeric).</li>\r\n <li><code>&lt;</code>: less-than (numeric).</li>\r\n <li><code>&gt;</code>: greater-than (numeric).</li>\r\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\r\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\r\n <li>\r\n <code>:</code> (flags): any the specified flags (comma-separated)\r\n must be present.\r\n </li>\r\n <li>\r\n <code>&amp;:</code> (flags): all the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n <li>\r\n <code>!:</code> (flags): none of the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n </ul>\r\n <p>Flags can be specified either with name or value.</p>\r\n <p>\r\n Value escapes: <code>\\[</code>=<code>[</code>,\r\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\r\n character code.\r\n </p>\r\n </div>\r\n </mat-expansion-panel>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [".query-help{min-width:200px;max-height:400px;overflow-y:scroll}.query-help h4{font-weight:700;border-bottom:1px solid silver}.query-help code{color:#d2691e}.full-width{width:100%}table.pins tbody tr:nth-child(odd){background-color:#fafafa}table.pins th{text-align:left;font-weight:400;color:silver}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.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: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i6.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: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i8.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i8.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i8.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i9$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i9$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i9$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i9$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i11.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: "directive", type: i12.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i13.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i14.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] });
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemQueryComponent, decorators: [{
168
168
  type: Component,
169
169
  args: [{ selector: 'cadmus-item-query', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-content>\r\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\r\n <div>\r\n <!-- query -->\r\n <mat-form-field appearance=\"fill\" class=\"full-width\">\r\n <mat-label>query</mat-label>\r\n <textarea\r\n #queryctl\r\n matInput\r\n rows=\"3\"\r\n formControlName=\"query\"\r\n spellcheck=\"false\"\r\n cdkTextareaAutosize\r\n cdkAutosizeMinRows=\"2\"\r\n cdkAutosizeMaxRows=\"4\"\r\n (keydown.enter)=\"submitQuery(); (false)\"\r\n ></textarea>\r\n <mat-error\r\n *ngIf=\"query.hasError('required') && (query.dirty || query.touched)\"\r\n >enter a query</mat-error\r\n >\r\n </mat-form-field>\r\n <button\r\n type=\"button\"\r\n color=\"warn\"\r\n mat-icon-button\r\n matTooltip=\"Clear query\"\r\n (click)=\"query.reset()\"\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-button\r\n matTooltip=\"Search items\"\r\n [disabled]=\"disabled || form.invalid\"\r\n >\r\n <mat-icon>search</mat-icon>\r\n search\r\n </button>\r\n </div>\r\n <br />\r\n <!-- history -->\r\n <div *ngIf=\"lastQueries?.length\">\r\n <mat-form-field class=\"full-width\">\r\n <mat-label>history</mat-label>\r\n <mat-select [formControl]=\"history\">\r\n <mat-option *ngFor=\"let q of lastQueries\" [value]=\"q\">\r\n {{ q }}\r\n </mat-option>\r\n </mat-select>\r\n <button\r\n matSuffix\r\n type=\"button\"\r\n mat-icon-button\r\n matTooltip=\"Copy to query\"\r\n [disabled]=\"!history.value\"\r\n (click)=\"setQuery(history.value)\"\r\n >\r\n <mat-icon>check_circle</mat-icon>\r\n </button>\r\n </mat-form-field>\r\n </div>\r\n <br />\r\n\r\n <!-- parts/frr list -->\r\n <mat-expansion-panel>\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Pins Reference</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div *ngIf=\"partDefs?.length\">\r\n <mat-form-field>\r\n <mat-label>part/fr.</mat-label>\r\n <mat-select [formControl]=\"partDef\">\r\n <mat-option\r\n *ngFor=\"let def of partDefs\"\r\n [value]=\"def.typeId\"\r\n [matTooltip]=\"def.description\"\r\n >\r\n {{ def.name }} ({{ def.typeId?.startsWith(\"fr.\") ? \"F\" : \"P\" }})\r\n </mat-option>\r\n </mat-select>\r\n &nbsp;\r\n <mat-spinner\r\n [diameter]=\"16\"\r\n [strokeWidth]=\"2\"\r\n *ngIf=\"loadingPinDefs\"\r\n ></mat-spinner>\r\n </mat-form-field>\r\n <!-- selected part's pins -->\r\n <table class=\"pins\" *ngIf=\"pinDefs?.length\">\r\n <thead>\r\n <tr>\r\n <th></th>\r\n <th>name</th>\r\n <th>type</th>\r\n <th>tip</th>\r\n <th>attrs</th>\r\n </tr>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let pd of pinDefs\">\r\n <td>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n matTooltip=\"Copy name\"\r\n (click)=\"copyToClipboard(pd.name)\"\r\n >\r\n <mat-icon>content_copy</mat-icon>\r\n </button>\r\n </td>\r\n <td>{{ pd.name }}</td>\r\n <td>{{ pinTypeIdToString(pd.type) }}</td>\r\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\r\n <td>{{ pd.attributes }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </mat-expansion-panel>\r\n\r\n <!-- help -->\r\n <br />\r\n <mat-expansion-panel [expanded]=\"false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Quick Help</mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div class=\"query-help\">\r\n <p>\r\n Pairs are between <code>[]</code>. Each pair has field name +\r\n operator + field value. Connect multiple pairs with\r\n <code>AND</code> and <code>OR</code>, and group them using brackets.\r\n Example:\r\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\r\n </p>\r\n <h4>Fields</h4>\r\n <ul>\r\n <li><code>t</code>, <code>title</code>: item's title.</li>\r\n <li>\r\n <code>dsc</code>, <code>description</code>: item's description.\r\n </li>\r\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\r\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\r\n <li><code>sortKey</code>: item's sort key.</li>\r\n <li><code>flags</code>: item's flags.</li>\r\n <li>\r\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\r\n part type ID.\r\n </li>\r\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\r\n <li><code>n</code>, <code>name</code>: pin's name.</li>\r\n <li><code>v</code>, <code>value</code>: pin's value.</li>\r\n </ul>\r\n <h4>Operators</h4>\r\n <ul>\r\n <li><code>=</code>: equal to.</li>\r\n <li><code>&lt;&gt;</code>: not equal to.</li>\r\n <li><code>*=</code>: contains.</li>\r\n <li><code>^=</code>: starts with.</li>\r\n <li><code>$=</code>: ends with.</li>\r\n <li>\r\n <code>?=</code>: wildcards: <code>?</code>=any single character,\r\n <code>*</code>=0-N characters.\r\n </li>\r\n <li><code>~=</code>: regular expression.</li>\r\n <li>\r\n <code>%=</code>: fuzzy matching. The value is followed by\r\n <code>:</code> and the minimum similarity treshold.\r\n </li>\r\n <li><code>==</code>: equal (numeric).</li>\r\n <li><code>!=</code>: not equal (numeric).</li>\r\n <li><code>&lt;</code>: less-than (numeric).</li>\r\n <li><code>&gt;</code>: greater-than (numeric).</li>\r\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\r\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\r\n <li>\r\n <code>:</code> (flags): any the specified flags (comma-separated)\r\n must be present.\r\n </li>\r\n <li>\r\n <code>&amp;:</code> (flags): all the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n <li>\r\n <code>!:</code> (flags): none of the specified flags\r\n (comma-separated) must be present.\r\n </li>\r\n </ul>\r\n <p>Flags can be specified either with name or value.</p>\r\n <p>\r\n Value escapes: <code>\\[</code>=<code>[</code>,\r\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\r\n character code.\r\n </p>\r\n </div>\r\n </mat-expansion-panel>\r\n </form>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [".query-help{min-width:200px;max-height:400px;overflow-y:scroll}.query-help h4{font-weight:700;border-bottom:1px solid silver}.query-help code{color:#d2691e}.full-width{width:100%}table.pins tbody tr:nth-child(odd){background-color:#fafafa}table.pins th{text-align:left;font-weight:400;color:silver}\n"] }]
170
170
  }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.Clipboard }, { type: i3.AppRepository }, { type: i4.ItemService }]; }, propDecorators: { queryElement: [{
@@ -278,29 +278,27 @@ class ItemSearchRepository {
278
278
  this._store.update(setProp('lastQueries', queries));
279
279
  }
280
280
  }
281
- ItemSearchRepository.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
282
- ItemSearchRepository.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' });
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchRepository, decorators: [{
281
+ ItemSearchRepository.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
282
+ ItemSearchRepository.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' });
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchRepository, decorators: [{
284
284
  type: Injectable,
285
285
  args: [{ providedIn: 'root' }]
286
286
  }], ctorParameters: function () { return [{ type: i4.ItemService }]; } });
287
287
 
288
288
  class ItemSearchComponent {
289
- constructor(_repository, _dialogService, _router, _authService, _userLevelService, _appRepository) {
289
+ constructor(_repository, _dialogService, _router, _authService, _userLevelService, appRepository) {
290
290
  this._repository = _repository;
291
291
  this._dialogService = _dialogService;
292
292
  this._router = _router;
293
293
  this._authService = _authService;
294
294
  this._userLevelService = _userLevelService;
295
- this._appRepository = _appRepository;
296
295
  this.userLevel = 0;
297
- this.flagDefinitions$ = this._appRepository.flags$;
298
- this.facetDefinitions$ = this._appRepository.facets$;
299
296
  this.pagination$ = this._repository.pagination$;
300
297
  this.query$ = this._repository.query$;
301
298
  this.lastQueries$ = this._repository.lastQueries$;
302
299
  this.error$ = this._repository.error$;
303
300
  this.loading$ = this._repository.loading$;
301
+ this.app = appRepository.getValue();
304
302
  }
305
303
  ngOnInit() {
306
304
  this._authService.currentUser$.subscribe((user) => {
@@ -340,11 +338,11 @@ class ItemSearchComponent {
340
338
  this._repository.clearCache();
341
339
  }
342
340
  }
343
- ItemSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchComponent, deps: [{ token: ItemSearchRepository }, { token: i2$1.DialogService }, { token: i3$1.Router }, { token: i4$1.AuthJwtService }, { token: i4.UserLevelService }, { token: i3.AppRepository }], target: i0.ɵɵFactoryTarget.Component });
344
- ItemSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: ItemSearchComponent, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td>\r\n <cadmus-facet-badge\r\n [facetId]=\"item.facetId\"\r\n [facetDefinitions]=\"$any(facetDefinitions$ | async)\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td>\r\n <cadmus-flags-badge\r\n [flags]=\"item.flags\"\r\n [flagDefinitions]=\"$any(flagDefinitions$ | async)\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11$1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i12$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14$1.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["facetId", "facetDefinitions"] }, { kind: "component", type: i14$1.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["flags", "flagDefinitions"] }, { kind: "component", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: ["lastQueries", "disabled"], outputs: ["querySubmit"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.DatePipe, name: "date" }] });
345
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ItemSearchComponent, decorators: [{
341
+ ItemSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchComponent, deps: [{ token: ItemSearchRepository }, { token: i2$1.DialogService }, { token: i3$1.Router }, { token: i4$1.AuthJwtService }, { token: i4.UserLevelService }, { token: i3.AppRepository }], target: i0.ɵɵFactoryTarget.Component });
342
+ ItemSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.2", type: ItemSearchComponent, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\" style=\"width: 100%\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-facet-badge\r\n [data]=\"{ definitions: app.facets, facetId: item.facetId }\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-flags-badge\r\n [data]=\"{ definitions: app.flags, flags: item.flags }\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}td.fit-width{width:1px;white-space:nowrap}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11$1.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i12$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14$1.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["data"] }, { kind: "component", type: i14$1.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["data"] }, { kind: "component", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: ["lastQueries", "disabled"], outputs: ["querySubmit"] }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.DatePipe, name: "date" }] });
343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: ItemSearchComponent, decorators: [{
346
344
  type: Component,
347
- args: [{ selector: 'cadmus-item-search', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td>\r\n <cadmus-facet-badge\r\n [facetId]=\"item.facetId\"\r\n [facetDefinitions]=\"$any(facetDefinitions$ | async)\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td>\r\n <cadmus-flags-badge\r\n [flags]=\"item.flags\"\r\n [flagDefinitions]=\"$any(flagDefinitions$ | async)\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"] }]
345
+ args: [{ selector: 'cadmus-item-search', template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <mat-card-title>Item Search</mat-card-title>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <div id=\"container\">\r\n <!-- query -->\r\n <div style=\"grid-area: query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"(lastQueries$ | async) || []\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div style=\"grid-area: list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"loading$ | async\">\r\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\">{{ error }}</div>\r\n <table *ngIf=\"pagination.data.length\" style=\"width: 100%\">\r\n <thead>\r\n <th></th>\r\n <th\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n ></th>\r\n <th>facet</th>\r\n <th>flags</th>\r\n <th>title</th>\r\n <th>description</th>\r\n <th class=\"noif-lt-md\">group</th>\r\n <th class=\"noif-lt-md\">user</th>\r\n <th class=\"noif-lt-md\">last saved</th>\r\n <th class=\"noif-lt-md\">creator</th>\r\n </thead>\r\n <tbody>\r\n <tr *ngFor=\"let item of pagination.data\">\r\n <td class=\"command\">\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"editItem(item)\"\r\n >\r\n <mat-icon>mode_edit</mat-icon>\r\n </button>\r\n </td>\r\n <td\r\n class=\"command\"\r\n *ngIf=\"\r\n user?.roles?.includes('admin') ||\r\n user?.roles?.includes('editor')\r\n \"\r\n >\r\n <button\r\n *ngIf=\"userLevel > 2\"\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteItem(item)\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-facet-badge\r\n [data]=\"{ definitions: app.facets, facetId: item.facetId }\"\r\n ></cadmus-facet-badge>\r\n </td>\r\n <td class=\"fit-width\">\r\n <cadmus-flags-badge\r\n [data]=\"{ definitions: app.flags, flags: item.flags }\"\r\n ></cadmus-flags-badge>\r\n </td>\r\n <td>{{ item.title }}</td>\r\n <td>{{ item.description }}</td>\r\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\r\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\r\n <td class=\"noif-lt-md\">\r\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <div\r\n style=\"grid-area: paginator; justify-content: end\"\r\n class=\"form-row\"\r\n >\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n color=\"warn\"\r\n matTooltip=\"Clear items cache\"\r\n (click)=\"clearCache()\"\r\n >\r\n <mat-icon>autorenew</mat-icon>\r\n </button>\r\n\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pagination.perPage\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChange($event)\"\r\n ></mat-paginator>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: ["tr:nth-child(odd){background-color:#eaeaea}th{text-align:left;font-weight:400}td.command{width:24px}.form-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.form-row *{flex:0 0 auto}td.fit-width{width:1px;white-space:nowrap}div#container{display:grid;grid-template-rows:1fr auto;grid-template-columns:1fr 2fr;grid-template-areas:\"query list\" \". paginator\";gap:8px}@media only screen and (max-width: 959px){div#container{grid-template-columns:1fr;grid-template-areas:\"list\" \"paginator\"}.noif-lt-md{display:none}}\n"] }]
348
346
  }], ctorParameters: function () { return [{ type: ItemSearchRepository }, { type: i2$1.DialogService }, { type: i3$1.Router }, { type: i4$1.AuthJwtService }, { type: i4.UserLevelService }, { type: i3.AppRepository }]; } });
349
347
 
350
348
  // https://github.com/ng-packagr/ng-packagr/issues/778
@@ -353,8 +351,8 @@ const RouterModuleForChild = RouterModule.forChild([
353
351
  ]);
354
352
  class CadmusItemSearchModule {
355
353
  }
356
- CadmusItemSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
357
- CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
354
+ CadmusItemSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
355
+ CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
358
356
  ReactiveFormsModule,
359
357
  FormsModule, i3$1.RouterModule,
360
358
  // material
@@ -376,7 +374,7 @@ CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0",
376
374
  CadmusStateModule,
377
375
  NgToolsModule,
378
376
  NgMatToolsModule], exports: [ItemQueryComponent, ItemSearchComponent] });
379
- CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
377
+ CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
380
378
  ReactiveFormsModule,
381
379
  FormsModule,
382
380
  RouterModuleForChild,
@@ -399,7 +397,7 @@ CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
399
397
  CadmusStateModule,
400
398
  NgToolsModule,
401
399
  NgMatToolsModule] });
402
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.2", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
403
401
  type: NgModule,
404
402
  args: [{
405
403
  imports: [