@myrmidon/cadmus-item-search 5.0.0 → 5.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,8 +28,8 @@ export const RouterModuleForChild = RouterModule.forChild([
28
28
  { path: '', pathMatch: 'full', component: ItemSearchComponent },
29
29
  ]);
30
30
  class CadmusItemSearchModule {
31
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
32
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
31
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
32
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
33
33
  ReactiveFormsModule,
34
34
  FormsModule, i1.RouterModule,
35
35
  // material
@@ -51,7 +51,7 @@ class CadmusItemSearchModule {
51
51
  CadmusStateModule,
52
52
  NgToolsModule,
53
53
  NgMatToolsModule], exports: [ItemQueryComponent, ItemSearchComponent] }); }
54
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
54
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
55
55
  ReactiveFormsModule,
56
56
  FormsModule,
57
57
  RouterModuleForChild,
@@ -76,7 +76,7 @@ class CadmusItemSearchModule {
76
76
  NgMatToolsModule] }); }
77
77
  }
78
78
  export { CadmusItemSearchModule };
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
80
80
  type: NgModule,
81
81
  args: [{
82
82
  imports: [
@@ -127,11 +127,11 @@ class ItemQueryComponent {
127
127
  copyToClipboard(text) {
128
128
  this._clipboard.copy(text);
129
129
  }
130
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component }); }
131
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.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]", inputs: ["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", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
130
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component }); }
131
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", 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]", inputs: ["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", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
132
132
  }
133
133
  export { ItemQueryComponent };
134
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemQueryComponent, decorators: [{
134
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemQueryComponent, decorators: [{
135
135
  type: Component,
136
136
  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"] }]
137
137
  }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.Clipboard }, { type: i3.AppRepository }, { type: i4.ItemService }]; }, propDecorators: { queryElement: [{
@@ -67,12 +67,12 @@ class ItemSearchComponent {
67
67
  clearCache() {
68
68
  this._repository.clearCache();
69
69
  }
70
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.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 }); }
71
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.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\" 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" }] }); }
70
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", 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 }); }
71
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", 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 id=\"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 id=\"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>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=\"fit-width\">\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 <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 class=\"form-row\">\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: ["table{width:100%}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\";gap:16px}div#query{grid-area:query}div#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"query\"}.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" }] }); }
72
72
  }
73
73
  export { ItemSearchComponent };
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchComponent, decorators: [{
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchComponent, decorators: [{
75
75
  type: Component,
76
- 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"] }]
76
+ 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 id=\"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 id=\"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>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=\"fit-width\">\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 <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 class=\"form-row\">\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: ["table{width:100%}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\";gap:16px}div#query{grid-area:query}div#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"query\"}.noif-lt-md{display:none}}\n"] }]
77
77
  }], ctorParameters: function () { return [{ type: i1.ItemSearchRepository }, { type: i2.DialogService }, { type: i3.Router }, { type: i4.AuthJwtService }, { type: i5.UserLevelService }, { type: i6.AppRepository }]; } });
