autoql-fe-utils 1.0.95 → 1.0.97
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/index.d.ts +6 -0
- package/dist/index.global.js +20 -20
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +19 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -381,6 +381,12 @@ declare const DATA_ALERT_OPERATORS: {
|
|
|
381
381
|
conditionText: string;
|
|
382
382
|
conditionTextPast: string;
|
|
383
383
|
};
|
|
384
|
+
NOT_EQUAL_TO: {
|
|
385
|
+
displayName: string;
|
|
386
|
+
symbol: string;
|
|
387
|
+
conditionText: string;
|
|
388
|
+
conditionTextPast: string;
|
|
389
|
+
};
|
|
384
390
|
};
|
|
385
391
|
declare const DATA_ALERT_CONDITION_TYPES: {
|
|
386
392
|
COMPARE: {
|
package/dist/index.global.js
CHANGED
|
@@ -14812,18 +14812,15 @@
|
|
|
14812
14812
|
symbol: "=",
|
|
14813
14813
|
conditionText: "equals",
|
|
14814
14814
|
conditionTextPast: "was equal to"
|
|
14815
|
-
}
|
|
14816
|
-
/* Not using this for now. Uncomment to enable later if desired
|
|
14815
|
+
},
|
|
14817
14816
|
NOT_EQUAL_TO: {
|
|
14818
|
-
displayName:
|
|
14819
|
-
<
|
|
14820
|
-
|
|
14821
|
-
|
|
14822
|
-
|
|
14823
|
-
|
|
14824
|
-
|
|
14825
|
-
conditionTextPast: 'was not equal to',
|
|
14826
|
-
}, */
|
|
14817
|
+
displayName: `<span>
|
|
14818
|
+
Is <strong>not equal</strong> to
|
|
14819
|
+
</span>`,
|
|
14820
|
+
symbol: "!=",
|
|
14821
|
+
conditionText: "is not equal to",
|
|
14822
|
+
conditionTextPast: "was not equal to"
|
|
14823
|
+
}
|
|
14827
14824
|
/* These are additions term condition values
|
|
14828
14825
|
They can be used to create more complex condition groups
|
|
14829
14826
|
EXISTS: {},
|
|
@@ -27755,6 +27752,7 @@
|
|
|
27755
27752
|
if (!(columns == null ? void 0 : columns.length)) {
|
|
27756
27753
|
return columns;
|
|
27757
27754
|
}
|
|
27755
|
+
const isSingleValue = isSingleValueResponse(response);
|
|
27758
27756
|
const transformedColumns = columns.map((col, i) => {
|
|
27759
27757
|
var _a2, _b2, _c, _d;
|
|
27760
27758
|
const drilldownGroupby = getDrilldownGroupby(response, col);
|
|
@@ -27763,10 +27761,10 @@
|
|
|
27763
27761
|
additional = true;
|
|
27764
27762
|
}
|
|
27765
27763
|
let is_visible = col.is_visible;
|
|
27766
|
-
if ((_d = (_c = (_b2 = (_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.fe_req) == null ? void 0 : _c.additional_selects) == null ? void 0 : _d.find((select) => {
|
|
27764
|
+
if (isSingleValue || ((_d = (_c = (_b2 = (_a2 = response == null ? void 0 : response.data) == null ? void 0 : _a2.data) == null ? void 0 : _b2.fe_req) == null ? void 0 : _c.additional_selects) == null ? void 0 : _d.find((select) => {
|
|
27767
27765
|
var _a3;
|
|
27768
27766
|
return ((_a3 = select == null ? void 0 : select.columns) == null ? void 0 : _a3[0]) === col.name;
|
|
27769
|
-
})) {
|
|
27767
|
+
}))) {
|
|
27770
27768
|
is_visible = true;
|
|
27771
27769
|
}
|
|
27772
27770
|
return new Column({
|
|
@@ -28460,13 +28458,15 @@
|
|
|
28460
28458
|
if (value.type === "VL" /* SAMPLE_QUERY_VL_TYPE */ && value.replacement) {
|
|
28461
28459
|
const replacedValue = (_a2 = value.replacement) == null ? void 0 : _a2.format_txt;
|
|
28462
28460
|
const start = (_b2 = sampleQueryText.indexOf(replacedValue)) != null ? _b2 : 0;
|
|
28463
|
-
|
|
28464
|
-
|
|
28465
|
-
|
|
28466
|
-
|
|
28467
|
-
|
|
28468
|
-
|
|
28469
|
-
|
|
28461
|
+
if (start > -1) {
|
|
28462
|
+
const end = start + ((_c = value == null ? void 0 : value.value) == null ? void 0 : _c.length);
|
|
28463
|
+
userSelection.push({
|
|
28464
|
+
...value.replacement,
|
|
28465
|
+
canonical: key,
|
|
28466
|
+
start,
|
|
28467
|
+
end
|
|
28468
|
+
});
|
|
28469
|
+
}
|
|
28470
28470
|
}
|
|
28471
28471
|
});
|
|
28472
28472
|
}
|