@alexochihua/exos-library-components 2.23.1 → 2.23.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.
@@ -26514,25 +26514,25 @@ if (typeof (ECalendarvue_type_custom_index_0_blockType_docs_lang_md_default()) =
26514
26514
  const ECalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECalendarvue_type_script_lang_js, [['render',ECalendarvue_type_template_id_083b591e_render]])
26515
26515
 
26516
26516
  /* harmony default export */ var ECalendar = (ECalendar_exports_);
26517
- ;// 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=14ec48df
26517
+ ;// 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=133fe05e
26518
26518
 
26519
- const EInputvue_type_template_id_14ec48df_hoisted_1 = {
26519
+ const EInputvue_type_template_id_133fe05e_hoisted_1 = {
26520
26520
  class: "e-input__input__container"
26521
26521
  };
26522
- const EInputvue_type_template_id_14ec48df_hoisted_2 = ["for"];
26523
- const EInputvue_type_template_id_14ec48df_hoisted_3 = {
26522
+ const EInputvue_type_template_id_133fe05e_hoisted_2 = ["for"];
26523
+ const EInputvue_type_template_id_133fe05e_hoisted_3 = {
26524
26524
  key: 0,
26525
26525
  class: "e-input__messageContainer--error"
26526
26526
  };
26527
- const EInputvue_type_template_id_14ec48df_hoisted_4 = {
26527
+ const EInputvue_type_template_id_133fe05e_hoisted_4 = {
26528
26528
  key: 1,
26529
26529
  class: "e-input__messageContainer--error"
26530
26530
  };
26531
- function EInputvue_type_template_id_14ec48df_render(_ctx, _cache, $props, $setup, $data, $options) {
26531
+ function EInputvue_type_template_id_133fe05e_render(_ctx, _cache, $props, $setup, $data, $options) {
26532
26532
  const _component_e_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("e-icon");
26533
26533
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
26534
26534
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.mainContainer)
26535
- }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EInputvue_type_template_id_14ec48df_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'), {
26535
+ }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementVNode)("div", EInputvue_type_template_id_133fe05e_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'), {
26536
26536
  "data-test": "input-cy",
26537
26537
  placeholder: " ",
26538
26538
  type: $data.inputType,
@@ -26555,7 +26555,7 @@ function EInputvue_type_template_id_14ec48df_render(_ctx, _cache, $props, $setup
26555
26555
  }, [(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", {
26556
26556
  key: 0,
26557
26557
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.requiredIcon)
26558
- }, "*", 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_14ec48df_hoisted_2), !!$props.modelValue && !$props.disabled && $props.showClean ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
26558
+ }, "*", 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_133fe05e_hoisted_2), !!$props.modelValue && !$props.disabled && $props.showClean ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
26559
26559
  key: 0,
26560
26560
  onClick: _cache[1] || (_cache[1] = (...args) => $options.clean && $options.clean(...args)),
26561
26561
  "data-test": "clean-icon",
@@ -26574,9 +26574,9 @@ function EInputvue_type_template_id_14ec48df_render(_ctx, _cache, $props, $setup
26574
26574
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.normalizeClass)($options.slotIconClass)
26575
26575
  }, [_ctx.$slots.icon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.renderSlot)(_ctx.$slots, "icon", {
26576
26576
  key: 0
26577
- }) : (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_14ec48df_hoisted_3, (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_14ec48df_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
26577
+ }) : (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_133fe05e_hoisted_3, (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_133fe05e_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createCommentVNode)("", true)], 2);
26578
26578
  }
26579
- ;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=14ec48df
26579
+ ;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=133fe05e
26580
26580
 
26581
26581
  ;// 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
26582
26582
 
