@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.
- package/dist/http-client/apiClient.d.ts +9 -2
- package/dist/sf.prefeiturasp.vuecomponents.cjs +2 -2
- package/dist/sf.prefeiturasp.vuecomponents.cjs.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.js +9 -10
- package/dist/sf.prefeiturasp.vuecomponents.js.map +1 -1
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs +21 -21
- package/dist/sf.prefeiturasp.vuecomponents.umd.cjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
120
|
-
|
|
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 (
|
|
9002
|
-
const
|
|
9003
|
-
return
|
|
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
|