@myrmidon/cadmus-item-search 9.0.0 → 9.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -162,10 +162,10 @@ class ItemQueryComponent {
162
162
  copyToClipboard(text) {
163
163
  this._clipboard.copy(text);
164
164
  }
165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component }); }
166
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.0", type: ItemQueryComponent, isStandalone: false, selector: "cadmus-item-query", inputs: { query: "query", lastQueries: "lastQueries", disabled: "disabled" }, outputs: { querySubmit: "querySubmit" }, viewQueries: [{ propertyName: "queryElement", first: true, predicate: ["queryta"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-content>\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\n <div>\n <!-- query -->\n <mat-form-field appearance=\"fill\" class=\"full-width\">\n <mat-label>query</mat-label>\n <textarea\n #queryta\n matInput\n rows=\"3\"\n [formControl]=\"queryCtl\"\n spellcheck=\"false\"\n cdkTextareaAutosize\n cdkAutosizeMinRows=\"2\"\n cdkAutosizeMaxRows=\"4\"\n (keydown.enter)=\"submitQuery(); (false)\"\n ></textarea>\n @if ( queryCtl.hasError('required') && (queryCtl.dirty ||\n queryCtl.touched) ) {\n <mat-error>enter a query</mat-error>\n }\n </mat-form-field>\n <button\n type=\"button\"\n color=\"warn\"\n mat-icon-button\n matTooltip=\"Clear query\"\n (click)=\"queryCtl.reset()\"\n >\n <mat-icon class=\"mat-warn\">clear</mat-icon>\n </button>\n <button\n type=\"submit\"\n color=\"primary\"\n class=\"mat-primary\"\n mat-button\n matTooltip=\"Search items\"\n [disabled]=\"disabled || form.invalid\"\n >\n <mat-icon>search</mat-icon>\n search\n </button>\n </div>\n <br />\n <!-- history -->\n @if (lastQueries?.length) {\n <div>\n <mat-form-field class=\"full-width\">\n <mat-label>history</mat-label>\n <mat-select [formControl]=\"history\">\n @for (q of lastQueries; track q) {\n <mat-option [value]=\"q\">\n {{ q }}\n </mat-option>\n }\n </mat-select>\n <button\n matSuffix\n type=\"button\"\n mat-icon-button\n matTooltip=\"Copy to query\"\n [disabled]=\"!history.value\"\n (click)=\"setQuery(history.value)\"\n >\n <mat-icon>check_circle</mat-icon>\n </button>\n </mat-form-field>\n </div>\n }\n <br />\n\n <!-- parts/frr list -->\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Pins Reference</mat-panel-title>\n </mat-expansion-panel-header>\n @if (partDefs?.length) {\n <div>\n <mat-form-field>\n <mat-label>part/fr.</mat-label>\n <mat-select [formControl]=\"partDef\">\n @for (def of partDefs; track def) {\n <mat-option [value]=\"def.typeId\" [matTooltip]=\"def.description\">\n {{ def.name }} ({{ def.typeId.startsWith(\"fr.\") ? \"F\" : \"P\" }})\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <!-- selected part's pins -->\n @if (loadingPinDefs) {\n <mat-progress-bar mode=\"indeterminate\" />\n } @if (pinDefs?.length) {\n <table class=\"pins\">\n <thead>\n <tr>\n <th></th>\n <th>name</th>\n <th>type</th>\n <th>tip</th>\n <th>attrs</th>\n </tr>\n </thead>\n <tbody>\n @for (pd of pinDefs; track pd) {\n <tr>\n <td>\n <button\n mat-icon-button\n type=\"button\"\n color=\"primary\"\n matTooltip=\"Copy name\"\n (click)=\"copyToClipboard(pd.name)\"\n >\n <mat-icon class=\"mat-primary\">content_copy</mat-icon>\n </button>\n </td>\n <td>{{ pd.name }}</td>\n <td>{{ pinTypeIdToString(pd.type) }}</td>\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\n <td>{{ pd.attributes }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n </div>\n }\n </mat-expansion-panel>\n\n <!-- help -->\n <br />\n <mat-expansion-panel [expanded]=\"false\">\n <mat-expansion-panel-header>\n <mat-panel-title>Quick Help</mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"query-help\">\n <p>\n Pairs are between <code>[]</code>. Each pair has field name +\n operator + field value. Connect multiple pairs with\n <code>AND</code> and <code>OR</code>, and group them using brackets.\n Example:\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\n </p>\n <h4>Fields</h4>\n <ul>\n <li><code>t</code>, <code>title</code>: item's title.</li>\n <li>\n <code>dsc</code>, <code>description</code>: item's description.\n </li>\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\n <li><code>sortKey</code>: item's sort key.</li>\n <li><code>flags</code>: item's flags.</li>\n <li>\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\n part type ID.\n </li>\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\n <li><code>n</code>, <code>name</code>: pin's name.</li>\n <li><code>v</code>, <code>value</code>: pin's value.</li>\n </ul>\n <h4>Operators</h4>\n <ul>\n <li><code>=</code>: equal to.</li>\n <li><code>&lt;&gt;</code>: not equal to.</li>\n <li><code>*=</code>: contains.</li>\n <li><code>^=</code>: starts with.</li>\n <li><code>$=</code>: ends with.</li>\n <li>\n <code>?=</code>: wildcards: <code>?</code>=any single character,\n <code>*</code>=0-N characters.\n </li>\n <li><code>~=</code>: regular expression.</li>\n <li>\n <code>%=</code>: fuzzy matching. The value is followed by\n <code>:</code> and the minimum similarity treshold.\n </li>\n <li><code>==</code>: equal (numeric).</li>\n <li><code>!=</code>: not equal (numeric).</li>\n <li><code>&lt;</code>: less-than (numeric).</li>\n <li><code>&gt;</code>: greater-than (numeric).</li>\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\n <li>\n <code>:</code> (flags): any the specified flags (comma-separated)\n must be present.\n </li>\n <li>\n <code>&amp;:</code> (flags): all the specified flags\n (comma-separated) must be present.\n </li>\n <li>\n <code>!:</code> (flags): none of the specified flags\n (comma-separated) must be present.\n </li>\n </ul>\n <p>Flags can be specified either with name or value.</p>\n <p>\n Value escapes: <code>\\[</code>=<code>[</code>,\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\n character code.\n </p>\n </div>\n </mat-expansion-panel>\n </form>\n </mat-card-content>\n</mat-card>\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{width:100%;border-collapse:collapse}table.pins tbody tr:nth-child(odd){background-color:#dedcdc}table.pins th{text-align:left;font-weight:400;color:silver}table.pins td{padding:2px 4px;border:1px solid silver}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i8.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i8.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i7.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i7.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i7.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i8$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i10.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i11.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i13.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i14.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i15.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ItemQueryComponent, deps: [{ token: i1.FormBuilder }, { token: i2.Clipboard }, { token: i3.AppRepository }, { token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Component }); }
166
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: ItemQueryComponent, isStandalone: false, selector: "cadmus-item-query", inputs: { query: "query", lastQueries: "lastQueries", disabled: "disabled" }, outputs: { querySubmit: "querySubmit" }, viewQueries: [{ propertyName: "queryElement", first: true, predicate: ["queryta"], descendants: true }], ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-content>\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\n <div>\n <!-- query -->\n <mat-form-field appearance=\"fill\" class=\"full-width\">\n <mat-label>query</mat-label>\n <textarea\n #queryta\n matInput\n rows=\"3\"\n [formControl]=\"queryCtl\"\n spellcheck=\"false\"\n cdkTextareaAutosize\n cdkAutosizeMinRows=\"2\"\n cdkAutosizeMaxRows=\"4\"\n (keydown.enter)=\"submitQuery(); (false)\"\n ></textarea>\n @if ( queryCtl.hasError('required') && (queryCtl.dirty ||\n queryCtl.touched) ) {\n <mat-error>enter a query</mat-error>\n }\n </mat-form-field>\n <button\n type=\"button\"\n color=\"warn\"\n mat-icon-button\n matTooltip=\"Clear query\"\n (click)=\"queryCtl.reset()\"\n >\n <mat-icon class=\"mat-warn\">clear</mat-icon>\n </button>\n <button\n type=\"submit\"\n color=\"primary\"\n class=\"mat-primary\"\n mat-button\n matTooltip=\"Search items\"\n [disabled]=\"disabled || form.invalid\"\n >\n <mat-icon>search</mat-icon>\n search\n </button>\n </div>\n <br />\n <!-- history -->\n @if (lastQueries?.length) {\n <div>\n <mat-form-field class=\"full-width\">\n <mat-label>history</mat-label>\n <mat-select [formControl]=\"history\">\n @for (q of lastQueries; track q) {\n <mat-option [value]=\"q\">\n {{ q }}\n </mat-option>\n }\n </mat-select>\n <button\n matSuffix\n type=\"button\"\n mat-icon-button\n matTooltip=\"Copy to query\"\n [disabled]=\"!history.value\"\n (click)=\"setQuery(history.value)\"\n >\n <mat-icon>check_circle</mat-icon>\n </button>\n </mat-form-field>\n </div>\n }\n <br />\n\n <!-- parts/frr list -->\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Pins Reference</mat-panel-title>\n </mat-expansion-panel-header>\n @if (partDefs?.length) {\n <div>\n <mat-form-field>\n <mat-label>part/fr.</mat-label>\n <mat-select [formControl]=\"partDef\">\n @for (def of partDefs; track def) {\n <mat-option [value]=\"def.typeId\" [matTooltip]=\"def.description\">\n {{ def.name }} ({{ def.typeId.startsWith(\"fr.\") ? \"F\" : \"P\" }})\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <!-- selected part's pins -->\n @if (loadingPinDefs) {\n <mat-progress-bar mode=\"indeterminate\" />\n } @if (pinDefs?.length) {\n <table class=\"pins\">\n <thead>\n <tr>\n <th></th>\n <th>name</th>\n <th>type</th>\n <th>tip</th>\n <th>attrs</th>\n </tr>\n </thead>\n <tbody>\n @for (pd of pinDefs; track pd) {\n <tr>\n <td>\n <button\n mat-icon-button\n type=\"button\"\n color=\"primary\"\n matTooltip=\"Copy name\"\n (click)=\"copyToClipboard(pd.name)\"\n >\n <mat-icon class=\"mat-primary\">content_copy</mat-icon>\n </button>\n </td>\n <td>{{ pd.name }}</td>\n <td>{{ pinTypeIdToString(pd.type) }}</td>\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\n <td>{{ pd.attributes }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n </div>\n }\n </mat-expansion-panel>\n\n <!-- help -->\n <br />\n <mat-expansion-panel [expanded]=\"false\">\n <mat-expansion-panel-header>\n <mat-panel-title>Quick Help</mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"query-help\">\n <p>\n Pairs are between <code>[]</code>. Each pair has field name +\n operator + field value. Connect multiple pairs with\n <code>AND</code> and <code>OR</code>, and group them using brackets.\n Example:\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\n </p>\n <h4>Fields</h4>\n <ul>\n <li><code>t</code>, <code>title</code>: item's title.</li>\n <li>\n <code>dsc</code>, <code>description</code>: item's description.\n </li>\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\n <li><code>sortKey</code>: item's sort key.</li>\n <li><code>flags</code>: item's flags.</li>\n <li>\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\n part type ID.\n </li>\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\n <li><code>n</code>, <code>name</code>: pin's name.</li>\n <li><code>v</code>, <code>value</code>: pin's value.</li>\n </ul>\n <h4>Operators</h4>\n <ul>\n <li><code>=</code>: equal to.</li>\n <li><code>&lt;&gt;</code>: not equal to.</li>\n <li><code>*=</code>: contains.</li>\n <li><code>^=</code>: starts with.</li>\n <li><code>$=</code>: ends with.</li>\n <li>\n <code>?=</code>: wildcards: <code>?</code>=any single character,\n <code>*</code>=0-N characters.\n </li>\n <li><code>~=</code>: regular expression.</li>\n <li>\n <code>%=</code>: fuzzy matching. The value is followed by\n <code>:</code> and the minimum similarity treshold.\n </li>\n <li><code>==</code>: equal (numeric).</li>\n <li><code>!=</code>: not equal (numeric).</li>\n <li><code>&lt;</code>: less-than (numeric).</li>\n <li><code>&gt;</code>: greater-than (numeric).</li>\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\n <li>\n <code>:</code> (flags): any the specified flags (comma-separated)\n must be present.\n </li>\n <li>\n <code>&amp;:</code> (flags): all the specified flags\n (comma-separated) must be present.\n </li>\n <li>\n <code>!:</code> (flags): none of the specified flags\n (comma-separated) must be present.\n </li>\n </ul>\n <p>Flags can be specified either with name or value.</p>\n <p>\n Value escapes: <code>\\[</code>=<code>[</code>,\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\n character code.\n </p>\n </div>\n </mat-expansion-panel>\n </form>\n </mat-card-content>\n</mat-card>\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{width:100%;border-collapse:collapse}table.pins tbody tr:nth-child(odd){background-color:#dedcdc}table.pins th{text-align:left;font-weight:400;color:silver}table.pins td{padding:2px 4px;border:1px solid silver}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i8.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i8.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i7.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i7.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i7.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "component", type: i8$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i8$1.MatLabel, selector: "mat-label" }, { kind: "directive", type: i8$1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i8$1.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i10.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: i11.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: i13.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i14.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i15.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] }); }
167
167
  }
