@softdin/portal-admin 0.0.0-stage → 0.2.0
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/README.md +95 -2
- package/dist-lib/chunks/AppLayout-COCPfLWo.js +303 -0
- package/dist-lib/chunks/AuditoriaView-Bcf_kOqI.js +643 -0
- package/dist-lib/chunks/CarnetView-BsdUtYeu.js +450 -0
- package/dist-lib/chunks/CarteleraView-CRnVjt-S.js +996 -0
- package/dist-lib/chunks/CertificadosView-DvHDflcN.js +549 -0
- package/dist-lib/chunks/ChatBandejaView-HqhdSw7G.js +274 -0
- package/dist-lib/chunks/ChatConfiguracionView-BdH5gDdR.js +716 -0
- package/dist-lib/chunks/ChatConocimientoView-nKTAKxFa.js +263 -0
- package/dist-lib/chunks/ChatConversacionView-Do74V09l.js +477 -0
- package/dist-lib/chunks/ChatInformeView-BIiAH9L_.js +280 -0
- package/dist-lib/chunks/ChatRespuestasView-QFXbyg8U.js +183 -0
- package/dist-lib/chunks/EmpleadosView-BtqrO5-8.js +311 -0
- package/dist-lib/chunks/HomologacionView-UCZk4u6R.js +949 -0
- package/dist-lib/chunks/IngresoSsoView-BKkcnrYO.js +98 -0
- package/dist-lib/chunks/SolicitudesView-CYPD2A1s.js +900 -0
- package/dist-lib/chunks/TiposSolicitudView-CrWTVizl.js +168 -0
- package/dist-lib/chunks/ToggleSwitch-BYrIyheq.js +55 -0
- package/dist-lib/chunks/_plugin-vue_export-helper-BOaGB7Aw.js +8 -0
- package/dist-lib/chunks/api-M7D1c3IT.js +97 -0
- package/dist-lib/chunks/apiError-BHGbwz97.js +15 -0
- package/dist-lib/chunks/auth.store-BrGKZg-7.js +220 -0
- package/dist-lib/chunks/chat.service-C7ZQf4w3.js +241 -0
- package/dist-lib/chunks/cliente-interno.store-De39VsEE.js +203 -0
- package/dist-lib/chunks/homologacion-CoeHD7cB.js +131 -0
- package/dist-lib/chunks/portal-empleado-6KQrnsQJ.js +120 -0
- package/dist-lib/chunks/tipos-D93bLfFC.js +22 -0
- package/dist-lib/portal-admin.js +196 -0
- package/dist-lib/style.css +4813 -0
- package/dist-lib/types/App.vue.d.ts +3 -0
- package/dist-lib/types/components/AppLayout.vue.d.ts +3 -0
- package/dist-lib/types/components/CarnetClientesInternos.vue.d.ts +11 -0
- package/dist-lib/types/components/InvitacionPortalModal.vue.d.ts +20 -0
- package/dist-lib/types/components/MenuUsuario.vue.d.ts +3 -0
- package/dist-lib/types/components/VistoBuenoPortalModal.vue.d.ts +23 -0
- package/dist-lib/types/components/auditoria/AuditoriaFila.vue.d.ts +16 -0
- package/dist-lib/types/components/auditoria/AuditoriaFiltros.vue.d.ts +30 -0
- package/dist-lib/types/components/auditoria/AuditoriaPaginador.vue.d.ts +14 -0
- package/dist-lib/types/components/cartelera/PaginaCarteleraImagen.vue.d.ts +14 -0
- package/dist-lib/types/components/cartelera/PublicacionFormModal.vue.d.ts +27 -0
- package/dist-lib/types/components/cartelera/VistaCelularCartelera.vue.d.ts +34 -0
- package/dist-lib/types/components/certificados/AtenderCertificadoModal.vue.d.ts +22 -0
- package/dist-lib/types/components/certificados/RechazarCertificadoModal.vue.d.ts +18 -0
- package/dist-lib/types/components/certificados/ResumenSolicitudCertificado.vue.d.ts +8 -0
- package/dist-lib/types/components/chat/ChatClientesInternos.vue.d.ts +21 -0
- package/dist-lib/types/components/chat/ChatHorarioCampos.vue.d.ts +21 -0
- package/dist-lib/types/components/forms/ExportExcelButton.vue.d.ts +30 -0
- package/dist-lib/types/components/forms/ToggleSwitch.vue.d.ts +17 -0
- package/dist-lib/types/components/homologacion/HomologacionFila.vue.d.ts +30 -0
- package/dist-lib/types/components/homologacion/TipoPermisoFormModal.vue.d.ts +26 -0
- package/dist-lib/types/components/homologacion/TipoSolicitudFormModal.vue.d.ts +27 -0
- package/dist-lib/types/lib/auditoria.d.ts +25 -0
- package/dist-lib/types/lib/cartelera-paginas.d.ts +26 -0
- package/dist-lib/types/lib/cartelera-vigencia.d.ts +3 -0
- package/dist-lib/types/lib/export-excel-csv.d.ts +4 -0
- package/dist-lib/types/lib/export-excel.d.ts +9 -0
- package/dist-lib/types/lib/exportar-listado.d.ts +68 -0
- package/dist-lib/types/lib/homologacion.d.ts +41 -0
- package/dist-lib/types/lib/portal-empleado.d.ts +32 -0
- package/dist-lib/types/modulo.d.ts +31 -0
- package/dist-lib/types/portal-admin/config.d.ts +17 -0
- package/dist-lib/types/portal-admin/rutas.d.ts +17 -0
- package/dist-lib/types/portal-admin/tipos.d.ts +68 -0
- package/dist-lib/types/router/index.d.ts +7 -0
- package/dist-lib/types/services/api.d.ts +29 -0
- package/dist-lib/types/services/auditoria.service.d.ts +63 -0
- package/dist-lib/types/services/auth.service.d.ts +61 -0
- package/dist-lib/types/services/carnet.service.d.ts +56 -0
- package/dist-lib/types/services/cartelera.service.d.ts +69 -0
- package/dist-lib/types/services/chat.service.d.ts +279 -0
- package/dist-lib/types/services/configuracion-cliente-interno.service.d.ts +23 -0
- package/dist-lib/types/services/homologacion.service.d.ts +105 -0
- package/dist-lib/types/services/portal-empleado.service.d.ts +112 -0
- package/dist-lib/types/services/solicitudes-certificado.service.d.ts +59 -0
- package/dist-lib/types/stores/auth.store.d.ts +125 -0
- package/dist-lib/types/stores/cliente-interno.store.d.ts +65 -0
- package/dist-lib/types/utils/apiError.d.ts +4 -0
- package/dist-lib/types/views/AuditoriaView.vue.d.ts +3 -0
- package/dist-lib/types/views/CarnetView.vue.d.ts +3 -0
- package/dist-lib/types/views/CarteleraView.vue.d.ts +3 -0
- package/dist-lib/types/views/CertificadosView.vue.d.ts +3 -0
- package/dist-lib/types/views/EmpleadosView.vue.d.ts +3 -0
- package/dist-lib/types/views/HomologacionView.vue.d.ts +4 -0
- package/dist-lib/types/views/IngresoSsoView.vue.d.ts +3 -0
- package/dist-lib/types/views/LoginView.vue.d.ts +3 -0
- package/dist-lib/types/views/OlvideView.vue.d.ts +3 -0
- package/dist-lib/types/views/RestablecerView.vue.d.ts +3 -0
- package/dist-lib/types/views/SolicitudesView.vue.d.ts +3 -0
- package/dist-lib/types/views/TiposSolicitudView.vue.d.ts +3 -0
- package/dist-lib/types/views/chat/ChatBandejaView.vue.d.ts +3 -0
- package/dist-lib/types/views/chat/ChatConfiguracionView.vue.d.ts +3 -0
- package/dist-lib/types/views/chat/ChatConocimientoView.vue.d.ts +3 -0
- package/dist-lib/types/views/chat/ChatConversacionView.vue.d.ts +11 -0
- package/dist-lib/types/views/chat/ChatInformeView.vue.d.ts +3 -0
- package/dist-lib/types/views/chat/ChatRespuestasView.vue.d.ts +3 -0
- package/package.json +66 -4
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { t as useAuthStore } from "./auth.store-BrGKZg-7.js";
|
|
2
|
+
import { t as RUTAS_PORTAL } from "./tipos-D93bLfFC.js";
|
|
3
|
+
import { t as mensajeError } from "./apiError-BHGbwz97.js";
|
|
4
|
+
import { Fragment, createCommentVNode, createElementBlock, createElementVNode, defineComponent, onMounted, openBlock, ref, renderList, toDisplayString, vModelSelect, withDirectives, withModifiers } from "vue";
|
|
5
|
+
import { useRoute, useRouter } from "vue-router";
|
|
6
|
+
//#region src/views/IngresoSsoView.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var _hoisted_1 = {
|
|
8
|
+
class: "mx-auto grid max-w-md gap-4 rounded-xl border border-slate-200 bg-white p-6 shadow-sm",
|
|
9
|
+
"aria-live": "polite"
|
|
10
|
+
};
|
|
11
|
+
var _hoisted_2 = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "text-sm text-slate-600"
|
|
14
|
+
};
|
|
15
|
+
var _hoisted_3 = {
|
|
16
|
+
key: 1,
|
|
17
|
+
role: "alert",
|
|
18
|
+
class: "rounded-lg bg-red-50 px-3 py-2 text-sm text-red-700"
|
|
19
|
+
};
|
|
20
|
+
var _hoisted_4 = ["value"];
|
|
21
|
+
var _hoisted_5 = ["disabled"];
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/views/IngresoSsoView.vue
|
|
24
|
+
var IngresoSsoView_default = /* @__PURE__ */ defineComponent({
|
|
25
|
+
__name: "IngresoSsoView",
|
|
26
|
+
setup(__props) {
|
|
27
|
+
const auth = useAuthStore();
|
|
28
|
+
const route = useRoute();
|
|
29
|
+
const router = useRouter();
|
|
30
|
+
const cargando = ref(false);
|
|
31
|
+
const error = ref(null);
|
|
32
|
+
const clientes = ref([]);
|
|
33
|
+
const elegido = ref("");
|
|
34
|
+
async function entrar(clienteId) {
|
|
35
|
+
error.value = null;
|
|
36
|
+
cargando.value = true;
|
|
37
|
+
try {
|
|
38
|
+
const r = await auth.ingresarSso(clienteId);
|
|
39
|
+
if ("requiere_cliente" in r) {
|
|
40
|
+
clientes.value = r.clientes;
|
|
41
|
+
elegido.value = r.clientes[0]?.id ?? "";
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const volver = typeof route.query.volver === "string" ? route.query.volver : null;
|
|
45
|
+
await router.replace(volver ?? { name: RUTAS_PORTAL.solicitudes });
|
|
46
|
+
} catch (e) {
|
|
47
|
+
error.value = mensajeError(e, "No se pudo entrar al portal de autogestión.");
|
|
48
|
+
} finally {
|
|
49
|
+
cargando.value = false;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
function reintentar() {
|
|
53
|
+
entrar(clientes.value.length && elegido.value !== "" ? elegido.value : void 0);
|
|
54
|
+
}
|
|
55
|
+
onMounted(() => void entrar());
|
|
56
|
+
return (_ctx, _cache) => {
|
|
57
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
58
|
+
_cache[3] || (_cache[3] = createElementVNode("header", null, [createElementVNode("p", { class: "text-xs uppercase tracking-wider text-slate-500" }, "Portal de autogestión"), createElementVNode("h1", { class: "text-lg font-semibold text-slate-900" }, "Administración del portal")], -1)),
|
|
59
|
+
cargando.value ? (openBlock(), createElementBlock("p", _hoisted_2, "Conectando con el portal…")) : createCommentVNode("", true),
|
|
60
|
+
error.value ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(error.value), 1)) : createCommentVNode("", true),
|
|
61
|
+
clientes.value.length && !cargando.value ? (openBlock(), createElementBlock("form", {
|
|
62
|
+
key: 2,
|
|
63
|
+
class: "grid gap-3",
|
|
64
|
+
onSubmit: _cache[1] || (_cache[1] = withModifiers(($event) => entrar(Number(elegido.value)), ["prevent"]))
|
|
65
|
+
}, [
|
|
66
|
+
_cache[2] || (_cache[2] = createElementVNode("label", {
|
|
67
|
+
for: "portal-sso-cliente",
|
|
68
|
+
class: "text-sm font-medium text-slate-700"
|
|
69
|
+
}, "Cliente", -1)),
|
|
70
|
+
withDirectives(createElementVNode("select", {
|
|
71
|
+
id: "portal-sso-cliente",
|
|
72
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => elegido.value = $event),
|
|
73
|
+
required: "",
|
|
74
|
+
class: "w-full rounded-lg border border-slate-300 px-3 py-2 text-sm"
|
|
75
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(clientes.value, (c) => {
|
|
76
|
+
return openBlock(), createElementBlock("option", {
|
|
77
|
+
key: c.id,
|
|
78
|
+
value: c.id
|
|
79
|
+
}, toDisplayString(c.nombre), 9, _hoisted_4);
|
|
80
|
+
}), 128))], 512), [[vModelSelect, elegido.value]]),
|
|
81
|
+
createElementVNode("button", {
|
|
82
|
+
type: "submit",
|
|
83
|
+
class: "rounded-lg bg-brand-700 px-4 py-2 text-sm font-semibold text-white disabled:opacity-60",
|
|
84
|
+
disabled: elegido.value === ""
|
|
85
|
+
}, " Entrar ", 8, _hoisted_5)
|
|
86
|
+
], 32)) : createCommentVNode("", true),
|
|
87
|
+
error.value && !cargando.value && !clientes.value.length ? (openBlock(), createElementBlock("button", {
|
|
88
|
+
key: 3,
|
|
89
|
+
type: "button",
|
|
90
|
+
class: "rounded-lg border border-slate-300 px-4 py-2 text-sm font-semibold text-slate-700",
|
|
91
|
+
onClick: reintentar
|
|
92
|
+
}, " Reintentar ")) : createCommentVNode("", true)
|
|
93
|
+
]);
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { IngresoSsoView_default as default };
|