@nova-design-system/nova-react 3.12.0 → 3.14.0-beta.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/README.md +27 -58
- package/dist/cjs/collapse.animation-6e0b08df-AHWzNGm_.js +217 -0
- package/dist/cjs/{constants-a857c476-Cj2b-su0.js → constants-69bafca2-DpB_ghPF.js} +14 -0
- package/dist/cjs/fade.animation-9b939939-DV--bM4S.js +724 -0
- package/dist/cjs/{index-jBgPO7HC.js → index-CJDePE8Z.js} +2322 -1657
- package/dist/cjs/index.js +14 -1
- package/dist/cjs/{nv-accordion-item.entry-BUb_Apy8.js → nv-accordion-item.entry-Begcz9SZ.js} +75 -40
- package/dist/cjs/nv-accordion.entry-DQAkheHY.js +179 -0
- package/dist/cjs/{nv-alert.entry-nzJu8E5h.js → nv-alert.entry-CEzR0iu0.js} +21 -20
- package/dist/cjs/{nv-avatar.entry-BPp1d-QO.js → nv-avatar.entry-B-u7r30l.js} +8 -7
- package/dist/cjs/{nv-badge_2.entry-Bk56p4jv.js → nv-badge_2.entry-0vhTS5D7.js} +15 -14
- package/dist/cjs/{nv-breadcrumb.entry-DB3zR7FC.js → nv-breadcrumb.entry-BkWs1x-W.js} +2 -1
- package/dist/cjs/{nv-breadcrumbs.entry-CoGgEsro.js → nv-breadcrumbs.entry-DglL-1Ed.js} +2 -1
- package/dist/cjs/{nv-button.entry-psZ3_t6i.js → nv-button.entry-BbT0aeQI.js} +8 -7
- package/dist/cjs/{nv-buttongroup.entry-cNenBx1F.js → nv-buttongroup.entry-wlJma4qm.js} +2 -1
- package/dist/cjs/{nv-calendar.entry-nkrORr_V.js → nv-calendar.entry-wIPDRk0B.js} +21 -16
- package/dist/cjs/{nv-col.entry-D4mInxLU.js → nv-col.entry-Btsenp2c.js} +2 -1
- package/dist/cjs/{nv-datagrid.entry-D50O7eyc.js → nv-datagrid.entry-Dae8YlRu.js} +7 -6
- package/dist/cjs/{nv-datagridcolumn.entry-BuGX-3ev.js → nv-datagridcolumn.entry-D918Vo_U.js} +2 -1
- package/dist/cjs/{nv-dialog.entry-yiZIq-TV.js → nv-dialog.entry--cGTlgDZ.js} +4 -3
- package/dist/cjs/{nv-dialogfooter_2.entry-C9ykJQK6.js → nv-dialogfooter_2.entry-CXYjGHc5.js} +11 -7
- package/dist/cjs/{nv-fieldcheckbox.entry-CCRvvFJ3.js → nv-fieldcheckbox.entry-9b_kDQGz.js} +3 -2
- package/dist/cjs/{nv-fielddate.entry-C4k6k980.js → nv-fielddate.entry-CRRTthds.js} +2 -1
- package/dist/cjs/{nv-fielddaterange.entry-BhfV2KCd.js → nv-fielddaterange.entry-BAVePsLs.js} +2 -1
- package/dist/cjs/{nv-fielddropdown.entry-Xkkvl_gb.js → nv-fielddropdown.entry-Dy8sZyze.js} +2 -1
- package/dist/cjs/{nv-fielddropdownitem.entry-Ckwq6k6r.js → nv-fielddropdownitem.entry-CuPocgsF.js} +2 -1
- package/dist/cjs/{nv-fieldmultiselect.entry-D4PgRSFv.js → nv-fieldmultiselect.entry-HWSDowQH.js} +2 -31
- package/dist/cjs/{nv-fieldnumber.entry-BEnJ81XX.js → nv-fieldnumber.entry-fObgOYJX.js} +3 -2
- package/dist/cjs/{nv-fieldpassword.entry-elzveqP8.js → nv-fieldpassword.entry-BRhKH_Mb.js} +2 -1
- package/dist/cjs/{nv-fieldradio.entry-xJpdsXGo.js → nv-fieldradio.entry-D74Mlgjc.js} +2 -1
- package/dist/cjs/{nv-fieldselect.entry-DVyO7LMD.js → nv-fieldselect.entry-BS81ItZs.js} +2 -1
- package/dist/cjs/{nv-fieldslider.entry-O4TFO-Rl.js → nv-fieldslider.entry-xyqrZxYj.js} +26 -17
- package/dist/cjs/{nv-fieldtext.entry-p-9GEp1g.js → nv-fieldtext.entry-BVUKbv4b.js} +2 -1
- package/dist/cjs/{nv-fieldtextarea.entry-Cvik8cci.js → nv-fieldtextarea.entry-B7hb1so-.js} +2 -1
- package/dist/cjs/{nv-fieldtime.entry-mnsDon9M.js → nv-fieldtime.entry-DvCbKaOO.js} +61 -60
- package/dist/cjs/nv-icon.entry-DP715dyH.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-M5EY3-1s.js → nv-iconbutton_2.entry-FpzwxZe_.js} +2 -1
- package/dist/cjs/{nv-menu.entry-D7bORqXp.js → nv-menu.entry-ryMNpTHW.js} +2 -1
- package/dist/cjs/{nv-menuitem.entry-CaN6qNoB.js → nv-menuitem.entry-SQBrWIYf.js} +2 -1
- package/dist/cjs/nv-notification.entry-DnCew-lG.js +262 -0
- package/dist/cjs/nv-notificationcontainer.entry-Dwlv9s1v.js +41 -0
- package/dist/cjs/{nv-popover.entry-DGeXSyhZ.js → nv-popover.entry-DOu6rhco.js} +10 -9
- package/dist/cjs/{nv-row.entry-B17DsCjM.js → nv-row.entry-Tx_yvWTJ.js} +3 -2
- package/dist/cjs/{nv-stack.entry-Dv3YU4nJ.js → nv-stack.entry-Cn0JrM2N.js} +3 -2
- package/dist/cjs/{nv-table.entry-BILyG-43.js → nv-table.entry-D-uKGKnp.js} +4 -3
- package/dist/cjs/{nv-tablecolumn.entry-II6Z_gdO.js → nv-tablecolumn.entry-BsJzXKCk.js} +2 -1
- package/dist/cjs/{nv-toggle.entry-5Wmww2Cd.js → nv-toggle.entry-DuDRh-Ww.js} +4 -3
- package/dist/cjs/{nv-togglebutton.entry-Dnmfrj0O.js → nv-togglebutton.entry-DAlky3tO.js} +3 -2
- package/dist/cjs/{nv-togglebuttongroup.entry-C9mplQcb.js → nv-togglebuttongroup.entry-DTadjqMQ.js} +3 -2
- package/dist/cjs/{nv-tooltip.entry-CcUQrjAv.js → nv-tooltip.entry-BWzlP6gC.js} +3 -2
- package/dist/cjs/{stylefire.es-74da334a-y0piPjlz.js → style-value-types.es-f5d10b79-D0QCM8OB.js} +50 -694
- package/dist/cjs/{timeline.animation-adf35ecb-CE6Dsdxr.js → timeline.animation-79215cd4-KteJaZPb.js} +19 -0
- package/dist/generated/components.js +16 -0
- package/dist/generated/components.server.js +25 -1
- package/dist/index.js +1 -0
- package/dist/providers/NotificationProvider.js +83 -0
- package/dist/types/generated/components.d.ts +8 -0
- package/dist/types/generated/components.server.d.ts +8 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/providers/NotificationProvider.d.ts +36 -0
- package/package.json +4 -1
- package/dist/cjs/collapse.animation-16e3af45-CChx_tQJ.js +0 -84
- package/dist/cjs/fade.animation-71e8e34c-BAw_TYsB.js +0 -68
- package/dist/cjs/nv-accordion.entry-hi3M0POV.js +0 -164
- package/dist/cjs/nv-icon.entry-CrgnozDL.js +0 -79
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-CJDePE8Z.js');
|
|
4
|
+
var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
|
|
5
5
|
var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
|
|
6
6
|
require('react');
|
|
7
|
+
require('react-dom');
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* Checks if a string starts with a given prefix, ignoring case.
|
|
@@ -29,7 +30,7 @@ const NvFieldtime = class {
|
|
|
29
30
|
// Input elements for hours, minutes, and seconds
|
|
30
31
|
this.inputElements = {};
|
|
31
32
|
this.inputZeroAdded = {};
|
|
32
|
-
this.typeFocused =
|
|
33
|
+
this.typeFocused = constants69bafca2.TimeType.Hours;
|
|
33
34
|
/****************************************************************************/
|
|
34
35
|
//#region STATES
|
|
35
36
|
this.hours = '00';
|
|
@@ -142,20 +143,20 @@ const NvFieldtime = class {
|
|
|
142
143
|
else if (event.key === 'Enter' && currentIndex >= 0) {
|
|
143
144
|
event.preventDefault();
|
|
144
145
|
items[currentIndex].click();
|
|
145
|
-
if (this.typeFocused ===
|
|
146
|
-
(_a = this.inputElements[
|
|
147
|
-
(_b = this.inputElements[
|
|
146
|
+
if (this.typeFocused === constants69bafca2.TimeType.Hours) {
|
|
147
|
+
(_a = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
148
|
+
(_b = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _b === void 0 ? void 0 : _b.select();
|
|
148
149
|
}
|
|
149
|
-
else if (this.typeFocused ===
|
|
150
|
-
this.typeFocused ===
|
|
151
|
-
(_c = this.inputElements[
|
|
152
|
-
(_d = this.inputElements[
|
|
150
|
+
else if (this.typeFocused === constants69bafca2.TimeType.Minutes ||
|
|
151
|
+
this.typeFocused === constants69bafca2.TimeType.Seconds) {
|
|
152
|
+
(_c = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
153
|
+
(_d = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _d === void 0 ? void 0 : _d.select();
|
|
153
154
|
}
|
|
154
155
|
}
|
|
155
156
|
else if (event.key === 'Escape') {
|
|
156
157
|
event.preventDefault();
|
|
157
|
-
if (this.inputElements[
|
|
158
|
-
this.inputElements[
|
|
158
|
+
if (this.inputElements[constants69bafca2.TimeType.Hours]) {
|
|
159
|
+
this.inputElements[constants69bafca2.TimeType.Hours].blur();
|
|
159
160
|
}
|
|
160
161
|
}
|
|
161
162
|
}
|
|
@@ -173,13 +174,13 @@ const NvFieldtime = class {
|
|
|
173
174
|
const inputValue = inputElement.value.replace(/[^0-9]/g, ''); // Only keep numeric input
|
|
174
175
|
// Update the time value based on the type
|
|
175
176
|
switch (type) {
|
|
176
|
-
case
|
|
177
|
+
case constants69bafca2.TimeType.Hours:
|
|
177
178
|
this.handleHoursChange(inputValue, type);
|
|
178
179
|
break;
|
|
179
|
-
case
|
|
180
|
+
case constants69bafca2.TimeType.Minutes:
|
|
180
181
|
this.handleMinutesChange(inputValue, type);
|
|
181
182
|
break;
|
|
182
|
-
case
|
|
183
|
+
case constants69bafca2.TimeType.Seconds:
|
|
183
184
|
this.handleSecondsChange(inputValue, type);
|
|
184
185
|
break;
|
|
185
186
|
}
|
|
@@ -335,12 +336,12 @@ const NvFieldtime = class {
|
|
|
335
336
|
if (this.hours.length === 2 &&
|
|
336
337
|
!this.inputZeroAdded[type] &&
|
|
337
338
|
!reputedToZero) {
|
|
338
|
-
(_a = this.inputElements[
|
|
339
|
-
(_b = this.inputElements[
|
|
339
|
+
(_a = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
340
|
+
(_b = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _b === void 0 ? void 0 : _b.select();
|
|
340
341
|
}
|
|
341
342
|
else if (reputedToZero) {
|
|
342
|
-
(_c = this.inputElements[
|
|
343
|
-
(_d = this.inputElements[
|
|
343
|
+
(_c = this.inputElements[constants69bafca2.TimeType.Hours]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
344
|
+
(_d = this.inputElements[constants69bafca2.TimeType.Hours]) === null || _d === void 0 ? void 0 : _d.select();
|
|
344
345
|
}
|
|
345
346
|
}
|
|
346
347
|
handleMinutesChange(inputValue, type) {
|
|
@@ -493,12 +494,12 @@ const NvFieldtime = class {
|
|
|
493
494
|
if (this.minutes.length === 2 &&
|
|
494
495
|
!this.inputZeroAdded[type] &&
|
|
495
496
|
!reputedToZero) {
|
|
496
|
-
(_c = this.inputElements[
|
|
497
|
-
(_d = this.inputElements[
|
|
497
|
+
(_c = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
498
|
+
(_d = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _d === void 0 ? void 0 : _d.select();
|
|
498
499
|
}
|
|
499
500
|
else if (reputedToZero) {
|
|
500
|
-
(_e = this.inputElements[
|
|
501
|
-
(_f = this.inputElements[
|
|
501
|
+
(_e = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _e === void 0 ? void 0 : _e.focus();
|
|
502
|
+
(_f = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _f === void 0 ? void 0 : _f.select();
|
|
502
503
|
}
|
|
503
504
|
}
|
|
504
505
|
handleSecondsChange(inputValue, type) {
|
|
@@ -626,8 +627,8 @@ const NvFieldtime = class {
|
|
|
626
627
|
}
|
|
627
628
|
}
|
|
628
629
|
if (reputedToZero) {
|
|
629
|
-
(_c = this.inputElements[
|
|
630
|
-
(_d = this.inputElements[
|
|
630
|
+
(_c = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _c === void 0 ? void 0 : _c.focus();
|
|
631
|
+
(_d = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _d === void 0 ? void 0 : _d.select();
|
|
631
632
|
}
|
|
632
633
|
}
|
|
633
634
|
// Parse a continuous time string (e.g., "123456") into hours, minutes, and seconds
|
|
@@ -681,26 +682,26 @@ const NvFieldtime = class {
|
|
|
681
682
|
if (this.disabled || this.readonly) {
|
|
682
683
|
return; // Do not toggle if disabled or read-only
|
|
683
684
|
}
|
|
684
|
-
if (this.open && this.inputElements[
|
|
685
|
+
if (this.open && this.inputElements[constants69bafca2.TimeType.Hours]) {
|
|
685
686
|
this.open = false; // Close the popover if it is open
|
|
686
687
|
}
|
|
687
|
-
else if (this.open && this.inputElements[
|
|
688
|
+
else if (this.open && this.inputElements[constants69bafca2.TimeType.Minutes]) {
|
|
688
689
|
this.open = false; // Close the popover if it is open
|
|
689
690
|
}
|
|
690
|
-
else if (this.open && this.inputElements[
|
|
691
|
+
else if (this.open && this.inputElements[constants69bafca2.TimeType.Seconds]) {
|
|
691
692
|
this.open = false; // Close the popover if it is open
|
|
692
693
|
}
|
|
693
|
-
else if (!this.open && this.inputElements[
|
|
694
|
-
(_a = this.inputElements[
|
|
695
|
-
(_b = this.inputElements[
|
|
694
|
+
else if (!this.open && this.inputElements[constants69bafca2.TimeType.Hours]) {
|
|
695
|
+
(_a = this.inputElements[constants69bafca2.TimeType.Hours]) === null || _a === void 0 ? void 0 : _a.focus(); // Focus will open the popover
|
|
696
|
+
(_b = this.inputElements[constants69bafca2.TimeType.Hours]) === null || _b === void 0 ? void 0 : _b.select();
|
|
696
697
|
}
|
|
697
|
-
else if (!this.open && this.inputElements[
|
|
698
|
-
(_c = this.inputElements[
|
|
699
|
-
(_d = this.inputElements[
|
|
698
|
+
else if (!this.open && this.inputElements[constants69bafca2.TimeType.Minutes]) {
|
|
699
|
+
(_c = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _c === void 0 ? void 0 : _c.focus(); // Focus will open the popover
|
|
700
|
+
(_d = this.inputElements[constants69bafca2.TimeType.Minutes]) === null || _d === void 0 ? void 0 : _d.select();
|
|
700
701
|
}
|
|
701
|
-
else if (!this.open && this.inputElements[
|
|
702
|
-
(_e = this.inputElements[
|
|
703
|
-
(_f = this.inputElements[
|
|
702
|
+
else if (!this.open && this.inputElements[constants69bafca2.TimeType.Seconds]) {
|
|
703
|
+
(_e = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _e === void 0 ? void 0 : _e.focus(); // Focus will open the popover
|
|
704
|
+
(_f = this.inputElements[constants69bafca2.TimeType.Seconds]) === null || _f === void 0 ? void 0 : _f.select();
|
|
704
705
|
}
|
|
705
706
|
else {
|
|
706
707
|
console.warn('nv-fieldtime -> No input elements found to focus or to blur');
|
|
@@ -722,13 +723,13 @@ const NvFieldtime = class {
|
|
|
722
723
|
}
|
|
723
724
|
handleTimeOptionClick(event, type) {
|
|
724
725
|
const option = parseInt(event.target.textContent || '0', 10);
|
|
725
|
-
if (type ===
|
|
726
|
+
if (type === constants69bafca2.TimeType.Hours) {
|
|
726
727
|
this.hours = option.toString().padStart(2, '0');
|
|
727
728
|
}
|
|
728
|
-
else if (type ===
|
|
729
|
+
else if (type === constants69bafca2.TimeType.Minutes) {
|
|
729
730
|
this.minutes = option.toString().padStart(2, '0');
|
|
730
731
|
}
|
|
731
|
-
else if (type ===
|
|
732
|
+
else if (type === constants69bafca2.TimeType.Seconds) {
|
|
732
733
|
this.seconds = option.toString().padStart(2, '0');
|
|
733
734
|
}
|
|
734
735
|
const reconstructTime = this.reconstructTime();
|
|
@@ -779,11 +780,11 @@ const NvFieldtime = class {
|
|
|
779
780
|
}
|
|
780
781
|
// Generate the time options based on the type
|
|
781
782
|
switch (type) {
|
|
782
|
-
case
|
|
783
|
+
case constants69bafca2.TimeType.Hours:
|
|
783
784
|
return this.generateHourOptions(stepInSeconds);
|
|
784
|
-
case
|
|
785
|
+
case constants69bafca2.TimeType.Minutes:
|
|
785
786
|
return this.generateMinuteOptions(stepInSeconds);
|
|
786
|
-
case
|
|
787
|
+
case constants69bafca2.TimeType.Seconds:
|
|
787
788
|
return this.generateSecondOptions(stepInSeconds);
|
|
788
789
|
default:
|
|
789
790
|
return [];
|
|
@@ -885,8 +886,8 @@ const NvFieldtime = class {
|
|
|
885
886
|
}
|
|
886
887
|
if (!this.open) {
|
|
887
888
|
if (this.inputElements) {
|
|
888
|
-
(_a = this.inputElements[
|
|
889
|
-
(_b = this.inputElements[
|
|
889
|
+
(_a = this.inputElements[constants69bafca2.TimeType.Hours]) === null || _a === void 0 ? void 0 : _a.focus();
|
|
890
|
+
(_b = this.inputElements[constants69bafca2.TimeType.Hours]) === null || _b === void 0 ? void 0 : _b.select();
|
|
890
891
|
}
|
|
891
892
|
event.preventDefault();
|
|
892
893
|
}
|
|
@@ -976,30 +977,30 @@ const NvFieldtime = class {
|
|
|
976
977
|
RenderTimeOptionsColumn(type) {
|
|
977
978
|
return (index.h("div", { class: `time-column time-column-${type}`, onScroll: e => this.handleScroll(e, type) }, this.generateInfiniteTimeOptions(type).map((option, index$1) => (index.h("div", { class: {
|
|
978
979
|
'time-option': true,
|
|
979
|
-
'selected': (type ===
|
|
980
|
-
(type ===
|
|
981
|
-
(type ===
|
|
980
|
+
'selected': (type === constants69bafca2.TimeType.Hours && option === this.hours) ||
|
|
981
|
+
(type === constants69bafca2.TimeType.Minutes && option === this.minutes) ||
|
|
982
|
+
(type === constants69bafca2.TimeType.Seconds && option === this.seconds),
|
|
982
983
|
}, key: `${option}-${index$1}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
|
|
983
984
|
}
|
|
984
985
|
render() {
|
|
985
986
|
return (index.h(index.Host, { key: 'a960e7daf8d9a323a55b0f248dd24f8e94321161', onclick: e => this.handleHostClick(e) }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '23c78f159cb32ef76d0d8b5a1171246c9c69fdb7', htmlFor: this.inputId }, index.h("slot", { key: '70b2361b44414dba4ca91b487a7b04872cc0d75d', name: "label" }, this.label))), index.h("nv-popover", { key: '80de55aa7eb0c165ed6871cb0ac6a5aec9046769', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: 'fcd670c6dd32e6687540ddbdaefc2808898a459f', class: "input-wrapper", slot: "trigger" }, index.h("slot", { key: 'cea8867cee99035e97bc9ad40a7f20cf1091f415', name: "before-input" }), index.h("div", { key: 'b68a1a7477baaa3fbf39182a36fe4a693e29a688', class: "input-container" }, index.h("slot", { key: '3bb50bb3ad0207ded63bddfff6b5c5afda7ddfd4', name: "leading-input" }), startsWithIgnoreCase(this.format, 'HH') && [
|
|
986
|
-
index.h("input", { key: '236b3a8067f50c443a117e6b3e8e4b882a84eb01', ref: el => (this.inputElements[
|
|
987
|
-
? `${
|
|
988
|
-
:
|
|
987
|
+
index.h("input", { key: '236b3a8067f50c443a117e6b3e8e4b882a84eb01', ref: el => (this.inputElements[constants69bafca2.TimeType.Hours] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.hours, onInput: e => this.handleInputChange(e, constants69bafca2.TimeType.Hours), placeholder: this.format.includes('hh') ? 'hh' : 'HH', inputMode: "numeric", onFocus: () => this.handleFocus(constants69bafca2.TimeType.Hours), name: this.name
|
|
988
|
+
? `${constants69bafca2.TimeType.Hours}-${this.name}`
|
|
989
|
+
: constants69bafca2.TimeType.Hours, id: this.inputId, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
989
990
|
], this.format.includes('mm') && [
|
|
990
991
|
index.h("span", { key: '2440acab80a0d91ebe758f5a329ac5d805a18f9a' }, ":"),
|
|
991
|
-
index.h("input", { key: '72bc71a8bce65be766c899738745d85da7ef3530', ref: el => (this.inputElements[
|
|
992
|
-
? `${
|
|
993
|
-
:
|
|
992
|
+
index.h("input", { key: '72bc71a8bce65be766c899738745d85da7ef3530', ref: el => (this.inputElements[constants69bafca2.TimeType.Minutes] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.minutes, onInput: e => this.handleInputChange(e, constants69bafca2.TimeType.Minutes), placeholder: "mm", inputMode: "numeric", onFocus: () => this.handleFocus(constants69bafca2.TimeType.Minutes), name: this.name
|
|
993
|
+
? `${constants69bafca2.TimeType.Minutes}-${this.name}`
|
|
994
|
+
: constants69bafca2.TimeType.Minutes, id: `${this.inputId}-minutes`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
994
995
|
], this.format.includes('ss') && [
|
|
995
996
|
index.h("span", { key: '0afdff59b999c346b455ed7408332d087ae48b12' }, ":"),
|
|
996
|
-
index.h("input", { key: '0ecf4b18af18b6184e0ccdd00ddea561ee403195', ref: el => (this.inputElements[
|
|
997
|
-
? `${
|
|
998
|
-
:
|
|
997
|
+
index.h("input", { key: '0ecf4b18af18b6184e0ccdd00ddea561ee403195', ref: el => (this.inputElements[constants69bafca2.TimeType.Seconds] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.seconds, onInput: e => this.handleInputChange(e, constants69bafca2.TimeType.Seconds), placeholder: "ss", inputMode: "numeric", onFocus: () => this.handleFocus(constants69bafca2.TimeType.Seconds), name: this.name
|
|
998
|
+
? `${constants69bafca2.TimeType.Seconds}-${this.name}`
|
|
999
|
+
: constants69bafca2.TimeType.Seconds, id: `${this.inputId}-seconds`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
999
1000
|
], index.h("nv-iconbutton", { key: '2d3d19d683d85110df8aab9d7c70fb377b189381', name: 'clock', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide time picker' : 'Show time picker', "aria-pressed": this.open.toString(), onClick: () => this.HandleDropdownIconClick() }), this.error && (index.h("nv-icon", { key: '8b49cb73821fea8926ede8406019fa68baa8500e', name: "alert-circle", class: "validation", size: "sm" })), this.success && (index.h("nv-icon", { key: '372b8e95455c269a988257f2504fc24c680d7f4b', name: "circle-check", class: "validation", size: "sm" }))), index.h("slot", { key: '9e23fd13862e6218cd7213729b3e165ae74fe2eb', name: "after-input" })), index.h("div", { key: 'c5b99d58c96a055ea8aeade81fb5d75490421716', class: "time-dropdown", slot: "content" }, index.h("div", { key: '2bcee9fa41574db70850445bba4d4041c9471a46', class: "time-columns" }, startsWithIgnoreCase(this.format, 'HH') &&
|
|
1000
|
-
this.RenderTimeOptionsColumn(
|
|
1001
|
-
this.RenderTimeOptionsColumn(
|
|
1002
|
-
this.RenderTimeOptionsColumn(
|
|
1001
|
+
this.RenderTimeOptionsColumn(constants69bafca2.TimeType.Hours), this.format.includes('mm') &&
|
|
1002
|
+
this.RenderTimeOptionsColumn(constants69bafca2.TimeType.Minutes), this.format.includes('ss') &&
|
|
1003
|
+
this.RenderTimeOptionsColumn(constants69bafca2.TimeType.Seconds)))), (this.description ||
|
|
1003
1004
|
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '822534262bb1769294be95c1a240a2753d556e1c', class: "description" }, index.h("slot", { key: '62489b82bee33610b55dfa4c2f9997b5d68b6bfe', name: "description" }, this.description))), (this.errorDescription ||
|
|
1004
1005
|
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '9cedb395a09c4243c7c714574ad8d41b6a836fbb', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '7b8802739ad74756f2843dd8807afe6abda92831', name: "error-description" }, this.errorDescription)))));
|
|
1005
1006
|
}
|