@@ -26915,6 +26915,75 @@ const patterns = {
26915
26915
  type: Boolean,
26916
26916
  default: true,
26917
26917
  description: 'Bandera para saber si la hora final puede ser igual a la hora inicial'
26918
+ },
26919
+ /**
26920
+ * Mensaje para campo requerido. Usa %label% como placeholder para el nombre del campo.
26921
+ */
26922
+ requiredMessage: {
26923
+ type: String,
26924
+ default: 'El campo %label% es requerido'
26925
+ },
26926
+ /**
26927
+ * Mensaje para validación de email. Usa %label% como placeholder para el nombre del campo.
26928
+ */
26929
+ emailMessage: {
26930
+ type: String,
26931
+ default: 'El campo %label% debe contener formato de correo'
26932
+ },
26933
+ /**
26934
+ * Mensaje para caracteres inválidos
26935
+ */
26936
+ invalidCharMessage: {
26937
+ type: String,
26938
+ default: 'El carácter no cumple con las reglas establecidas'
26939
+ },
26940
+ /**
26941
+ * Mensaje para formato decimal inválido
26942
+ */
26943
+ invalidDecimalMessage: {
26944
+ type: String,
26945
+ default: 'El formato decimal no es válido'
26946
+ },
26947
+ /**
26948
+ * Mensaje para rango de horas inválido
26949
+ */
26950
+ invalidTimeRangeMessage: {
26951
+ type: String,
26952
+ default: 'El rango de horas es incorrecto'
26953
+ },
26954
+ /**
26955
+ * Mensaje cuando la hora final debe ser mayor o igual
26956
+ */
26957
+ timeGreaterOrEqualMessage: {
26958
+ type: String,
26959
+ default: 'La hora final tiene que ser mayor o igual que la hora de inicio'
26960
+ },
26961
+ /**
26962
+ * Mensaje cuando la hora final debe ser mayor
26963
+ */
26964
+ timeGreaterThanMessage: {
26965
+ type: String,
26966
+ default: 'La hora final tiene que ser mayor a la hora de inicio'
26967
+ },
26968
+ /**
26969
+ * Mensajes para los diferentes patrones de validación
26970
+ */
26971
+ patternMessages: {
26972
+ type: Object,
26973
+ default: rawProps => ({
26974
+ decimal: 'El valor ingresado debe ser en formato decimal',
26975
+ integer: 'El valor ingresado debe ser en formato entero',
26976
+ alfa: 'El valor ingresado debe ser alfabético',
26977
+ alfaNum: 'El valor ingresado debe ser alfanumérico',
26978
+ alfaNumChar: 'El valor ingresado debe ser alfanumérico con caracteres especiales permitidos',
26979
+ alfaNumSpace: 'El valor ingresado debe contener solo letras, números y espacios',
26980
+ nomenclaturaDoc: 'La nomenclatura contiene caracteres inválidos',
26981
+ pathDocs: 'La ruta contiene caracteres inválidos',
26982
+ money: 'El valor ingresado debe ser en formato de cantidad monetaria',
26983
+ time: 'El campo debe contener el formato HH:MM:SS',
26984
+ timens: 'El campo debe contener el formato HH:MM',
26985
+ ...rawProps.patternMessages
26986
+ })
26918
26987
  }
26919
26988
  },
26920
26989
  inject: {
@@ -27052,10 +27121,10 @@ const patterns = {
27052
27121
  finalRules() {
27053
27122
  let rules = [...this.rules];
27054
27123
  if (this.required) {
27055
- rules.unshift(val => !!val?.toString() || `El campo ${this.label} es requerido`);
27124
+ rules.unshift(val => !!val?.toString() || this.requiredMessage.replace('%label%', this.label));
27056
27125
  }
27057
27126
  if (this.modelModifiers?.email) {
27058
- rules.push(val => patterns.email.test(val) || `El campo ${this.label} debe contener formato de correo`);
27127
+ rules.push(val => patterns.email.test(val) || this.emailMessage.replace('%label%', this.label));
27059
27128
  }
27060
27129
  return rules;
27061
27130
  },
@@ -27128,7 +27197,7 @@ const patterns = {
27128
27197
  case this.modelModifiers?.charExclude || !!this.regexValidChars?.regex:
27129
27198
  {
27130
27199
  const regexToApply = this.regexValidChars?.regex ?? /[^a-zA-ZáÁéÉíÍóÓúÚüÜ\s]/g;
27131
- const msgToShow = this.regexValidChars?.msg ?? 'El carácter no cumple con las reglas establecidas';
27200
+ const msgToShow = this.regexValidChars?.msg ?? this.invalidCharMessage;
27132
27201
  valueInput = valueInput.replace(regexToApply, '');
27133
27202
  const errorKey = regexToApply.test(event?.target?.value);
27134
27203
  if (!errorKey) {
@@ -27157,7 +27226,7 @@ const patterns = {
27157
27226
  {
27158
27227
  const formatted = this.formatToDecimal(event.target.value);
27159
27228
  if (!formatted) {
27160
- this.showRestrictions('El formato decimal no es válido');
27229
+ this.showRestrictions(this.invalidDecimalMessage);
27161
27230
  valueInput = ''; // o puedes mantener el valor original
27162
27231
  } else {
27163
27232
  valueInput = formatted;
@@ -27236,7 +27305,7 @@ const patterns = {
27236
27305
  this.validateTimeRange(startTime, enteredTime);
27237
27306
  }
27238
27307
  } else {
27239
- this.showRestrictions('El rango de horas es incorrecto');
27308
+ this.showRestrictions(this.invalidTimeRangeMessage);
27240
27309
  }
27241
27310
  break;
27242
27311
  }
@@ -27251,7 +27320,7 @@ const patterns = {
27251
27320
  if (isValid) {
27252
27321
  this.resetRestrictions();
27253
27322
  } else {
27254
- this.showRestrictions('El rango de horas es incorrecto');
27323
+ this.showRestrictions(this.invalidTimeRangeMessage);
27255
27324
  }
27256
27325
  break;
27257
27326
  }
@@ -27262,6 +27331,7 @@ const patterns = {
27262
27331
  return false;
27263
27332
  }
27264
27333
  valueInput = valueInput.replace(patterns[key].regex, '');
27334
+ patterns[key].msg = this.patternMessages[key];
27265
27335
  });
27266
27336
  break;
27267
27337
  }
@@ -27347,7 +27417,7 @@ const patterns = {
27347
27417
  validateTimeRange(startTime, enteredTime) {
27348
27418
  const isInvalid = this.greaterThanTime && enteredTime < startTime || !this.greaterThanTime && enteredTime <= startTime;
27349
27419
  if (isInvalid) {
27350
- const message = this.greaterThanTime ? 'La hora final tiene que ser mayor o igual que la hora de inicio' : 'La hora final tiene que ser mayor a la hora de inicio';
27420
+ const message = this.greaterThanTime ? this.timeGreaterThanMessage : this.timeGreaterOrEqualMessage;
27351
27421
  this.showRestrictions(message);
27352
27422
  } else {
27353
27423
  this.resetRestrictions();
@@ -27479,7 +27549,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
27479
27549
 
27480
27550
 
27481
27551
  ;
27482
- const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_14ec48df_render]])
27552
+ const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_133fe05e_render]])
27483
27553
 
