@myrmidon/cadmus-item-search 1.0.1 → 1.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: "13.3.0", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
- CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
32
+ CadmusItemSearchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
33
+ CadmusItemSearchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.5", 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: "12.0.0",
52
52
  CadmusStateModule,
53
53
  NgToolsModule,
54
54
  NgMatToolsModule], exports: [ItemQueryComponent, ItemSearchComponent] });
55
- CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusItemSearchModule, imports: [[
55
+ CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: CadmusItemSearchModule, imports: [[
56
56
  CommonModule,
57
57
  ReactiveFormsModule,
58
58
  FormsModule,
@@ -77,7 +77,7 @@ CadmusItemSearchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
77
77
  NgToolsModule,
78
78
  NgMatToolsModule,
79
79
  ]] });
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
81
81
  type: NgModule,
82
82
  args: [{
83
83
  imports: [
@@ -131,9 +131,9 @@ export class ItemQueryComponent {
131
131
  this._clipboard.copy(text);
132
132
  }
133
133
  }
134
- ItemQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppQuery }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component });
135
- ItemQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", 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>\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 <textarea\r\n #queryctl\r\n matInput\r\n placeholder=\"query\"\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-select formControlName=\"history\" placeholder=\"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-select [formControl]=\"partDef\" placeholder=\"part or fr.\">\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"], components: [{ type: i5.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i6.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i10.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i11.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i11.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: i12.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i5.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.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"] }, { 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]" }, { type: i14.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatError, selector: "mat-error", inputs: ["id"] }, { type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatSuffix, selector: "[matSuffix]" }, { type: i11.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemQueryComponent, decorators: [{
134
+ ItemQueryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppQuery }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component });
135
+ ItemQueryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.5", 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>\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 <textarea\r\n #queryctl\r\n matInput\r\n placeholder=\"query\"\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-select formControlName=\"history\" placeholder=\"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-select [formControl]=\"partDef\" placeholder=\"part or fr.\">\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"], components: [{ type: i5.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i6.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i8.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex"], exportAs: ["matSelect"] }, { type: i10.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { type: i11.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i11.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: i12.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }], directives: [{ type: i5.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.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"] }, { 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]" }, { type: i14.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i6.MatError, selector: "mat-error", inputs: ["id"] }, { type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i15.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i6.MatSuffix, selector: "[matSuffix]" }, { type: i11.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
136
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemQueryComponent, decorators: [{
137
137
  type: Component,
138
138
  args: [{ selector: 'cadmus-item-query', template: "<mat-card>\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 <textarea\r\n #queryctl\r\n matInput\r\n placeholder=\"query\"\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-select formControlName=\"history\" placeholder=\"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-select [formControl]=\"partDef\" placeholder=\"part or fr.\">\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"] }]
139
139
  }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.Clipboard }, { type: i3.AppQuery }, { type: i4.ItemService }]; }, propDecorators: { queryElement: [{
@@ -12,13 +12,13 @@ import * as i6 from "@myrmidon/auth-jwt-login";
12
12
  import * as i7 from "@myrmidon/cadmus-state";
13
13
  import * as i8 from "@angular/forms";
14
14
  import * as i9 from "@angular/material/card";
15
- import * as i10 from "../item-query/item-query.component";
16
- import * as i11 from "@angular/material/progress-spinner";
15
+ import * as i10 from "@angular/material/progress-spinner";
16
+ import * as i11 from "../item-query/item-query.component";
17
17
  import * as i12 from "@angular/material/button";
18
18
  import * as i13 from "@angular/material/icon";
19
19
  import * as i14 from "@myrmidon/cadmus-ui";
20
20
  import * as i15 from "@angular/material/paginator";
21
- import * as i16 from "@angular/flex-layout/flex";
21
+ import * as i16 from "@angular/flex-layout/grid";
22
22
  import * as i17 from "@angular/common";
23
23
  import * as i18 from "@angular/flex-layout/extended";
24
24
  import * as i19 from "@angular/material/tooltip";
@@ -133,13 +133,13 @@ export class ItemSearchComponent {
133
133
  });
134
134
  }
135
135
  }