78
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS1zZWFyY2guY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlybWlkb24vY2FkbXVzLWl0ZW0tc2VhcmNoL3NyYy9saWIvaXRlbS1zZWFyY2gvaXRlbS1zZWFyY2guY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbXlybWlkb24vY2FkbXVzLWl0ZW0tc2VhcmNoL3NyYy9saWIvaXRlbS1zZWFyY2gvaXRlbS1zZWFyY2guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUlsRCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBWXRDLE1BS2EsbUJBQW1CO0lBVTlCLFlBQ1UsV0FBaUMsRUFDakMsY0FBNkIsRUFDN0IsT0FBZSxFQUNmLFlBQTRCLEVBQzVCLGlCQUFtQyxFQUMzQyxhQUE0QjtRQUxwQixnQkFBVyxHQUFYLFdBQVcsQ0FBc0I7UUFDakMsbUJBQWMsR0FBZCxjQUFjLENBQWU7UUFDN0IsWUFBTyxHQUFQLE9BQU8sQ0FBUTtRQUNmLGlCQUFZLEdBQVosWUFBWSxDQUFnQjtRQUM1QixzQkFBaUIsR0FBakIsaUJBQWlCLENBQWtCO1FBRzNDLElBQUksQ0FBQyxTQUFTLEdBQUcsQ0FBQyxDQUFDO1FBQ25CLElBQUksQ0FBQyxXQUFXLEdBQUcsS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VzZXI/LnJvbGVzPy5pbmNsdWRlcygnYWRtaW4nKSB8fFxyXG4gICAgICAgICAgICAgICAgdXNlcj8ucm9sZXM/LmluY2x1ZGVzKCdlZGl0b3InKVxyXG4gICAgICAgICAgICAgIFwiXHJcbiAgICAgICAgICAgID48L3RoPlxyXG4gICAgICAgICAgICA8dGg+ZmFjZXQ8L3RoPlxyXG4gICAgICAgICAgICA8dGg+ZmxhZ3M8L3RoPlxyXG4gICAgICAgICAgICA8dGg+dGl0bGU8L3RoPlxyXG4gICAgICAgICAgICA8dGg+ZGVzY3JpcHRpb248L3RoPlxyXG4gICAgICAgICAgICA8dGggY2xhc3M9XCJub2lmLWx0LW1kXCI+Z3JvdXA8L3RoPlxyXG4gICAgICAgICAgICA8dGggY2xhc3M9XCJub2lmLWx0LW1kXCI+dXNlcjwvdGg+XHJcbiAgICAgICAgICAgIDx0aCBjbGFzcz1cIm5vaWYtbHQtbWRcIj5sYXN0IHNhdmVkPC90aD5cclxuICAgICAgICAgICAgPHRoIGNsYXNzPVwibm9pZi1sdC1tZFwiPmNyZWF0b3I8L3RoPlxyXG4gICAgICAgICAgPC90aGVhZD5cclxuICAgICAgICAgIDx0Ym9keT5cclxuICAgICAgICAgICAgPHRyICpuZ0Zvcj1cImxldCBpdGVtIG9mIHBhZ2luYXRpb24uZGF0YVwiPlxyXG4gICAgICAgICAgICAgIDx0ZCBjbGFzcz1cImNvbW1hbmRcIj5cclxuICAgICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgICAgICBjb2xvcj1cInByaW1hcnlcIlxyXG4gICAgICAgICAgICAgICAgICAoY2xpY2spPVwiZWRpdEl0ZW0oaXRlbSlcIlxyXG4gICAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgICA8bWF0LWljb24+bW9kZV9lZGl0PC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkXHJcbiAgICAgICAgICAgICAgICBjbGFzcz1cImNvbW1hbmRcIlxyXG4gICAgICAgICAgICAgICAgKm5nSWY9XCJcclxuICAgICAgICAgICAgICAgICAgdXNlcj8ucm9sZXM/LmluY2x1ZGVzKCdhZG1pbicpIHx8XHJcbiAgICAgICAgICAgICAgICAgIHVzZXI/LnJvbGVzPy5pbmNsdWRlcygnZWRpdG9yJylcclxuICAgICAgICAgICAgICAgIFwiXHJcbiAgICAgICAgICAgICAgPlxyXG4gICAgICAgICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICAgICAgICAqbmdJZj1cInVzZXJMZXZlbCA+IDJcIlxyXG4gICAgICAgICAgICAgICAgICBtYXQtaWNvbi1idXR0b25cclxuICAgICAgICAgICAgICAgICAgdHlwZT1cImJ1dHRvblwiXHJcbiAgICAgICAgICAgICAgICAgIGNvbG9yPVwid2FyblwiXHJcbiAgICAgICAgICAgICAgICAgIChjbGljayk9XCJkZWxldGVJdGVtKGl0ZW0pXCJcclxuICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPmRlbGV0ZTwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZCBjbGFzcz1cImZpdC13aWR0aFwiPlxyXG4gICAgICAgICAgICAgICAgPGNhZG11cy1mYWNldC1iYWRnZVxyXG4gICAgICAgICAgICAgICAgICBbZGF0YV09XCJ7IGRlZmluaXRpb25zOiBhcHAuZmFjZXRzLCBmYWNldElkOiBpdGVtLmZhY2V0SWQgfVwiXHJcbiAgICAgICAgICAgICAgICA+PC9jYWRtdXMtZmFjZXQtYmFkZ2U+XHJcbiAgICAgICAgICAgICAgPC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJmaXQtd2lkdGhcIj5cclxuICAgICAgICAgICAgICAgIDxjYWRtdXMtZmxhZ3MtYmFkZ2VcclxuICAgICAgICAgICAgICAgICAgW2RhdGFdPVwieyBkZWZpbml0aW9uczogYXBwLmZsYWdzLCBmbGFnczogaXRlbS5mbGFncyB9XCJcclxuICAgICAgICAgICAgICAgID48L2NhZG11cy1mbGFncy1iYWRnZT5cclxuICAgICAgICAgICAgICA8L3RkPlxyXG4gICAgICAgICAgICAgIDx0ZD57eyBpdGVtLnRpdGxlIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQ+e3sgaXRlbS5kZXNjcmlwdGlvbiB9fTwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwibm9pZi1sdC1tZFwiPnt7IGl0ZW0uZ3JvdXBJZCB9fTwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwibm9pZi1sdC1tZFwiPnt7IGl0ZW0udXNlcklkIH19PC90ZD5cclxuICAgICAgICAgICAgICA8dGQgY2xhc3M9XCJub2lmLWx0LW1kXCI+XHJcbiAgICAgICAgICAgICAgICB7eyBpdGVtLnRpbWVNb2RpZmllZCB8IGRhdGUgOiBcInl5eXktTU0tZGQgSEg6bW06c3NcIiB9fVxyXG4gICAgICAgICAgICAgIDwvdGQ+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwibm9pZi1sdC1tZFwiPnt7IGl0ZW0uY3JlYXRvcklkIH19PC90ZD5cclxuICAgICAgICAgICAgPC90cj5cclxuICAgICAgICAgIDwvdGJvZHk+XHJcbiAgICAgICAgPC90YWJsZT5cclxuXHJcbiAgICAgICAgPCEtLSBwYWdpbmF0b3IgLS0+XHJcbiAgICAgICAgPGRpdlxyXG4gICAgICAgICAgc3R5bGU9XCJncmlkLWFyZWE6IHBhZ2luYXRvcjsganVzdGlmeS1jb250ZW50OiBlbmRcIlxyXG4gICAgICAgICAgY2xhc3M9XCJmb3JtLXJvd1wiXHJcbiAgICAgICAgPlxyXG4gICAgICAgICAgPGJ1dHRvblxyXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgIGNvbG9yPVwid2FyblwiXHJcbiAgICAgICAgICAgIG1hdFRvb2x0aXA9XCJDbGVhciBpdGVtcyBjYWNoZVwiXHJcbiAgICAgICAgICAgIChjbGljayk9XCJjbGVhckNhY2hlKClcIlxyXG4gICAgICAgICAgPlxyXG4gICAgICAgICAgICA8bWF0LWljb24+YXV0b3JlbmV3PC9tYXQtaWNvbj5cclxuICAgICAgICAgIDwvYnV0dG9uPlxyXG5cclxuICAgICAgICAgIDxtYXQtcGFnaW5hdG9yXHJcbiAgICAgICAgICAgICpuZ0lmPVwicGFnaW5hdGlvbi5kYXRhLmxlbmd0aFwiXHJcbiAgICAgICAgICAgIFtsZW5ndGhdPVwicGFnaW5hdGlvbi50b3RhbFwiXHJcbiAgICAgICAgICAgIFtwYWdlU2l6ZV09XCJwYWdpbmF0aW9uLnBlclBhZ2VcIlxyXG4gICAgICAgICAgICBbcGFnZVNpemVPcHRpb25zXT1cIlsyMCwgNTAsIDc1LCAxMDBdXCJcclxuICAgICAgICAgICAgW3BhZ2VJbmRleF09XCJwYWdpbmF0aW9uLmN1cnJlbnRQYWdlIC0gMVwiXHJcbiAgICAgICAgICAgIFtzaG93Rmlyc3RMYXN0QnV0dG9uc109XCJ0cnVlXCJcclxuICAgICAgICAgICAgKHBhZ2UpPVwicGFnZUNoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgICAgID48L21hdC1wYWdpbmF0b3I+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgIDwvZGl2PlxyXG4gICAgPC9kaXY+XHJcbiAgPC9tYXQtY2FyZC1jb250ZW50PlxyXG48L21hdC1jYXJkPlxyXG4iXX0=
78
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZX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cIj51c2VyPC90aD5cclxuICAgICAgICAgICAgPHRoIGNsYXNzPVwibm9pZi1sdC1tZFwiPmxhc3Qgc2F2ZWQ8L3RoPlxyXG4gICAgICAgICAgICA8dGggY2xhc3M9XCJub2lmLWx0LW1kXCI+Y3JlYXRvcjwvdGg+XHJcbiAgICAgICAgICA8L3RoZWFkPlxyXG4gICAgICAgICAgPHRib2R5PlxyXG4gICAgICAgICAgICA8dHIgKm5nRm9yPVwibGV0IGl0ZW0gb2YgcGFnaW5hdGlvbi5kYXRhXCI+XHJcbiAgICAgICAgICAgICAgPHRkIGNsYXNzPVwiZml0LXdpZHRoXCI+XHJcbiAgICAgICAgICAgICAgICA8YnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIG1hdC1pY29uLWJ1dHRvblxyXG4gICAgICAgICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcclxuICAgICAgICAgICAgICAgICAgY29sb3I9XCJwcmltYXJ5XCJcclxuICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cImVkaXRJdGVtKGl0ZW0pXCJcclxuICAgICAgICAgICAgICAgID5cclxuICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPm1vZGVfZWRpdDwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICAgIDxidXR0b25cclxuICAgICAgICAgICAgICAgICAgKm5nSWY9XCJ1c2VyTGV2ZWwgPiAyXCJcclxuICAgICAgICAgICAgICAgICAgbWF0LWljb24tYnV0dG9uXHJcbiAgICAgICAgICAgICAgICAgIHR5cGU9XCJidXR0b25cIlxyXG4gICAgICAgICAgICAgICAgICBjb2xvcj1cIndhcm5cIlxyXG4gICAgICAgICAgICAgICAgICAoY2xpY2spPVwiZGVsZXRlSXRlbShpdGVtKVwiXHJcbiAgICAgICAgICAgICAgICA+XHJcbiAgICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5kZWxldGU8L21hdC1pY29uPlxyXG4gICAgICAgICAgICAg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AgICAgICAgKHBhZ2UpPVwicGFnZUNoYW5nZSgkZXZlbnQpXCJcclxuICAgICAgICAgID48L21hdC1wYWdpbmF0b3I+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgIDwvZGl2PlxyXG4gICAgPC9kaXY+XHJcbiAgPC9tYXQtY2FyZC1jb250ZW50PlxyXG48L21hdC1jYXJkPlxyXG4iXX0=
@@ -108,11 +108,11 @@ class ItemSearchRepository {
108
108
  queries.splice(0, 0, query);
109
109
  this._store.update(setProp('lastQueries', queries));
110
110
  }
