@rivet-health/design-system 31.8.1 → 31.8.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/esm2020/lib/input/phone-field/phone-field.component.mjs +4 -4
- package/fesm2015/rivet-health-design-system.mjs +3 -3
- package/fesm2015/rivet-health-design-system.mjs.map +1 -1
- package/fesm2020/rivet-health-design-system.mjs +3 -3
- package/fesm2020/rivet-health-design-system.mjs.map +1 -1
- package/lib/input/phone-field/phone-field.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -4531,8 +4531,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4531
4531
|
return digits.length > 10 ? digits.slice(0, 10) : digits;
|
|
4532
4532
|
}
|
|
4533
4533
|
PhoneFieldComponent.clean = clean;
|
|
4534
|
-
function format(
|
|
4535
|
-
const cleaned = clean(
|
|
4534
|
+
function format(value) {
|
|
4535
|
+
const cleaned = clean(value);
|
|
4536
4536
|
if (!cleaned)
|
|
4537
4537
|
return '';
|
|
4538
4538
|
function formatBody(v) {
|
|
@@ -4549,7 +4549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4549
4549
|
if (cleaned.length === 11) {
|
|
4550
4550
|
return `1 ${formatBody(cleaned.slice(1))}`;
|
|
4551
4551
|
}
|
|
4552
|
-
return formatBody(
|
|
4552
|
+
return formatBody(cleaned);
|
|
4553
4553
|
}
|
|
4554
4554
|
PhoneFieldComponent.format = format;
|
|
4555
4555
|
})(PhoneFieldComponent || (PhoneFieldComponent = {}));
|