27484
27554
  /* harmony default export */ var EInput = (EInput_exports_);
27485
27555
  ;// 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=792f1a6f&scoped=true
@@ -26532,25 +26532,25 @@ if (typeof (ECalendarvue_type_custom_index_0_blockType_docs_lang_md_default()) =
26532
26532
  const ECalendar_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(ECalendarvue_type_script_lang_js, [['render',ECalendarvue_type_template_id_083b591e_render]])
26533
26533
 
26534
26534
  /* harmony default export */ var ECalendar = (ECalendar_exports_);
26535
- ;// 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=14ec48df
26535
+ ;// 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=133fe05e
26536
26536
 
26537
- const EInputvue_type_template_id_14ec48df_hoisted_1 = {
26537
+ const EInputvue_type_template_id_133fe05e_hoisted_1 = {
26538
26538
  class: "e-input__input__container"
26539
26539
  };
26540
- const EInputvue_type_template_id_14ec48df_hoisted_2 = ["for"];
26541
- const EInputvue_type_template_id_14ec48df_hoisted_3 = {
26540
+ const EInputvue_type_template_id_133fe05e_hoisted_2 = ["for"];
26541
+ const EInputvue_type_template_id_133fe05e_hoisted_3 = {
26542
26542
  key: 0,
26543
26543
  class: "e-input__messageContainer--error"
26544
26544
  };
26545
- const EInputvue_type_template_id_14ec48df_hoisted_4 = {
26545
+ const EInputvue_type_template_id_133fe05e_hoisted_4 = {
26546
26546
  key: 1,
26547
26547
  class: "e-input__messageContainer--error"
26548
26548
  };
26549
- function EInputvue_type_template_id_14ec48df_render(_ctx, _cache, $props, $setup, $data, $options) {
26549
+ function EInputvue_type_template_id_133fe05e_render(_ctx, _cache, $props, $setup, $data, $options) {
26550
26550
  const _component_e_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("e-icon");
26551
26551
  return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
26552
26552
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.mainContainer)
26553
- }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", EInputvue_type_template_id_14ec48df_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'), {
26553
+ }, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", EInputvue_type_template_id_133fe05e_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'), {
26554
26554
  "data-test": "input-cy",
26555
26555
  placeholder: " ",
26556
26556
  type: $data.inputType,
@@ -26573,7 +26573,7 @@ function EInputvue_type_template_id_14ec48df_render(_ctx, _cache, $props, $setup
26573
26573
  }, [(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", {
26574
26574
  key: 0,
26575
26575
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.requiredIcon)
26576
- }, "*", 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_14ec48df_hoisted_2), !!$props.modelValue && !$props.disabled && $props.showClean ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
26576
+ }, "*", 2)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2)], 10, EInputvue_type_template_id_133fe05e_hoisted_2), !!$props.modelValue && !$props.disabled && $props.showClean ? ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
26577
26577
  key: 0,
