@alexochihua/exos-library-components 2.13.2 → 2.13.3
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=1204a3f6
|
|
25502
25502
|
|
|
25503
|
-
const
|
|
25503
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_1 = {
|
|
25504
25504
|
class: "e-input__mainContainer"
|
|
25505
25505
|
};
|
|
25506
|
-
const
|
|
25507
|
-
const
|
|
25506
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_2 = ["for"];
|
|
25507
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_3 = {
|
|
25508
25508
|
key: 0
|
|
25509
25509
|
};
|
|
25510
|
-
const
|
|
25510
|
+
const EInputvue_type_template_id_1204a3f6_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_1204a3f6_hoisted_5 = [EInputvue_type_template_id_1204a3f6_hoisted_4];
|
|
25518
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_6 = {
|
|
25519
25519
|
key: 1
|
|
25520
25520
|
};
|
|
25521
|
-
const
|
|
25521
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_7 = {
|
|
25522
25522
|
key: 0,
|
|
25523
25523
|
stroke: "currentColor",
|
|
25524
25524
|
"stroke-linecap": "round",
|
|
@@ -25526,30 +25526,30 @@ const EInputvue_type_template_id_7690cbb8_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_1204a3f6_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_1204a3f6_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_1204a3f6_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_1204a3f6_hoisted_11 = [EInputvue_type_template_id_1204a3f6_hoisted_9, EInputvue_type_template_id_1204a3f6_hoisted_10];
|
|
25543
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_12 = {
|
|
25544
25544
|
key: 0,
|
|
25545
25545
|
class: "e-input--error-message"
|
|
25546
25546
|
};
|
|
25547
|
-
const
|
|
25547
|
+
const EInputvue_type_template_id_1204a3f6_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_1204a3f6_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_1204a3f6_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_7690cbb8_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_1204a3f6_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_1204a3f6_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_7690cbb8_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_1204a3f6_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_1204a3f6_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_1204a3f6_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_1204a3f6_hoisted_8, EInputvue_type_template_id_1204a3f6_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_1204a3f6_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_1204a3f6_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=1204a3f6
|
|
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
|
|
|
@@ -26139,29 +26139,35 @@ const patterns = {
|
|
|
26139
26139
|
break;
|
|
26140
26140
|
case this.modelModifiers?.money:
|
|
26141
26141
|
{
|
|
26142
|
-
|
|
26143
|
-
|
|
26144
|
-
|
|
26145
|
-
|
|
26146
|
-
|
|
26147
|
-
|
|
26148
|
-
let decimalPart = valueInput.split('.')[1];
|
|
26149
|
-
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26150
|
-
char: this.charAmount,
|
|
26151
|
-
noChar: !this.charAmount,
|
|
26152
|
-
withDecimals: false
|
|
26153
|
-
});
|
|
26154
|
-
let integerPart = valueInput.split('.')[0];
|
|
26155
|
-
if (decimalPart != undefined) {
|
|
26156
|
-
decimalPart = decimalPart.substring(0, 2);
|
|
26157
|
-
valueInput = `${integerPart}.${decimalPart}`;
|
|
26158
|
-
}
|
|
26159
|
-
// Ajuste de la posición del cursor
|
|
26160
|
-
let newLength = valueInput.length;
|
|
26161
|
-
if (previousLength == 1) {
|
|
26162
|
-
cursorPosition = cursorPosition + charLengt;
|
|
26142
|
+
const isPartialCharAmount = this.charAmount ? this.charAmount.split('').some((_, i) => valueInput === this.charAmount.slice(0, i + 1)) : false;
|
|
26143
|
+
if (valueInput !== '' && valueInput !== this.charAmount && valueInput !== `${this.charAmount}-` && !isPartialCharAmount) {
|
|
26144
|
+
// Si el input es solo '-' o coincide con un símbolo seguido de '-0.00'
|
|
26145
|
+
if (valueInput === '-' || /^[^\d]*-0\.00$/.test(valueInput)) {
|
|
26146
|
+
valueInput = this.charAmount ? `${this.charAmount}-` : '-';
|
|
26147
|
+
cursorPosition = 2 + charLengt;
|
|
26163
26148
|
} else {
|
|
26164
|
-
|
|
26149
|
+
valueInput = valueInput.replace(/[^0-9.-]/g, '') // Elimina todos los caracteres que no sean números, puntos o guiones
|
|
26150
|
+
.replace(/(?!^)-|(?<=\..*)-/g, ''); // Elimina cualquier guion que no sea el primero o que esté después del punto
|
|
26151
|
+
|
|
26152
|
+
let decimalPart = valueInput.split('.')[1];
|
|
26153
|
+
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26154
|
+
char: this.charAmount,
|
|
26155
|
+
// Incluye el símbolo charAmount si está definido
|
|
26156
|
+
noChar: !this.charAmount,
|
|
26157
|
+
// Si charAmount no está definido, no incluye ningún símbolo
|
|
26158
|
+
withDecimals: false // No incluye decimales en este paso
|
|
26159
|
+
});
|
|
26160
|
+
let integerPart = valueInput.split('.')[0];
|
|
26161
|
+
if (decimalPart != undefined) {
|
|
26162
|
+
decimalPart = decimalPart.substring(0, 2);
|
|
26163
|
+
valueInput = `${integerPart}.${decimalPart}`;
|
|
26164
|
+
}
|
|
26165
|
+
let newLength = valueInput.length;
|
|
26166
|
+
if (previousLength == 1) {
|
|
26167
|
+
cursorPosition = cursorPosition + charLengt;
|
|
26168
|
+
} else {
|
|
26169
|
+
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26170
|
+
}
|
|
26165
26171
|
}
|
|
26166
26172
|
}
|
|
26167
26173
|
break;
|
|
@@ -26351,7 +26357,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26351
26357
|
|
|
26352
26358
|
|
|
26353
26359
|
;
|
|
26354
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26360
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_1204a3f6_render]])
|
|
26355
26361
|
|
|
26356
26362
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26357
26363
|
;// 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=1204a3f6
|
|
25520
25520
|
|
|
25521
|
-
const
|
|
25521
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_1 = {
|
|
25522
25522
|
class: "e-input__mainContainer"
|
|
25523
25523
|
};
|
|
25524
|
-
const
|
|
25525
|
-
const
|
|
25524
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_2 = ["for"];
|
|
25525
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_3 = {
|
|
25526
25526
|
key: 0
|
|
25527
25527
|
};
|
|
25528
|
-
const
|
|
25528
|
+
const EInputvue_type_template_id_1204a3f6_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_1204a3f6_hoisted_5 = [EInputvue_type_template_id_1204a3f6_hoisted_4];
|
|
25536
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_6 = {
|
|
25537
25537
|
key: 1
|
|
25538
25538
|
};
|
|
25539
|
-
const
|
|
25539
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_7 = {
|
|
25540
25540
|
key: 0,
|
|
25541
25541
|
stroke: "currentColor",
|
|
25542
25542
|
"stroke-linecap": "round",
|
|
@@ -25544,30 +25544,30 @@ const EInputvue_type_template_id_7690cbb8_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_1204a3f6_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_1204a3f6_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_1204a3f6_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_1204a3f6_hoisted_11 = [EInputvue_type_template_id_1204a3f6_hoisted_9, EInputvue_type_template_id_1204a3f6_hoisted_10];
|
|
25561
|
+
const EInputvue_type_template_id_1204a3f6_hoisted_12 = {
|
|
25562
25562
|
key: 0,
|
|
25563
25563
|
class: "e-input--error-message"
|
|
25564
25564
|
};
|
|
25565
|
-
const
|
|
25565
|
+
const EInputvue_type_template_id_1204a3f6_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_1204a3f6_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_1204a3f6_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_7690cbb8_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_1204a3f6_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_1204a3f6_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_7690cbb8_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_1204a3f6_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_1204a3f6_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_1204a3f6_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_1204a3f6_hoisted_8, EInputvue_type_template_id_1204a3f6_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_1204a3f6_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_1204a3f6_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=1204a3f6
|
|
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
|
|
|
@@ -26157,29 +26157,35 @@ const patterns = {
|
|
|
26157
26157
|
break;
|
|
26158
26158
|
case this.modelModifiers?.money:
|
|
26159
26159
|
{
|
|
26160
|
-
|
|
26161
|
-
|
|
26162
|
-
|
|
26163
|
-
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
let decimalPart = valueInput.split('.')[1];
|
|
26167
|
-
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26168
|
-
char: this.charAmount,
|
|
26169
|
-
noChar: !this.charAmount,
|
|
26170
|
-
withDecimals: false
|
|
26171
|
-
});
|
|
26172
|
-
let integerPart = valueInput.split('.')[0];
|
|
26173
|
-
if (decimalPart != undefined) {
|
|
26174
|
-
decimalPart = decimalPart.substring(0, 2);
|
|
26175
|
-
valueInput = `${integerPart}.${decimalPart}`;
|
|
26176
|
-
}
|
|
26177
|
-
// Ajuste de la posición del cursor
|
|
26178
|
-
let newLength = valueInput.length;
|
|
26179
|
-
if (previousLength == 1) {
|
|
26180
|
-
cursorPosition = cursorPosition + charLengt;
|
|
26160
|
+
const isPartialCharAmount = this.charAmount ? this.charAmount.split('').some((_, i) => valueInput === this.charAmount.slice(0, i + 1)) : false;
|
|
26161
|
+
if (valueInput !== '' && valueInput !== this.charAmount && valueInput !== `${this.charAmount}-` && !isPartialCharAmount) {
|
|
26162
|
+
// Si el input es solo '-' o coincide con un símbolo seguido de '-0.00'
|
|
26163
|
+
if (valueInput === '-' || /^[^\d]*-0\.00$/.test(valueInput)) {
|
|
26164
|
+
valueInput = this.charAmount ? `${this.charAmount}-` : '-';
|
|
26165
|
+
cursorPosition = 2 + charLengt;
|
|
26181
26166
|
} else {
|
|
26182
|
-
|
|
26167
|
+
valueInput = valueInput.replace(/[^0-9.-]/g, '') // Elimina todos los caracteres que no sean números, puntos o guiones
|
|
26168
|
+
.replace(/(?!^)-|(?<=\..*)-/g, ''); // Elimina cualquier guion que no sea el primero o que esté después del punto
|
|
26169
|
+
|
|
26170
|
+
let decimalPart = valueInput.split('.')[1];
|
|
26171
|
+
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26172
|
+
char: this.charAmount,
|
|
26173
|
+
// Incluye el símbolo charAmount si está definido
|
|
26174
|
+
noChar: !this.charAmount,
|
|
26175
|
+
// Si charAmount no está definido, no incluye ningún símbolo
|
|
26176
|
+
withDecimals: false // No incluye decimales en este paso
|
|
26177
|
+
});
|
|
26178
|
+
let integerPart = valueInput.split('.')[0];
|
|
26179
|
+
if (decimalPart != undefined) {
|
|
26180
|
+
decimalPart = decimalPart.substring(0, 2);
|
|
26181
|
+
valueInput = `${integerPart}.${decimalPart}`;
|
|
26182
|
+
}
|
|
26183
|
+
let newLength = valueInput.length;
|
|
26184
|
+
if (previousLength == 1) {
|
|
26185
|
+
cursorPosition = cursorPosition + charLengt;
|
|
26186
|
+
} else {
|
|
26187
|
+
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26188
|
+
}
|
|
26183
26189
|
}
|
|
26184
26190
|
}
|
|
26185
26191
|
break;
|
|
@@ -26369,7 +26375,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26369
26375
|
|
|
26370
26376
|
|
|
26371
26377
|
;
|
|
26372
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26378
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_1204a3f6_render]])
|
|
26373
26379
|
|
|
26374
26380
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26375
26381
|
;// 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
|