@alexochihua/exos-library-components 2.7.0 → 2.8.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/exos-library-components.common.js +705 -100
- package/dist/exos-library-components.umd.js +705 -100
- package/dist/exos-library-components.umd.min.js +1 -1
- package/dist/style.css +320 -89
- package/package.json +2 -2
|
@@ -417,6 +417,13 @@ module.exports = {}
|
|
|
417
417
|
|
|
418
418
|
/***/ }),
|
|
419
419
|
|
|
420
|
+
/***/ 5299:
|
|
421
|
+
/***/ (function(module) {
|
|
422
|
+
|
|
423
|
+
module.exports = {}
|
|
424
|
+
|
|
425
|
+
/***/ }),
|
|
426
|
+
|
|
420
427
|
/***/ 7035:
|
|
421
428
|
/***/ (function(module) {
|
|
422
429
|
|
|
@@ -508,6 +515,13 @@ module.exports = {}
|
|
|
508
515
|
|
|
509
516
|
/***/ }),
|
|
510
517
|
|
|
518
|
+
/***/ 6877:
|
|
519
|
+
/***/ (function(module) {
|
|
520
|
+
|
|
521
|
+
module.exports = {}
|
|
522
|
+
|
|
523
|
+
/***/ }),
|
|
524
|
+
|
|
511
525
|
/***/ 9306:
|
|
512
526
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
513
527
|
|
|
@@ -6347,25 +6361,62 @@ const EFileViewervue_type_script_setup_true_lang_js_hoisted_11 = ["src"];
|
|
|
6347
6361
|
/* harmony default export */ var EFileViewervue_type_script_setup_true_lang_js = ({
|
|
6348
6362
|
__name: 'EFileViewer',
|
|
6349
6363
|
props: {
|
|
6364
|
+
/**
|
|
6365
|
+
* Prop que recibe un b64 para mostrar
|
|
6366
|
+
* Se debe enviar solo el cuerpo del b64 (JVBERi0xLjUKJYCB) SIN incluir el header (data:image/jpeg;base64,)
|
|
6367
|
+
*
|
|
6368
|
+
* La prioridad de archivos para mostrar es:
|
|
6369
|
+
* 1.-link
|
|
6370
|
+
* 2.-file
|
|
6371
|
+
* 3.-data
|
|
6372
|
+
*
|
|
6373
|
+
*/
|
|
6350
6374
|
data: {
|
|
6375
|
+
type: String,
|
|
6351
6376
|
default: null
|
|
6352
6377
|
},
|
|
6378
|
+
/**
|
|
6379
|
+
* Prop que recibe un archivo (class File) para mostrar
|
|
6380
|
+
* La prioridad de archivos para mostrar es:
|
|
6381
|
+
* 1.-link
|
|
6382
|
+
* 2.-file
|
|
6383
|
+
* 3.-data
|
|
6384
|
+
*/
|
|
6353
6385
|
file: {
|
|
6354
6386
|
default: null
|
|
6355
6387
|
},
|
|
6388
|
+
/**
|
|
6389
|
+
* Prop que recibe un link de un archivo para mostrar
|
|
6390
|
+
* La prioridad de archivos para mostrar es:
|
|
6391
|
+
* 1.-link
|
|
6392
|
+
* 2.-file
|
|
6393
|
+
* 3.-data
|
|
6394
|
+
*/
|
|
6356
6395
|
link: {
|
|
6396
|
+
type: String,
|
|
6357
6397
|
default: null
|
|
6358
6398
|
},
|
|
6399
|
+
/**
|
|
6400
|
+
* Nombre que se le dara al archivo en la vista previa y en la descarga
|
|
6401
|
+
*/
|
|
6359
6402
|
fileName: {
|
|
6360
6403
|
type: String,
|
|
6361
6404
|
default: null,
|
|
6362
6405
|
required: true
|
|
6363
6406
|
},
|
|
6407
|
+
/**
|
|
6408
|
+
* Extension del archivo que se esta previsualizando
|
|
6409
|
+
* No debe llevar " . " (punto), solo la extension
|
|
6410
|
+
* @values pdf, jpg, png
|
|
6411
|
+
*/
|
|
6364
6412
|
extention: {
|
|
6365
6413
|
type: String,
|
|
6366
6414
|
default: null,
|
|
6367
6415
|
required: true
|
|
6368
6416
|
},
|
|
6417
|
+
/**
|
|
6418
|
+
* Bandera que al estar activa muestra el icono de descarga del archivo
|
|
6419
|
+
*/
|
|
6369
6420
|
showDownload: {
|
|
6370
6421
|
type: Boolean,
|
|
6371
6422
|
default: true
|
|
@@ -6415,6 +6466,12 @@ const EFileViewervue_type_script_setup_true_lang_js_hoisted_11 = ["src"];
|
|
|
6415
6466
|
mixins_default().methods.downloadFileFromLink(src.value, nameFile.value);
|
|
6416
6467
|
}
|
|
6417
6468
|
function handleClose() {
|
|
6469
|
+
/**
|
|
6470
|
+
* Se emite al dar click en el boton de cerrar
|
|
6471
|
+
*
|
|
6472
|
+
* @event close
|
|
6473
|
+
* @type {Event}
|
|
6474
|
+
*/
|
|
6418
6475
|
emit('close');
|
|
6419
6476
|
}
|
|
6420
6477
|
return (_ctx, _cache) => {
|
|
@@ -6715,18 +6772,18 @@ function EModalvue_type_template_id_79530638_render(_ctx, _cache, $props, $setup
|
|
|
6715
6772
|
const EModal_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EModalvue_type_script_lang_js, [['render',EModalvue_type_template_id_79530638_render]])
|
|
6716
6773
|
|
|
6717
6774
|
/* harmony default export */ var EModal = (EModal_exports_);
|
|
6718
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/collapse/ECollapse.vue?vue&type=template&id=
|
|
6775
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/collapse/ECollapse.vue?vue&type=template&id=725d6b30
|
|
6719
6776
|
|
|
6720
|
-
const
|
|
6777
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_1 = {
|
|
6721
6778
|
class: "exos-flex exos-flex-col exos-w-full exos-h-full exos-relative"
|
|
6722
6779
|
};
|
|
6723
|
-
const
|
|
6780
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_2 = {
|
|
6724
6781
|
class: "exos-flex exos-justify-start exos-items-center exos-space-x-3 exos-w-full exos-h-full"
|
|
6725
6782
|
};
|
|
6726
|
-
const
|
|
6783
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_3 = {
|
|
6727
6784
|
key: 0
|
|
6728
6785
|
};
|
|
6729
|
-
const
|
|
6786
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_4 = {
|
|
6730
6787
|
key: 1,
|
|
6731
6788
|
width: "25.56",
|
|
6732
6789
|
height: "25",
|
|
@@ -6734,20 +6791,24 @@ const ECollapsevue_type_template_id_8223d4aa_hoisted_4 = {
|
|
|
6734
6791
|
class: "exos-fill-secondary",
|
|
6735
6792
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6736
6793
|
};
|
|
6737
|
-
const
|
|
6794
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
6738
6795
|
id: "filter_alt_FILL0_wght400_GRAD0_opsz48",
|
|
6739
6796
|
d: "M52.769-192.5a1.512,1.512,0,0,1-1.113-.449,1.512,1.512,0,0,1-.449-1.113v-9.375l-9.336-11.914a1.182,1.182,0,0,1-.156-1.406,1.284,1.284,0,0,1,1.211-.742H65.738a1.284,1.284,0,0,1,1.211.742,1.182,1.182,0,0,1-.156,1.406l-9.336,11.914v9.375a1.512,1.512,0,0,1-.449,1.113,1.512,1.512,0,0,1-1.113.449Zm1.563-10.781,9.375-11.875H44.957ZM54.332-203.281Z",
|
|
6740
6797
|
transform: "translate(-41.552 217.5)"
|
|
6741
6798
|
}, null, -1);
|
|
6742
|
-
const
|
|
6743
|
-
const
|
|
6799
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_6 = [ECollapsevue_type_template_id_725d6b30_hoisted_5];
|
|
6800
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_7 = {
|
|
6744
6801
|
class: "exos-flex exos-flex-col exos-w-full exos-space-y-0"
|
|
6745
6802
|
};
|
|
6746
|
-
const
|
|
6803
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_8 = {
|
|
6747
6804
|
key: 0,
|
|
6748
6805
|
class: "exos-w-fit"
|
|
6749
6806
|
};
|
|
6750
|
-
const
|
|
6807
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_9 = {
|
|
6808
|
+
key: 1,
|
|
6809
|
+
class: "exos-flex exos-justify-center exos-align-center exos-text-secondary exos-z-20"
|
|
6810
|
+
};
|
|
6811
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_10 = {
|
|
6751
6812
|
key: 1,
|
|
6752
6813
|
height: "14",
|
|
6753
6814
|
width: "23.746",
|
|
@@ -6755,39 +6816,73 @@ const ECollapsevue_type_template_id_8223d4aa_hoisted_9 = {
|
|
|
6755
6816
|
class: "exos-fill-secondary",
|
|
6756
6817
|
xmlns: "http://www.w3.org/2000/svg"
|
|
6757
6818
|
};
|
|
6758
|
-
const
|
|
6819
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_11 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
6759
6820
|
id: "expand_less_FILL0_wght400_GRAD0_opsz48",
|
|
6760
6821
|
d: "M47.074-117.611l-2.127,2.127L56.82-103.611l11.873-11.823-2.127-2.127-9.746,9.746Z",
|
|
6761
6822
|
transform: "translate(-44.947 117.611)"
|
|
6762
6823
|
}, null, -1);
|
|
6763
|
-
const
|
|
6764
|
-
|
|
6765
|
-
|
|
6824
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_12 = [ECollapsevue_type_template_id_725d6b30_hoisted_11];
|
|
6825
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_13 = {
|
|
6826
|
+
class: "exos-flex exos-justify-between exos-w-full exos-mb-6"
|
|
6827
|
+
};
|
|
6828
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_14 = {
|
|
6829
|
+
key: 0,
|
|
6830
|
+
class: "exos-font-extrabold exos-text-xl"
|
|
6831
|
+
};
|
|
6832
|
+
const ECollapsevue_type_template_id_725d6b30_hoisted_15 = {
|
|
6833
|
+
class: "exos-inline-block exos-rounded-full exos-cursor-pointer exos-shadow-md exos-p-1.5 exos-h-9 exos-w-9 exos-bg-zinc-100 dark:exos-bg-fieldDark"
|
|
6834
|
+
};
|
|
6835
|
+
function ECollapsevue_type_template_id_725d6b30_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6836
|
+
const _component_EIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EIcon");
|
|
6837
|
+
const _component_EBtn = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EBtn");
|
|
6838
|
+
const _component_EDialog = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EDialog");
|
|
6839
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ECollapsevue_type_template_id_725d6b30_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
6766
6840
|
onClick: _cache[0] || (_cache[0] = (...args) => $options.toggleCollapse && $options.toggleCollapse(...args)),
|
|
6767
6841
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainClass),
|
|
6768
6842
|
ref: "collapse"
|
|
6769
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
6843
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ECollapsevue_type_template_id_725d6b30_hoisted_2, [$props.iconLeft ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ECollapsevue_type_template_id_725d6b30_hoisted_3, [_ctx.$slots.iconLeft ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "iconLeft", {
|
|
6770
6844
|
key: 0
|
|
6771
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg",
|
|
6845
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", ECollapsevue_type_template_id_725d6b30_hoisted_4, ECollapsevue_type_template_id_725d6b30_hoisted_6))])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ECollapsevue_type_template_id_725d6b30_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", {
|
|
6772
6846
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.textClass)
|
|
6773
6847
|
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.text), 3), _ctx.$slots.description ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "description", {
|
|
6774
6848
|
key: 0
|
|
6775
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])]), _ctx.$slots.rightSection ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
6849
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])]), _ctx.$slots.rightSection ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ECollapsevue_type_template_id_725d6b30_hoisted_8, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "rightSection")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $data.isCollapseOpen && $props.showExpand ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ECollapsevue_type_template_id_725d6b30_hoisted_9, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EIcon, {
|
|
6850
|
+
name: "zoom_out_map",
|
|
6851
|
+
class: "exos-mr-6",
|
|
6852
|
+
onClick: $options.expandContent
|
|
6853
|
+
}, null, 8, ["onClick"])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
6776
6854
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["exos-flex exos-items-center exos-justify-center", {
|
|
6777
6855
|
'exos-rotate-180': $data.isCollapseOpen
|
|
6778
6856
|
}])
|
|
6779
6857
|
}, [_ctx.$slots.arrow ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "arrow", {
|
|
6780
6858
|
key: 0
|
|
6781
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg",
|
|
6859
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", ECollapsevue_type_template_id_725d6b30_hoisted_10, ECollapsevue_type_template_id_725d6b30_hoisted_12))], 2)], 2), $data.isCollapseOpen ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
6782
6860
|
key: 0,
|
|
6783
6861
|
ref: "contentCollapse",
|
|
6784
6862
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.filter),
|
|
6785
6863
|
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)($options.calculateDropPositionY())
|
|
6786
6864
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "filter-collapse"), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
6787
6865
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.toggleCollapse && $options.toggleCollapse(...args))
|
|
6788
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "btn-collapse")])], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])
|
|
6789
|
-
|
|
6790
|
-
|
|
6866
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "btn-collapse")])], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EDialog, {
|
|
6867
|
+
show: $data.showExpandDialog
|
|
6868
|
+
}, {
|
|
6869
|
+
content: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withCtx)(() => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ECollapsevue_type_template_id_725d6b30_hoisted_13, [$props.text != null ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ECollapsevue_type_template_id_725d6b30_hoisted_14, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.text), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ECollapsevue_type_template_id_725d6b30_hoisted_15, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EBtn, {
|
|
6870
|
+
rounded: "",
|
|
6871
|
+
roundedSize: "xl",
|
|
6872
|
+
textColor: "exos-text-secondary",
|
|
6873
|
+
color: "exos-bg-white",
|
|
6874
|
+
iconName: "close",
|
|
6875
|
+
iconSize: "1.2rem",
|
|
6876
|
+
onClick: _cache[2] || (_cache[2] = $event => $data.showExpandDialog = false)
|
|
6877
|
+
})])]), _ctx.$slots.contentExpand ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "contentExpand", {
|
|
6878
|
+
key: 0
|
|
6879
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "filter-collapse", {
|
|
6880
|
+
key: 1
|
|
6881
|
+
})]),
|
|
6882
|
+
_: 3
|
|
6883
|
+
}, 8, ["show"])], 64);
|
|
6884
|
+
}
|
|
6885
|
+
;// CONCATENATED MODULE: ./src/ui/components/collapse/ECollapse.vue?vue&type=template&id=725d6b30
|
|
6791
6886
|
|
|
6792
6887
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/collapse/ECollapse.vue?vue&type=script&lang=js
|
|
6793
6888
|
/* harmony default export */ var ECollapsevue_type_script_lang_js = ({
|
|
@@ -6978,6 +7073,14 @@ function ECollapsevue_type_template_id_8223d4aa_render(_ctx, _cache, $props, $se
|
|
|
6978
7073
|
type: String,
|
|
6979
7074
|
default: '',
|
|
6980
7075
|
description: 'Setea el color del borde del contenido desplegado.'
|
|
7076
|
+
},
|
|
7077
|
+
/**
|
|
7078
|
+
* 'Bandera para mostrar el icon expand que activara la funcionalidad de mostrat el contenido del ecollapse en un EDialog al darle click'
|
|
7079
|
+
*/
|
|
7080
|
+
showExpand: {
|
|
7081
|
+
type: Boolean,
|
|
7082
|
+
default: false,
|
|
7083
|
+
description: 'Bandera para mostrar el icon expand que activara la funcionalidad de mostrat el contenido del ecollapse en un EDialog al darle click'
|
|
6981
7084
|
}
|
|
6982
7085
|
},
|
|
6983
7086
|
data() {
|
|
@@ -6985,7 +7088,8 @@ function ECollapsevue_type_template_id_8223d4aa_render(_ctx, _cache, $props, $se
|
|
|
6985
7088
|
collapseContentHeight: null,
|
|
6986
7089
|
collapseHeight: null,
|
|
6987
7090
|
isCollapseOpen: false,
|
|
6988
|
-
showPosition: true
|
|
7091
|
+
showPosition: true,
|
|
7092
|
+
showExpandDialog: false
|
|
6989
7093
|
};
|
|
6990
7094
|
},
|
|
6991
7095
|
computed: {
|
|
@@ -7009,6 +7113,9 @@ function ECollapsevue_type_template_id_8223d4aa_render(_ctx, _cache, $props, $se
|
|
|
7009
7113
|
}
|
|
7010
7114
|
},
|
|
7011
7115
|
methods: {
|
|
7116
|
+
expandContent() {
|
|
7117
|
+
this.showExpandDialog = true;
|
|
7118
|
+
},
|
|
7012
7119
|
calculateDropPositionY() {
|
|
7013
7120
|
if (this.isCollapseOpen) {
|
|
7014
7121
|
if (this.calculateAvailableSpaceY(this.$refs.collapse)) {
|
|
@@ -7096,7 +7203,7 @@ if (typeof (ECollapsevue_type_custom_index_0_blockType_docs_lang_md_default()) =
|
|
|
7096
7203
|
|
|
7097
7204
|
|
|
7098
7205
|
;
|
|
7099
|
-
const ECollapse_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECollapsevue_type_script_lang_js, [['render',
|
|
7206
|
+
const ECollapse_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECollapsevue_type_script_lang_js, [['render',ECollapsevue_type_template_id_725d6b30_render]])
|
|
7100
7207
|
|
|
7101
7208
|
/* harmony default export */ var ECollapse = (ECollapse_exports_);
|
|
7102
7209
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/switch/ESwitch.vue?vue&type=template&id=3c9a20b8
|
|
@@ -28600,6 +28707,119 @@ if (typeof (ETablevue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
28600
28707
|
const ETable_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ETablevue_type_script_lang_js, [['render',ETablevue_type_template_id_6ab87d66_render]])
|
|
28601
28708
|
|
|
28602
28709
|
/* harmony default export */ var ETable = (ETable_exports_);
|
|
28710
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/tab/ETab.vue?vue&type=script&setup=true&lang=js
|
|
28711
|
+
|
|
28712
|
+
const ETabvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
28713
|
+
class: "e-tab"
|
|
28714
|
+
};
|
|
28715
|
+
const ETabvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
28716
|
+
class: "e-tab__header"
|
|
28717
|
+
};
|
|
28718
|
+
const ETabvue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
28719
|
+
class: "e-tab__options-group"
|
|
28720
|
+
};
|
|
28721
|
+
const ETabvue_type_script_setup_true_lang_js_hoisted_4 = ["onClick"];
|
|
28722
|
+
const ETabvue_type_script_setup_true_lang_js_hoisted_5 = {
|
|
28723
|
+
class: "e-tab__container"
|
|
28724
|
+
};
|
|
28725
|
+
|
|
28726
|
+
/* harmony default export */ var ETabvue_type_script_setup_true_lang_js = ({
|
|
28727
|
+
__name: 'ETab',
|
|
28728
|
+
props: {
|
|
28729
|
+
/**
|
|
28730
|
+
* Valor del elemento seleccionado
|
|
28731
|
+
*/
|
|
28732
|
+
modelValue: {
|
|
28733
|
+
default: null
|
|
28734
|
+
},
|
|
28735
|
+
/**
|
|
28736
|
+
* Arreglo de objetos que definen cada opción.
|
|
28737
|
+
* Sus campos son label y value {label, value}
|
|
28738
|
+
* Para cambiar el campo value puede usar el prop "option-value"
|
|
28739
|
+
* Para cambiar el campo label puede usar el prop "option-label"
|
|
28740
|
+
*/
|
|
28741
|
+
options: {
|
|
28742
|
+
type: Array,
|
|
28743
|
+
default: () => []
|
|
28744
|
+
},
|
|
28745
|
+
/**
|
|
28746
|
+
* Indica el campo de la opcion que se utilizara para emitir al seleccionar una opcion
|
|
28747
|
+
*/
|
|
28748
|
+
optionValue: {
|
|
28749
|
+
type: String,
|
|
28750
|
+
default: 'value'
|
|
28751
|
+
},
|
|
28752
|
+
/**
|
|
28753
|
+
* Indica el campo de la opcion que se utilizara para obtener el texto de una opcion
|
|
28754
|
+
*/
|
|
28755
|
+
optionLabel: {
|
|
28756
|
+
type: String,
|
|
28757
|
+
default: 'label'
|
|
28758
|
+
},
|
|
28759
|
+
/**
|
|
28760
|
+
* Bandera para poder emitir todo el objeto de la opcion seleccionada, en caso de estar en false emite el valor del campo seleccionado en "option-value"
|
|
28761
|
+
*/
|
|
28762
|
+
fullEmit: {
|
|
28763
|
+
type: Boolean,
|
|
28764
|
+
default: false
|
|
28765
|
+
},
|
|
28766
|
+
/**
|
|
28767
|
+
* Bandera para desactivar los clicks en las opciones
|
|
28768
|
+
*/
|
|
28769
|
+
onlyRead: {
|
|
28770
|
+
type: Boolean,
|
|
28771
|
+
default: false
|
|
28772
|
+
}
|
|
28773
|
+
},
|
|
28774
|
+
emits: ['update:modelValue'],
|
|
28775
|
+
setup(__props, {
|
|
28776
|
+
emit: __emit
|
|
28777
|
+
}) {
|
|
28778
|
+
const props = __props;
|
|
28779
|
+
const $emit = __emit;
|
|
28780
|
+
const optionSelected = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.computed)(() => {
|
|
28781
|
+
let optionSelected = props.fullEmit ? props.modelValue?.[props.optionValue] : props.modelValue;
|
|
28782
|
+
return optionSelected;
|
|
28783
|
+
});
|
|
28784
|
+
function handleSelected(option) {
|
|
28785
|
+
let valueToEmit = props.fullEmit ? {
|
|
28786
|
+
...option
|
|
28787
|
+
} : option[props.optionValue];
|
|
28788
|
+
/**
|
|
28789
|
+
* Se emite al seleccionar una opción.
|
|
28790
|
+
*
|
|
28791
|
+
* @event update:modelValue
|
|
28792
|
+
* @type {Event}
|
|
28793
|
+
* @property valor de la opción, si se tiene activa la bandera "full-emit" emite todo el objeto de la opción, en caso que no este activa emite el valor del campo indicado en el prop "option-value"
|
|
28794
|
+
*/
|
|
28795
|
+
$emit('update:modelValue', valueToEmit);
|
|
28796
|
+
}
|
|
28797
|
+
return (_ctx, _cache) => {
|
|
28798
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", ETabvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ETabvue_type_script_setup_true_lang_js_hoisted_2, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
28799
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["e-tab__title", _ctx.$slots.title ? 'exos-bg-red' : ''])
|
|
28800
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "title")], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ETabvue_type_script_setup_true_lang_js_hoisted_3, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)(props.options, (option, index) => {
|
|
28801
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
28802
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(["e-tab__option", `${option[props.optionValue] == optionSelected.value ? 'e-tab__option-selected' : ''} ${props.onlyRead ? '' : 'e-tab__only-read'}`]),
|
|
28803
|
+
key: 'tabOpt' + index,
|
|
28804
|
+
onClick: $event => !props.onlyRead ? handleSelected(option) : false
|
|
28805
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(option[props.optionLabel]), 11, ETabvue_type_script_setup_true_lang_js_hoisted_4);
|
|
28806
|
+
}), 128))])]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", ETabvue_type_script_setup_true_lang_js_hoisted_5, [_ctx.$slots[`tab-${optionSelected.value}`] ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, `tab-${optionSelected.value}`, {
|
|
28807
|
+
key: 0
|
|
28808
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !_ctx.$slots[`tab-${optionSelected.value}`] ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default", {
|
|
28809
|
+
key: 1
|
|
28810
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])]);
|
|
28811
|
+
};
|
|
28812
|
+
}
|
|
28813
|
+
});
|
|
28814
|
+
;// CONCATENATED MODULE: ./src/ui/components/tab/ETab.vue?vue&type=script&setup=true&lang=js
|
|
28815
|
+
|
|
28816
|
+
;// CONCATENATED MODULE: ./src/ui/components/tab/ETab.vue
|
|
28817
|
+
|
|
28818
|
+
|
|
28819
|
+
|
|
28820
|
+
const ETab_exports_ = ETabvue_type_script_setup_true_lang_js;
|
|
28821
|
+
|
|
28822
|
+
/* harmony default export */ var ETab = (ETab_exports_);
|
|
28603
28823
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/stepper/EStepper.vue?vue&type=script&setup=true&lang=js
|
|
28604
28824
|
|
|
28605
28825
|
const ESteppervue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
@@ -29063,36 +29283,36 @@ if (typeof (EBtnTogglevue_type_custom_index_0_blockType_docs_lang_md_default())
|
|
|
29063
29283
|
const EBtnToggle_exports_ = EBtnTogglevue_type_script_setup_true_lang_js;
|
|
29064
29284
|
|
|
29065
29285
|
/* harmony default export */ var EBtnToggle = (EBtnToggle_exports_);
|
|
29066
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/filePicker/EFilePicker.vue?vue&type=template&id=
|
|
29286
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/filePicker/EFilePicker.vue?vue&type=template&id=3ec76745
|
|
29067
29287
|
|
|
29068
|
-
const
|
|
29288
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_1 = {
|
|
29069
29289
|
class: "exos-flex exos-w-full exos-flex-col exos-space-y-1"
|
|
29070
29290
|
};
|
|
29071
|
-
const
|
|
29072
|
-
const
|
|
29073
|
-
const
|
|
29291
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_2 = ["accept", "multiple", "disabled", "id"];
|
|
29292
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_3 = ["for"];
|
|
29293
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_4 = {
|
|
29074
29294
|
key: 0
|
|
29075
29295
|
};
|
|
29076
|
-
const
|
|
29296
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_5 = {
|
|
29077
29297
|
key: 0,
|
|
29078
29298
|
class: "exos-w-full exos-space-y-1"
|
|
29079
29299
|
};
|
|
29080
|
-
const
|
|
29300
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_6 = {
|
|
29081
29301
|
class: "exos-flex exos-space-x-2"
|
|
29082
29302
|
};
|
|
29083
|
-
const
|
|
29303
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_7 = {
|
|
29084
29304
|
class: "e-inputFile__containerFileInfo"
|
|
29085
29305
|
};
|
|
29086
|
-
const
|
|
29087
|
-
const
|
|
29306
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_8 = ["onClick"];
|
|
29307
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
29088
29308
|
stroke: "currentColor",
|
|
29089
29309
|
"stroke-linecap": "round",
|
|
29090
29310
|
"stroke-linejoin": "round",
|
|
29091
29311
|
"stroke-width": "2",
|
|
29092
29312
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
29093
29313
|
}, null, -1);
|
|
29094
|
-
const
|
|
29095
|
-
const
|
|
29314
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_10 = [EFilePickervue_type_template_id_3ec76745_hoisted_9];
|
|
29315
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_11 = {
|
|
29096
29316
|
key: 1,
|
|
29097
29317
|
class: "exos-w-4 exos-h-4 exos-text-secondary exos-opacity-60 hover:exos-opacity-100 dark:exos-text-white",
|
|
29098
29318
|
"aria-hidden": "true",
|
|
@@ -29100,21 +29320,22 @@ const EFilePickervue_type_template_id_384e2c43_hoisted_11 = {
|
|
|
29100
29320
|
fill: "none",
|
|
29101
29321
|
viewBox: "0 0 15 15"
|
|
29102
29322
|
};
|
|
29103
|
-
const
|
|
29323
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_12 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
29104
29324
|
stroke: "currentColor",
|
|
29105
29325
|
"stroke-linecap": "round",
|
|
29106
29326
|
"stroke-linejoin": "round",
|
|
29107
29327
|
"stroke-width": "2",
|
|
29108
29328
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
29109
29329
|
}, null, -1);
|
|
29110
|
-
const
|
|
29111
|
-
const
|
|
29330
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_13 = [EFilePickervue_type_template_id_3ec76745_hoisted_12];
|
|
29331
|
+
const EFilePickervue_type_template_id_3ec76745_hoisted_14 = {
|
|
29112
29332
|
key: 1,
|
|
29113
29333
|
class: "e-inputFile__message--error"
|
|
29114
29334
|
};
|
|
29115
|
-
function
|
|
29335
|
+
function EFilePickervue_type_template_id_3ec76745_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
29116
29336
|
const _component_EIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EIcon");
|
|
29117
|
-
|
|
29337
|
+
const _component_EFileViewer = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EFileViewer");
|
|
29338
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EFilePickervue_type_template_id_3ec76745_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
29118
29339
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainContainerClass)
|
|
29119
29340
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("input", {
|
|
29120
29341
|
type: "file",
|
|
@@ -29125,26 +29346,26 @@ function EFilePickervue_type_template_id_384e2c43_render(_ctx, _cache, $props, $
|
|
|
29125
29346
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainClass),
|
|
29126
29347
|
id: 'inputFile-' + $props.label,
|
|
29127
29348
|
onChange: _cache[0] || (_cache[0] = (...args) => $options.handleFileChange && $options.handleFileChange(...args))
|
|
29128
|
-
}, null, 42,
|
|
29349
|
+
}, null, 42, EFilePickervue_type_template_id_3ec76745_hoisted_2), !$props.modelValue ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("label", {
|
|
29129
29350
|
key: 0,
|
|
29130
29351
|
for: 'inputFile-' + $props.label,
|
|
29131
29352
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelClass)
|
|
29132
29353
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
29133
29354
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelBoxClass)
|
|
29134
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "content", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EIcon, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.guardReactiveProps)($options.iconInfo)), null, 16), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.label) + " ", 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
29355
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "content", {}, () => [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EIcon, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeProps)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.guardReactiveProps)($options.iconInfo)), null, 16), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createTextVNode)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($props.label) + " ", 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", EFilePickervue_type_template_id_3ec76745_hoisted_4, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])])], 2)], 10, EFilePickervue_type_template_id_3ec76745_hoisted_3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $options.labelSelected ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29135
29356
|
key: 1,
|
|
29136
29357
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelSelectedClass)
|
|
29137
29358
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
29138
29359
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.containerFileClass)
|
|
29139
|
-
}, [$props.multiple ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
29360
|
+
}, [$props.multiple ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EFilePickervue_type_template_id_3ec76745_hoisted_5, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($options.labelSelected, (file, index) => {
|
|
29140
29361
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29141
29362
|
key: index,
|
|
29142
29363
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.fileBoxContainer)
|
|
29143
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
29364
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EFilePickervue_type_template_id_3ec76745_hoisted_6, [$props.fileIcon ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_EIcon, {
|
|
29144
29365
|
key: 0,
|
|
29145
29366
|
name: $options.typeFileIconName(file.type),
|
|
29146
29367
|
color: "exos-text-secondary"
|
|
29147
|
-
}, null, 8, ["name"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(file.name), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
29368
|
+
}, null, 8, ["name"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(file.name), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EFilePickervue_type_template_id_3ec76745_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "fileDescription")])])]), $props.useTags ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", {
|
|
29148
29369
|
key: 0,
|
|
29149
29370
|
fill: "none",
|
|
29150
29371
|
"aria-hidden": "true",
|
|
@@ -29152,7 +29373,7 @@ function EFilePickervue_type_template_id_384e2c43_render(_ctx, _cache, $props, $
|
|
|
29152
29373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
29153
29374
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.iconCloseTagClass),
|
|
29154
29375
|
onClick: $event => $options.handleCloseOneFile(index)
|
|
29155
|
-
},
|
|
29376
|
+
}, EFilePickervue_type_template_id_3ec76745_hoisted_10, 10, EFilePickervue_type_template_id_3ec76745_hoisted_8)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
|
|
29156
29377
|
}), 128))])) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29157
29378
|
key: 1,
|
|
29158
29379
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.fileBoxContainer)
|
|
@@ -29160,24 +29381,35 @@ function EFilePickervue_type_template_id_384e2c43_render(_ctx, _cache, $props, $
|
|
|
29160
29381
|
key: 0,
|
|
29161
29382
|
name: $options.typeFileIconName($options.labelSelected.type),
|
|
29162
29383
|
color: "exos-text-secondary"
|
|
29163
|
-
}, null, 8, ["name"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p",
|
|
29384
|
+
}, null, 8, ["name"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", {
|
|
29385
|
+
onClick: _cache[1] || (_cache[1] = (...args) => $options.openFileViewer && $options.openFileViewer(...args)),
|
|
29386
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($props.onlyRead ? 'exos-z-20 exos-cursor-pointer' : '')
|
|
29387
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.labelSelected.name), 3), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "fileDescription")], 2))], 2)], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !!$props.modelValue && !$props.disabled && $props.showCleanBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29164
29388
|
key: 2,
|
|
29165
|
-
onClick: _cache[
|
|
29389
|
+
onClick: _cache[2] || (_cache[2] = (...args) => $options.clean && $options.clean(...args)),
|
|
29166
29390
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.iconCloseClass)
|
|
29167
29391
|
}, [_ctx.$slots.iconClose ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "iconClose", {
|
|
29168
29392
|
key: 0
|
|
29169
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg",
|
|
29393
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", EFilePickervue_type_template_id_3ec76745_hoisted_11, EFilePickervue_type_template_id_3ec76745_hoisted_13))], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2), $props.counter || $props.counterLabel ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29170
29394
|
key: 0,
|
|
29171
29395
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.containerFileInfoClass)
|
|
29172
|
-
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.formattedFileInfo), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !!$data.messageError ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
29396
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.formattedFileInfo), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !!$data.messageError ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EFilePickervue_type_template_id_3ec76745_hoisted_14, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.messageError), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $props.onlyRead ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_EFileViewer, {
|
|
29397
|
+
key: 2,
|
|
29398
|
+
data: $data.fileToview,
|
|
29399
|
+
fileName: $data.nameFile,
|
|
29400
|
+
extention: $data.extensionFile,
|
|
29401
|
+
onClose: _cache[3] || (_cache[3] = $event => $data.fileToview = null)
|
|
29402
|
+
}, null, 8, ["data", "fileName", "extention"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
29173
29403
|
}
|
|
29174
|
-
;// CONCATENATED MODULE: ./src/ui/components/filePicker/EFilePicker.vue?vue&type=template&id=
|
|
29404
|
+
;// CONCATENATED MODULE: ./src/ui/components/filePicker/EFilePicker.vue?vue&type=template&id=3ec76745
|
|
29175
29405
|
|
|
29176
29406
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/filePicker/EFilePicker.vue?vue&type=script&lang=js
|
|
29177
29407
|
|
|
29178
29408
|
|
|
29409
|
+
|
|
29179
29410
|
/* harmony default export */ var EFilePickervue_type_script_lang_js = ({
|
|
29180
29411
|
name: 'EFilePicker',
|
|
29412
|
+
EFileViewer: EFileViewer,
|
|
29181
29413
|
mixins: [(mixins_default())],
|
|
29182
29414
|
props: {
|
|
29183
29415
|
/**
|
|
@@ -29454,12 +29686,23 @@ function EFilePickervue_type_template_id_384e2c43_render(_ctx, _cache, $props, $
|
|
|
29454
29686
|
type: String,
|
|
29455
29687
|
default: 'Se ha alcanzado el número máximo de archivos permitidos',
|
|
29456
29688
|
description: 'Mensaje para indicar al usuario cuando el número máximo total de archivos fue alcanzado.'
|
|
29689
|
+
},
|
|
29690
|
+
/**
|
|
29691
|
+
* 'Bandera para indicar si funcionaran como previzualizador de documentos'
|
|
29692
|
+
*/
|
|
29693
|
+
onlyRead: {
|
|
29694
|
+
type: Boolean,
|
|
29695
|
+
default: false,
|
|
29696
|
+
description: 'Bandera para indicar si funcionaran como previzualizador de documentos'
|
|
29457
29697
|
}
|
|
29458
29698
|
},
|
|
29459
29699
|
data() {
|
|
29460
29700
|
return {
|
|
29461
29701
|
messageError: null,
|
|
29462
|
-
selectedFiles: []
|
|
29702
|
+
selectedFiles: [],
|
|
29703
|
+
fileToview: null,
|
|
29704
|
+
nameFile: null,
|
|
29705
|
+
extensionFile: null
|
|
29463
29706
|
};
|
|
29464
29707
|
},
|
|
29465
29708
|
computed: {
|
|
@@ -29513,7 +29756,7 @@ function EFilePickervue_type_template_id_384e2c43_render(_ctx, _cache, $props, $
|
|
|
29513
29756
|
return [this.$slots.fileDescription ? 'exos-flex exos-flex-col' : ''];
|
|
29514
29757
|
},
|
|
29515
29758
|
labelClass() {
|
|
29516
|
-
const dynamicLabelClasses = ['e-inputFile__labelClass', this.textSize ? 'textSize-' + this.textSize : 'textSize-def', this.messageError ? ['exos-text-danger'] : [this.labelColorNV
|
|
29759
|
+
const dynamicLabelClasses = ['e-inputFile__labelClass', this.textSize ? 'textSize-' + this.textSize : 'textSize-def', this.messageError ? ['exos-text-danger'] : [this.labelColorNV ?? 'exos-text-white']];
|
|
29517
29760
|
return dynamicLabelClasses;
|
|
29518
29761
|
},
|
|
29519
29762
|
labelBoxClass() {
|
|
@@ -29617,6 +29860,14 @@ function EFilePickervue_type_template_id_384e2c43_render(_ctx, _cache, $props, $
|
|
|
29617
29860
|
return this.validateOneFile(filterRules);
|
|
29618
29861
|
}
|
|
29619
29862
|
},
|
|
29863
|
+
async openFileViewer() {
|
|
29864
|
+
if (this.onlyRead) {
|
|
29865
|
+
let file64 = await this.convertFileToBase64(this.modelValue);
|
|
29866
|
+
this.nameFile = this.modelValue.name;
|
|
29867
|
+
this.fileToview = file64.split(',')[1];
|
|
29868
|
+
this.extensionFile = this.modelValue.name.split('.').pop();
|
|
29869
|
+
}
|
|
29870
|
+
},
|
|
29620
29871
|
validateMultipleFiles(filterRules) {
|
|
29621
29872
|
let i = 0;
|
|
29622
29873
|
let result = true;
|
|
@@ -29862,48 +30113,114 @@ if (typeof (EFilePickervue_type_custom_index_0_blockType_docs_lang_md_default())
|
|
|
29862
30113
|
|
|
29863
30114
|
|
|
29864
30115
|
;
|
|
29865
|
-
const EFilePicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EFilePickervue_type_script_lang_js, [['render',
|
|
30116
|
+
const EFilePicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EFilePickervue_type_script_lang_js, [['render',EFilePickervue_type_template_id_3ec76745_render]])
|
|
29866
30117
|
|
|
29867
30118
|
/* harmony default export */ var EFilePicker = (EFilePicker_exports_);
|
|
29868
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/
|
|
30119
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/dataDetail/EDataDetail.vue?vue&type=template&id=7b85beb3
|
|
29869
30120
|
|
|
29870
|
-
const
|
|
29871
|
-
|
|
29872
|
-
|
|
30121
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_1 = {
|
|
30122
|
+
key: 0,
|
|
30123
|
+
class: "e-dataDetail__titleContainerClass"
|
|
29873
30124
|
};
|
|
29874
|
-
const
|
|
29875
|
-
class: "
|
|
30125
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_2 = {
|
|
30126
|
+
class: "e-dataDetail__contentTRClass"
|
|
29876
30127
|
};
|
|
29877
|
-
const
|
|
30128
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_3 = {
|
|
30129
|
+
key: 0
|
|
30130
|
+
};
|
|
30131
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_4 = {
|
|
29878
30132
|
class: "exos-text-black exos-text-base"
|
|
29879
30133
|
};
|
|
29880
|
-
|
|
30134
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_5 = {
|
|
30135
|
+
key: 0,
|
|
30136
|
+
class: "e-dataDetail__paginationContainerClass"
|
|
30137
|
+
};
|
|
30138
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_6 = {
|
|
30139
|
+
class: "e-dataDetail__infoPageContainerClass"
|
|
30140
|
+
};
|
|
30141
|
+
const EDataDetailvue_type_template_id_7b85beb3_hoisted_7 = {
|
|
30142
|
+
key: 0,
|
|
30143
|
+
class: "e-dataDetail__footerContainerClass"
|
|
30144
|
+
};
|
|
30145
|
+
function EDataDetailvue_type_template_id_7b85beb3_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30146
|
+
const _component_EBtn = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EBtn");
|
|
30147
|
+
const _component_EIcon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("EIcon");
|
|
29881
30148
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29882
30149
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainContainer)
|
|
29883
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
29884
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(
|
|
29885
|
-
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(
|
|
30150
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
30151
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.headerContainer)
|
|
30152
|
+
}, [_ctx.$slots.title ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EDataDetailvue_type_template_id_7b85beb3_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "title")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EDataDetailvue_type_template_id_7b85beb3_hoisted_2, [_ctx.$slots.contentTR ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EDataDetailvue_type_template_id_7b85beb3_hoisted_3, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "contentTR")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $props.closeBtn ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)(_component_EBtn, {
|
|
30153
|
+
key: 1,
|
|
30154
|
+
rounded: "",
|
|
30155
|
+
padding: "exos-p-1",
|
|
30156
|
+
iconName: "sym-close",
|
|
30157
|
+
color: "exos-bg-white",
|
|
30158
|
+
textColor: "exos-text-secondary",
|
|
30159
|
+
onClick: $options.close
|
|
30160
|
+
}, null, 8, ["onClick"])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)])], 2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
30161
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.gridContainerClass)
|
|
30162
|
+
}, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.Fragment, null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderList)($options.currentData, (item, index) => {
|
|
29886
30163
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
29887
|
-
key: index
|
|
29888
|
-
|
|
30164
|
+
key: index,
|
|
30165
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.detailGrid)
|
|
30166
|
+
}, [!$props.modeGrid ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("p", {
|
|
29889
30167
|
key: 0,
|
|
29890
|
-
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)(
|
|
29891
|
-
},
|
|
29892
|
-
|
|
30168
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelClass)
|
|
30169
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(item.label), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, `cell-name-${item.slot}`, {
|
|
30170
|
+
index: index,
|
|
30171
|
+
item: {
|
|
30172
|
+
label: item.label,
|
|
30173
|
+
value: item.value
|
|
30174
|
+
},
|
|
30175
|
+
data: item.field,
|
|
30176
|
+
labelClass: $options.labelClass,
|
|
30177
|
+
valueClass: ['exos-text-black exos-text-base']
|
|
30178
|
+
}, () => [$props.modeGrid ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("p", {
|
|
30179
|
+
key: 0,
|
|
30180
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelClass)
|
|
30181
|
+
}, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(item.label), 3)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", EDataDetailvue_type_template_id_7b85beb3_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(item.value), 1)])], 2);
|
|
30182
|
+
}), 128))], 2), this.structuredData.length > 1 ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EDataDetailvue_type_template_id_7b85beb3_hoisted_5, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EIcon, {
|
|
30183
|
+
name: "chevron_left",
|
|
30184
|
+
color: "exos-text-secondary",
|
|
30185
|
+
class: "hover:exos-cursor-pointer",
|
|
30186
|
+
onClick: $options.handlePrev
|
|
30187
|
+
}, null, 8, ["onClick"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", EDataDetailvue_type_template_id_7b85beb3_hoisted_6, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.page + 1) + "/" + (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(this.structuredData.length), 1), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createVNode)(_component_EIcon, {
|
|
30188
|
+
name: "chevron_right",
|
|
30189
|
+
color: "exos-text-secondary",
|
|
30190
|
+
class: "hover:exos-cursor-pointer",
|
|
30191
|
+
onClick: $options.handleNext
|
|
30192
|
+
}, null, 8, ["onClick"])])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]), _ctx.$slots.footer ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EDataDetailvue_type_template_id_7b85beb3_hoisted_7, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "footer")])) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
|
|
29893
30193
|
}
|
|
29894
|
-
;// CONCATENATED MODULE: ./src/ui/components/
|
|
30194
|
+
;// CONCATENATED MODULE: ./src/ui/components/dataDetail/EDataDetail.vue?vue&type=template&id=7b85beb3
|
|
29895
30195
|
|
|
29896
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/
|
|
29897
|
-
/* harmony default export */ var
|
|
29898
|
-
name: '
|
|
30196
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/dataDetail/EDataDetail.vue?vue&type=script&lang=js
|
|
30197
|
+
/* harmony default export */ var EDataDetailvue_type_script_lang_js = ({
|
|
30198
|
+
name: 'EDataDetail',
|
|
29899
30199
|
props: {
|
|
29900
30200
|
/**
|
|
29901
|
-
* Información que será mostrada en el componente
|
|
30201
|
+
* Información que será mostrada en el componente
|
|
29902
30202
|
*/
|
|
29903
|
-
|
|
30203
|
+
data: {
|
|
30204
|
+
type: [Object, Array],
|
|
30205
|
+
default: () => {
|
|
30206
|
+
return [];
|
|
30207
|
+
},
|
|
30208
|
+
description: 'Información que será mostrada en el componente.'
|
|
30209
|
+
},
|
|
30210
|
+
/**
|
|
30211
|
+
* Recibe un layout dinámico para poder montar los campos de forma dinámica.
|
|
30212
|
+
* Ejemplo:
|
|
30213
|
+
* [
|
|
30214
|
+
* {
|
|
30215
|
+
* field: "fecha_intercambio",
|
|
30216
|
+
* title: "Fecha de intercambio",
|
|
30217
|
+
* },
|
|
30218
|
+
* ];
|
|
30219
|
+
*/
|
|
30220
|
+
layout: {
|
|
29904
30221
|
type: Array,
|
|
29905
30222
|
default: () => [],
|
|
29906
|
-
description: '
|
|
30223
|
+
description: 'Recibe un layout dinámico para poder montar los campos de forma dinámica.'
|
|
29907
30224
|
},
|
|
29908
30225
|
/**
|
|
29909
30226
|
* Bandera para indicar que el contenido se mostrará en columnas.
|
|
@@ -29916,19 +30233,10 @@ function EInfoPanelvue_type_template_id_16de9ddc_scoped_true_render(_ctx, _cache
|
|
|
29916
30233
|
/**
|
|
29917
30234
|
* Número de columnas totales a mostrar.
|
|
29918
30235
|
*/
|
|
29919
|
-
|
|
29920
|
-
type: [Number, String],
|
|
29921
|
-
default: null,
|
|
29922
|
-
description: 'Número de columnas totales a mostrar.'
|
|
29923
|
-
},
|
|
29924
|
-
/**
|
|
29925
|
-
* Setea las columnas customizables.
|
|
29926
|
-
* Ej:<br>columnsCustom="xs:max-sm:exos-grid-cols-2 sm:max-md:exos-grid-cols-4"
|
|
29927
|
-
*/
|
|
29928
|
-
columnsCustom: {
|
|
30236
|
+
numColumns: {
|
|
29929
30237
|
type: String,
|
|
29930
30238
|
default: null,
|
|
29931
|
-
description: '
|
|
30239
|
+
description: 'Número de columnas totales a mostrar.'
|
|
29932
30240
|
},
|
|
29933
30241
|
/**
|
|
29934
30242
|
* Setea el color del bg del componente, y se puede agregar para los modos light y dark y estados como hover.<br>
|
|
@@ -29956,38 +30264,331 @@ function EInfoPanelvue_type_template_id_16de9ddc_scoped_true_render(_ctx, _cache
|
|
|
29956
30264
|
type: String,
|
|
29957
30265
|
default: null,
|
|
29958
30266
|
description: 'Grado de redondeo de los bordes del componente. Ej. sm, md, lg...'
|
|
30267
|
+
},
|
|
30268
|
+
/**
|
|
30269
|
+
* Muestra u oculta el botón para cerrar el componente.
|
|
30270
|
+
*/
|
|
30271
|
+
closeBtn: {
|
|
30272
|
+
type: Boolean,
|
|
30273
|
+
default: false,
|
|
30274
|
+
description: 'Muestra u oculta el botón para cerrar el componente.'
|
|
29959
30275
|
}
|
|
29960
30276
|
},
|
|
30277
|
+
data() {
|
|
30278
|
+
return {
|
|
30279
|
+
page: 0
|
|
30280
|
+
};
|
|
30281
|
+
},
|
|
29961
30282
|
computed: {
|
|
30283
|
+
currentData() {
|
|
30284
|
+
return this.finalData[this.page];
|
|
30285
|
+
},
|
|
30286
|
+
structuredData() {
|
|
30287
|
+
return Array.isArray(this.data) ? this.data : [this.data];
|
|
30288
|
+
},
|
|
30289
|
+
structuredLayout() {
|
|
30290
|
+
return Array.isArray(this.layout) ? [...this.layout] : [];
|
|
30291
|
+
},
|
|
30292
|
+
finalData() {
|
|
30293
|
+
if (!this.structuredData.length) {
|
|
30294
|
+
return [];
|
|
30295
|
+
}
|
|
30296
|
+
return this.structuredData.map(data => {
|
|
30297
|
+
return this.structuredLayout.map(col => {
|
|
30298
|
+
return {
|
|
30299
|
+
label: col.title,
|
|
30300
|
+
value: this.$filters['formatInfo'](this.$filters.getFromNestedObject(data, col.field)),
|
|
30301
|
+
field: data,
|
|
30302
|
+
slot: col.field
|
|
30303
|
+
};
|
|
30304
|
+
});
|
|
30305
|
+
});
|
|
30306
|
+
},
|
|
29962
30307
|
gridContainerClass() {
|
|
29963
|
-
const baseClasses = ['e-
|
|
29964
|
-
const dynamicClasses = this.
|
|
29965
|
-
return baseClasses.concat(dynamicClasses);
|
|
30308
|
+
const baseClasses = ['e-dataDetail__gridContainer'];
|
|
30309
|
+
const dynamicClasses = this.numColumns + ' e-dataDetail__gridDefaultClass';
|
|
30310
|
+
return this.modeGrid ? baseClasses.concat(dynamicClasses) : 'exos-flex exos-flex-col exos-w-full';
|
|
30311
|
+
},
|
|
30312
|
+
detailGrid() {
|
|
30313
|
+
const baseClasses = ['exos-grid exos-grid-cols-2 exos-space-y-1'];
|
|
30314
|
+
return this.modeGrid ? '' : baseClasses;
|
|
29966
30315
|
},
|
|
29967
30316
|
mainContainer() {
|
|
29968
|
-
const baseClasses = ['e-
|
|
30317
|
+
const baseClasses = ['e-dataDetail__containerClass', this.bgColor ?? 'exos-bg-transparent', this.shadowSize ? 'shadow-' + this.shadowSize : 'shadow-none', this.roundedSize ? 'rounded-' + this.roundedSize : 'rounded-def'];
|
|
29969
30318
|
return baseClasses;
|
|
30319
|
+
},
|
|
30320
|
+
headerContainer() {
|
|
30321
|
+
const baseClasses = ['e-dataDetail__headerContainerClass'];
|
|
30322
|
+
const dynamicClasses = [this.$slots.title ? 'e-dataDetail__headerContainerClass-slotTitle' : ''];
|
|
30323
|
+
return baseClasses.concat(dynamicClasses);
|
|
30324
|
+
},
|
|
30325
|
+
labelClass() {
|
|
30326
|
+
const baseClasses = ['exos-text-secondary'];
|
|
30327
|
+
const dynamicClasses = [this.modeGrid ? 'exos-text-xs' : 'exos-text-sm'];
|
|
30328
|
+
return baseClasses.concat(dynamicClasses);
|
|
30329
|
+
}
|
|
30330
|
+
},
|
|
30331
|
+
methods: {
|
|
30332
|
+
handlePrev() {
|
|
30333
|
+
this.page = this.page > 0 ? this.page - 1 : 0;
|
|
30334
|
+
},
|
|
30335
|
+
handleNext() {
|
|
30336
|
+
this.page = this.page < this.structuredData.length - 1 ? this.page + 1 : this.structuredData.length - 1;
|
|
30337
|
+
},
|
|
30338
|
+
close() {
|
|
30339
|
+
/**
|
|
30340
|
+
* Emite el evento 'close' cuando se hace clic en el botón del encabezado para cerrar el detalle.
|
|
30341
|
+
*
|
|
30342
|
+
* @event close
|
|
30343
|
+
* @type {Event}
|
|
30344
|
+
*/
|
|
30345
|
+
this.$emit('close');
|
|
29970
30346
|
}
|
|
29971
30347
|
}
|
|
29972
30348
|
});
|
|
29973
|
-
;// CONCATENATED MODULE: ./src/ui/components/
|
|
30349
|
+
;// CONCATENATED MODULE: ./src/ui/components/dataDetail/EDataDetail.vue?vue&type=script&lang=js
|
|
29974
30350
|
|
|
29975
|
-
|
|
29976
|
-
|
|
30351
|
+
// EXTERNAL MODULE: ./node_modules/vue-cli-plugin-styleguidist/empty-object-loader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/dataDetail/EDataDetail.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
30352
|
+
var EDataDetailvue_type_custom_index_0_blockType_docs_lang_md = __webpack_require__(5299);
|
|
30353
|
+
var EDataDetailvue_type_custom_index_0_blockType_docs_lang_md_default = /*#__PURE__*/__webpack_require__.n(EDataDetailvue_type_custom_index_0_blockType_docs_lang_md);
|
|
30354
|
+
;// CONCATENATED MODULE: ./src/ui/components/dataDetail/EDataDetail.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
30355
|
+
|
|
30356
|
+
;// CONCATENATED MODULE: ./src/ui/components/dataDetail/EDataDetail.vue
|
|
29977
30357
|
|
|
29978
|
-
;// CONCATENATED MODULE: ./src/ui/components/infoPanel/EInfoPanel.vue?vue&type=style&index=0&id=16de9ddc&scoped=true&lang=css
|
|
29979
30358
|
|
|
29980
|
-
;// CONCATENATED MODULE: ./src/ui/components/infoPanel/EInfoPanel.vue
|
|
29981
30359
|
|
|
30360
|
+
/* custom blocks */
|
|
30361
|
+
;
|
|
30362
|
+
if (typeof (EDataDetailvue_type_custom_index_0_blockType_docs_lang_md_default()) === 'function') EDataDetailvue_type_custom_index_0_blockType_docs_lang_md_default()(EDataDetailvue_type_script_lang_js)
|
|
29982
30363
|
|
|
29983
30364
|
|
|
30365
|
+
;
|
|
30366
|
+
const EDataDetail_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EDataDetailvue_type_script_lang_js, [['render',EDataDetailvue_type_template_id_7b85beb3_render]])
|
|
30367
|
+
|
|
30368
|
+
/* harmony default export */ var EDataDetail = (EDataDetail_exports_);
|
|
30369
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/tooltip/ETooltip.vue?vue&type=template&id=6ec1becb
|
|
29984
30370
|
|
|
30371
|
+
function ETooltipvue_type_template_id_6ec1becb_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30372
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
30373
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainContainer)
|
|
30374
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
30375
|
+
ref: "etooltipRef",
|
|
30376
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.tooltipReferenceContainer),
|
|
30377
|
+
onMouseover: _cache[0] || (_cache[0] = $event => $data.showTooltip = true),
|
|
30378
|
+
onMouseleave: _cache[1] || (_cache[1] = $event => $data.showTooltip = false)
|
|
30379
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "label")], 34), $data.showTooltip ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
30380
|
+
key: 0,
|
|
30381
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.tooltipContainer),
|
|
30382
|
+
style: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeStyle)($options.computedDirection)
|
|
30383
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
30384
|
+
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.tooltip)
|
|
30385
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 2)], 6)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
|
|
30386
|
+
}
|
|
30387
|
+
;// CONCATENATED MODULE: ./src/ui/components/tooltip/ETooltip.vue?vue&type=template&id=6ec1becb
|
|
30388
|
+
|
|
30389
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/tooltip/ETooltip.vue?vue&type=script&lang=js
|
|
30390
|
+
/* harmony default export */ var ETooltipvue_type_script_lang_js = ({
|
|
30391
|
+
name: 'ETooltip',
|
|
30392
|
+
props: {
|
|
30393
|
+
/**
|
|
30394
|
+
* Dirección hacia donde se desea se muestre el tooltip.
|
|
30395
|
+
* @values t, tl, tr, b, bl, br
|
|
30396
|
+
*/
|
|
30397
|
+
displayDirection: {
|
|
30398
|
+
type: String,
|
|
30399
|
+
default: null,
|
|
30400
|
+
description: 'Dirección hacia donde se desea se muestre el contenido del componente.'
|
|
30401
|
+
},
|
|
30402
|
+
/**
|
|
30403
|
+
* Dirección hacia donde se justificará el contenido del tooltip.
|
|
30404
|
+
* @values l, c, r
|
|
30405
|
+
*/
|
|
30406
|
+
justifyDirection: {
|
|
30407
|
+
type: String,
|
|
30408
|
+
default: null,
|
|
30409
|
+
description: 'Dirección hacia donde se desea se muestre el contenido del componente.'
|
|
30410
|
+
},
|
|
30411
|
+
/**
|
|
30412
|
+
* Valor de la anchura que tomará el componente tooltip.
|
|
30413
|
+
*/
|
|
30414
|
+
width: {
|
|
30415
|
+
type: String,
|
|
30416
|
+
default: null,
|
|
30417
|
+
description: 'Valor de la anchura que tomará el componente tooltip.'
|
|
30418
|
+
},
|
|
30419
|
+
/**
|
|
30420
|
+
* Valor de la anchura que tomará el componente padre que mantiene dentro al tooltip.
|
|
30421
|
+
*/
|
|
30422
|
+
widthTooltipTrack: {
|
|
30423
|
+
type: String,
|
|
30424
|
+
default: null,
|
|
30425
|
+
description: 'Valor de la anchura que tomará el componente padre que mantiene dentro al tooltip.'
|
|
30426
|
+
},
|
|
30427
|
+
/**
|
|
30428
|
+
* Setea el color del bg del tooltip, y se puede agregar para los modos light y dark y estados como hover.<br>
|
|
30429
|
+
* Ej:<br>bgColor="bg-gray-500 dark:bg-white hover:bg-green-300"
|
|
30430
|
+
*/
|
|
30431
|
+
bgColor: {
|
|
30432
|
+
type: String,
|
|
30433
|
+
default: null,
|
|
30434
|
+
description: 'Color bg del componente.'
|
|
30435
|
+
},
|
|
30436
|
+
/**
|
|
30437
|
+
* Setea el color del texto del tooltip, y se puede agregar para los modos light y dark y estados como hover.<br>
|
|
30438
|
+
* Ej:<br>textColor="text-gray-500 dark:text-white hover:text-green-300"
|
|
30439
|
+
*/
|
|
30440
|
+
textColor: {
|
|
30441
|
+
type: String,
|
|
30442
|
+
default: null,
|
|
30443
|
+
description: 'Color del texto del componente.'
|
|
30444
|
+
},
|
|
30445
|
+
/**
|
|
30446
|
+
* Grado de la sombra del componente.
|
|
30447
|
+
* @values none, xs, sm, md, lg, xl, xxl
|
|
30448
|
+
*/
|
|
30449
|
+
shadowSize: {
|
|
30450
|
+
type: String,
|
|
30451
|
+
default: null,
|
|
30452
|
+
description: 'Grado de la sombra del componente.'
|
|
30453
|
+
},
|
|
30454
|
+
/**
|
|
30455
|
+
* Setea el grado de redondeo del botón.
|
|
30456
|
+
* @values sm, md, lg, xl, xxl, full
|
|
30457
|
+
*/
|
|
30458
|
+
roundedSize: {
|
|
30459
|
+
type: String,
|
|
30460
|
+
default: null,
|
|
30461
|
+
description: 'Grado de redondeo de los bordes del componente. Ej. sm, md, lg...'
|
|
30462
|
+
}
|
|
30463
|
+
},
|
|
30464
|
+
data() {
|
|
30465
|
+
return {
|
|
30466
|
+
showTooltip: false,
|
|
30467
|
+
tooltipWidth: null,
|
|
30468
|
+
showToCenter: null,
|
|
30469
|
+
showToRight: null,
|
|
30470
|
+
showToBottom: null
|
|
30471
|
+
};
|
|
30472
|
+
},
|
|
30473
|
+
methods: {
|
|
30474
|
+
calculateAvailableSpaceX() {
|
|
30475
|
+
const rect = this.$refs.etooltipRef.getBoundingClientRect();
|
|
30476
|
+
const leftSpace = rect.left;
|
|
30477
|
+
const rightSpace = window.innerWidth - rect.right;
|
|
30478
|
+
this.showToCenter = leftSpace > window.innerWidth / 4 && rightSpace > window.innerWidth / 4;
|
|
30479
|
+
return rightSpace > rect.right ? true : false; // derecha : izquierda
|
|
30480
|
+
},
|
|
30481
|
+
calculateAvailableSpaceY() {
|
|
30482
|
+
const rect = this.$refs.etooltipRef.getBoundingClientRect();
|
|
30483
|
+
const bottomSpace = window.innerHeight - rect.bottom;
|
|
30484
|
+
return bottomSpace > rect.bottom ? true : false; // abajo : arriba
|
|
30485
|
+
}
|
|
30486
|
+
},
|
|
30487
|
+
mounted() {
|
|
30488
|
+
if (this.$refs.etooltipRef) {
|
|
30489
|
+
this.tooltipWidth = this.$refs.etooltipRef.offsetWidth;
|
|
30490
|
+
this.showToRight = this.calculateAvailableSpaceX();
|
|
30491
|
+
this.showToBottom = this.calculateAvailableSpaceY();
|
|
30492
|
+
}
|
|
30493
|
+
},
|
|
30494
|
+
computed: {
|
|
30495
|
+
computedDirection() {
|
|
30496
|
+
const offset = `calc(100% + 10px)`;
|
|
30497
|
+
const halfOffset = {
|
|
30498
|
+
top: '50%',
|
|
30499
|
+
transform: 'translateY(-50%)'
|
|
30500
|
+
};
|
|
30501
|
+
const directions = {
|
|
30502
|
+
t: {
|
|
30503
|
+
bottom: offset
|
|
30504
|
+
},
|
|
30505
|
+
tl: {
|
|
30506
|
+
bottom: offset,
|
|
30507
|
+
right: offset
|
|
30508
|
+
},
|
|
30509
|
+
tr: {
|
|
30510
|
+
bottom: offset,
|
|
30511
|
+
left: offset
|
|
30512
|
+
},
|
|
30513
|
+
b: {
|
|
30514
|
+
top: offset
|
|
30515
|
+
},
|
|
30516
|
+
bl: {
|
|
30517
|
+
top: offset,
|
|
30518
|
+
right: offset
|
|
30519
|
+
},
|
|
30520
|
+
br: {
|
|
30521
|
+
top: offset,
|
|
30522
|
+
left: offset
|
|
30523
|
+
},
|
|
30524
|
+
l: {
|
|
30525
|
+
...halfOffset,
|
|
30526
|
+
right: offset
|
|
30527
|
+
},
|
|
30528
|
+
r: {
|
|
30529
|
+
...halfOffset,
|
|
30530
|
+
left: offset
|
|
30531
|
+
}
|
|
30532
|
+
};
|
|
30533
|
+
if (this.displayDirection) {
|
|
30534
|
+
return directions[this.displayDirection];
|
|
30535
|
+
} else {
|
|
30536
|
+
switch (true) {
|
|
30537
|
+
case this.showToCenter && this.showToBottom:
|
|
30538
|
+
return directions['b'];
|
|
30539
|
+
case this.showToCenter && !this.showToBottom:
|
|
30540
|
+
return directions['t'];
|
|
30541
|
+
case this.showToRight && this.showToBottom:
|
|
30542
|
+
return directions['br'];
|
|
30543
|
+
case this.showToRight && !this.showToBottom:
|
|
30544
|
+
return directions['tr'];
|
|
30545
|
+
case !this.showToRight && this.showToBottom:
|
|
30546
|
+
return directions['bl'];
|
|
30547
|
+
case !this.showToRight && !this.showToBottom:
|
|
30548
|
+
return directions['tl'];
|
|
30549
|
+
}
|
|
30550
|
+
}
|
|
30551
|
+
return directions['b'];
|
|
30552
|
+
},
|
|
30553
|
+
mainContainer() {
|
|
30554
|
+
const baseClasses = ['e-tooltip__mainContainer'];
|
|
30555
|
+
return baseClasses;
|
|
30556
|
+
},
|
|
30557
|
+
tooltipReferenceContainer() {
|
|
30558
|
+
const baseClasses = ['exos-w-full hover:exos-cursor-pointer'];
|
|
30559
|
+
return baseClasses;
|
|
30560
|
+
},
|
|
30561
|
+
tooltipContainer() {
|
|
30562
|
+
const baseClasses = ['e-tooltip__tooltipContainerClass'];
|
|
30563
|
+
const dynamicClasses = [this.widthTooltipTrack ?? 'exos-w-[70vw]', this.justifyDirection ? ['justify-' + this.justifyDirection, this.displayDirection ? 'show-to-' + this.displayDirection : 'show-to-b'] : [this.showToCenter ? 'justify-c' : [this.showToRight ? 'justify-l' : 'justify-r']]];
|
|
30564
|
+
return baseClasses.concat(dynamicClasses);
|
|
30565
|
+
},
|
|
30566
|
+
tooltip() {
|
|
30567
|
+
const baseClasses = ['e-tooltip__tooltip', this.bgColor ?? 'exos-bg-secondary', this.textColor ?? 'exos-text-white', this.width ?? 'exos-w-fit', this.shadowSize ? 'shadow-' + this.shadowSize : 'shadow-def', this.roundedSize ? 'rounded-' + this.roundedSize : 'rounded-def'];
|
|
30568
|
+
return baseClasses;
|
|
30569
|
+
}
|
|
30570
|
+
}
|
|
30571
|
+
});
|
|
30572
|
+
;// CONCATENATED MODULE: ./src/ui/components/tooltip/ETooltip.vue?vue&type=script&lang=js
|
|
30573
|
+
|
|
30574
|
+
// EXTERNAL MODULE: ./node_modules/vue-cli-plugin-styleguidist/empty-object-loader.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/tooltip/ETooltip.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
30575
|
+
var ETooltipvue_type_custom_index_0_blockType_docs_lang_md = __webpack_require__(6877);
|
|
30576
|
+
var ETooltipvue_type_custom_index_0_blockType_docs_lang_md_default = /*#__PURE__*/__webpack_require__.n(ETooltipvue_type_custom_index_0_blockType_docs_lang_md);
|
|
30577
|
+
;// CONCATENATED MODULE: ./src/ui/components/tooltip/ETooltip.vue?vue&type=custom&index=0&blockType=docs&lang=md
|
|
30578
|
+
|
|
30579
|
+
;// CONCATENATED MODULE: ./src/ui/components/tooltip/ETooltip.vue
|
|
30580
|
+
|
|
30581
|
+
|
|
30582
|
+
|
|
30583
|
+
/* custom blocks */
|
|
29985
30584
|
;
|
|
30585
|
+
if (typeof (ETooltipvue_type_custom_index_0_blockType_docs_lang_md_default()) === 'function') ETooltipvue_type_custom_index_0_blockType_docs_lang_md_default()(ETooltipvue_type_script_lang_js)
|
|
29986
30586
|
|
|
29987
30587
|
|
|
29988
|
-
|
|
30588
|
+
;
|
|
30589
|
+
const ETooltip_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ETooltipvue_type_script_lang_js, [['render',ETooltipvue_type_template_id_6ec1becb_render]])
|
|
29989
30590
|
|
|
29990
|
-
/* harmony default export */ var
|
|
30591
|
+
/* harmony default export */ var ETooltip = (ETooltip_exports_);
|
|
29991
30592
|
;// CONCATENATED MODULE: ./src/components/plugins/loading.js
|
|
29992
30593
|
function createLoadingHTML(config) {
|
|
29993
30594
|
const color = config?.color ?? '#FAFAFA';
|
|
@@ -30099,6 +30700,8 @@ const loading = {
|
|
|
30099
30700
|
|
|
30100
30701
|
|
|
30101
30702
|
|
|
30703
|
+
|
|
30704
|
+
|
|
30102
30705
|
|
|
30103
30706
|
|
|
30104
30707
|
|
|
@@ -30121,6 +30724,7 @@ const ExosLibraryComponents = {
|
|
|
30121
30724
|
app.component('EPaginationTable', EPaginationTable);
|
|
30122
30725
|
app.component('ESelect', ESelect);
|
|
30123
30726
|
app.component('ETable', ETable);
|
|
30727
|
+
app.component('ETab', ETab);
|
|
30124
30728
|
app.component('ECollapse', ECollapse);
|
|
30125
30729
|
app.component('ESwitch', ESwitch);
|
|
30126
30730
|
app.component('EDialog', EDialog);
|
|
@@ -30133,7 +30737,8 @@ const ExosLibraryComponents = {
|
|
|
30133
30737
|
app.component('ECheckbox', ECheckbox);
|
|
30134
30738
|
app.component('ERadio', ERadio);
|
|
30135
30739
|
app.component('EFilePicker', EFilePicker);
|
|
30136
|
-
app.component('
|
|
30740
|
+
app.component('EDataDetail', EDataDetail);
|
|
30741
|
+
app.component('ETooltip', ETooltip);
|
|
30137
30742
|
app.provide('$loading', loading);
|
|
30138
30743
|
app.provide('$notify', notify);
|
|
30139
30744
|
app.provide('$showMessage', message);
|