136
- ItemSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemSearchComponent, deps: [{ token: ITEMS_SEARCH_PAGINATOR }, { token: i1.ItemService }, { token: i2.ItemsSearchService }, { token: i3.ItemsSearchQuery }, { token: i4.DialogService }, { token: i5.Router }, { token: i6.AuthJwtService }, { token: i1.UserLevelService }, { token: i7.AppQuery }, { token: i8.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
137
- ItemSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.0", type: ItemSearchComponent, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card>\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 fxLayout=\"row\">\r\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"8px\">\r\n <!-- query -->\r\n <div fxFlex=\"0 0 30%\">\r\n <cadmus-item-query\r\n [lastQueries]=\"lastQueries\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n <!-- list -->\r\n <div\r\n *ngIf=\"paginator.isLoading$ | async\"\r\n fxFlex=\"1 1 100%\"\r\n fxLayoutAlign=\"center center\"\r\n >\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n <div\r\n fxFlex\r\n fxFill\r\n *ngIf=\"pagination$ | async as pagination\"\r\n fxLayout=\"column\"\r\n >\r\n <div fxFlex *ngIf=\"error\">{{ error }}</div>\r\n <table fxFlex *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 fxHide.lt-md>group</th>\r\n <th fxHide.lt-md>user</th>\r\n <th fxHide.lt-md>last saved</th>\r\n <th fxHide.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 matTooltip=\"Edit {{ item.title }}\"\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 matTooltip=\"Delete {{ item.title }}\"\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 fxHide.lt-md>{{ item.groupId }}</td>\r\n <td fxHide.lt-md>{{ item.userId }}</td>\r\n <td fxHide.lt-md>\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td fxHide.lt-md>{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n fxFlex=\"0 0 auto\"\r\n fxFlexAlign=\"start\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pageSize?.value\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChanged($event)\"\r\n ></mat-paginator>\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}td.command{width:24px}\n"], components: [{ type: i9.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i9.MatCardHeader, selector: "mat-card-header" }, { type: i10.ItemQueryComponent, selector: "cadmus-item-query", inputs: ["lastQueries", "disabled"], outputs: ["querySubmit"] }, { type: i11.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { type: i12.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i13.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i14.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["facetId", "facetDefinitions"] }, { type: i14.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["flags", "flagDefinitions"] }, { type: i15.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], directives: [{ type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i9.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i16.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { type: i16.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { type: i16.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { type: i17.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i16.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { type: i16.FlexFillDirective, selector: "[fxFill], [fxFlexFill]" }, { type: i18.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i17.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i19.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i16.DefaultFlexAlignDirective, selector: " [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md], [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md], [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm], [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]", inputs: ["fxFlexAlign", "fxFlexAlign.xs", "fxFlexAlign.sm", "fxFlexAlign.md", "fxFlexAlign.lg", "fxFlexAlign.xl", "fxFlexAlign.lt-sm", "fxFlexAlign.lt-md", "fxFlexAlign.lt-lg", "fxFlexAlign.lt-xl", "fxFlexAlign.gt-xs", "fxFlexAlign.gt-sm", "fxFlexAlign.gt-md", "fxFlexAlign.gt-lg"] }], pipes: { "async": i17.AsyncPipe, "date": i17.DatePipe } });
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemSearchComponent, decorators: [{
136
+ ItemSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemSearchComponent, deps: [{ token: ITEMS_SEARCH_PAGINATOR }, { token: i1.ItemService }, { token: i2.ItemsSearchService }, { token: i3.ItemsSearchQuery }, { token: i4.DialogService }, { token: i5.Router }, { token: i6.AuthJwtService }, { token: i1.UserLevelService }, { token: i7.AppQuery }, { token: i8.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
137
+ ItemSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.5", type: ItemSearchComponent, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card>\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 gdAreas=\"spinner spinner | query list\"\r\n gdAreas.lt-md=\"spinner | query | list\"\r\n gdColumns=\"300px 1fr\"\r\n gdColumns.lt-md=\"1fr\"\r\n gdGap=\"8px\"\r\n >\r\n <!-- spinner -->\r\n <div\r\n *ngIf=\"paginator.isLoading$ | async\"\r\n gdArea=\"spinner\"\r\n gdAlignColumns=\"center\"\r\n gdAlignRows=\"center\"\r\n >\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n\r\n <!-- query -->\r\n <div gdArea=\"query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"lastQueries\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div gdArea=\"list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"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') || 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 fxHide.lt-md>group</th>\r\n <th fxHide.lt-md>user</th>\r\n <th fxHide.lt-md>last saved</th>\r\n <th fxHide.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 matTooltip=\"Edit {{ item.title }}\"\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 matTooltip=\"Delete {{ item.title }}\"\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 fxHide.lt-md>{{ item.groupId }}</td>\r\n <td fxHide.lt-md>{{ item.userId }}</td>\r\n <td fxHide.lt-md>\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td fxHide.lt-md>{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pageSize?.value\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChanged($event)\"\r\n ></mat-paginator>\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}\n"], components: [{ type: i9.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i9.MatCardHeader, selector: "mat-card-header" }, { type: i10.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { type: i11.ItemQueryComponent, selector: "cadmus-item-query", inputs: ["lastQueries", "disabled"], outputs: ["querySubmit"] }, { type: i12.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i13.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i14.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["facetId", "facetDefinitions"] }, { type: i14.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["flags", "flagDefinitions"] }, { type: i15.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], directives: [{ type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i9.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i16.DefaultGridAreasDirective, selector: " [gdAreas], [gdAreas.xs], [gdAreas.sm], [gdAreas.md], [gdAreas.lg], [gdAreas.xl], [gdAreas.lt-sm], [gdAreas.lt-md], [gdAreas.lt-lg], [gdAreas.lt-xl], [gdAreas.gt-xs], [gdAreas.gt-sm], [gdAreas.gt-md], [gdAreas.gt-lg]", inputs: ["gdAreas", "gdAreas.xs", "gdAreas.sm", "gdAreas.md", "gdAreas.lg", "gdAreas.xl", "gdAreas.lt-sm", "gdAreas.lt-md", "gdAreas.lt-lg", "gdAreas.lt-xl", "gdAreas.gt-xs", "gdAreas.gt-sm", "gdAreas.gt-md", "gdAreas.gt-lg"] }, { type: i16.DefaultGridColumnsDirective, selector: " [gdColumns], [gdColumns.xs], [gdColumns.sm], [gdColumns.md], [gdColumns.lg], [gdColumns.xl], [gdColumns.lt-sm], [gdColumns.lt-md], [gdColumns.lt-lg], [gdColumns.lt-xl], [gdColumns.gt-xs], [gdColumns.gt-sm], [gdColumns.gt-md], [gdColumns.gt-lg]", inputs: ["gdColumns", "gdColumns.xs", "gdColumns.sm", "gdColumns.md", "gdColumns.lg", "gdColumns.xl", "gdColumns.lt-sm", "gdColumns.lt-md", "gdColumns.lt-lg", "gdColumns.lt-xl", "gdColumns.gt-xs", "gdColumns.gt-sm", "gdColumns.gt-md", "gdColumns.gt-lg"] }, { type: i16.DefaultGridGapDirective, selector: " [gdGap], [gdGap.xs], [gdGap.sm], [gdGap.md], [gdGap.lg], [gdGap.xl], [gdGap.lt-sm], [gdGap.lt-md], [gdGap.lt-lg], [gdGap.lt-xl], [gdGap.gt-xs], [gdGap.gt-sm], [gdGap.gt-md], [gdGap.gt-lg]", inputs: ["gdGap", "gdGap.xs", "gdGap.sm", "gdGap.md", "gdGap.lg", "gdGap.xl", "gdGap.lt-sm", "gdGap.lt-md", "gdGap.lt-lg", "gdGap.lt-xl", "gdGap.gt-xs", "gdGap.gt-sm", "gdGap.gt-md", "gdGap.gt-lg"] }, { type: i17.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i16.DefaultGridAreaDirective, selector: " [gdArea], [gdArea.xs], [gdArea.sm], [gdArea.md], [gdArea.lg], [gdArea.xl], [gdArea.lt-sm], [gdArea.lt-md], [gdArea.lt-lg], [gdArea.lt-xl], [gdArea.gt-xs], [gdArea.gt-sm], [gdArea.gt-md], [gdArea.gt-lg]", inputs: ["gdArea", "gdArea.xs", "gdArea.sm", "gdArea.md", "gdArea.lg", "gdArea.xl", "gdArea.lt-sm", "gdArea.lt-md", "gdArea.lt-lg", "gdArea.lt-xl", "gdArea.gt-xs", "gdArea.gt-sm", "gdArea.gt-md", "gdArea.gt-lg"] }, { type: i16.DefaultGridAlignColumnsDirective, selector: " [gdAlignColumns], [gdAlignColumns.xs], [gdAlignColumns.sm], [gdAlignColumns.md], [gdAlignColumns.lg], [gdAlignColumns.xl], [gdAlignColumns.lt-sm], [gdAlignColumns.lt-md], [gdAlignColumns.lt-lg], [gdAlignColumns.lt-xl], [gdAlignColumns.gt-xs], [gdAlignColumns.gt-sm], [gdAlignColumns.gt-md], [gdAlignColumns.gt-lg]", inputs: ["gdAlignColumns", "gdAlignColumns.xs", "gdAlignColumns.sm", "gdAlignColumns.md", "gdAlignColumns.lg", "gdAlignColumns.xl", "gdAlignColumns.lt-sm", "gdAlignColumns.lt-md", "gdAlignColumns.lt-lg", "gdAlignColumns.lt-xl", "gdAlignColumns.gt-xs", "gdAlignColumns.gt-sm", "gdAlignColumns.gt-md", "gdAlignColumns.gt-lg"] }, { type: i16.DefaultGridAlignRowsDirective, selector: " [gdAlignRows], [gdAlignRows.xs], [gdAlignRows.sm], [gdAlignRows.md], [gdAlignRows.lg], [gdAlignRows.xl], [gdAlignRows.lt-sm], [gdAlignRows.lt-md], [gdAlignRows.lt-lg], [gdAlignRows.lt-xl], [gdAlignRows.gt-xs], [gdAlignRows.gt-sm], [gdAlignRows.gt-md], [gdAlignRows.gt-lg]", inputs: ["gdAlignRows", "gdAlignRows.xs", "gdAlignRows.sm", "gdAlignRows.md", "gdAlignRows.lg", "gdAlignRows.xl", "gdAlignRows.lt-sm", "gdAlignRows.lt-md", "gdAlignRows.lt-lg", "gdAlignRows.lt-xl", "gdAlignRows.gt-xs", "gdAlignRows.gt-sm", "gdAlignRows.gt-md", "gdAlignRows.gt-lg"] }, { type: i18.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { type: i17.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i19.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], pipes: { "async": i17.AsyncPipe, "date": i17.DatePipe } });
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemSearchComponent, decorators: [{
139
139
  type: Component,
140
- args: [{ selector: 'cadmus-item-search', template: "<mat-card>\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 fxLayout=\"row\">\r\n <div fxLayout=\"row\" fxLayout.xs=\"column\" fxLayoutGap=\"8px\">\r\n <!-- query -->\r\n <div fxFlex=\"0 0 30%\">\r\n <cadmus-item-query\r\n [lastQueries]=\"lastQueries\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n <!-- list -->\r\n <div\r\n *ngIf=\"paginator.isLoading$ | async\"\r\n fxFlex=\"1 1 100%\"\r\n fxLayoutAlign=\"center center\"\r\n >\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n <div\r\n fxFlex\r\n fxFill\r\n *ngIf=\"pagination$ | async as pagination\"\r\n fxLayout=\"column\"\r\n >\r\n <div fxFlex *ngIf=\"error\">{{ error }}</div>\r\n <table fxFlex *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 fxHide.lt-md>group</th>\r\n <th fxHide.lt-md>user</th>\r\n <th fxHide.lt-md>last saved</th>\r\n <th fxHide.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 matTooltip=\"Edit {{ item.title }}\"\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 matTooltip=\"Delete {{ item.title }}\"\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 fxHide.lt-md>{{ item.groupId }}</td>\r\n <td fxHide.lt-md>{{ item.userId }}</td>\r\n <td fxHide.lt-md>\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td fxHide.lt-md>{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n fxFlex=\"0 0 auto\"\r\n fxFlexAlign=\"start\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pageSize?.value\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChanged($event)\"\r\n ></mat-paginator>\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}td.command{width:24px}\n"] }]
140
+ args: [{ selector: 'cadmus-item-search', template: "<mat-card>\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 gdAreas=\"spinner spinner | query list\"\r\n gdAreas.lt-md=\"spinner | query | list\"\r\n gdColumns=\"300px 1fr\"\r\n gdColumns.lt-md=\"1fr\"\r\n gdGap=\"8px\"\r\n >\r\n <!-- spinner -->\r\n <div\r\n *ngIf=\"paginator.isLoading$ | async\"\r\n gdArea=\"spinner\"\r\n gdAlignColumns=\"center\"\r\n gdAlignRows=\"center\"\r\n >\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n\r\n <!-- query -->\r\n <div gdArea=\"query\">\r\n <cadmus-item-query\r\n [lastQueries]=\"lastQueries\"\r\n (querySubmit)=\"submitQuery($event)\"\r\n ></cadmus-item-query>\r\n </div>\r\n\r\n <!-- list -->\r\n <div gdArea=\"list\" *ngIf=\"pagination$ | async as pagination\">\r\n <div *ngIf=\"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') || 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 fxHide.lt-md>group</th>\r\n <th fxHide.lt-md>user</th>\r\n <th fxHide.lt-md>last saved</th>\r\n <th fxHide.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 matTooltip=\"Edit {{ item.title }}\"\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 matTooltip=\"Delete {{ item.title }}\"\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 fxHide.lt-md>{{ item.groupId }}</td>\r\n <td fxHide.lt-md>{{ item.userId }}</td>\r\n <td fxHide.lt-md>\r\n {{ item.timeModified | date: \"yyyy-MM-dd HH:mm:ss\" }}\r\n </td>\r\n <td fxHide.lt-md>{{ item.creatorId }}</td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n\r\n <!-- paginator -->\r\n <mat-paginator\r\n *ngIf=\"pagination.data.length\"\r\n [length]=\"pagination.total\"\r\n [pageSize]=\"pageSize?.value\"\r\n [pageSizeOptions]=\"[20, 50, 75, 100]\"\r\n [pageIndex]=\"pagination.currentPage - 1\"\r\n [showFirstLastButtons]=\"true\"\r\n (page)=\"pageChanged($event)\"\r\n ></mat-paginator>\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}\n"] }]
141
141
  }], ctorParameters: function () { return [{ type: i20.PaginatorPlugin, decorators: [{
142
142
  type: Inject,
143
143
  args: [ITEMS_SEARCH_PAGINATOR]
144
144
  }] }, { type: i1.ItemService }, { type: i2.ItemsSearchService }, { type: i3.ItemsSearchQuery }, { type: i4.DialogService }, { type: i5.Router }, { type: i6.AuthJwtService }, { type: i1.UserLevelService }, { type: i7.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ZSk7XHJcbiAgICAgICAgcmV0dXJuIHRoaXMucGFnaW5hdG9yLmdldFBhZ2UocmVxdWVzdCk7XHJcbiAgICAgIH0pXHJcbiAgICApO1xyXG4gIH1cclxuXHJcbiAgcHJpdmF0ZSBnZXRSZXF1ZXN0KFxyXG4gICAgcXVlcnk6IHN0cmluZyxcclxuICAgIHBhZ2VOdW1iZXI6IG51bWJlcixcclxuICAgIHBhZ2VTaXplOiBudW1iZXJcclxuICApOiAoKSA9PiBPYnNlcnZhYmxlPFBhZ2luYXRpb25SZXNwb25zZTxJdGVtSW5mbz4+IHtcclxuICAgIHJldHVybiAoKSA9PlxyXG4gICAgICB0aGlzLl9pdGVtU2VydmljZS5zZWFyY2hJdGVtcyhxdWVyeSwgcGFnZU51bWJlciwgcGFnZVNpemUpLnBpcGUoXHJcbiAgICAgICAgLy8gYWRhcHQgc2VydmVyIHJlc3VsdHMgdG8gdGhlIHBhZ2luYXRvciBwbHVnaW5cclxuICAgICAgICBtYXAoKHc6IEVycm9yV3JhcHBlcjxEYXRhUGFnZTxJdGVtSW5mbz4+KSA9PiB7XHJcbiAgICAgICAgICBpZiAody5lcnJvcikge1xyXG4gICAgICAgICAgICB0aGlzLmVycm9yID0gdy5lcnJvcjtcclxuICAgICAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgICBjdXJyZW50UGFnZTogMSxcclxuICAgICAgICAgICAgICBwZXJQYWdlOiBwYWdlU2l6ZSxcclxuICAgICAgICAgICAgICBsYXN0UGFnZTogMCxcclxuICAgICAgICAgICAgICBkYXRhOiBbXSxcclxuICAgICAgICAgICAgICB0b3RhbDogMCxcclxuICAgICAgICAgICAgfTtcclxuICAgICAgICAgIH1cclxuICAgICAgICAgIHRoaXMuZXJyb3IgPSB1bmRlZmluZWQ7XHJcbiAgICAgICAgICBjb25zdCBwID0gdy52YWx1ZSE7XHJcbiAgICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBjdXJyZW50UGFnZTogcC5wYWdlT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ZSBmeEZsZXggKm5nSWY9XCJwYWdpbmF0aW9uLmRhdGEubGVuZ3RoXCI+XHJcbiAgICAgICAgICA8dGhlYWQ+XHJcbiAgICAgICAgICAgIDx0aD48L3RoPlxyXG4gICAgICAgICAgICA8dGhcclxuICAgICAgICAgICAgICAqbmdJZj1cIlxyXG4gICAgICAgICAgICAgICAgdXNlcj8ucm9sZXM/LmluY2x1ZGVzKCdhZG1pbicpIHx8XHJcbiAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2VkaXRvcicpXHJcbiAgICAgICAgICAgICAgXCJcclxuICAgICAgICAgICAgPjwvdGg+XHJcbiAgICAgICAgICAgIDx0aD5mYWNldDwvdGg+XHJcbiAgICAgICAgICAgIDx0aD5mbGFnczwvdGg+XHJcbiAgICAgICAgICAgIDx0aD50aXRsZTwvdGg+XHJcbiAgICAgICAgICAgIDx0aD5kZXNjcmlwdGlvbjwvdGg+XHJcbiAgICAgICAgICAgIDx0aCBmeEhpZGUubHQtbWQ+Z3JvdXA8L3RoPlxyXG4gICAgICAgICAgICA8dGggZnhIaWRlLmx0LW1kPnVzZXI8L3RoPlxyXG4gICAgICAgICAgICA8dGggZnhIaWRlLmx0LW1kPmxhc3Qgc2F2ZWQ8L3RoPlxyXG4gICAgICAgICAgICA8dGggZnhIaWRlLmx0LW1kPmNyZWF0b3I8L3RoPlxyXG4gICAgICAgICAgPC90aGVhZD5cclxuICAgICAgICAgIDx0Ym9keT5cclxuICAgICAgICAgICAgPHRyICpuZ0Zvcj1cImxldCBpdGVtIG9mIHBhZ2luYXRpb24uZGF0YVwiPlxyXG4gICAgICAgICAgICAgIDx0ZCBjbGFzcz1cImNvbW1hbmRcIj5cclxuICAgICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiRWRpdCB7eyBpdGVtLnRpdGxlIH19XCJcclxuICAgICAgICAgICAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcclxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImVkaXRJdGVtKGl0ZW0pXCJcclxuICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPm1vZGVfZWRpdDwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZFxyXG4gICAgICAgICAgICAgICAgY2xhc3M9XCJjb21tYW5kXCJcclxuICAgICAgICAgICAgICAgICpuZ0lmPVwiXHJcbiAgICAgICAgICAgICAgICAgIHVzZXI/LnJvbGVzPy5pbmNsdWRlcygnYWRtaW4nKSB8fFxyXG4gICAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2VkaXRvcicpXHJcbiAgICAgICAgICAgICAgICBcIlxyXG4gICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgICAgKm5nSWY9XCJ1c2VyTGV2ZWwgPiAyXCJcclxuICAgICAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiRGVsZXRlIHt7IGl0ZW0udGl0bGUgfX1cIlxyXG4gICAgICAgICAgICAgICAgICBjb2xvcj1cIndhcm5cIlxyXG4gICAgICAgICAgICAgICAgICAoY2xpY2spPVwiZGVsZXRlSXRlbShpdGVtKVwiXHJcbiAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5kZWxldGU8L21hdC1pY29uPlxyXG4gICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGQ+XHJcbiAgICAgICAgICAgICAgICA8Y2FkbXVzLWZhY2V0LWJhZGdlXHJcbiAgICAgICAgICAgICAgICAgIFtmYWNldElkXT1cIml0ZW0uZmFjZXRJZFwiXHJcbiAgICAgICAgICAgICAgICAgIFtmYWNldERlZmluaXRpb25zXT1cIiRhbnkoZmFjZXREZWZpbml0aW9ucyQgfCBhc3luYylcIlxyXG4gICAgICAgICAgICAgICAgPjwvY2FkbXVzLWZhY2V0LWJhZGdlPlxyXG4gICAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkPlxyXG4gICAgICAgICAgICAgICAgPGNhZG11cy1mbGFncy1iYWRnZVxyXG4gICAgICAgICAgICAgICAgICBbZmxhZ3NdPVwiaXRlbS5mbGFnc1wiXHJcbiAgICAgICAgICAgICAgICAgIFtmbGFnRGVmaW5pdGlvbnNdPVwiJGFueShmbGFnRGVmaW5pdGlvbnMkIHwgYXN5bmMpXCJcclxuICAgICAgICAgICAgICAgID48L2NhZG11cy1mbGFncy1iYWRnZT5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZD57eyBpdGVtLnRpdGxlIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQ+e3sgaXRlbS5kZXNjcmlwdGlvbiB9fTwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGZ4SGlkZS5sdC1tZD57eyBpdGVtLmdyb3VwSWQgfX08L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZCBmeEhpZGUubHQtbWQ+e3sgaXRlbS51c2VySWQgfX08L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZCBmeEhpZGUubHQtbWQ+XHJcbiAgICAgICAgICAgICAgICB7eyBpdGVtLnRpbWVNb2RpZmllZCB8IGRhdGU6IFwieXl5eS1NTS1kZCBISDptbTpzc1wiIH19XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGQgZnhIaWRlLmx0LW1kPnt7IGl0ZW0uY3JlYXRvcklkIH19PC90ZD5cclxuICAgICAgICAgICAgPC90cj5cclxuICAgICAgICAgIDwvdGJvZHk+XHJcbiAgICAgICAgPC90YWJsZT5cclxuICAgICAgICA8bWF0LXBhZ2luYXRvclxyXG4gICAgICAgICAgKm5nSWY9XCJwYWdpbmF0aW9uLmRhdGEubGVuZ3RoXCJcclxuICAgICAgICAgIGZ4RmxleD1cIjAgMCBhdXRvXCJcclxuICAgICAgICAgIGZ4RmxleEFsaWduPVwic3RhcnRcIlxyXG4gICAgICAgICAgW2xlbmd0aF09XCJwYWdpbmF0aW9uLnRvdGFsXCJcclxuICAgICAgICAgIFtwYWdlU2l6ZV09XCJwYWdlU2l6ZT8udmFsdWVcIlxyXG4gICAgICAgICAgW3BhZ2VTaXplT3B0aW9uc109XCJbMjAsIDUwLCA3NSwgMTAwXVwiXHJcbiAgICAgICAgICBbcGFnZUluZGV4XT1cInBhZ2luYXRpb24uY3VycmVudFBhZ2UgLSAxXCJcclxuICAgICAgICAgIFtzaG93Rmlyc3RMYXN0QnV0dG9uc109XCJ0cnVlXCJcclxuICAgICAgICAgIChwYWdlKT1cInBhZ2VDaGFuZ2VkKCRldmVudClcIlxyXG4gICAgICAgID48L21hdC1wYWdpbmF0b3I+XHJcbiAgICAgIDwvZGl2PlxyXG4gICAgPC9kaXY+XHJcbiAgPC9tYXQtY2FyZC1jb250ZW50PlxyXG48L21hdC1jYXJkPlxyXG4iXX0=
145
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS1zZWFyY2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlybWlkb24vY2FkbXVzLWl0ZW0tc2VhcmNoL3NyYy9saWIvaXRlbS1zZWFyY2gvaXRlbS1zZWFyY2guY29tcG9uZW50LnRzIiwiL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XRpb25SZXNwb25zZTxJdGVtSW5mbz4+IHtcclxuICAgIHJldHVybiAoKSA9PlxyXG4gICAgICB0aGlzLl9pdGVtU2VydmljZS5zZWFyY2hJdGVtcyhxdWVyeSwgcGFnZU51bWJlciwgcGFnZVNpemUpLnBpcGUoXHJcbiAgICAgICAgLy8gYWRhcHQgc2VydmVyIHJlc3VsdHMgdG8gdGhlIHBhZ2luYXRvciBwbHVnaW5cclxuICAgICAgICBtYXAoKHc6IEVycm9yV3JhcHBlcjxEYXRhUGFnZTxJdGVtSW5mbz4+KSA9PiB7XHJcbiAgICAgICAgICBpZiAody5lcnJvcikge1xyXG4gICAgICAgICAgICB0aGlzLmVycm9yID0gdy5lcnJvcjtcclxuICAgICAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgICBjdXJyZW50UGFnZTogMSxcclxuICAgICAgICAgICAgICBwZXJQYWdlOiBwYWdlU2l6ZSxcclxuICAgICAgICAgICAgICBsYXN0UGFnZTogMCxcclxuICAgICAgICAgICAgICBkYXRhOiBbXSxcclxuICAgICAgICAgICAgICB0b3RhbDogMCxcclxuICAgICAgICAgICAgfTtcclxuICAgICAgICAgIH1cclxuICAgICAgICAgIHRoaXMuZXJyb3IgPSB1bmRlZmluZWQ7XHJcbiAgICAgICAgICBjb25zdCBwID0gdy52YWx1ZSE7XHJcbiAgICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBjdXJyZW50UGFnZTogcC5wYWdlTnVtYmVyLFxyXG4gICAgICAgICAgICBwZXJQYWdlOiBwLnBhZ2VTaXplLFxyXG4gICAgICAgICAgICBsYXN0UGFnZTogcC5wYWdlQ291bnQsXHJcbiAgICAgICAgICAgIGRhdGE6IHAuaXRlbXMsXHJcbiAgICAgICAgICAgIHRvdGFsOiBwLnRvdGFsLFxyXG4gICAgICAgICAgfTtcclxuICAgICAgICB9KVxyXG4gICAgICApO1xyXG4gIH1cclxuXHJcbiAgbmdPbkluaXQoKTogdm9pZCB7XHJcbiAgICB0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MoJ2VkaXRvcicpXHJcbiAgICAgICAgICAgIFwiXHJcbiAgICAgICAgICA+PC90aD5cclxuICAgICAgICAgIDx0aD5mYWNldDwvdGg+XHJcbiAgICAgICAgICA8dGg+ZmxhZ3M8L3RoPlxyXG4gICAgICAgICAgPHRoPnRpdGxlPC90aD5cclxuICAgICAgICAgIDx0aD5kZXNjcmlwdGlvbjwvdGg+XHJcbiAgICAgICAgICA8dGggZnhIaWRlLmx0LW1kPmdyb3VwPC90aD5cclxuICAgICAgICAgIDx0aCBmeEhpZGUubHQtbWQ+dXNlcjwvdGg+XHJcbiAgICAgICAgICA8dGggZnhIaWRlLmx0LW1kPmxhc3Qgc2F2ZWQ8L3RoPlxyXG4gICAgICAgICAgPHRoIGZ4SGlkZS5sdC1tZD5jcmVhdG9yPC90aD5cclxuICAgICAgICA8L3RoZWFkPlxyXG4gICAgICAgIDx0Ym9keT5cclxuICAgICAgICAgIDx0ciAqbmdGb3I9XCJsZXQgaXRlbSBvZiBwYWdpbmF0aW9uLmRhdGFcIj5cclxuICAgICAgICAgICAgPHRkIGNsYXNzPVwiY29tbWFuZFwiPlxyXG4gICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiRWRpdCB7eyBpdGVtLnRpdGxlIH19XCJcclxuICAgICAgICAgICAgICAgIGNvbG9yPVwicHJpbWFyeVwiXHJcbiAgICAgICAgICAgICAgICAoY2xpY2spPVwiZWRpdEl0ZW0oaXRlbSlcIlxyXG4gICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5tb2RlX2VkaXQ8L21hdC1pY29uPlxyXG4gICAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICA8dGRcclxuICAgICAgICAgICAgICBjbGFzcz1cImNvbW1hbmRcIlxyXG4gICAgICAgICAgICAgICpuZ0lmPVwiXHJcbiAgICAgICAgICAgICAgICB1c2VyPy5yb2xlcz8uaW5jbHVkZXMoJ2FkbWluJykgfHxcclxuICAgICAgICAgICAgICAgIHVzZXI/LnJvbGVzPy5pbmNsdWRlcygnZWRpdG9yJylcclxuICAgICAgICAgICAgICBcIlxyXG4gICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJ1c2VyTGV2ZWwgPiAyXCJcclxuICAgICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgICBtYXRUb29sdGlwPVwiRGVsZXRlIHt7IGl0ZW0udGl0bGUgfX1cIlxyXG4gICAgICAgICAgICAgICAgY29sb3I9XCJ3YXJuXCJcclxuICAgICAgICAgICAgICAgIChjbGljayk9XCJkZWxldGVJdGVtKGl0ZW0pXCJcclxuICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICA8bWF0LWljb24+ZGVsZXRlPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgPHRkPlxyXG4gICAgICAgICAgICAgIDxjYWRtdXMtZmFjZXQtYmFkZ2VcclxuICAgICAgICAgICAgICAgIFtmYWNldElkXT1cIml0ZW0uZmFjZXRJZFwiXHJcbiAgICAgICAgICAgICAgICBbZmFjZXREZWZpbml0aW9uc109XCIkYW55KGZhY2V0RGVmaW5pdGlvbnMkIHwgYXN5bmMpXCJcclxuICAgICAgICAgICAgICA+PC9jYWRtdXMtZmFjZXQtYmFkZ2U+XHJcbiAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgIDx0ZD5cclxuICAgICAgICAgICAgICA8Y2FkbXVzLWZsYWdz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bnNdPVwiWzIwLCA1MCwgNzUsIDEwMF1cIlxyXG4gICAgICAgIFtwYWdlSW5kZXhdPVwicGFnaW5hdGlvbi5jdXJyZW50UGFnZSAtIDFcIlxyXG4gICAgICAgIFtzaG93Rmlyc3RMYXN0QnV0dG9uc109XCJ0cnVlXCJcclxuICAgICAgICAocGFnZSk9XCJwYWdlQ2hhbmdlZCgkZXZlbnQpXCJcclxuICAgICAgPjwvbWF0LXBhZ2luYXRvcj5cclxuICAgIDwvZGl2PlxyXG4gIDwvbWF0LWNhcmQtY29udGVudD5cclxuPC9tYXQtY2FyZD5cclxuIl19
@@ -26,9 +26,9 @@ export class ItemsSearchService {
26
26
  });
27
27
  }
28
28
  }
29
- ItemsSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchService, deps: [{ token: i1.ItemsSearchStore }, { token: i2.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
30
- ItemsSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchService, providedIn: 'root' });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchService, decorators: [{
29
+ ItemsSearchService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchService, deps: [{ token: i1.ItemsSearchStore }, { token: i2.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
30
+ ItemsSearchService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchService, providedIn: 'root' });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchService, decorators: [{
32
32
  type: Injectable,
33
33
  args: [{ providedIn: 'root' }]
34
34
  }], ctorParameters: function () { return [{ type: i1.ItemsSearchStore }, { type: i2.ItemService }]; } });
@@ -21,9 +21,9 @@ export class ItemsSearchQuery extends QueryEntity {
21
21
  this.store.remove(id);
22
22
  }
23
23
  }
24
- ItemsSearchQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchQuery, deps: [{ token: i1.ItemsSearchStore }], target: i0.ɵɵFactoryTarget.Injectable });
25
- ItemsSearchQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchQuery, providedIn: 'root' });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchQuery, decorators: [{
24
+ ItemsSearchQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchQuery, deps: [{ token: i1.ItemsSearchStore }], target: i0.ɵɵFactoryTarget.Injectable });
25
+ ItemsSearchQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchQuery, providedIn: 'root' });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchQuery, decorators: [{
27
27
  type: Injectable,
28
28
  args: [{ providedIn: 'root' }]
29
29
  }], ctorParameters: function () { return [{ type: i1.ItemsSearchStore }]; } });
@@ -10,13 +10,13 @@ let ItemsSearchStore = class ItemsSearchStore extends EntityStore {
10
10
  super(initialState);
11
11
  }
12
12
  };
13
- ItemsSearchStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14
- ItemsSearchStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchStore, providedIn: 'root' });
13
+ ItemsSearchStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
14
+ ItemsSearchStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchStore, providedIn: 'root' });
15
15
  ItemsSearchStore = __decorate([
16
16
  StoreConfig({ name: 'items-search' })
17
17
  ], ItemsSearchStore);
18
18
  export { ItemsSearchStore };
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: ItemsSearchStore, decorators: [{
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: ItemsSearchStore, decorators: [{
20
20
  type: Injectable,
21
21
  args: [{ providedIn: 'root' }]
22
22
  }], ctorParameters: function () { return []; } });