111
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i1.ItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
112
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' }); }
111
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i1.ItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
112
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' }); }
113
113
  }
114
114
  export { ItemSearchRepository };
115
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchRepository, decorators: [{
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchRepository, decorators: [{
116
116
  type: Injectable,
117
117
  args: [{ providedIn: 'root' }]
118
118
  }], ctorParameters: function () { return [{ type: i1.ItemService }]; } });
@@ -158,10 +158,10 @@ class ItemQueryComponent {
158
158
  copyToClipboard(text) {
159
159
  this._clipboard.copy(text);
160
160
  }
161
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component }); }
162
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.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]", inputs: ["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", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
161
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component }); }
162
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", 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]", inputs: ["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", "panelWidth", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i15.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
163
163
  }
164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemQueryComponent, decorators: [{
164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemQueryComponent, decorators: [{
165
165
  type: Component,
166
166
  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"] }]
167
167
  }], ctorParameters: function () { return [{ type: i1.FormBuilder }, { type: i2.Clipboard }, { type: i3.AppRepository }, { type: i4.ItemService }]; }, propDecorators: { queryElement: [{
@@ -277,10 +277,10 @@ class ItemSearchRepository {
277
277
  queries.splice(0, 0, query);
278
278
  this._store.update(setProp('lastQueries', queries));
279
279
  }
280
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
281
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' }); }
280
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
281
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' }); }
282
282
  }
283
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchRepository, decorators: [{
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchRepository, decorators: [{
284
284
  type: Injectable,
285
285
  args: [{ providedIn: 'root' }]
286
286
  }], ctorParameters: function () { return [{ type: i4.ItemService }]; } });
@@ -336,12 +336,12 @@ class ItemSearchComponent {
336
336
  clearCache() {
337
337
  this._repository.clearCache();
338
338
  }
339
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.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 }); }
340
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.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\" 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" }] }); }
339
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", 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 }); }
340
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.3", 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 id=\"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 id=\"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>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=\"fit-width\">\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 <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 class=\"form-row\">\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: ["table{width:100%}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\";gap:16px}div#query{grid-area:query}div#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"query\"}.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" }] }); }
341
341
  }
342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: ItemSearchComponent, decorators: [{
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: ItemSearchComponent, decorators: [{
343
343
  type: Component,
344
- 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"] }]
344
+ 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 id=\"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 id=\"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>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=\"fit-width\">\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 <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 class=\"form-row\">\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: ["table{width:100%}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\";gap:16px}div#query{grid-area:query}div#list{grid-area:list}@media only screen and (max-width: 959px){div#container{grid-template-rows:1fr auto;grid-template-columns:1fr;grid-template-areas:\"list\" \"query\"}.noif-lt-md{display:none}}\n"] }]
345
345
  }], ctorParameters: function () { return [{ type: ItemSearchRepository }, { type: i2$1.DialogService }, { type: i3$1.Router }, { type: i4$1.AuthJwtService }, { type: i4.UserLevelService }, { type: i3.AppRepository }]; } });
346
346
 
347
347
  // https://github.com/ng-packagr/ng-packagr/issues/778
@@ -349,8 +349,8 @@ const RouterModuleForChild = RouterModule.forChild([
349
349
  { path: '', pathMatch: 'full', component: ItemSearchComponent },
350
350
  ]);
351
351
  class CadmusItemSearchModule {
352
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
353
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
352
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
353
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
354
354
  ReactiveFormsModule,
355
355
  FormsModule, i3$1.RouterModule,
356
356
  // material
@@ -372,7 +372,7 @@ class CadmusItemSearchModule {
372
372
  CadmusStateModule,
373
373
  NgToolsModule,
374
374
  NgMatToolsModule], exports: [ItemQueryComponent, ItemSearchComponent] }); }
375
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
375
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
376
376
  ReactiveFormsModule,
377
377
  FormsModule,
378
378
  RouterModuleForChild,
@@ -396,7 +396,7 @@ class CadmusItemSearchModule {
396
396
  NgToolsModule,
397
397
  NgMatToolsModule] }); }
398
398
  }
399
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.1", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
399
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.3", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
400
400
  type: NgModule,
