autoql-fe-utils 1.0.106 → 1.0.108

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.
@@ -24105,6 +24105,9 @@
24105
24105
  return { buckets: binFn(data), bins };
24106
24106
  };
24107
24107
 
24108
+ // node_modules/d3-axis/src/array.js
24109
+ var slice3 = Array.prototype.slice;
24110
+
24108
24111
  // node_modules/d3-axis/src/identity.js
24109
24112
  function identity_default3(x) {
24110
24113
  return x;
@@ -24117,27 +24120,31 @@
24117
24120
  var left = 4;
24118
24121
  var epsilon2 = 1e-6;
24119
24122
  function translateX(x) {
24120
- return "translate(" + x + ",0)";
24123
+ return "translate(" + (x + 0.5) + ",0)";
24121
24124
  }
24122
24125
  function translateY(y) {
24123
- return "translate(0," + y + ")";
24126
+ return "translate(0," + (y + 0.5) + ")";
24124
24127
  }
24125
24128
  function number4(scale) {
24126
- return (d) => +scale(d);
24129
+ return function(d) {
24130
+ return +scale(d);
24131
+ };
24127
24132
  }
24128
- function center(scale, offset) {
24129
- offset = Math.max(0, scale.bandwidth() - offset * 2) / 2;
24133
+ function center(scale) {
24134
+ var offset = Math.max(0, scale.bandwidth() - 1) / 2;
24130
24135
  if (scale.round())
24131
24136
  offset = Math.round(offset);
24132
- return (d) => +scale(d) + offset;
24137
+ return function(d) {
24138
+ return +scale(d) + offset;
24139
+ };
24133
24140
  }
24134
24141
  function entering() {
24135
24142
  return !this.__axis;
24136
24143
  }
24137
24144
  function axis(orient, scale) {
24138
- var tickArguments = [], tickValues = null, tickFormat2 = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, k = orient === top || orient === left ? -1 : 1, x = orient === left || orient === right ? "x" : "y", transform = orient === top || orient === bottom ? translateX : translateY;
24145
+ var tickArguments = [], tickValues = null, tickFormat2 = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, k = orient === top || orient === left ? -1 : 1, x = orient === left || orient === right ? "x" : "y", transform = orient === top || orient === bottom ? translateX : translateY;
24139
24146
  function axis2(context) {
24140
- var values = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain() : tickValues, format2 = tickFormat2 == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity_default3 : tickFormat2, spacing = Math.max(tickSizeInner, 0) + tickPadding, range2 = scale.range(), range0 = +range2[0] + offset, range1 = +range2[range2.length - 1] + offset, position = (scale.bandwidth ? center : number4)(scale.copy(), offset), selection2 = context.selection ? context.selection() : context, path2 = selection2.selectAll(".domain").data([null]), tick = selection2.selectAll(".tick").data(values, scale).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line2 = tick.select("line"), text = tick.select("text");
24147
+ var values = tickValues == null ? scale.ticks ? scale.ticks.apply(scale, tickArguments) : scale.domain() : tickValues, format2 = tickFormat2 == null ? scale.tickFormat ? scale.tickFormat.apply(scale, tickArguments) : identity_default3 : tickFormat2, spacing = Math.max(tickSizeInner, 0) + tickPadding, range2 = scale.range(), range0 = +range2[0] + 0.5, range1 = +range2[range2.length - 1] + 0.5, position = (scale.bandwidth ? center : number4)(scale.copy()), selection2 = context.selection ? context.selection() : context, path2 = selection2.selectAll(".domain").data([null]), tick = selection2.selectAll(".tick").data(values, scale).order(), tickExit = tick.exit(), tickEnter = tick.enter().append("g").attr("class", "tick"), line2 = tick.select("line"), text = tick.select("text");
24141
24148
  path2 = path2.merge(path2.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
24142
24149
  tick = tick.merge(tickEnter);
24143
24150
  line2 = line2.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x + "2", k * tickSizeInner));
@@ -24148,17 +24155,17 @@
24148
24155
  line2 = line2.transition(context);
24149
24156
  text = text.transition(context);
24150
24157
  tickExit = tickExit.transition(context).attr("opacity", epsilon2).attr("transform", function(d) {
24151
- return isFinite(d = position(d)) ? transform(d + offset) : this.getAttribute("transform");
24158
+ return isFinite(d = position(d)) ? transform(d) : this.getAttribute("transform");
24152
24159
  });
24153
24160
  tickEnter.attr("opacity", epsilon2).attr("transform", function(d) {
24154
24161
  var p = this.parentNode.__axis;
24155
- return transform((p && isFinite(p = p(d)) ? p : position(d)) + offset);
24162
+ return transform(p && isFinite(p = p(d)) ? p : position(d));
24156
24163
  });
24157
24164
  }
24158
24165
  tickExit.remove();
24159
- path2.attr("d", orient === left || orient === right ? tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H" + offset + "V" + range1 + "H" + k * tickSizeOuter : "M" + offset + "," + range0 + "V" + range1 : tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V" + offset + "H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + "," + offset + "H" + range1);
24166
+ path2.attr("d", orient === left || orient == right ? tickSizeOuter ? "M" + k * tickSizeOuter + "," + range0 + "H0.5V" + range1 + "H" + k * tickSizeOuter : "M0.5," + range0 + "V" + range1 : tickSizeOuter ? "M" + range0 + "," + k * tickSizeOuter + "V0.5H" + range1 + "V" + k * tickSizeOuter : "M" + range0 + ",0.5H" + range1);
24160
24167
  tick.attr("opacity", 1).attr("transform", function(d) {
24161
- return transform(position(d) + offset);
24168
+ return transform(position(d));
24162
24169
  });
24163
24170
  line2.attr(x + "2", k * tickSizeInner);
24164
24171
  text.attr(x, k * spacing).text(format2);
@@ -24171,13 +24178,13 @@
24171
24178
  return arguments.length ? (scale = _, axis2) : scale;
24172
24179
  };
24173
24180
  axis2.ticks = function() {
24174
- return tickArguments = Array.from(arguments), axis2;
24181
+ return tickArguments = slice3.call(arguments), axis2;
24175
24182
  };
24176
24183
  axis2.tickArguments = function(_) {
24177
- return arguments.length ? (tickArguments = _ == null ? [] : Array.from(_), axis2) : tickArguments.slice();
24184
+ return arguments.length ? (tickArguments = _ == null ? [] : slice3.call(_), axis2) : tickArguments.slice();
24178
24185
  };
24179
24186
  axis2.tickValues = function(_) {
24180
- return arguments.length ? (tickValues = _ == null ? null : Array.from(_), axis2) : tickValues && tickValues.slice();
24187
+ return arguments.length ? (tickValues = _ == null ? null : slice3.call(_), axis2) : tickValues && tickValues.slice();
24181
24188
  };
24182
24189
  axis2.tickFormat = function(_) {
24183
24190
  return arguments.length ? (tickFormat2 = _, axis2) : tickFormat2;
@@ -24194,9 +24201,6 @@
24194
24201
  axis2.tickPadding = function(_) {
24195
24202
  return arguments.length ? (tickPadding = +_, axis2) : tickPadding;
24196
24203
  };
24197
- axis2.offset = function(_) {
24198
- return arguments.length ? (offset = +_, axis2) : offset;
24199
- };
24200
24204
  return axis2;
24201
24205
  }
24202
24206
  function axisTop(scale) {
@@ -29256,7 +29260,7 @@
29256
29260
  const data = {
29257
29261
  state: "DISMISSED"
29258
29262
  };
29259
- const url2 = `${domain}/autoql/api/v1/data-alerts/notifications?key=${apiKey}`;
29263
+ const url2 = `${domain}/autoql/api/v1/data-alerts/notifications?key=${apiKey}&project=all`;
29260
29264
  return axiosInstance.put(url2, data).catch((error) => {
29261
29265
  var _a;
29262
29266
  return Promise.reject((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data);
@@ -29479,10 +29483,12 @@
29479
29483
  Authorization: `Bearer ${token}`
29480
29484
  }
29481
29485
  });
29482
- const projects = [{
29483
- id: projectId,
29484
- time_zone: (_b = (_a = Intl == null ? void 0 : Intl.DateTimeFormat()) == null ? void 0 : _a.resolvedOptions()) == null ? void 0 : _b.timeZone
29485
- }];
29486
+ const projects = [
29487
+ {
29488
+ id: projectId,
29489
+ time_zone: (_b = (_a = Intl == null ? void 0 : Intl.DateTimeFormat()) == null ? void 0 : _a.resolvedOptions()) == null ? void 0 : _b.timeZone
29490
+ }
29491
+ ];
29486
29492
  const data = { ...dataAlert, id: void 0, projects };
29487
29493
  const url2 = `${domain}/autoql/management/api/v1/data-alerts?validate=true&key=${apiKey}`;
29488
29494
  return axiosInstance.post(url2, data).catch((error) => {