@rebilly/revel 6.29.0 → 6.29.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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [6.29.
|
|
1
|
+
## [6.29.2](https://github.com/Rebilly/rebilly/compare/revel-v6.29.1...revel-v6.29.2) (2024-06-18)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **
|
|
6
|
+
* **recomm:** Add masks props to `r-date-input` ([#5801](https://github.com/Rebilly/rebilly/issues/5801)) ([908572d](https://github.com/Rebilly/rebilly/commit/908572d69fd380dba315fb945cb86fb7e98fe6cd))
|
|
@@ -44,6 +44,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
44
|
type: ObjectConstructor;
|
|
45
45
|
default: null;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
49
|
+
*/
|
|
50
|
+
masks: {
|
|
51
|
+
type: ObjectConstructor;
|
|
52
|
+
default: () => void;
|
|
53
|
+
};
|
|
47
54
|
}, {
|
|
48
55
|
themeStyles: {
|
|
49
56
|
wrapper: {
|
|
@@ -90,7 +97,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
97
|
borderLeft: string;
|
|
91
98
|
};
|
|
92
99
|
bars: {
|
|
93
|
-
backgroundColor: string;
|
|
100
|
+
backgroundColor: string; /**
|
|
101
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
102
|
+
*/
|
|
94
103
|
};
|
|
95
104
|
tintColor: string;
|
|
96
105
|
};
|
|
@@ -141,6 +150,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
150
|
type: ObjectConstructor;
|
|
142
151
|
default: null;
|
|
143
152
|
};
|
|
153
|
+
/**
|
|
154
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
155
|
+
*/
|
|
156
|
+
masks: {
|
|
157
|
+
type: ObjectConstructor;
|
|
158
|
+
default: () => void;
|
|
159
|
+
};
|
|
144
160
|
}>> & {
|
|
145
161
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
146
162
|
}, {
|
|
@@ -148,6 +164,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
148
164
|
disabled: boolean;
|
|
149
165
|
modelValue: string | Date;
|
|
150
166
|
validate: ValidationState;
|
|
167
|
+
masks: Record<string, any>;
|
|
151
168
|
timezone: string;
|
|
152
169
|
modelConfig: Record<string, any>;
|
|
153
170
|
}>;
|
|
@@ -124,6 +124,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
124
|
type: StringConstructor;
|
|
125
125
|
default: null;
|
|
126
126
|
};
|
|
127
|
+
/**
|
|
128
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
129
|
+
*/
|
|
130
|
+
masks: {
|
|
131
|
+
type: ObjectConstructor;
|
|
132
|
+
default: () => void;
|
|
133
|
+
};
|
|
127
134
|
}, unknown, unknown, {
|
|
128
135
|
isInvalid(): boolean;
|
|
129
136
|
isDateRange(): boolean;
|
|
@@ -273,6 +280,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
273
280
|
type: StringConstructor;
|
|
274
281
|
default: null;
|
|
275
282
|
};
|
|
283
|
+
/**
|
|
284
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
285
|
+
*/
|
|
286
|
+
masks: {
|
|
287
|
+
type: ObjectConstructor;
|
|
288
|
+
default: () => void;
|
|
289
|
+
};
|
|
276
290
|
}>> & {
|
|
277
291
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
278
292
|
}, {
|
|
@@ -285,6 +299,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
285
299
|
validate: ValidationState;
|
|
286
300
|
placement: string;
|
|
287
301
|
is24hr: boolean;
|
|
302
|
+
masks: Record<string, any>;
|
|
288
303
|
locale: string;
|
|
289
304
|
timezone: string;
|
|
290
305
|
minDate: string | Record<string, any> | Date;
|
package/dist/revel.mjs
CHANGED
|
@@ -572,8 +572,7 @@ function Ke(M) {
|
|
|
572
572
|
return M0 = L0, "break";
|
|
573
573
|
}, F = X; F > 0; F--) {
|
|
574
574
|
var T0 = a0(F);
|
|
575
|
-
if (T0 === "break")
|
|
576
|
-
break;
|
|
575
|
+
if (T0 === "break") break;
|
|
577
576
|
}
|
|
578
577
|
b.placement !== M0 && (b.modifiersData[p]._skip = !0, b.placement = M0, b.reset = !0);
|
|
579
578
|
}
|
|
@@ -3292,8 +3291,7 @@ class kW {
|
|
|
3292
3291
|
return;
|
|
3293
3292
|
}
|
|
3294
3293
|
z.push([b[0], p]);
|
|
3295
|
-
} else
|
|
3296
|
-
p1(p) && z.push(...this.normalizeArrayConfig(p));
|
|
3294
|
+
} else p1(p) && z.push(...this.normalizeArrayConfig(p));
|
|
3297
3295
|
}), z;
|
|
3298
3296
|
}
|
|
3299
3297
|
normalizeComponents(b) {
|
|
@@ -3315,8 +3313,7 @@ class kW {
|
|
|
3315
3313
|
return;
|
|
3316
3314
|
}
|
|
3317
3315
|
z.push([b[0], p]);
|
|
3318
|
-
} else
|
|
3319
|
-
p1(p) && z.push(...this.normalizeArrayConfig(p));
|
|
3316
|
+
} else p1(p) && z.push(...this.normalizeArrayConfig(p));
|
|
3320
3317
|
}), z;
|
|
3321
3318
|
}
|
|
3322
3319
|
passes(b) {
|
|
@@ -6036,11 +6033,10 @@ function ku(M, { emit: b, slots: z }) {
|
|
|
6036
6033
|
if (Z0)
|
|
6037
6034
|
return null;
|
|
6038
6035
|
Y0 = A.value, x0 = !1;
|
|
6039
|
-
} else
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
);
|
|
6036
|
+
} else Y0 == null && M.isRequired ? Y0 = A.value : (
|
|
6037
|
+
// Clear value if same value was passed
|
|
6038
|
+
Y0 != null && l0(A.value, Y0) && z0 && (Y0 = null)
|
|
6039
|
+
);
|
|
6044
6040
|
const tM = Z0 ? a : A, y2 = !l0(tM.value, Y0);
|
|
6045
6041
|
tM.value = Y0, Z0 || (a.value = null);
|
|
6046
6042
|
const X2 = G0(
|
|
@@ -7676,8 +7672,7 @@ var CO = { exports: {} }, SO = { exports: {} };
|
|
|
7676
7672
|
return s = s.toUpperCase(), O[s] || null;
|
|
7677
7673
|
}
|
|
7678
7674
|
function F(s, v) {
|
|
7679
|
-
if (s = a0(s), !s)
|
|
7680
|
-
return null;
|
|
7675
|
+
if (s = a0(s), !s) return null;
|
|
7681
7676
|
var L = s.zones.sort();
|
|
7682
7677
|
return v ? L.map(function(w) {
|
|
7683
7678
|
var K = b0(w);
|
|
@@ -9663,6 +9658,14 @@ const mN = /* @__PURE__ */ s0(WN, [["render", LN]]), Me = {
|
|
|
9663
9658
|
modelConfig: {
|
|
9664
9659
|
type: Object,
|
|
9665
9660
|
default: null
|
|
9661
|
+
},
|
|
9662
|
+
/**
|
|
9663
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
9664
|
+
*/
|
|
9665
|
+
masks: {
|
|
9666
|
+
type: Object,
|
|
9667
|
+
default: () => {
|
|
9668
|
+
}
|
|
9666
9669
|
}
|
|
9667
9670
|
},
|
|
9668
9671
|
emits: ["update:modelValue"],
|
|
@@ -9697,6 +9700,7 @@ function NN(M, b, z, p, o, O) {
|
|
|
9697
9700
|
timezone: M.timezone,
|
|
9698
9701
|
"model-config": M.computedModelConfig,
|
|
9699
9702
|
"model-value": M.modelValue,
|
|
9703
|
+
masks: M.masks,
|
|
9700
9704
|
"onUpdate:modelValue": M.onDateInput
|
|
9701
9705
|
}), {
|
|
9702
9706
|
default: J(({ inputValue: t, inputEvents: A }) => [
|
|
@@ -9709,7 +9713,7 @@ function NN(M, b, z, p, o, O) {
|
|
|
9709
9713
|
}, null, 8, ["value", "input-events", "disabled", "placeholder"])
|
|
9710
9714
|
]),
|
|
9711
9715
|
_: 1
|
|
9712
|
-
}, 16, ["mode", "popover", "theme-styles", "timezone", "model-config", "model-value", "onUpdate:modelValue"])
|
|
9716
|
+
}, 16, ["mode", "popover", "theme-styles", "timezone", "model-config", "model-value", "masks", "onUpdate:modelValue"])
|
|
9713
9717
|
]);
|
|
9714
9718
|
}
|
|
9715
9719
|
const yN = /* @__PURE__ */ s0(gN, [["render", NN]]), N0 = {
|
|
@@ -10348,6 +10352,14 @@ const jN = /* @__PURE__ */ s0(xN, [["render", FN]]), YN = G({
|
|
|
10348
10352
|
locale: {
|
|
10349
10353
|
type: String,
|
|
10350
10354
|
default: null
|
|
10355
|
+
},
|
|
10356
|
+
/**
|
|
10357
|
+
* Masks are used to properly format and parse different sections of the calendar and date picker components.
|
|
10358
|
+
*/
|
|
10359
|
+
masks: {
|
|
10360
|
+
type: Object,
|
|
10361
|
+
default: () => {
|
|
10362
|
+
}
|
|
10351
10363
|
}
|
|
10352
10364
|
},
|
|
10353
10365
|
emits: ["update:modelValue"],
|
|
@@ -10413,8 +10425,9 @@ function GN(M, b, z, p, o, O) {
|
|
|
10413
10425
|
"model-value": M.modelValue,
|
|
10414
10426
|
"model-config": M.modelConfig,
|
|
10415
10427
|
type: M.type,
|
|
10428
|
+
masks: M.masks,
|
|
10416
10429
|
"onUpdate:modelValue": M.onValueUpdate
|
|
10417
|
-
}), null, 16, ["model-value", "model-config", "type", "onUpdate:modelValue"])),
|
|
10430
|
+
}), null, 16, ["model-value", "model-config", "type", "masks", "onUpdate:modelValue"])),
|
|
10418
10431
|
M.caption ? (i(), l("span", KN, P(M.caption), 1)) : C("", !0)
|
|
10419
10432
|
], 2);
|
|
10420
10433
|
}
|
|
@@ -13295,8 +13308,7 @@ const ZX = (M) => M.reduce(
|
|
|
13295
13308
|
return rb(b) ? "" : b;
|
|
13296
13309
|
},
|
|
13297
13310
|
getOptionValue(M) {
|
|
13298
|
-
if (M === null)
|
|
13299
|
-
return null;
|
|
13311
|
+
if (M === null) return null;
|
|
13300
13312
|
const b = this.computedTrackBy;
|
|
13301
13313
|
return typeof M == "object" && b in M ? M[b] : M;
|
|
13302
13314
|
},
|