@sfxcode/nuxt-ui-mongocamp 1.5.8 → 2.0.0
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/README.md +5 -5
- package/dist/module.json +1 -1
- package/dist/runtime/components/MongocampAggregationBuilder.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampAggregationBuilder.vue +5 -2
- package/dist/runtime/components/MongocampAggregationBuilder.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampAggregationStagePreview.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampAggregationStagePreview.vue +4 -2
- package/dist/runtime/components/MongocampAggregationStagePreview.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampBucketFiles.vue +4 -6
- package/dist/runtime/components/MongocampCollectionCharts.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampCollectionCharts.vue +4 -2
- package/dist/runtime/components/MongocampCollectionCharts.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampCollectionCopy.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampCollectionCopy.vue +5 -3
- package/dist/runtime/components/MongocampCollectionCopy.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampCollectionData.vue +60 -25
- package/dist/runtime/components/MongocampCollectionInfos.vue +16 -1
- package/dist/runtime/components/MongocampDocumentView.vue +6 -1
- package/dist/runtime/components/MongocampExportAll.d.vue.ts +1 -0
- package/dist/runtime/components/MongocampExportAll.vue +12 -0
- package/dist/runtime/components/MongocampExportAll.vue.d.ts +1 -0
- package/dist/runtime/components/MongocampImport.vue +3 -0
- package/dist/runtime/components/MongocampIndexes.vue +7 -3
- package/dist/runtime/components/MongocampQueryBar.vue +15 -0
- package/dist/runtime/components/MongocampServerInfo.vue +1 -14
- package/dist/runtime/components/MongocampServerStatus.vue +7 -2
- package/dist/runtime/components/MongocampVersion.d.vue.ts +1 -1
- package/dist/runtime/components/MongocampVersion.vue +14 -7
- package/dist/runtime/components/MongocampVersion.vue.d.ts +1 -1
- package/dist/runtime/composables/useMongocampAdmin.js +6 -5
- package/dist/runtime/composables/useMongocampAggregation.d.ts +10 -1
- package/dist/runtime/composables/useMongocampAggregation.js +17 -5
- package/dist/runtime/composables/useMongocampBucket.d.ts +4 -0
- package/dist/runtime/composables/useMongocampBucket.js +7 -6
- package/dist/runtime/composables/useMongocampBulkByFilter.d.ts +6 -4
- package/dist/runtime/composables/useMongocampBulkByFilter.js +11 -6
- package/dist/runtime/composables/useMongocampCollectionCopy.d.ts +3 -1
- package/dist/runtime/composables/useMongocampCollectionCopy.js +4 -2
- package/dist/runtime/composables/useMongocampCollectionStats.js +2 -4
- package/dist/runtime/composables/useMongocampError.d.ts +1 -1
- package/dist/runtime/composables/useMongocampError.js +4 -1
- package/dist/runtime/composables/useMongocampExportAll.d.ts +10 -1
- package/dist/runtime/composables/useMongocampExportAll.js +4 -1
- package/dist/runtime/composables/useMongocampFetchAll.d.ts +11 -5
- package/dist/runtime/composables/useMongocampFetchAll.js +8 -8
- package/dist/runtime/composables/useMongocampJobs.js +3 -2
- package/dist/runtime/composables/useMongocampQuery.d.ts +26 -36
- package/dist/runtime/composables/useMongocampQuery.js +45 -48
- package/dist/runtime/composables/useMongocampSchema.js +2 -0
- package/dist/runtime/locales/de.json +12 -4
- package/dist/runtime/locales/en.json +12 -4
- package/dist/runtime/publicUtils.d.ts +1 -0
- package/dist/runtime/publicUtils.js +1 -0
- package/dist/runtime/server/handlers/mongocampProxy.d.ts +1 -1
- package/dist/runtime/server/handlers/mongocampProxy.js +12 -12
- package/dist/runtime/utils/aggregationPipeline.d.ts +2 -1
- package/dist/runtime/utils/aggregationPipeline.js +2 -3
- package/dist/runtime/utils/caseInsensitive.d.ts +10 -0
- package/dist/runtime/utils/caseInsensitive.js +8 -0
- package/dist/runtime/utils/collectionStats.d.ts +4 -1
- package/dist/runtime/utils/collectionStats.js +2 -2
- package/dist/runtime/utils/configRows.d.ts +3 -3
- package/dist/runtime/utils/cursorPaging.d.ts +16 -0
- package/dist/runtime/utils/cursorPaging.js +17 -0
- package/dist/runtime/utils/documentCompare.js +2 -3
- package/dist/runtime/utils/documentPaths.d.ts +5 -5
- package/dist/runtime/utils/documentPaths.js +9 -2
- package/dist/runtime/utils/documentTree.js +3 -0
- package/dist/runtime/utils/fileFilter.d.ts +7 -0
- package/dist/runtime/utils/fileFilter.js +11 -0
- package/dist/runtime/utils/filterBuilder.d.ts +1 -1
- package/dist/runtime/utils/filterBuilder.js +5 -11
- package/dist/runtime/utils/filterSuggestions.js +1 -1
- package/dist/runtime/utils/indexForm.d.ts +7 -0
- package/dist/runtime/utils/indexForm.js +9 -0
- package/dist/runtime/utils/pagedFetch.d.ts +13 -0
- package/dist/runtime/utils/pagedFetch.js +44 -0
- package/dist/runtime/utils/queryState.d.ts +5 -0
- package/dist/runtime/utils/queryState.js +3 -2
- package/dist/runtime/utils/relaxedValues.d.ts +17 -0
- package/dist/runtime/utils/relaxedValues.js +51 -0
- package/dist/runtime/utils/requestLimits.d.ts +1 -1
- package/dist/runtime/utils/requestLimits.js +1 -1
- package/dist/runtime/utils/savedQueries.d.ts +2 -0
- package/dist/runtime/utils/savedQueries.js +1 -0
- package/dist/runtime/utils/schemaAnalysis.d.ts +4 -4
- package/dist/runtime/utils/schemaAnalysis.js +2 -2
- package/dist/runtime/utils/sensitiveFields.d.ts +20 -0
- package/dist/runtime/utils/sensitiveFields.js +63 -0
- package/dist/runtime/utils/serverError.d.ts +7 -0
- package/dist/runtime/utils/serverError.js +11 -0
- package/dist/runtime/utils/serverStatus.d.ts +2 -2
- package/package.json +12 -6
- package/dist/runtime/utils/luceneExpression.d.ts +0 -15
- package/dist/runtime/utils/luceneExpression.js +0 -74
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-ui-mongocamp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "A Nuxt module that wraps @sfxcode/nuxt-mongocamp-server with ready-made UI components, composables, and a runtime plugin",
|
|
5
5
|
"repository": "sfxcode/nuxt-ui-mongocamp",
|
|
6
6
|
"homepage": "https://sfxcode.github.io/nuxt-ui-mongocamp/",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dev": "npm run dev:prepare && nuxt dev playground",
|
|
52
52
|
"dev:build": "nuxt build playground",
|
|
53
53
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxt prepare playground",
|
|
54
|
-
"release": "npm run lint && npm run test && npm run prepack && changelogen --
|
|
54
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --major --release && npm publish && git push --follow-tags",
|
|
55
55
|
"lint": "eslint .",
|
|
56
56
|
"test": "vitest run --project unit --project components",
|
|
57
57
|
"test:watch": "vitest watch",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"@internationalized/date": "^3.12.4",
|
|
67
67
|
"@nuxt/ui": "^4.13.1",
|
|
68
68
|
"@nuxtjs/i18n": "^10.7.0",
|
|
69
|
-
"@sfxcode/nuxt-mongocamp-server": "^
|
|
69
|
+
"@sfxcode/nuxt-mongocamp-server": "^2.0.0",
|
|
70
70
|
"@sfxcode/nuxt-ui-formkit": "^1.5.0",
|
|
71
71
|
"@tanstack/charts": "^1.5.0",
|
|
72
72
|
"@tanstack/vue-table": "^8.21.3",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"unocss-nuxt-ui": "^1.3.0"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@iconify-json/lucide": "^1.2.
|
|
79
|
+
"@iconify-json/lucide": "^1.2.161",
|
|
80
80
|
"@nuxt/devtools": "^4.2.2",
|
|
81
81
|
"@nuxt/eslint-config": "^1.17.0",
|
|
82
82
|
"@nuxt/kit": "^4.7.0",
|
|
@@ -85,16 +85,22 @@
|
|
|
85
85
|
"@nuxt/test-utils": "^4.4.0",
|
|
86
86
|
"@playwright/test": "^1.65.1",
|
|
87
87
|
"@types/node": "latest",
|
|
88
|
-
"@unhead/vue": "^3.5.
|
|
88
|
+
"@unhead/vue": "^3.5.4",
|
|
89
89
|
"@vue/test-utils": "^2.6.0",
|
|
90
90
|
"changelogen": "^0.6.2",
|
|
91
|
-
"eslint": "^10.
|
|
91
|
+
"eslint": "^10.16.0",
|
|
92
|
+
"h3": "2.0.8",
|
|
92
93
|
"happy-dom": "^21.0.4",
|
|
94
|
+
"nitro": "3.0.261103-rc",
|
|
93
95
|
"nuxt": "^4.7.0",
|
|
94
96
|
"typescript": "~6.0.3",
|
|
95
97
|
"vitepress": "2.0.0-alpha.18",
|
|
96
98
|
"vitest": "^5.1.2",
|
|
97
99
|
"vue-tsc": "^3.3.14"
|
|
98
100
|
},
|
|
101
|
+
"peerDependencies": {
|
|
102
|
+
"nitro": ">=3.0.261103-rc",
|
|
103
|
+
"nuxt": ">=4.7.0"
|
|
104
|
+
},
|
|
99
105
|
"packageManager": "pnpm@11.21.0+sha512.521705bce689924eac72f5a3587122f362689ef6571e55ba80076fd637c11132ecffada26fad4ea79c485bfddbfd3d5a2a5b05805a77e893de71ec8a6cca3bb1"
|
|
100
106
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type LuceneNode = {
|
|
2
|
-
kind: 'clause';
|
|
3
|
-
text: string;
|
|
4
|
-
} | {
|
|
5
|
-
kind: 'and' | 'or';
|
|
6
|
-
parts: LuceneNode[];
|
|
7
|
-
} | {
|
|
8
|
-
kind: 'not';
|
|
9
|
-
node: LuceneNode;
|
|
10
|
-
};
|
|
11
|
-
export declare class UnsupportedExpressionError extends Error {
|
|
12
|
-
constructor(expression: string, reason: string);
|
|
13
|
-
}
|
|
14
|
-
/** `null` for an empty expression; throws {@link UnsupportedExpressionError} for anything it cannot read. */
|
|
15
|
-
export declare function parseLuceneExpression(expression: string): LuceneNode | null;
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
export class UnsupportedExpressionError extends Error {
|
|
2
|
-
constructor(expression, reason) {
|
|
3
|
-
super(`Cannot negate this expression (${reason}): ${expression}`);
|
|
4
|
-
this.name = "UnsupportedExpressionError";
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
const OPEN = /* @__PURE__ */ new Set(["(", "[", "{"]);
|
|
8
|
-
const CLOSE = /* @__PURE__ */ new Set([")", "]", "}"]);
|
|
9
|
-
function scan(text, visit) {
|
|
10
|
-
let depth = 0;
|
|
11
|
-
let inQuote = false;
|
|
12
|
-
for (let i = 0; i < text.length; i++) {
|
|
13
|
-
const char = text[i];
|
|
14
|
-
if (char === "\\") {
|
|
15
|
-
i++;
|
|
16
|
-
continue;
|
|
17
|
-
}
|
|
18
|
-
if (char === '"') {
|
|
19
|
-
inQuote = !inQuote;
|
|
20
|
-
continue;
|
|
21
|
-
}
|
|
22
|
-
if (inQuote) continue;
|
|
23
|
-
if (CLOSE.has(char)) depth--;
|
|
24
|
-
const found = visit(char, i, depth);
|
|
25
|
-
if (found !== void 0) return found;
|
|
26
|
-
if (OPEN.has(char)) depth++;
|
|
27
|
-
}
|
|
28
|
-
return void 0;
|
|
29
|
-
}
|
|
30
|
-
function matchingClose(text, start) {
|
|
31
|
-
const index = scan(text.slice(start), (char, i, depth) => char === ")" && depth === 0 ? i : void 0);
|
|
32
|
-
return index === void 0 ? -1 : start + index;
|
|
33
|
-
}
|
|
34
|
-
function splitTopLevel(text) {
|
|
35
|
-
const parts = [];
|
|
36
|
-
const operators = /* @__PURE__ */ new Set();
|
|
37
|
-
let last = 0;
|
|
38
|
-
scan(text, (char, i, depth) => {
|
|
39
|
-
if (char !== " " || depth !== 0) return void 0;
|
|
40
|
-
for (const operator of ["AND", "OR"]) {
|
|
41
|
-
const token = ` ${operator} `;
|
|
42
|
-
if (text.startsWith(token, i)) {
|
|
43
|
-
parts.push(text.slice(last, i));
|
|
44
|
-
operators.add(operator);
|
|
45
|
-
last = i + token.length;
|
|
46
|
-
return void 0;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return void 0;
|
|
50
|
-
});
|
|
51
|
-
parts.push(text.slice(last));
|
|
52
|
-
return { parts: parts.map((part) => part.trim()), operators };
|
|
53
|
-
}
|
|
54
|
-
export function parseLuceneExpression(expression) {
|
|
55
|
-
const text = expression.trim();
|
|
56
|
-
if (text === "" || text === "()") return null;
|
|
57
|
-
return parse(text, expression);
|
|
58
|
-
}
|
|
59
|
-
function parse(text, original) {
|
|
60
|
-
if (text.startsWith("NOT ") || text.startsWith("!")) throw new UnsupportedExpressionError(original, "NOT is not supported");
|
|
61
|
-
if (text.startsWith("-(") && matchingClose(text, 1) === text.length - 1) {
|
|
62
|
-
return { kind: "not", node: parse(text.slice(2, -1).trim(), original) };
|
|
63
|
-
}
|
|
64
|
-
if (text.startsWith("(")) {
|
|
65
|
-
const close = matchingClose(text, 0);
|
|
66
|
-
if (close === -1) throw new UnsupportedExpressionError(original, "unbalanced parentheses");
|
|
67
|
-
if (close === text.length - 1) return parse(text.slice(1, -1).trim(), original);
|
|
68
|
-
}
|
|
69
|
-
const { parts, operators } = splitTopLevel(text);
|
|
70
|
-
if (operators.size === 0) return { kind: "clause", text };
|
|
71
|
-
if (operators.size > 1) throw new UnsupportedExpressionError(original, "AND and OR mixed without parentheses");
|
|
72
|
-
if (parts.includes("")) throw new UnsupportedExpressionError(original, "empty operand");
|
|
73
|
-
return { kind: operators.has("AND") ? "and" : "or", parts: parts.map((part) => parse(part, original)) };
|
|
74
|
-
}
|