@ni/ok-components 1.18.2 → 1.18.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/dist/all-components-bundle.js +8 -3
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +5 -5
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +92 -92
- package/dist/custom-elements.md +28 -28
- package/dist/esm/fv/date-time-picker/models/date-time.js +7 -2
- package/dist/esm/fv/date-time-picker/models/date-time.js.map +1 -1
- package/dist/esm/fv/date-time-picker/template.js +1 -1
- package/dist/esm/fv/date-time-picker/template.js.map +1 -1
- package/dist/esm/fv/date-time-picker/testing/fv-date-time-picker.pageobject.d.ts +144 -0
- package/dist/esm/fv/date-time-picker/testing/fv-date-time-picker.pageobject.js +553 -0
- package/dist/esm/fv/date-time-picker/testing/fv-date-time-picker.pageobject.js.map +1 -0
- package/package.json +1 -1
|
@@ -20153,11 +20153,11 @@ function ttt(t,e,n,i,o=!1){if(o&&"datetime-local"===e){const{dayPeriod:o}=Z9(n,i
|
|
|
20153
20153
|
for(const t of s){const o=ttt(t,e,n,i)
|
|
20154
20154
|
if(o)return o}return""}const{mode:s,separator:r}=K9(n),a=s.split("/").join(r).length,l=t.slice(0,a).split(r),c=s.split("/"),d=j9(`${l[c.indexOf("yyyy")]}-${l[c.indexOf("mm")]}-${l[c.indexOf("dd")]}`,"date")
|
|
20155
20155
|
if(!d)return""
|
|
20156
|
-
if("date"!==e){const e=function(t,e){const{mode:n,dayPeriod:i,timeSegmentMaxValues:o}=D9(e),s=o.milliseconds+1,r=(o.seconds+1)*s,a=(o.minutes+1)*r,l=a9(c9(t,n))
|
|
20156
|
+
if("date"!==e){const e=Z9(n,i),[o,s]=e.dayPeriod,r=function(t,e){const{mode:n,dayPeriod:i,timeSegmentMaxValues:o}=D9(e),s=o.milliseconds+1,r=(o.seconds+1)*s,a=(o.minutes+1)*r,l=a9(c9(t,n))
|
|
20157
20157
|
let c=Number(l.hours??"")
|
|
20158
|
-
return o9(i)&&Number.isFinite(c)&&(c=t.includes(i[1])?c<12?c+12:c:12===c?0:c),c*a+Number(l.minutes??"")*r+Number(l.seconds??"")*s+Number(l.milliseconds??"")}(t.slice(a+1),
|
|
20159
|
-
if(!Number.isFinite(
|
|
20160
|
-
d.setUTCMilliseconds(
|
|
20158
|
+
return o9(i)&&Number.isFinite(c)&&(c=t.includes(i[1])?c<12?c+12:c:12===c?0:c),c*a+Number(l.minutes??"")*r+Number(l.seconds??"")*s+Number(l.milliseconds??"")}(t.slice(a+1).toLocaleLowerCase(n),{...e,dayPeriod:[o.toLocaleLowerCase(n),s.toLocaleLowerCase(n)]})
|
|
20159
|
+
if(!Number.isFinite(r))return""
|
|
20160
|
+
d.setUTCMilliseconds(r)}return Q9(Y9(d,e,n,i))===Q9(t)?W9(d,e):""}const ett=(t,e)=>ki.create({name:`ok-fv-date-time-picker-${t}`,cssCustomPropertyName:null}).withDefault(e),ntt={chooseDate:ett("choose-date","Choose date"),chooseDateTime:ett("choose-date-time","Choose date and time"),month:ett("month","Month"),year:ett("year","Year"),previousMonth:ett("previous-month","Previous month"),nextMonth:ett("next-month","Next month"),time:ett("time","Time"),invalidDate:ett("invalid-date","Enter a valid date."),invalidDateTime:ett("invalid-date-time","Enter a valid date and time."),invalidTime:ett("invalid-time","Enter a valid time.")}
|
|
20161
20161
|
class itt extends uy{constructor(){super(...arguments),this.supportedLabels=ntt}}t([ft({attribute:"choose-date"})],itt.prototype,"chooseDate",void 0),t([ft({attribute:"choose-date-time"})],itt.prototype,"chooseDateTime",void 0),t([ft],itt.prototype,"month",void 0),t([ft],itt.prototype,"year",void 0),t([ft({attribute:"previous-month"})],itt.prototype,"previousMonth",void 0),t([ft({attribute:"next-month"})],itt.prototype,"nextMonth",void 0),t([ft],itt.prototype,"time",void 0),t([ft({attribute:"invalid-date"})],itt.prototype,"invalidDate",void 0),t([ft({attribute:"invalid-date-time"})],itt.prototype,"invalidDateTime",void 0),t([ft({attribute:"invalid-time"})],itt.prototype,"invalidTime",void 0)
|
|
20162
20162
|
const ott=itt.compose({baseName:"fv-date-time-picker-label-provider",styles:py})
|
|
20163
20163
|
Ei.getOrCreate().withPrefix("ok").register(ott())
|
|
@@ -20473,7 +20473,7 @@ const stt=ki.create("ok-fv-date-time-picker-selected-day-fill").withDefault(t=>O
|
|
|
20473
20473
|
</div>
|
|
20474
20474
|
${qt(t=>!t.open,ltt)}
|
|
20475
20475
|
${qt(t=>t.open,Q`
|
|
20476
|
-
<${Av} ${Vt("region")} auto-update-mode="auto"
|
|
20476
|
+
<${Av} ${Vt("region")} auto-update-mode="auto" fixed-placement
|
|
20477
20477
|
@loaded="${t=>t.focusDay(!0)}"
|
|
20478
20478
|
vertical-default-position="bottom" vertical-positioning-mode="dynamic"
|
|
20479
20479
|
horizontal-inset
|