401
401
  args: [{
402
402
  imports: [
@@ -1 +1 @@
1
- {"version":3,"file":"myrmidon-cadmus-item-search.mjs","sources":["../../../../projects/myrmidon/cadmus-item-search/src/lib/item-query/item-query.component.ts","../../../../projects/myrmidon/cadmus-item-search/src/lib/item-query/item-query.component.html","../../../../projects/myrmidon/cadmus-item-search/src/lib/state/item-search.repository.ts","../../../../projects/myrmidon/cadmus-item-search/src/lib/item-search/item-search.component.ts","../../../../projects/myrmidon/cadmus-item-search/src/lib/item-search/item-search.component.html","../../../../projects/myrmidon/cadmus-item-search/src/lib/cadmus-item-search.module.ts","../../../../projects/myrmidon/cadmus-item-search/src/public-api.ts","../../../../projects/myrmidon/cadmus-item-search/src/myrmidon-cadmus-item-search.ts"],"sourcesContent":["import { Clipboard } from '@angular/cdk/clipboard';\r\nimport {\r\n Component,\r\n OnInit,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n ViewChild,\r\n ElementRef,\r\n AfterViewInit,\r\n} from '@angular/core';\r\nimport {\r\n FormBuilder,\r\n FormGroup,\r\n FormControl,\r\n Validators,\r\n} from '@angular/forms';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\n\r\nimport { ItemService } from '@myrmidon/cadmus-api';\r\nimport {\r\n DataPinDefinition,\r\n FacetDefinition,\r\n PartDefinition,\r\n} from '@myrmidon/cadmus-core';\r\nimport { AppRepository } from '@myrmidon/cadmus-state';\r\n\r\ninterface PartDefViewModel {\r\n typeId: string;\r\n name: string;\r\n description: string;\r\n groupKey: string;\r\n colorKey: string;\r\n sortKey: string;\r\n}\r\n\r\n@Component({\r\n selector: 'cadmus-item-query',\r\n templateUrl: './item-query.component.html',\r\n styleUrls: ['./item-query.component.css'],\r\n})\r\nexport class ItemQueryComponent implements OnInit, AfterViewInit {\r\n private _lastQueries?: string[];\r\n\r\n public form: FormGroup;\r\n public query: FormControl<string | null>;\r\n public history: FormControl<string | null>;\r\n public partDef: FormControl<string | null>;\r\n\r\n @ViewChild('queryctl', { static: false })\r\n public queryElement?: ElementRef<HTMLElement>;\r\n\r\n /**\r\n * Emitted when the query is submitted.\r\n */\r\n @Output()\r\n public querySubmit: EventEmitter<string>;\r\n\r\n @Input()\r\n public lastQueries?: string[];\r\n\r\n @Input() public disabled?: boolean;\r\n\r\n public partDefs?: PartDefViewModel[];\r\n public pinDefs?: DataPinDefinition[];\r\n public loadingPinDefs?: boolean;\r\n\r\n constructor(\r\n formBuilder: FormBuilder,\r\n private _clipboard: Clipboard,\r\n private _appRepository: AppRepository,\r\n private _itemService: ItemService\r\n ) {\r\n // events\r\n this.querySubmit = new EventEmitter<string>();\r\n // form\r\n this.query = formBuilder.control(null, Validators.required);\r\n this.history = formBuilder.control(null);\r\n this.partDef = formBuilder.control(null);\r\n this.form = formBuilder.group({\r\n query: this.query,\r\n history: this.history,\r\n partDef: this.partDef,\r\n });\r\n }\r\n\r\n private getTypeId(def: PartDefinition): string {\r\n return def.roleId?.startsWith('fr.') ? def.roleId : def.typeId;\r\n }\r\n\r\n private updatePartDefs(facets: FacetDefinition[]): void {\r\n // reset any pin definitions\r\n this.pinDefs = undefined;\r\n\r\n // collect definitions VMs\r\n const partDefs: PartDefViewModel[] = [];\r\n // for each facet:\r\n facets.map((facet) => {\r\n // for each part definition in facet:\r\n facet.partDefinitions.map((partDef) => {\r\n // add it to the part defs if not already present\r\n const typeId = this.getTypeId(partDef);\r\n if (!partDefs.find((d) => d.typeId === typeId)) {\r\n partDefs.push({\r\n typeId,\r\n name: partDef.name,\r\n description: partDef.description,\r\n colorKey: partDef.colorKey,\r\n groupKey: partDef.groupKey,\r\n sortKey: partDef.sortKey,\r\n });\r\n }\r\n });\r\n });\r\n // sort them by sortKey\r\n partDefs.sort((a, b) => {\r\n return a.sortKey.localeCompare(b.sortKey);\r\n });\r\n this.partDefs = partDefs;\r\n }\r\n\r\n ngOnInit(): void {\r\n // part definitions\r\n this._appRepository.facets$.subscribe((facets) => {\r\n this.updatePartDefs(facets);\r\n });\r\n // when selected part def changes, load its pins defs\r\n this.partDef.valueChanges\r\n .pipe(debounceTime(200), distinctUntilChanged())\r\n .subscribe((id) => {\r\n this.loadingPinDefs = true;\r\n this._itemService.getDataPinDefinitions(id!).subscribe({\r\n next: (defs) => {\r\n this.loadingPinDefs = false;\r\n this.pinDefs = defs;\r\n },\r\n error: (err) => {\r\n console.error(err);\r\n this.loadingPinDefs = false;\r\n },\r\n });\r\n });\r\n }\r\n\r\n private focusQuery(): void {\r\n if (this.queryElement) {\r\n setTimeout(() => {\r\n this.queryElement?.nativeElement.focus();\r\n }, 500);\r\n }\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.focusQuery();\r\n }\r\n\r\n public setQuery(query: string | null): void {\r\n if (!query) {\r\n return;\r\n }\r\n this.query.setValue(query);\r\n this.focusQuery();\r\n }\r\n\r\n public submitQuery(): void {\r\n if (this.form.invalid) {\r\n return;\r\n }\r\n this.querySubmit.emit(this.query.value!);\r\n }\r\n\r\n public pinTypeIdToString(id: number): string {\r\n switch (id) {\r\n case 1:\r\n return 'boolean';\r\n case 2:\r\n return 'integer';\r\n case 3:\r\n return 'decimal';\r\n default:\r\n return 'string';\r\n }\r\n }\r\n\r\n public copyToClipboard(text: string): void {\r\n this._clipboard.copy(text);\r\n }\r\n}\r\n","<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","import { Injectable } from '@angular/core';\r\nimport {\r\n BehaviorSubject,\r\n combineLatest,\r\n debounceTime,\r\n map,\r\n Observable,\r\n take,\r\n} from 'rxjs';\r\n\r\nimport { createStore, select, setProp, withProps } from '@ngneat/elf';\r\nimport {\r\n selectActiveEntity,\r\n withEntities,\r\n withActiveId,\r\n upsertEntities,\r\n deleteAllEntities,\r\n deleteEntities,\r\n} from '@ngneat/elf-entities';\r\nimport {\r\n deleteAllPages,\r\n hasPage,\r\n PaginationData,\r\n selectCurrentPageEntities,\r\n selectPaginationData,\r\n setCurrentPage,\r\n setPage,\r\n updatePaginationData,\r\n withPagination,\r\n} from '@ngneat/elf-pagination';\r\nimport {\r\n selectRequestStatus,\r\n StatusState,\r\n updateRequestStatus,\r\n withRequestsCache,\r\n withRequestsStatus,\r\n} from '@ngneat/elf-requests';\r\n\r\nimport { DataPage } from '@myrmidon/ng-tools';\r\nimport { ItemService } from '@myrmidon/cadmus-api';\r\nimport { ItemFilter, ItemInfo } from '@myrmidon/cadmus-core';\r\n\r\nconst PAGE_SIZE = 20;\r\nconst NAME = 'item-search';\r\n\r\nexport interface ItemSearchProps {\r\n query?: string;\r\n error?: string;\r\n lastQueries: string[];\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ItemSearchRepository {\r\n private _store;\r\n private _loading$: BehaviorSubject<boolean>;\r\n private _lastPageSize: number;\r\n\r\n public activeItem$: Observable<ItemInfo | undefined>;\r\n public query$: Observable<string | undefined>;\r\n public loading$: Observable<boolean>;\r\n public error$: Observable<string | undefined>;\r\n public lastQueries$: Observable<string[]>;\r\n public pagination$: Observable<PaginationData & { data: ItemInfo[] }>;\r\n public status$: Observable<StatusState>;\r\n\r\n constructor(private _itemService: ItemService) {\r\n this._store = this.createStore();\r\n this._loading$ = new BehaviorSubject<boolean>(false);\r\n this.loading$ = this._loading$.asObservable();\r\n this._lastPageSize = PAGE_SIZE;\r\n\r\n this.pagination$ = combineLatest([\r\n this._store.pipe(selectPaginationData()),\r\n this._store.pipe(selectCurrentPageEntities()),\r\n ]).pipe(\r\n map(([pagination, data]) => ({ ...pagination, data })),\r\n debounceTime(0)\r\n );\r\n\r\n this.activeItem$ = this._store.pipe(selectActiveEntity());\r\n this.status$ = this._store.pipe(selectRequestStatus(NAME));\r\n\r\n this.query$ = this._store.pipe(select((state) => state.query));\r\n this.error$ = this._store.pipe(select((state) => state.error));\r\n this.lastQueries$ = this._store.pipe(select((state) => state.lastQueries));\r\n this.query$.subscribe((query) => {\r\n // when query changed, reset any existing page and move to page 1\r\n const paginationData = this._store.getValue().pagination;\r\n console.log('Deleting all pages');\r\n this._store.update(deleteAllPages());\r\n // load page 1\r\n this.loadPage(1, paginationData.perPage);\r\n });\r\n\r\n this.loadPage(1, PAGE_SIZE);\r\n this.pagination$.subscribe(console.log);\r\n }\r\n\r\n private createStore(): typeof store {\r\n const store = createStore(\r\n { name: NAME },\r\n withProps<ItemSearchProps>({ lastQueries: [] }),\r\n withEntities<ItemInfo>(),\r\n withActiveId(),\r\n withRequestsCache<'item-search'>(),\r\n withRequestsStatus(),\r\n withPagination()\r\n );\r\n\r\n return store;\r\n }\r\n\r\n private adaptPage(\r\n page: DataPage<ItemInfo>\r\n ): PaginationData & { data: ItemInfo[] } {\r\n return {\r\n currentPage: page.pageNumber,\r\n perPage: page.pageSize,\r\n lastPage: page.pageCount,\r\n total: page.total,\r\n data: page.items,\r\n };\r\n }\r\n\r\n private addPage(response: PaginationData & { data: ItemInfo[] }): void {\r\n const { data, ...paginationData } = response;\r\n this._store.update(\r\n upsertEntities(data),\r\n updatePaginationData(paginationData),\r\n setPage(\r\n paginationData.currentPage,\r\n data.map((c) => c.id)\r\n )\r\n );\r\n }\r\n\r\n public loadPage(pageNumber: number, pageSize: number): void {\r\n if (!pageSize) {\r\n pageSize = PAGE_SIZE;\r\n }\r\n if (\r\n this._store.query(hasPage(pageNumber)) &&\r\n pageSize === this._lastPageSize\r\n ) {\r\n this._store.update(setCurrentPage(pageNumber));\r\n return;\r\n }\r\n\r\n if (this._lastPageSize !== pageSize) {\r\n this._store.update(deleteAllPages());\r\n this._lastPageSize = pageSize;\r\n }\r\n\r\n this._store.update(updateRequestStatus(NAME, 'pending'));\r\n this._loading$.next(true);\r\n this._itemService\r\n .searchItems(this._store.getValue().query || '', pageNumber, pageSize)\r\n .pipe(take(1))\r\n .subscribe((wrapper) => {\r\n if (!wrapper.error) {\r\n this.addPage({\r\n ...this.adaptPage(wrapper.value!),\r\n data: wrapper.value!.items,\r\n });\r\n this._store.update(updateRequestStatus(NAME, 'success'));\r\n this._loading$.next(false);\r\n this._store.update(setProp('error', undefined));\r\n } else {\r\n this._store.update(setProp('error', wrapper.error));\r\n this._loading$.next(false);\r\n }\r\n });\r\n }\r\n\r\n clearCache() {\r\n this._store.update(deleteAllEntities(), deleteAllPages());\r\n }\r\n\r\n public setQuery(query: string): void {\r\n this._store.update((state) => ({ ...state, query: query }));\r\n }\r\n\r\n public deleteItem(id: ItemInfo['id']) {\r\n this._itemService\r\n .deleteItem(id)\r\n .pipe(take(1))\r\n .subscribe((_) => {\r\n this._store.update(deleteEntities(id));\r\n });\r\n }\r\n\r\n public addQuery(query: string): void {\r\n const queries = this._store.query((state) => state.lastQueries);\r\n if (queries.indexOf(query) > -1) {\r\n return;\r\n }\r\n queries.splice(0, 0, query);\r\n this._store.update(setProp('lastQueries', queries));\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { PageEvent } from '@angular/material/paginator';\r\nimport { Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { take } from 'rxjs/operators';\r\n\r\nimport { DialogService } from '@myrmidon/ng-mat-tools';\r\nimport { AuthJwtService, User } from '@myrmidon/auth-jwt-login';\r\nimport { ItemInfo } from '@myrmidon/cadmus-core';\r\nimport { UserLevelService } from '@myrmidon/cadmus-api';\r\nimport { AppProps, AppRepository } from '@myrmidon/cadmus-state';\r\n\r\nimport { PaginationData } from '@ngneat/elf-pagination';\r\n\r\nimport { ItemSearchRepository } from '../state/item-search.repository';\r\n\r\n@Component({\r\n selector: 'cadmus-item-search',\r\n templateUrl: './item-search.component.html',\r\n styleUrls: ['./item-search.component.css'],\r\n})\r\nexport class ItemSearchComponent implements OnInit {\r\n public query$: Observable<string | undefined>;\r\n public pagination$: Observable<PaginationData & { data: ItemInfo[] }>;\r\n public user?: User;\r\n public userLevel: number;\r\n public loading$: Observable<boolean>;\r\n public error$: Observable<string | undefined>;\r\n public lastQueries$: Observable<string[]>;\r\n public app: AppProps;\r\n\r\n constructor(\r\n private _repository: ItemSearchRepository,\r\n private _dialogService: DialogService,\r\n private _router: Router,\r\n private _authService: AuthJwtService,\r\n private _userLevelService: UserLevelService,\r\n appRepository: AppRepository\r\n ) {\r\n this.userLevel = 0;\r\n this.pagination$ = this._repository.pagination$;\r\n this.query$ = this._repository.query$;\r\n this.lastQueries$ = this._repository.lastQueries$;\r\n this.error$ = this._repository.error$;\r\n this.loading$ = this._repository.loading$;\r\n this.app = appRepository.getValue();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._authService.currentUser$.subscribe((user: User | null) => {\r\n this.user = user ?? undefined;\r\n this.userLevel = this._userLevelService.getCurrentUserLevel();\r\n });\r\n }\r\n\r\n public pageChange(event: PageEvent): void {\r\n this._repository.loadPage(event.pageIndex + 1, event.pageSize);\r\n }\r\n\r\n public submitQuery(query: string): void {\r\n if (!query) {\r\n return;\r\n }\r\n this._repository.addQuery(query);\r\n this._repository.setQuery(query);\r\n }\r\n\r\n public editItem(item: ItemInfo): void {\r\n this._router.navigate(['/items', item.id]);\r\n }\r\n\r\n public deleteItem(item: ItemInfo): void {\r\n if (this.user?.roles.every((r) => r !== 'admin' && r !== 'editor')) {\r\n return;\r\n }\r\n\r\n this._dialogService\r\n .confirm('Confirm Deletion', `Delete item \"${item.title}\"?`)\r\n .pipe(take(1))\r\n .subscribe((yes: boolean) => {\r\n if (!yes) {\r\n return;\r\n }\r\n this._repository.deleteItem(item.id);\r\n });\r\n }\r\n\r\n public clearCache(): void {\r\n this._repository.clearCache();\r\n }\r\n}\r\n","<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","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\n\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatPaginatorModule } from '@angular/material/paginator';\r\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\n\r\nimport { CadmusApiModule } from '@myrmidon/cadmus-api';\r\nimport { CadmusUiModule } from '@myrmidon/cadmus-ui';\r\nimport { CadmusStateModule } from '@myrmidon/cadmus-state';\r\nimport { NgToolsModule } from '@myrmidon/ng-tools';\r\nimport { NgMatToolsModule } from '@myrmidon/ng-mat-tools';\r\n\r\nimport { ItemQueryComponent } from './item-query/item-query.component';\r\nimport { ItemSearchComponent } from './item-search/item-search.component';\r\n\r\n// https://github.com/ng-packagr/ng-packagr/issues/778\r\nexport const RouterModuleForChild = RouterModule.forChild([\r\n { path: '', pathMatch: 'full', component: ItemSearchComponent },\r\n]);\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n RouterModuleForChild,\r\n // material\r\n MatButtonModule,\r\n MatCardModule,\r\n MatCheckboxModule,\r\n MatExpansionModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatPaginatorModule,\r\n MatProgressBarModule,\r\n MatProgressSpinnerModule,\r\n MatSelectModule,\r\n MatTooltipModule,\r\n // cadmus\r\n CadmusApiModule,\r\n CadmusUiModule,\r\n CadmusStateModule,\r\n NgToolsModule,\r\n NgMatToolsModule,\r\n ],\r\n declarations: [ItemQueryComponent, ItemSearchComponent],\r\n exports: [ItemQueryComponent, ItemSearchComponent],\r\n})\r\nexport class CadmusItemSearchModule {}\r\n","/*\r\n * Public API Surface of cadmus-item-search\r\n */\r\n\r\nexport * from './lib/item-query/item-query.component';\r\nexport * from './lib/item-search/item-search.component';\r\n\r\nexport * from './lib/cadmus-item-search.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5","i7","i9","debounceTime","i1","take","i1.ItemSearchRepository","i2","i3","i4","i6","i8","i11","i12","i13","i14","i15.ItemQueryComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,MAKa,kBAAkB,CAAA;AA0B7B,IAAA,WAAA,CACE,WAAwB,EAChB,UAAqB,EACrB,cAA6B,EAC7B,YAAyB,EAAA;QAFzB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAW;QACrB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAe;QAC7B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAa;;AAGjC,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,YAAY,EAAU,CAAC;;AAE9C,QAAA,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACzC,QAAA,IAAI,CAAC,IAAI,GAAG,WA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AA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YA3B/B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,oBAAoB;;YAEpB,eAAe;YACf,aAAa;YACb,iBAAiB;YACjB,kBAAkB;YAClB,kBAAkB;YAClB,aAAa;YACb,cAAc;YACd,kBAAkB;YAClB,oBAAoB;YACpB,wBAAwB;YACxB,eAAe;YACf,gBAAgB;;YAEhB,eAAe;YACf,cAAc;YACd,iBAAiB;YACjB,aAAa;YACb,gBAAgB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA7BlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,oBAAoB;;wBAEpB,eAAe;wBACf,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,kBAAkB;wBAClB,aAAa;wBACb,cAAc;wBACd,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,eAAe;wBACf,gBAAgB;;wBAEhB,eAAe;wBACf,cAAc;wBACd,iBAAiB;wBACjB,aAAa;wBACb,gBAAgB;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;AACvD,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;AACnD,iBAAA,CAAA;;;AC5DD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"myrmidon-cadmus-item-search.mjs","sources":["../../../../projects/myrmidon/cadmus-item-search/src/lib/item-query/item-query.component.ts","../../../../projects/myrmidon/cadmus-item-search/src/lib/item-query/item-query.component.html","../../../../projects/myrmidon/cadmus-item-search/src/lib/state/item-search.repository.ts","../../../../projects/myrmidon/cadmus-item-search/src/lib/item-search/item-search.component.ts","../../../../projects/myrmidon/cadmus-item-search/src/lib/item-search/item-search.component.html","../../../../projects/myrmidon/cadmus-item-search/src/lib/cadmus-item-search.module.ts","../../../../projects/myrmidon/cadmus-item-search/src/public-api.ts","../../../../projects/myrmidon/cadmus-item-search/src/myrmidon-cadmus-item-search.ts"],"sourcesContent":["import { Clipboard } from '@angular/cdk/clipboard';\r\nimport {\r\n Component,\r\n OnInit,\r\n EventEmitter,\r\n Input,\r\n Output,\r\n ViewChild,\r\n ElementRef,\r\n AfterViewInit,\r\n} from '@angular/core';\r\nimport {\r\n FormBuilder,\r\n FormGroup,\r\n FormControl,\r\n Validators,\r\n} from '@angular/forms';\r\nimport { debounceTime, distinctUntilChanged } from 'rxjs/operators';\r\n\r\nimport { ItemService } from '@myrmidon/cadmus-api';\r\nimport {\r\n DataPinDefinition,\r\n FacetDefinition,\r\n PartDefinition,\r\n} from '@myrmidon/cadmus-core';\r\nimport { AppRepository } from '@myrmidon/cadmus-state';\r\n\r\ninterface PartDefViewModel {\r\n typeId: string;\r\n name: string;\r\n description: string;\r\n groupKey: string;\r\n colorKey: string;\r\n sortKey: string;\r\n}\r\n\r\n@Component({\r\n selector: 'cadmus-item-query',\r\n templateUrl: './item-query.component.html',\r\n styleUrls: ['./item-query.component.css'],\r\n})\r\nexport class ItemQueryComponent implements OnInit, AfterViewInit {\r\n private _lastQueries?: string[];\r\n\r\n public form: FormGroup;\r\n public query: FormControl<string | null>;\r\n public history: FormControl<string | null>;\r\n public partDef: FormControl<string | null>;\r\n\r\n @ViewChild('queryctl', { static: false })\r\n public queryElement?: ElementRef<HTMLElement>;\r\n\r\n /**\r\n * Emitted when the query is submitted.\r\n */\r\n @Output()\r\n public querySubmit: EventEmitter<string>;\r\n\r\n @Input()\r\n public lastQueries?: string[];\r\n\r\n @Input() public disabled?: boolean;\r\n\r\n public partDefs?: PartDefViewModel[];\r\n public pinDefs?: DataPinDefinition[];\r\n public loadingPinDefs?: boolean;\r\n\r\n constructor(\r\n formBuilder: FormBuilder,\r\n private _clipboard: Clipboard,\r\n private _appRepository: AppRepository,\r\n private _itemService: ItemService\r\n ) {\r\n // events\r\n this.querySubmit = new EventEmitter<string>();\r\n // form\r\n this.query = formBuilder.control(null, Validators.required);\r\n this.history = formBuilder.control(null);\r\n this.partDef = formBuilder.control(null);\r\n this.form = formBuilder.group({\r\n query: this.query,\r\n history: this.history,\r\n partDef: this.partDef,\r\n });\r\n }\r\n\r\n private getTypeId(def: PartDefinition): string {\r\n return def.roleId?.startsWith('fr.') ? def.roleId : def.typeId;\r\n }\r\n\r\n private updatePartDefs(facets: FacetDefinition[]): void {\r\n // reset any pin definitions\r\n this.pinDefs = undefined;\r\n\r\n // collect definitions VMs\r\n const partDefs: PartDefViewModel[] = [];\r\n // for each facet:\r\n facets.map((facet) => {\r\n // for each part definition in facet:\r\n facet.partDefinitions.map((partDef) => {\r\n // add it to the part defs if not already present\r\n const typeId = this.getTypeId(partDef);\r\n if (!partDefs.find((d) => d.typeId === typeId)) {\r\n partDefs.push({\r\n typeId,\r\n name: partDef.name,\r\n description: partDef.description,\r\n colorKey: partDef.colorKey,\r\n groupKey: partDef.groupKey,\r\n sortKey: partDef.sortKey,\r\n });\r\n }\r\n });\r\n });\r\n // sort them by sortKey\r\n partDefs.sort((a, b) => {\r\n return a.sortKey.localeCompare(b.sortKey);\r\n });\r\n this.partDefs = partDefs;\r\n }\r\n\r\n ngOnInit(): void {\r\n // part definitions\r\n this._appRepository.facets$.subscribe((facets) => {\r\n this.updatePartDefs(facets);\r\n });\r\n // when selected part def changes, load its pins defs\r\n this.partDef.valueChanges\r\n .pipe(debounceTime(200), distinctUntilChanged())\r\n .subscribe((id) => {\r\n this.loadingPinDefs = true;\r\n this._itemService.getDataPinDefinitions(id!).subscribe({\r\n next: (defs) => {\r\n this.loadingPinDefs = false;\r\n this.pinDefs = defs;\r\n },\r\n error: (err) => {\r\n console.error(err);\r\n this.loadingPinDefs = false;\r\n },\r\n });\r\n });\r\n }\r\n\r\n private focusQuery(): void {\r\n if (this.queryElement) {\r\n setTimeout(() => {\r\n this.queryElement?.nativeElement.focus();\r\n }, 500);\r\n }\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.focusQuery();\r\n }\r\n\r\n public setQuery(query: string | null): void {\r\n if (!query) {\r\n return;\r\n }\r\n this.query.setValue(query);\r\n this.focusQuery();\r\n }\r\n\r\n public submitQuery(): void {\r\n if (this.form.invalid) {\r\n return;\r\n }\r\n this.querySubmit.emit(this.query.value!);\r\n }\r\n\r\n public pinTypeIdToString(id: number): string {\r\n switch (id) {\r\n case 1:\r\n return 'boolean';\r\n case 2:\r\n return 'integer';\r\n case 3:\r\n return 'decimal';\r\n default:\r\n return 'string';\r\n }\r\n }\r\n\r\n public copyToClipboard(text: string): void {\r\n this._clipboard.copy(text);\r\n }\r\n}\r\n","<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","import { Injectable } from '@angular/core';\r\nimport {\r\n BehaviorSubject,\r\n combineLatest,\r\n debounceTime,\r\n map,\r\n Observable,\r\n take,\r\n} from 'rxjs';\r\n\r\nimport { createStore, select, setProp, withProps } from '@ngneat/elf';\r\nimport {\r\n selectActiveEntity,\r\n withEntities,\r\n withActiveId,\r\n upsertEntities,\r\n deleteAllEntities,\r\n deleteEntities,\r\n} from '@ngneat/elf-entities';\r\nimport {\r\n deleteAllPages,\r\n hasPage,\r\n PaginationData,\r\n selectCurrentPageEntities,\r\n selectPaginationData,\r\n setCurrentPage,\r\n setPage,\r\n updatePaginationData,\r\n withPagination,\r\n} from '@ngneat/elf-pagination';\r\nimport {\r\n selectRequestStatus,\r\n StatusState,\r\n updateRequestStatus,\r\n withRequestsCache,\r\n withRequestsStatus,\r\n} from '@ngneat/elf-requests';\r\n\r\nimport { DataPage } from '@myrmidon/ng-tools';\r\nimport { ItemService } from '@myrmidon/cadmus-api';\r\nimport { ItemFilter, ItemInfo } from '@myrmidon/cadmus-core';\r\n\r\nconst PAGE_SIZE = 20;\r\nconst NAME = 'item-search';\r\n\r\nexport interface ItemSearchProps {\r\n query?: string;\r\n error?: string;\r\n lastQueries: string[];\r\n}\r\n\r\n@Injectable({ providedIn: 'root' })\r\nexport class ItemSearchRepository {\r\n private _store;\r\n private _loading$: BehaviorSubject<boolean>;\r\n private _lastPageSize: number;\r\n\r\n public activeItem$: Observable<ItemInfo | undefined>;\r\n public query$: Observable<string | undefined>;\r\n public loading$: Observable<boolean>;\r\n public error$: Observable<string | undefined>;\r\n public lastQueries$: Observable<string[]>;\r\n public pagination$: Observable<PaginationData & { data: ItemInfo[] }>;\r\n public status$: Observable<StatusState>;\r\n\r\n constructor(private _itemService: ItemService) {\r\n this._store = this.createStore();\r\n this._loading$ = new BehaviorSubject<boolean>(false);\r\n this.loading$ = this._loading$.asObservable();\r\n this._lastPageSize = PAGE_SIZE;\r\n\r\n this.pagination$ = combineLatest([\r\n this._store.pipe(selectPaginationData()),\r\n this._store.pipe(selectCurrentPageEntities()),\r\n ]).pipe(\r\n map(([pagination, data]) => ({ ...pagination, data })),\r\n debounceTime(0)\r\n );\r\n\r\n this.activeItem$ = this._store.pipe(selectActiveEntity());\r\n this.status$ = this._store.pipe(selectRequestStatus(NAME));\r\n\r\n this.query$ = this._store.pipe(select((state) => state.query));\r\n this.error$ = this._store.pipe(select((state) => state.error));\r\n this.lastQueries$ = this._store.pipe(select((state) => state.lastQueries));\r\n this.query$.subscribe((query) => {\r\n // when query changed, reset any existing page and move to page 1\r\n const paginationData = this._store.getValue().pagination;\r\n console.log('Deleting all pages');\r\n this._store.update(deleteAllPages());\r\n // load page 1\r\n this.loadPage(1, paginationData.perPage);\r\n });\r\n\r\n this.loadPage(1, PAGE_SIZE);\r\n this.pagination$.subscribe(console.log);\r\n }\r\n\r\n private createStore(): typeof store {\r\n const store = createStore(\r\n { name: NAME },\r\n withProps<ItemSearchProps>({ lastQueries: [] }),\r\n withEntities<ItemInfo>(),\r\n withActiveId(),\r\n withRequestsCache<'item-search'>(),\r\n withRequestsStatus(),\r\n withPagination()\r\n );\r\n\r\n return store;\r\n }\r\n\r\n private adaptPage(\r\n page: DataPage<ItemInfo>\r\n ): PaginationData & { data: ItemInfo[] } {\r\n return {\r\n currentPage: page.pageNumber,\r\n perPage: page.pageSize,\r\n lastPage: page.pageCount,\r\n total: page.total,\r\n data: page.items,\r\n };\r\n }\r\n\r\n private addPage(response: PaginationData & { data: ItemInfo[] }): void {\r\n const { data, ...paginationData } = response;\r\n this._store.update(\r\n upsertEntities(data),\r\n updatePaginationData(paginationData),\r\n setPage(\r\n paginationData.currentPage,\r\n data.map((c) => c.id)\r\n )\r\n );\r\n }\r\n\r\n public loadPage(pageNumber: number, pageSize: number): void {\r\n if (!pageSize) {\r\n pageSize = PAGE_SIZE;\r\n }\r\n if (\r\n this._store.query(hasPage(pageNumber)) &&\r\n pageSize === this._lastPageSize\r\n ) {\r\n this._store.update(setCurrentPage(pageNumber));\r\n return;\r\n }\r\n\r\n if (this._lastPageSize !== pageSize) {\r\n this._store.update(deleteAllPages());\r\n this._lastPageSize = pageSize;\r\n }\r\n\r\n this._store.update(updateRequestStatus(NAME, 'pending'));\r\n this._loading$.next(true);\r\n this._itemService\r\n .searchItems(this._store.getValue().query || '', pageNumber, pageSize)\r\n .pipe(take(1))\r\n .subscribe((wrapper) => {\r\n if (!wrapper.error) {\r\n this.addPage({\r\n ...this.adaptPage(wrapper.value!),\r\n data: wrapper.value!.items,\r\n });\r\n this._store.update(updateRequestStatus(NAME, 'success'));\r\n this._loading$.next(false);\r\n this._store.update(setProp('error', undefined));\r\n } else {\r\n this._store.update(setProp('error', wrapper.error));\r\n this._loading$.next(false);\r\n }\r\n });\r\n }\r\n\r\n clearCache() {\r\n this._store.update(deleteAllEntities(), deleteAllPages());\r\n }\r\n\r\n public setQuery(query: string): void {\r\n this._store.update((state) => ({ ...state, query: query }));\r\n }\r\n\r\n public deleteItem(id: ItemInfo['id']) {\r\n this._itemService\r\n .deleteItem(id)\r\n .pipe(take(1))\r\n .subscribe((_) => {\r\n this._store.update(deleteEntities(id));\r\n });\r\n }\r\n\r\n public addQuery(query: string): void {\r\n const queries = this._store.query((state) => state.lastQueries);\r\n if (queries.indexOf(query) > -1) {\r\n return;\r\n }\r\n queries.splice(0, 0, query);\r\n this._store.update(setProp('lastQueries', queries));\r\n }\r\n}\r\n","import { Component, OnInit } from '@angular/core';\r\nimport { PageEvent } from '@angular/material/paginator';\r\nimport { Router } from '@angular/router';\r\nimport { Observable } from 'rxjs';\r\nimport { take } from 'rxjs/operators';\r\n\r\nimport { DialogService } from '@myrmidon/ng-mat-tools';\r\nimport { AuthJwtService, User } from '@myrmidon/auth-jwt-login';\r\nimport { ItemInfo } from '@myrmidon/cadmus-core';\r\nimport { UserLevelService } from '@myrmidon/cadmus-api';\r\nimport { AppProps, AppRepository } from '@myrmidon/cadmus-state';\r\n\r\nimport { PaginationData } from '@ngneat/elf-pagination';\r\n\r\nimport { ItemSearchRepository } from '../state/item-search.repository';\r\n\r\n@Component({\r\n selector: 'cadmus-item-search',\r\n templateUrl: './item-search.component.html',\r\n styleUrls: ['./item-search.component.css'],\r\n})\r\nexport class ItemSearchComponent implements OnInit {\r\n public query$: Observable<string | undefined>;\r\n public pagination$: Observable<PaginationData & { data: ItemInfo[] }>;\r\n public user?: User;\r\n public userLevel: number;\r\n public loading$: Observable<boolean>;\r\n public error$: Observable<string | undefined>;\r\n public lastQueries$: Observable<string[]>;\r\n public app: AppProps;\r\n\r\n constructor(\r\n private _repository: ItemSearchRepository,\r\n private _dialogService: DialogService,\r\n private _router: Router,\r\n private _authService: AuthJwtService,\r\n private _userLevelService: UserLevelService,\r\n appRepository: AppRepository\r\n ) {\r\n this.userLevel = 0;\r\n this.pagination$ = this._repository.pagination$;\r\n this.query$ = this._repository.query$;\r\n this.lastQueries$ = this._repository.lastQueries$;\r\n this.error$ = this._repository.error$;\r\n this.loading$ = this._repository.loading$;\r\n this.app = appRepository.getValue();\r\n }\r\n\r\n ngOnInit(): void {\r\n this._authService.currentUser$.subscribe((user: User | null) => {\r\n this.user = user ?? undefined;\r\n this.userLevel = this._userLevelService.getCurrentUserLevel();\r\n });\r\n }\r\n\r\n public pageChange(event: PageEvent): void {\r\n this._repository.loadPage(event.pageIndex + 1, event.pageSize);\r\n }\r\n\r\n public submitQuery(query: string): void {\r\n if (!query) {\r\n return;\r\n }\r\n this._repository.addQuery(query);\r\n this._repository.setQuery(query);\r\n }\r\n\r\n public editItem(item: ItemInfo): void {\r\n this._router.navigate(['/items', item.id]);\r\n }\r\n\r\n public deleteItem(item: ItemInfo): void {\r\n if (this.user?.roles.every((r) => r !== 'admin' && r !== 'editor')) {\r\n return;\r\n }\r\n\r\n this._dialogService\r\n .confirm('Confirm Deletion', `Delete item \"${item.title}\"?`)\r\n .pipe(take(1))\r\n .subscribe((yes: boolean) => {\r\n if (!yes) {\r\n return;\r\n }\r\n this._repository.deleteItem(item.id);\r\n });\r\n }\r\n\r\n public clearCache(): void {\r\n this._repository.clearCache();\r\n }\r\n}\r\n","<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 id=\"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 id=\"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>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=\"fit-width\">\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 <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 class=\"form-row\">\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","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\r\n\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatExpansionModule } from '@angular/material/expansion';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatPaginatorModule } from '@angular/material/paginator';\r\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\r\nimport { MatProgressSpinnerModule } from '@angular/material/progress-spinner';\r\nimport { MatSelectModule } from '@angular/material/select';\r\nimport { MatTooltipModule } from '@angular/material/tooltip';\r\n\r\nimport { CadmusApiModule } from '@myrmidon/cadmus-api';\r\nimport { CadmusUiModule } from '@myrmidon/cadmus-ui';\r\nimport { CadmusStateModule } from '@myrmidon/cadmus-state';\r\nimport { NgToolsModule } from '@myrmidon/ng-tools';\r\nimport { NgMatToolsModule } from '@myrmidon/ng-mat-tools';\r\n\r\nimport { ItemQueryComponent } from './item-query/item-query.component';\r\nimport { ItemSearchComponent } from './item-search/item-search.component';\r\n\r\n// https://github.com/ng-packagr/ng-packagr/issues/778\r\nexport const RouterModuleForChild = RouterModule.forChild([\r\n { path: '', pathMatch: 'full', component: ItemSearchComponent },\r\n]);\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n ReactiveFormsModule,\r\n FormsModule,\r\n RouterModuleForChild,\r\n // material\r\n MatButtonModule,\r\n MatCardModule,\r\n MatCheckboxModule,\r\n MatExpansionModule,\r\n MatFormFieldModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatPaginatorModule,\r\n MatProgressBarModule,\r\n MatProgressSpinnerModule,\r\n MatSelectModule,\r\n MatTooltipModule,\r\n // cadmus\r\n CadmusApiModule,\r\n CadmusUiModule,\r\n CadmusStateModule,\r\n NgToolsModule,\r\n NgMatToolsModule,\r\n ],\r\n declarations: [ItemQueryComponent, ItemSearchComponent],\r\n exports: [ItemQueryComponent, ItemSearchComponent],\r\n})\r\nexport class CadmusItemSearchModule {}\r\n","/*\r\n * Public API Surface of cadmus-item-search\r\n */\r\n\r\nexport * from './lib/item-query/item-query.component';\r\nexport * from './lib/item-search/item-search.component';\r\n\r\nexport * from './lib/cadmus-item-search.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i5","i7","i9","debounceTime","i1","take","i1.ItemSearchRepository","i2","i3","i4","i6","i8","i11","i12","i13","i14","i15.ItemQueryComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,MAKa,kBAAkB,CAAA;AA0B7B,IAAA,WAAA,CACE,WAAwB,EAChB,UAAqB,EACrB,cAA6B,EAC7B,YAAyB,EAAA;QAFzB,IAAU,CAAA,UAAA,GAAV,UAAU,CAAW;QACrB,IAAc,CAAA,cAAA,GAAd,cAAc,CAAe;QAC7B,IAAY,CAAA,YAAA,GAAZ,YAAY,CAAa;;AAGjC,QAAA,IAAI,CAAC,WAAW,GAAG,IAAI,YAAY,EAAU,CAAC;;AAE9C,QAAA,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC5D,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;AACzC,QAAA,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,KAAK,CAAC;YAC5B,K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,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,sBAAsB,YA3B/B,YAAY;YACZ,mBAAmB;YACnB,WAAW;YACX,oBAAoB;;YAEpB,eAAe;YACf,aAAa;YACb,iBAAiB;YACjB,kBAAkB;YAClB,kBAAkB;YAClB,aAAa;YACb,cAAc;YACd,kBAAkB;YAClB,oBAAoB;YACpB,wBAAwB;YACxB,eAAe;YACf,gBAAgB;;YAEhB,eAAe;YACf,cAAc;YACd,iBAAiB;YACjB,aAAa;YACb,gBAAgB,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAKP,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBA7BlC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,WAAW;wBACX,oBAAoB;;wBAEpB,eAAe;wBACf,aAAa;wBACb,iBAAiB;wBACjB,kBAAkB;wBAClB,kBAAkB;wBAClB,aAAa;wBACb,cAAc;wBACd,kBAAkB;wBAClB,oBAAoB;wBACpB,wBAAwB;wBACxB,eAAe;wBACf,gBAAgB;;wBAEhB,eAAe;wBACf,cAAc;wBACd,iBAAiB;wBACjB,aAAa;wBACb,gBAAgB;AACjB,qBAAA;AACD,oBAAA,YAAY,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;AACvD,oBAAA,OAAO,EAAE,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;AACnD,iBAAA,CAAA;;;AC5DD;;AAEG;;ACFH;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/cadmus-item-search",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Cadmus - items search.",
5
5
  "keywords": [
6
6
  "Cadmus"