Commit 51d3139d by jiangxd2016

release: v1.2.16

parent 6effdc91
{ {
"name": "@grafana/vue", "name": "@grafana/vue",
"version": "1.2.0", "version": "1.2.0",
"builtAt": "2026-07-29T09:13:54.277Z", "builtAt": "2026-07-30T07:55:17.908Z",
"mode": "library-esm-single-file", "mode": "library-esm-single-file",
"entries": { "entries": {
"index": "src/index.ts", "index": "src/index.ts",
......
...@@ -273,6 +273,28 @@ ...@@ -273,6 +273,28 @@
} }
return acc; return acc;
} }
function stringStartsAsRegEx(str) {
return Boolean(str) && str[0] === "/";
}
function stringToJsRegex(str) {
if (!stringStartsAsRegEx(str)) {
return new RegExp(`^${str}$`);
}
const match = str.match(/^\/(.*?)\/(g?i?m?y?s?)$/);
if (!match) {
throw new Error(`'${str}' is not a valid regular expression.`);
}
return new RegExp(match[1], match[2]);
}
function stringToJsRegexSafe(str) {
try {
const s = String(str ?? "");
if (!s) return null;
return stringToJsRegex(s);
} catch {
return null;
}
}
var ReducerID = /* @__PURE__ */ ((ReducerID2) => { var ReducerID = /* @__PURE__ */ ((ReducerID2) => {
ReducerID2["sum"] = "sum"; ReducerID2["sum"] = "sum";
ReducerID2["max"] = "max"; ReducerID2["max"] = "max";
...@@ -414,28 +436,6 @@ ...@@ -414,28 +436,6 @@
} }
return out; return out;
} }
function stringStartsAsRegEx(str) {
return Boolean(str) && str[0] === "/";
}
function stringToJsRegex(str) {
if (!stringStartsAsRegEx(str)) {
return new RegExp(`^${str}$`);
}
const match = str.match(/^\/(.*?)\/(g?i?m?y?s?)$/);
if (!match) {
throw new Error(`'${str}' is not a valid regular expression.`);
}
return new RegExp(match[1], match[2]);
}
function stringToJsRegexSafe(str) {
try {
const s = String(str ?? "");
if (!s) return null;
return stringToJsRegex(s);
} catch {
return null;
}
}
function compareFieldValues(left, op, right) { function compareFieldValues(left, op, right) {
const o = String(op).toLowerCase(); const o = String(op).toLowerCase();
const lv = left; const lv = left;
...@@ -702,6 +702,13 @@ ...@@ -702,6 +702,13 @@
const key = id.slice(7); const key = id.slice(7);
return { ...config, custom: { ...config.custom ?? {}, [key]: value } }; return { ...config, custom: { ...config.custom ?? {}, [key]: value } };
} }
if (id === "filterable") {
return {
...config,
filterable: value,
custom: { ...config.custom ?? {}, filterable: value }
};
}
return { ...config, [id]: value }; return { ...config, [id]: value };
} }
const compiledRulesCache = /* @__PURE__ */ new WeakMap(); const compiledRulesCache = /* @__PURE__ */ new WeakMap();
...@@ -1208,4 +1215,4 @@ ...@@ -1208,4 +1215,4 @@
self.onmessage = onMessage; self.onmessage = onMessage;
} }
})(); })();
//# sourceMappingURL=panelPipelineWorker-Basypt6p.js.map //# sourceMappingURL=panelPipelineWorker-D7_wrugH.js.map
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
{ {
"name": "@grafana/vue", "name": "@grafana/vue",
"version": "1.2.15", "version": "1.2.16",
"type": "module", "type": "module",
"main": "./dist/index.js", "main": "./dist/index.js",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment