@bisom/web_plugin 1.1.3 → 1.1.4
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/bisom-lib.js +52 -28
- package/dist/bisom-lib.umd.cjs +2 -2
- package/package.json +11 -11
package/dist/bisom-lib.js
CHANGED
|
@@ -1811,7 +1811,7 @@ var Zr = Oe, Qr = () => `${Me().api_url}/api/v1/users`, $r = () => `${Qr()}/info
|
|
|
1811
1811
|
userDivisions: [],
|
|
1812
1812
|
showNewsBadge: !1,
|
|
1813
1813
|
isAuth: !1,
|
|
1814
|
-
versionApp: { VUE_APP_VERSION: "lrm-web1.1.
|
|
1814
|
+
versionApp: { VUE_APP_VERSION: "lrm-web1.1.4" }.VUE_APP_VERSION ?? ""
|
|
1815
1815
|
}),
|
|
1816
1816
|
getters: {
|
|
1817
1817
|
userId(e) {
|
|
@@ -4278,7 +4278,7 @@ function No(e) {
|
|
|
4278
4278
|
Lo(Io(e.target.value, e.contentEl.value), t);
|
|
4279
4279
|
}
|
|
4280
4280
|
function Po(e, t) {
|
|
4281
|
-
let n = e.root.value?.offsetParent, r = Io(e.target.value, e.contentEl.value), i = [
|
|
4281
|
+
let n = e.root.value?.offsetParent, r = Io(e.target.value, e.contentEl.value), i = [.../* @__PURE__ */ new Set([...zn(r, t.contained ? n : void 0), ...zn(e.contentEl.value, t.contained ? n : void 0)])].filter((e) => !e.classList.contains("v-overlay-scroll-blocked")), a = window.innerWidth - document.documentElement.offsetWidth, o = ((e) => Bn(e) && e)(n || document.documentElement);
|
|
4282
4282
|
o && e.root.value.classList.add("v-overlay--scroll-blocked"), i.forEach((e, t) => {
|
|
4283
4283
|
e.style.setProperty("--v-body-scroll-x", W(-e.scrollLeft)), e.style.setProperty("--v-body-scroll-y", W(-e.scrollTop)), (e !== document.documentElement || getComputedStyle(e).overflowY !== "scroll") && e.style.setProperty("--v-scrollbar-offset", W(a)), e.classList.add("v-overlay-scroll-blocked");
|
|
4284
4284
|
}), M(() => {
|
|
@@ -6945,18 +6945,15 @@ var ml = /*#__PURE__*/ U(fl, [["render", pl]]), hl = () => `${Me().api_url}/api/
|
|
|
6945
6945
|
return Promise.reject(e);
|
|
6946
6946
|
}
|
|
6947
6947
|
},
|
|
6948
|
-
getRegulationFolderPdf: async (e, t
|
|
6948
|
+
getRegulationFolderPdf: async (e, t) => {
|
|
6949
6949
|
try {
|
|
6950
|
-
let
|
|
6951
|
-
...Ce(
|
|
6952
|
-
params: {
|
|
6953
|
-
|
|
6954
|
-
regulation_folder_patient_id: n
|
|
6955
|
-
}
|
|
6956
|
-
}, a = await Zr.get(`${hl()}/${e}/generate_drm`, i), o = window.URL.createObjectURL(new Blob([a.data], { type: r })), s = gl(a.headers?.["content-disposition"]);
|
|
6950
|
+
let n = "application/pdf", r = {
|
|
6951
|
+
...Ce(n),
|
|
6952
|
+
params: { ...t }
|
|
6953
|
+
}, i = await Zr.get(`${hl()}/${e}/generate_drm`, r), a = window.URL.createObjectURL(new Blob([i.data], { type: n })), o = gl(i.headers?.["content-disposition"]);
|
|
6957
6954
|
return Promise.resolve({
|
|
6958
|
-
url:
|
|
6959
|
-
fileName:
|
|
6955
|
+
url: a,
|
|
6956
|
+
fileName: o
|
|
6960
6957
|
});
|
|
6961
6958
|
} catch (e) {
|
|
6962
6959
|
return Promise.reject(e);
|
|
@@ -6981,6 +6978,10 @@ var ml = /*#__PURE__*/ U(fl, [["render", pl]]), hl = () => `${Me().api_url}/api/
|
|
|
6981
6978
|
rfpId: {
|
|
6982
6979
|
type: Number,
|
|
6983
6980
|
required: !0
|
|
6981
|
+
},
|
|
6982
|
+
meanIds: {
|
|
6983
|
+
type: Array,
|
|
6984
|
+
default: () => []
|
|
6984
6985
|
}
|
|
6985
6986
|
},
|
|
6986
6987
|
data() {
|
|
@@ -6990,6 +6991,7 @@ var ml = /*#__PURE__*/ U(fl, [["render", pl]]), hl = () => `${Me().api_url}/api/
|
|
|
6990
6991
|
pdfFileName: "document.pdf",
|
|
6991
6992
|
selectAll: !0,
|
|
6992
6993
|
onLoading: !1,
|
|
6994
|
+
includeBilanPdf: !0,
|
|
6993
6995
|
blocs: [
|
|
6994
6996
|
{
|
|
6995
6997
|
label: this.$t("printDrm.bloc1"),
|
|
@@ -7032,17 +7034,22 @@ var ml = /*#__PURE__*/ U(fl, [["render", pl]]), hl = () => `${Me().api_url}/api/
|
|
|
7032
7034
|
};
|
|
7033
7035
|
},
|
|
7034
7036
|
watch: { dialog(e) {
|
|
7035
|
-
e ? (this.selectedBlocs = this.blocs.map((e) => e.id), this.pdfValue = "", this.pdfFileName = "document.pdf") : this.pdfValue && this.revokePdf();
|
|
7037
|
+
e ? (this.selectedBlocs = this.blocs.map((e) => e.id), this.includeBilanPdf = !0, this.pdfValue = "", this.pdfFileName = "document.pdf") : this.pdfValue && this.revokePdf();
|
|
7036
7038
|
} },
|
|
7037
7039
|
methods: {
|
|
7038
7040
|
changeModelValue() {
|
|
7039
|
-
this.selectedBlocs = this.selectAll ? [] : this.blocs.map((e) => e.id), this.selectAll = !this.selectAll;
|
|
7041
|
+
this.selectedBlocs = this.selectAll ? [] : this.blocs.map((e) => e.id), this.selectAll = !this.selectAll, this.includeBilanPdf = this.selectAll;
|
|
7040
7042
|
},
|
|
7041
7043
|
async handleGenerate() {
|
|
7042
7044
|
try {
|
|
7043
7045
|
this.revokePdf(), this.onLoading = !0;
|
|
7044
|
-
let e =
|
|
7045
|
-
|
|
7046
|
+
let e = {
|
|
7047
|
+
drm_bloc: this.selectedBlocs,
|
|
7048
|
+
regulation_folder_patient_id: [this.rfpId],
|
|
7049
|
+
include_bilan_pdfs: this.includeBilanPdf,
|
|
7050
|
+
mean_ids: this.includeBilanPdf ? this.meanIds : null
|
|
7051
|
+
}, t = await _l.getRegulationFolderPdf(this.folderId, e);
|
|
7052
|
+
this.pdfValue = t.url, this.pdfFileName = t.fileName;
|
|
7046
7053
|
} catch (e) {
|
|
7047
7054
|
si.notifyError(e);
|
|
7048
7055
|
} finally {
|
|
@@ -7356,9 +7363,9 @@ function jl(t, n, r, i, a, o) {
|
|
|
7356
7363
|
onOnClick: n[0] ||= (e) => t.dialog = !0
|
|
7357
7364
|
}, null, 8, ["message"]), m(_, {
|
|
7358
7365
|
modelValue: t.dialog,
|
|
7359
|
-
"onUpdate:modelValue": n[
|
|
7366
|
+
"onUpdate:modelValue": n[5] ||= (e) => t.dialog = e,
|
|
7360
7367
|
title: t.$t("printDrm.generateDrm"),
|
|
7361
|
-
onOnClose: n[
|
|
7368
|
+
onOnClose: n[6] ||= (e) => t.dialog = !1
|
|
7362
7369
|
}, {
|
|
7363
7370
|
toolbarButton: H(() => [m(s, {
|
|
7364
7371
|
color: "white",
|
|
@@ -7419,7 +7426,16 @@ function jl(t, n, r, i, a, o) {
|
|
|
7419
7426
|
"value"
|
|
7420
7427
|
])]),
|
|
7421
7428
|
_: 2
|
|
7422
|
-
}, 1024))), 128))
|
|
7429
|
+
}, 1024))), 128)), m(Z, { cols: "6" }, {
|
|
7430
|
+
default: H(() => [m(Ol, {
|
|
7431
|
+
modelValue: t.includeBilanPdf,
|
|
7432
|
+
"onUpdate:modelValue": n[3] ||= (e) => t.includeBilanPdf = e,
|
|
7433
|
+
color: "primary",
|
|
7434
|
+
label: "Pdf Bilans",
|
|
7435
|
+
value: !0
|
|
7436
|
+
}, null, 8, ["modelValue"])]),
|
|
7437
|
+
_: 1
|
|
7438
|
+
})]),
|
|
7423
7439
|
_: 1
|
|
7424
7440
|
})
|
|
7425
7441
|
]),
|
|
@@ -7452,7 +7468,7 @@ function jl(t, n, r, i, a, o) {
|
|
|
7452
7468
|
default: H(() => [m(h, {
|
|
7453
7469
|
confirmBtnLabel: "generate",
|
|
7454
7470
|
onOnSave: t.handleGenerate,
|
|
7455
|
-
onOnClose: n[
|
|
7471
|
+
onOnClose: n[4] ||= (e) => t.dialog = !1
|
|
7456
7472
|
}, null, 8, ["onOnSave"])]),
|
|
7457
7473
|
_: 1
|
|
7458
7474
|
})
|
|
@@ -7576,8 +7592,13 @@ function Bl(t, n, r, i, a, o) {
|
|
|
7576
7592
|
m(Lr),
|
|
7577
7593
|
m(c, {
|
|
7578
7594
|
"rfp-id": t.selectedEmergency.regulation_folder_patient_id,
|
|
7579
|
-
"folder-id": t.selectedEmergency.rf_id
|
|
7580
|
-
|
|
7595
|
+
"folder-id": t.selectedEmergency.rf_id,
|
|
7596
|
+
meanIds: t.selectedEmergency.means.means.map((e) => e.id)
|
|
7597
|
+
}, null, 8, [
|
|
7598
|
+
"rfp-id",
|
|
7599
|
+
"folder-id",
|
|
7600
|
+
"meanIds"
|
|
7601
|
+
])
|
|
7581
7602
|
]),
|
|
7582
7603
|
_: 1
|
|
7583
7604
|
}),
|
|
@@ -8338,7 +8359,7 @@ var bu = (e) => {
|
|
|
8338
8359
|
return {
|
|
8339
8360
|
activate: ({ activated: e, id: n, ...r }) => {
|
|
8340
8361
|
n = se(n);
|
|
8341
|
-
let i = e.has(n) ? new Set([n]) : /* @__PURE__ */ new Set();
|
|
8362
|
+
let i = e.has(n) ? /* @__PURE__ */ new Set([n]) : /* @__PURE__ */ new Set();
|
|
8342
8363
|
return t.activate({
|
|
8343
8364
|
...r,
|
|
8344
8365
|
id: n,
|
|
@@ -8441,7 +8462,7 @@ var bu = (e) => {
|
|
|
8441
8462
|
return {
|
|
8442
8463
|
select: ({ selected: e, id: n, ...r }) => {
|
|
8443
8464
|
n = se(n);
|
|
8444
|
-
let i = e.has(n) ? new Map([[n, e.get(n)]]) : /* @__PURE__ */ new Map();
|
|
8465
|
+
let i = e.has(n) ? /* @__PURE__ */ new Map([[n, e.get(n)]]) : /* @__PURE__ */ new Map();
|
|
8445
8466
|
return t.select({
|
|
8446
8467
|
...r,
|
|
8447
8468
|
id: n,
|
|
@@ -9280,7 +9301,7 @@ var Vu = On({
|
|
|
9280
9301
|
},
|
|
9281
9302
|
returnObject: Boolean,
|
|
9282
9303
|
valueComparator: Function
|
|
9283
|
-
}, "list-items"), ed = new Set([
|
|
9304
|
+
}, "list-items"), ed = /* @__PURE__ */ new Set([
|
|
9284
9305
|
"item",
|
|
9285
9306
|
"divider",
|
|
9286
9307
|
"subheader"
|
|
@@ -9316,7 +9337,7 @@ function nd(e, t) {
|
|
|
9316
9337
|
}
|
|
9317
9338
|
//#endregion
|
|
9318
9339
|
//#region node_modules/vuetify/lib/components/VList/VList.js
|
|
9319
|
-
var rd = new Set([
|
|
9340
|
+
var rd = /* @__PURE__ */ new Set([
|
|
9320
9341
|
"item",
|
|
9321
9342
|
"divider",
|
|
9322
9343
|
"subheader"
|
|
@@ -11636,7 +11657,8 @@ var Uf = /*#__PURE__*/ U(Bf, [["render", Hf]]), Wf = "api/v1/regulation_folders"
|
|
|
11636
11657
|
}
|
|
11637
11658
|
async function T(e, t) {
|
|
11638
11659
|
if (e && t) try {
|
|
11639
|
-
|
|
11660
|
+
let n = await zf.getPatientReasons(e, t);
|
|
11661
|
+
h.value = n ?? {};
|
|
11640
11662
|
} catch (e) {
|
|
11641
11663
|
si.notifyError(e);
|
|
11642
11664
|
}
|
|
@@ -11661,7 +11683,9 @@ var Uf = /*#__PURE__*/ U(Bf, [["render", Hf]]), Wf = "api/v1/regulation_folders"
|
|
|
11661
11683
|
}
|
|
11662
11684
|
async function k() {
|
|
11663
11685
|
try {
|
|
11664
|
-
_.value = !0
|
|
11686
|
+
_.value = !0;
|
|
11687
|
+
let e = await Fl.getEmergencies(v.value);
|
|
11688
|
+
o.value = e.emergency_hall ?? [], i.value && await O(i.value);
|
|
11665
11689
|
} catch (e) {
|
|
11666
11690
|
si.notifyError(e);
|
|
11667
11691
|
} finally {
|