26578
26578
  onClick: _cache[1] || (_cache[1] = (...args) => $options.clean && $options.clean(...args)),
26579
26579
  "data-test": "clean-icon",
@@ -26592,9 +26592,9 @@ function EInputvue_type_template_id_14ec48df_render(_ctx, _cache, $props, $setup
26592
26592
  class: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.normalizeClass)($options.slotIconClass)
26593
26593
  }, [_ctx.$slots.icon ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.renderSlot)(_ctx.$slots, "icon", {
26594
26594
  key: 0
26595
- }) : (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_14ec48df_hoisted_3, (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_14ec48df_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
26595
+ }) : (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_133fe05e_hoisted_3, (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_133fe05e_hoisted_4, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)($data.messageRule), 1)) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)("", true)], 2);
26596
26596
  }
26597
- ;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=14ec48df
26597
+ ;// CONCATENATED MODULE: ./src/ui/components/input/EInput.vue?vue&type=template&id=133fe05e
26598
26598
 
26599
26599
  ;// 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
26600
26600
 
@@ -26933,6 +26933,75 @@ const patterns = {
26933
26933
  type: Boolean,
26934
26934
  default: true,
26935
26935
  description: 'Bandera para saber si la hora final puede ser igual a la hora inicial'
26936
+ },
26937
+ /**
26938
+ * Mensaje para campo requerido. Usa %label% como placeholder para el nombre del campo.
26939
+ */
26940
+ requiredMessage: {
26941
+ type: String,
26942
+ default: 'El campo %label% es requerido'
26943
+ },
26944
+ /**
26945
+ * Mensaje para validación de email. Usa %label% como placeholder para el nombre del campo.
26946
+ */
26947
+ emailMessage: {
26948
+ type: String,
26949
+ default: 'El campo %label% debe contener formato de correo'
26950
+ },
26951
+ /**
26952
+ * Mensaje para caracteres inválidos
26953
+ */
26954
+ invalidCharMessage: {
26955
+ type: String,
26956
+ default: 'El carácter no cumple con las reglas establecidas'
26957
+ },
26958
+ /**
26959
+ * Mensaje para formato decimal inválido
26960
+ */
26961
+ invalidDecimalMessage: {
26962
+ type: String,
26963
+ default: 'El formato decimal no es válido'
26964
+ },
26965
+ /**
26966
+ * Mensaje para rango de horas inválido
26967
+ */
26968
+ invalidTimeRangeMessage: {
26969
+ type: String,
26970
+ default: 'El rango de horas es incorrecto'
26971
+ },
26972
+ /**
26973
+ * Mensaje cuando la hora final debe ser mayor o igual
26974
+ */
26975
+ timeGreaterOrEqualMessage: {
26976
+ type: String,
26977
+ default: 'La hora final tiene que ser mayor o igual que la hora de inicio'
26978
+ },
26979
+ /**
26980
+ * Mensaje cuando la hora final debe ser mayor
26981
+ */
26982
+ timeGreaterThanMessage: {
26983
+ type: String,
26984
+ default: 'La hora final tiene que ser mayor a la hora de inicio'
26985
+ },
26986
+ /**
26987
+ * Mensajes para los diferentes patrones de validación
26988
+ */
26989
+ patternMessages: {
26990
+ type: Object,
26991
+ default: rawProps => ({
26992
+ decimal: 'El valor ingresado debe ser en formato decimal',
26993
+ integer: 'El valor ingresado debe ser en formato entero',
26994
+ alfa: 'El valor ingresado debe ser alfabético',
26995
+ alfaNum: 'El valor ingresado debe ser alfanumérico',
26996
+ alfaNumChar: 'El valor ingresado debe ser alfanumérico con caracteres especiales permitidos',
26997
+ alfaNumSpace: 'El valor ingresado debe contener solo letras, números y espacios',
26998
+ nomenclaturaDoc: 'La nomenclatura contiene caracteres inválidos',
26999
+ pathDocs: 'La ruta contiene caracteres inválidos',
27000
+ money: 'El valor ingresado debe ser en formato de cantidad monetaria',
27001
+ time: 'El campo debe contener el formato HH:MM:SS',
27002
+ timens: 'El campo debe contener el formato HH:MM',
27003
+ ...rawProps.patternMessages
27004
+ })
26936
27005
  }
