@nyaruka/temba-components 0.118.2 → 0.118.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.
- package/CHANGELOG.md +6 -0
- package/dist/temba-components.js +1 -1
- package/dist/temba-components.js.map +1 -1
- package/out-tsc/src/date/TembaDate.js +2 -1
- package/out-tsc/src/date/TembaDate.js.map +1 -1
- package/out-tsc/test/temba-date.test.js +15 -7
- package/out-tsc/test/temba-date.test.js.map +1 -1
- package/package.json +1 -1
- package/screenshots/truth/date/datetime.png +0 -0
- package/screenshots/truth/date/timedate.png +0 -0
- package/src/date/TembaDate.ts +3 -1
- package/test/temba-date.test.ts +18 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,14 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
#### [v0.118.3](https://github.com/nyaruka/temba-components/compare/v0.118.2...v0.118.3)
|
|
8
|
+
|
|
9
|
+
- Don't show time across date boundaries [`#476`](https://github.com/nyaruka/temba-components/pull/476)
|
|
10
|
+
|
|
7
11
|
#### [v0.118.2](https://github.com/nyaruka/temba-components/compare/v0.118.1...v0.118.2)
|
|
8
12
|
|
|
13
|
+
> 31 January 2025
|
|
14
|
+
|
|
9
15
|
- Fix repositioning of embedded options [`#475`](https://github.com/nyaruka/temba-components/pull/475)
|
|
10
16
|
|
|
11
17
|
#### [v0.118.1](https://github.com/nyaruka/temba-components/compare/v0.118.0...v0.118.1)
|
package/dist/temba-components.js
CHANGED
|
@@ -6095,7 +6095,7 @@ let fr=Ys,vr=!1;const br=["es","fr","pt"],yr="data:image/png;base64,iVBORw0KGgoA
|
|
|
6095
6095
|
.date {
|
|
6096
6096
|
display: inline;
|
|
6097
6097
|
}
|
|
6098
|
-
`}firstUpdated(t){super.firstUpdated(t),this.store=document.querySelector("temba-store")}updated(t){super.updated(t),t.has("value")&&(this.datetime=Hs.fromISO(this.value))}connectedCallback(){super.connectedCallback()}render(){if(this.datetime&&this.store){this.datetime.setLocale(this.store.getLocale());let t="";if(this.display===Yh.timedate){const e=Math.abs(this.datetime.diffNow().milliseconds/1e3/60/60);t=e<24?this.datetime.toLocaleString(Yh.time):e<8760?this.datetime.toFormat(Yh.day):this.datetime.toLocaleString(Yh.date)}else if(this.display===Yh.relative){if(Math.abs(this.datetime.diffNow().milliseconds/1e3/60)<1)return V`<span
|
|
6098
|
+
`}firstUpdated(t){super.firstUpdated(t),this.store=document.querySelector("temba-store")}updated(t){super.updated(t),t.has("value")&&(this.datetime=Hs.fromISO(this.value))}connectedCallback(){super.connectedCallback()}render(){if(this.datetime&&this.store){this.datetime.setLocale(this.store.getLocale());let t="";if(this.display===Yh.timedate){const e=Math.abs(this.datetime.diffNow().milliseconds/1e3/60/60),i=this.datetime.get("day");t=e<24&&i==Hs.now().get("day")?this.datetime.toLocaleString(Yh.time):e<8760?this.datetime.toFormat(Yh.day):this.datetime.toLocaleString(Yh.date)}else if(this.display===Yh.relative){if(Math.abs(this.datetime.diffNow().milliseconds/1e3/60)<1)return V`<span
|
|
6099
6099
|
class="date"
|
|
6100
6100
|
title="${this.datetime.toLocaleString(Yh.datetime)}"
|
|
6101
6101
|
>just now</span
|