168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ItemQueryComponent, decorators: [{
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ItemQueryComponent, decorators: [{
169
169
  type: Component,
170
170
  args: [{ selector: 'cadmus-item-query', standalone: false, template: "<mat-card appearance=\"outlined\">\n <mat-card-content>\n <form [formGroup]=\"form\" (submit)=\"submitQuery()\">\n <div>\n <!-- query -->\n <mat-form-field appearance=\"fill\" class=\"full-width\">\n <mat-label>query</mat-label>\n <textarea\n #queryta\n matInput\n rows=\"3\"\n [formControl]=\"queryCtl\"\n spellcheck=\"false\"\n cdkTextareaAutosize\n cdkAutosizeMinRows=\"2\"\n cdkAutosizeMaxRows=\"4\"\n (keydown.enter)=\"submitQuery(); (false)\"\n ></textarea>\n @if ( queryCtl.hasError('required') && (queryCtl.dirty ||\n queryCtl.touched) ) {\n <mat-error>enter a query</mat-error>\n }\n </mat-form-field>\n <button\n type=\"button\"\n color=\"warn\"\n mat-icon-button\n matTooltip=\"Clear query\"\n (click)=\"queryCtl.reset()\"\n >\n <mat-icon class=\"mat-warn\">clear</mat-icon>\n </button>\n <button\n type=\"submit\"\n color=\"primary\"\n class=\"mat-primary\"\n mat-button\n matTooltip=\"Search items\"\n [disabled]=\"disabled || form.invalid\"\n >\n <mat-icon>search</mat-icon>\n search\n </button>\n </div>\n <br />\n <!-- history -->\n @if (lastQueries?.length) {\n <div>\n <mat-form-field class=\"full-width\">\n <mat-label>history</mat-label>\n <mat-select [formControl]=\"history\">\n @for (q of lastQueries; track q) {\n <mat-option [value]=\"q\">\n {{ q }}\n </mat-option>\n }\n </mat-select>\n <button\n matSuffix\n type=\"button\"\n mat-icon-button\n matTooltip=\"Copy to query\"\n [disabled]=\"!history.value\"\n (click)=\"setQuery(history.value)\"\n >\n <mat-icon>check_circle</mat-icon>\n </button>\n </mat-form-field>\n </div>\n }\n <br />\n\n <!-- parts/frr list -->\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Pins Reference</mat-panel-title>\n </mat-expansion-panel-header>\n @if (partDefs?.length) {\n <div>\n <mat-form-field>\n <mat-label>part/fr.</mat-label>\n <mat-select [formControl]=\"partDef\">\n @for (def of partDefs; track def) {\n <mat-option [value]=\"def.typeId\" [matTooltip]=\"def.description\">\n {{ def.name }} ({{ def.typeId.startsWith(\"fr.\") ? \"F\" : \"P\" }})\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <!-- selected part's pins -->\n @if (loadingPinDefs) {\n <mat-progress-bar mode=\"indeterminate\" />\n } @if (pinDefs?.length) {\n <table class=\"pins\">\n <thead>\n <tr>\n <th></th>\n <th>name</th>\n <th>type</th>\n <th>tip</th>\n <th>attrs</th>\n </tr>\n </thead>\n <tbody>\n @for (pd of pinDefs; track pd) {\n <tr>\n <td>\n <button\n mat-icon-button\n type=\"button\"\n color=\"primary\"\n matTooltip=\"Copy name\"\n (click)=\"copyToClipboard(pd.name)\"\n >\n <mat-icon class=\"mat-primary\">content_copy</mat-icon>\n </button>\n </td>\n <td>{{ pd.name }}</td>\n <td>{{ pinTypeIdToString(pd.type) }}</td>\n <td style=\"max-width: 20em\">{{ pd.tip }}</td>\n <td>{{ pd.attributes }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n </div>\n }\n </mat-expansion-panel>\n\n <!-- help -->\n <br />\n <mat-expansion-panel [expanded]=\"false\">\n <mat-expansion-panel-header>\n <mat-panel-title>Quick Help</mat-panel-title>\n </mat-expansion-panel-header>\n <div class=\"query-help\">\n <p>\n Pairs are between <code>[]</code>. Each pair has field name +\n operator + field value. Connect multiple pairs with\n <code>AND</code> and <code>OR</code>, and group them using brackets.\n Example:\n <code>[title*=test] AND ([facet=default] OR [facet=tiled])</code>.\n </p>\n <h4>Fields</h4>\n <ul>\n <li><code>t</code>, <code>title</code>: item's title.</li>\n <li>\n <code>dsc</code>, <code>description</code>: item's description.\n </li>\n <li><code>facet</code>, <code>facetId</code>: item's facet ID.</li>\n <li><code>group</code>, <code>groupId</code>: item's group ID.</li>\n <li><code>sortKey</code>: item's sort key.</li>\n <li><code>flags</code>: item's flags.</li>\n <li>\n <code>type</code>, <code>partType</code>, <code>partTypeId</code>:\n part type ID.\n </li>\n <li><code>role</code>, <code>roleId</code>: part role ID.</li>\n <li><code>n</code>, <code>name</code>: pin's name.</li>\n <li><code>v</code>, <code>value</code>: pin's value.</li>\n </ul>\n <h4>Operators</h4>\n <ul>\n <li><code>=</code>: equal to.</li>\n <li><code>&lt;&gt;</code>: not equal to.</li>\n <li><code>*=</code>: contains.</li>\n <li><code>^=</code>: starts with.</li>\n <li><code>$=</code>: ends with.</li>\n <li>\n <code>?=</code>: wildcards: <code>?</code>=any single character,\n <code>*</code>=0-N characters.\n </li>\n <li><code>~=</code>: regular expression.</li>\n <li>\n <code>%=</code>: fuzzy matching. The value is followed by\n <code>:</code> and the minimum similarity treshold.\n </li>\n <li><code>==</code>: equal (numeric).</li>\n <li><code>!=</code>: not equal (numeric).</li>\n <li><code>&lt;</code>: less-than (numeric).</li>\n <li><code>&gt;</code>: greater-than (numeric).</li>\n <li><code>&lt;=</code>: less-than or equal (numeric).</li>\n <li><code>&gt;=</code>: greater-than or equal (numeric).</li>\n <li>\n <code>:</code> (flags): any the specified flags (comma-separated)\n must be present.\n </li>\n <li>\n <code>&amp;:</code> (flags): all the specified flags\n (comma-separated) must be present.\n </li>\n <li>\n <code>!:</code> (flags): none of the specified flags\n (comma-separated) must be present.\n </li>\n </ul>\n <p>Flags can be specified either with name or value.</p>\n <p>\n Value escapes: <code>\\[</code>=<code>[</code>,\n <code>\\]</code>=<code>]</code>, <code>\\HHHH</code>=Unicode 16-bits\n character code.\n </p>\n </div>\n </mat-expansion-panel>\n </form>\n </mat-card-content>\n</mat-card>\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{width:100%;border-collapse:collapse}table.pins tbody tr:nth-child(odd){background-color:#dedcdc}table.pins th{text-align:left;font-weight:400;color:silver}table.pins td{padding:2px 4px;border:1px solid silver}\n"] }]
171
171
  }], ctorParameters: () => [{ type: i1.FormBuilder }, { type: i2.Clipboard }, { type: i3.AppRepository }, { type: i4.ItemService }], propDecorators: { query: [{
@@ -285,10 +285,10 @@ class ItemSearchRepository {
285
285
  this._store.reset();
286
286
  });
287
287
  }
288
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
289
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' }); }
288
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ItemSearchRepository, deps: [{ token: i4.ItemService }], target: i0.ɵɵFactoryTarget.Injectable }); }
289
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ItemSearchRepository, providedIn: 'root' }); }
290
290
  }