26937
27006
  },
26938
27007
  inject: {
@@ -27070,10 +27139,10 @@ const patterns = {
27070
27139
  finalRules() {
27071
27140
  let rules = [...this.rules];
27072
27141
  if (this.required) {
27073
- rules.unshift(val => !!val?.toString() || `El campo ${this.label} es requerido`);
27142
+ rules.unshift(val => !!val?.toString() || this.requiredMessage.replace('%label%', this.label));
27074
27143
  }
27075
27144
  if (this.modelModifiers?.email) {
27076
- rules.push(val => patterns.email.test(val) || `El campo ${this.label} debe contener formato de correo`);
27145
+ rules.push(val => patterns.email.test(val) || this.emailMessage.replace('%label%', this.label));
27077
27146
  }
27078
27147
  return rules;
27079
27148
  },
@@ -27146,7 +27215,7 @@ const patterns = {
27146
27215
  case this.modelModifiers?.charExclude || !!this.regexValidChars?.regex:
27147
27216
  {
27148
27217
  const regexToApply = this.regexValidChars?.regex ?? /[^a-zA-ZáÁéÉíÍóÓúÚüÜ\s]/g;
27149
- const msgToShow = this.regexValidChars?.msg ?? 'El carácter no cumple con las reglas establecidas';
27218
+ const msgToShow = this.regexValidChars?.msg ?? this.invalidCharMessage;
27150
27219
  valueInput = valueInput.replace(regexToApply, '');
27151
27220
  const errorKey = regexToApply.test(event?.target?.value);
27152
27221
  if (!errorKey) {
@@ -27175,7 +27244,7 @@ const patterns = {
27175
27244
  {
27176
27245
  const formatted = this.formatToDecimal(event.target.value);
27177
27246
  if (!formatted) {
27178
- this.showRestrictions('El formato decimal no es válido');
27247
+ this.showRestrictions(this.invalidDecimalMessage);
27179
27248
  valueInput = ''; // o puedes mantener el valor original
27180
27249
  } else {
27181
27250
  valueInput = formatted;
@@ -27254,7 +27323,7 @@ const patterns = {
27254
27323
  this.validateTimeRange(startTime, enteredTime);
27255
27324
  }
27256
27325
  } else {
27257
- this.showRestrictions('El rango de horas es incorrecto');
27326
+ this.showRestrictions(this.invalidTimeRangeMessage);
27258
27327
  }
27259
27328
  break;
27260
27329
  }
@@ -27269,7 +27338,7 @@ const patterns = {
27269
27338
  if (isValid) {
27270
27339
  this.resetRestrictions();
27271
27340
  } else {
27272
- this.showRestrictions('El rango de horas es incorrecto');
27341
+ this.showRestrictions(this.invalidTimeRangeMessage);
27273
27342
  }
27274
27343
  break;
27275
27344
  }
@@ -27280,6 +27349,7 @@ const patterns = {
27280
27349
  return false;
27281
27350
  }
27282
27351
  valueInput = valueInput.replace(patterns[key].regex, '');
27352
+ patterns[key].msg = this.patternMessages[key];
27283
27353
  });
27284
27354
  break;
27285
27355
  }
@@ -27365,7 +27435,7 @@ const patterns = {
27365
27435
  validateTimeRange(startTime, enteredTime) {
27366
27436
  const isInvalid = this.greaterThanTime && enteredTime < startTime || !this.greaterThanTime && enteredTime <= startTime;
27367
27437
  if (isInvalid) {
27368
- const message = this.greaterThanTime ? 'La hora final tiene que ser mayor o igual que la hora de inicio' : 'La hora final tiene que ser mayor a la hora de inicio';
27438
+ const message = this.greaterThanTime ? this.timeGreaterThanMessage : this.timeGreaterOrEqualMessage;
27369
27439
  this.showRestrictions(message);
27370
27440
  } else {
27371
27441
  this.resetRestrictions();
@@ -27497,7 +27567,7 @@ if (typeof (EInputvue_type_custom_index_0_blockType_docs_lang_md_default()) ===
27497
27567
 
27498
27568
 
27499
27569
  ;
27500
- const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_14ec48df_render]])
27570
+ const EInput_exports_ = /*#__PURE__*/(0,exportHelper/* default */.A)(EInputvue_type_script_lang_js, [['render',EInputvue_type_template_id_133fe05e_render]])
27501
27571
 
27502
27572
  /* harmony default export */ var EInput = (EInput_exports_);
27503
27573
  ;// 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=792f1a6f&scoped=true