@alexochihua/exos-library-components 2.13.6 → 2.14.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.
|
@@ -6611,20 +6611,20 @@ const EFileViewervue_type_script_setup_true_lang_js_hoisted_11 = ["src"];
|
|
|
6611
6611
|
const EFileViewer_exports_ = EFileViewervue_type_script_setup_true_lang_js;
|
|
6612
6612
|
|
|
6613
6613
|
/* harmony default export */ var EFileViewer = (EFileViewer_exports_);
|
|
6614
|
-
;// 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/form/EForm.vue?vue&type=template&id=
|
|
6614
|
+
;// 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/form/EForm.vue?vue&type=template&id=7d2ea516
|
|
6615
6615
|
|
|
6616
|
-
const
|
|
6616
|
+
const EFormvue_type_template_id_7d2ea516_hoisted_1 = {
|
|
6617
6617
|
class: "exos-w-full"
|
|
6618
6618
|
};
|
|
6619
|
-
function
|
|
6620
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
6619
|
+
function EFormvue_type_template_id_7d2ea516_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6620
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EFormvue_type_template_id_7d2ea516_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("form", {
|
|
6621
6621
|
ref: $options.formID,
|
|
6622
6622
|
class: "exos-w-full",
|
|
6623
6623
|
onSubmit: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)((...args) => $options.handleValidation && $options.handleValidation(...args), ["prevent", "stop"])),
|
|
6624
6624
|
onReset: _cache[1] || (_cache[1] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.withModifiers)((...args) => $options.handleReset && $options.handleReset(...args), ["prevent", "stop"]))
|
|
6625
6625
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "default")], 544)]);
|
|
6626
6626
|
}
|
|
6627
|
-
;// CONCATENATED MODULE: ./src/ui/components/form/EForm.vue?vue&type=template&id=
|
|
6627
|
+
;// CONCATENATED MODULE: ./src/ui/components/form/EForm.vue?vue&type=template&id=7d2ea516
|
|
6628
6628
|
|
|
6629
6629
|
;// 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/form/EForm.vue?vue&type=script&lang=js
|
|
6630
6630
|
|
|
@@ -6638,6 +6638,16 @@ function EFormvue_type_template_id_09465655_render(_ctx, _cache, $props, $setup,
|
|
|
6638
6638
|
isFormValid: true
|
|
6639
6639
|
};
|
|
6640
6640
|
},
|
|
6641
|
+
props: {
|
|
6642
|
+
/**
|
|
6643
|
+
* Bandera que permite el mostrar un mensaje de alerta cuando un campo mandatorio del formulario no ha sido completado.
|
|
6644
|
+
*/
|
|
6645
|
+
showValidationMessage: {
|
|
6646
|
+
type: Boolean,
|
|
6647
|
+
default: false,
|
|
6648
|
+
description: 'Bandera que permite el mostrar un mensaje de alerta cuando un campo mandatorio del formulario no ha sido completado.'
|
|
6649
|
+
}
|
|
6650
|
+
},
|
|
6641
6651
|
provide() {
|
|
6642
6652
|
// Proporciona funciones para registrar y anular el registro de componentes de formulario.
|
|
6643
6653
|
const register = element => {
|
|
@@ -6675,6 +6685,8 @@ function EFormvue_type_template_id_09465655_render(_ctx, _cache, $props, $setup,
|
|
|
6675
6685
|
* @type {boolean} - Indica si el formulario es válido.
|
|
6676
6686
|
*/
|
|
6677
6687
|
this.$emit('submit', this.isFormValid);
|
|
6688
|
+
} else if (this.showValidationMessage) {
|
|
6689
|
+
this.$showMessage('error', 'Es necesario ingresar todos los campos mandatorios');
|
|
6678
6690
|
}
|
|
6679
6691
|
},
|
|
6680
6692
|
// Maneja el reinicio del formulario, eliminando errores de los campos del formulario.
|
|
@@ -6717,7 +6729,7 @@ if (typeof (EFormvue_type_custom_index_0_blockType_docs_lang_md_default()) === '
|
|
|
6717
6729
|
|
|
6718
6730
|
|
|
6719
6731
|
;
|
|
6720
|
-
const EForm_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EFormvue_type_script_lang_js, [['render',
|
|
6732
|
+
const EForm_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EFormvue_type_script_lang_js, [['render',EFormvue_type_template_id_7d2ea516_render]])
|
|
6721
6733
|
|
|
6722
6734
|
/* harmony default export */ var EForm = (EForm_exports_);
|
|
6723
6735
|
;// 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/modal/EModal.vue?vue&type=template&id=79530638
|
|
@@ -25498,27 +25510,27 @@ if (typeof (ECalendarvue_type_custom_index_0_blockType_docs_lang_md_default()) =
|
|
|
25498
25510
|
const ECalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECalendarvue_type_script_lang_js, [['render',ECalendarvue_type_template_id_1154f102_render]])
|
|
25499
25511
|
|
|
25500
25512
|
/* harmony default export */ var ECalendar = (ECalendar_exports_);
|
|
25501
|
-
;// 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/input/EInput.vue?vue&type=template&id=
|
|
25513
|
+
;// 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/input/EInput.vue?vue&type=template&id=02fbc58e
|
|
25502
25514
|
|
|
25503
|
-
const
|
|
25515
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_1 = {
|
|
25504
25516
|
class: "e-input__mainContainer"
|
|
25505
25517
|
};
|
|
25506
|
-
const
|
|
25507
|
-
const
|
|
25518
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_2 = ["for"];
|
|
25519
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_3 = {
|
|
25508
25520
|
key: 0
|
|
25509
25521
|
};
|
|
25510
|
-
const
|
|
25522
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25511
25523
|
stroke: "currentColor",
|
|
25512
25524
|
"stroke-linecap": "round",
|
|
25513
25525
|
"stroke-linejoin": "round",
|
|
25514
25526
|
"stroke-width": "2",
|
|
25515
25527
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
25516
25528
|
}, null, -1);
|
|
25517
|
-
const
|
|
25518
|
-
const
|
|
25529
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_5 = [EInputvue_type_template_id_02fbc58e_hoisted_4];
|
|
25530
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_6 = {
|
|
25519
25531
|
key: 1
|
|
25520
25532
|
};
|
|
25521
|
-
const
|
|
25533
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_7 = {
|
|
25522
25534
|
key: 0,
|
|
25523
25535
|
stroke: "currentColor",
|
|
25524
25536
|
"stroke-linecap": "round",
|
|
@@ -25526,30 +25538,30 @@ const EInputvue_type_template_id_77aecf38_hoisted_7 = {
|
|
|
25526
25538
|
"stroke-width": "2",
|
|
25527
25539
|
d: "M1.933 10.909A4.357 4.357 0 0 1 1 9c0-1 4-6 9-6m7.6 3.8A5.068 5.068 0 0 1 19 9c0 1-3 6-9 6-.314 0-.62-.014-.918-.04M2 17 18 1m-5 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
25528
25540
|
};
|
|
25529
|
-
const
|
|
25541
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_8 = {
|
|
25530
25542
|
key: 1,
|
|
25531
25543
|
stroke: "currentColor",
|
|
25532
25544
|
"stroke-linecap": "round",
|
|
25533
25545
|
"stroke-linejoin": "round",
|
|
25534
25546
|
"stroke-width": "2"
|
|
25535
25547
|
};
|
|
25536
|
-
const
|
|
25548
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25537
25549
|
d: "M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
25538
25550
|
}, null, -1);
|
|
25539
|
-
const
|
|
25551
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_10 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25540
25552
|
d: "M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"
|
|
25541
25553
|
}, null, -1);
|
|
25542
|
-
const
|
|
25543
|
-
const
|
|
25554
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_11 = [EInputvue_type_template_id_02fbc58e_hoisted_9, EInputvue_type_template_id_02fbc58e_hoisted_10];
|
|
25555
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_12 = {
|
|
25544
25556
|
key: 0,
|
|
25545
25557
|
class: "e-input--error-message"
|
|
25546
25558
|
};
|
|
25547
|
-
const
|
|
25559
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_13 = {
|
|
25548
25560
|
key: 1,
|
|
25549
25561
|
class: "e-input--error-message"
|
|
25550
25562
|
};
|
|
25551
|
-
function
|
|
25552
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div",
|
|
25563
|
+
function EInputvue_type_template_id_02fbc58e_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25564
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EInputvue_type_template_id_02fbc58e_hoisted_1, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveDynamicComponent)($props.textarea ? 'textarea' : 'input'), {
|
|
25553
25565
|
placeholder: " ",
|
|
25554
25566
|
type: $data.inputType,
|
|
25555
25567
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.inputClass),
|
|
@@ -25567,7 +25579,7 @@ function EInputvue_type_template_id_77aecf38_render(_ctx, _cache, $props, $setup
|
|
|
25567
25579
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelClass)
|
|
25568
25580
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25569
25581
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.classBoxLabel)
|
|
25570
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.inputLabel), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span",
|
|
25582
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($options.inputLabel), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("span", EInputvue_type_template_id_02fbc58e_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_02fbc58e_hoisted_2), !!$props.modelValue && !$props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
25571
25583
|
key: 0,
|
|
25572
25584
|
onClick: _cache[0] || (_cache[0] = (...args) => $options.clean && $options.clean(...args)),
|
|
25573
25585
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.closedIconContainer)
|
|
@@ -25580,25 +25592,25 @@ function EInputvue_type_template_id_77aecf38_render(_ctx, _cache, $props, $setup
|
|
|
25580
25592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25581
25593
|
fill: "none",
|
|
25582
25594
|
viewBox: "0 0 15 15"
|
|
25583
|
-
},
|
|
25595
|
+
}, EInputvue_type_template_id_02fbc58e_hoisted_5, 2))], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), $props.type == 'password' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
25584
25596
|
key: 1,
|
|
25585
25597
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.showPassword && $options.showPassword(...args)),
|
|
25586
25598
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.iconPasswordContainerClass)
|
|
25587
25599
|
}, [_ctx.$slots.iconPassword ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "iconClose", {
|
|
25588
25600
|
key: 0
|
|
25589
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
25601
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EInputvue_type_template_id_02fbc58e_hoisted_6, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", {
|
|
25590
25602
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.slotIconPasswordClass),
|
|
25591
25603
|
"aria-hidden": "true",
|
|
25592
25604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25593
25605
|
fill: "none",
|
|
25594
25606
|
viewBox: "0 0 20 14"
|
|
25595
|
-
}, [$data.showPass ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("path",
|
|
25607
|
+
}, [$data.showPass ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("path", EInputvue_type_template_id_02fbc58e_hoisted_7)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("g", EInputvue_type_template_id_02fbc58e_hoisted_8, EInputvue_type_template_id_02fbc58e_hoisted_11))], 2))]))], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25596
25608
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.slotIconClass)
|
|
25597
25609
|
}, [_ctx.$slots.icon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon", {
|
|
25598
25610
|
key: 0
|
|
25599
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)]), !!$data.messageRestrictions ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
25611
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)]), !!$data.messageRestrictions ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EInputvue_type_template_id_02fbc58e_hoisted_12, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.messageRestrictions), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true), !!$data.messageRule ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", EInputvue_type_template_id_02fbc58e_hoisted_13, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)]);
|
|
25600
25612
|
}
|
|
25601
|
-
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=
|
|
25613
|
+
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=02fbc58e
|
|
25602
25614
|
|
|
25603
25615
|
;// 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/input/EInput.vue?vue&type=script&lang=js
|
|
25604
25616
|
|
|
@@ -25720,6 +25732,15 @@ const patterns = {
|
|
|
25720
25732
|
default: null,
|
|
25721
25733
|
description: 'Reemplaza el caractér "$" por defecto en la máscara "money". En caso de no asginar un valor a dicha prop no se colocará cractér alguno a la cantidad formateada.'
|
|
25722
25734
|
},
|
|
25735
|
+
/**
|
|
25736
|
+
* Espera el valor a limitar la cantidad de dígitos en la sección entera y decimal.
|
|
25737
|
+
* Ej:<br>decimalLimit="14,2" Donde 14 será la cantidad límite de dígitos en la sección entera y 2 será la cantidad límite de dígitos en la sección decimal.
|
|
25738
|
+
*/
|
|
25739
|
+
decimalLimit: {
|
|
25740
|
+
type: String,
|
|
25741
|
+
default: '14,2',
|
|
25742
|
+
description: 'Espera el valor a limitar la cantidad de dígitos en la sección entera y decimal.'
|
|
25743
|
+
},
|
|
25723
25744
|
/**
|
|
25724
25745
|
* Altura mínima para cuando el componente es de tipo textArea.
|
|
25725
25746
|
*/
|
|
@@ -26149,7 +26170,8 @@ const patterns = {
|
|
|
26149
26170
|
case this.modelModifiers?.money:
|
|
26150
26171
|
{
|
|
26151
26172
|
valueInput = valueInput.replace(/[^0-9.-]/g, '') // Elimina todos los caracteres que no sean números, puntos o guiones
|
|
26152
|
-
.replace(/(?!^)-|(?<=\..*)-/g, '')
|
|
26173
|
+
.replace(/(?!^)-|(?<=\..*)-/g, '') // Elimina cualquier guion que no sea el primero o que esté después del punto
|
|
26174
|
+
.replace(this.decimalLimit.split(',')[1] === '0' ? /\./g : '', ''); // Elimina el punto solo si no hay decimales
|
|
26153
26175
|
|
|
26154
26176
|
if (valueInput != '') {
|
|
26155
26177
|
if (valueInput === '.' || valueInput === '-.' || valueInput === `${this.charAmount}-.`) {
|
|
@@ -26164,6 +26186,12 @@ const patterns = {
|
|
|
26164
26186
|
cursorPosition = 2 + charLengt;
|
|
26165
26187
|
} else {
|
|
26166
26188
|
let decimalPart = valueInput.split('.')[1];
|
|
26189
|
+
let integerPartAux = valueInput.split('.')[0];
|
|
26190
|
+
const isNegative = valueInput.includes('-');
|
|
26191
|
+
const limitInteger = parseInt(this.decimalLimit.split(',')[0]) + (isNegative ? 1 : 0);
|
|
26192
|
+
if (integerPartAux.length > limitInteger) {
|
|
26193
|
+
valueInput = integerPartAux.substring(0, limitInteger);
|
|
26194
|
+
}
|
|
26167
26195
|
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26168
26196
|
char: this.charAmount,
|
|
26169
26197
|
// Incluye el símbolo charAmount si está definido
|
|
@@ -26173,7 +26201,8 @@ const patterns = {
|
|
|
26173
26201
|
});
|
|
26174
26202
|
let integerPart = valueInput.split('.')[0];
|
|
26175
26203
|
if (decimalPart != undefined) {
|
|
26176
|
-
|
|
26204
|
+
const decimalInteger = this.decimalLimit.split(',')[1];
|
|
26205
|
+
decimalPart = decimalPart.substring(0, decimalInteger);
|
|
26177
26206
|
valueInput = `${integerPart}.${decimalPart}`;
|
|
26178
26207
|
}
|
|
26179
26208
|
let newLength = valueInput.length;
|
|
@@ -26381,7 +26410,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26381
26410
|
|
|
26382
26411
|
|
|
26383
26412
|
;
|
|
26384
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26413
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_02fbc58e_render]])
|
|
26385
26414
|
|
|
26386
26415
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26387
26416
|
;// 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/menuCalendar/EMenuCalendar.vue?vue&type=template&id=c9fd0884&scoped=true
|
|
@@ -6629,20 +6629,20 @@ const EFileViewervue_type_script_setup_true_lang_js_hoisted_11 = ["src"];
|
|
|
6629
6629
|
const EFileViewer_exports_ = EFileViewervue_type_script_setup_true_lang_js;
|
|
6630
6630
|
|
|
6631
6631
|
/* harmony default export */ var EFileViewer = (EFileViewer_exports_);
|
|
6632
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/form/EForm.vue?vue&type=template&id=
|
|
6632
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/form/EForm.vue?vue&type=template&id=7d2ea516
|
|
6633
6633
|
|
|
6634
|
-
const
|
|
6634
|
+
const EFormvue_type_template_id_7d2ea516_hoisted_1 = {
|
|
6635
6635
|
class: "exos-w-full"
|
|
6636
6636
|
};
|
|
6637
|
-
function
|
|
6638
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
6637
|
+
function EFormvue_type_template_id_7d2ea516_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6638
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EFormvue_type_template_id_7d2ea516_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("form", {
|
|
6639
6639
|
ref: $options.formID,
|
|
6640
6640
|
class: "exos-w-full",
|
|
6641
6641
|
onSubmit: _cache[0] || (_cache[0] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)((...args) => $options.handleValidation && $options.handleValidation(...args), ["prevent", "stop"])),
|
|
6642
6642
|
onReset: _cache[1] || (_cache[1] = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withModifiers)((...args) => $options.handleReset && $options.handleReset(...args), ["prevent", "stop"]))
|
|
6643
6643
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "default")], 544)]);
|
|
6644
6644
|
}
|
|
6645
|
-
;// CONCATENATED MODULE: ./src/ui/components/form/EForm.vue?vue&type=template&id=
|
|
6645
|
+
;// CONCATENATED MODULE: ./src/ui/components/form/EForm.vue?vue&type=template&id=7d2ea516
|
|
6646
6646
|
|
|
6647
6647
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/form/EForm.vue?vue&type=script&lang=js
|
|
6648
6648
|
|
|
@@ -6656,6 +6656,16 @@ function EFormvue_type_template_id_09465655_render(_ctx, _cache, $props, $setup,
|
|
|
6656
6656
|
isFormValid: true
|
|
6657
6657
|
};
|
|
6658
6658
|
},
|
|
6659
|
+
props: {
|
|
6660
|
+
/**
|
|
6661
|
+
* Bandera que permite el mostrar un mensaje de alerta cuando un campo mandatorio del formulario no ha sido completado.
|
|
6662
|
+
*/
|
|
6663
|
+
showValidationMessage: {
|
|
6664
|
+
type: Boolean,
|
|
6665
|
+
default: false,
|
|
6666
|
+
description: 'Bandera que permite el mostrar un mensaje de alerta cuando un campo mandatorio del formulario no ha sido completado.'
|
|
6667
|
+
}
|
|
6668
|
+
},
|
|
6659
6669
|
provide() {
|
|
6660
6670
|
// Proporciona funciones para registrar y anular el registro de componentes de formulario.
|
|
6661
6671
|
const register = element => {
|
|
@@ -6693,6 +6703,8 @@ function EFormvue_type_template_id_09465655_render(_ctx, _cache, $props, $setup,
|
|
|
6693
6703
|
* @type {boolean} - Indica si el formulario es válido.
|
|
6694
6704
|
*/
|
|
6695
6705
|
this.$emit('submit', this.isFormValid);
|
|
6706
|
+
} else if (this.showValidationMessage) {
|
|
6707
|
+
this.$showMessage('error', 'Es necesario ingresar todos los campos mandatorios');
|
|
6696
6708
|
}
|
|
6697
6709
|
},
|
|
6698
6710
|
// Maneja el reinicio del formulario, eliminando errores de los campos del formulario.
|
|
@@ -6735,7 +6747,7 @@ if (typeof (EFormvue_type_custom_index_0_blockType_docs_lang_md_default()) === '
|
|
|
6735
6747
|
|
|
6736
6748
|
|
|
6737
6749
|
;
|
|
6738
|
-
const EForm_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EFormvue_type_script_lang_js, [['render',
|
|
6750
|
+
const EForm_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EFormvue_type_script_lang_js, [['render',EFormvue_type_template_id_7d2ea516_render]])
|
|
6739
6751
|
|
|
6740
6752
|
/* harmony default export */ var EForm = (EForm_exports_);
|
|
6741
6753
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/modal/EModal.vue?vue&type=template&id=79530638
|
|
@@ -25516,27 +25528,27 @@ if (typeof (ECalendarvue_type_custom_index_0_blockType_docs_lang_md_default()) =
|
|
|
25516
25528
|
const ECalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECalendarvue_type_script_lang_js, [['render',ECalendarvue_type_template_id_1154f102_render]])
|
|
25517
25529
|
|
|
25518
25530
|
/* harmony default export */ var ECalendar = (ECalendar_exports_);
|
|
25519
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/input/EInput.vue?vue&type=template&id=
|
|
25531
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/input/EInput.vue?vue&type=template&id=02fbc58e
|
|
25520
25532
|
|
|
25521
|
-
const
|
|
25533
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_1 = {
|
|
25522
25534
|
class: "e-input__mainContainer"
|
|
25523
25535
|
};
|
|
25524
|
-
const
|
|
25525
|
-
const
|
|
25536
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_2 = ["for"];
|
|
25537
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_3 = {
|
|
25526
25538
|
key: 0
|
|
25527
25539
|
};
|
|
25528
|
-
const
|
|
25540
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
25529
25541
|
stroke: "currentColor",
|
|
25530
25542
|
"stroke-linecap": "round",
|
|
25531
25543
|
"stroke-linejoin": "round",
|
|
25532
25544
|
"stroke-width": "2",
|
|
25533
25545
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
25534
25546
|
}, null, -1);
|
|
25535
|
-
const
|
|
25536
|
-
const
|
|
25547
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_5 = [EInputvue_type_template_id_02fbc58e_hoisted_4];
|
|
25548
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_6 = {
|
|
25537
25549
|
key: 1
|
|
25538
25550
|
};
|
|
25539
|
-
const
|
|
25551
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_7 = {
|
|
25540
25552
|
key: 0,
|
|
25541
25553
|
stroke: "currentColor",
|
|
25542
25554
|
"stroke-linecap": "round",
|
|
@@ -25544,30 +25556,30 @@ const EInputvue_type_template_id_77aecf38_hoisted_7 = {
|
|
|
25544
25556
|
"stroke-width": "2",
|
|
25545
25557
|
d: "M1.933 10.909A4.357 4.357 0 0 1 1 9c0-1 4-6 9-6m7.6 3.8A5.068 5.068 0 0 1 19 9c0 1-3 6-9 6-.314 0-.62-.014-.918-.04M2 17 18 1m-5 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"
|
|
25546
25558
|
};
|
|
25547
|
-
const
|
|
25559
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_8 = {
|
|
25548
25560
|
key: 1,
|
|
25549
25561
|
stroke: "currentColor",
|
|
25550
25562
|
"stroke-linecap": "round",
|
|
25551
25563
|
"stroke-linejoin": "round",
|
|
25552
25564
|
"stroke-width": "2"
|
|
25553
25565
|
};
|
|
25554
|
-
const
|
|
25566
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
25555
25567
|
d: "M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
25556
25568
|
}, null, -1);
|
|
25557
|
-
const
|
|
25569
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_10 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
25558
25570
|
d: "M10 13c4.97 0 9-2.686 9-6s-4.03-6-9-6-9 2.686-9 6 4.03 6 9 6Z"
|
|
25559
25571
|
}, null, -1);
|
|
25560
|
-
const
|
|
25561
|
-
const
|
|
25572
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_11 = [EInputvue_type_template_id_02fbc58e_hoisted_9, EInputvue_type_template_id_02fbc58e_hoisted_10];
|
|
25573
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_12 = {
|
|
25562
25574
|
key: 0,
|
|
25563
25575
|
class: "e-input--error-message"
|
|
25564
25576
|
};
|
|
25565
|
-
const
|
|
25577
|
+
const EInputvue_type_template_id_02fbc58e_hoisted_13 = {
|
|
25566
25578
|
key: 1,
|
|
25567
25579
|
class: "e-input--error-message"
|
|
25568
25580
|
};
|
|
25569
|
-
function
|
|
25570
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div",
|
|
25581
|
+
function EInputvue_type_template_id_02fbc58e_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
25582
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", null, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", EInputvue_type_template_id_02fbc58e_hoisted_1, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createBlock)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveDynamicComponent)($props.textarea ? 'textarea' : 'input'), {
|
|
25571
25583
|
placeholder: " ",
|
|
25572
25584
|
type: $data.inputType,
|
|
25573
25585
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.inputClass),
|
|
@@ -25585,7 +25597,7 @@ function EInputvue_type_template_id_77aecf38_render(_ctx, _cache, $props, $setup
|
|
|
25585
25597
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.labelClass)
|
|
25586
25598
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
25587
25599
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.classBoxLabel)
|
|
25588
|
-
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($options.inputLabel), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span",
|
|
25600
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("p", null, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($options.inputLabel), 1), $props.required ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("span", EInputvue_type_template_id_02fbc58e_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_02fbc58e_hoisted_2), !!$props.modelValue && !$props.disabled ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
25589
25601
|
key: 0,
|
|
25590
25602
|
onClick: _cache[0] || (_cache[0] = (...args) => $options.clean && $options.clean(...args)),
|
|
25591
25603
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.closedIconContainer)
|
|
@@ -25598,25 +25610,25 @@ function EInputvue_type_template_id_77aecf38_render(_ctx, _cache, $props, $setup
|
|
|
25598
25610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25599
25611
|
fill: "none",
|
|
25600
25612
|
viewBox: "0 0 15 15"
|
|
25601
|
-
},
|
|
25613
|
+
}, EInputvue_type_template_id_02fbc58e_hoisted_5, 2))], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), $props.type == 'password' ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
25602
25614
|
key: 1,
|
|
25603
25615
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.showPassword && $options.showPassword(...args)),
|
|
25604
25616
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.iconPasswordContainerClass)
|
|
25605
25617
|
}, [_ctx.$slots.iconPassword ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconClose", {
|
|
25606
25618
|
key: 0
|
|
25607
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
25619
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EInputvue_type_template_id_02fbc58e_hoisted_6, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", {
|
|
25608
25620
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.slotIconPasswordClass),
|
|
25609
25621
|
"aria-hidden": "true",
|
|
25610
25622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25611
25623
|
fill: "none",
|
|
25612
25624
|
viewBox: "0 0 20 14"
|
|
25613
|
-
}, [$data.showPass ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("path",
|
|
25625
|
+
}, [$data.showPass ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("path", EInputvue_type_template_id_02fbc58e_hoisted_7)) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("g", EInputvue_type_template_id_02fbc58e_hoisted_8, EInputvue_type_template_id_02fbc58e_hoisted_11))], 2))]))], 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
25614
25626
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.slotIconClass)
|
|
25615
25627
|
}, [_ctx.$slots.icon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon", {
|
|
25616
25628
|
key: 0
|
|
25617
|
-
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)]), !!$data.messageRestrictions ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
25629
|
+
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)]), !!$data.messageRestrictions ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EInputvue_type_template_id_02fbc58e_hoisted_12, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRestrictions), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true), !!$data.messageRule ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EInputvue_type_template_id_02fbc58e_hoisted_13, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)]);
|
|
25618
25630
|
}
|
|
25619
|
-
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=
|
|
25631
|
+
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=02fbc58e
|
|
25620
25632
|
|
|
25621
25633
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.use[1]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/ui/components/input/EInput.vue?vue&type=script&lang=js
|
|
25622
25634
|
|
|
@@ -25738,6 +25750,15 @@ const patterns = {
|
|
|
25738
25750
|
default: null,
|
|
25739
25751
|
description: 'Reemplaza el caractér "$" por defecto en la máscara "money". En caso de no asginar un valor a dicha prop no se colocará cractér alguno a la cantidad formateada.'
|
|
25740
25752
|
},
|
|
25753
|
+
/**
|
|
25754
|
+
* Espera el valor a limitar la cantidad de dígitos en la sección entera y decimal.
|
|
25755
|
+
* Ej:<br>decimalLimit="14,2" Donde 14 será la cantidad límite de dígitos en la sección entera y 2 será la cantidad límite de dígitos en la sección decimal.
|
|
25756
|
+
*/
|
|
25757
|
+
decimalLimit: {
|
|
25758
|
+
type: String,
|
|
25759
|
+
default: '14,2',
|
|
25760
|
+
description: 'Espera el valor a limitar la cantidad de dígitos en la sección entera y decimal.'
|
|
25761
|
+
},
|
|
25741
25762
|
/**
|
|
25742
25763
|
* Altura mínima para cuando el componente es de tipo textArea.
|
|
25743
25764
|
*/
|
|
@@ -26167,7 +26188,8 @@ const patterns = {
|
|
|
26167
26188
|
case this.modelModifiers?.money:
|
|
26168
26189
|
{
|
|
26169
26190
|
valueInput = valueInput.replace(/[^0-9.-]/g, '') // Elimina todos los caracteres que no sean números, puntos o guiones
|
|
26170
|
-
.replace(/(?!^)-|(?<=\..*)-/g, '')
|
|
26191
|
+
.replace(/(?!^)-|(?<=\..*)-/g, '') // Elimina cualquier guion que no sea el primero o que esté después del punto
|
|
26192
|
+
.replace(this.decimalLimit.split(',')[1] === '0' ? /\./g : '', ''); // Elimina el punto solo si no hay decimales
|
|
26171
26193
|
|
|
26172
26194
|
if (valueInput != '') {
|
|
26173
26195
|
if (valueInput === '.' || valueInput === '-.' || valueInput === `${this.charAmount}-.`) {
|
|
@@ -26182,6 +26204,12 @@ const patterns = {
|
|
|
26182
26204
|
cursorPosition = 2 + charLengt;
|
|
26183
26205
|
} else {
|
|
26184
26206
|
let decimalPart = valueInput.split('.')[1];
|
|
26207
|
+
let integerPartAux = valueInput.split('.')[0];
|
|
26208
|
+
const isNegative = valueInput.includes('-');
|
|
26209
|
+
const limitInteger = parseInt(this.decimalLimit.split(',')[0]) + (isNegative ? 1 : 0);
|
|
26210
|
+
if (integerPartAux.length > limitInteger) {
|
|
26211
|
+
valueInput = integerPartAux.substring(0, limitInteger);
|
|
26212
|
+
}
|
|
26185
26213
|
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26186
26214
|
char: this.charAmount,
|
|
26187
26215
|
// Incluye el símbolo charAmount si está definido
|
|
@@ -26191,7 +26219,8 @@ const patterns = {
|
|
|
26191
26219
|
});
|
|
26192
26220
|
let integerPart = valueInput.split('.')[0];
|
|
26193
26221
|
if (decimalPart != undefined) {
|
|
26194
|
-
|
|
26222
|
+
const decimalInteger = this.decimalLimit.split(',')[1];
|
|
26223
|
+
decimalPart = decimalPart.substring(0, decimalInteger);
|
|
26195
26224
|
valueInput = `${integerPart}.${decimalPart}`;
|
|
26196
26225
|
}
|
|
26197
26226
|
let newLength = valueInput.length;
|
|
@@ -26399,7 +26428,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26399
26428
|
|
|
26400
26429
|
|
|
26401
26430
|
;
|
|
26402
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26431
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_02fbc58e_render]])
|
|
26403
26432
|
|
|
26404
26433
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26405
26434
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-83.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/menuCalendar/EMenuCalendar.vue?vue&type=template&id=c9fd0884&scoped=true
|