@luizleon/sf.prefeiturasp.vuecomponents 4.1.9 → 4.1.11

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.
@@ -107,17 +107,16 @@ const fl = /* @__PURE__ */ sr(al, [["render", dl]]), ui = /* @__PURE__ */ We({
107
107
  this.wrapper = document.createElement("div"), this.wrapper.classList.add("sf-tooltip-wrapper"), this.wrapper.style.zIndex = `${this.zIndex ?? 0}`, this.inner = document.createElement("div"), this.inner.classList.add("sf-tooltip-inner"), this.wrapper.appendChild(this.inner);
108
108
  }
109
109
  Show(s) {
110
- this.inner.textContent = e.text;
111
- const i = s.target;
112
- document.body.appendChild(this.wrapper), this.Position(i.getBoundingClientRect()), this.wrapper.classList.add("visible");
110
+ this.inner.textContent = e.text, document.body.appendChild(this.wrapper), this.Position(s), this.wrapper.classList.add("visible");
113
111
  }
114
112
  Hide() {
115
113
  this.wrapper.classList.remove("visible"), this.wrapper.remove();
116
114
  }
117
115
  Position(s) {
116
+ const a = s.currentTarget.getBoundingClientRect();
118
117
  this.FixWidth();
119
- const i = 10, a = s.top, l = s.bottom, c = s.left, u = s.right, f = this.wrapper;
120
- f.style.top = `${l + i}px`, f.style.left = `${c}px`, this.OutOfBottom() && (f.style.top = `${a - f.clientHeight - i}px`, f.classList.add("top")), this.OutOfRight() && (f.style.left = `${u - f.clientWidth}px`, f.classList.add("left"));
118
+ const l = this.wrapper, c = 10;
119
+ l.style.top = `${a.bottom - c}px`, l.style.left = `${a.right - c}px`, this.OutOfBottom() && (l.style.top = `${a.top - l.clientHeight + c}px`), this.OutOfRight() && (l.style.left = `${a.left - l.clientWidth + c}px`);
121
120
  }
122
121
  FixWidth() {
123
122
  this.wrapper.style.width = "fit-content", this.wrapper.style.wordBreak = "normal", this.wrapper.style.whiteSpace = "nowrap";
@@ -8995,12 +8994,12 @@ class Qh {
8995
8994
  }
8996
8995
  const fg = (t, e) => new Qh(t, e);
8997
8996
  class eg {
8998
- constructor() {
8997
+ constructor(e) {
8999
8998
  Pe(this, "axios");
9000
8999
  Pe(this, "authService", Zi());
9001
- this.axios = ie.create(), this.axios.defaults.baseURL = window.location.origin + "/api", this.axios.defaults.headers.common["content-type"] = "application/json", this.axios.defaults.timeout = 1e3 * 60 * 5, this.axios.interceptors.request.use(async (e) => {
9002
- const n = await this.GetAccessToken();
9003
- return e.headers.Authorization = n ? `Bearer ${n}` : void 0, e;
9000
+ this.axios = ie.create(), this.axios.defaults.baseURL = e ?? window.location.origin + "/api", this.axios.defaults.headers.common["content-type"] = "application/json", this.axios.defaults.timeout = 1e3 * 60 * 5, this.axios.interceptors.request.use(async (n) => {
9001
+ const r = await this.GetAccessToken();
9002
+ return n.headers.Authorization = r ? `Bearer ${r}` : void 0, n;
9004
9003
  });
9005
9004
  }
9006
9005
  /**
@@ -9053,7 +9052,7 @@ class eg {
9053
9052
  }
9054
9053
  }
9055
9054
  }
9056
- const mg = () => new eg();
9055
+ const mg = (t) => new eg(t);
9057
9056
  class co {
9058
9057
  /**
9059
9058
  * https://www.w3.org/TR/mediaqueries-4/#valdef-media-pointer-coarse