@nova-design-system/nova-webcomponents 3.18.0 → 3.19.0
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/cjs/index.cjs.js +13 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +10 -6
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +11 -7
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +193 -209
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +7 -4
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +4 -0
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldradio.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldselect.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldslider.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtext.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtime.cjs.entry.js +4 -3
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +2 -2
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification.cjs.entry.js +1 -1
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +1 -1
- package/dist/cjs/nv-split.cjs.entry.js +1 -1
- package/dist/cjs/nv-stack.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +2 -2
- package/dist/cjs/nv-togglebutton.cjs.entry.js +1 -1
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +10 -6
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +10 -6
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/styles/nv-fielddaterange.css +2 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +31 -13
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +310 -245
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +29 -6
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +4 -0
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +3 -3
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +3 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +4 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +1 -1
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +13 -0
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +3 -3
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
- package/dist/collection/components/nv-notification/nv-notification.js +1 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +2 -2
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-split/nv-split.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +1 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/components/index.js +13 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-accordion-item.js +1 -1
- package/dist/components/nv-accordion.js +4 -4
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +2 -2
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-datagrid.js +2 -2
- package/dist/components/nv-dialog.js +4 -4
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-fielddate.js +14 -10
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +15 -11
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +207 -220
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +10 -6
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +1 -1
- package/dist/components/nv-fieldpassword.js +6 -6
- package/dist/components/nv-fieldradio.js +3 -3
- package/dist/components/nv-fieldselect.js +8 -8
- package/dist/components/nv-fieldslider.js +7 -7
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtextarea.js +3 -3
- package/dist/components/nv-fieldtime.js +8 -7
- package/dist/components/nv-fieldtime.js.map +1 -1
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-loader.js +1 -1
- package/dist/components/nv-menu.js +5 -5
- package/dist/components/nv-menu.js.map +1 -1
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-notification.js +2 -2
- package/dist/components/nv-notificationcontainer.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-split.js +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-toggle.js +2 -2
- package/dist/components/nv-togglebutton.js +1 -1
- package/dist/components/nv-togglebuttongroup.js +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-015330b8.js → p-18f50d91.js} +2 -2
- package/dist/components/{p-015330b8.js.map → p-18f50d91.js.map} +1 -1
- package/dist/components/{p-c981bb48.js → p-222136c2.js} +2 -2
- package/dist/components/{p-c981bb48.js.map → p-222136c2.js.map} +1 -1
- package/dist/components/{p-fca4d85b.js → p-2ac6f42d.js} +3 -3
- package/dist/components/{p-fca4d85b.js.map → p-2ac6f42d.js.map} +1 -1
- package/dist/components/{p-fabbaf47.js → p-334e19d3.js} +4 -4
- package/dist/components/{p-fabbaf47.js.map → p-334e19d3.js.map} +1 -1
- package/dist/components/{p-5e315239.js → p-45a3cf85.js} +11 -7
- package/dist/components/p-45a3cf85.js.map +1 -0
- package/dist/components/{p-ebfecbaa.js → p-4799b6c3.js} +3 -3
- package/dist/components/p-4799b6c3.js.map +1 -0
- package/dist/components/{p-4cd6f629.js → p-49205084.js} +5 -5
- package/dist/components/{p-4cd6f629.js.map → p-49205084.js.map} +1 -1
- package/dist/components/{p-6ca3d847.js → p-5a5db065.js} +4 -4
- package/dist/components/{p-6ca3d847.js.map → p-5a5db065.js.map} +1 -1
- package/dist/components/{p-1bd396b1.js → p-60083982.js} +4 -4
- package/dist/components/{p-1bd396b1.js.map → p-60083982.js.map} +1 -1
- package/dist/components/{p-ea45f1ab.js → p-81d915ef.js} +3 -3
- package/dist/components/{p-ea45f1ab.js.map → p-81d915ef.js.map} +1 -1
- package/dist/components/p-946a047c.js +88 -0
- package/dist/components/p-946a047c.js.map +1 -0
- package/dist/components/{p-715e5235.js → p-a6c29711.js} +2 -2
- package/dist/components/{p-715e5235.js.map → p-a6c29711.js.map} +1 -1
- package/dist/components/{p-d1b02966.js → p-e0eb748c.js} +7 -7
- package/dist/components/{p-d1b02966.js.map → p-e0eb748c.js.map} +1 -1
- package/dist/components/{p-2574f8c2.js → p-e1b2eba2.js} +2 -2
- package/dist/components/{p-2574f8c2.js.map → p-e1b2eba2.js.map} +1 -1
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-fielddate.entry.js +10 -6
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +11 -7
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +193 -209
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +7 -4
- package/dist/esm/nv-fielddropdownitem.entry.js.map +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +4 -0
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +3 -3
- package/dist/esm/nv-fieldpassword.entry.js +3 -3
- package/dist/esm/nv-fieldradio.entry.js +3 -3
- package/dist/esm/nv-fieldselect.entry.js +5 -5
- package/dist/esm/nv-fieldslider.entry.js +3 -3
- package/dist/esm/nv-fieldtext.entry.js +3 -3
- package/dist/esm/nv-fieldtextarea.entry.js +3 -3
- package/dist/esm/nv-fieldtime.entry.js +4 -3
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +2 -2
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js.map +1 -1
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-notification.entry.js +1 -1
- package/dist/esm/nv-notificationcontainer.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +1 -1
- package/dist/esm/nv-split.entry.js +1 -1
- package/dist/esm/nv-stack.entry.js +1 -1
- package/dist/esm/nv-table.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js +2 -2
- package/dist/esm/nv-togglebutton.entry.js +1 -1
- package/dist/esm/nv-togglebuttongroup.entry.js +1 -1
- package/dist/esm/nv-tooltip.entry.js +1 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/index.esm.js.map +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/{p-acada158.entry.js → p-0177409b.entry.js} +2 -2
- package/dist/native/{p-14d2f70a.entry.js → p-075d231e.entry.js} +2 -2
- package/dist/native/{p-d878e90a.entry.js → p-144d0f8a.entry.js} +2 -2
- package/dist/native/p-144d0f8a.entry.js.map +1 -0
- package/dist/native/{p-b4c15f25.entry.js → p-17666092.entry.js} +2 -2
- package/dist/native/{p-107e80c6.entry.js → p-218135b1.entry.js} +2 -2
- package/dist/native/p-218135b1.entry.js.map +1 -0
- package/dist/native/p-2a7f80f4.entry.js +2 -0
- package/dist/native/p-2a7f80f4.entry.js.map +1 -0
- package/dist/native/{p-e5b7ce4e.entry.js → p-445221dc.entry.js} +2 -2
- package/dist/native/{p-4e6fb719.entry.js → p-44a78545.entry.js} +2 -2
- package/dist/native/p-57420a2f.entry.js +2 -0
- package/dist/native/{p-5c678bc7.entry.js → p-587d94f3.entry.js} +2 -2
- package/dist/native/{p-95184ea2.entry.js → p-6a418ec4.entry.js} +2 -2
- package/dist/native/{p-5039ceb8.entry.js → p-859bf9ad.entry.js} +2 -2
- package/dist/native/{p-5039ceb8.entry.js.map → p-859bf9ad.entry.js.map} +1 -1
- package/dist/native/{p-ae43eee2.entry.js → p-9950e075.entry.js} +2 -2
- package/dist/native/{p-ad029453.entry.js → p-9c432751.entry.js} +2 -2
- package/dist/native/{p-8c053954.entry.js → p-a026654f.entry.js} +2 -2
- package/dist/native/p-a026654f.entry.js.map +1 -0
- package/dist/native/{p-417fba7d.entry.js → p-a2f58133.entry.js} +2 -2
- package/dist/native/{p-3464b86a.entry.js → p-b02c896a.entry.js} +2 -2
- package/dist/native/{p-9613087c.entry.js → p-b4382c94.entry.js} +2 -2
- package/dist/native/{p-835abdb9.entry.js → p-b626ef47.entry.js} +2 -2
- package/dist/native/{p-23ee0384.entry.js → p-c0de4bb0.entry.js} +2 -2
- package/dist/native/{p-5f98d4cd.entry.js → p-c9fea0df.entry.js} +2 -2
- package/dist/native/{p-5f98d4cd.entry.js.map → p-c9fea0df.entry.js.map} +1 -1
- package/dist/native/{p-ca39f78d.entry.js → p-d62869ff.entry.js} +2 -2
- package/dist/native/p-d63689da.entry.js +2 -0
- package/dist/native/p-d63689da.entry.js.map +1 -0
- package/dist/native/p-d8f3cf92.entry.js +2 -0
- package/dist/native/p-d8f3cf92.entry.js.map +1 -0
- package/dist/native/{p-539666dd.entry.js → p-dfb6b65e.entry.js} +2 -2
- package/dist/native/{p-230af58a.entry.js → p-e6f24210.entry.js} +2 -2
- package/dist/native/p-e6f24210.entry.js.map +1 -0
- package/dist/native/{p-da2060a5.entry.js → p-eb74feb7.entry.js} +2 -2
- package/dist/native/{p-6d427897.entry.js → p-fa3e588e.entry.js} +2 -2
- package/dist/native/{p-112d096c.entry.js → p-fffbd3c1.entry.js} +2 -2
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +54 -35
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +7 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components.d.ts +59 -13
- package/dist/vscode-data.json +50 -3
- package/hydrate/index.js +283 -279
- package/hydrate/index.mjs +283 -279
- package/package.json +1 -1
- package/dist/components/p-5e315239.js.map +0 -1
- package/dist/components/p-ebfecbaa.js.map +0 -1
- package/dist/components/p-ed43bcec.js +0 -88
- package/dist/components/p-ed43bcec.js.map +0 -1
- package/dist/native/p-00d1e5e1.entry.js +0 -2
- package/dist/native/p-00d1e5e1.entry.js.map +0 -1
- package/dist/native/p-107e80c6.entry.js.map +0 -1
- package/dist/native/p-230af58a.entry.js.map +0 -1
- package/dist/native/p-5e70f9ce.entry.js +0 -2
- package/dist/native/p-8c053954.entry.js.map +0 -1
- package/dist/native/p-b72b5e88.entry.js +0 -2
- package/dist/native/p-b72b5e88.entry.js.map +0 -1
- package/dist/native/p-d7f444fb.entry.js +0 -2
- package/dist/native/p-d7f444fb.entry.js.map +0 -1
- package/dist/native/p-d878e90a.entry.js.map +0 -1
- /package/dist/native/{p-acada158.entry.js.map → p-0177409b.entry.js.map} +0 -0
- /package/dist/native/{p-14d2f70a.entry.js.map → p-075d231e.entry.js.map} +0 -0
- /package/dist/native/{p-b4c15f25.entry.js.map → p-17666092.entry.js.map} +0 -0
- /package/dist/native/{p-e5b7ce4e.entry.js.map → p-445221dc.entry.js.map} +0 -0
- /package/dist/native/{p-4e6fb719.entry.js.map → p-44a78545.entry.js.map} +0 -0
- /package/dist/native/{p-5e70f9ce.entry.js.map → p-57420a2f.entry.js.map} +0 -0
- /package/dist/native/{p-5c678bc7.entry.js.map → p-587d94f3.entry.js.map} +0 -0
- /package/dist/native/{p-95184ea2.entry.js.map → p-6a418ec4.entry.js.map} +0 -0
- /package/dist/native/{p-ae43eee2.entry.js.map → p-9950e075.entry.js.map} +0 -0
- /package/dist/native/{p-ad029453.entry.js.map → p-9c432751.entry.js.map} +0 -0
- /package/dist/native/{p-417fba7d.entry.js.map → p-a2f58133.entry.js.map} +0 -0
- /package/dist/native/{p-3464b86a.entry.js.map → p-b02c896a.entry.js.map} +0 -0
- /package/dist/native/{p-9613087c.entry.js.map → p-b4382c94.entry.js.map} +0 -0
- /package/dist/native/{p-835abdb9.entry.js.map → p-b626ef47.entry.js.map} +0 -0
- /package/dist/native/{p-23ee0384.entry.js.map → p-c0de4bb0.entry.js.map} +0 -0
- /package/dist/native/{p-ca39f78d.entry.js.map → p-d62869ff.entry.js.map} +0 -0
- /package/dist/native/{p-539666dd.entry.js.map → p-dfb6b65e.entry.js.map} +0 -0
- /package/dist/native/{p-da2060a5.entry.js.map → p-eb74feb7.entry.js.map} +0 -0
- /package/dist/native/{p-6d427897.entry.js.map → p-fa3e588e.entry.js.map} +0 -0
- /package/dist/native/{p-112d096c.entry.js.map → p-fffbd3c1.entry.js.map} +0 -0
|
@@ -105,9 +105,9 @@ export class NvFieldpassword {
|
|
|
105
105
|
/****************************************************************************/
|
|
106
106
|
//#region RENDER
|
|
107
107
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
109
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
110
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
108
|
+
return (h(Host, { key: '3fd88ed71cb3c34fbd4a35cb861617687add3c76' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'b08c3c1d7ca6f196c547fdb42c2289f4fbacd461', htmlFor: this.inputId }, h("slot", { key: '2469c277ea25d8c9ea521cc05da068cf63465637', name: "label" }, this.label))), h("div", { key: '606a09205e3caa2490c3db48411eebc5bddbb786', class: "input-wrapper" }, h("slot", { key: '843cf4814cf84c9d6ca5fec7a13c30820dd0075a', name: "before-input" }), h("div", { key: '4b06bdf556442e8ccb4f28a450bcb5f432740b8a', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'c07a3575a5b831e5f803558607fbf677e5b2ffac', name: "leading-input" }), h("input", { key: 'c9536d50ff4ed09cffd13ba06d4599492f77feac', id: this.inputId, ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, type: this.showPasswordState ? 'text' : 'password', inputMode: this.mode, value: this.value, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), (this.success || this.error) && (h("nv-icon", { key: 'df7f3b45b0dec7dabfdea7496ff6576413101cf5', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" })), !this.hidePasswordIcon && (h("nv-iconbutton", { key: 'ef3bc855fe5f70ed537d9b564b7f8b990998da48', name: this.showPasswordState ? 'eye' : 'eye-off', size: "md", emphasis: "lower", onClick: this.togglePasswordVisibility, "aria-label": this.showPasswordState ? 'Hide password' : 'Show password', "aria-pressed": this.showPasswordState.toString() }))), h("slot", { key: 'd7e892c362bcab7724c0250a8e097bdd3a7f28a2', name: "after-input" })), (this.description ||
|
|
109
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '5933be1bda9a32ceabcae5144e6a6a131203f9d6', class: "description" }, h("slot", { key: '31671c862c3e5988ef4939d21a75f721b47eacf6', name: "description" }, this.description))), (this.errorDescription ||
|
|
110
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'a38ff2519ae8da933b5884c0e576d91b8825dec7', hidden: !this.error, class: "error-description" }, h("slot", { key: 'ec242e6f6cf28b7e34bfcec658874067019ba540', name: "error-description" }, this.errorDescription)))));
|
|
111
111
|
}
|
|
112
112
|
static get is() { return "nv-fieldpassword"; }
|
|
113
113
|
static get formAssociated() { return true; }
|
|
@@ -83,9 +83,9 @@ export class NvFieldradio {
|
|
|
83
83
|
/****************************************************************************/
|
|
84
84
|
//#region RENDER
|
|
85
85
|
render() {
|
|
86
|
-
return (h(Host, { key: '
|
|
87
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
88
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
86
|
+
return (h(Host, { key: '18cad87f89d7532fab554e1ad74fcc615ddd8026', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h("input", { key: '347c33c2ff2b6377d009c108739e4016f97da16b', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), h("div", { key: '067cebdaf42e94c0b447a91b852a44fa7d5f58cf', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '9c90d0c9e27125576e8194113412795243492c9d', htmlFor: this.inputId }, h("slot", { key: 'c5da5d8f8715635ec0adfd46ee704b7c0d940bdd', name: "label" }, this.label))), (this.description ||
|
|
87
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'f5e00078f008ab49bbac08c3d3614cae05b783a7', class: "description" }, h("slot", { key: 'b70921bbe8acda5c9b7c8e7d81e2d696bc2e4613', name: "description" }, this.description))), (this.errorDescription ||
|
|
88
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'a6ccddfb948ba5db46f355bb3afd73873fcfe8e6', hidden: !this.error, class: "error-description" }, h("slot", { key: '896448579ceee1ba50672e58e8a70e21d5d9fc64', name: "error-description" }, this.errorDescription))))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "nv-fieldradio"; }
|
|
91
91
|
static get formAssociated() { return true; }
|
|
@@ -335,13 +335,13 @@ export class NvFieldselect {
|
|
|
335
335
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
336
336
|
*/
|
|
337
337
|
render() {
|
|
338
|
-
return (h(Host, { key: '
|
|
338
|
+
return (h(Host, { key: 'a1a4eb304e38fb1b058b66af5d3c86edcb05610f' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '8aa279dba4e264b17ebd3b33dcff4480ce6c5d57', htmlFor: this.inputId }, h("slot", { key: 'a7cd14d0efc0f22739ee5496d64aad0930000a6e', name: "label" }, this.label))), h("div", { key: '3929ad8d896250574d437d94ab35c72e55884e04', class: "select-wrapper" }, h("slot", { key: 'c92b18f7639b33ebfcf2f3a4b1c24ab4b5a54fa5', name: "before-input" }), h("div", { key: '8554dc402e570dd48ca5031f5e6e4d48f84e9a7d', class: "select-container", onClick: this.handleSelectContainerClick }, h("slot", { key: 'b76cd121460e53f5f0a1e4e7ca0e96f5e733f6f3', name: "leading-input" }), this.internalReadonly && (h("input", { key: 'f0600651b33c5768bab22f27109de445bdb70fff', id: this.inputId + '-readonly', type: "text", value: this.computedDisplayValue, readonly: true, class: "readonly-input", "aria-readonly": "true", "aria-label": this.label, "aria-describedby": this.error
|
|
339
339
|
? `${this.inputId}-error`
|
|
340
|
-
: `${this.inputId}-description` })), h("select", { key: '
|
|
340
|
+
: `${this.inputId}-description` })), h("select", { key: 'e1f9211919f9eef80c50c21536ee98e6dba71cb6', id: this.inputId, ref: el => (this.selectElement = el), name: this.name, autofocus: this.autofocus, disabled: this.disabled, required: this.required, multiple: this.multiple, onChange: this.handleSelectChange, class: this.internalReadonly ? 'hidden' : '', "aria-label": this.label, "aria-describedby": this.error
|
|
341
341
|
? `${this.inputId}-error`
|
|
342
|
-
: `${this.inputId}-description` }, this.options && this.options.length > 0 ? (this.options.map(option => (h("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (h("slot", null))), h("div", { key: '
|
|
343
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
344
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
342
|
+
: `${this.inputId}-description` }, this.options && this.options.length > 0 ? (this.options.map(option => (h("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (h("slot", null))), h("div", { key: '4e17199de9ac55f30ab27f37ad0f69526a96a53b', class: "select-icons" }, this.error && (h("nv-icon", { key: '6e02a15e6a72cd54910b44dcc3445bc0a875d301', name: "alert-circle", class: "validation", size: "md" })), this.success && (h("nv-icon", { key: '2c936e0fe3070fdb1540e50196850531c1a186f3', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (h("nv-iconbutton", { key: '55ff8a3ad2908c9380041b684274ebb275197605', name: "chevron-down", size: "md", emphasis: "lower", tabindex: -1 })))), h("slot", { key: 'd32c4fa7b22a705dcb89224de06c1f5f0a965f34', name: "after-input" })), (this.description ||
|
|
343
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '1a8ba7867fa31618ae6d9149ce03ee63b0c958a1', class: "description", id: `${this.inputId}-description` }, h("slot", { key: '527ee48037f1d76e6478b90de86b5e4f0b819677', name: "description" }, this.description))), (this.errorDescription ||
|
|
344
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '5279561b8a6a20101447a05b4f99d4aea4e6994b', class: "error-description", id: `${this.inputId}-error` }, h("slot", { key: '101f92f3d2bba8c4c9502542fada0a1363ab5ad1', name: "error-description" }, this.errorDescription)))));
|
|
345
345
|
}
|
|
346
346
|
static get is() { return "nv-fieldselect"; }
|
|
347
347
|
static get formAssociated() { return true; }
|
|
@@ -464,11 +464,11 @@ export class NvFieldslider {
|
|
|
464
464
|
/****************************************************************************/
|
|
465
465
|
//#region RENDER
|
|
466
466
|
render() {
|
|
467
|
-
return (h(Host, { key: '
|
|
467
|
+
return (h(Host, { key: 'e4d4719682957f858468c3df97c82d5be29e87b8' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'a6d84550e4b91a4f23252e31ebbd3680b5a81aad', htmlFor: this.startInputId }, h("slot", { key: '44ce936f4b50ae5be5c3b8769b990fda82ff9b27', name: "label" }, this.label))), h("div", { key: '578a9673356506f87d906ff34254f93c0f724ebb', class: "slider-container" }, this.range ? (h(FieldInput, { range: this.range, hasField: this.hasField, value: this.valueInternal, rangeValue: this.rangeValueInternal, index: 0, inputId: this.startInputId, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onInput: this.handleFieldChange, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue, name: this.name, endName: this.endName })) : null, h("div", { key: '1dd30a5e703309993e8d61dc44bf1ad0adbc11e0', class: "track-container" }, h("div", { key: '870f688ec85678ac490cfc1542cc8d1802a43ec7', class: "track", onPointerDown: this.onTrackInteraction }, this.range ? (h(RangeThumb, { rangeValue: this.rangeValueInternal, rawRangePosition: this.rawRangePosition, activeDragThumb: this.activeDragThumb, isDragging: this.isDragging, snap: this.snap, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onKeyDown: this.onKeyDown, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue })) : (h(SingleThumb, { value: this.valueInternal, min: this.min, max: this.max, step: this.step, rawPosition: this.rawPosition, isDragging: this.isDragging, snap: this.snap, disabled: this.disabled, readonly: this.readonly, onKeyDown: this.onKeyDown, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue }))), h(TickMarks, { key: '75fb4d22e84ea569928e475e35d0031130f6c6ed', ticks: this.internalTicks, min: this.min, max: this.max })), this.range ? (h(FieldInput, { range: this.range, hasField: this.hasField, value: this.valueInternal, rangeValue: this.rangeValueInternal, index: 1, inputId: this.endInputId, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onInput: this.handleFieldChange, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue, name: this.name, endName: this.endName })) : (h(FieldInput, { range: this.range, hasField: this.hasField, value: this.valueInternal, rangeValue: this.rangeValueInternal, inputId: this.startInputId, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onInput: this.handleFieldChange, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue, name: this.name }))), (this.success ||
|
|
468
468
|
this.description ||
|
|
469
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
469
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'b88410b4d04254b66c146b39dc4215f92c42b9b8', class: "description" }, this.success && (h("nv-icon", { key: '4b3886cd627e8243d899399c60b85c47ce823170', name: "circle-check", class: "validation", size: "md" })), h("slot", { key: 'b262880c747c3f6d1e51b1d4214761d7aecc9f9c', name: "description" }, this.description))), (this.error ||
|
|
470
470
|
this.errorDescription ||
|
|
471
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
471
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: 'ad5d61a003680c4ff53217bf594dcb4e5fa1b053', class: "error-description", hidden: !this.error }, this.error && (h("nv-icon", { key: '3898c1781b38497b3bd797587980ed9fd32c8afc', name: "alert-circle", class: "validation", size: "md" })), h("slot", { key: '7fa0cf391cdb113eba7dbcd76a66044fc4d60281', name: "error-description" }, this.errorDescription)))));
|
|
472
472
|
}
|
|
473
473
|
static get is() { return "nv-fieldslider"; }
|
|
474
474
|
static get formAssociated() { return true; }
|
|
@@ -111,9 +111,9 @@ export class NvFieldtext {
|
|
|
111
111
|
/****************************************************************************/
|
|
112
112
|
//#region RENDER
|
|
113
113
|
render() {
|
|
114
|
-
return (h(Host, { key: '
|
|
115
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
116
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
114
|
+
return (h(Host, { key: '59c03a594971eab5cb8ae4bf7b5342899bba4336' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'a36f03b76cee03be0fe2608fd40a88455818a83b', htmlFor: this.inputId }, h("slot", { key: '284a3f6f9efaed1ee7a40675fd377bdbe3d08d9e', name: "label" }, this.label))), h("div", { key: '963b853f5de42058d1cdced00c7bdc38f4583000', class: "input-wrapper" }, h("slot", { key: 'dce7ea85a9ae76c923ea3dc732d93614b94ba391', name: "before-input" }), h("div", { key: 'eac7b8e1d85f9623287f839cdc7ef3133c9c75d8', class: "input-container", onClick: this.handleInputContainerClick }, h("slot", { key: 'db3ab29c4a0767ffc8f8c1368085052769bdc4cc', name: "leading-input" }), h("input", { key: 'd4759f1dd7bab6da0a4486cf326cb55c61fcb750', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: this.type, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, pattern: this.pattern, autofocus: this.autofocus, autocomplete: this.autocomplete, multiple: this.multiple, value: this.value, onInput: this.handleInput }), h("slot", { key: 'e8950b2b41ce5e350e39084c3d6936a1a11960e4', name: "trailing-input" }), this.error && (h("nv-icon", { key: '83eb974690dfd69858877ba434e4dd30802208c8', name: "alert-circle", class: "validation", size: "md" })), this.success && (h("nv-icon", { key: '2b8e37bd41e2b98ae17a249379528dd6e1773e6e', name: "circle-check", class: "validation", size: "md" }))), h("slot", { key: '72e5ae030d15c61409095f4067436ee890d21a1e', name: "after-input" })), (this.description ||
|
|
115
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '54a353743334cf7d96597a543d0e2a7c52833a31', class: "description" }, h("slot", { key: '70dd9595b638f0dc56db6ecb24a93fcca629a2d3', name: "description" }, this.description))), (this.errorDescription ||
|
|
116
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '47a26240ae8875cedb50b95d0ad41dab762af6d3', hidden: !this.error, class: "error-description" }, h("slot", { key: '0c84a7c46128a5c0960b5e2ecfda94f76ef9d7d7', name: "error-description" }, this.errorDescription)))));
|
|
117
117
|
}
|
|
118
118
|
static get is() { return "nv-fieldtext"; }
|
|
119
119
|
static get formAssociated() { return true; }
|
|
@@ -177,9 +177,9 @@ export class NvFieldtextarea {
|
|
|
177
177
|
/****************************************************************************/
|
|
178
178
|
//#region RENDER
|
|
179
179
|
render() {
|
|
180
|
-
return (h(Host, { key: '
|
|
181
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
182
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
180
|
+
return (h(Host, { key: '3011ab5796ff80bef57fa31f8c0c3862ea8b2ec9' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: '5ce143e110d23ae0812d8e3282c7cfd7013dbf8c', htmlFor: this.inputId }, h("slot", { key: 'd2aec99e424f7acef8b6831ce88a094e7b97d5a2', name: "label" }, this.label))), h("div", { key: 'd7ca0f0a7002649b62c90a0f414ce951a45fb36f', class: "textarea-wrapper" }, h("div", { key: '7052a545876c11736cc851099aeca3d827e23e94', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h("textarea", { key: 'efd08cdc7604f7394beb6040c4a4e85fffdd01a5', id: this.inputId, ref: e => (this.textareaElement = e), placeholder: this.placeholder, autofocus: this.autofocus, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, maxlength: this.maxlength, minlength: this.minlength, autocomplete: "off", value: this.value, onInput: this.handleTextarea, rows: this.rows, class: clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
|
|
181
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '03c0ac2d2a63ac5836ec45b64fa368d7e6462e41', class: "description" }, h("slot", { key: 'afe544101550988895f12598adbc13e25d5f221f', name: "description" }, this.description))), (this.errorDescription ||
|
|
182
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '45f08a76bf8abfc53a231d4e8977bbe6ed80b64d', hidden: !this.error, class: "error-description" }, h("slot", { key: '4f37c2099badf5ccf9b58bb5ce71292c3b2baae5', name: "error-description" }, this.errorDescription)))));
|
|
183
183
|
}
|
|
184
184
|
static get is() { return "nv-fieldtextarea"; }
|
|
185
185
|
static get formAssociated() { return true; }
|
|
@@ -153,6 +153,7 @@ export class NvFieldtime {
|
|
|
153
153
|
if (firstVisibleType && this.inputElements[firstVisibleType]) {
|
|
154
154
|
this.inputElements[firstVisibleType].blur();
|
|
155
155
|
}
|
|
156
|
+
this.open = false;
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
159
|
//#endregion LISTENERS
|
|
@@ -827,9 +828,9 @@ export class NvFieldtime {
|
|
|
827
828
|
}, key: `${option}-${index}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
|
|
828
829
|
}
|
|
829
830
|
render() {
|
|
830
|
-
return (h(Host, { key: '
|
|
831
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
832
|
-
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '
|
|
831
|
+
return (h(Host, { key: 'f66fe2a29f23a0bc967821a0c9bca4347b622286', onclick: (e) => this.handleHostClick(e), "aria-expanded": this.open ? 'true' : 'false' }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'f01ce1b034b1b547cbdde5814db9357ee1913e04', htmlFor: this.inputId }, h("slot", { key: 'd81dcb20883b93280db6e76e0299f679f1f9ed84', name: "label" }, this.label))), h("nv-popover", { key: '8c9e83002edcfba89ca4ca282fc82db714ed2f43', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h("div", { key: '3a5b26e4be67f277ead2a9fe2f04e5d12a4bd596', class: "input-wrapper", slot: "trigger" }, h("slot", { key: '2ea5f8269c6f0892c53a002a298ca3ceed8f8a00', name: "before-input" }), h("div", { key: 'ab97bbbf183118d7b510f82c800b4a3fa1fefda3', class: "input-container" }, h("slot", { key: 'a80d2f68b24d4226c18bf0df18ebf13ac6e0873e', name: "leading-input" }), this.renderTimeInputFields(), h("nv-iconbutton", { key: '1f7aacf1ab073c0c6ef10b50e948a7ecbca4dd75', name: 'clock', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide time picker' : 'Show time picker', onClick: () => this.HandleDropdownIconClick() }), this.error && (h("nv-icon", { key: '8f414a3b3daae6f0625b3c62b920621bf8698db3', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h("nv-icon", { key: '13b5671664466b6bb50f2561b5cffb96517a1068', name: "circle-check", class: "validation", size: "sm" }))), h("slot", { key: 'b5d6085a9864ef84d4113062a0b1cb8a807ab241', name: "after-input" })), h("div", { key: '2950c5fac3a0f219e5db2e3a7e9f605d86e50aa2', class: "time-dropdown", slot: "content" }, h("div", { key: 'c5b7ff3818a05e1f6d7ca76657f57b85bb595345', class: "time-columns" }, this.renderTimeDropdownColumns()))), (this.description ||
|
|
832
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: 'c8cb90fad74721a9b5eb0ab50980f3fd7c587e62', class: "description" }, h("slot", { key: '641d1a6a9dbf580267664831d5b371a601afb039', name: "description" }, this.description))), (this.errorDescription ||
|
|
833
|
+
this.el.querySelector('[slot="error-description"]')) && (h("div", { key: '5721b81d7a16b626bfa7c3af20897f33b7c37080', hidden: !this.error, class: "error-description" }, h("slot", { key: '84cef1043666ab6dd86f70d4ba0054d7f33ca589', name: "error-description" }, this.errorDescription)))));
|
|
833
834
|
}
|
|
834
835
|
static get is() { return "nv-fieldtime"; }
|
|
835
836
|
static get formAssociated() { return true; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nv-fieldtime.js","sourceRoot":"","sources":["../../../src/components/nv-fieldtime/nv-fieldtime.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EAEvB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;GAUG;AAOH,MAAM,OAAO,WAAW;IANxB;QASE,iDAAiD;QACzC,kBAAa,GAAwC,EAAE,CAAC;QAExD,mBAAc,GAA+B,EAAE,CAAC;QAIhD,gBAAW,GAAa,QAAQ,CAAC,KAAK,CAAC;QAE/C,8EAA8E;QAC9E,gBAAgB;QAGhB,UAAK,GAAW,IAAI,CAAC;QAErB,YAAO,GAAW,IAAI,CAAC;QAEvB,YAAO,GAAW,IAAI,CAAC;QAoBvB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QAEpC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;WAGG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAUnC;;;WAGG;QAEM,YAAO,GAAY,KAAK,CAAC;QAElC;;;;WAIG;QAEM,UAAK,GAAY,KAAK,CAAC;QAUhC;;;;;;;;;;;;;WAaG;QAEM,WAAM,GACb,UAAU,CAAC;QAUb;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["/* eslint-disable react/jsx-no-bind */\nimport {\n Component,\n Host,\n h,\n State,\n Element,\n Event,\n EventEmitter,\n Prop,\n Watch,\n Listen,\n forceUpdate,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { TimeType } from '../../utils/constants';\nimport {\n parseValueByFormat,\n reconstructTimeByFormat,\n TimeComponents,\n isValidFormatValue,\n FORMAT_CONFIGS,\n getVisibleTimeTypes,\n} from './utils/format-utils';\n\n/**\n * A format-aware time input component that displays only relevant input fields based on the specified format.\n * The component ensures consistency between the format property and both input validation and value emission.\n *\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n */\n@Component({\n tag: 'nv-fieldtime',\n styleUrl: 'styles/nv-fieldtime.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class NvFieldtime {\n @Element() el: HTMLNvFieldtimeElement;\n\n // Input elements for hours, minutes, and seconds\n private inputElements: { [key: string]: HTMLInputElement } = {};\n\n private inputZeroAdded: { [key: string]: boolean } = {};\n\n private popoverElement!: HTMLNvPopoverElement;\n\n private typeFocused: TimeType = TimeType.Hours;\n\n /****************************************************************************/\n //#region STATES\n\n @State()\n hours: string = '00';\n @State()\n minutes: string = '00';\n @State()\n seconds: string = '00';\n\n //#endregion STATES\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * The current value of the time input in the specified format.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * Lets you define the text that explains what users should enter in the time\n * input field. It's a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Display the input field's content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won't be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * The disabled prop lets you turn off the input field so that users can't\n * interact with it. When disabled, the field is grayed out and won't respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input's data in form submissions.\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * Changes the input field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * Alters the input field's appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true })\n readonly error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the time\n * field.\n * @validator message\n */\n @Prop({ reflect: true })\n readonly errorDescription: string;\n\n /**\n * Specifies the time format to be used.\n * Available formats:\n * - HH: 24-hour format (00-23)\n * - HH:mm: 24-hour format with minutes (00:00-23:59)\n * - HH:mm:ss: 24-hour format with minutes and seconds (00:00:00-23:59:59)\n * - hh: 12-hour format (01-12)\n * - hh:mm: 12-hour format with minutes (01:00-12:59)\n * - hh:mm:ss: 12-hour format with minutes and seconds (01:00:00-12:59:59)\n *\n * The component automatically shows only the relevant input fields based on the selected format.\n * When the format changes dynamically, the component re-parses the current value and updates\n * the visible fields accordingly.\n */\n @Prop({ reflect: true })\n readonly format: 'HH' | 'HH:mm' | 'HH:mm:ss' | 'hh' | 'hh:mm' | 'hh:mm:ss' =\n 'HH:mm:ss';\n\n /**\n * Add helpful hints or extra information under the time input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions.\n */\n @Prop({ reflect: true })\n readonly description: string;\n\n /**\n * State of the time picker popover.\n */\n @Prop({ reflect: true, mutable: true })\n open: boolean = false;\n\n /**\n * The step interval in milliseconds for time increments/decrements.\n * This affects how the time changes when using arrow keys or spinners.\n */\n @Prop({ reflect: true })\n readonly step: number = 60000; // In secondes\n\n /**\n * The maximum time value that can be selected.\n */\n @Prop({ reflect: true })\n readonly max: string;\n\n /**\n * The minimum time value that can be selected.\n */\n @Prop({ reflect: true })\n readonly min: string;\n\n /**\n * Applies focus to the input field as soon as the component is mounted. This\n * is equivalent to setting the native autofocus attribute on an <input>\n * element.\n */\n @Prop({ reflect: true })\n // eslint-disable-next-line @stencil-community/reserved-member-names\n readonly autofocus: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emit an event when the time value changes.\n * The event detail contains the new time value in the format specified by the format property.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region LISTENERS\n\n @Listen('openChanged')\n handleOpenChanged(event: CustomEvent<boolean>) {\n // Stop propagation to prevent the event from affecting parent components like dialogs\n event.stopPropagation();\n\n // Update `open` based on the popover state\n this.open = event.detail;\n }\n\n @Listen('keydown', { passive: false })\n handleKeyDown(event: KeyboardEvent) {\n if (!this.open) {\n if (event.key === 'ArrowDown') {\n this.open = true;\n\n event.preventDefault();\n return;\n }\n return;\n }\n\n // Verify if the popover element is defined\n if (!this.popoverElement) {\n console.warn('nv-fieldtime -> Popover element is not defined');\n return;\n }\n\n const stringSelector = `.time-column.time-column-${this.typeFocused} div`;\n const items = Array.from(\n this.el.querySelectorAll<HTMLElement>(stringSelector),\n );\n\n // Verify if there are items to navigate\n if (items.length === 0) {\n console.warn('nv-fieldtime -> No dropdown items found to navigate');\n return;\n }\n\n let currentIndex = items.findIndex(item =>\n item.classList.contains('highlighted'),\n );\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n currentIndex = (currentIndex + 1) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n currentIndex = (currentIndex - 1 + items.length) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'Enter' && currentIndex >= 0) {\n event.preventDefault();\n items[currentIndex].click();\n\n // Navigate to the next visible field\n const visibleTypes = getVisibleTimeTypes(this.format);\n const currentTypeIndex = visibleTypes.indexOf(this.typeFocused);\n const nextTypeIndex = currentTypeIndex + 1;\n\n if (nextTypeIndex < visibleTypes.length) {\n const nextType = visibleTypes[nextTypeIndex];\n this.inputElements[nextType]?.focus();\n this.inputElements[nextType]?.select();\n }\n } else if (event.key === 'Escape') {\n event.preventDefault();\n\n const visibleTypes = getVisibleTimeTypes(this.format);\n const firstVisibleType = visibleTypes[0];\n\n if (firstVisibleType && this.inputElements[firstVisibleType]) {\n this.inputElements[firstVisibleType].blur();\n }\n }\n }\n\n //#endregion LISTENERS\n /****************************************************************************/\n //#region WATCHERS\n\n @Watch('value')\n handleValueChange(newValue: string) {\n // Parse the new value and ensure it's in the correct format\n if (newValue) {\n const components = parseValueByFormat(newValue, this.format);\n const formattedValue = reconstructTimeByFormat(components, this.format);\n\n // Only emit if the formatted value is different from what we received\n // This prevents infinite loops while ensuring format consistency\n if (formattedValue !== newValue) {\n this.value = formattedValue;\n return; // The watcher will be called again with the formatted value\n }\n }\n\n // Emit the value in the correct format\n this.valueChanged.emit(newValue);\n }\n\n @Watch('open')\n handleOpenChange(newOpen: boolean) {\n // React to external changes, e.g., highlight current time on open\n if (newOpen) {\n // Re-highlight columns based on current value\n const hourSelector = `.time-column.time-column-${TimeType.Hours} div`;\n this.updateColumnHighlight(hourSelector, this.hours);\n const minutesSelector = `.time-column.time-column-${TimeType.Minutes} div`;\n this.updateColumnHighlight(minutesSelector, this.minutes);\n const secondsSelector = `.time-column.time-column-${TimeType.Seconds} div`;\n this.updateColumnHighlight(secondsSelector, this.seconds);\n }\n }\n\n @Watch('format')\n handleFormatChange(newFormat: string, oldFormat: string) {\n if (newFormat === oldFormat) {\n return; // No change, nothing to do\n }\n\n // Re-parse the current value with the new format\n const currentValue = this.value || this.reconstructTime();\n\n // Parse the current value using the old format to get the time components\n const components = parseValueByFormat(\n currentValue,\n oldFormat || 'HH:mm:ss',\n );\n\n // Update the component state with the parsed components\n this.hours = components.hours;\n this.minutes = components.minutes;\n this.seconds = components.seconds;\n\n // Reconstruct the time value in the new format\n const newValue = reconstructTimeByFormat(components, newFormat);\n\n // Update the value, which will trigger the value watcher and emit the event\n this.value = newValue;\n\n // Force a re-render to update the visible input fields\n forceUpdate(this.el);\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region METHODS\n\n private handleInputChange(e: InputEvent, type: TimeType): void {\n const inputElement = e.target as HTMLInputElement;\n const inputValue = inputElement.value.replace(/[^0-9]/g, ''); // Only keep numeric input\n\n // Check if this field is visible for the current format\n const visibleTypes = getVisibleTimeTypes(this.format);\n if (!visibleTypes.includes(type)) {\n return; // Don't process input for non-visible fields\n }\n\n // Update the time value based on the type\n switch (type) {\n case TimeType.Hours:\n this.handleHoursChange(inputValue, type);\n break;\n case TimeType.Minutes:\n this.handleMinutesChange(inputValue, type);\n break;\n case TimeType.Seconds:\n this.handleSecondsChange(inputValue, type);\n break;\n }\n\n // Reconstruct time from inputs in the correct format\n const reconstructedValue = this.reconstructTime();\n\n // Update the value, which will trigger the watcher and emit the event\n this.value = reconstructedValue;\n }\n\n private handleHoursChange(inputValue: string, type: TimeType): void {\n const isHHFormat = this.format.startsWith('HH');\n const maxHours = isHHFormat ? 24 : 12;\n\n // Handle empty input\n if (inputValue.length === 0) {\n this.hours = '00';\n return;\n }\n\n if (inputValue.length === 1) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.padStart(2, '0');\n this.hours = newInputValue;\n } else if (this.inputZeroAdded[type]) {\n this.inputZeroAdded[type] = false;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxHours) {\n this.hours = '00';\n } else {\n this.hours = newInputValue;\n }\n } else if (inputValue.length > 2) {\n if (inputValue.startsWith('00')) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n this.hours = newInputValue;\n } else {\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxHours) {\n this.hours = '00';\n } else {\n this.hours = parsedNewInputValue.toString();\n }\n }\n } else {\n const parsedNewInputValue = parseInt(inputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxHours) {\n this.hours = '00';\n } else {\n // For direct input, remove unnecessary leading zeros (e.g., '01' becomes '1')\n this.hours = parsedNewInputValue.toString();\n }\n }\n\n // Auto-navigation to next field when input is complete\n if (this.hours.length >= 1 && !this.inputZeroAdded[type]) {\n const visibleTypes = getVisibleTimeTypes(this.format);\n const currentTypeIndex = visibleTypes.indexOf(TimeType.Hours);\n const nextTypeIndex = currentTypeIndex + 1;\n\n if (nextTypeIndex < visibleTypes.length) {\n const nextType = visibleTypes[nextTypeIndex];\n this.inputElements[nextType]?.focus();\n this.inputElements[nextType]?.select();\n }\n }\n }\n\n private handleMinutesChange(inputValue: string, type: TimeType): void {\n const maxMinutes = 60;\n\n // Handle empty input\n if (inputValue.length === 0) {\n this.minutes = '00';\n return;\n }\n\n if (inputValue.length === 1) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.padStart(2, '0');\n this.minutes = newInputValue;\n } else if (this.inputZeroAdded[type]) {\n this.inputZeroAdded[type] = false;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxMinutes) {\n this.minutes = '00';\n } else {\n this.minutes = newInputValue;\n }\n } else if (inputValue.length > 2) {\n if (inputValue.startsWith('00')) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n this.minutes = newInputValue;\n } else {\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxMinutes) {\n this.minutes = '00';\n } else {\n this.minutes = parsedNewInputValue.toString();\n }\n }\n } else {\n const parsedNewInputValue = parseInt(inputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxMinutes) {\n this.minutes = '00';\n } else {\n // For direct input, remove unnecessary leading zeros (e.g., '01' becomes '1')\n this.minutes = parsedNewInputValue.toString();\n }\n }\n\n // Auto-navigation to next field when input is complete\n if (this.minutes.length >= 1 && !this.inputZeroAdded[type]) {\n const visibleTypes = getVisibleTimeTypes(this.format);\n const currentTypeIndex = visibleTypes.indexOf(TimeType.Minutes);\n const nextTypeIndex = currentTypeIndex + 1;\n\n if (nextTypeIndex < visibleTypes.length) {\n const nextType = visibleTypes[nextTypeIndex];\n this.inputElements[nextType]?.focus();\n this.inputElements[nextType]?.select();\n }\n }\n }\n\n private handleSecondsChange(inputValue: string, type: TimeType): void {\n const maxSeconds = 60;\n\n // Handle empty input\n if (inputValue.length === 0) {\n this.seconds = '00';\n return;\n }\n\n if (inputValue.length === 1) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.padStart(2, '0');\n this.seconds = newInputValue;\n } else if (this.inputZeroAdded[type]) {\n this.inputZeroAdded[type] = false;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxSeconds) {\n this.seconds = '00';\n } else {\n this.seconds = newInputValue;\n }\n } else if (inputValue.length > 2) {\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxSeconds) {\n this.seconds = '00';\n } else {\n this.seconds = parsedNewInputValue.toString();\n }\n } else {\n const parsedNewInputValue = parseInt(inputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxSeconds) {\n this.seconds = '00';\n } else {\n // For direct input, remove unnecessary leading zeros (e.g., '01' becomes '1')\n this.seconds = parsedNewInputValue.toString();\n }\n }\n\n // No auto-navigation for seconds field as it's typically the last field\n }\n\n // Parse a time string according to the current format\n private parseTime(timeString: string): void {\n if (!timeString) {\n return;\n }\n\n // Use format-aware parsing without constraint application\n const components = parseValueByFormat(timeString, this.format);\n\n // Set the parsed values without applying min/max constraints\n this.hours = components.hours;\n this.minutes = components.minutes;\n this.seconds = components.seconds;\n }\n\n private reconstructTime(): string {\n const components: TimeComponents = {\n hours: this.hours,\n minutes: this.minutes,\n seconds: this.seconds,\n };\n\n // Ensure the reconstructed time is in the correct format\n const reconstructedTime = reconstructTimeByFormat(components, this.format);\n\n // Validate that the reconstructed time matches the expected format\n if (!isValidFormatValue(reconstructedTime, this.format)) {\n // If invalid, return the default value for this format\n const config = FORMAT_CONFIGS[this.format];\n return config ? config.defaultValue : reconstructedTime;\n }\n\n return reconstructedTime;\n }\n\n private handleFocus(type: TimeType): void {\n if (this.readonly || this.disabled) {\n return;\n }\n\n // Check if this field is visible for the current format\n const visibleTypes = getVisibleTimeTypes(this.format);\n if (!visibleTypes.includes(type)) {\n return; // Don't handle focus for non-visible fields\n }\n\n if (!this.open) {\n this.open = true; // Force the popover to open\n }\n\n // Refocus on the input if it loses focus and is empty\n if (\n this.inputElements[type]?.value.length === 0 ||\n this.inputElements[type]?.value === '00'\n ) {\n this.inputElements[type]?.focus();\n this.inputElements[type]?.select();\n }\n\n this.typeFocused = type;\n }\n\n private HandleDropdownIconClick(): void {\n if (this.disabled || this.readonly) {\n return; // Do not toggle if disabled or read-only\n }\n\n const visibleTypes = getVisibleTimeTypes(this.format);\n const firstVisibleType = visibleTypes[0];\n\n if (this.open) {\n this.open = false; // Close the popover if it is open\n } else if (\n !this.open &&\n firstVisibleType &&\n this.inputElements[firstVisibleType]\n ) {\n this.inputElements[firstVisibleType]?.focus(); // Focus will open the popover\n this.inputElements[firstVisibleType]?.select();\n } else {\n console.warn('nv-fieldtime -> No visible input elements found to focus');\n }\n }\n\n private updateHighlightedItem(items: HTMLElement[], index: number) {\n items.forEach((item, i) => {\n if (i === index) {\n item.classList.add('highlighted');\n item.setAttribute('tabindex', '0');\n item.focus(); // Forcer le focus ici\n item.scrollIntoView({ block: 'nearest' });\n } else {\n item.classList.remove('highlighted');\n item.setAttribute('tabindex', '-1');\n }\n });\n }\n\n private handleTimeOptionClick(event: MouseEvent, type: TimeType): void {\n const option = parseInt(\n (event.target as HTMLElement).textContent || '0',\n 10,\n );\n\n // Update the time component directly without constraint validation\n // Dropdown options are already filtered by constraints during generation\n if (type === TimeType.Hours) {\n this.hours = option.toString().padStart(2, '0');\n } else if (type === TimeType.Minutes) {\n this.minutes = option.toString().padStart(2, '0');\n } else if (type === TimeType.Seconds) {\n this.seconds = option.toString().padStart(2, '0');\n }\n\n // Reconstruct time in the correct format and update value\n const reconstructedTime = this.reconstructTime();\n this.value = reconstructedTime;\n }\n\n private handleInputBlur(): void {\n // Use a delay to check if the focus is still within the popover\n setTimeout(() => {\n if (!this.el.contains(document.activeElement)) {\n if (this.open) {\n this.open = false; // Close the popover if the focus is outside the component\n }\n }\n }, 150);\n }\n\n private handleClickOutside(event: MouseEvent) {\n const target = event.target as Node;\n\n // Check if the click is inside the component or any of the input elements\n if (\n this.el.contains(target) ||\n Object.values(this.inputElements).some(input => input.contains(target))\n ) {\n return;\n }\n\n if (this.open) {\n this.open = false; // Close the popover if the click is outside\n }\n }\n\n private handleScroll(e: Event, type: TimeType): void {\n const target = e.target as HTMLElement;\n const scrollTop = target.scrollTop;\n const containerHeight = target.clientHeight;\n const scrollHeight = target.scrollHeight;\n\n // Define the height of each item, this could be dynamic if the height varies\n const itemHeight = 40; // Consider making this configurable or dynamic\n const options = this.generateTimeOptions(type); // Generates the list of time options\n const singleSetHeight = options.length * itemHeight;\n\n // Check if the scroll is near the bottom or top and reset to the first set\n if (\n scrollTop + containerHeight >= scrollHeight - itemHeight ||\n scrollTop <= 0\n ) {\n target.scrollTop = singleSetHeight; // Reset to the first set from the bottom\n }\n }\n\n private generateTimeOptions(type: TimeType) {\n // Convert the step in seconds\n const stepInSeconds = this.step / 1000;\n\n // Handle edge case for zero step\n if (stepInSeconds === 0) {\n return ['00']; // Just return the default value\n }\n\n // Generate the time options based on the type\n switch (type) {\n case TimeType.Hours:\n return this.generateHourOptions(stepInSeconds);\n\n case TimeType.Minutes:\n return this.generateMinuteOptions(stepInSeconds);\n\n case TimeType.Seconds:\n return this.generateSecondOptions(stepInSeconds);\n\n default:\n return [];\n }\n }\n\n private generateHourOptions(stepInSeconds: number): string[] {\n const hourStep = Math.max(1, Math.floor(stepInSeconds / 3600)); // Prevent step < 1\n const is12HourFormat = this.format.startsWith('hh');\n\n // Set proper hour ranges based on format\n const defaultMaxHour = is12HourFormat ? 12 : 23;\n const defaultMinHour = is12HourFormat ? 1 : 0;\n\n const maxHour = this.parseHour(this.max, this.format);\n const minHour = this.parseHour(this.min, this.format);\n\n const maxHourValue = maxHour ? parseInt(maxHour, 10) : defaultMaxHour;\n const minHourValue = minHour ? parseInt(minHour, 10) : defaultMinHour;\n\n const values: string[] = [];\n\n for (let i = minHourValue; i <= maxHourValue; i += hourStep) {\n const hourStr = i.toString().padStart(2, '0');\n values.push(hourStr);\n }\n\n return values;\n }\n\n /**\n * Parse hour value from min/max constraint strings for dropdown generation only.\n * This method is used exclusively for filtering dropdown options and should not\n * affect input values or validation.\n * @param {string} value - The time string to parse (e.g., \"14:30\" or \"02:30\")\n * @param {string} format - The time format string (e.g., \"HH:mm\" or \"hh:mm\")\n * @returns {string} The parsed hour string or null if invalid\n */\n private parseHour(value: string | null, format: string): string | null {\n if (!value) return null;\n const [hourStr] = value.split(':');\n const hour = parseInt(hourStr, 10);\n if (isNaN(hour)) return null;\n if (format.startsWith('hh'))\n return hour > 0 && hour <= 12 ? hourStr.padStart(2, '0') : null;\n return hour >= 0 && hour <= 24 ? hourStr.padStart(2, '0') : null;\n }\n\n private generateMinuteOptions(stepInSeconds: number): string[] {\n const minuteStep = Math.max(1, Math.floor((stepInSeconds % 3600) / 60)); // Ensure step >= 1\n const minMinute = this.parseMinute(this.min) ?? 0;\n const maxMinute = this.parseMinute(this.max) ?? 59;\n\n if (minMinute === 0 && maxMinute === 0) return ['00']; // Handle edge case for zero minutes\n\n const values: string[] = [];\n\n for (let i = minMinute; i <= maxMinute; i += minuteStep) {\n const minuteStr = i.toString().padStart(2, '0');\n values.push(minuteStr);\n }\n\n return values;\n }\n\n /**\n * Parse minute value from min/max constraint strings for dropdown generation only.\n * This method is used exclusively for filtering dropdown options and should not\n * affect input values or validation.\n * @param {string} value - The time string to parse (e.g., \"14:30\" or \"02:30\")\n * @returns {number} The parsed minute number or null if invalid\n */\n private parseMinute(value: string | null): number | null {\n if (!value) return null;\n const parts = value.split(':');\n if (parts.length < 2) return null; // Expect at least \"hh:mm\"\n const minute = parseInt(parts[1], 10);\n return isNaN(minute) || minute < 0 || minute >= 60 ? null : minute;\n }\n\n private generateSecondOptions(stepInSeconds: number): string[] {\n const secondStep = Math.max(1, stepInSeconds % 60); // Ensure step >= 1\n const minSecond = this.parseSecond(this.min) ?? 0;\n const maxSecond = this.parseSecond(this.max) ?? 59;\n\n if (minSecond === 0 && maxSecond === 0) return ['00']; // Handle edge case for zero seconds\n\n const values: string[] = [];\n\n for (let i = minSecond; i <= maxSecond; i += secondStep) {\n const secondStr = i.toString().padStart(2, '0');\n values.push(secondStr);\n }\n\n return values;\n }\n\n /**\n * Parse second value from min/max constraint strings for dropdown generation only.\n * This method is used exclusively for filtering dropdown options and should not\n * affect input values or validation.\n * @param {string} value - The time string to parse (e.g., \"14:30:45\" or \"02:30:45\")\n * @returns {number} The parsed second number or null if invalid\n */\n private parseSecond(value: string | null): number | null {\n if (!value) return null;\n const parts = value.split(':');\n if (parts.length < 3) return null; // Expect \"hh:mm:ss\" or \"HH:mm:ss\"\n const second = parseInt(parts[2], 10);\n return isNaN(second) || second < 0 || second >= 60 ? null : second;\n }\n\n private generateInfiniteTimeOptions(type: TimeType): string[] {\n const options = this.generateTimeOptions(type);\n const totalOptions = options.length;\n\n // Dynamically calculate repetitions based on a target number of items (e.g., 300 items)\n const repetitions = Math.ceil(300 / totalOptions);\n return Array(repetitions).fill(options).flat();\n }\n\n private updateColumnHighlight(selector, value): void {\n const items = Array.from(this.el.querySelectorAll<HTMLElement>(selector));\n\n const index = items.findIndex(x => x.textContent === value);\n this.updateHighlightedItem(items, index);\n }\n\n private handleHostClick(event: MouseEvent): void {\n if (this.disabled || this.readonly) {\n return;\n }\n\n const targetElement = event.target as HTMLElement;\n\n // Check if the click target or its ancestors are inside an nv-iconbutton element\n if (targetElement.closest('nv-iconbutton')) {\n return; // Handle icon button click separately\n }\n\n if (!this.open) {\n if (this.inputElements) {\n // Focus on the first visible field based on format\n const visibleTypes = getVisibleTimeTypes(this.format);\n const firstVisibleType = visibleTypes[0];\n\n if (firstVisibleType && this.inputElements[firstVisibleType]) {\n this.inputElements[firstVisibleType]?.focus();\n this.inputElements[firstVisibleType]?.select();\n }\n }\n\n event.preventDefault();\n }\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillLoad() {\n document.addEventListener('click', this.handleClickOutside.bind(this));\n\n // Initialize component state based on format and value\n if (this.value) {\n // Parse the provided value using format-aware parsing without constraint application\n this.parseTime(this.value);\n } else {\n // Initialize with format-appropriate default values without any constraint application\n // Use format-specific defaults: '01' for 12-hour formats, '00' for 24-hour formats\n const defaultComponents = parseValueByFormat('', this.format);\n\n // Set default values directly without any min/max constraint validation\n this.hours = defaultComponents.hours;\n this.minutes = defaultComponents.minutes;\n this.seconds = defaultComponents.seconds;\n\n // Set the initial value in the correct format without constraint validation\n // This ensures the component has a proper initial state for the value watcher\n const initialValue = reconstructTimeByFormat(\n defaultComponents,\n this.format,\n );\n this.value = initialValue;\n }\n }\n\n connectedCallback() {\n document.addEventListener('click', this.handleClickOutside.bind(this));\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside.bind(this));\n }\n\n componentDidLoad() {\n // Initialize dropdown highlighting based on current component state\n // This ensures proper visual feedback without applying any constraints\n\n // Update highlighted items for hours based on current state\n const hourSelector = `.time-column.time-column-hours div`;\n this.updateColumnHighlight(hourSelector, this.hours);\n\n // Update highlighted items for minutes based on current state\n const minuteSelector = `.time-column.time-column-minutes div`;\n this.updateColumnHighlight(minuteSelector, this.minutes);\n\n // Update highlighted items for seconds based on current state\n const secondSelector = `.time-column.time-column-seconds div`;\n this.updateColumnHighlight(secondSelector, this.seconds);\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n /**\n * Renders input fields based on the current format\n * Only shows fields that are relevant to the selected format\n * @returns {HTMLElement[]} Array of HTML elements for time input fields\n */\n private renderTimeInputFields(): HTMLElement[] {\n const visibleTypes = getVisibleTimeTypes(this.format);\n const elements: HTMLElement[] = [];\n\n visibleTypes.forEach((type, index) => {\n // Add separator colon before minutes and seconds (but not before the first field)\n if (index > 0) {\n elements.push(<span>:</span>);\n }\n\n // Add the input field for this time type\n elements.push(this.renderTimeInputField(type));\n });\n\n return elements;\n }\n\n /**\n * Renders a single time input field for the specified type\n * @param {TimeType} type - The time type to render input for\n * @returns {HTMLInputElement} HTML input element for the specified time type\n */\n private renderTimeInputField(type: TimeType): HTMLInputElement {\n const getValue = () => {\n switch (type) {\n case TimeType.Hours:\n return this.hours;\n case TimeType.Minutes:\n return this.minutes;\n case TimeType.Seconds:\n return this.seconds;\n default:\n return '00';\n }\n };\n\n const getPlaceholder = () => {\n switch (type) {\n case TimeType.Hours:\n return this.format.includes('hh') ? 'hh' : 'HH';\n case TimeType.Minutes:\n return 'mm';\n case TimeType.Seconds:\n return 'ss';\n default:\n return '';\n }\n };\n\n const getId = () => {\n switch (type) {\n case TimeType.Hours:\n return this.inputId;\n case TimeType.Minutes:\n return `${this.inputId}-minutes`;\n case TimeType.Seconds:\n return `${this.inputId}-seconds`;\n default:\n return this.inputId;\n }\n };\n\n // Remove min/max constraints from input elements to allow native stepper behavior\n // Constraints are only applied to dropdown options, not input steppers\n\n return (\n <input\n ref={el => (this.inputElements[type] = el)}\n type=\"number\"\n autofocus={\n this.autofocus && type === getVisibleTimeTypes(this.format)[0]\n }\n class=\"time-input\"\n pattern=\"[0-9]*\"\n maxlength=\"3\"\n value={getValue()}\n onInput={e => this.handleInputChange(e, type)}\n placeholder={getPlaceholder()}\n inputMode=\"numeric\"\n onFocus={() => this.handleFocus(type)}\n name={this.name ? `${type}-${this.name}` : type}\n id={getId()}\n readonly={this.readonly}\n disabled={this.disabled}\n required={this.required}\n onKeyDown={e => this.handleKeyDown(e)}\n onBlur={() => this.handleInputBlur()}\n />\n );\n }\n\n /**\n * Renders dropdown columns based on the current format\n * Only shows columns that are relevant to the selected format\n * @returns {HTMLElement[]} Array of HTML elements for time dropdown columns\n */\n private renderTimeDropdownColumns(): HTMLElement[] {\n const visibleTypes = getVisibleTimeTypes(this.format);\n return visibleTypes.map(type => this.RenderTimeOptionsColumn(type));\n }\n\n private RenderTimeOptionsColumn(type: TimeType): HTMLElement {\n return (\n <div\n class={`time-column time-column-${type}`}\n onScroll={e => this.handleScroll(e, type)}\n >\n {/* Hours */}\n {this.generateInfiniteTimeOptions(type).map((option, index) => (\n <div\n class={{\n 'time-option': true,\n 'selected':\n (type === TimeType.Hours && option === this.hours) ||\n (type === TimeType.Minutes && option === this.minutes) ||\n (type === TimeType.Seconds && option === this.seconds),\n }}\n key={`${option}-${index}`}\n onClick={e => this.handleTimeOptionClick(e, type)}\n >\n {option}\n </div>\n ))}\n </div>\n );\n }\n\n render() {\n return (\n <Host\n onclick={(e: MouseEvent) => this.handleHostClick(e)}\n aria-expanded={this.open ? 'true' : 'false'}\n >\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <nv-popover\n ref={el => (this.popoverElement = el as HTMLNvPopoverElement)}\n triggerMode=\"controlled\"\n placement=\"bottom-start\"\n open={this.open}\n >\n <div class=\"input-wrapper\" slot=\"trigger\">\n <slot name=\"before-input\"></slot>\n\n <div class=\"input-container\">\n <slot name=\"leading-input\"></slot>\n {/* Render input fields based on format */}\n {this.renderTimeInputFields()}\n\n <nv-iconbutton\n name={'clock'}\n size=\"md\"\n emphasis=\"lower\"\n aria-label={this.open ? 'Hide time picker' : 'Show time picker'}\n onClick={() => this.HandleDropdownIconClick()}\n />\n\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n <div class=\"time-dropdown\" slot=\"content\">\n <div class=\"time-columns\">{this.renderTimeDropdownColumns()}</div>\n </div>\n </nv-popover>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
|
|
1
|
+
{"version":3,"file":"nv-fieldtime.js","sourceRoot":"","sources":["../../../src/components/nv-fieldtime/nv-fieldtime.tsx"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,OAAO,EACL,SAAS,EACT,IAAI,EACJ,CAAC,EACD,KAAK,EACL,OAAO,EACP,KAAK,EAEL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,IAAI,MAAM,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EACL,kBAAkB,EAClB,uBAAuB,EAEvB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,GACpB,MAAM,sBAAsB,CAAC;AAE9B;;;;;;;;;;GAUG;AAOH,MAAM,OAAO,WAAW;IANxB;QASE,iDAAiD;QACzC,kBAAa,GAAwC,EAAE,CAAC;QAExD,mBAAc,GAA+B,EAAE,CAAC;QAIhD,gBAAW,GAAa,QAAQ,CAAC,KAAK,CAAC;QAE/C,8EAA8E;QAC9E,gBAAgB;QAGhB,UAAK,GAAW,IAAI,CAAC;QAErB,YAAO,GAAW,IAAI,CAAC;QAEvB,YAAO,GAAW,IAAI,CAAC;QAoBvB;;;;;WAKG;QAEM,YAAO,GAAW,MAAM,EAAE,CAAC;QAEpC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;;WAIG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAEnC;;;WAGG;QAEM,aAAQ,GAAY,KAAK,CAAC;QAUnC;;;WAGG;QAEM,YAAO,GAAY,KAA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mBAAmB,IAAE,IAAI,CAAC,gBAAgB,CAAQ,CACzD,CACP,CACI,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGF","sourcesContent":["/* eslint-disable react/jsx-no-bind */\nimport {\n Component,\n Host,\n h,\n State,\n Element,\n Event,\n EventEmitter,\n Prop,\n Watch,\n Listen,\n forceUpdate,\n} from '@stencil/core';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { TimeType } from '../../utils/constants';\nimport {\n parseValueByFormat,\n reconstructTimeByFormat,\n TimeComponents,\n isValidFormatValue,\n FORMAT_CONFIGS,\n getVisibleTimeTypes,\n} from './utils/format-utils';\n\n/**\n * A format-aware time input component that displays only relevant input fields based on the specified format.\n * The component ensures consistency between the format property and both input validation and value emission.\n *\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot before-input - Content to be placed before the input text, outside the input container.\n * @slot after-input - Content to be placed after the input text, outside the input container.\n * @slot leading-input - Content to be placed before the input text, within the input container.\n * @slot error-description - Content to be placed as the error description, will override the errorDescription prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n */\n@Component({\n tag: 'nv-fieldtime',\n styleUrl: 'styles/nv-fieldtime.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class NvFieldtime {\n @Element() el: HTMLNvFieldtimeElement;\n\n // Input elements for hours, minutes, and seconds\n private inputElements: { [key: string]: HTMLInputElement } = {};\n\n private inputZeroAdded: { [key: string]: boolean } = {};\n\n private popoverElement!: HTMLNvPopoverElement;\n\n private typeFocused: TimeType = TimeType.Hours;\n\n /****************************************************************************/\n //#region STATES\n\n @State()\n hours: string = '00';\n @State()\n minutes: string = '00';\n @State()\n seconds: string = '00';\n\n //#endregion STATES\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * The current value of the time input in the specified format.\n */\n @Prop({ reflect: true, mutable: true })\n value: string;\n\n /**\n * Lets you define the text that explains what users should enter in the time\n * input field. It's a crucial element for making forms clear and\n * user-friendly.\n */\n @Prop({ reflect: true })\n readonly label: string;\n\n /**\n * Sets the ID for the input element and the for attribute of the associated\n * label. If no ID is provided, a random one will be automatically generated\n * to ensure unique identification, facilitating proper label association and\n * accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * Display the input field's content without allowing users to change it.\n * Users can still click on it, select, and copy the text, but they won't be\n * able to type or delete anything.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n /**\n * The disabled prop lets you turn off the input field so that users can't\n * interact with it. When disabled, the field is grayed out and won't respond to\n * clicks or touches.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Marks the input field as required, ensuring that the user must fill it out\n * before submitting the form.\n */\n @Prop({ reflect: true })\n readonly required: boolean = false;\n\n /**\n * Defines the name attribute of the input field, which is crucial for form\n * submission. This value is used as the key in the key-value pair sent to\n * the server, representing the input's data in form submissions.\n */\n @Prop({ reflect: true })\n readonly name: string;\n\n /**\n * Changes the input field’s appearance to indicate successful input or\n * validation.\n */\n @Prop({ reflect: true })\n readonly success: boolean = false;\n\n /**\n * Alters the input field's appearance to indicate an error, helping users\n * identify fields that need correction.\n * @validator error\n */\n @Prop({ reflect: true })\n readonly error: boolean = false;\n\n /**\n * A description that appears when there is an error related to the time\n * field.\n * @validator message\n */\n @Prop({ reflect: true })\n readonly errorDescription: string;\n\n /**\n * Specifies the time format to be used.\n * Available formats:\n * - HH: 24-hour format (00-23)\n * - HH:mm: 24-hour format with minutes (00:00-23:59)\n * - HH:mm:ss: 24-hour format with minutes and seconds (00:00:00-23:59:59)\n * - hh: 12-hour format (01-12)\n * - hh:mm: 12-hour format with minutes (01:00-12:59)\n * - hh:mm:ss: 12-hour format with minutes and seconds (01:00:00-12:59:59)\n *\n * The component automatically shows only the relevant input fields based on the selected format.\n * When the format changes dynamically, the component re-parses the current value and updates\n * the visible fields accordingly.\n */\n @Prop({ reflect: true })\n readonly format: 'HH' | 'HH:mm' | 'HH:mm:ss' | 'hh' | 'hh:mm' | 'hh:mm:ss' =\n 'HH:mm:ss';\n\n /**\n * Add helpful hints or extra information under the time input field. This is\n * where you can clarify what users should enter or provide additional\n * instructions.\n */\n @Prop({ reflect: true })\n readonly description: string;\n\n /**\n * State of the time picker popover.\n */\n @Prop({ reflect: true, mutable: true })\n open: boolean = false;\n\n /**\n * The step interval in milliseconds for time increments/decrements.\n * This affects how the time changes when using arrow keys or spinners.\n */\n @Prop({ reflect: true })\n readonly step: number = 60000; // In secondes\n\n /**\n * The maximum time value that can be selected.\n */\n @Prop({ reflect: true })\n readonly max: string;\n\n /**\n * The minimum time value that can be selected.\n */\n @Prop({ reflect: true })\n readonly min: string;\n\n /**\n * Applies focus to the input field as soon as the component is mounted. This\n * is equivalent to setting the native autofocus attribute on an <input>\n * element.\n */\n @Prop({ reflect: true })\n // eslint-disable-next-line @stencil-community/reserved-member-names\n readonly autofocus: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emit an event when the time value changes.\n * The event detail contains the new time value in the format specified by the format property.\n * @bind value\n */\n @Event()\n valueChanged: EventEmitter<string>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region LISTENERS\n\n @Listen('openChanged')\n handleOpenChanged(event: CustomEvent<boolean>) {\n // Stop propagation to prevent the event from affecting parent components like dialogs\n event.stopPropagation();\n\n // Update `open` based on the popover state\n this.open = event.detail;\n }\n\n @Listen('keydown', { passive: false })\n handleKeyDown(event: KeyboardEvent) {\n if (!this.open) {\n if (event.key === 'ArrowDown') {\n this.open = true;\n\n event.preventDefault();\n return;\n }\n return;\n }\n\n // Verify if the popover element is defined\n if (!this.popoverElement) {\n console.warn('nv-fieldtime -> Popover element is not defined');\n return;\n }\n\n const stringSelector = `.time-column.time-column-${this.typeFocused} div`;\n const items = Array.from(\n this.el.querySelectorAll<HTMLElement>(stringSelector),\n );\n\n // Verify if there are items to navigate\n if (items.length === 0) {\n console.warn('nv-fieldtime -> No dropdown items found to navigate');\n return;\n }\n\n let currentIndex = items.findIndex(item =>\n item.classList.contains('highlighted'),\n );\n\n if (event.key === 'ArrowDown') {\n event.preventDefault();\n currentIndex = (currentIndex + 1) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'ArrowUp') {\n event.preventDefault();\n currentIndex = (currentIndex - 1 + items.length) % items.length;\n this.updateHighlightedItem(items, currentIndex);\n } else if (event.key === 'Enter' && currentIndex >= 0) {\n event.preventDefault();\n items[currentIndex].click();\n\n // Navigate to the next visible field\n const visibleTypes = getVisibleTimeTypes(this.format);\n const currentTypeIndex = visibleTypes.indexOf(this.typeFocused);\n const nextTypeIndex = currentTypeIndex + 1;\n\n if (nextTypeIndex < visibleTypes.length) {\n const nextType = visibleTypes[nextTypeIndex];\n this.inputElements[nextType]?.focus();\n this.inputElements[nextType]?.select();\n }\n } else if (event.key === 'Escape') {\n event.preventDefault();\n\n const visibleTypes = getVisibleTimeTypes(this.format);\n const firstVisibleType = visibleTypes[0];\n\n if (firstVisibleType && this.inputElements[firstVisibleType]) {\n this.inputElements[firstVisibleType].blur();\n }\n this.open = false;\n }\n }\n\n //#endregion LISTENERS\n /****************************************************************************/\n //#region WATCHERS\n\n @Watch('value')\n handleValueChange(newValue: string) {\n // Parse the new value and ensure it's in the correct format\n if (newValue) {\n const components = parseValueByFormat(newValue, this.format);\n const formattedValue = reconstructTimeByFormat(components, this.format);\n\n // Only emit if the formatted value is different from what we received\n // This prevents infinite loops while ensuring format consistency\n if (formattedValue !== newValue) {\n this.value = formattedValue;\n return; // The watcher will be called again with the formatted value\n }\n }\n\n // Emit the value in the correct format\n this.valueChanged.emit(newValue);\n }\n\n @Watch('open')\n handleOpenChange(newOpen: boolean) {\n // React to external changes, e.g., highlight current time on open\n if (newOpen) {\n // Re-highlight columns based on current value\n const hourSelector = `.time-column.time-column-${TimeType.Hours} div`;\n this.updateColumnHighlight(hourSelector, this.hours);\n const minutesSelector = `.time-column.time-column-${TimeType.Minutes} div`;\n this.updateColumnHighlight(minutesSelector, this.minutes);\n const secondsSelector = `.time-column.time-column-${TimeType.Seconds} div`;\n this.updateColumnHighlight(secondsSelector, this.seconds);\n }\n }\n\n @Watch('format')\n handleFormatChange(newFormat: string, oldFormat: string) {\n if (newFormat === oldFormat) {\n return; // No change, nothing to do\n }\n\n // Re-parse the current value with the new format\n const currentValue = this.value || this.reconstructTime();\n\n // Parse the current value using the old format to get the time components\n const components = parseValueByFormat(\n currentValue,\n oldFormat || 'HH:mm:ss',\n );\n\n // Update the component state with the parsed components\n this.hours = components.hours;\n this.minutes = components.minutes;\n this.seconds = components.seconds;\n\n // Reconstruct the time value in the new format\n const newValue = reconstructTimeByFormat(components, newFormat);\n\n // Update the value, which will trigger the value watcher and emit the event\n this.value = newValue;\n\n // Force a re-render to update the visible input fields\n forceUpdate(this.el);\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region METHODS\n\n private handleInputChange(e: InputEvent, type: TimeType): void {\n const inputElement = e.target as HTMLInputElement;\n const inputValue = inputElement.value.replace(/[^0-9]/g, ''); // Only keep numeric input\n\n // Check if this field is visible for the current format\n const visibleTypes = getVisibleTimeTypes(this.format);\n if (!visibleTypes.includes(type)) {\n return; // Don't process input for non-visible fields\n }\n\n // Update the time value based on the type\n switch (type) {\n case TimeType.Hours:\n this.handleHoursChange(inputValue, type);\n break;\n case TimeType.Minutes:\n this.handleMinutesChange(inputValue, type);\n break;\n case TimeType.Seconds:\n this.handleSecondsChange(inputValue, type);\n break;\n }\n\n // Reconstruct time from inputs in the correct format\n const reconstructedValue = this.reconstructTime();\n\n // Update the value, which will trigger the watcher and emit the event\n this.value = reconstructedValue;\n }\n\n private handleHoursChange(inputValue: string, type: TimeType): void {\n const isHHFormat = this.format.startsWith('HH');\n const maxHours = isHHFormat ? 24 : 12;\n\n // Handle empty input\n if (inputValue.length === 0) {\n this.hours = '00';\n return;\n }\n\n if (inputValue.length === 1) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.padStart(2, '0');\n this.hours = newInputValue;\n } else if (this.inputZeroAdded[type]) {\n this.inputZeroAdded[type] = false;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxHours) {\n this.hours = '00';\n } else {\n this.hours = newInputValue;\n }\n } else if (inputValue.length > 2) {\n if (inputValue.startsWith('00')) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n this.hours = newInputValue;\n } else {\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxHours) {\n this.hours = '00';\n } else {\n this.hours = parsedNewInputValue.toString();\n }\n }\n } else {\n const parsedNewInputValue = parseInt(inputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxHours) {\n this.hours = '00';\n } else {\n // For direct input, remove unnecessary leading zeros (e.g., '01' becomes '1')\n this.hours = parsedNewInputValue.toString();\n }\n }\n\n // Auto-navigation to next field when input is complete\n if (this.hours.length >= 1 && !this.inputZeroAdded[type]) {\n const visibleTypes = getVisibleTimeTypes(this.format);\n const currentTypeIndex = visibleTypes.indexOf(TimeType.Hours);\n const nextTypeIndex = currentTypeIndex + 1;\n\n if (nextTypeIndex < visibleTypes.length) {\n const nextType = visibleTypes[nextTypeIndex];\n this.inputElements[nextType]?.focus();\n this.inputElements[nextType]?.select();\n }\n }\n }\n\n private handleMinutesChange(inputValue: string, type: TimeType): void {\n const maxMinutes = 60;\n\n // Handle empty input\n if (inputValue.length === 0) {\n this.minutes = '00';\n return;\n }\n\n if (inputValue.length === 1) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.padStart(2, '0');\n this.minutes = newInputValue;\n } else if (this.inputZeroAdded[type]) {\n this.inputZeroAdded[type] = false;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxMinutes) {\n this.minutes = '00';\n } else {\n this.minutes = newInputValue;\n }\n } else if (inputValue.length > 2) {\n if (inputValue.startsWith('00')) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n this.minutes = newInputValue;\n } else {\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxMinutes) {\n this.minutes = '00';\n } else {\n this.minutes = parsedNewInputValue.toString();\n }\n }\n } else {\n const parsedNewInputValue = parseInt(inputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxMinutes) {\n this.minutes = '00';\n } else {\n // For direct input, remove unnecessary leading zeros (e.g., '01' becomes '1')\n this.minutes = parsedNewInputValue.toString();\n }\n }\n\n // Auto-navigation to next field when input is complete\n if (this.minutes.length >= 1 && !this.inputZeroAdded[type]) {\n const visibleTypes = getVisibleTimeTypes(this.format);\n const currentTypeIndex = visibleTypes.indexOf(TimeType.Minutes);\n const nextTypeIndex = currentTypeIndex + 1;\n\n if (nextTypeIndex < visibleTypes.length) {\n const nextType = visibleTypes[nextTypeIndex];\n this.inputElements[nextType]?.focus();\n this.inputElements[nextType]?.select();\n }\n }\n }\n\n private handleSecondsChange(inputValue: string, type: TimeType): void {\n const maxSeconds = 60;\n\n // Handle empty input\n if (inputValue.length === 0) {\n this.seconds = '00';\n return;\n }\n\n if (inputValue.length === 1) {\n this.inputZeroAdded[type] = true;\n const newInputValue = inputValue.padStart(2, '0');\n this.seconds = newInputValue;\n } else if (this.inputZeroAdded[type]) {\n this.inputZeroAdded[type] = false;\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxSeconds) {\n this.seconds = '00';\n } else {\n this.seconds = newInputValue;\n }\n } else if (inputValue.length > 2) {\n const newInputValue = inputValue.slice(1, 3).padStart(2, '0');\n const parsedNewInputValue = parseInt(newInputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxSeconds) {\n this.seconds = '00';\n } else {\n this.seconds = parsedNewInputValue.toString();\n }\n } else {\n const parsedNewInputValue = parseInt(inputValue, 10) || 0;\n\n // Only apply format validation (not min/max constraints)\n if (parsedNewInputValue >= maxSeconds) {\n this.seconds = '00';\n } else {\n // For direct input, remove unnecessary leading zeros (e.g., '01' becomes '1')\n this.seconds = parsedNewInputValue.toString();\n }\n }\n\n // No auto-navigation for seconds field as it's typically the last field\n }\n\n // Parse a time string according to the current format\n private parseTime(timeString: string): void {\n if (!timeString) {\n return;\n }\n\n // Use format-aware parsing without constraint application\n const components = parseValueByFormat(timeString, this.format);\n\n // Set the parsed values without applying min/max constraints\n this.hours = components.hours;\n this.minutes = components.minutes;\n this.seconds = components.seconds;\n }\n\n private reconstructTime(): string {\n const components: TimeComponents = {\n hours: this.hours,\n minutes: this.minutes,\n seconds: this.seconds,\n };\n\n // Ensure the reconstructed time is in the correct format\n const reconstructedTime = reconstructTimeByFormat(components, this.format);\n\n // Validate that the reconstructed time matches the expected format\n if (!isValidFormatValue(reconstructedTime, this.format)) {\n // If invalid, return the default value for this format\n const config = FORMAT_CONFIGS[this.format];\n return config ? config.defaultValue : reconstructedTime;\n }\n\n return reconstructedTime;\n }\n\n private handleFocus(type: TimeType): void {\n if (this.readonly || this.disabled) {\n return;\n }\n\n // Check if this field is visible for the current format\n const visibleTypes = getVisibleTimeTypes(this.format);\n if (!visibleTypes.includes(type)) {\n return; // Don't handle focus for non-visible fields\n }\n\n if (!this.open) {\n this.open = true; // Force the popover to open\n }\n\n // Refocus on the input if it loses focus and is empty\n if (\n this.inputElements[type]?.value.length === 0 ||\n this.inputElements[type]?.value === '00'\n ) {\n this.inputElements[type]?.focus();\n this.inputElements[type]?.select();\n }\n\n this.typeFocused = type;\n }\n\n private HandleDropdownIconClick(): void {\n if (this.disabled || this.readonly) {\n return; // Do not toggle if disabled or read-only\n }\n\n const visibleTypes = getVisibleTimeTypes(this.format);\n const firstVisibleType = visibleTypes[0];\n\n if (this.open) {\n this.open = false; // Close the popover if it is open\n } else if (\n !this.open &&\n firstVisibleType &&\n this.inputElements[firstVisibleType]\n ) {\n this.inputElements[firstVisibleType]?.focus(); // Focus will open the popover\n this.inputElements[firstVisibleType]?.select();\n } else {\n console.warn('nv-fieldtime -> No visible input elements found to focus');\n }\n }\n\n private updateHighlightedItem(items: HTMLElement[], index: number) {\n items.forEach((item, i) => {\n if (i === index) {\n item.classList.add('highlighted');\n item.setAttribute('tabindex', '0');\n item.focus(); // Forcer le focus ici\n item.scrollIntoView({ block: 'nearest' });\n } else {\n item.classList.remove('highlighted');\n item.setAttribute('tabindex', '-1');\n }\n });\n }\n\n private handleTimeOptionClick(event: MouseEvent, type: TimeType): void {\n const option = parseInt(\n (event.target as HTMLElement).textContent || '0',\n 10,\n );\n\n // Update the time component directly without constraint validation\n // Dropdown options are already filtered by constraints during generation\n if (type === TimeType.Hours) {\n this.hours = option.toString().padStart(2, '0');\n } else if (type === TimeType.Minutes) {\n this.minutes = option.toString().padStart(2, '0');\n } else if (type === TimeType.Seconds) {\n this.seconds = option.toString().padStart(2, '0');\n }\n\n // Reconstruct time in the correct format and update value\n const reconstructedTime = this.reconstructTime();\n this.value = reconstructedTime;\n }\n\n private handleInputBlur(): void {\n // Use a delay to check if the focus is still within the popover\n setTimeout(() => {\n if (!this.el.contains(document.activeElement)) {\n if (this.open) {\n this.open = false; // Close the popover if the focus is outside the component\n }\n }\n }, 150);\n }\n\n private handleClickOutside(event: MouseEvent) {\n const target = event.target as Node;\n\n // Check if the click is inside the component or any of the input elements\n if (\n this.el.contains(target) ||\n Object.values(this.inputElements).some(input => input.contains(target))\n ) {\n return;\n }\n\n if (this.open) {\n this.open = false; // Close the popover if the click is outside\n }\n }\n\n private handleScroll(e: Event, type: TimeType): void {\n const target = e.target as HTMLElement;\n const scrollTop = target.scrollTop;\n const containerHeight = target.clientHeight;\n const scrollHeight = target.scrollHeight;\n\n // Define the height of each item, this could be dynamic if the height varies\n const itemHeight = 40; // Consider making this configurable or dynamic\n const options = this.generateTimeOptions(type); // Generates the list of time options\n const singleSetHeight = options.length * itemHeight;\n\n // Check if the scroll is near the bottom or top and reset to the first set\n if (\n scrollTop + containerHeight >= scrollHeight - itemHeight ||\n scrollTop <= 0\n ) {\n target.scrollTop = singleSetHeight; // Reset to the first set from the bottom\n }\n }\n\n private generateTimeOptions(type: TimeType) {\n // Convert the step in seconds\n const stepInSeconds = this.step / 1000;\n\n // Handle edge case for zero step\n if (stepInSeconds === 0) {\n return ['00']; // Just return the default value\n }\n\n // Generate the time options based on the type\n switch (type) {\n case TimeType.Hours:\n return this.generateHourOptions(stepInSeconds);\n\n case TimeType.Minutes:\n return this.generateMinuteOptions(stepInSeconds);\n\n case TimeType.Seconds:\n return this.generateSecondOptions(stepInSeconds);\n\n default:\n return [];\n }\n }\n\n private generateHourOptions(stepInSeconds: number): string[] {\n const hourStep = Math.max(1, Math.floor(stepInSeconds / 3600)); // Prevent step < 1\n const is12HourFormat = this.format.startsWith('hh');\n\n // Set proper hour ranges based on format\n const defaultMaxHour = is12HourFormat ? 12 : 23;\n const defaultMinHour = is12HourFormat ? 1 : 0;\n\n const maxHour = this.parseHour(this.max, this.format);\n const minHour = this.parseHour(this.min, this.format);\n\n const maxHourValue = maxHour ? parseInt(maxHour, 10) : defaultMaxHour;\n const minHourValue = minHour ? parseInt(minHour, 10) : defaultMinHour;\n\n const values: string[] = [];\n\n for (let i = minHourValue; i <= maxHourValue; i += hourStep) {\n const hourStr = i.toString().padStart(2, '0');\n values.push(hourStr);\n }\n\n return values;\n }\n\n /**\n * Parse hour value from min/max constraint strings for dropdown generation only.\n * This method is used exclusively for filtering dropdown options and should not\n * affect input values or validation.\n * @param {string} value - The time string to parse (e.g., \"14:30\" or \"02:30\")\n * @param {string} format - The time format string (e.g., \"HH:mm\" or \"hh:mm\")\n * @returns {string} The parsed hour string or null if invalid\n */\n private parseHour(value: string | null, format: string): string | null {\n if (!value) return null;\n const [hourStr] = value.split(':');\n const hour = parseInt(hourStr, 10);\n if (isNaN(hour)) return null;\n if (format.startsWith('hh'))\n return hour > 0 && hour <= 12 ? hourStr.padStart(2, '0') : null;\n return hour >= 0 && hour <= 24 ? hourStr.padStart(2, '0') : null;\n }\n\n private generateMinuteOptions(stepInSeconds: number): string[] {\n const minuteStep = Math.max(1, Math.floor((stepInSeconds % 3600) / 60)); // Ensure step >= 1\n const minMinute = this.parseMinute(this.min) ?? 0;\n const maxMinute = this.parseMinute(this.max) ?? 59;\n\n if (minMinute === 0 && maxMinute === 0) return ['00']; // Handle edge case for zero minutes\n\n const values: string[] = [];\n\n for (let i = minMinute; i <= maxMinute; i += minuteStep) {\n const minuteStr = i.toString().padStart(2, '0');\n values.push(minuteStr);\n }\n\n return values;\n }\n\n /**\n * Parse minute value from min/max constraint strings for dropdown generation only.\n * This method is used exclusively for filtering dropdown options and should not\n * affect input values or validation.\n * @param {string} value - The time string to parse (e.g., \"14:30\" or \"02:30\")\n * @returns {number} The parsed minute number or null if invalid\n */\n private parseMinute(value: string | null): number | null {\n if (!value) return null;\n const parts = value.split(':');\n if (parts.length < 2) return null; // Expect at least \"hh:mm\"\n const minute = parseInt(parts[1], 10);\n return isNaN(minute) || minute < 0 || minute >= 60 ? null : minute;\n }\n\n private generateSecondOptions(stepInSeconds: number): string[] {\n const secondStep = Math.max(1, stepInSeconds % 60); // Ensure step >= 1\n const minSecond = this.parseSecond(this.min) ?? 0;\n const maxSecond = this.parseSecond(this.max) ?? 59;\n\n if (minSecond === 0 && maxSecond === 0) return ['00']; // Handle edge case for zero seconds\n\n const values: string[] = [];\n\n for (let i = minSecond; i <= maxSecond; i += secondStep) {\n const secondStr = i.toString().padStart(2, '0');\n values.push(secondStr);\n }\n\n return values;\n }\n\n /**\n * Parse second value from min/max constraint strings for dropdown generation only.\n * This method is used exclusively for filtering dropdown options and should not\n * affect input values or validation.\n * @param {string} value - The time string to parse (e.g., \"14:30:45\" or \"02:30:45\")\n * @returns {number} The parsed second number or null if invalid\n */\n private parseSecond(value: string | null): number | null {\n if (!value) return null;\n const parts = value.split(':');\n if (parts.length < 3) return null; // Expect \"hh:mm:ss\" or \"HH:mm:ss\"\n const second = parseInt(parts[2], 10);\n return isNaN(second) || second < 0 || second >= 60 ? null : second;\n }\n\n private generateInfiniteTimeOptions(type: TimeType): string[] {\n const options = this.generateTimeOptions(type);\n const totalOptions = options.length;\n\n // Dynamically calculate repetitions based on a target number of items (e.g., 300 items)\n const repetitions = Math.ceil(300 / totalOptions);\n return Array(repetitions).fill(options).flat();\n }\n\n private updateColumnHighlight(selector, value): void {\n const items = Array.from(this.el.querySelectorAll<HTMLElement>(selector));\n\n const index = items.findIndex(x => x.textContent === value);\n this.updateHighlightedItem(items, index);\n }\n\n private handleHostClick(event: MouseEvent): void {\n if (this.disabled || this.readonly) {\n return;\n }\n\n const targetElement = event.target as HTMLElement;\n\n // Check if the click target or its ancestors are inside an nv-iconbutton element\n if (targetElement.closest('nv-iconbutton')) {\n return; // Handle icon button click separately\n }\n\n if (!this.open) {\n if (this.inputElements) {\n // Focus on the first visible field based on format\n const visibleTypes = getVisibleTimeTypes(this.format);\n const firstVisibleType = visibleTypes[0];\n\n if (firstVisibleType && this.inputElements[firstVisibleType]) {\n this.inputElements[firstVisibleType]?.focus();\n this.inputElements[firstVisibleType]?.select();\n }\n }\n\n event.preventDefault();\n }\n }\n\n //#endregion METHODS\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillLoad() {\n document.addEventListener('click', this.handleClickOutside.bind(this));\n\n // Initialize component state based on format and value\n if (this.value) {\n // Parse the provided value using format-aware parsing without constraint application\n this.parseTime(this.value);\n } else {\n // Initialize with format-appropriate default values without any constraint application\n // Use format-specific defaults: '01' for 12-hour formats, '00' for 24-hour formats\n const defaultComponents = parseValueByFormat('', this.format);\n\n // Set default values directly without any min/max constraint validation\n this.hours = defaultComponents.hours;\n this.minutes = defaultComponents.minutes;\n this.seconds = defaultComponents.seconds;\n\n // Set the initial value in the correct format without constraint validation\n // This ensures the component has a proper initial state for the value watcher\n const initialValue = reconstructTimeByFormat(\n defaultComponents,\n this.format,\n );\n this.value = initialValue;\n }\n }\n\n connectedCallback() {\n document.addEventListener('click', this.handleClickOutside.bind(this));\n }\n\n disconnectedCallback() {\n document.removeEventListener('click', this.handleClickOutside.bind(this));\n }\n\n componentDidLoad() {\n // Initialize dropdown highlighting based on current component state\n // This ensures proper visual feedback without applying any constraints\n\n // Update highlighted items for hours based on current state\n const hourSelector = `.time-column.time-column-hours div`;\n this.updateColumnHighlight(hourSelector, this.hours);\n\n // Update highlighted items for minutes based on current state\n const minuteSelector = `.time-column.time-column-minutes div`;\n this.updateColumnHighlight(minuteSelector, this.minutes);\n\n // Update highlighted items for seconds based on current state\n const secondSelector = `.time-column.time-column-seconds div`;\n this.updateColumnHighlight(secondSelector, this.seconds);\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n /**\n * Renders input fields based on the current format\n * Only shows fields that are relevant to the selected format\n * @returns {HTMLElement[]} Array of HTML elements for time input fields\n */\n private renderTimeInputFields(): HTMLElement[] {\n const visibleTypes = getVisibleTimeTypes(this.format);\n const elements: HTMLElement[] = [];\n\n visibleTypes.forEach((type, index) => {\n // Add separator colon before minutes and seconds (but not before the first field)\n if (index > 0) {\n elements.push(<span>:</span>);\n }\n\n // Add the input field for this time type\n elements.push(this.renderTimeInputField(type));\n });\n\n return elements;\n }\n\n /**\n * Renders a single time input field for the specified type\n * @param {TimeType} type - The time type to render input for\n * @returns {HTMLInputElement} HTML input element for the specified time type\n */\n private renderTimeInputField(type: TimeType): HTMLInputElement {\n const getValue = () => {\n switch (type) {\n case TimeType.Hours:\n return this.hours;\n case TimeType.Minutes:\n return this.minutes;\n case TimeType.Seconds:\n return this.seconds;\n default:\n return '00';\n }\n };\n\n const getPlaceholder = () => {\n switch (type) {\n case TimeType.Hours:\n return this.format.includes('hh') ? 'hh' : 'HH';\n case TimeType.Minutes:\n return 'mm';\n case TimeType.Seconds:\n return 'ss';\n default:\n return '';\n }\n };\n\n const getId = () => {\n switch (type) {\n case TimeType.Hours:\n return this.inputId;\n case TimeType.Minutes:\n return `${this.inputId}-minutes`;\n case TimeType.Seconds:\n return `${this.inputId}-seconds`;\n default:\n return this.inputId;\n }\n };\n\n // Remove min/max constraints from input elements to allow native stepper behavior\n // Constraints are only applied to dropdown options, not input steppers\n\n return (\n <input\n ref={el => (this.inputElements[type] = el)}\n type=\"number\"\n autofocus={\n this.autofocus && type === getVisibleTimeTypes(this.format)[0]\n }\n class=\"time-input\"\n pattern=\"[0-9]*\"\n maxlength=\"3\"\n value={getValue()}\n onInput={e => this.handleInputChange(e, type)}\n placeholder={getPlaceholder()}\n inputMode=\"numeric\"\n onFocus={() => this.handleFocus(type)}\n name={this.name ? `${type}-${this.name}` : type}\n id={getId()}\n readonly={this.readonly}\n disabled={this.disabled}\n required={this.required}\n onKeyDown={e => this.handleKeyDown(e)}\n onBlur={() => this.handleInputBlur()}\n />\n );\n }\n\n /**\n * Renders dropdown columns based on the current format\n * Only shows columns that are relevant to the selected format\n * @returns {HTMLElement[]} Array of HTML elements for time dropdown columns\n */\n private renderTimeDropdownColumns(): HTMLElement[] {\n const visibleTypes = getVisibleTimeTypes(this.format);\n return visibleTypes.map(type => this.RenderTimeOptionsColumn(type));\n }\n\n private RenderTimeOptionsColumn(type: TimeType): HTMLElement {\n return (\n <div\n class={`time-column time-column-${type}`}\n onScroll={e => this.handleScroll(e, type)}\n >\n {/* Hours */}\n {this.generateInfiniteTimeOptions(type).map((option, index) => (\n <div\n class={{\n 'time-option': true,\n 'selected':\n (type === TimeType.Hours && option === this.hours) ||\n (type === TimeType.Minutes && option === this.minutes) ||\n (type === TimeType.Seconds && option === this.seconds),\n }}\n key={`${option}-${index}`}\n onClick={e => this.handleTimeOptionClick(e, type)}\n >\n {option}\n </div>\n ))}\n </div>\n );\n }\n\n render() {\n return (\n <Host\n onclick={(e: MouseEvent) => this.handleHostClick(e)}\n aria-expanded={this.open ? 'true' : 'false'}\n >\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label htmlFor={this.inputId}>\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n <nv-popover\n ref={el => (this.popoverElement = el as HTMLNvPopoverElement)}\n triggerMode=\"controlled\"\n placement=\"bottom-start\"\n open={this.open}\n >\n <div class=\"input-wrapper\" slot=\"trigger\">\n <slot name=\"before-input\"></slot>\n\n <div class=\"input-container\">\n <slot name=\"leading-input\"></slot>\n {/* Render input fields based on format */}\n {this.renderTimeInputFields()}\n\n <nv-iconbutton\n name={'clock'}\n size=\"md\"\n emphasis=\"lower\"\n aria-label={this.open ? 'Hide time picker' : 'Show time picker'}\n onClick={() => this.HandleDropdownIconClick()}\n />\n\n {this.error && (\n <nv-icon name=\"alert-circle\" class=\"validation\" size=\"sm\" />\n )}\n {this.success && (\n <nv-icon name=\"circle-check\" class=\"validation\" size=\"sm\" />\n )}\n </div>\n\n <slot name=\"after-input\"></slot>\n </div>\n\n <div class=\"time-dropdown\" slot=\"content\">\n <div class=\"time-columns\">{this.renderTimeDropdownColumns()}</div>\n </div>\n </nv-popover>\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n\n {(this.errorDescription ||\n this.el.querySelector('[slot=\"error-description\"]')) && (\n <div hidden={!this.error} class=\"error-description\">\n <slot name=\"error-description\">{this.errorDescription}</slot>\n </div>\n )}\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"]}
|
|
@@ -48,7 +48,7 @@ export class NvIcon {
|
|
|
48
48
|
/****************************************************************************/
|
|
49
49
|
//#region RENDER
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '6d0cc341a34f4e8b6564a8685a4a48b15cd65ede', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, h("svg", { key: 'f38d1bf6fc71af859517b8938b4edfbab3a869b4', stroke: "currentColor", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", class: `nv-icon-${this.size}` }, h("use", { key: '6575d274a1278ea8a22d7b09616470b6f2b1a982', href: `#nvicon_${this.name}` }))));
|
|
52
52
|
}
|
|
53
53
|
static get is() { return "nv-icon"; }
|
|
54
54
|
static get originalStyleUrls() {
|
|
@@ -11,6 +11,7 @@ export const iconNames = [
|
|
|
11
11
|
'affiliate',
|
|
12
12
|
'air-conditioning',
|
|
13
13
|
'alert-circle',
|
|
14
|
+
'alert-square-rounded',
|
|
14
15
|
'alert-triangle',
|
|
15
16
|
'align-center',
|
|
16
17
|
'align-left',
|
|
@@ -49,6 +50,7 @@ export const iconNames = [
|
|
|
49
50
|
'battery-eco',
|
|
50
51
|
'battery-off',
|
|
51
52
|
'battery',
|
|
53
|
+
'bell-bolt',
|
|
52
54
|
'bell-off',
|
|
53
55
|
'bell-ringing',
|
|
54
56
|
'bell',
|
|
@@ -139,6 +141,8 @@ export const iconNames = [
|
|
|
139
141
|
'cloud-snow',
|
|
140
142
|
'cloud-upload',
|
|
141
143
|
'cloud',
|
|
144
|
+
'collapse-close',
|
|
145
|
+
'collapse-open',
|
|
142
146
|
'color-picker',
|
|
143
147
|
'color-swatch',
|
|
144
148
|
'columns-1',
|
|
@@ -248,8 +252,16 @@ export const iconNames = [
|
|
|
248
252
|
'gauge-off',
|
|
249
253
|
'gauge',
|
|
250
254
|
'gift',
|
|
255
|
+
'git-branch-delete',
|
|
251
256
|
'git-branch',
|
|
257
|
+
'git-cherry-pick',
|
|
258
|
+
'git-commit',
|
|
252
259
|
'git-compare',
|
|
260
|
+
'git-fork',
|
|
261
|
+
'git-merge',
|
|
262
|
+
'git-pull-request-closed',
|
|
263
|
+
'git-pull-request-draft',
|
|
264
|
+
'git-pull-request',
|
|
253
265
|
'gps',
|
|
254
266
|
'grid-dots',
|
|
255
267
|
'grip-horizontal',
|
|
@@ -488,6 +500,7 @@ export const iconNames = [
|
|
|
488
500
|
'volume-2',
|
|
489
501
|
'volume-3',
|
|
490
502
|
'volume',
|
|
503
|
+
'wallet',
|
|
491
504
|
'wand',
|
|
492
505
|
'wave',
|
|
493
506
|
'waves',
|