291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ItemSearchRepository, decorators: [{
291
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ItemSearchRepository, decorators: [{
292
292
  type: Injectable,
293
293
  args: [{ providedIn: 'root' }]
294
294
  }], ctorParameters: () => [{ type: i4.ItemService }] });
@@ -343,10 +343,10 @@ class ItemSearchComponent {
343
343
  reset() {
344
344
  this._repository.reset();
345
345
  }
346
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", 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 }); }
347
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.0", type: ItemSearchComponent, isStandalone: false, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <mat-card-title>Item Search</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <div id=\"container\">\n <!-- query -->\n <div id=\"query\">\n <cadmus-item-query\n [query]=\"query$ | async\"\n [lastQueries]=\"(lastQueries$ | async) || []\"\n (querySubmit)=\"submitQuery($event)\"\n ></cadmus-item-query>\n </div>\n\n <!-- list -->\n @if (page$ | async; as page) {\n <div id=\"list\">\n @if (loading$ | async) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n } @if (error$ | async; as error) {\n <div>{{ error }}</div>\n } @if (page.items.length) {\n <table>\n <thead>\n <th></th>\n <th>facet</th>\n <th>flags</th>\n <th>title</th>\n <th>description</th>\n <th class=\"noif-lt-md\">group</th>\n <th class=\"noif-lt-md\">user</th>\n <th class=\"noif-lt-md\">last saved</th>\n <th class=\"noif-lt-md\">creator</th>\n </thead>\n <tbody>\n @for (item of page.items; track item.id) {\n <tr>\n <td class=\"fit-width\">\n <button\n mat-icon-button\n type=\"button\"\n color=\"primary\"\n (click)=\"editItem(item)\"\n matTooltip=\"Edit this item\"\n >\n <mat-icon class=\"mat-primary\">mode_edit</mat-icon>\n </button>\n @if (userLevel > 2) {\n <button\n mat-icon-button\n type=\"button\"\n color=\"warn\"\n (click)=\"deleteItem(item)\"\n matTooltip=\"Delete this item\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n }\n </td>\n <td class=\"fit-width\">\n <cadmus-facet-badge\n [data]=\"{ definitions: facets, facetId: item.facetId }\"\n ></cadmus-facet-badge>\n </td>\n <td class=\"fit-width\">\n <cadmus-flags-badge\n [data]=\"{ definitions: flags, flags: item.flags }\"\n ></cadmus-flags-badge>\n </td>\n <td>{{ item.title }}</td>\n <td>{{ item.description }}</td>\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\n <td class=\"noif-lt-md\">\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\n </td>\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n <!-- paginator -->\n <div class=\"form-row\">\n <button\n type=\"button\"\n mat-icon-button\n color=\"warn\"\n matTooltip=\"Reset list\"\n (click)=\"reset()\"\n >\n <mat-icon class=\"mat-warn\">autorenew</mat-icon>\n </button>\n <mat-paginator\n [length]=\"page.total\"\n [pageIndex]=\"page.pageNumber - 1\"\n [pageSize]=\"page.pageSize\"\n [pageSizeOptions]=\"[5, 10, 20, 50, 100]\"\n (page)=\"onPageChange($event)\"\n [showFirstLastButtons]=\"true\"\n ></mat-paginator>\n </div>\n </div>\n }\n </div>\n </mat-card-content>\n</mat-card>\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: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i8.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i8.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i8.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i8.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i10$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i15.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i13$1.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["data"] }, { kind: "component", type: i13$1.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["data"] }, { kind: "component", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: ["query", "lastQueries", "disabled"], outputs: ["querySubmit"] }, { kind: "pipe", type: i15$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i15$1.DatePipe, name: "date" }] }); }
346
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.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 }); }
347
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.1", type: ItemSearchComponent, isStandalone: false, selector: "cadmus-item-search", ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <mat-card-title>Item Search</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <div id=\"container\">\n <!-- query -->\n <div id=\"query\">\n <cadmus-item-query\n [query]=\"query$ | async\"\n [lastQueries]=\"(lastQueries$ | async) || []\"\n (querySubmit)=\"submitQuery($event)\"\n ></cadmus-item-query>\n </div>\n\n <!-- list -->\n @if (page$ | async; as page) {\n <div id=\"list\">\n @if (loading$ | async) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n } @if (error$ | async; as error) {\n <div>{{ error }}</div>\n } @if (page.items.length) {\n <table>\n <thead>\n <th></th>\n <th>facet</th>\n <th>flags</th>\n <th>title</th>\n <th>description</th>\n <th class=\"noif-lt-md\">group</th>\n <th class=\"noif-lt-md\">user</th>\n <th class=\"noif-lt-md\">last saved</th>\n <th class=\"noif-lt-md\">creator</th>\n </thead>\n <tbody>\n @for (item of page.items; track item.id) {\n <tr>\n <td class=\"fit-width\">\n <button\n mat-icon-button\n type=\"button\"\n color=\"primary\"\n (click)=\"editItem(item)\"\n matTooltip=\"Edit this item\"\n >\n <mat-icon class=\"mat-primary\">mode_edit</mat-icon>\n </button>\n @if (userLevel > 2) {\n <button\n mat-icon-button\n type=\"button\"\n color=\"warn\"\n (click)=\"deleteItem(item)\"\n matTooltip=\"Delete this item\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n }\n </td>\n <td class=\"fit-width\">\n <cadmus-facet-badge\n [data]=\"{ definitions: facets, facetId: item.facetId }\"\n ></cadmus-facet-badge>\n </td>\n <td class=\"fit-width\">\n <cadmus-flags-badge\n [data]=\"{ definitions: flags, flags: item.flags }\"\n ></cadmus-flags-badge>\n </td>\n <td>{{ item.title }}</td>\n <td>{{ item.description }}</td>\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\n <td class=\"noif-lt-md\">\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\n </td>\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n <!-- paginator -->\n <div class=\"form-row\">\n <button\n type=\"button\"\n mat-icon-button\n color=\"warn\"\n matTooltip=\"Reset list\"\n (click)=\"reset()\"\n >\n <mat-icon class=\"mat-warn\">autorenew</mat-icon>\n </button>\n <mat-paginator\n [length]=\"page.total\"\n [pageIndex]=\"page.pageNumber - 1\"\n [pageSize]=\"page.pageSize\"\n [pageSizeOptions]=\"[5, 10, 20, 50, 100]\"\n (page)=\"onPageChange($event)\"\n [showFirstLastButtons]=\"true\"\n ></mat-paginator>\n </div>\n </div>\n }\n </div>\n </mat-card-content>\n</mat-card>\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: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "component", type: i8.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i8.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i8.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i8.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i9.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i10$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i15.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: i13$1.FacetBadgeComponent, selector: "cadmus-facet-badge", inputs: ["data"] }, { kind: "component", type: i13$1.FlagsBadgeComponent, selector: "cadmus-flags-badge", inputs: ["data"] }, { kind: "component", type: ItemQueryComponent, selector: "cadmus-item-query", inputs: ["query", "lastQueries", "disabled"], outputs: ["querySubmit"] }, { kind: "pipe", type: i15$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i15$1.DatePipe, name: "date" }] }); }
348
348
  }
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ItemSearchComponent, decorators: [{
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: ItemSearchComponent, decorators: [{
350
350
  type: Component,
351
351
  args: [{ selector: 'cadmus-item-search', standalone: false, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <mat-card-title>Item Search</mat-card-title>\n </mat-card-header>\n <mat-card-content>\n <div id=\"container\">\n <!-- query -->\n <div id=\"query\">\n <cadmus-item-query\n [query]=\"query$ | async\"\n [lastQueries]=\"(lastQueries$ | async) || []\"\n (querySubmit)=\"submitQuery($event)\"\n ></cadmus-item-query>\n </div>\n\n <!-- list -->\n @if (page$ | async; as page) {\n <div id=\"list\">\n @if (loading$ | async) {\n <div>\n <mat-progress-bar mode=\"indeterminate\"></mat-progress-bar>\n </div>\n } @if (error$ | async; as error) {\n <div>{{ error }}</div>\n } @if (page.items.length) {\n <table>\n <thead>\n <th></th>\n <th>facet</th>\n <th>flags</th>\n <th>title</th>\n <th>description</th>\n <th class=\"noif-lt-md\">group</th>\n <th class=\"noif-lt-md\">user</th>\n <th class=\"noif-lt-md\">last saved</th>\n <th class=\"noif-lt-md\">creator</th>\n </thead>\n <tbody>\n @for (item of page.items; track item.id) {\n <tr>\n <td class=\"fit-width\">\n <button\n mat-icon-button\n type=\"button\"\n color=\"primary\"\n (click)=\"editItem(item)\"\n matTooltip=\"Edit this item\"\n >\n <mat-icon class=\"mat-primary\">mode_edit</mat-icon>\n </button>\n @if (userLevel > 2) {\n <button\n mat-icon-button\n type=\"button\"\n color=\"warn\"\n (click)=\"deleteItem(item)\"\n matTooltip=\"Delete this item\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n }\n </td>\n <td class=\"fit-width\">\n <cadmus-facet-badge\n [data]=\"{ definitions: facets, facetId: item.facetId }\"\n ></cadmus-facet-badge>\n </td>\n <td class=\"fit-width\">\n <cadmus-flags-badge\n [data]=\"{ definitions: flags, flags: item.flags }\"\n ></cadmus-flags-badge>\n </td>\n <td>{{ item.title }}</td>\n <td>{{ item.description }}</td>\n <td class=\"noif-lt-md\">{{ item.groupId }}</td>\n <td class=\"noif-lt-md\">{{ item.userId }}</td>\n <td class=\"noif-lt-md\">\n {{ item.timeModified | date : \"yyyy-MM-dd HH:mm:ss\" }}\n </td>\n <td class=\"noif-lt-md\">{{ item.creatorId }}</td>\n </tr>\n }\n </tbody>\n </table>\n }\n <!-- paginator -->\n <div class=\"form-row\">\n <button\n type=\"button\"\n mat-icon-button\n color=\"warn\"\n matTooltip=\"Reset list\"\n (click)=\"reset()\"\n >\n <mat-icon class=\"mat-warn\">autorenew</mat-icon>\n </button>\n <mat-paginator\n [length]=\"page.total\"\n [pageIndex]=\"page.pageNumber - 1\"\n [pageSize]=\"page.pageSize\"\n [pageSizeOptions]=\"[5, 10, 20, 50, 100]\"\n (page)=\"onPageChange($event)\"\n [showFirstLastButtons]=\"true\"\n ></mat-paginator>\n </div>\n </div>\n }\n </div>\n </mat-card-content>\n</mat-card>\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"] }]
352
352
  }], ctorParameters: () => [{ type: ItemSearchRepository }, { type: i2$1.DialogService }, { type: i3$1.Router }, { type: i4$1.AuthJwtService }, { type: i4.UserLevelService }, { type: i3.AppRepository }] });
