@tellaro/tql 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/types.d.ts +5 -0
- package/dist/style.css +1 -1
- package/dist/vue/TqlInput.vue.js +3 -2
- package/dist/vue/TqlInput.vue2.js +329 -289
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -205,6 +205,7 @@ export interface TqlInputProps {
|
|
|
205
205
|
validateOnInput?: boolean;
|
|
206
206
|
debounceMs?: number;
|
|
207
207
|
fieldSchema?: TqlFieldSchema[];
|
|
208
|
+
fieldValues?: Record<string, string[]>;
|
|
208
209
|
modelName?: string;
|
|
209
210
|
snippets?: TqlSnippet[];
|
|
210
211
|
showSnippetButton?: boolean;
|
|
@@ -212,6 +213,10 @@ export interface TqlInputProps {
|
|
|
212
213
|
syntaxHighlighting?: boolean;
|
|
213
214
|
/** Always show validation errors instead of requiring click on icon. Defaults to true. */
|
|
214
215
|
alwaysShowErrors?: boolean;
|
|
216
|
+
/** Allow textarea to be resized (only applies when multiline is true) */
|
|
217
|
+
resizable?: boolean;
|
|
218
|
+
/** Minimum height for the input */
|
|
219
|
+
minHeight?: string;
|
|
215
220
|
/** Show complexity badge and warnings (default: false) */
|
|
216
221
|
showComplexity?: boolean;
|
|
217
222
|
/** Show query history dropdown (default: false) */
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tql-autocomplete-dropdown[data-v-3df9a4be]{position:fixed;top:var(--dropdown-top);left:var(--dropdown-left);z-index:9999;min-width:280px;max-width:450px;max-height:var(--dropdown-max-height);background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #ddd);border-radius:var(--border-radius, 6px);box-shadow:0 4px 16px #00000026;overflow:hidden;display:flex;flex-direction:column}.tql-completion-list[data-v-3df9a4be]{overflow-y:auto;max-height:calc(var(--dropdown-max-height) - 60px)}.tql-completion-item[data-v-3df9a4be]{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background-color .15s}.tql-completion-item[data-v-3df9a4be]:hover,.tql-completion-item.selected[data-v-3df9a4be]{background:var(--highlight-bg, #f0f0f0)}.tql-completion-icon[data-v-3df9a4be]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:4px;font-size:.75rem}.tql-completion-icon.tql-completion-kind-field[data-v-3df9a4be]{background:var(--blue-100, #e3f2fd);color:var(--blue-600, #1e88e5)}.tql-completion-icon.tql-completion-kind-operator[data-v-3df9a4be]{background:var(--pink-100, #fce4ec);color:var(--pink-600, #d81b60)}.tql-completion-icon.tql-completion-kind-value[data-v-3df9a4be]{background:var(--green-100, #e8f5e9);color:var(--green-600, #43a047)}.tql-completion-icon.tql-completion-kind-keyword[data-v-3df9a4be]{background:var(--purple-100, #f3e5f5);color:var(--purple-600, #8e24aa)}.tql-completion-icon.tql-completion-kind-snippet[data-v-3df9a4be]{background:var(--orange-100, #fff3e0);color:var(--orange-600, #fb8c00)}.tql-completion-icon.tql-completion-kind-mutator[data-v-3df9a4be]{background:var(--cyan-100, #e0f7fa);color:var(--cyan-600, #00acc1)}.tql-completion-icon.tql-completion-kind-aggregation[data-v-3df9a4be]{background:var(--indigo-100, #e8eaf6);color:var(--indigo-600, #3949ab)}.tql-completion-icon.tql-completion-kind-logicalOp[data-v-3df9a4be]{background:var(--yellow-100, #fffde7);color:var(--yellow-700, #fbc02d)}.tql-completion-icon.tql-completion-kind-typeHint[data-v-3df9a4be]{background:var(--teal-100, #e0f2f1);color:var(--teal-600, #00897b)}.tql-completion-icon.tql-completion-kind-visualization[data-v-3df9a4be]{background:var(--red-100, #ffebee);color:var(--red-600, #e53935)}.tql-completion-content[data-v-3df9a4be]{flex:1;display:flex;flex-direction:column;min-width:0}.tql-completion-label[data-v-3df9a4be]{font-family:Courier New,monospace;font-size:.875rem;font-weight:500;color:var(--text-color, #333);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tql-completion-detail[data-v-3df9a4be]{font-size:.75rem;color:var(--text-color-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tql-completion-kind-badge[data-v-3df9a4be]{font-size:.625rem;padding:.125rem .375rem;background:var(--surface-100, #f5f5f5);border-radius:3px;color:var(--text-color-secondary, #666);text-transform:uppercase;letter-spacing:.025em}.tql-completion-docs[data-v-3df9a4be]{padding:.5rem .75rem;border-top:1px solid var(--surface-border, #ddd);background:var(--surface-50, #fafafa);font-size:.75rem;color:var(--text-color-secondary, #666);max-height:60px;overflow-y:auto}.tql-preview[data-v-bae811e6]{font-family:ui-monospace,monospace;font-size:13px;line-height:1.5;padding:12px;border:1px solid var(--tql-preview-border, #e0e0e0);border-radius:6px;background:var(--tql-preview-bg, #fafafa)}.tql-preview--compact[data-v-bae811e6]{padding:8px;font-size:12px}.tql-preview--empty[data-v-bae811e6]{color:var(--tql-preview-muted, #888)}.tql-preview__empty[data-v-bae811e6]{text-align:center;padding:20px}.tql-preview__complexity[data-v-bae811e6]{display:flex;align-items:center;gap:12px;margin-bottom:12px}.tql-preview__complexity-badge[data-v-bae811e6]{padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}.tql-preview--low .tql-preview__complexity-badge[data-v-bae811e6]{background:var(--tql-preview-low-bg, #e8f5e9);color:var(--tql-preview-low-text, #2e7d32)}.tql-preview--medium .tql-preview__complexity-badge[data-v-bae811e6]{background:var(--tql-preview-medium-bg, #fff3e0);color:var(--tql-preview-medium-text, #e65100)}.tql-preview--high .tql-preview__complexity-badge[data-v-bae811e6]{background:var(--tql-preview-high-bg, #ffebee);color:var(--tql-preview-high-text, #c62828)}.tql-preview__field-count[data-v-bae811e6]{color:var(--tql-preview-muted, #666);font-size:12px}.tql-preview__warnings[data-v-bae811e6]{margin-bottom:12px}.tql-preview__warning[data-v-bae811e6]{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;border-radius:4px;margin-bottom:4px}.tql-preview__warning--info[data-v-bae811e6]{background:var(--tql-preview-info-bg, #e3f2fd);color:var(--tql-preview-info-text, #1565c0)}.tql-preview__warning--warning[data-v-bae811e6]{background:var(--tql-preview-warning-bg, #fff3e0);color:var(--tql-preview-warning-text, #e65100)}.tql-preview__warning--error[data-v-bae811e6]{background:var(--tql-preview-error-bg, #ffebee);color:var(--tql-preview-error-text, #c62828)}.tql-preview__warning-icon[data-v-bae811e6]{font-weight:700;width:16px;text-align:center}.tql-preview__warning-text[data-v-bae811e6]{flex:1}.tql-preview__suggestions[data-v-bae811e6]{margin-bottom:12px;padding:8px;background:var(--tql-preview-suggestion-bg, #f5f5f5);border-radius:4px}.tql-preview__suggestions-header[data-v-bae811e6]{font-weight:600;margin-bottom:4px;color:var(--tql-preview-header, #333)}.tql-preview__suggestions-list[data-v-bae811e6]{margin:0;padding-left:20px}.tql-preview__suggestion[data-v-bae811e6]{color:var(--tql-preview-muted, #666);margin:2px 0}.tql-preview__tree[data-v-bae811e6]{margin-bottom:12px}.tql-preview__tree-header[data-v-bae811e6],.tql-preview__fields-header[data-v-bae811e6],.tql-preview__operators-header[data-v-bae811e6]{font-weight:600;margin-bottom:8px;color:var(--tql-preview-header, #333);font-size:12px;text-transform:uppercase;letter-spacing:.5px}.tql-preview__tree-content[data-v-bae811e6]{border:1px solid var(--tql-preview-tree-border, #e0e0e0);border-radius:4px;background:var(--tql-preview-tree-bg, #fff);padding:8px}.tql-preview__node[data-v-bae811e6]{margin:2px 0}.tql-preview__node-content[data-v-bae811e6]{display:flex;align-items:center;gap:4px;padding:2px 4px;border-radius:3px;cursor:pointer}.tql-preview__node-content[data-v-bae811e6]:hover{background:var(--tql-preview-node-hover, #f0f0f0)}.tql-preview__node-toggle[data-v-bae811e6]{width:16px;height:16px;border:none;background:var(--tql-preview-toggle-bg, #e0e0e0);border-radius:3px;cursor:pointer;font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center}.tql-preview__node-toggle[data-v-bae811e6]:hover{background:var(--tql-preview-toggle-hover, #d0d0d0)}.tql-preview__node-toggle--leaf[data-v-bae811e6]{visibility:hidden}.tql-preview__node-type[data-v-bae811e6]{font-weight:600;color:var(--tql-preview-node-type, #666)}.tql-preview__node--and .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-and, #1976d2)}.tql-preview__node--or .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-or, #7b1fa2)}.tql-preview__node--not .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-not, #c62828)}.tql-preview__node--group .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-group, #666)}.tql-preview__node-label[data-v-bae811e6]{flex:1}.tql-preview__fields-list[data-v-bae811e6]{display:flex;flex-direction:column;gap:4px}.tql-preview__field[data-v-bae811e6]{display:flex;align-items:center;gap:6px;padding:4px 8px;background:var(--tql-preview-field-bg, #fff);border:1px solid var(--tql-preview-field-border, #e0e0e0);border-radius:4px;cursor:pointer}.tql-preview__field[data-v-bae811e6]:hover{background:var(--tql-preview-field-hover, #f5f5f5)}.tql-preview__field-name[data-v-bae811e6]{font-weight:600;color:var(--tql-preview-field-name, #1976d2)}.tql-preview__field-mutators[data-v-bae811e6]{color:var(--tql-preview-mutator, #7b1fa2)}.tql-preview__field-operator[data-v-bae811e6]{color:var(--tql-preview-operator, #666)}.tql-preview__field-value[data-v-bae811e6]{color:var(--tql-preview-value, #2e7d32)}.tql-preview__match-type[data-v-bae811e6]{margin-left:auto;padding:1px 4px;border-radius:3px;font-size:10px;font-weight:600;background:var(--tql-preview-match-bg, #f0f0f0)}.tql-preview__match-type--exact[data-v-bae811e6]{background:var(--tql-preview-match-exact-bg, #e8f5e9);color:var(--tql-preview-match-exact, #2e7d32)}.tql-preview__match-type--wildcard[data-v-bae811e6]{background:var(--tql-preview-match-wildcard-bg, #fff3e0);color:var(--tql-preview-match-wildcard, #e65100)}.tql-preview__match-type--regex[data-v-bae811e6]{background:var(--tql-preview-match-regex-bg, #fce4ec);color:var(--tql-preview-match-regex, #c2185b)}.tql-preview__match-type--range[data-v-bae811e6]{background:var(--tql-preview-match-range-bg, #e3f2fd);color:var(--tql-preview-match-range, #1565c0)}.tql-preview__match-type--cidr[data-v-bae811e6]{background:var(--tql-preview-match-cidr-bg, #f3e5f5);color:var(--tql-preview-match-cidr, #7b1fa2)}.tql-preview__operators-list[data-v-bae811e6]{display:flex;flex-wrap:wrap;gap:8px}.tql-preview__operator[data-v-bae811e6]{padding:2px 6px;background:var(--tql-preview-op-bg, #f0f0f0);border-radius:3px;font-size:11px}.tql-input-wrapper[data-v-debfa7f2]{position:relative;display:flex;align-items:flex-start;border:1px solid var(--surface-border, #ddd);border-radius:var(--border-radius, 6px);background:var(--surface-ground, #fff);transition:border-color .2s,box-shadow .2s}.tql-input-wrapper.tql-input-focused[data-v-debfa7f2]{border-color:var(--primary-color, #3b82f6);box-shadow:0 0 0 2px var(--primary-100, rgba(59, 130, 246, .2))}.tql-input-wrapper.tql-input-invalid[data-v-debfa7f2]{border-color:var(--red-500, #ef4444)}.tql-input-wrapper.tql-input-invalid.tql-input-focused[data-v-debfa7f2]{box-shadow:0 0 0 2px var(--red-100, rgba(239, 68, 68, .2))}.tql-input-wrapper.tql-input-disabled[data-v-debfa7f2]{opacity:.6;cursor:not-allowed}.tql-highlight-layer[data-v-debfa7f2]{position:absolute;top:0;left:0;right:0;bottom:0;padding:.5rem .75rem;pointer-events:none;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5;overflow:hidden}.tql-input-multiline .tql-highlight-layer[data-v-debfa7f2]{overflow-y:auto}.tql-input[data-v-debfa7f2]{flex:1;width:100%;padding:.5rem 8rem .5rem .75rem;border:none;background:transparent;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5;color:var(--text-color, #333);outline:none;resize:none}.tql-input.tql-input-highlighted[data-v-debfa7f2]{color:transparent;caret-color:var(--text-color, #333)}.tql-input[data-v-debfa7f2]::placeholder{color:var(--text-color-secondary, #666);opacity:.7}.tql-input[data-v-debfa7f2]:disabled{cursor:not-allowed}.tql-token-field[data-v-debfa7f2]{color:var(--tql-field-color, var(--blue-600, #2563eb))}.tql-token-operator[data-v-debfa7f2]{color:var(--tql-operator-color, var(--pink-600, #db2777));font-weight:500}.tql-token-logicalOp[data-v-debfa7f2]{color:var(--tql-logical-color, var(--purple-600, #9333ea));font-weight:600}.tql-token-collectionOp[data-v-debfa7f2]{color:var(--tql-collection-color, var(--indigo-600, #4f46e5));font-weight:600}.tql-token-string[data-v-debfa7f2]{color:var(--tql-string-color, var(--green-600, #16a34a))}.tql-token-number[data-v-debfa7f2]{color:var(--tql-number-color, var(--orange-600, #ea580c))}.tql-token-boolean[data-v-debfa7f2]{color:var(--tql-boolean-color, var(--cyan-600, #0891b2))}.tql-token-null[data-v-debfa7f2]{color:var(--tql-null-color, var(--gray-500, #6b7280));font-style:italic}.tql-token-mutator[data-v-debfa7f2]{color:var(--tql-mutator-color, var(--teal-600, #0d9488));font-style:italic}.tql-token-aggregation[data-v-debfa7f2]{color:var(--tql-aggregation-color, var(--indigo-600, #4f46e5))}.tql-token-keyword[data-v-debfa7f2]{color:var(--tql-keyword-color, var(--purple-500, #a855f7))}.tql-token-typeHint[data-v-debfa7f2]{color:var(--tql-typehint-color, var(--teal-500, #14b8a6))}.tql-token-visualization[data-v-debfa7f2]{color:var(--tql-viz-color, var(--red-500, #ef4444))}.tql-token-arrow[data-v-debfa7f2]{color:var(--tql-arrow-color, var(--gray-600, #4b5563));font-weight:600}.tql-token-doubleColon[data-v-debfa7f2]{color:var(--tql-colon-color, var(--gray-500, #6b7280))}.tql-token-paren[data-v-debfa7f2],.tql-token-bracket[data-v-debfa7f2]{color:var(--tql-bracket-color, var(--gray-600, #4b5563))}.tql-token-error[data-v-debfa7f2]{color:var(--tql-error-color, var(--red-600, #dc2626));text-decoration:wavy underline;text-decoration-color:var(--red-400, #f87171)}.tql-token-error-range[data-v-debfa7f2]{background-color:var(--red-50, #fef2f2)}.tql-token-unknown[data-v-debfa7f2]{color:var(--text-color-secondary, #666)}.tql-validation-icon[data-v-debfa7f2]{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.tql-input-multiline .tql-validation-icon[data-v-debfa7f2]{top:.75rem;transform:none}.tql-icon-valid[data-v-debfa7f2]{color:var(--green-500, #22c55e)}.tql-icon-invalid[data-v-debfa7f2]{color:var(--red-500, #ef4444)}.tql-icon-clickable[data-v-debfa7f2]{cursor:pointer;transition:transform .2s}.tql-icon-clickable[data-v-debfa7f2]:hover{transform:scale(1.2)}.tql-icon-clickable[data-v-debfa7f2]:focus{outline:2px solid var(--primary-color, #3b82f6);outline-offset:2px;border-radius:50%}.tql-snippet-button[data-v-debfa7f2]{position:absolute;right:2rem;top:50%;transform:translateY(-50%);padding:.25rem;border:none;background:transparent;color:var(--text-color-secondary, #666);cursor:pointer;border-radius:var(--border-radius, 6px);transition:color .2s,background-color .2s}.tql-snippet-button[data-v-debfa7f2]:hover{color:var(--primary-color, #3b82f6);background:var(--surface-100, #f5f5f5)}.tql-input-multiline .tql-snippet-button[data-v-debfa7f2]{top:.75rem;transform:none}.tql-validation-messages[data-v-debfa7f2]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--red-200, #fecaca);border-radius:var(--border-radius, 6px);padding:.5rem;z-index:10;box-shadow:0 2px 8px #0000001a}.tql-input-autocomplete-active .tql-validation-messages[data-v-debfa7f2],.tql-input-autocomplete-active .tql-complexity-warnings[data-v-debfa7f2],.tql-input-autocomplete-active .tql-history-dropdown[data-v-debfa7f2],.tql-input-autocomplete-active .tql-preview-panel[data-v-debfa7f2]{display:none!important}.tql-error-message[data-v-debfa7f2]{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem;color:var(--red-600, #dc2626)}.tql-error-message i[data-v-debfa7f2]{margin-top:.125rem;font-size:.75rem}.tql-error-suggestion[data-v-debfa7f2]{display:block;color:var(--text-color-secondary, #666);font-style:italic;margin-left:1.25rem}.sr-only[data-v-debfa7f2]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tql-toolbar[data-v-debfa7f2]{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:.25rem}.tql-input-multiline .tql-toolbar[data-v-debfa7f2]{top:.5rem;transform:none}.tql-toolbar-button[data-v-debfa7f2]{padding:.25rem;border:none;background:transparent;color:var(--text-color-secondary, #666);cursor:pointer;border-radius:var(--border-radius, 4px);transition:color .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.tql-toolbar-button[data-v-debfa7f2]:hover{color:var(--primary-color, #3b82f6);background:var(--surface-100, #f5f5f5)}.tql-toolbar-button--active[data-v-debfa7f2]{color:var(--primary-color, #3b82f6);background:var(--primary-100, rgba(59, 130, 246, .1))}.tql-validation-status[data-v-debfa7f2]{display:flex;align-items:center}.tql-complexity-badge[data-v-debfa7f2]{display:flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:9999px;font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.025em}.tql-complexity-low[data-v-debfa7f2]{background:var(--green-100, #dcfce7);color:var(--green-700, #15803d)}.tql-complexity-medium[data-v-debfa7f2]{background:var(--yellow-100, #fef9c3);color:var(--yellow-700, #a16207)}.tql-complexity-high[data-v-debfa7f2]{background:var(--red-100, #fee2e2);color:var(--red-700, #b91c1c)}.tql-complexity-count[data-v-debfa7f2]{display:inline-flex;align-items:center;justify-content:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:9999px;background:currentColor;color:#fff;font-size:.5rem}.tql-complexity-low .tql-complexity-count[data-v-debfa7f2]{background:var(--green-600, #16a34a)}.tql-complexity-medium .tql-complexity-count[data-v-debfa7f2]{background:var(--yellow-600, #ca8a04)}.tql-complexity-high .tql-complexity-count[data-v-debfa7f2]{background:var(--red-600, #dc2626)}.tql-complexity-warnings[data-v-debfa7f2]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 6px);padding:.5rem;z-index:9;box-shadow:0 2px 8px #0000001a}.tql-complexity-warning[data-v-debfa7f2]{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem}.tql-complexity-warning i[data-v-debfa7f2]{margin-top:.125rem;font-size:.75rem}.tql-complexity-warning--info[data-v-debfa7f2]{color:var(--blue-600, #2563eb)}.tql-complexity-warning--warning[data-v-debfa7f2]{color:var(--yellow-600, #ca8a04)}.tql-complexity-warning--error[data-v-debfa7f2]{color:var(--red-600, #dc2626)}.tql-complexity-suggestions[data-v-debfa7f2]{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--surface-border, #e0e0e0)}.tql-complexity-suggestion[data-v-debfa7f2]{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem;color:var(--text-color-secondary, #666)}.tql-complexity-suggestion i[data-v-debfa7f2]{color:var(--yellow-500, #eab308)}.tql-history-dropdown[data-v-debfa7f2]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 6px);z-index:20;box-shadow:0 4px 12px #00000026;max-height:300px;overflow:hidden;display:flex;flex-direction:column}.tql-history-header[data-v-debfa7f2]{padding:.5rem;border-bottom:1px solid var(--surface-border, #e0e0e0)}.tql-history-search[data-v-debfa7f2]{width:100%;padding:.375rem .5rem;border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 4px);font-size:.75rem;outline:none}.tql-history-search[data-v-debfa7f2]:focus{border-color:var(--primary-color, #3b82f6)}.tql-history-list[data-v-debfa7f2]{overflow-y:auto;flex:1}.tql-history-item[data-v-debfa7f2]{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem;cursor:pointer;border-bottom:1px solid var(--surface-50, #f9fafb);transition:background-color .15s}.tql-history-item[data-v-debfa7f2]:hover{background:var(--surface-100, #f5f5f5)}.tql-history-item--favorite[data-v-debfa7f2]{background:var(--yellow-50, #fefce8)}.tql-history-item--favorite[data-v-debfa7f2]:hover{background:var(--yellow-100, #fef9c3)}.tql-history-favorite[data-v-debfa7f2]{padding:.125rem;border:none;background:transparent;color:var(--text-color-secondary, #999);cursor:pointer;flex-shrink:0}.tql-history-favorite[data-v-debfa7f2]:hover,.tql-history-item--favorite .tql-history-favorite[data-v-debfa7f2]{color:var(--yellow-500, #eab308)}.tql-history-content[data-v-debfa7f2]{flex:1;min-width:0}.tql-history-label[data-v-debfa7f2]{font-size:.6875rem;font-weight:600;color:var(--text-color, #333);margin-bottom:.125rem}.tql-history-query[data-v-debfa7f2]{font-family:Courier New,monospace;font-size:.6875rem;color:var(--text-color-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tql-history-time[data-v-debfa7f2]{font-size:.625rem;color:var(--text-color-secondary, #999);flex-shrink:0}.tql-history-empty[data-v-debfa7f2]{padding:1rem;text-align:center;color:var(--text-color-secondary, #666);font-size:.75rem}.tql-preview-panel[data-v-debfa7f2]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 6px);z-index:15;box-shadow:0 4px 12px #00000026;max-height:400px;overflow:hidden;display:flex;flex-direction:column}.tql-preview-header[data-v-debfa7f2]{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;border-bottom:1px solid var(--surface-border, #e0e0e0);font-size:.75rem;font-weight:600;color:var(--text-color, #333)}.tql-preview-close[data-v-debfa7f2]{padding:.125rem;border:none;background:transparent;color:var(--text-color-secondary, #666);cursor:pointer;border-radius:var(--border-radius, 4px)}.tql-preview-close[data-v-debfa7f2]:hover{background:var(--surface-100, #f5f5f5);color:var(--text-color, #333)}.tql-preview-panel[data-v-debfa7f2] .tql-preview{border:none;border-radius:0;max-height:350px;overflow-y:auto}
|
|
1
|
+
.tql-autocomplete-dropdown[data-v-3df9a4be]{position:fixed;top:var(--dropdown-top);left:var(--dropdown-left);z-index:9999;min-width:280px;max-width:450px;max-height:var(--dropdown-max-height);background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #ddd);border-radius:var(--border-radius, 6px);box-shadow:0 4px 16px #00000026;overflow:hidden;display:flex;flex-direction:column}.tql-completion-list[data-v-3df9a4be]{overflow-y:auto;max-height:calc(var(--dropdown-max-height) - 60px)}.tql-completion-item[data-v-3df9a4be]{display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;cursor:pointer;transition:background-color .15s}.tql-completion-item[data-v-3df9a4be]:hover,.tql-completion-item.selected[data-v-3df9a4be]{background:var(--highlight-bg, #f0f0f0)}.tql-completion-icon[data-v-3df9a4be]{display:flex;align-items:center;justify-content:center;width:1.5rem;height:1.5rem;border-radius:4px;font-size:.75rem}.tql-completion-icon.tql-completion-kind-field[data-v-3df9a4be]{background:var(--blue-100, #e3f2fd);color:var(--blue-600, #1e88e5)}.tql-completion-icon.tql-completion-kind-operator[data-v-3df9a4be]{background:var(--pink-100, #fce4ec);color:var(--pink-600, #d81b60)}.tql-completion-icon.tql-completion-kind-value[data-v-3df9a4be]{background:var(--green-100, #e8f5e9);color:var(--green-600, #43a047)}.tql-completion-icon.tql-completion-kind-keyword[data-v-3df9a4be]{background:var(--purple-100, #f3e5f5);color:var(--purple-600, #8e24aa)}.tql-completion-icon.tql-completion-kind-snippet[data-v-3df9a4be]{background:var(--orange-100, #fff3e0);color:var(--orange-600, #fb8c00)}.tql-completion-icon.tql-completion-kind-mutator[data-v-3df9a4be]{background:var(--cyan-100, #e0f7fa);color:var(--cyan-600, #00acc1)}.tql-completion-icon.tql-completion-kind-aggregation[data-v-3df9a4be]{background:var(--indigo-100, #e8eaf6);color:var(--indigo-600, #3949ab)}.tql-completion-icon.tql-completion-kind-logicalOp[data-v-3df9a4be]{background:var(--yellow-100, #fffde7);color:var(--yellow-700, #fbc02d)}.tql-completion-icon.tql-completion-kind-typeHint[data-v-3df9a4be]{background:var(--teal-100, #e0f2f1);color:var(--teal-600, #00897b)}.tql-completion-icon.tql-completion-kind-visualization[data-v-3df9a4be]{background:var(--red-100, #ffebee);color:var(--red-600, #e53935)}.tql-completion-content[data-v-3df9a4be]{flex:1;display:flex;flex-direction:column;min-width:0}.tql-completion-label[data-v-3df9a4be]{font-family:Courier New,monospace;font-size:.875rem;font-weight:500;color:var(--text-color, #333);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tql-completion-detail[data-v-3df9a4be]{font-size:.75rem;color:var(--text-color-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tql-completion-kind-badge[data-v-3df9a4be]{font-size:.625rem;padding:.125rem .375rem;background:var(--surface-100, #f5f5f5);border-radius:3px;color:var(--text-color-secondary, #666);text-transform:uppercase;letter-spacing:.025em}.tql-completion-docs[data-v-3df9a4be]{padding:.5rem .75rem;border-top:1px solid var(--surface-border, #ddd);background:var(--surface-50, #fafafa);font-size:.75rem;color:var(--text-color-secondary, #666);max-height:60px;overflow-y:auto}.tql-preview[data-v-bae811e6]{font-family:ui-monospace,monospace;font-size:13px;line-height:1.5;padding:12px;border:1px solid var(--tql-preview-border, #e0e0e0);border-radius:6px;background:var(--tql-preview-bg, #fafafa)}.tql-preview--compact[data-v-bae811e6]{padding:8px;font-size:12px}.tql-preview--empty[data-v-bae811e6]{color:var(--tql-preview-muted, #888)}.tql-preview__empty[data-v-bae811e6]{text-align:center;padding:20px}.tql-preview__complexity[data-v-bae811e6]{display:flex;align-items:center;gap:12px;margin-bottom:12px}.tql-preview__complexity-badge[data-v-bae811e6]{padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600;text-transform:uppercase}.tql-preview--low .tql-preview__complexity-badge[data-v-bae811e6]{background:var(--tql-preview-low-bg, #e8f5e9);color:var(--tql-preview-low-text, #2e7d32)}.tql-preview--medium .tql-preview__complexity-badge[data-v-bae811e6]{background:var(--tql-preview-medium-bg, #fff3e0);color:var(--tql-preview-medium-text, #e65100)}.tql-preview--high .tql-preview__complexity-badge[data-v-bae811e6]{background:var(--tql-preview-high-bg, #ffebee);color:var(--tql-preview-high-text, #c62828)}.tql-preview__field-count[data-v-bae811e6]{color:var(--tql-preview-muted, #666);font-size:12px}.tql-preview__warnings[data-v-bae811e6]{margin-bottom:12px}.tql-preview__warning[data-v-bae811e6]{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;border-radius:4px;margin-bottom:4px}.tql-preview__warning--info[data-v-bae811e6]{background:var(--tql-preview-info-bg, #e3f2fd);color:var(--tql-preview-info-text, #1565c0)}.tql-preview__warning--warning[data-v-bae811e6]{background:var(--tql-preview-warning-bg, #fff3e0);color:var(--tql-preview-warning-text, #e65100)}.tql-preview__warning--error[data-v-bae811e6]{background:var(--tql-preview-error-bg, #ffebee);color:var(--tql-preview-error-text, #c62828)}.tql-preview__warning-icon[data-v-bae811e6]{font-weight:700;width:16px;text-align:center}.tql-preview__warning-text[data-v-bae811e6]{flex:1}.tql-preview__suggestions[data-v-bae811e6]{margin-bottom:12px;padding:8px;background:var(--tql-preview-suggestion-bg, #f5f5f5);border-radius:4px}.tql-preview__suggestions-header[data-v-bae811e6]{font-weight:600;margin-bottom:4px;color:var(--tql-preview-header, #333)}.tql-preview__suggestions-list[data-v-bae811e6]{margin:0;padding-left:20px}.tql-preview__suggestion[data-v-bae811e6]{color:var(--tql-preview-muted, #666);margin:2px 0}.tql-preview__tree[data-v-bae811e6]{margin-bottom:12px}.tql-preview__tree-header[data-v-bae811e6],.tql-preview__fields-header[data-v-bae811e6],.tql-preview__operators-header[data-v-bae811e6]{font-weight:600;margin-bottom:8px;color:var(--tql-preview-header, #333);font-size:12px;text-transform:uppercase;letter-spacing:.5px}.tql-preview__tree-content[data-v-bae811e6]{border:1px solid var(--tql-preview-tree-border, #e0e0e0);border-radius:4px;background:var(--tql-preview-tree-bg, #fff);padding:8px}.tql-preview__node[data-v-bae811e6]{margin:2px 0}.tql-preview__node-content[data-v-bae811e6]{display:flex;align-items:center;gap:4px;padding:2px 4px;border-radius:3px;cursor:pointer}.tql-preview__node-content[data-v-bae811e6]:hover{background:var(--tql-preview-node-hover, #f0f0f0)}.tql-preview__node-toggle[data-v-bae811e6]{width:16px;height:16px;border:none;background:var(--tql-preview-toggle-bg, #e0e0e0);border-radius:3px;cursor:pointer;font-size:12px;line-height:1;display:flex;align-items:center;justify-content:center}.tql-preview__node-toggle[data-v-bae811e6]:hover{background:var(--tql-preview-toggle-hover, #d0d0d0)}.tql-preview__node-toggle--leaf[data-v-bae811e6]{visibility:hidden}.tql-preview__node-type[data-v-bae811e6]{font-weight:600;color:var(--tql-preview-node-type, #666)}.tql-preview__node--and .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-and, #1976d2)}.tql-preview__node--or .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-or, #7b1fa2)}.tql-preview__node--not .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-not, #c62828)}.tql-preview__node--group .tql-preview__node-type[data-v-bae811e6]{color:var(--tql-preview-group, #666)}.tql-preview__node-label[data-v-bae811e6]{flex:1}.tql-preview__fields-list[data-v-bae811e6]{display:flex;flex-direction:column;gap:4px}.tql-preview__field[data-v-bae811e6]{display:flex;align-items:center;gap:6px;padding:4px 8px;background:var(--tql-preview-field-bg, #fff);border:1px solid var(--tql-preview-field-border, #e0e0e0);border-radius:4px;cursor:pointer}.tql-preview__field[data-v-bae811e6]:hover{background:var(--tql-preview-field-hover, #f5f5f5)}.tql-preview__field-name[data-v-bae811e6]{font-weight:600;color:var(--tql-preview-field-name, #1976d2)}.tql-preview__field-mutators[data-v-bae811e6]{color:var(--tql-preview-mutator, #7b1fa2)}.tql-preview__field-operator[data-v-bae811e6]{color:var(--tql-preview-operator, #666)}.tql-preview__field-value[data-v-bae811e6]{color:var(--tql-preview-value, #2e7d32)}.tql-preview__match-type[data-v-bae811e6]{margin-left:auto;padding:1px 4px;border-radius:3px;font-size:10px;font-weight:600;background:var(--tql-preview-match-bg, #f0f0f0)}.tql-preview__match-type--exact[data-v-bae811e6]{background:var(--tql-preview-match-exact-bg, #e8f5e9);color:var(--tql-preview-match-exact, #2e7d32)}.tql-preview__match-type--wildcard[data-v-bae811e6]{background:var(--tql-preview-match-wildcard-bg, #fff3e0);color:var(--tql-preview-match-wildcard, #e65100)}.tql-preview__match-type--regex[data-v-bae811e6]{background:var(--tql-preview-match-regex-bg, #fce4ec);color:var(--tql-preview-match-regex, #c2185b)}.tql-preview__match-type--range[data-v-bae811e6]{background:var(--tql-preview-match-range-bg, #e3f2fd);color:var(--tql-preview-match-range, #1565c0)}.tql-preview__match-type--cidr[data-v-bae811e6]{background:var(--tql-preview-match-cidr-bg, #f3e5f5);color:var(--tql-preview-match-cidr, #7b1fa2)}.tql-preview__operators-list[data-v-bae811e6]{display:flex;flex-wrap:wrap;gap:8px}.tql-preview__operator[data-v-bae811e6]{padding:2px 6px;background:var(--tql-preview-op-bg, #f0f0f0);border-radius:3px;font-size:11px}.tql-input-wrapper[data-v-46f86043]{position:relative;display:flex;align-items:flex-start;border:1px solid var(--surface-border, #ddd);border-radius:var(--border-radius, 6px);background:var(--surface-ground, #fff);transition:border-color .2s,box-shadow .2s}.tql-input-wrapper.tql-input-focused[data-v-46f86043]{border-color:var(--primary-color, #3b82f6);box-shadow:0 0 0 2px var(--primary-100, rgba(59, 130, 246, .2))}.tql-input-wrapper.tql-input-invalid[data-v-46f86043]{border-color:var(--red-500, #ef4444)}.tql-input-wrapper.tql-input-invalid.tql-input-focused[data-v-46f86043]{box-shadow:0 0 0 2px var(--red-100, rgba(239, 68, 68, .2))}.tql-input-wrapper.tql-input-disabled[data-v-46f86043]{opacity:.6;cursor:not-allowed}.tql-highlight-layer[data-v-46f86043]{position:absolute;top:0;left:0;right:0;bottom:0;padding:.5rem .75rem;pointer-events:none;white-space:pre-wrap;word-wrap:break-word;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5;overflow:hidden}.tql-input-multiline .tql-highlight-layer[data-v-46f86043]{overflow-y:auto}.tql-input[data-v-46f86043]{flex:1;width:100%;padding:.5rem 8rem .5rem .75rem;border:none;background:transparent;font-family:Courier New,monospace;font-size:.875rem;line-height:1.5;color:var(--text-color, #333);outline:none;resize:none}.tql-input.tql-input-highlighted[data-v-46f86043]{color:transparent;caret-color:var(--text-color, #333)}.tql-input[data-v-46f86043]::placeholder{color:var(--text-color-secondary, #666);opacity:.7}.tql-input[data-v-46f86043]:disabled{cursor:not-allowed}.tql-token-field[data-v-46f86043]{color:var(--tql-field-color, var(--blue-600, #2563eb))}.tql-token-operator[data-v-46f86043]{color:var(--tql-operator-color, var(--pink-600, #db2777));font-weight:500}.tql-token-logicalOp[data-v-46f86043]{color:var(--tql-logical-color, var(--purple-600, #9333ea));font-weight:600}.tql-token-collectionOp[data-v-46f86043]{color:var(--tql-collection-color, var(--indigo-600, #4f46e5));font-weight:600}.tql-token-string[data-v-46f86043]{color:var(--tql-string-color, var(--green-600, #16a34a))}.tql-token-number[data-v-46f86043]{color:var(--tql-number-color, var(--orange-600, #ea580c))}.tql-token-boolean[data-v-46f86043]{color:var(--tql-boolean-color, var(--cyan-600, #0891b2))}.tql-token-null[data-v-46f86043]{color:var(--tql-null-color, var(--gray-500, #6b7280));font-style:italic}.tql-token-mutator[data-v-46f86043]{color:var(--tql-mutator-color, var(--teal-600, #0d9488));font-style:italic}.tql-token-aggregation[data-v-46f86043]{color:var(--tql-aggregation-color, var(--indigo-600, #4f46e5))}.tql-token-keyword[data-v-46f86043]{color:var(--tql-keyword-color, var(--purple-500, #a855f7))}.tql-token-typeHint[data-v-46f86043]{color:var(--tql-typehint-color, var(--teal-500, #14b8a6))}.tql-token-visualization[data-v-46f86043]{color:var(--tql-viz-color, var(--red-500, #ef4444))}.tql-token-arrow[data-v-46f86043]{color:var(--tql-arrow-color, var(--gray-600, #4b5563));font-weight:600}.tql-token-doubleColon[data-v-46f86043]{color:var(--tql-colon-color, var(--gray-500, #6b7280))}.tql-token-paren[data-v-46f86043],.tql-token-bracket[data-v-46f86043]{color:var(--tql-bracket-color, var(--gray-600, #4b5563))}.tql-token-error[data-v-46f86043]{color:var(--tql-error-color, var(--red-600, #dc2626));text-decoration:wavy underline;text-decoration-color:var(--red-400, #f87171)}.tql-token-error-range[data-v-46f86043]{background-color:var(--red-50, #fef2f2)}.tql-token-unknown[data-v-46f86043]{color:var(--text-color-secondary, #666)}.tql-validation-icon[data-v-46f86043]{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.tql-input-multiline .tql-validation-icon[data-v-46f86043]{top:.75rem;transform:none}.tql-icon-valid[data-v-46f86043]{color:var(--green-500, #22c55e)}.tql-icon-invalid[data-v-46f86043]{color:var(--red-500, #ef4444)}.tql-icon-clickable[data-v-46f86043]{cursor:pointer;transition:transform .2s}.tql-icon-clickable[data-v-46f86043]:hover{transform:scale(1.2)}.tql-icon-clickable[data-v-46f86043]:focus{outline:2px solid var(--primary-color, #3b82f6);outline-offset:2px;border-radius:50%}.tql-snippet-button[data-v-46f86043]{position:absolute;right:2rem;top:50%;transform:translateY(-50%);padding:.25rem;border:none;background:transparent;color:var(--text-color-secondary, #666);cursor:pointer;border-radius:var(--border-radius, 6px);transition:color .2s,background-color .2s}.tql-snippet-button[data-v-46f86043]:hover{color:var(--primary-color, #3b82f6);background:var(--surface-100, #f5f5f5)}.tql-input-multiline .tql-snippet-button[data-v-46f86043]{top:.75rem;transform:none}.tql-input-resizable-textarea[data-v-46f86043]{resize:vertical;min-height:80px}.tql-input-wrapper.tql-input-resizable[data-v-46f86043]{height:auto}.tql-input-wrapper.tql-input-resizable .tql-highlight-layer[data-v-46f86043]{height:100%}.tql-validation-messages[data-v-46f86043]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--red-200, #fecaca);border-radius:var(--border-radius, 6px);padding:.5rem;z-index:10;box-shadow:0 2px 8px #0000001a}.tql-input-autocomplete-active .tql-validation-messages[data-v-46f86043],.tql-input-autocomplete-active .tql-complexity-warnings[data-v-46f86043],.tql-input-autocomplete-active .tql-history-dropdown[data-v-46f86043],.tql-input-autocomplete-active .tql-preview-panel[data-v-46f86043]{display:none!important}.tql-error-message[data-v-46f86043]{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem;color:var(--red-600, #dc2626)}.tql-error-message i[data-v-46f86043]{margin-top:.125rem;font-size:.75rem}.tql-error-suggestion[data-v-46f86043]{display:block;color:var(--text-color-secondary, #666);font-style:italic;margin-left:1.25rem}.sr-only[data-v-46f86043]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.tql-toolbar[data-v-46f86043]{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);display:flex;align-items:center;gap:.25rem}.tql-input-multiline .tql-toolbar[data-v-46f86043]{top:.5rem;transform:none}.tql-toolbar-button[data-v-46f86043]{padding:.25rem;border:none;background:transparent;color:var(--text-color-secondary, #666);cursor:pointer;border-radius:var(--border-radius, 4px);transition:color .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.tql-toolbar-button[data-v-46f86043]:hover{color:var(--primary-color, #3b82f6);background:var(--surface-100, #f5f5f5)}.tql-toolbar-button--active[data-v-46f86043]{color:var(--primary-color, #3b82f6);background:var(--primary-100, rgba(59, 130, 246, .1))}.tql-validation-status[data-v-46f86043]{display:flex;align-items:center}.tql-complexity-badge[data-v-46f86043]{display:flex;align-items:center;gap:.25rem;padding:.125rem .5rem;border-radius:9999px;font-size:.625rem;font-weight:600;text-transform:uppercase;letter-spacing:.025em}.tql-complexity-low[data-v-46f86043]{background:var(--green-100, #dcfce7);color:var(--green-700, #15803d)}.tql-complexity-medium[data-v-46f86043]{background:var(--yellow-100, #fef9c3);color:var(--yellow-700, #a16207)}.tql-complexity-high[data-v-46f86043]{background:var(--red-100, #fee2e2);color:var(--red-700, #b91c1c)}.tql-complexity-count[data-v-46f86043]{display:inline-flex;align-items:center;justify-content:center;min-width:1rem;height:1rem;padding:0 .25rem;border-radius:9999px;background:currentColor;color:#fff;font-size:.5rem}.tql-complexity-low .tql-complexity-count[data-v-46f86043]{background:var(--green-600, #16a34a)}.tql-complexity-medium .tql-complexity-count[data-v-46f86043]{background:var(--yellow-600, #ca8a04)}.tql-complexity-high .tql-complexity-count[data-v-46f86043]{background:var(--red-600, #dc2626)}.tql-complexity-warnings[data-v-46f86043]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 6px);padding:.5rem;z-index:9;box-shadow:0 2px 8px #0000001a}.tql-complexity-warning[data-v-46f86043]{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem}.tql-complexity-warning i[data-v-46f86043]{margin-top:.125rem;font-size:.75rem}.tql-complexity-warning--info[data-v-46f86043]{color:var(--blue-600, #2563eb)}.tql-complexity-warning--warning[data-v-46f86043]{color:var(--yellow-600, #ca8a04)}.tql-complexity-warning--error[data-v-46f86043]{color:var(--red-600, #dc2626)}.tql-complexity-suggestions[data-v-46f86043]{margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--surface-border, #e0e0e0)}.tql-complexity-suggestion[data-v-46f86043]{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem;color:var(--text-color-secondary, #666)}.tql-complexity-suggestion i[data-v-46f86043]{color:var(--yellow-500, #eab308)}.tql-history-dropdown[data-v-46f86043]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 6px);z-index:20;box-shadow:0 4px 12px #00000026;max-height:300px;overflow:hidden;display:flex;flex-direction:column}.tql-history-header[data-v-46f86043]{padding:.5rem;border-bottom:1px solid var(--surface-border, #e0e0e0)}.tql-history-search[data-v-46f86043]{width:100%;padding:.375rem .5rem;border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 4px);font-size:.75rem;outline:none}.tql-history-search[data-v-46f86043]:focus{border-color:var(--primary-color, #3b82f6)}.tql-history-list[data-v-46f86043]{overflow-y:auto;flex:1}.tql-history-item[data-v-46f86043]{display:flex;align-items:flex-start;gap:.5rem;padding:.5rem;cursor:pointer;border-bottom:1px solid var(--surface-50, #f9fafb);transition:background-color .15s}.tql-history-item[data-v-46f86043]:hover{background:var(--surface-100, #f5f5f5)}.tql-history-item--favorite[data-v-46f86043]{background:var(--yellow-50, #fefce8)}.tql-history-item--favorite[data-v-46f86043]:hover{background:var(--yellow-100, #fef9c3)}.tql-history-favorite[data-v-46f86043]{padding:.125rem;border:none;background:transparent;color:var(--text-color-secondary, #999);cursor:pointer;flex-shrink:0}.tql-history-favorite[data-v-46f86043]:hover,.tql-history-item--favorite .tql-history-favorite[data-v-46f86043]{color:var(--yellow-500, #eab308)}.tql-history-content[data-v-46f86043]{flex:1;min-width:0}.tql-history-label[data-v-46f86043]{font-size:.6875rem;font-weight:600;color:var(--text-color, #333);margin-bottom:.125rem}.tql-history-query[data-v-46f86043]{font-family:Courier New,monospace;font-size:.6875rem;color:var(--text-color-secondary, #666);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tql-history-time[data-v-46f86043]{font-size:.625rem;color:var(--text-color-secondary, #999);flex-shrink:0}.tql-history-empty[data-v-46f86043]{padding:1rem;text-align:center;color:var(--text-color-secondary, #666);font-size:.75rem}.tql-preview-panel[data-v-46f86043]{position:absolute;top:100%;left:0;right:0;margin-top:.25rem;background:var(--surface-overlay, #fff);border:1px solid var(--surface-border, #e0e0e0);border-radius:var(--border-radius, 6px);z-index:15;box-shadow:0 4px 12px #00000026;max-height:400px;overflow:hidden;display:flex;flex-direction:column}.tql-preview-header[data-v-46f86043]{display:flex;align-items:center;justify-content:space-between;padding:.5rem .75rem;border-bottom:1px solid var(--surface-border, #e0e0e0);font-size:.75rem;font-weight:600;color:var(--text-color, #333)}.tql-preview-close[data-v-46f86043]{padding:.125rem;border:none;background:transparent;color:var(--text-color-secondary, #666);cursor:pointer;border-radius:var(--border-radius, 4px)}.tql-preview-close[data-v-46f86043]:hover{background:var(--surface-100, #f5f5f5);color:var(--text-color, #333)}.tql-preview-panel[data-v-46f86043] .tql-preview{border:none;border-radius:0;max-height:350px;overflow-y:auto}.tql-validation-messages-portal{background:var(--surface-overlay, #fff);border:2px solid var(--red-500, #ef4444);border-radius:var(--border-radius, 6px);padding:.5rem;box-shadow:0 4px 12px #00000026}.tql-validation-messages-portal .tql-error-message{display:flex;align-items:flex-start;gap:.5rem;padding:.25rem 0;font-size:.75rem;color:var(--red-600, #dc2626)}.tql-validation-messages-portal .tql-error-message i{margin-top:.125rem;font-size:.75rem}.tql-validation-messages-portal .tql-error-suggestion{display:block;color:var(--text-color-secondary, #6b7280);font-style:italic;margin-left:1.25rem}
|
package/dist/vue/TqlInput.vue.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import o from "./TqlInput.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
+
/* empty css */
|
|
3
4
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ t(o, [["__scopeId", "data-v-46f86043"]]);
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
_ as default
|
|
7
8
|
};
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useTqlInput as
|
|
5
|
-
import { useQueryHistory as
|
|
6
|
-
import { analyzeComplexity as
|
|
7
|
-
const
|
|
1
|
+
import { defineComponent as Ge, ref as y, toRef as j, computed as E, watch as ye, onMounted as Je, nextTick as V, onUnmounted as Xe, openBlock as i, createElementBlock as a, normalizeStyle as _, normalizeClass as w, unref as u, Fragment as T, renderList as z, toDisplayString as m, createCommentVNode as v, withDirectives as ee, vModelText as te, createElementVNode as r, withModifiers as D, withKeys as me, createVNode as ge, createBlock as Ye, Teleport as Ze } from "vue";
|
|
2
|
+
import _e from "./TqlAutocomplete.vue.js";
|
|
3
|
+
import et from "./components/TqlPreview.vue.js";
|
|
4
|
+
import { useTqlInput as tt } from "./useTqlInput.js";
|
|
5
|
+
import { useQueryHistory as lt } from "./composables/useQueryHistory.js";
|
|
6
|
+
import { analyzeComplexity as ot } from "../src/complexityAnalyzer.js";
|
|
7
|
+
const it = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "tql-highlight-layer",
|
|
10
10
|
"aria-hidden": "true"
|
|
11
|
-
},
|
|
11
|
+
}, at = ["placeholder", "disabled", "readonly", "rows", "aria-expanded", "aria-invalid", "aria-describedby"], nt = ["placeholder", "disabled", "readonly", "aria-expanded", "aria-invalid", "aria-describedby"], st = { class: "tql-toolbar" }, ut = ["title"], rt = { class: "tql-complexity-label" }, dt = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "tql-complexity-count"
|
|
14
|
-
},
|
|
14
|
+
}, ct = {
|
|
15
15
|
key: 4,
|
|
16
16
|
class: "tql-validation-status"
|
|
17
|
-
},
|
|
17
|
+
}, vt = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "pi pi-check-circle tql-icon-valid",
|
|
20
20
|
"aria-label": "Query is valid"
|
|
21
|
-
},
|
|
21
|
+
}, ft = ["aria-label", "aria-expanded"], pt = { class: "tql-history-header" }, ht = { class: "tql-history-list" }, yt = ["onClick"], mt = ["title", "onClick"], gt = { class: "tql-history-content" }, wt = {
|
|
22
22
|
key: 0,
|
|
23
23
|
class: "tql-history-label"
|
|
24
|
-
},
|
|
24
|
+
}, bt = { class: "tql-history-query" }, qt = { class: "tql-history-time" }, kt = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "tql-history-empty"
|
|
27
|
-
},
|
|
27
|
+
}, xt = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "tql-error-suggestion"
|
|
30
|
-
},
|
|
31
|
-
key:
|
|
30
|
+
}, Ct = {
|
|
31
|
+
key: 4,
|
|
32
32
|
class: "tql-complexity-warnings"
|
|
33
|
-
},
|
|
33
|
+
}, St = {
|
|
34
34
|
key: 0,
|
|
35
35
|
class: "tql-complexity-suggestions"
|
|
36
|
-
},
|
|
37
|
-
key:
|
|
36
|
+
}, Vt = {
|
|
37
|
+
key: 5,
|
|
38
38
|
class: "tql-preview-panel"
|
|
39
|
-
},
|
|
39
|
+
}, Pt = { class: "tql-preview-header" }, Ht = {
|
|
40
40
|
class: "sr-only",
|
|
41
41
|
role: "status",
|
|
42
42
|
"aria-live": "polite",
|
|
43
43
|
"aria-atomic": "true"
|
|
44
|
-
},
|
|
44
|
+
}, $t = { key: 0 }, Et = { key: 1 }, zt = /* @__PURE__ */ Ge({
|
|
45
45
|
__name: "TqlInput",
|
|
46
46
|
props: {
|
|
47
47
|
modelValue: {},
|
|
@@ -54,12 +54,15 @@ const Je = {
|
|
|
54
54
|
validateOnInput: { type: Boolean, default: !0 },
|
|
55
55
|
debounceMs: { default: 300 },
|
|
56
56
|
fieldSchema: {},
|
|
57
|
+
fieldValues: {},
|
|
57
58
|
modelName: {},
|
|
58
59
|
snippets: {},
|
|
59
60
|
showSnippetButton: { type: Boolean, default: !1 },
|
|
60
61
|
autocomplete: { type: Boolean, default: !0 },
|
|
61
62
|
syntaxHighlighting: { type: Boolean, default: !0 },
|
|
62
|
-
alwaysShowErrors: { type: Boolean },
|
|
63
|
+
alwaysShowErrors: { type: Boolean, default: !0 },
|
|
64
|
+
resizable: { type: Boolean, default: !1 },
|
|
65
|
+
minHeight: { default: void 0 },
|
|
63
66
|
showComplexity: { type: Boolean, default: !1 },
|
|
64
67
|
showHistory: { type: Boolean, default: !1 },
|
|
65
68
|
showPreview: { type: Boolean, default: !1 },
|
|
@@ -68,331 +71,365 @@ const Je = {
|
|
|
68
71
|
historyStorageKey: {}
|
|
69
72
|
},
|
|
70
73
|
emits: ["update:modelValue", "validation", "parse", "submit"],
|
|
71
|
-
setup(
|
|
72
|
-
const
|
|
73
|
-
tokens:
|
|
74
|
-
cursorPosition:
|
|
75
|
-
completionItems:
|
|
76
|
-
showAutocomplete:
|
|
77
|
-
isValid:
|
|
78
|
-
errors:
|
|
79
|
-
hasErrors:
|
|
80
|
-
validate:
|
|
81
|
-
handleInput:
|
|
82
|
-
handleCursorChange:
|
|
83
|
-
insertCompletion:
|
|
84
|
-
insertSnippet:
|
|
85
|
-
triggerAutocomplete:
|
|
86
|
-
hideAutocomplete:
|
|
87
|
-
getTokenAtCursor:
|
|
88
|
-
} =
|
|
89
|
-
modelValue:
|
|
90
|
-
fieldSchema:
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
74
|
+
setup(o, { expose: we, emit: be }) {
|
|
75
|
+
const c = o, b = be, d = y(null), L = y(null), I = y(null), s = y(c.modelValue), q = y(!1), p = y(!1), x = y(!1), C = y(!1), R = y(""), W = `tql-input-${Math.random().toString(36).substring(2, 9)}`, le = `${W}-input`, G = `${W}-autocomplete`, J = `${W}-errors`, M = y([]), B = y(-1), qe = j(c, "modelValue"), ke = j(c, "fieldSchema"), xe = j(c, "fieldValues"), Ce = j(c, "snippets"), {
|
|
76
|
+
tokens: Se,
|
|
77
|
+
cursorPosition: X,
|
|
78
|
+
completionItems: Q,
|
|
79
|
+
showAutocomplete: k,
|
|
80
|
+
isValid: Y,
|
|
81
|
+
errors: P,
|
|
82
|
+
hasErrors: H,
|
|
83
|
+
validate: Ve,
|
|
84
|
+
handleInput: oe,
|
|
85
|
+
handleCursorChange: $,
|
|
86
|
+
insertCompletion: Pe,
|
|
87
|
+
insertSnippet: He,
|
|
88
|
+
triggerAutocomplete: ie,
|
|
89
|
+
hideAutocomplete: K,
|
|
90
|
+
getTokenAtCursor: $e
|
|
91
|
+
} = tt({
|
|
92
|
+
modelValue: qe,
|
|
93
|
+
fieldSchema: ke,
|
|
94
|
+
fieldValues: xe,
|
|
95
|
+
snippets: Ce,
|
|
96
|
+
validateOnInput: c.validateOnInput,
|
|
97
|
+
debounceMs: c.debounceMs,
|
|
98
|
+
autocomplete: c.autocomplete,
|
|
95
99
|
onValidation: (e) => b("validation", e),
|
|
96
100
|
onParse: (e) => b("parse", e)
|
|
97
|
-
}),
|
|
98
|
-
storageKey:
|
|
99
|
-
...
|
|
100
|
-
}) : null,
|
|
101
|
+
}), S = c.showHistory ? lt({
|
|
102
|
+
storageKey: c.historyStorageKey || "tql-history",
|
|
103
|
+
...c.historyOptions
|
|
104
|
+
}) : null, h = E(() => !c.showComplexity || !s.value.trim() ? null : ot(s.value, c.complexityThresholds)), Ee = E(() => h.value ? `tql-complexity-${h.value.score}` : ""), ae = E(() => h.value && {
|
|
101
105
|
low: "Low",
|
|
102
106
|
medium: "Medium",
|
|
103
107
|
high: "High"
|
|
104
|
-
}[
|
|
105
|
-
function
|
|
106
|
-
|
|
108
|
+
}[h.value.score] || ""), ne = E(() => S ? R.value.trim() ? S.searchHistory(R.value).slice(0, 10) : S.getRecentQueries(10) : []);
|
|
109
|
+
function Re(e) {
|
|
110
|
+
s.value = e.query, b("update:modelValue", e.query), oe(e.query), x.value = !1, R.value = "", V(() => {
|
|
107
111
|
var t;
|
|
108
|
-
return (t =
|
|
112
|
+
return (t = d.value) == null ? void 0 : t.focus();
|
|
109
113
|
});
|
|
110
114
|
}
|
|
111
|
-
function
|
|
112
|
-
t.stopPropagation(),
|
|
115
|
+
function Be(e, t) {
|
|
116
|
+
t.stopPropagation(), S == null || S.toggleFavorite(e.id);
|
|
113
117
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
118
|
+
function se() {
|
|
119
|
+
S && s.value.trim() && S.addQuery(s.value);
|
|
116
120
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
121
|
+
function Te() {
|
|
122
|
+
x.value = !x.value, x.value && (C.value = !1);
|
|
119
123
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
124
|
+
function De() {
|
|
125
|
+
C.value = !C.value, C.value && (x.value = !1);
|
|
122
126
|
}
|
|
123
|
-
|
|
124
|
-
() =>
|
|
127
|
+
ye(
|
|
128
|
+
() => c.modelValue,
|
|
125
129
|
(e) => {
|
|
126
|
-
e !==
|
|
130
|
+
e !== s.value && (s.value = e);
|
|
127
131
|
}
|
|
128
132
|
);
|
|
129
|
-
const
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
const Ie = E(() => c.alwaysShowErrors === !0 || c.alwaysShowErrors === void 0 || p.value), A = y({ top: 0, left: 0 }), Me = E(() => A.value.top > 0 || A.value.left > 0), ue = y({ top: 0, left: 0, width: 0 }), ze = E(() => {
|
|
134
|
+
const e = ue.value;
|
|
135
|
+
return e.top === 0 && e.left === 0 && e.width === 0 ? { display: "none" } : {
|
|
136
|
+
position: "fixed",
|
|
137
|
+
top: `${e.top}px`,
|
|
138
|
+
left: `${e.left}px`,
|
|
139
|
+
width: `${e.width}px`,
|
|
140
|
+
zIndex: 9998
|
|
141
|
+
};
|
|
142
|
+
});
|
|
143
|
+
function F() {
|
|
144
|
+
if (!L.value)
|
|
145
|
+
return;
|
|
146
|
+
const e = L.value.getBoundingClientRect();
|
|
147
|
+
A.value = {
|
|
134
148
|
top: e.bottom + 4,
|
|
135
149
|
left: e.left
|
|
150
|
+
}, ue.value = {
|
|
151
|
+
top: e.bottom + 4,
|
|
152
|
+
left: e.left,
|
|
153
|
+
width: e.width
|
|
136
154
|
};
|
|
137
|
-
}
|
|
138
|
-
function
|
|
155
|
+
}
|
|
156
|
+
function Le(e) {
|
|
139
157
|
const t = `tql-token tql-token-${e.type}`;
|
|
140
|
-
return
|
|
158
|
+
return P.value.some((n) => e.start >= n.start && e.end <= n.end) ? `${t} tql-token-error-range` : t;
|
|
141
159
|
}
|
|
142
|
-
function
|
|
160
|
+
function re(e) {
|
|
143
161
|
const t = e.target;
|
|
144
|
-
|
|
145
|
-
|
|
162
|
+
s.value = t.value, b("update:modelValue", t.value), oe(t.value), V(() => {
|
|
163
|
+
d.value && $(d.value.selectionStart || 0);
|
|
146
164
|
});
|
|
147
165
|
}
|
|
148
|
-
function
|
|
149
|
-
if (
|
|
150
|
-
const e =
|
|
151
|
-
e !==
|
|
166
|
+
function O() {
|
|
167
|
+
if (d.value) {
|
|
168
|
+
const e = d.value.selectionStart || 0;
|
|
169
|
+
e !== X.value && $(e);
|
|
152
170
|
}
|
|
153
171
|
}
|
|
154
|
-
function
|
|
155
|
-
var t, l,
|
|
172
|
+
function de(e) {
|
|
173
|
+
var t, l, n, f, g;
|
|
156
174
|
if (e.key === "Tab" && !e.shiftKey) {
|
|
157
|
-
if (
|
|
158
|
-
e.preventDefault(),
|
|
175
|
+
if (M.value.length > 0 && B.value >= 0) {
|
|
176
|
+
e.preventDefault(), Qe();
|
|
159
177
|
return;
|
|
160
178
|
}
|
|
161
|
-
if (
|
|
162
|
-
e.preventDefault(),
|
|
179
|
+
if (Ke()) {
|
|
180
|
+
e.preventDefault(), Ae();
|
|
163
181
|
return;
|
|
164
182
|
}
|
|
165
183
|
}
|
|
166
|
-
if (
|
|
184
|
+
if (k.value && Q.value.length > 0)
|
|
167
185
|
switch (e.key) {
|
|
168
186
|
case "ArrowDown":
|
|
169
|
-
e.preventDefault(), (t =
|
|
187
|
+
e.preventDefault(), (t = I.value) == null || t.moveDown();
|
|
170
188
|
return;
|
|
171
189
|
case "ArrowUp":
|
|
172
|
-
e.preventDefault(), (l =
|
|
190
|
+
e.preventDefault(), (l = I.value) == null || l.moveUp();
|
|
173
191
|
return;
|
|
174
192
|
case "Tab":
|
|
175
|
-
e.preventDefault(),
|
|
193
|
+
e.preventDefault(), $(((n = d.value) == null ? void 0 : n.selectionStart) || 0), Q.value.length > 0 && ((f = I.value) == null || f.selectCurrent());
|
|
176
194
|
return;
|
|
177
195
|
case "Enter":
|
|
178
|
-
if (!
|
|
196
|
+
if (!c.multiline)
|
|
179
197
|
break;
|
|
180
|
-
e.preventDefault(), (
|
|
198
|
+
e.preventDefault(), (g = I.value) == null || g.selectCurrent();
|
|
181
199
|
return;
|
|
182
200
|
case "Escape":
|
|
183
|
-
e.preventDefault(),
|
|
201
|
+
e.preventDefault(), K(), Z();
|
|
184
202
|
return;
|
|
185
203
|
}
|
|
186
204
|
if (e.key === " " && e.ctrlKey) {
|
|
187
|
-
e.preventDefault(),
|
|
205
|
+
e.preventDefault(), ie();
|
|
188
206
|
return;
|
|
189
207
|
}
|
|
190
|
-
e.key === "Enter" && (
|
|
208
|
+
e.key === "Enter" && (c.multiline && e.ctrlKey || !c.multiline && !k.value) && (e.preventDefault(), se(), b("submit", s.value));
|
|
191
209
|
}
|
|
192
|
-
function
|
|
193
|
-
if (
|
|
194
|
-
|
|
210
|
+
function Qe() {
|
|
211
|
+
if (B.value++, B.value >= M.value.length) {
|
|
212
|
+
Z();
|
|
195
213
|
return;
|
|
196
214
|
}
|
|
197
|
-
const e =
|
|
198
|
-
|
|
215
|
+
const e = M.value[B.value];
|
|
216
|
+
d.value && (d.value.setSelectionRange(e.start, e.end), d.value.focus(), $(e.start));
|
|
199
217
|
}
|
|
200
|
-
function
|
|
201
|
-
|
|
218
|
+
function Z() {
|
|
219
|
+
M.value = [], B.value = -1;
|
|
202
220
|
}
|
|
203
|
-
function
|
|
204
|
-
const e =
|
|
205
|
-
let l = !1,
|
|
206
|
-
for (let
|
|
207
|
-
const
|
|
208
|
-
(
|
|
221
|
+
function Ke() {
|
|
222
|
+
const e = X.value, t = s.value;
|
|
223
|
+
let l = !1, n = null;
|
|
224
|
+
for (let f = 0; f < e; f++) {
|
|
225
|
+
const g = t[f], U = f > 0 ? t[f - 1] : "";
|
|
226
|
+
(g === '"' || g === "'") && U !== "\\" && (l ? g === n && (l = !1, n = null) : (l = !0, n = g));
|
|
209
227
|
}
|
|
210
228
|
return l;
|
|
211
229
|
}
|
|
212
|
-
function
|
|
213
|
-
const e =
|
|
230
|
+
function Ae() {
|
|
231
|
+
const e = X.value, t = s.value;
|
|
214
232
|
for (let l = e; l < t.length; l++)
|
|
215
233
|
if (t[l] === '"' || t[l] === "'") {
|
|
216
|
-
const
|
|
217
|
-
|
|
234
|
+
const n = l + 1;
|
|
235
|
+
d.value && (d.value.setSelectionRange(n, n), $(n));
|
|
218
236
|
return;
|
|
219
237
|
}
|
|
220
238
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
239
|
+
function ce() {
|
|
240
|
+
q.value = !0, V(() => {
|
|
241
|
+
F(), ie();
|
|
242
|
+
});
|
|
223
243
|
}
|
|
224
|
-
function
|
|
244
|
+
function ve(e) {
|
|
225
245
|
const l = e.relatedTarget;
|
|
226
246
|
if (l != null && l.closest(".tql-autocomplete-dropdown")) {
|
|
227
247
|
setTimeout(() => {
|
|
228
|
-
|
|
248
|
+
q.value || (K(), p.value = !1);
|
|
229
249
|
}, 300);
|
|
230
250
|
return;
|
|
231
251
|
}
|
|
232
|
-
|
|
233
|
-
|
|
252
|
+
q.value = !1, setTimeout(() => {
|
|
253
|
+
q.value || (K(), p.value = !1);
|
|
234
254
|
}, 200);
|
|
235
255
|
}
|
|
236
|
-
function
|
|
237
|
-
const t =
|
|
238
|
-
|
|
239
|
-
|
|
256
|
+
function Fe(e) {
|
|
257
|
+
const t = Pe(e);
|
|
258
|
+
s.value = t.query, b("update:modelValue", t.query), t.placeholders.length > 0 ? (M.value = t.placeholders, B.value = 0) : Z(), V(() => {
|
|
259
|
+
d.value && (d.value.focus(), d.value.setSelectionRange(t.newCursorPosition, t.newCursorPosition), $(t.newCursorPosition));
|
|
240
260
|
});
|
|
241
261
|
}
|
|
242
|
-
function
|
|
243
|
-
const t =
|
|
244
|
-
|
|
245
|
-
|
|
262
|
+
function Oe(e) {
|
|
263
|
+
const t = He(e);
|
|
264
|
+
s.value = t, b("update:modelValue", t), V(() => {
|
|
265
|
+
d.value && d.value.focus();
|
|
246
266
|
});
|
|
247
267
|
}
|
|
248
|
-
function
|
|
268
|
+
function Ne() {
|
|
249
269
|
var e;
|
|
250
|
-
(e =
|
|
270
|
+
(e = d.value) == null || e.focus();
|
|
251
271
|
}
|
|
252
|
-
function
|
|
272
|
+
function Ue() {
|
|
253
273
|
var e;
|
|
254
|
-
(e =
|
|
274
|
+
(e = d.value) == null || e.blur();
|
|
255
275
|
}
|
|
256
|
-
function
|
|
276
|
+
function fe() {
|
|
257
277
|
var e;
|
|
258
|
-
return ((e =
|
|
278
|
+
return ((e = d.value) == null ? void 0 : e.selectionStart) || 0;
|
|
259
279
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
280
|
+
function pe(e) {
|
|
281
|
+
d.value && (d.value.setSelectionRange(e, e), $(e));
|
|
262
282
|
}
|
|
263
|
-
function
|
|
264
|
-
const t =
|
|
265
|
-
|
|
266
|
-
|
|
283
|
+
function je(e) {
|
|
284
|
+
const t = fe(), l = s.value.substring(0, t), n = s.value.substring(t), f = l + e + n;
|
|
285
|
+
s.value = f, b("update:modelValue", f), V(() => {
|
|
286
|
+
pe(t + e.length);
|
|
267
287
|
});
|
|
268
288
|
}
|
|
269
|
-
function
|
|
270
|
-
const l = Date.now() - e,
|
|
271
|
-
return
|
|
289
|
+
function We(e) {
|
|
290
|
+
const l = Date.now() - e, n = Math.floor(l / 1e3), f = Math.floor(n / 60), g = Math.floor(f / 60), U = Math.floor(g / 24);
|
|
291
|
+
return U > 0 ? `${U}d ago` : g > 0 ? `${g}h ago` : f > 0 ? `${f}m ago` : "just now";
|
|
272
292
|
}
|
|
273
|
-
function
|
|
293
|
+
function he(e) {
|
|
274
294
|
var l;
|
|
275
295
|
const t = e.target;
|
|
276
|
-
(l =
|
|
296
|
+
(l = L.value) != null && l.contains(t) || (x.value = !1, C.value = !1);
|
|
277
297
|
}
|
|
278
|
-
|
|
279
|
-
focus:
|
|
280
|
-
blur:
|
|
281
|
-
validate:
|
|
282
|
-
insertText:
|
|
283
|
-
insertSnippet:
|
|
284
|
-
getTokenAtPosition:
|
|
285
|
-
getCursorPosition:
|
|
286
|
-
setCursorPosition:
|
|
287
|
-
})
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
298
|
+
we({
|
|
299
|
+
focus: Ne,
|
|
300
|
+
blur: Ue,
|
|
301
|
+
validate: Ve,
|
|
302
|
+
insertText: je,
|
|
303
|
+
insertSnippet: Oe,
|
|
304
|
+
getTokenAtPosition: $e,
|
|
305
|
+
getCursorPosition: fe,
|
|
306
|
+
setCursorPosition: pe
|
|
307
|
+
});
|
|
308
|
+
function N() {
|
|
309
|
+
(k.value || H.value) && q.value && F();
|
|
310
|
+
}
|
|
311
|
+
return Je(() => {
|
|
312
|
+
document.addEventListener("selectionchange", O), document.addEventListener("click", he), window.addEventListener("scroll", N, !0), window.addEventListener("resize", N), V(() => {
|
|
313
|
+
F();
|
|
314
|
+
});
|
|
315
|
+
}), ye(
|
|
316
|
+
() => H.value,
|
|
317
|
+
(e) => {
|
|
318
|
+
e && V(() => {
|
|
319
|
+
F();
|
|
320
|
+
});
|
|
321
|
+
},
|
|
322
|
+
{ immediate: !0 }
|
|
323
|
+
), Xe(() => {
|
|
324
|
+
document.removeEventListener("selectionchange", O), document.removeEventListener("click", he), window.removeEventListener("scroll", N, !0), window.removeEventListener("resize", N);
|
|
325
|
+
}), (e, t) => (i(), a("div", {
|
|
292
326
|
ref_key: "wrapperRef",
|
|
293
|
-
ref:
|
|
327
|
+
ref: L,
|
|
294
328
|
class: w([
|
|
295
329
|
"tql-input-wrapper",
|
|
296
330
|
{
|
|
297
|
-
"tql-input-focused":
|
|
298
|
-
"tql-input-invalid":
|
|
299
|
-
"tql-input-disabled":
|
|
300
|
-
"tql-input-multiline":
|
|
301
|
-
"tql-input-autocomplete-active":
|
|
331
|
+
"tql-input-focused": q.value,
|
|
332
|
+
"tql-input-invalid": u(H) && o.showValidation,
|
|
333
|
+
"tql-input-disabled": o.disabled,
|
|
334
|
+
"tql-input-multiline": o.multiline,
|
|
335
|
+
"tql-input-autocomplete-active": u(k),
|
|
336
|
+
"tql-input-resizable": o.resizable && o.multiline
|
|
302
337
|
}
|
|
303
|
-
])
|
|
338
|
+
]),
|
|
339
|
+
style: _(o.minHeight ? { minHeight: o.minHeight } : void 0)
|
|
304
340
|
}, [
|
|
305
|
-
|
|
306
|
-
(
|
|
307
|
-
key:
|
|
308
|
-
class: w(
|
|
309
|
-
},
|
|
341
|
+
o.syntaxHighlighting ? (i(), a("div", it, [
|
|
342
|
+
(i(!0), a(T, null, z(u(Se), (l, n) => (i(), a("span", {
|
|
343
|
+
key: n,
|
|
344
|
+
class: w(Le(l))
|
|
345
|
+
}, m(l.raw || l.value), 3))), 128))
|
|
310
346
|
])) : v("", !0),
|
|
311
|
-
|
|
347
|
+
o.multiline ? ee((i(), a("textarea", {
|
|
312
348
|
key: 1,
|
|
313
|
-
id:
|
|
349
|
+
id: le,
|
|
314
350
|
ref_key: "inputRef",
|
|
315
|
-
ref:
|
|
316
|
-
"onUpdate:modelValue": t[0] || (t[0] = (l) =>
|
|
317
|
-
class: w(["tql-input", { "tql-input-highlighted":
|
|
318
|
-
placeholder:
|
|
319
|
-
disabled:
|
|
320
|
-
readonly:
|
|
321
|
-
rows:
|
|
351
|
+
ref: d,
|
|
352
|
+
"onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l),
|
|
353
|
+
class: w(["tql-input", { "tql-input-highlighted": o.syntaxHighlighting, "tql-input-resizable-textarea": o.resizable }]),
|
|
354
|
+
placeholder: o.placeholder,
|
|
355
|
+
disabled: o.disabled,
|
|
356
|
+
readonly: o.readonly,
|
|
357
|
+
rows: o.rows,
|
|
358
|
+
style: _(o.minHeight ? { minHeight: o.minHeight } : void 0),
|
|
322
359
|
role: "combobox",
|
|
323
|
-
"aria-expanded":
|
|
324
|
-
"aria-controls":
|
|
325
|
-
"aria-invalid":
|
|
326
|
-
"aria-describedby":
|
|
360
|
+
"aria-expanded": u(k) && q.value,
|
|
361
|
+
"aria-controls": G,
|
|
362
|
+
"aria-invalid": u(H) && o.showValidation,
|
|
363
|
+
"aria-describedby": u(H) && p.value ? J : void 0,
|
|
327
364
|
"aria-autocomplete": "list",
|
|
328
365
|
"aria-haspopup": "listbox",
|
|
329
366
|
spellcheck: "false",
|
|
330
367
|
autocomplete: "off",
|
|
331
368
|
autocapitalize: "off",
|
|
332
|
-
onInput:
|
|
333
|
-
onKeydown:
|
|
334
|
-
onFocus:
|
|
335
|
-
onBlur:
|
|
336
|
-
onClick:
|
|
337
|
-
}, null,
|
|
338
|
-
[
|
|
339
|
-
]) :
|
|
369
|
+
onInput: re,
|
|
370
|
+
onKeydown: de,
|
|
371
|
+
onFocus: ce,
|
|
372
|
+
onBlur: ve,
|
|
373
|
+
onClick: O
|
|
374
|
+
}, null, 46, at)), [
|
|
375
|
+
[te, s.value]
|
|
376
|
+
]) : ee((i(), a("input", {
|
|
340
377
|
key: 2,
|
|
341
|
-
id:
|
|
378
|
+
id: le,
|
|
342
379
|
ref_key: "inputRef",
|
|
343
|
-
ref:
|
|
344
|
-
"onUpdate:modelValue": t[1] || (t[1] = (l) =>
|
|
380
|
+
ref: d,
|
|
381
|
+
"onUpdate:modelValue": t[1] || (t[1] = (l) => s.value = l),
|
|
345
382
|
type: "text",
|
|
346
|
-
class: w(["tql-input", { "tql-input-highlighted":
|
|
347
|
-
placeholder:
|
|
348
|
-
disabled:
|
|
349
|
-
readonly:
|
|
383
|
+
class: w(["tql-input", { "tql-input-highlighted": o.syntaxHighlighting }]),
|
|
384
|
+
placeholder: o.placeholder,
|
|
385
|
+
disabled: o.disabled,
|
|
386
|
+
readonly: o.readonly,
|
|
350
387
|
role: "combobox",
|
|
351
|
-
"aria-expanded":
|
|
352
|
-
"aria-controls":
|
|
353
|
-
"aria-invalid":
|
|
354
|
-
"aria-describedby":
|
|
388
|
+
"aria-expanded": u(k) && q.value,
|
|
389
|
+
"aria-controls": G,
|
|
390
|
+
"aria-invalid": u(H) && o.showValidation,
|
|
391
|
+
"aria-describedby": u(H) && p.value ? J : void 0,
|
|
355
392
|
"aria-autocomplete": "list",
|
|
356
393
|
"aria-haspopup": "listbox",
|
|
357
394
|
spellcheck: "false",
|
|
358
395
|
autocomplete: "off",
|
|
359
396
|
autocapitalize: "off",
|
|
360
|
-
onInput:
|
|
361
|
-
onKeydown:
|
|
362
|
-
onFocus:
|
|
363
|
-
onBlur:
|
|
364
|
-
onClick:
|
|
365
|
-
}, null, 42,
|
|
366
|
-
[
|
|
397
|
+
onInput: re,
|
|
398
|
+
onKeydown: de,
|
|
399
|
+
onFocus: ce,
|
|
400
|
+
onBlur: ve,
|
|
401
|
+
onClick: O
|
|
402
|
+
}, null, 42, nt)), [
|
|
403
|
+
[te, s.value]
|
|
367
404
|
]),
|
|
368
|
-
r("div",
|
|
369
|
-
|
|
405
|
+
r("div", st, [
|
|
406
|
+
o.showComplexity && h.value && s.value.trim() ? (i(), a("div", {
|
|
370
407
|
key: 0,
|
|
371
|
-
class: w(["tql-complexity-badge",
|
|
372
|
-
title: `${
|
|
408
|
+
class: w(["tql-complexity-badge", Ee.value]),
|
|
409
|
+
title: `${ae.value} complexity - ${h.value.warnings.length} warning(s)`
|
|
373
410
|
}, [
|
|
374
|
-
r("span",
|
|
375
|
-
|
|
376
|
-
], 10,
|
|
377
|
-
|
|
411
|
+
r("span", rt, m(ae.value), 1),
|
|
412
|
+
h.value.warnings.length > 0 ? (i(), a("span", dt, m(h.value.warnings.length), 1)) : v("", !0)
|
|
413
|
+
], 10, ut)) : v("", !0),
|
|
414
|
+
o.showHistory ? (i(), a("button", {
|
|
378
415
|
key: 1,
|
|
379
416
|
type: "button",
|
|
380
|
-
class: w(["tql-toolbar-button", { "tql-toolbar-button--active":
|
|
417
|
+
class: w(["tql-toolbar-button", { "tql-toolbar-button--active": x.value }]),
|
|
381
418
|
title: "Query history",
|
|
382
|
-
onClick: D(
|
|
419
|
+
onClick: D(Te, ["stop"])
|
|
383
420
|
}, [...t[10] || (t[10] = [
|
|
384
421
|
r("i", { class: "pi pi-history" }, null, -1)
|
|
385
422
|
])], 2)) : v("", !0),
|
|
386
|
-
|
|
423
|
+
o.showPreview ? (i(), a("button", {
|
|
387
424
|
key: 2,
|
|
388
425
|
type: "button",
|
|
389
|
-
class: w(["tql-toolbar-button", { "tql-toolbar-button--active":
|
|
426
|
+
class: w(["tql-toolbar-button", { "tql-toolbar-button--active": C.value }]),
|
|
390
427
|
title: "Preview query structure",
|
|
391
|
-
onClick: D(
|
|
428
|
+
onClick: D(De, ["stop"])
|
|
392
429
|
}, [...t[11] || (t[11] = [
|
|
393
430
|
r("i", { class: "pi pi-sitemap" }, null, -1)
|
|
394
431
|
])], 2)) : v("", !0),
|
|
395
|
-
|
|
432
|
+
o.showSnippetButton && o.snippets && o.snippets.length > 0 ? (i(), a("button", {
|
|
396
433
|
key: 3,
|
|
397
434
|
type: "button",
|
|
398
435
|
class: "tql-toolbar-button tql-snippet-button",
|
|
@@ -402,147 +439,150 @@ const Je = {
|
|
|
402
439
|
}, [...t[12] || (t[12] = [
|
|
403
440
|
r("i", { class: "pi pi-code" }, null, -1)
|
|
404
441
|
])])) : v("", !0),
|
|
405
|
-
|
|
406
|
-
|
|
442
|
+
o.showValidation && s.value ? (i(), a("div", ct, [
|
|
443
|
+
u(Y) ? (i(), a("i", vt)) : (i(), a("i", {
|
|
407
444
|
key: 1,
|
|
408
445
|
class: "pi pi-exclamation-circle tql-icon-invalid tql-icon-clickable",
|
|
409
446
|
role: "button",
|
|
410
447
|
tabindex: "0",
|
|
411
448
|
title: "Click to show/hide errors",
|
|
412
|
-
"aria-label": `Query has ${
|
|
413
|
-
"aria-expanded":
|
|
414
|
-
onClick: t[3] || (t[3] = (l) =>
|
|
449
|
+
"aria-label": `Query has ${u(P).length} error${u(P).length === 1 ? "" : "s"}. Click to ${p.value ? "hide" : "show"} details.`,
|
|
450
|
+
"aria-expanded": p.value,
|
|
451
|
+
onClick: t[3] || (t[3] = (l) => p.value = !p.value),
|
|
415
452
|
onKeydown: [
|
|
416
|
-
t[4] || (t[4] =
|
|
417
|
-
t[5] || (t[5] =
|
|
453
|
+
t[4] || (t[4] = me((l) => p.value = !p.value, ["enter"])),
|
|
454
|
+
t[5] || (t[5] = me(D((l) => p.value = !p.value, ["prevent"]), ["space"]))
|
|
418
455
|
]
|
|
419
|
-
}, null, 40,
|
|
456
|
+
}, null, 40, ft))
|
|
420
457
|
])) : v("", !0)
|
|
421
458
|
]),
|
|
422
|
-
|
|
459
|
+
o.showHistory && x.value ? (i(), a("div", {
|
|
423
460
|
key: 3,
|
|
424
461
|
class: "tql-history-dropdown",
|
|
425
462
|
onClick: t[8] || (t[8] = D(() => {
|
|
426
463
|
}, ["stop"]))
|
|
427
464
|
}, [
|
|
428
|
-
r("div",
|
|
429
|
-
|
|
430
|
-
"onUpdate:modelValue": t[6] || (t[6] = (l) =>
|
|
465
|
+
r("div", pt, [
|
|
466
|
+
ee(r("input", {
|
|
467
|
+
"onUpdate:modelValue": t[6] || (t[6] = (l) => R.value = l),
|
|
431
468
|
type: "text",
|
|
432
469
|
class: "tql-history-search",
|
|
433
470
|
placeholder: "Search history...",
|
|
434
471
|
onKeydown: t[7] || (t[7] = D(() => {
|
|
435
472
|
}, ["stop"]))
|
|
436
473
|
}, null, 544), [
|
|
437
|
-
[
|
|
474
|
+
[te, R.value]
|
|
438
475
|
])
|
|
439
476
|
]),
|
|
440
|
-
r("div",
|
|
441
|
-
(
|
|
477
|
+
r("div", ht, [
|
|
478
|
+
(i(!0), a(T, null, z(ne.value, (l) => (i(), a("div", {
|
|
442
479
|
key: l.id,
|
|
443
480
|
class: w(["tql-history-item", { "tql-history-item--favorite": l.isFavorite }]),
|
|
444
|
-
onClick: (
|
|
481
|
+
onClick: (n) => Re(l)
|
|
445
482
|
}, [
|
|
446
483
|
r("button", {
|
|
447
484
|
type: "button",
|
|
448
485
|
class: "tql-history-favorite",
|
|
449
486
|
title: l.isFavorite ? "Remove from favorites" : "Add to favorites",
|
|
450
|
-
onClick: (
|
|
487
|
+
onClick: (n) => Be(l, n)
|
|
451
488
|
}, [
|
|
452
489
|
r("i", {
|
|
453
490
|
class: w(l.isFavorite ? "pi pi-star-fill" : "pi pi-star")
|
|
454
491
|
}, null, 2)
|
|
455
|
-
], 8,
|
|
456
|
-
r("div",
|
|
457
|
-
l.label ? (
|
|
458
|
-
r("div",
|
|
492
|
+
], 8, mt),
|
|
493
|
+
r("div", gt, [
|
|
494
|
+
l.label ? (i(), a("div", wt, m(l.label), 1)) : v("", !0),
|
|
495
|
+
r("div", bt, m(l.query), 1)
|
|
459
496
|
]),
|
|
460
|
-
r("div",
|
|
461
|
-
], 10,
|
|
462
|
-
|
|
497
|
+
r("div", qt, m(We(l.timestamp)), 1)
|
|
498
|
+
], 10, yt))), 128)),
|
|
499
|
+
ne.value.length === 0 ? (i(), a("div", kt, m(R.value ? "No matching queries" : "No query history"), 1)) : v("", !0)
|
|
463
500
|
])
|
|
464
501
|
])) : v("", !0),
|
|
465
|
-
|
|
466
|
-
id:
|
|
502
|
+
ge(_e, {
|
|
503
|
+
id: G,
|
|
467
504
|
ref_key: "autocompleteRef",
|
|
468
|
-
ref:
|
|
469
|
-
items:
|
|
470
|
-
visible:
|
|
471
|
-
position:
|
|
472
|
-
onSelect:
|
|
473
|
-
onClose:
|
|
505
|
+
ref: I,
|
|
506
|
+
items: u(Q),
|
|
507
|
+
visible: u(k) && q.value && Me.value,
|
|
508
|
+
position: A.value,
|
|
509
|
+
onSelect: Fe,
|
|
510
|
+
onClose: u(K)
|
|
474
511
|
}, null, 8, ["items", "visible", "position", "onClose"]),
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
key: s,
|
|
484
|
-
class: "tql-error-message"
|
|
512
|
+
(i(), Ye(Ze, { to: "body" }, [
|
|
513
|
+
o.showValidation && !u(Y) && Ie.value && s.value && u(P).length > 0 && !(u(k) && u(Q).length > 0) ? (i(), a("div", {
|
|
514
|
+
key: 0,
|
|
515
|
+
id: J,
|
|
516
|
+
class: "tql-validation-messages-portal",
|
|
517
|
+
style: _(ze.value),
|
|
518
|
+
role: "alert",
|
|
519
|
+
"aria-live": "polite"
|
|
485
520
|
}, [
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
521
|
+
(i(!0), a(T, null, z(u(P).slice(0, 3), (l, n) => (i(), a("div", {
|
|
522
|
+
key: n,
|
|
523
|
+
class: "tql-error-message"
|
|
524
|
+
}, [
|
|
525
|
+
t[13] || (t[13] = r("i", {
|
|
526
|
+
class: "pi pi-exclamation-triangle",
|
|
527
|
+
"aria-hidden": "true"
|
|
528
|
+
}, null, -1)),
|
|
529
|
+
r("span", null, m(l.message), 1),
|
|
530
|
+
l.suggestion ? (i(), a("span", xt, m(l.suggestion), 1)) : v("", !0)
|
|
531
|
+
]))), 128))
|
|
532
|
+
], 4)) : v("", !0)
|
|
533
|
+
])),
|
|
534
|
+
o.showComplexity && h.value && h.value.warnings.length > 0 && !u(k) ? (i(), a("div", Ct, [
|
|
535
|
+
(i(!0), a(T, null, z(h.value.warnings.slice(0, 3), (l, n) => (i(), a("div", {
|
|
536
|
+
key: n,
|
|
497
537
|
class: w(["tql-complexity-warning", `tql-complexity-warning--${l.severity}`])
|
|
498
538
|
}, [
|
|
499
539
|
t[14] || (t[14] = r("i", {
|
|
500
540
|
class: "pi pi-info-circle",
|
|
501
541
|
"aria-hidden": "true"
|
|
502
542
|
}, null, -1)),
|
|
503
|
-
r("span", null,
|
|
543
|
+
r("span", null, m(l.message), 1)
|
|
504
544
|
], 2))), 128)),
|
|
505
|
-
|
|
506
|
-
(
|
|
507
|
-
key:
|
|
545
|
+
h.value.suggestions.length > 0 ? (i(), a("div", St, [
|
|
546
|
+
(i(!0), a(T, null, z(h.value.suggestions.slice(0, 2), (l, n) => (i(), a("div", {
|
|
547
|
+
key: n,
|
|
508
548
|
class: "tql-complexity-suggestion"
|
|
509
549
|
}, [
|
|
510
550
|
t[15] || (t[15] = r("i", {
|
|
511
551
|
class: "pi pi-lightbulb",
|
|
512
552
|
"aria-hidden": "true"
|
|
513
553
|
}, null, -1)),
|
|
514
|
-
r("span", null,
|
|
554
|
+
r("span", null, m(l), 1)
|
|
515
555
|
]))), 128))
|
|
516
556
|
])) : v("", !0)
|
|
517
557
|
])) : v("", !0),
|
|
518
|
-
|
|
519
|
-
r("div",
|
|
558
|
+
o.showPreview && C.value && s.value.trim() ? (i(), a("div", Vt, [
|
|
559
|
+
r("div", Pt, [
|
|
520
560
|
t[17] || (t[17] = r("span", null, "Query Structure", -1)),
|
|
521
561
|
r("button", {
|
|
522
562
|
type: "button",
|
|
523
563
|
class: "tql-preview-close",
|
|
524
564
|
title: "Close preview",
|
|
525
|
-
onClick: t[9] || (t[9] = (l) =>
|
|
565
|
+
onClick: t[9] || (t[9] = (l) => C.value = !1)
|
|
526
566
|
}, [...t[16] || (t[16] = [
|
|
527
567
|
r("i", { class: "pi pi-times" }, null, -1)
|
|
528
568
|
])])
|
|
529
569
|
]),
|
|
530
|
-
|
|
531
|
-
query:
|
|
570
|
+
ge(et, {
|
|
571
|
+
query: s.value,
|
|
532
572
|
"show-complexity": !1,
|
|
533
573
|
"show-field-usage": !0,
|
|
534
574
|
"show-logic-tree": !0,
|
|
535
575
|
compact: ""
|
|
536
576
|
}, null, 8, ["query"])
|
|
537
577
|
])) : v("", !0),
|
|
538
|
-
r("div",
|
|
539
|
-
|
|
540
|
-
|
|
578
|
+
r("div", Ht, [
|
|
579
|
+
o.showValidation && s.value ? (i(), a(T, { key: 0 }, [
|
|
580
|
+
u(Y) ? (i(), a("span", $t, "Query syntax is valid")) : (i(), a("span", Et, "Query has " + m(u(P).length) + " validation error" + m(u(P).length === 1 ? "" : "s"), 1))
|
|
541
581
|
], 64)) : v("", !0)
|
|
542
582
|
])
|
|
543
|
-
],
|
|
583
|
+
], 6));
|
|
544
584
|
}
|
|
545
585
|
});
|
|
546
586
|
export {
|
|
547
|
-
|
|
587
|
+
zt as default
|
|
548
588
|
};
|