@alexochihua/exos-library-components 2.13.4 → 2.13.5
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=59ddfb74
|
|
25502
25502
|
|
|
25503
|
-
const
|
|
25503
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_1 = {
|
|
25504
25504
|
class: "e-input__mainContainer"
|
|
25505
25505
|
};
|
|
25506
|
-
const
|
|
25507
|
-
const
|
|
25506
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_2 = ["for"];
|
|
25507
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_3 = {
|
|
25508
25508
|
key: 0
|
|
25509
25509
|
};
|
|
25510
|
-
const
|
|
25510
|
+
const EInputvue_type_template_id_59ddfb74_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_59ddfb74_hoisted_5 = [EInputvue_type_template_id_59ddfb74_hoisted_4];
|
|
25518
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_6 = {
|
|
25519
25519
|
key: 1
|
|
25520
25520
|
};
|
|
25521
|
-
const
|
|
25521
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_7 = {
|
|
25522
25522
|
key: 0,
|
|
25523
25523
|
stroke: "currentColor",
|
|
25524
25524
|
"stroke-linecap": "round",
|
|
@@ -25526,30 +25526,30 @@ const EInputvue_type_template_id_4b070b8a_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_59ddfb74_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_59ddfb74_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_59ddfb74_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_59ddfb74_hoisted_11 = [EInputvue_type_template_id_59ddfb74_hoisted_9, EInputvue_type_template_id_59ddfb74_hoisted_10];
|
|
25543
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_12 = {
|
|
25544
25544
|
key: 0,
|
|
25545
25545
|
class: "e-input--error-message"
|
|
25546
25546
|
};
|
|
25547
|
-
const
|
|
25547
|
+
const EInputvue_type_template_id_59ddfb74_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_59ddfb74_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_59ddfb74_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_4b070b8a_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_59ddfb74_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_59ddfb74_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_4b070b8a_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_59ddfb74_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_59ddfb74_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_59ddfb74_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_59ddfb74_hoisted_8, EInputvue_type_template_id_59ddfb74_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_59ddfb74_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_59ddfb74_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=59ddfb74
|
|
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
|
|
|
@@ -26065,6 +26065,15 @@ const patterns = {
|
|
|
26065
26065
|
this.register(this);
|
|
26066
26066
|
}
|
|
26067
26067
|
},
|
|
26068
|
+
mounted() {
|
|
26069
|
+
this.$nextTick(() => {
|
|
26070
|
+
if (this.modelModifiers?.money && this.modelValue) {
|
|
26071
|
+
this.clearAndEmitValue({
|
|
26072
|
+
target: this.$refs['e-input-' + this.$.uid]
|
|
26073
|
+
});
|
|
26074
|
+
}
|
|
26075
|
+
});
|
|
26076
|
+
},
|
|
26068
26077
|
// Desregistra este componente en EForm antes de destruirse
|
|
26069
26078
|
beforeUnmount() {
|
|
26070
26079
|
if (this.unregister) {
|
|
@@ -26139,36 +26148,34 @@ const patterns = {
|
|
|
26139
26148
|
break;
|
|
26140
26149
|
case this.modelModifiers?.money:
|
|
26141
26150
|
{
|
|
26142
|
-
|
|
26143
|
-
|
|
26151
|
+
valueInput = valueInput.replace(/[^0-9.-]/g, '') // Elimina todos los caracteres que no sean números, puntos o guiones
|
|
26152
|
+
.replace(/^\.|^-\./, '') // Elimina un punto o un punto precedido por un guion al inicio
|
|
26153
|
+
.replace(/(?!^)-|(?<=\..*)-/g, ''); // Elimina cualquier guion que no sea el primero o que esté después del punto
|
|
26154
|
+
|
|
26155
|
+
if (valueInput != '') {
|
|
26144
26156
|
// Si el input es solo '-' o coincide con un símbolo seguido de '-0.00'
|
|
26145
26157
|
if (valueInput === '-' || /^[^\d]*-0\.00$/.test(valueInput)) {
|
|
26146
26158
|
valueInput = this.charAmount ? `${this.charAmount}-` : '-';
|
|
26147
26159
|
cursorPosition = 2 + charLengt;
|
|
26148
26160
|
} else {
|
|
26149
|
-
|
|
26150
|
-
|
|
26151
|
-
|
|
26152
|
-
|
|
26153
|
-
|
|
26154
|
-
|
|
26155
|
-
|
|
26156
|
-
|
|
26157
|
-
|
|
26158
|
-
|
|
26159
|
-
|
|
26160
|
-
}
|
|
26161
|
-
|
|
26162
|
-
|
|
26163
|
-
|
|
26164
|
-
|
|
26165
|
-
|
|
26166
|
-
|
|
26167
|
-
if (previousLength == 1) {
|
|
26168
|
-
cursorPosition = cursorPosition + charLengt;
|
|
26169
|
-
} else {
|
|
26170
|
-
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26171
|
-
}
|
|
26161
|
+
let decimalPart = valueInput.split('.')[1];
|
|
26162
|
+
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26163
|
+
char: this.charAmount,
|
|
26164
|
+
// Incluye el símbolo charAmount si está definido
|
|
26165
|
+
noChar: !this.charAmount,
|
|
26166
|
+
// Si charAmount no está definido, no incluye ningún símbolo
|
|
26167
|
+
withDecimals: false // No incluye decimales en este paso
|
|
26168
|
+
});
|
|
26169
|
+
let integerPart = valueInput.split('.')[0];
|
|
26170
|
+
if (decimalPart != undefined) {
|
|
26171
|
+
decimalPart = decimalPart.substring(0, 2);
|
|
26172
|
+
valueInput = `${integerPart}.${decimalPart}`;
|
|
26173
|
+
}
|
|
26174
|
+
let newLength = valueInput.length;
|
|
26175
|
+
if (previousLength == 1) {
|
|
26176
|
+
cursorPosition = cursorPosition + charLengt;
|
|
26177
|
+
} else {
|
|
26178
|
+
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26172
26179
|
}
|
|
26173
26180
|
}
|
|
26174
26181
|
}
|
|
@@ -26339,6 +26346,15 @@ const patterns = {
|
|
|
26339
26346
|
watch: {
|
|
26340
26347
|
startHour(newVal) {
|
|
26341
26348
|
this.startHourIsChanged(newVal);
|
|
26349
|
+
},
|
|
26350
|
+
modelValue(newVal, oldVal) {
|
|
26351
|
+
this.$nextTick(() => {
|
|
26352
|
+
if (this.modelModifiers?.money && this.modelValue && oldVal === null) {
|
|
26353
|
+
this.clearAndEmitValue({
|
|
26354
|
+
target: this.$refs['e-input-' + this.$.uid]
|
|
26355
|
+
});
|
|
26356
|
+
}
|
|
26357
|
+
});
|
|
26342
26358
|
}
|
|
26343
26359
|
}
|
|
26344
26360
|
});
|
|
@@ -26359,7 +26375,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26359
26375
|
|
|
26360
26376
|
|
|
26361
26377
|
;
|
|
26362
|
-
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_59ddfb74_render]])
|
|
26363
26379
|
|
|
26364
26380
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26365
26381
|
;// 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=59ddfb74
|
|
25520
25520
|
|
|
25521
|
-
const
|
|
25521
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_1 = {
|
|
25522
25522
|
class: "e-input__mainContainer"
|
|
25523
25523
|
};
|
|
25524
|
-
const
|
|
25525
|
-
const
|
|
25524
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_2 = ["for"];
|
|
25525
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_3 = {
|
|
25526
25526
|
key: 0
|
|
25527
25527
|
};
|
|
25528
|
-
const
|
|
25528
|
+
const EInputvue_type_template_id_59ddfb74_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_59ddfb74_hoisted_5 = [EInputvue_type_template_id_59ddfb74_hoisted_4];
|
|
25536
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_6 = {
|
|
25537
25537
|
key: 1
|
|
25538
25538
|
};
|
|
25539
|
-
const
|
|
25539
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_7 = {
|
|
25540
25540
|
key: 0,
|
|
25541
25541
|
stroke: "currentColor",
|
|
25542
25542
|
"stroke-linecap": "round",
|
|
@@ -25544,30 +25544,30 @@ const EInputvue_type_template_id_4b070b8a_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_59ddfb74_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_59ddfb74_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_59ddfb74_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_59ddfb74_hoisted_11 = [EInputvue_type_template_id_59ddfb74_hoisted_9, EInputvue_type_template_id_59ddfb74_hoisted_10];
|
|
25561
|
+
const EInputvue_type_template_id_59ddfb74_hoisted_12 = {
|
|
25562
25562
|
key: 0,
|
|
25563
25563
|
class: "e-input--error-message"
|
|
25564
25564
|
};
|
|
25565
|
-
const
|
|
25565
|
+
const EInputvue_type_template_id_59ddfb74_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_59ddfb74_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_59ddfb74_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_4b070b8a_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_59ddfb74_hoisted_3, "*")) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_59ddfb74_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_4b070b8a_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_59ddfb74_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_59ddfb74_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_59ddfb74_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_59ddfb74_hoisted_8, EInputvue_type_template_id_59ddfb74_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_59ddfb74_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_59ddfb74_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=59ddfb74
|
|
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
|
|
|
@@ -26083,6 +26083,15 @@ const patterns = {
|
|
|
26083
26083
|
this.register(this);
|
|
26084
26084
|
}
|
|
26085
26085
|
},
|
|
26086
|
+
mounted() {
|
|
26087
|
+
this.$nextTick(() => {
|
|
26088
|
+
if (this.modelModifiers?.money && this.modelValue) {
|
|
26089
|
+
this.clearAndEmitValue({
|
|
26090
|
+
target: this.$refs['e-input-' + this.$.uid]
|
|
26091
|
+
});
|
|
26092
|
+
}
|
|
26093
|
+
});
|
|
26094
|
+
},
|
|
26086
26095
|
// Desregistra este componente en EForm antes de destruirse
|
|
26087
26096
|
beforeUnmount() {
|
|
26088
26097
|
if (this.unregister) {
|
|
@@ -26157,36 +26166,34 @@ const patterns = {
|
|
|
26157
26166
|
break;
|
|
26158
26167
|
case this.modelModifiers?.money:
|
|
26159
26168
|
{
|
|
26160
|
-
|
|
26161
|
-
|
|
26169
|
+
valueInput = valueInput.replace(/[^0-9.-]/g, '') // Elimina todos los caracteres que no sean números, puntos o guiones
|
|
26170
|
+
.replace(/^\.|^-\./, '') // Elimina un punto o un punto precedido por un guion al inicio
|
|
26171
|
+
.replace(/(?!^)-|(?<=\..*)-/g, ''); // Elimina cualquier guion que no sea el primero o que esté después del punto
|
|
26172
|
+
|
|
26173
|
+
if (valueInput != '') {
|
|
26162
26174
|
// Si el input es solo '-' o coincide con un símbolo seguido de '-0.00'
|
|
26163
26175
|
if (valueInput === '-' || /^[^\d]*-0\.00$/.test(valueInput)) {
|
|
26164
26176
|
valueInput = this.charAmount ? `${this.charAmount}-` : '-';
|
|
26165
26177
|
cursorPosition = 2 + charLengt;
|
|
26166
26178
|
} else {
|
|
26167
|
-
|
|
26168
|
-
|
|
26169
|
-
|
|
26170
|
-
|
|
26171
|
-
|
|
26172
|
-
|
|
26173
|
-
|
|
26174
|
-
|
|
26175
|
-
|
|
26176
|
-
|
|
26177
|
-
|
|
26178
|
-
}
|
|
26179
|
-
|
|
26180
|
-
|
|
26181
|
-
|
|
26182
|
-
|
|
26183
|
-
|
|
26184
|
-
|
|
26185
|
-
if (previousLength == 1) {
|
|
26186
|
-
cursorPosition = cursorPosition + charLengt;
|
|
26187
|
-
} else {
|
|
26188
|
-
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26189
|
-
}
|
|
26179
|
+
let decimalPart = valueInput.split('.')[1];
|
|
26180
|
+
valueInput = this.$filters['formatAmount'](valueInput, {
|
|
26181
|
+
char: this.charAmount,
|
|
26182
|
+
// Incluye el símbolo charAmount si está definido
|
|
26183
|
+
noChar: !this.charAmount,
|
|
26184
|
+
// Si charAmount no está definido, no incluye ningún símbolo
|
|
26185
|
+
withDecimals: false // No incluye decimales en este paso
|
|
26186
|
+
});
|
|
26187
|
+
let integerPart = valueInput.split('.')[0];
|
|
26188
|
+
if (decimalPart != undefined) {
|
|
26189
|
+
decimalPart = decimalPart.substring(0, 2);
|
|
26190
|
+
valueInput = `${integerPart}.${decimalPart}`;
|
|
26191
|
+
}
|
|
26192
|
+
let newLength = valueInput.length;
|
|
26193
|
+
if (previousLength == 1) {
|
|
26194
|
+
cursorPosition = cursorPosition + charLengt;
|
|
26195
|
+
} else {
|
|
26196
|
+
cursorPosition = newLength - (previousLength - cursorPosition);
|
|
26190
26197
|
}
|
|
26191
26198
|
}
|
|
26192
26199
|
}
|
|
@@ -26357,6 +26364,15 @@ const patterns = {
|
|
|
26357
26364
|
watch: {
|
|
26358
26365
|
startHour(newVal) {
|
|
26359
26366
|
this.startHourIsChanged(newVal);
|
|
26367
|
+
},
|
|
26368
|
+
modelValue(newVal, oldVal) {
|
|
26369
|
+
this.$nextTick(() => {
|
|
26370
|
+
if (this.modelModifiers?.money && this.modelValue && oldVal === null) {
|
|
26371
|
+
this.clearAndEmitValue({
|
|
26372
|
+
target: this.$refs['e-input-' + this.$.uid]
|
|
26373
|
+
});
|
|
26374
|
+
}
|
|
26375
|
+
});
|
|
26360
26376
|
}
|
|
26361
26377
|
}
|
|
26362
26378
|
});
|
|
@@ -26377,7 +26393,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
|
|
|
26377
26393
|
|
|
26378
26394
|
|
|
26379
26395
|
;
|
|
26380
|
-
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',
|
|
26396
|
+
const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_59ddfb74_render]])
|
|
26381
26397
|
|
|
26382
26398
|
/* harmony default export */ var EInput = (EInput_exports_);
|
|
26383
26399
|
;// 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
|