@alexochihua/exos-library-components 2.13.0 → 2.13.2
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.
|
@@ -25498,27 +25498,27 @@ if (typeof (ECalendarvue_type_custom_index_0_blockType_docs_lang_md_default()) =
|
|
|
25498
25498
|
const ECalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECalendarvue_type_script_lang_js, [['render',ECalendarvue_type_template_id_1154f102_render]])
|
|
25499
25499
|
|
|
25500
25500
|
/* 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=
|
|
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=7690cbb8
|
|
25502
25502
|
|
|
25503
|
-
const
|
|
25503
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_1 = {
|
|
25504
25504
|
class: "e-input__mainContainer"
|
|
25505
25505
|
};
|
|
25506
|
-
const
|
|
25507
|
-
const
|
|
25506
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_2 = ["for"];
|
|
25507
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_3 = {
|
|
25508
25508
|
key: 0
|
|
25509
25509
|
};
|
|
25510
|
-
const
|
|
25510
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25511
25511
|
stroke: "currentColor",
|
|
25512
25512
|
"stroke-linecap": "round",
|
|
25513
25513
|
"stroke-linejoin": "round",
|
|
25514
25514
|
"stroke-width": "2",
|
|
25515
25515
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
25516
25516
|
}, null, -1);
|
|
25517
|
-
const
|
|
25518
|
-
const
|
|
25517
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_5 = [EInputvue_type_template_id_7690cbb8_hoisted_4];
|
|
25518
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_6 = {
|
|
25519
25519
|
key: 1
|
|
25520
25520
|
};
|
|
25521
|
-
const
|
|
25521
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_7 = {
|
|
25522
25522
|
key: 0,
|
|
25523
25523
|
stroke: "currentColor",
|
|
25524
25524
|
"stroke-linecap": "round",
|
|
@@ -25526,30 +25526,30 @@ const EInputvue_type_template_id_55c37709_hoisted_7 = {
|
|
|
25526
25526
|
"stroke-width": "2",
|
|
25527
25527
|
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
25528
|
};
|
|
25529
|
-
const
|
|
25529
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_8 = {
|
|
25530
25530
|
key: 1,
|
|
25531
25531
|
stroke: "currentColor",
|
|
25532
25532
|
"stroke-linecap": "round",
|
|
25533
25533
|
"stroke-linejoin": "round",
|
|
25534
25534
|
"stroke-width": "2"
|
|
25535
25535
|
};
|
|
25536
|
-
const
|
|
25536
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25537
25537
|
d: "M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
25538
25538
|
}, null, -1);
|
|
25539
|
-
const
|
|
25539
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_10 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("path", {
|
|
25540
25540
|
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
25541
|
}, null, -1);
|
|
25542
|
-
const
|
|
25543
|
-
const
|
|
25542
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_11 = [EInputvue_type_template_id_7690cbb8_hoisted_9, EInputvue_type_template_id_7690cbb8_hoisted_10];
|
|
25543
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_12 = {
|
|
25544
25544
|
key: 0,
|
|
25545
25545
|
class: "e-input--error-message"
|
|
25546
25546
|
};
|
|
25547
|
-
const
|
|
25547
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_13 = {
|
|
25548
25548
|
key: 1,
|
|
25549
25549
|
class: "e-input--error-message"
|
|
25550
25550
|
};
|
|
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",
|
|
25551
|
+
function EInputvue_type_template_id_7690cbb8_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
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", EInputvue_type_template_id_7690cbb8_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
25553
|
placeholder: " ",
|
|
25554
25554
|
type: $data.inputType,
|
|
25555
25555
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.inputClass),
|
|
@@ -25567,7 +25567,7 @@ function EInputvue_type_template_id_55c37709_render(_ctx, _cache, $props, $setup
|
|
|
25567
25567
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.labelClass)
|
|
25568
25568
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", {
|
|
25569
25569
|
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",
|
|
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", EInputvue_type_template_id_7690cbb8_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_7690cbb8_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
25571
|
key: 0,
|
|
25572
25572
|
onClick: _cache[0] || (_cache[0] = (...args) => $options.clean && $options.clean(...args)),
|
|
25573
25573
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.closedIconContainer)
|
|
@@ -25580,25 +25580,25 @@ function EInputvue_type_template_id_55c37709_render(_ctx, _cache, $props, $setup
|
|
|
25580
25580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25581
25581
|
fill: "none",
|
|
25582
25582
|
viewBox: "0 0 15 15"
|
|
25583
|
-
},
|
|
25583
|
+
}, EInputvue_type_template_id_7690cbb8_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
25584
|
key: 1,
|
|
25585
25585
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.showPassword && $options.showPassword(...args)),
|
|
25586
25586
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.iconPasswordContainerClass)
|
|
25587
25587
|
}, [_ctx.$slots.iconPassword ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "iconClose", {
|
|
25588
25588
|
key: 0
|
|
25589
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div",
|
|
25589
|
+
}) : ((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_7690cbb8_hoisted_6, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("svg", {
|
|
25590
25590
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.slotIconPasswordClass),
|
|
25591
25591
|
"aria-hidden": "true",
|
|
25592
25592
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25593
25593
|
fill: "none",
|
|
25594
25594
|
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",
|
|
25595
|
+
}, [$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_7690cbb8_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_7690cbb8_hoisted_8, EInputvue_type_template_id_7690cbb8_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
25596
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.slotIconClass)
|
|
25597
25597
|
}, [_ctx.$slots.icon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon", {
|
|
25598
25598
|
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",
|
|
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", EInputvue_type_template_id_7690cbb8_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_7690cbb8_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
25600
|
}
|
|
25601
|
-
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=
|
|
25601
|
+
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=7690cbb8
|
|
25602
25602
|
|
|
25603
25603
|
;// 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
25604
|
|
|
@@ -25713,12 +25713,12 @@ const patterns = {
|
|
|
25713
25713
|
description: 'Si es true, no permite colocar esacios en el valor que se ingresa al componente.'
|
|
25714
25714
|
},
|
|
25715
25715
|
/**
|
|
25716
|
-
* Reemplaza el caractér "$" por defecto en la máscara 'money'
|
|
25716
|
+
* 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.
|
|
25717
25717
|
*/
|
|
25718
25718
|
charAmount: {
|
|
25719
25719
|
type: String,
|
|
25720
|
-
default:
|
|
25721
|
-
description: 'Reemplaza el caractér "$" por defecto en la máscara "money".'
|
|
25720
|
+
default: null,
|
|
25721
|
+
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
25722
|
},
|
|
25723
25723
|
/**
|
|
25724
25724
|
* Altura mínima para cuando el componente es de tipo textArea.
|
|
@@ -26082,6 +26082,7 @@ const patterns = {
|
|
|
26082
26082
|
let valueInput = event.target.value;
|
|
26083
26083
|
let cursorPosition = event.target.selectionStart;
|
|
26084
26084
|
let previousLength = valueInput.length;
|
|
26085
|
+
const charLengt = this.charAmount ? this.charAmount.length : 0;
|
|
26085
26086
|
let emails = valueInput.replace(/ /g, '').split(this.charSplitEmail);
|
|
26086
26087
|
let allEmailCorrect = true;
|
|
26087
26088
|
let incorrectEmail = null;
|
|
@@ -26139,15 +26140,16 @@ const patterns = {
|
|
|
26139
26140
|
case this.modelModifiers?.money:
|
|
26140
26141
|
{
|
|
26141
26142
|
if (valueInput === '-' || /^[^\d]*-0\.00$/.test(valueInput)) {
|
|
26142
|
-
valueInput = this.charAmount ? `${this.charAmount}
|
|
26143
|
-
cursorPosition =
|
|
26143
|
+
valueInput = this.charAmount ? `${this.charAmount}-` : '-';
|
|
26144
|
+
cursorPosition = 2 + charLengt;
|
|
26144
26145
|
} else {
|
|
26145
|
-
valueInput = valueInput.replace(/[^0-9.-]/g, '').replace(/(?!^)-|(?<=\..*)-/g, '') // Elimina cualquier "-" que no sea el primero o que esté después del punto
|
|
26146
|
-
.replace(/\.(?=.*\.)/g, ''); // Elimina puntos adicionales
|
|
26146
|
+
valueInput = valueInput.replace(/[^0-9.-]/g, '').replace(/(?!^)-|(?<=\..*)-/g, ''); // Elimina cualquier "-" que no sea el primero o que esté después del punto
|
|
26147
26147
|
|
|
26148
26148
|
let decimalPart = valueInput.split('.')[1];
|
|
26149
26149
|
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26150
|
-
char: this.charAmount
|
|
26150
|
+
char: this.charAmount,
|
|
26151
|
+
noChar: !this.charAmount,
|
|
26152
|
+
withDecimals: false
|
|
26151
26153
|
});
|
|
26152
26154
|
let integerPart = valueInput.split('.')[0];
|
|
26153
26155
|
if (decimalPart != undefined) {
|
|
@@ -26157,7 +26159,7 @@ const patterns = {
|
|
|
26157
26159
|
// Ajuste de la posición del cursor
|
|
26158
26160
|
let newLength = valueInput.length;
|
|
26159
26161
|
if (previousLength == 1) {
|
|
26160
|
-
cursorPosition =
|
|
26162
|
+
cursorPosition = cursorPosition + charLengt;
|
|
26161
26163
|
} else {
|
|
26162
26164
|
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26163
26165
|
}
|
|
@@ -26215,10 +26217,12 @@ const patterns = {
|
|
|
26215
26217
|
*/
|
|
26216
26218
|
await this.$emit('update:modelValue', valueInput);
|
|
26217
26219
|
let position = cursorPosition;
|
|
26218
|
-
if (cursorPosition
|
|
26219
|
-
position =
|
|
26220
|
-
} else if (cursorPosition
|
|
26221
|
-
position = 1;
|
|
26220
|
+
if (cursorPosition <= 1 && valueInput.includes('-')) {
|
|
26221
|
+
position = 1 + charLengt;
|
|
26222
|
+
} else if (cursorPosition <= charLengt) {
|
|
26223
|
+
position = valueInput.includes('-') ? charLengt + 1 : charLengt;
|
|
26224
|
+
} else if (cursorPosition <= 0) {
|
|
26225
|
+
position = charLengt;
|
|
26222
26226
|
}
|
|
26223
26227
|
this.$nextTick(() => {
|
|
26224
26228
|
event.target.setSelectionRange(position, position);
|
|
@@ -26347,7 +26351,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26347
26351
|
|
|
26348
26352
|
|
|
26349
26353
|
;
|
|
26350
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26354
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_7690cbb8_render]])
|
|
26351
26355
|
|
|
26352
26356
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26353
26357
|
;// 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
|
|
@@ -25516,27 +25516,27 @@ if (typeof (ECalendarvue_type_custom_index_0_blockType_docs_lang_md_default()) =
|
|
|
25516
25516
|
const ECalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECalendarvue_type_script_lang_js, [['render',ECalendarvue_type_template_id_1154f102_render]])
|
|
25517
25517
|
|
|
25518
25518
|
/* 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=
|
|
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=7690cbb8
|
|
25520
25520
|
|
|
25521
|
-
const
|
|
25521
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_1 = {
|
|
25522
25522
|
class: "e-input__mainContainer"
|
|
25523
25523
|
};
|
|
25524
|
-
const
|
|
25525
|
-
const
|
|
25524
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_2 = ["for"];
|
|
25525
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_3 = {
|
|
25526
25526
|
key: 0
|
|
25527
25527
|
};
|
|
25528
|
-
const
|
|
25528
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
25529
25529
|
stroke: "currentColor",
|
|
25530
25530
|
"stroke-linecap": "round",
|
|
25531
25531
|
"stroke-linejoin": "round",
|
|
25532
25532
|
"stroke-width": "2",
|
|
25533
25533
|
d: "m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"
|
|
25534
25534
|
}, null, -1);
|
|
25535
|
-
const
|
|
25536
|
-
const
|
|
25535
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_5 = [EInputvue_type_template_id_7690cbb8_hoisted_4];
|
|
25536
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_6 = {
|
|
25537
25537
|
key: 1
|
|
25538
25538
|
};
|
|
25539
|
-
const
|
|
25539
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_7 = {
|
|
25540
25540
|
key: 0,
|
|
25541
25541
|
stroke: "currentColor",
|
|
25542
25542
|
"stroke-linecap": "round",
|
|
@@ -25544,30 +25544,30 @@ const EInputvue_type_template_id_55c37709_hoisted_7 = {
|
|
|
25544
25544
|
"stroke-width": "2",
|
|
25545
25545
|
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
25546
|
};
|
|
25547
|
-
const
|
|
25547
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_8 = {
|
|
25548
25548
|
key: 1,
|
|
25549
25549
|
stroke: "currentColor",
|
|
25550
25550
|
"stroke-linecap": "round",
|
|
25551
25551
|
"stroke-linejoin": "round",
|
|
25552
25552
|
"stroke-width": "2"
|
|
25553
25553
|
};
|
|
25554
|
-
const
|
|
25554
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_9 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
25555
25555
|
d: "M10 10a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"
|
|
25556
25556
|
}, null, -1);
|
|
25557
|
-
const
|
|
25557
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_10 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("path", {
|
|
25558
25558
|
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
25559
|
}, null, -1);
|
|
25560
|
-
const
|
|
25561
|
-
const
|
|
25560
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_11 = [EInputvue_type_template_id_7690cbb8_hoisted_9, EInputvue_type_template_id_7690cbb8_hoisted_10];
|
|
25561
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_12 = {
|
|
25562
25562
|
key: 0,
|
|
25563
25563
|
class: "e-input--error-message"
|
|
25564
25564
|
};
|
|
25565
|
-
const
|
|
25565
|
+
const EInputvue_type_template_id_7690cbb8_hoisted_13 = {
|
|
25566
25566
|
key: 1,
|
|
25567
25567
|
class: "e-input--error-message"
|
|
25568
25568
|
};
|
|
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",
|
|
25569
|
+
function EInputvue_type_template_id_7690cbb8_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
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", EInputvue_type_template_id_7690cbb8_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
25571
|
placeholder: " ",
|
|
25572
25572
|
type: $data.inputType,
|
|
25573
25573
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.inputClass),
|
|
@@ -25585,7 +25585,7 @@ function EInputvue_type_template_id_55c37709_render(_ctx, _cache, $props, $setup
|
|
|
25585
25585
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.labelClass)
|
|
25586
25586
|
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
25587
25587
|
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",
|
|
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", EInputvue_type_template_id_7690cbb8_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_7690cbb8_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
25589
|
key: 0,
|
|
25590
25590
|
onClick: _cache[0] || (_cache[0] = (...args) => $options.clean && $options.clean(...args)),
|
|
25591
25591
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.closedIconContainer)
|
|
@@ -25598,25 +25598,25 @@ function EInputvue_type_template_id_55c37709_render(_ctx, _cache, $props, $setup
|
|
|
25598
25598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25599
25599
|
fill: "none",
|
|
25600
25600
|
viewBox: "0 0 15 15"
|
|
25601
|
-
},
|
|
25601
|
+
}, EInputvue_type_template_id_7690cbb8_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
25602
|
key: 1,
|
|
25603
25603
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.showPassword && $options.showPassword(...args)),
|
|
25604
25604
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.iconPasswordContainerClass)
|
|
25605
25605
|
}, [_ctx.$slots.iconPassword ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "iconClose", {
|
|
25606
25606
|
key: 0
|
|
25607
|
-
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
25607
|
+
}) : ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", EInputvue_type_template_id_7690cbb8_hoisted_6, [((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("svg", {
|
|
25608
25608
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.slotIconPasswordClass),
|
|
25609
25609
|
"aria-hidden": "true",
|
|
25610
25610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25611
25611
|
fill: "none",
|
|
25612
25612
|
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",
|
|
25613
|
+
}, [$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_7690cbb8_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_7690cbb8_hoisted_8, EInputvue_type_template_id_7690cbb8_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
25614
|
class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.slotIconClass)
|
|
25615
25615
|
}, [_ctx.$slots.icon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon", {
|
|
25616
25616
|
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",
|
|
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", EInputvue_type_template_id_7690cbb8_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_7690cbb8_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
25618
|
}
|
|
25619
|
-
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=
|
|
25619
|
+
;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=7690cbb8
|
|
25620
25620
|
|
|
25621
25621
|
;// 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
25622
|
|
|
@@ -25731,12 +25731,12 @@ const patterns = {
|
|
|
25731
25731
|
description: 'Si es true, no permite colocar esacios en el valor que se ingresa al componente.'
|
|
25732
25732
|
},
|
|
25733
25733
|
/**
|
|
25734
|
-
* Reemplaza el caractér "$" por defecto en la máscara 'money'
|
|
25734
|
+
* 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.
|
|
25735
25735
|
*/
|
|
25736
25736
|
charAmount: {
|
|
25737
25737
|
type: String,
|
|
25738
|
-
default:
|
|
25739
|
-
description: 'Reemplaza el caractér "$" por defecto en la máscara "money".'
|
|
25738
|
+
default: null,
|
|
25739
|
+
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
25740
|
},
|
|
25741
25741
|
/**
|
|
25742
25742
|
* Altura mínima para cuando el componente es de tipo textArea.
|
|
@@ -26100,6 +26100,7 @@ const patterns = {
|
|
|
26100
26100
|
let valueInput = event.target.value;
|
|
26101
26101
|
let cursorPosition = event.target.selectionStart;
|
|
26102
26102
|
let previousLength = valueInput.length;
|
|
26103
|
+
const charLengt = this.charAmount ? this.charAmount.length : 0;
|
|
26103
26104
|
let emails = valueInput.replace(/ /g, '').split(this.charSplitEmail);
|
|
26104
26105
|
let allEmailCorrect = true;
|
|
26105
26106
|
let incorrectEmail = null;
|
|
@@ -26157,15 +26158,16 @@ const patterns = {
|
|
|
26157
26158
|
case this.modelModifiers?.money:
|
|
26158
26159
|
{
|
|
26159
26160
|
if (valueInput === '-' || /^[^\d]*-0\.00$/.test(valueInput)) {
|
|
26160
|
-
valueInput = this.charAmount ? `${this.charAmount}
|
|
26161
|
-
cursorPosition =
|
|
26161
|
+
valueInput = this.charAmount ? `${this.charAmount}-` : '-';
|
|
26162
|
+
cursorPosition = 2 + charLengt;
|
|
26162
26163
|
} else {
|
|
26163
|
-
valueInput = valueInput.replace(/[^0-9.-]/g, '').replace(/(?!^)-|(?<=\..*)-/g, '') // Elimina cualquier "-" que no sea el primero o que esté después del punto
|
|
26164
|
-
.replace(/\.(?=.*\.)/g, ''); // Elimina puntos adicionales
|
|
26164
|
+
valueInput = valueInput.replace(/[^0-9.-]/g, '').replace(/(?!^)-|(?<=\..*)-/g, ''); // Elimina cualquier "-" que no sea el primero o que esté después del punto
|
|
26165
26165
|
|
|
26166
26166
|
let decimalPart = valueInput.split('.')[1];
|
|
26167
26167
|
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26168
|
-
char: this.charAmount
|
|
26168
|
+
char: this.charAmount,
|
|
26169
|
+
noChar: !this.charAmount,
|
|
26170
|
+
withDecimals: false
|
|
26169
26171
|
});
|
|
26170
26172
|
let integerPart = valueInput.split('.')[0];
|
|
26171
26173
|
if (decimalPart != undefined) {
|
|
@@ -26175,7 +26177,7 @@ const patterns = {
|
|
|
26175
26177
|
// Ajuste de la posición del cursor
|
|
26176
26178
|
let newLength = valueInput.length;
|
|
26177
26179
|
if (previousLength == 1) {
|
|
26178
|
-
cursorPosition =
|
|
26180
|
+
cursorPosition = cursorPosition + charLengt;
|
|
26179
26181
|
} else {
|
|
26180
26182
|
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26181
26183
|
}
|
|
@@ -26233,10 +26235,12 @@ const patterns = {
|
|
|
26233
26235
|
*/
|
|
26234
26236
|
await this.$emit('update:modelValue', valueInput);
|
|
26235
26237
|
let position = cursorPosition;
|
|
26236
|
-
if (cursorPosition
|
|
26237
|
-
position =
|
|
26238
|
-
} else if (cursorPosition
|
|
26239
|
-
position = 1;
|
|
26238
|
+
if (cursorPosition <= 1 && valueInput.includes('-')) {
|
|
26239
|
+
position = 1 + charLengt;
|
|
26240
|
+
} else if (cursorPosition <= charLengt) {
|
|
26241
|
+
position = valueInput.includes('-') ? charLengt + 1 : charLengt;
|
|
26242
|
+
} else if (cursorPosition <= 0) {
|
|
26243
|
+
position = charLengt;
|
|
26240
26244
|
}
|
|
26241
26245
|
this.$nextTick(() => {
|
|
26242
26246
|
event.target.setSelectionRange(position, position);
|
|
@@ -26365,7 +26369,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26365
26369
|
|
|
26366
26370
|
|
|
26367
26371
|
;
|
|
26368
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26372
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_7690cbb8_render]])
|
|
26369
26373
|
|
|
26370
26374
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26371
26375
|
;// 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
|