@alexochihua/exos-library-components 2.25.2 → 2.25.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.
|
@@ -47497,6 +47497,14 @@ const _hoisted_17 = {
|
|
|
47497
47497
|
borderColor: {
|
|
47498
47498
|
type: String,
|
|
47499
47499
|
default: null
|
|
47500
|
+
},
|
|
47501
|
+
/**
|
|
47502
|
+
* Mensaje para campo requerido
|
|
47503
|
+
* @values 'El campo %label% es requerido' - mensaje personalizado
|
|
47504
|
+
*/
|
|
47505
|
+
requiredMessage: {
|
|
47506
|
+
type: String,
|
|
47507
|
+
default: 'El campo %label% es requerido'
|
|
47500
47508
|
}
|
|
47501
47509
|
},
|
|
47502
47510
|
emits: [
|
|
@@ -47697,7 +47705,7 @@ const _hoisted_17 = {
|
|
|
47697
47705
|
const finalRules = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.computed)(() => {
|
|
47698
47706
|
let rules = [...props.rules];
|
|
47699
47707
|
if (props.required) {
|
|
47700
|
-
rules.unshift(val => !!val ||
|
|
47708
|
+
rules.unshift(val => !!val || props.requiredMessage.replace('%label%', props.label));
|
|
47701
47709
|
}
|
|
47702
47710
|
return rules;
|
|
47703
47711
|
});
|
|
@@ -48096,6 +48104,18 @@ const _hoisted_17 = {
|
|
|
48096
48104
|
if (props.rules.length >= 1) validate();
|
|
48097
48105
|
});
|
|
48098
48106
|
|
|
48107
|
+
// Watchers
|
|
48108
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.requiredMessage, () => {
|
|
48109
|
+
if (isInValid.value) {
|
|
48110
|
+
validate();
|
|
48111
|
+
}
|
|
48112
|
+
});
|
|
48113
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.label, () => {
|
|
48114
|
+
if (isInValid.value) {
|
|
48115
|
+
validate();
|
|
48116
|
+
}
|
|
48117
|
+
});
|
|
48118
|
+
|
|
48099
48119
|
// Click outside handler
|
|
48100
48120
|
onClickOutside(popUpCalendar, () => {
|
|
48101
48121
|
showDatePicker.value = false;
|
|
@@ -49171,6 +49191,21 @@ const EInputvue_type_script_setup_true_lang_js_hoisted_4 = {
|
|
|
49171
49191
|
}
|
|
49172
49192
|
});
|
|
49173
49193
|
});
|
|
49194
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.requiredMessage, () => {
|
|
49195
|
+
if (hasValidationError.value) {
|
|
49196
|
+
validate();
|
|
49197
|
+
}
|
|
49198
|
+
});
|
|
49199
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.emailMessage, () => {
|
|
49200
|
+
if (hasValidationError.value) {
|
|
49201
|
+
validate();
|
|
49202
|
+
}
|
|
49203
|
+
});
|
|
49204
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.label, () => {
|
|
49205
|
+
if (hasValidationError.value) {
|
|
49206
|
+
validate();
|
|
49207
|
+
}
|
|
49208
|
+
});
|
|
49174
49209
|
return (_ctx, _cache) => {
|
|
49175
49210
|
const _component_e_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.resolveComponent)("e-icon");
|
|
49176
49211
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", {
|
|
@@ -49794,6 +49829,14 @@ const ESelectvue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
49794
49829
|
optionBgColor: {
|
|
49795
49830
|
type: String,
|
|
49796
49831
|
default: null
|
|
49832
|
+
},
|
|
49833
|
+
/**
|
|
49834
|
+
* Mensaje para campo requerido
|
|
49835
|
+
* @values 'El campo %label% es requerido' - mensaje personalizado
|
|
49836
|
+
*/
|
|
49837
|
+
requiredMessage: {
|
|
49838
|
+
type: String,
|
|
49839
|
+
default: 'El campo %label% es requerido'
|
|
49797
49840
|
}
|
|
49798
49841
|
},
|
|
49799
49842
|
emits: [
|
|
@@ -50132,7 +50175,7 @@ const ESelectvue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
50132
50175
|
const finalRules = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.computed)(() => {
|
|
50133
50176
|
let rules = [...props.rules];
|
|
50134
50177
|
if (props.required && typeof props.modelValue !== 'boolean' && props.options.length > 0) {
|
|
50135
|
-
rules.unshift(val => val !== null && val !== undefined && val !== '' ||
|
|
50178
|
+
rules.unshift(val => val !== null && val !== undefined && val !== '' || props.requiredMessage.replace('%label%', props.label));
|
|
50136
50179
|
}
|
|
50137
50180
|
return rules;
|
|
50138
50181
|
});
|
|
@@ -50605,6 +50648,18 @@ const ESelectvue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
50605
50648
|
calculateWidthLabelSelected(); // Calcula el ancho del label seleccionado.
|
|
50606
50649
|
});
|
|
50607
50650
|
|
|
50651
|
+
// Watchers
|
|
50652
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.requiredMessage, () => {
|
|
50653
|
+
if (messageRule.value) {
|
|
50654
|
+
validate();
|
|
50655
|
+
}
|
|
50656
|
+
});
|
|
50657
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.label, () => {
|
|
50658
|
+
if (messageRule.value) {
|
|
50659
|
+
validate();
|
|
50660
|
+
}
|
|
50661
|
+
});
|
|
50662
|
+
|
|
50608
50663
|
// Click outside handling
|
|
50609
50664
|
onClickOutside(mainSelectComponent, () => {
|
|
50610
50665
|
if (isSelectOpened.value) {
|
|
@@ -52823,6 +52878,14 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
52823
52878
|
notSupportedFormatsPreview: {
|
|
52824
52879
|
type: Array,
|
|
52825
52880
|
default: () => []
|
|
52881
|
+
},
|
|
52882
|
+
/**
|
|
52883
|
+
* Mensaje para campo requerido
|
|
52884
|
+
* @values 'El campo %label% es requerido' - mensaje personalizado
|
|
52885
|
+
*/
|
|
52886
|
+
requiredMessage: {
|
|
52887
|
+
type: String,
|
|
52888
|
+
default: 'El campo %label% es requerido'
|
|
52826
52889
|
}
|
|
52827
52890
|
},
|
|
52828
52891
|
emits: [
|
|
@@ -52897,7 +52960,7 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
52897
52960
|
if (props.required) {
|
|
52898
52961
|
filterRules.unshift(val => {
|
|
52899
52962
|
const isValid = val !== null && val !== undefined && (Array.isArray(val) ? val.length > 0 : val !== '');
|
|
52900
|
-
return isValid ||
|
|
52963
|
+
return isValid || props.requiredMessage.replace('%label%', props.label);
|
|
52901
52964
|
});
|
|
52902
52965
|
}
|
|
52903
52966
|
return filterRules;
|
|
@@ -53186,7 +53249,7 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
53186
53249
|
}
|
|
53187
53250
|
} else if (props.required) {
|
|
53188
53251
|
// Manejar el caso en que modelValue no es un array y es requerido
|
|
53189
|
-
setMessageError(
|
|
53252
|
+
setMessageError(props.requiredMessage.replace('%label%', props.label));
|
|
53190
53253
|
valid = false;
|
|
53191
53254
|
}
|
|
53192
53255
|
i++;
|
|
@@ -53380,6 +53443,18 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
53380
53443
|
handlePreloadFile(props.modelValue);
|
|
53381
53444
|
}
|
|
53382
53445
|
});
|
|
53446
|
+
|
|
53447
|
+
// Watchers
|
|
53448
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.requiredMessage, () => {
|
|
53449
|
+
if (messageError.value) {
|
|
53450
|
+
validate();
|
|
53451
|
+
}
|
|
53452
|
+
});
|
|
53453
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.label, () => {
|
|
53454
|
+
if (messageError.value) {
|
|
53455
|
+
validate();
|
|
53456
|
+
}
|
|
53457
|
+
});
|
|
53383
53458
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.onBeforeUnmount)(() => {
|
|
53384
53459
|
// Desregistra este componente en EForm antes de destruirse
|
|
53385
53460
|
if (unregister) {
|
|
@@ -47515,6 +47515,14 @@ const _hoisted_17 = {
|
|
|
47515
47515
|
borderColor: {
|
|
47516
47516
|
type: String,
|
|
47517
47517
|
default: null
|
|
47518
|
+
},
|
|
47519
|
+
/**
|
|
47520
|
+
* Mensaje para campo requerido
|
|
47521
|
+
* @values 'El campo %label% es requerido' - mensaje personalizado
|
|
47522
|
+
*/
|
|
47523
|
+
requiredMessage: {
|
|
47524
|
+
type: String,
|
|
47525
|
+
default: 'El campo %label% es requerido'
|
|
47518
47526
|
}
|
|
47519
47527
|
},
|
|
47520
47528
|
emits: [
|
|
@@ -47715,7 +47723,7 @@ const _hoisted_17 = {
|
|
|
47715
47723
|
const finalRules = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
47716
47724
|
let rules = [...props.rules];
|
|
47717
47725
|
if (props.required) {
|
|
47718
|
-
rules.unshift(val => !!val ||
|
|
47726
|
+
rules.unshift(val => !!val || props.requiredMessage.replace('%label%', props.label));
|
|
47719
47727
|
}
|
|
47720
47728
|
return rules;
|
|
47721
47729
|
});
|
|
@@ -48114,6 +48122,18 @@ const _hoisted_17 = {
|
|
|
48114
48122
|
if (props.rules.length >= 1) validate();
|
|
48115
48123
|
});
|
|
48116
48124
|
|
|
48125
|
+
// Watchers
|
|
48126
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.requiredMessage, () => {
|
|
48127
|
+
if (isInValid.value) {
|
|
48128
|
+
validate();
|
|
48129
|
+
}
|
|
48130
|
+
});
|
|
48131
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.label, () => {
|
|
48132
|
+
if (isInValid.value) {
|
|
48133
|
+
validate();
|
|
48134
|
+
}
|
|
48135
|
+
});
|
|
48136
|
+
|
|
48117
48137
|
// Click outside handler
|
|
48118
48138
|
onClickOutside(popUpCalendar, () => {
|
|
48119
48139
|
showDatePicker.value = false;
|
|
@@ -49189,6 +49209,21 @@ const EInputvue_type_script_setup_true_lang_js_hoisted_4 = {
|
|
|
49189
49209
|
}
|
|
49190
49210
|
});
|
|
49191
49211
|
});
|
|
49212
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.requiredMessage, () => {
|
|
49213
|
+
if (hasValidationError.value) {
|
|
49214
|
+
validate();
|
|
49215
|
+
}
|
|
49216
|
+
});
|
|
49217
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.emailMessage, () => {
|
|
49218
|
+
if (hasValidationError.value) {
|
|
49219
|
+
validate();
|
|
49220
|
+
}
|
|
49221
|
+
});
|
|
49222
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.label, () => {
|
|
49223
|
+
if (hasValidationError.value) {
|
|
49224
|
+
validate();
|
|
49225
|
+
}
|
|
49226
|
+
});
|
|
49192
49227
|
return (_ctx, _cache) => {
|
|
49193
49228
|
const _component_e_icon = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)("e-icon");
|
|
49194
49229
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", {
|
|
@@ -49812,6 +49847,14 @@ const ESelectvue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
49812
49847
|
optionBgColor: {
|
|
49813
49848
|
type: String,
|
|
49814
49849
|
default: null
|
|
49850
|
+
},
|
|
49851
|
+
/**
|
|
49852
|
+
* Mensaje para campo requerido
|
|
49853
|
+
* @values 'El campo %label% es requerido' - mensaje personalizado
|
|
49854
|
+
*/
|
|
49855
|
+
requiredMessage: {
|
|
49856
|
+
type: String,
|
|
49857
|
+
default: 'El campo %label% es requerido'
|
|
49815
49858
|
}
|
|
49816
49859
|
},
|
|
49817
49860
|
emits: [
|
|
@@ -50150,7 +50193,7 @@ const ESelectvue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
50150
50193
|
const finalRules = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
50151
50194
|
let rules = [...props.rules];
|
|
50152
50195
|
if (props.required && typeof props.modelValue !== 'boolean' && props.options.length > 0) {
|
|
50153
|
-
rules.unshift(val => val !== null && val !== undefined && val !== '' ||
|
|
50196
|
+
rules.unshift(val => val !== null && val !== undefined && val !== '' || props.requiredMessage.replace('%label%', props.label));
|
|
50154
50197
|
}
|
|
50155
50198
|
return rules;
|
|
50156
50199
|
});
|
|
@@ -50623,6 +50666,18 @@ const ESelectvue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
50623
50666
|
calculateWidthLabelSelected(); // Calcula el ancho del label seleccionado.
|
|
50624
50667
|
});
|
|
50625
50668
|
|
|
50669
|
+
// Watchers
|
|
50670
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.requiredMessage, () => {
|
|
50671
|
+
if (messageRule.value) {
|
|
50672
|
+
validate();
|
|
50673
|
+
}
|
|
50674
|
+
});
|
|
50675
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.label, () => {
|
|
50676
|
+
if (messageRule.value) {
|
|
50677
|
+
validate();
|
|
50678
|
+
}
|
|
50679
|
+
});
|
|
50680
|
+
|
|
50626
50681
|
// Click outside handling
|
|
50627
50682
|
onClickOutside(mainSelectComponent, () => {
|
|
50628
50683
|
if (isSelectOpened.value) {
|
|
@@ -52841,6 +52896,14 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
52841
52896
|
notSupportedFormatsPreview: {
|
|
52842
52897
|
type: Array,
|
|
52843
52898
|
default: () => []
|
|
52899
|
+
},
|
|
52900
|
+
/**
|
|
52901
|
+
* Mensaje para campo requerido
|
|
52902
|
+
* @values 'El campo %label% es requerido' - mensaje personalizado
|
|
52903
|
+
*/
|
|
52904
|
+
requiredMessage: {
|
|
52905
|
+
type: String,
|
|
52906
|
+
default: 'El campo %label% es requerido'
|
|
52844
52907
|
}
|
|
52845
52908
|
},
|
|
52846
52909
|
emits: [
|
|
@@ -52915,7 +52978,7 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
52915
52978
|
if (props.required) {
|
|
52916
52979
|
filterRules.unshift(val => {
|
|
52917
52980
|
const isValid = val !== null && val !== undefined && (Array.isArray(val) ? val.length > 0 : val !== '');
|
|
52918
|
-
return isValid ||
|
|
52981
|
+
return isValid || props.requiredMessage.replace('%label%', props.label);
|
|
52919
52982
|
});
|
|
52920
52983
|
}
|
|
52921
52984
|
return filterRules;
|
|
@@ -53204,7 +53267,7 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
53204
53267
|
}
|
|
53205
53268
|
} else if (props.required) {
|
|
53206
53269
|
// Manejar el caso en que modelValue no es un array y es requerido
|
|
53207
|
-
setMessageError(
|
|
53270
|
+
setMessageError(props.requiredMessage.replace('%label%', props.label));
|
|
53208
53271
|
valid = false;
|
|
53209
53272
|
}
|
|
53210
53273
|
i++;
|
|
@@ -53398,6 +53461,18 @@ const EFilePickervue_type_script_setup_true_lang_js_hoisted_11 = {
|
|
|
53398
53461
|
handlePreloadFile(props.modelValue);
|
|
53399
53462
|
}
|
|
53400
53463
|
});
|
|
53464
|
+
|
|
53465
|
+
// Watchers
|
|
53466
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.requiredMessage, () => {
|
|
53467
|
+
if (messageError.value) {
|
|
53468
|
+
validate();
|
|
53469
|
+
}
|
|
53470
|
+
});
|
|
53471
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.label, () => {
|
|
53472
|
+
if (messageError.value) {
|
|
53473
|
+
validate();
|
|
53474
|
+
}
|
|
53475
|
+
});
|
|
53401
53476
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
53402
53477
|
// Desregistra este componente en EForm antes de destruirse
|
|
53403
53478
|
if (unregister) {
|