pangea-lib 4.0.555 → 4.0.557
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.
- package/dist/main.cjs.js +3 -3
- package/dist/main.css +1 -1
- package/dist/main.es.js +28 -46
- package/dist/types/components/form/inputs/PgaDatePicker.vue.d.ts +2 -3
- package/dist/types/components/form/inputs/components/PgaDatePickerInputGroup.vue.d.ts +6 -0
- package/dist/types/components/form/inputs/components/PgaVueDatePicker.vue.d.ts +6 -0
- package/dist/types/i18n/i18n.d.ts +63 -63
- package/dist/types/i18n/messages/index.d.ts +1 -1
- package/dist/types/validations/validations.i18n.d.ts +1 -1
- package/dist/types/validations/validations.rules.d.ts +1 -1
- package/package.json +1 -1
package/dist/main.es.js
CHANGED
|
@@ -1483,8 +1483,8 @@ const _T1 = {
|
|
|
1483
1483
|
requiredRuleError: "Campo requerido",
|
|
1484
1484
|
minLengthRuleError: "Longitud mínima: {length} caracteres",
|
|
1485
1485
|
maxLengthRuleError: "Longitud máxima: {length} caracteres",
|
|
1486
|
-
integerRuleError: "Ingrese un valor entero",
|
|
1487
1486
|
emailRuleError: "Ingrese un email válido",
|
|
1487
|
+
integerRuleError: "Ingrese un valor entero",
|
|
1488
1488
|
lessEqualRuleError: "Ingrese un valor menor o igual a {number}",
|
|
1489
1489
|
greaterEqualRuleError: "Ingrese un valor mayor o igual a {number}",
|
|
1490
1490
|
lessThanRuleError: "Ingrese un valor menor a {number}",
|
|
@@ -113831,12 +113831,9 @@ Xa(/^[-]?\d*(\.\d+)?$/);
|
|
|
113831
113831
|
const q9 = $2("validations"), _a1 = Da.withMessage(() => q9("requiredRuleError"), pz3), Ey4 = Da.withMessage(
|
|
113832
113832
|
() => q9("requiredRuleError"),
|
|
113833
113833
|
Da.withParams({}, (e) => typeof e != "number" ? !1 : e > 0)
|
|
113834
|
-
), wa1 = (e) => Sk1("minLength", e), Ha1 = (e) => Sk1("maxLength", e), Dy4 = Da.withMessage(() => q9("
|
|
113834
|
+
), wa1 = (e) => Sk1("minLength", e), Ha1 = (e) => Sk1("maxLength", e), Dy4 = Da.withMessage(() => q9("emailRuleError"), sz3), Oy4 = Da.withMessage(() => q9("integerRuleError"), yz3), Py4 = (e) => WU("greaterEqual", e), Iy4 = (e) => WU("greaterThan", e), Ry4 = (e) => WU("lessEqual", e), Fy4 = (e) => WU("lessThan", e);
|
|
113835
113835
|
function Sk1(e, t) {
|
|
113836
|
-
const a = {
|
|
113837
|
-
minLength: dz3,
|
|
113838
|
-
maxLength: fz3
|
|
113839
|
-
};
|
|
113836
|
+
const a = { minLength: dz3, maxLength: fz3 };
|
|
113840
113837
|
return Da.withMessage(() => q9(`${e}RuleError`, { length: t }), a[e](t));
|
|
113841
113838
|
}
|
|
113842
113839
|
function WU(e, t) {
|
|
@@ -121995,6 +121992,7 @@ const FH3 = /* @__PURE__ */ j1({
|
|
|
121995
121992
|
monthPicker: { type: Boolean },
|
|
121996
121993
|
range: { type: Boolean },
|
|
121997
121994
|
enableTimePicker: { type: Boolean },
|
|
121995
|
+
modelType: {},
|
|
121998
121996
|
notClearable: { type: Boolean },
|
|
121999
121997
|
disabled: { type: Boolean },
|
|
122000
121998
|
placeholder: {},
|
|
@@ -122006,12 +122004,12 @@ const FH3 = /* @__PURE__ */ j1({
|
|
|
122006
122004
|
emits: ["update:modelValue"],
|
|
122007
122005
|
setup(e) {
|
|
122008
122006
|
G3((n) => ({
|
|
122009
|
-
|
|
122010
|
-
|
|
122011
|
-
"
|
|
122012
|
-
|
|
122013
|
-
|
|
122014
|
-
"
|
|
122007
|
+
bed0c19e: Z(a).input.height,
|
|
122008
|
+
"39ffaecd": Z(a).input.borderColor,
|
|
122009
|
+
"1ec5da68": Z(a).input.borderRadius,
|
|
122010
|
+
"0d47140b": Z(a).input.backgroundColor,
|
|
122011
|
+
bc3710b2: Z(a).input.backgroundColorDisabled,
|
|
122012
|
+
"3331543f": Z(a).input.colorFocus
|
|
122015
122013
|
}));
|
|
122016
122014
|
const t = G2(e, "modelValue"), { form: a } = v0(), c = x1(!1);
|
|
122017
122015
|
return (n, r) => (X(), A1(Z(O21), {
|
|
@@ -122024,6 +122022,7 @@ const FH3 = /* @__PURE__ */ j1({
|
|
|
122024
122022
|
monthPicker: n.monthPicker,
|
|
122025
122023
|
range: n.range,
|
|
122026
122024
|
enableTimePicker: n.enableTimePicker,
|
|
122025
|
+
modelType: n.modelType,
|
|
122027
122026
|
placeholder: Z(Y3)(n.placeholder),
|
|
122028
122027
|
timePickerInline: "",
|
|
122029
122028
|
is24: "",
|
|
@@ -122034,10 +122033,10 @@ const FH3 = /* @__PURE__ */ j1({
|
|
|
122034
122033
|
previewFormat: n.format,
|
|
122035
122034
|
onOpen: r[1] || (r[1] = (i) => c.value = !0),
|
|
122036
122035
|
onBlur: r[2] || (r[2] = (i) => c.value = !1)
|
|
122037
|
-
}, null, 8, ["class", "modelValue", "disabled", "clearable", "yearPicker", "monthPicker", "range", "enableTimePicker", "placeholder", "locale", "format", "previewFormat"]));
|
|
122036
|
+
}, null, 8, ["class", "modelValue", "disabled", "clearable", "yearPicker", "monthPicker", "range", "enableTimePicker", "modelType", "placeholder", "locale", "format", "previewFormat"]));
|
|
122038
122037
|
}
|
|
122039
122038
|
});
|
|
122040
|
-
const $H3 = /* @__PURE__ */ d2(FH3, [["__scopeId", "data-v-
|
|
122039
|
+
const $H3 = /* @__PURE__ */ d2(FH3, [["__scopeId", "data-v-03e7f17e"]]), Pd = /* @__PURE__ */ j1({
|
|
122041
122040
|
__name: "PgaDatePickerInputGroup",
|
|
122042
122041
|
props: /* @__PURE__ */ D2({
|
|
122043
122042
|
id: {},
|
|
@@ -122054,6 +122053,7 @@ const $H3 = /* @__PURE__ */ d2(FH3, [["__scopeId", "data-v-90f3db12"]]), Pd = /*
|
|
|
122054
122053
|
monthPicker: { type: Boolean },
|
|
122055
122054
|
range: { type: Boolean },
|
|
122056
122055
|
enableTimePicker: { type: Boolean },
|
|
122056
|
+
modelType: {},
|
|
122057
122057
|
disabled: { type: Boolean },
|
|
122058
122058
|
notClearable: { type: Boolean },
|
|
122059
122059
|
placeholder: {},
|
|
@@ -122074,11 +122074,12 @@ const $H3 = /* @__PURE__ */ d2(FH3, [["__scopeId", "data-v-90f3db12"]]), Pd = /*
|
|
|
122074
122074
|
monthPicker: n.monthPicker,
|
|
122075
122075
|
range: n.range,
|
|
122076
122076
|
enableTimePicker: n.enableTimePicker,
|
|
122077
|
+
modelType: n.modelType,
|
|
122077
122078
|
disabled: n.disabled,
|
|
122078
122079
|
notClearable: n.notClearable,
|
|
122079
122080
|
placeholder: n.placeholder,
|
|
122080
122081
|
format: n.format
|
|
122081
|
-
}, null, 8, ["modelValue", "yearPicker", "monthPicker", "range", "enableTimePicker", "disabled", "notClearable", "placeholder", "format"])
|
|
122082
|
+
}, null, 8, ["modelValue", "yearPicker", "monthPicker", "range", "enableTimePicker", "modelType", "disabled", "notClearable", "placeholder", "format"])
|
|
122082
122083
|
]),
|
|
122083
122084
|
_: 1
|
|
122084
122085
|
}, 16));
|
|
@@ -122106,36 +122107,17 @@ const $H3 = /* @__PURE__ */ d2(FH3, [["__scopeId", "data-v-90f3db12"]]), Pd = /*
|
|
|
122106
122107
|
}),
|
|
122107
122108
|
emits: ["update:modelValue"],
|
|
122108
122109
|
setup(e) {
|
|
122109
|
-
const t = G2(e, "modelValue"), a = e
|
|
122110
|
-
|
|
122111
|
-
|
|
122112
|
-
if (!r)
|
|
122113
|
-
return null;
|
|
122114
|
-
if (r instanceof Date)
|
|
122115
|
-
return r;
|
|
122116
|
-
const [i, o, s] = r.split("-").map(Number);
|
|
122117
|
-
return new Date(i, o - 1, s);
|
|
122118
|
-
},
|
|
122119
|
-
set(r) {
|
|
122120
|
-
if (!r) {
|
|
122121
|
-
t.value = null;
|
|
122122
|
-
return;
|
|
122123
|
-
}
|
|
122124
|
-
if (a.isDateModel) {
|
|
122125
|
-
t.value = r;
|
|
122126
|
-
return;
|
|
122127
|
-
}
|
|
122128
|
-
t.value = r.toISOString().split("T")[0];
|
|
122129
|
-
}
|
|
122130
|
-
});
|
|
122131
|
-
function n(r) {
|
|
122132
|
-
return r8(r, { format: "numeric", withTime: !1 });
|
|
122110
|
+
const t = G2(e, "modelValue"), a = e;
|
|
122111
|
+
function c(n) {
|
|
122112
|
+
return r8(n, { format: "numeric", withTime: !1 });
|
|
122133
122113
|
}
|
|
122134
|
-
return (
|
|
122135
|
-
modelValue:
|
|
122136
|
-
"onUpdate:modelValue":
|
|
122137
|
-
|
|
122138
|
-
|
|
122114
|
+
return (n, r) => (X(), A1(Pd, S2({
|
|
122115
|
+
modelValue: t.value,
|
|
122116
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => t.value = i)
|
|
122117
|
+
}, a, {
|
|
122118
|
+
modelType: n.isDateModel ? void 0 : "yyyy-MM-dd",
|
|
122119
|
+
format: c
|
|
122120
|
+
}), null, 16, ["modelValue", "modelType"]));
|
|
122139
122121
|
}
|
|
122140
122122
|
}), qH3 = /* @__PURE__ */ j1({
|
|
122141
122123
|
__name: "PgaDatetimePicker",
|
|
@@ -160167,7 +160149,7 @@ export {
|
|
|
160167
160149
|
Jy4 as createRouter,
|
|
160168
160150
|
eg4 as default,
|
|
160169
160151
|
ae1 as domain,
|
|
160170
|
-
|
|
160152
|
+
Dy4 as emailRule,
|
|
160171
160153
|
bT1 as getAccessToken,
|
|
160172
160154
|
v0 as getAppOptions,
|
|
160173
160155
|
C41 as getDateStr,
|
|
@@ -160189,7 +160171,7 @@ export {
|
|
|
160189
160171
|
Ts as host,
|
|
160190
160172
|
Ey4 as idRequiredRule,
|
|
160191
160173
|
GR1 as initAppOptions,
|
|
160192
|
-
|
|
160174
|
+
Oy4 as integerRule,
|
|
160193
160175
|
My4 as isAValidId,
|
|
160194
160176
|
tj as isColorTemplateVariable,
|
|
160195
160177
|
ky4 as isMobileDevice,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { StrOrFn } from '../../../types';
|
|
2
2
|
|
|
3
|
-
type ModelValue = Date | string | null;
|
|
4
3
|
declare const _default: import('vue').DefineComponent<{
|
|
5
4
|
modelValue: {
|
|
6
5
|
required: true;
|
|
7
|
-
type: import('vue').PropType<
|
|
6
|
+
type: import('vue').PropType<string | Date>;
|
|
8
7
|
};
|
|
9
8
|
id: {
|
|
10
9
|
type: import('vue').PropType<string>;
|
|
@@ -51,7 +50,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
51
50
|
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
52
51
|
modelValue: {
|
|
53
52
|
required: true;
|
|
54
|
-
type: import('vue').PropType<
|
|
53
|
+
type: import('vue').PropType<string | Date>;
|
|
55
54
|
};
|
|
56
55
|
id: {
|
|
57
56
|
type: import('vue').PropType<string>;
|
|
@@ -47,6 +47,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
47
47
|
enableTimePicker: {
|
|
48
48
|
type: import('vue').PropType<boolean>;
|
|
49
49
|
};
|
|
50
|
+
modelType: {
|
|
51
|
+
type: import('vue').PropType<string>;
|
|
52
|
+
};
|
|
50
53
|
disabled: {
|
|
51
54
|
type: import('vue').PropType<boolean>;
|
|
52
55
|
};
|
|
@@ -106,6 +109,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
106
109
|
enableTimePicker: {
|
|
107
110
|
type: import('vue').PropType<boolean>;
|
|
108
111
|
};
|
|
112
|
+
modelType: {
|
|
113
|
+
type: import('vue').PropType<string>;
|
|
114
|
+
};
|
|
109
115
|
disabled: {
|
|
110
116
|
type: import('vue').PropType<boolean>;
|
|
111
117
|
};
|
|
@@ -17,6 +17,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
17
|
enableTimePicker: {
|
|
18
18
|
type: import('vue').PropType<boolean>;
|
|
19
19
|
};
|
|
20
|
+
modelType: {
|
|
21
|
+
type: import('vue').PropType<string>;
|
|
22
|
+
};
|
|
20
23
|
notClearable: {
|
|
21
24
|
type: import('vue').PropType<boolean>;
|
|
22
25
|
};
|
|
@@ -46,6 +49,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
46
49
|
enableTimePicker: {
|
|
47
50
|
type: import('vue').PropType<boolean>;
|
|
48
51
|
};
|
|
52
|
+
modelType: {
|
|
53
|
+
type: import('vue').PropType<string>;
|
|
54
|
+
};
|
|
49
55
|
notClearable: {
|
|
50
56
|
type: import('vue').PropType<boolean>;
|
|
51
57
|
};
|