@@ -356,8 +356,8 @@ const RouterModuleForChild = RouterModule.forChild([
356
356
  { path: '', pathMatch: 'full', component: ItemSearchComponent },
357
357
  ]);
358
358
  class CadmusItemSearchModule {
359
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
360
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.0", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
359
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: CadmusItemSearchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
360
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.1", ngImport: i0, type: CadmusItemSearchModule, declarations: [ItemQueryComponent, ItemSearchComponent], imports: [CommonModule,
361
361
  ReactiveFormsModule,
362
362
  FormsModule, i3$1.RouterModule,
363
363
  // material
@@ -380,7 +380,7 @@ class CadmusItemSearchModule {
380
380
  NgToolsModule,
381
381
  NgMatToolsModule,
382
382
  PagedDataBrowsersModule], exports: [ItemQueryComponent, ItemSearchComponent] }); }
383
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
383
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: CadmusItemSearchModule, imports: [CommonModule,
384
384
  ReactiveFormsModule,
385
385
  FormsModule,
386
386
  RouterModuleForChild,
@@ -405,7 +405,7 @@ class CadmusItemSearchModule {
405
405
  NgMatToolsModule,
406
406
  PagedDataBrowsersModule] }); }
407
407
  }
408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.1", ngImport: i0, type: CadmusItemSearchModule, decorators: [{
409
409
  type: NgModule,
410
410
  args: [{
411
411
  imports: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrmidon/cadmus-item-search",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Cadmus - items search.",
5
5
  "keywords": [
6
6
  "Cadmus"
@@ -20,8 +20,8 @@
20
20
  "@myrmidon/ng-mat-tools": "^4.0.0",
21
21
  "@myrmidon/paged-data-browsers": "^3.0.0",
22
22
  "@myrmidon/cadmus-api": "^9.0.0",
23
- "@myrmidon/cadmus-state": "^9.0.0",
24
- "@myrmidon/cadmus-ui": "^9.0.0"
23
+ "@myrmidon/cadmus-state": "^9.0.1",
24
+ "@myrmidon/cadmus-ui": "^9.0.1"
25
25
  },
26
26
  "dependencies": {
27
27
  "tslib": "^2.3.0"