@sisense/sdk-ui-preact 1.4.0 → 1.4.1

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.es.js CHANGED
@@ -40983,7 +40983,7 @@ const Cz = "composesdk", k_ = (t, e, n, r = !1) => l5t(void 0, void 0, void 0, f
40983
40983
  const { app: n, enableTracking: r } = ri(), i = sr(MX), o = ae(!1);
40984
40984
  xe(() => {
40985
40985
  if (n != null && n.httpClient && !o.current && !i) {
40986
- const a = { packageName: "sdk-ui", packageVersion: "1.4.0", componentName: t, attributesUsed: Object.entries(e).filter(([, s]) => !!s).map(([s]) => s).join(", ") };
40986
+ const a = { packageName: "sdk-ui", packageVersion: "1.4.1", componentName: t, attributesUsed: Object.entries(e).filter(([, s]) => !!s).map(([s]) => s).join(", ") };
40987
40987
  k_(d5t, a, n.httpClient, !r).catch((s) => console.warn("An error occurred when sending the sdkComponentInit event", s)).finally(() => o.current = !0);
40988
40988
  }
40989
40989
  }, [t, e, n, r, i]);
@@ -41000,7 +41000,7 @@ let TX = class extends No {
41000
41000
  throw this.context.enableTracking && (this.httpClient ? this.sendErrorTracking(e, this.httpClient) : this.postponedErrors.push(e)), e;
41001
41001
  }
41002
41002
  sendErrorTracking(e, n) {
41003
- u5t({ packageVersion: "1.4.0", component: this.componentName, error: e }, n).catch((r) => console.log("Failed to send tracking error event: ", r));
41003
+ u5t({ packageVersion: "1.4.1", component: this.componentName, error: e }, n).catch((r) => console.log("Failed to send tracking error event: ", r));
41004
41004
  }
41005
41005
  render() {
41006
41006
  return this.httpClient && this.postponedErrors.length > 0 && this.postponedErrors.forEach((e) => this.sendErrorTracking(e, this.httpClient)), this.postponedErrors = [], this.props.children;
@@ -43387,7 +43387,7 @@ function j6t(t, e, n) {
43387
43387
  </div>`;
43388
43388
  }
43389
43389
  function I6t(t, e) {
43390
- return e === "world" ? uc.map(t, { attributionControl: !1, scrollWheelZoom: !0, minZoom: 1, zoom: 1, center: [0, 0] }) : uc.map(t, { crs: new uc.Proj.CRS("EPSG:5070", "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs", { resolutions: [16384, 10240, 8192, 4096] }), center: [35.96852047262865, -96.96520768859223], zoom: 0.4, attributionControl: !1 });
43390
+ return e === "world" ? uc.map(t, { attributionControl: !1, scrollWheelZoom: !0, minZoom: 1, zoom: 1, maxZoom: 5, center: [0, 0] }) : uc.map(t, { crs: new uc.Proj.CRS("EPSG:5070", "+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs", { resolutions: [16384, 10240, 8192, 4096] }), center: [35.96852047262865, -96.96520768859223], zoom: 0.4, maxZoom: 3, attributionControl: !1 });
43391
43391
  }
43392
43392
  function R6t(t, e) {
43393
43393
  if (e.ATA && e.ATA.geoDataElement)
@@ -58170,12 +58170,12 @@ const O6 = (t) => t % 2 === 1, P6 = ({ colIndex: t = 0, rowIndex: e = 0, themeSe
58170
58170
  const [o, a] = ve(0), { topSlot: s, bottomSlot: l, title: c, description: d, styleOptions: y } = t, { themeSettings: u } = Ui(), j = mN("table", { hasHeader: !((e = y == null ? void 0 : y.header) != null && e.hidden) }), f = t.styleOptions || {}, { width: g, height: k } = f, W = lo(f, ["width", "height"]);
58171
58171
  return t.dataOptions ? /* @__PURE__ */ Ct(Py, { defaultSize: j, size: { width: g, height: k }, children: /* @__PURE__ */ Ct("div", { className: "csdk-w-full csdk-h-full csdk-overflow-hidden", children: /* @__PURE__ */ Ct("div", { className: "csdk-h-full", style: { padding: K_[(y == null ? void 0 : y.spaceAround) || "None"] }, children: /* @__PURE__ */ Ct("div", { className: "csdk-h-full csdk-overflow-hidden", style: { borderWidth: y != null && y.border ? "1px" : 0, borderColor: (y == null ? void 0 : y.borderColor) || u.chart.textColor, borderRadius: y != null && y.cornerRadius ? J_[y.cornerRadius] : 0, boxShadow: oD(y), display: "flex", flexDirection: "column" }, children: [!((n = y == null ? void 0 : y.header) != null && n.hidden) && /* @__PURE__ */ Ct(iD, { title: c, description: d, dataSetName: t.dataSource, styleOptions: y == null ? void 0 : y.header, onRefresh: () => a(o + 1) }), s, /* @__PURE__ */ Ct(Rf, { theme: { chart: { backgroundColor: (y == null ? void 0 : y.backgroundColor) || ((r = u.chart) == null ? void 0 : r.backgroundColor) } }, children: /* @__PURE__ */ Ct("div", { style: { flexGrow: 1, backgroundColor: (y == null ? void 0 : y.backgroundColor) || ((i = u.chart) == null ? void 0 : i.backgroundColor) }, children: /* @__PURE__ */ Ct(kGt, { dataSet: t.dataSource, dataOptions: t.dataOptions, styleOptions: W, filters: t.filters, refreshCounter: o }) }) }), l] }) }) }) }) : null;
58172
58172
  }), HZ = "sdkHookInit", n0e = (t, e, n, r) => Ia(void 0, null, function* () {
58173
- n && k_(HZ, { packageName: e, packageVersion: "1.4.0", hookName: t }, n.httpClient).catch((i) => console.warn("An error occurred when sending the sdkHookInit event", i)).finally(r);
58173
+ n && k_(HZ, { packageName: e, packageVersion: "1.4.1", hookName: t }, n.httpClient).catch((i) => console.warn("An error occurred when sending the sdkHookInit event", i)).finally(r);
58174
58174
  });
58175
58175
  function TGt(t) {
58176
58176
  const { app: e, enableTracking: n } = ri(), r = ae(!1);
58177
58177
  xe(() => {
58178
- e != null && e.httpClient && !r.current && k_(HZ, { packageName: "sdk-ui", packageVersion: "1.4.0", hookName: t }, e.httpClient, !n).catch((i) => console.warn("An error occurred when sending the sdkHookInit event", i)).finally(() => r.current = !0);
58178
+ e != null && e.httpClient && !r.current && k_(HZ, { packageName: "sdk-ui", packageVersion: "1.4.1", hookName: t }, e.httpClient, !n).catch((i) => console.warn("An error occurred when sending the sdkHookInit event", i)).finally(() => r.current = !0);
58179
58179
  }, [e, n, t]);
58180
58180
  }
58181
58181
  const vd = (t) => (e) => (...n) => (TGt(t), e(...n));
@@ -84155,7 +84155,7 @@ class Mfe {
84155
84155
  constructor(e, n, r) {
84156
84156
  So(this, "httpClient"), So(this, "pivotClient"), So(this, "queryClient"), So(this, "defaultDataSource"), So(this, "settings"), window.addEventListener("unhandledrejection", (i) => {
84157
84157
  i.reason instanceof Error ? console.error(i.reason.message) : console.error(i.reason);
84158
- }), this.httpClient = new sZt(e, n, "sdk-ui-1.4.0"), this.pivotClient = new mtt(this.httpClient), this.queryClient = new Ihe(this.httpClient, this.pivotClient), r !== void 0 && (this.defaultDataSource = r);
84158
+ }), this.httpClient = new sZt(e, n, "sdk-ui-1.4.1"), this.pivotClient = new mtt(this.httpClient), this.queryClient = new Ihe(this.httpClient, this.pivotClient), r !== void 0 && (this.defaultDataSource = r);
84159
84159
  }
84160
84160
  }
84161
84161
  const Tfe = (t) => Cc(void 0, [t], function* ({ defaultDataSource: e, url: n, token: r, wat: i, ssoEnabled: o, appConfig: a, enableSilentPreAuth: s }) {