@tesouro/embedded-components-react 0.9.21 → 0.9.22
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/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dateDisplay.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js +9 -9
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.9.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.9.22", n = "de85c398e984dc725d382b6d5e2388d8931dc0bc", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { coerceAmountValueToMinorUnits as e } from "./lib/coerceAmountValueToMinorUnits.js";
|
|
2
2
|
import { createCurrencyFormatter as t } from "./lib/createCurrencyFormatter.js";
|
|
3
3
|
import { amountOutputToMajorUnits as n, minorExponentForCurrency as r } from "./lib/amountOutputToMajorUnits.js";
|
|
4
|
+
import "./lib/dateDisplay.js";
|
|
4
5
|
import { formatCalendarDate as i } from "./lib/formatCalendarDate.js";
|
|
5
6
|
import { formatTimestampDate as a } from "./lib/formatTimestampDate.js";
|
|
6
7
|
import { formatRejectionDate as o } from "./lib/formatRejectionDate.js";
|
package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { DATE_DISPLAY_LOCALE as e, DATE_DISPLAY_OPTIONS as t } from "./dateDisplay.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js
|
|
2
|
-
function
|
|
3
|
-
if (!
|
|
4
|
-
let [
|
|
5
|
-
return !
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
year: "numeric",
|
|
3
|
+
function n(n, r) {
|
|
4
|
+
if (!n) return "";
|
|
5
|
+
let [i, a, o] = n.split("-").map(Number);
|
|
6
|
+
return !i || !a || !o ? n : new Date(Date.UTC(i, a - 1, o)).toLocaleDateString(e, {
|
|
7
|
+
...t,
|
|
8
|
+
month: r?.month ?? t.month,
|
|
9
9
|
timeZone: "UTC"
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { n as formatCalendarDate };
|
package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { DATE_DISPLAY_LOCALE as e, DATE_DISPLAY_OPTIONS as t } from "./dateDisplay.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/formatRejectionDate.js
|
|
2
|
-
function
|
|
3
|
-
let
|
|
4
|
-
return
|
|
5
|
-
month:
|
|
6
|
-
day:
|
|
7
|
-
...
|
|
3
|
+
function n(n, r = /* @__PURE__ */ new Date()) {
|
|
4
|
+
let i = new Date(n), a = i.getFullYear() !== r.getFullYear();
|
|
5
|
+
return i.toLocaleDateString(e, {
|
|
6
|
+
month: t.month,
|
|
7
|
+
day: t.day,
|
|
8
|
+
...a ? { year: t.year } : {}
|
|
8
9
|
});
|
|
9
10
|
}
|
|
10
11
|
//#endregion
|
|
11
|
-
export {
|
|
12
|
+
export { n as formatRejectionDate };
|
package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { DATE_DISPLAY_LOCALE as e, DATE_DISPLAY_OPTIONS as t } from "./dateDisplay.js";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/shared/util/dist/lib/formatTimestampDate.js
|
|
2
|
-
function
|
|
3
|
-
if (!
|
|
4
|
-
let
|
|
5
|
-
return Number.isNaN(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
timeZone: t?.timeZone
|
|
3
|
+
function n(n, r) {
|
|
4
|
+
if (!n) return "";
|
|
5
|
+
let i = new Date(n);
|
|
6
|
+
return Number.isNaN(i.getTime()) ? "" : i.toLocaleDateString(e, {
|
|
7
|
+
...t,
|
|
8
|
+
month: r?.month ?? t.month,
|
|
9
|
+
timeZone: r?.timeZone
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { n as formatTimestampDate };
|