@nova-design-system/nova-react 3.18.0 → 3.20.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.
Files changed (56) hide show
  1. package/README.md +3 -20
  2. package/dist/cjs/generated/components.server.js +4 -2
  3. package/dist/cjs/{index-_oq_uffl.js → index-BObVnP12.js} +373 -332
  4. package/dist/cjs/index.js +2 -1
  5. package/dist/cjs/{nv-accordion-item.entry-DBO7ztqb.js → nv-accordion-item.entry-BBAGkmLI.js} +1 -1
  6. package/dist/cjs/{nv-accordion.entry-Ma9HqnfE.js → nv-accordion.entry-CvvtdLIz.js} +1 -1
  7. package/dist/cjs/{nv-alert.entry--bKp-lux.js → nv-alert.entry-w5XeFsrC.js} +1 -1
  8. package/dist/cjs/{nv-avatar.entry-DN_-lrBo.js → nv-avatar.entry-BxUZg-8h.js} +1 -1
  9. package/dist/cjs/{nv-badge_2.entry-Dl4iJgMU.js → nv-badge_2.entry-DdSIFlJf.js} +2 -2
  10. package/dist/cjs/{nv-breadcrumb.entry-BBvgQ-p_.js → nv-breadcrumb.entry-CmbqGw3C.js} +1 -1
  11. package/dist/cjs/{nv-breadcrumbs.entry-1SoAvjZG.js → nv-breadcrumbs.entry-DFHxtPKv.js} +1 -1
  12. package/dist/cjs/{nv-button.entry-B4k5GJIo.js → nv-button.entry-Dyks6_mF.js} +1 -1
  13. package/dist/cjs/{nv-buttongroup.entry-B5LQavYS.js → nv-buttongroup.entry-wn9zFd_M.js} +1 -1
  14. package/dist/cjs/{nv-calendar.entry-mOSPsfm-.js → nv-calendar.entry-Dldsa6dz.js} +1 -1
  15. package/dist/cjs/{nv-col.entry-Dzg7C_6U.js → nv-col.entry-DnG79KM1.js} +1 -1
  16. package/dist/cjs/{nv-datagrid.entry-CfZeMjYO.js → nv-datagrid.entry-C2ML-e47.js} +1 -1
  17. package/dist/cjs/{nv-datagridcolumn.entry-DEqq7_M9.js → nv-datagridcolumn.entry-DcMPUtQS.js} +1 -1
  18. package/dist/cjs/{nv-dialog.entry-DSX9jRuv.js → nv-dialog.entry-C0Vx7dQc.js} +1 -1
  19. package/dist/cjs/{nv-dialogfooter_2.entry-t9MuuUDn.js → nv-dialogfooter_2.entry-BGq8Jiib.js} +1 -1
  20. package/dist/cjs/{nv-fieldcheckbox.entry-KDMtAaLt.js → nv-fieldcheckbox.entry-CAPwYnSU.js} +1 -1
  21. package/dist/cjs/{nv-fielddate.entry-SjEKszkJ.js → nv-fielddate.entry-Byt5cmQi.js} +11 -7
  22. package/dist/cjs/{nv-fielddaterange.entry-B6pLWuF3.js → nv-fielddaterange.entry-CCFeFP2q.js} +12 -8
  23. package/dist/cjs/{nv-fielddropdown.entry-DIYVOvRw.js → nv-fielddropdown.entry-BFp_2vBC.js} +194 -210
  24. package/dist/cjs/{nv-fielddropdownitem.entry-CUMPmEzj.js → nv-fielddropdownitem.entry-D_4KdBY1.js} +8 -5
  25. package/dist/cjs/{nv-fieldmultiselect.entry-BFt11EM5.js → nv-fieldmultiselect.entry-BaUD7Dcr.js} +5 -1
  26. package/dist/cjs/{nv-fieldnumber.entry-V2AYjG7j.js → nv-fieldnumber.entry-DOmhBrDv.js} +25 -8
  27. package/dist/cjs/{nv-fieldpassword.entry-BoQAgzW2.js → nv-fieldpassword.entry-hogiPC5z.js} +4 -4
  28. package/dist/cjs/{nv-fieldradio.entry-CKDZ6g8q.js → nv-fieldradio.entry-CKbyWpIK.js} +4 -4
  29. package/dist/cjs/{nv-fieldselect.entry-Daa3JB5t.js → nv-fieldselect.entry-tpURNUEP.js} +6 -6
  30. package/dist/cjs/{nv-fieldslider.entry-BhT0C9hG.js → nv-fieldslider.entry-v0d92XEY.js} +7 -5
  31. package/dist/cjs/{nv-fieldtext.entry-a1x9CfYv.js → nv-fieldtext.entry-DNYrOAhj.js} +4 -4
  32. package/dist/cjs/{nv-fieldtextarea.entry-nn5SqAJD.js → nv-fieldtextarea.entry-cRsjPwwR.js} +4 -4
  33. package/dist/cjs/{nv-fieldtime.entry-DQb9u4eg.js → nv-fieldtime.entry-BpGBUfKr.js} +5 -4
  34. package/dist/cjs/nv-icon.entry-BfmyacWA.js +80 -0
  35. package/dist/cjs/{nv-iconbutton_2.entry-WTj2sSR7.js → nv-iconbutton_2.entry-DOv1RrkS.js} +3 -3
  36. package/dist/cjs/{nv-menu.entry-DnHSkRkc.js → nv-menu.entry-C2L8F-nG.js} +3 -3
  37. package/dist/cjs/{nv-menuitem.entry-BMThBD-z.js → nv-menuitem.entry-DuDZTlJ1.js} +2 -2
  38. package/dist/cjs/{nv-notification.entry-BgORwEc6.js → nv-notification.entry-DxAj-mc7.js} +2 -2
  39. package/dist/cjs/{nv-notificationcontainer.entry-C3D52xHp.js → nv-notificationcontainer.entry-CUnTicXF.js} +2 -2
  40. package/dist/cjs/{nv-popover.entry-Bc5Hs_ZA.js → nv-popover.entry-DVwa4DvW.js} +3 -3
  41. package/dist/cjs/{nv-row.entry-rTFsRQhn.js → nv-row.entry-iLk2UglX.js} +2 -2
  42. package/dist/cjs/{nv-split.entry-CEkdVB0d.js → nv-split.entry-BrMHK6TS.js} +2 -2
  43. package/dist/cjs/{nv-stack.entry-DFWmiZRf.js → nv-stack.entry-C8jLJ5Ki.js} +2 -2
  44. package/dist/cjs/{nv-table.entry-Drf8wXN5.js → nv-table.entry-D6o4g9Vo.js} +2 -2
  45. package/dist/cjs/{nv-toggle.entry-D3jHT0co.js → nv-toggle.entry-9iwmu7qi.js} +3 -3
  46. package/dist/cjs/{nv-togglebutton.entry-zN93TaA9.js → nv-togglebutton.entry-N7_CSvzS.js} +2 -2
  47. package/dist/cjs/{nv-togglebuttongroup.entry-D4dUkodA.js → nv-togglebuttongroup.entry-DWCytOhV.js} +2 -2
  48. package/dist/cjs/{nv-tooltip.entry-DqFRA9_B.js → nv-tooltip.entry-BMxnZVYA.js} +2 -2
  49. package/dist/components/NvDatatable.js +17 -2
  50. package/dist/generated/components.js +2 -0
  51. package/dist/generated/components.server.js +4 -2
  52. package/dist/types/components/NvDatatable.d.ts +26 -19
  53. package/dist/types/generated/components.d.ts +4 -1
  54. package/dist/types/generated/components.server.d.ts +4 -1
  55. package/package.json +1 -1
  56. package/dist/cjs/nv-icon.entry-17nX7627.js +0 -80
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -70,7 +70,15 @@ const NvFieldnumber = class {
70
70
  //#region METHODS
71
71
  this.handleInput = (event) => {
72
72
  const input = event.target;
73
- this.value = input.valueAsNumber;
73
+ if (input.value === '') {
74
+ this.value = null;
75
+ return;
76
+ }
77
+ const nextValue = input.valueAsNumber;
78
+ if (Number.isNaN(nextValue)) {
79
+ return;
80
+ }
81
+ this.value = nextValue;
74
82
  };
75
83
  this.handleInputContainerClick = () => {
76
84
  this.inputElement.focus();
@@ -88,17 +96,26 @@ const NvFieldnumber = class {
88
96
  event.preventDefault();
89
97
  };
90
98
  this.isMinValueReached = () => {
91
- return this.min !== undefined && this.value <= this.min;
99
+ return (this.min !== undefined &&
100
+ typeof this.value === 'number' &&
101
+ this.value <= this.min);
92
102
  };
93
103
  this.isMaxValueReached = () => {
94
- return this.max !== undefined && this.value >= this.max;
104
+ return (this.max !== undefined &&
105
+ typeof this.value === 'number' &&
106
+ this.value >= this.max);
95
107
  };
96
108
  }
97
109
  //#endregion EVENTS
98
110
  /****************************************************************************/
99
111
  //#region WATCHERS
100
112
  watchValueHandler(newValue) {
101
- this.valueChanged.emit(newValue);
113
+ const normalized = typeof newValue === 'number' && !Number.isNaN(newValue) ? newValue : null;
114
+ if (this.lastEmittedValue === normalized) {
115
+ return;
116
+ }
117
+ this.lastEmittedValue = normalized;
118
+ this.valueChanged.emit(normalized);
102
119
  }
103
120
  //#endregion METHODS
104
121
  /****************************************************************************/
@@ -116,9 +133,9 @@ const NvFieldnumber = class {
116
133
  /****************************************************************************/
117
134
  //#region RENDER
118
135
  render() {
119
- return (index.h(index.Host, { key: '1bbe4506220df2ebb5723e916edcf49b3c0295e4' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '56ed85a58e669e9c6aec04ed9ea7bc9664c478f8', htmlFor: this.inputId }, index.h("slot", { key: 'b4cf04b6bca34f0ff158fd9e7b14c56df7ea3e8a', name: "label" }, this.label))), index.h("div", { key: '9c9432645591952acff5b1f73c5be8d8f1dae7fb', class: "input-wrapper" }, index.h("slot", { key: '05bacf384b22fce12a66109864ec95fab403f8d7', name: "before-input" }), index.h("div", { key: '66f0c59c38b7309834ba22bbd767e94a04964781', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: '7e2a7c766484b8c4c4caabab311ea635f95eb4fd', name: "leading-input" }), index.h("input", { key: '808f4f16b3a73d0b07efa7cff18dd5dd3f94bda4', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", autofocus: this.autofocus, required: this.required, max: this.max, min: this.min, step: this.step, value: this.value, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), index.h("slot", { key: '65a7f356f2a9f650df9e78f53b98b43c7e179802', name: "trailing-input" }), this.error && (index.h("nv-icon", { key: '5eed73e177092188387abd35ccab6085a1bdb2cf', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '74edadb953f9668e49a1b3ecd328bfd2999065ea', name: "circle-check", class: "validation", size: "md" })), index.h("div", { key: 'e886fe1df175d5c4dcd9a4704ad47820e0af2474', class: "stepper" }, index.h("nv-iconbutton", { key: 'ff6247b57693f2a45c26e1eae67c9d86c473e0e3', size: "md", name: "minus", emphasis: "lower", onClick: this.handleMinus, disabled: this.isMinValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }), index.h("nv-iconbutton", { key: 'aa12c105d159e08e874bdd37f56ab1837ba01c4f', size: "md", name: "plus", emphasis: "lower", onClick: this.handlePlus, disabled: this.isMaxValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }))), index.h("slot", { key: 'c485ac2e1ca388b6e0998bdb1c5ca5876cd9e392', name: "after-input" })), (this.description ||
120
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '88d80f2f5b0061b0f8dab4bcc88bf2d196427800', class: "description" }, index.h("slot", { key: '0380af6af9986d000ad58328e6c4b8250f86c22a', name: "description" }, this.description))), (this.errorDescription ||
121
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'a2233d218f58376b6c7958efabe96a3e08c6e1f6', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'd90bc8abdcecc9711b271472a8da60b207aa04af', name: "error-description" }, this.errorDescription)))));
136
+ return (index.h(index.Host, { key: '9b3239f09e6aace03f79f07399723fdbf557f070' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '322478abbaf477a33debcd828387402299ce6762', htmlFor: this.inputId }, index.h("slot", { key: '75b791ca0fb7eec55faaf966a32733e37b87fb90', name: "label" }, this.label))), index.h("div", { key: '5ce6c27db2b6b0ba8618ed2eac1f61abf8177793', class: "input-wrapper" }, index.h("slot", { key: '3a4a86e358d575fc312d27ee5ffba68474904bd4', name: "before-input" }), index.h("div", { key: '8e07c3c37ea4869aa309fba913663e1d225e21fd', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: '91e7c82e46d3268493669e6dd121f643be86a6be', name: "leading-input" }), index.h("input", { key: '3dcbd9d10e4425ebb29b16b1157845ea4ee7bdef', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, type: "number", autofocus: this.autofocus, required: this.required, max: this.max, min: this.min, step: this.step, value: typeof this.value === 'number' ? this.value : undefined, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput }), index.h("slot", { key: '7d0d4a77d121433f4feb8aa2139be8e94f8e57a5', name: "trailing-input" }), this.error && (index.h("nv-icon", { key: '2a3969e56de0fc3911901c9540e300caf2b6d681', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '8964d7ffaa2cc2a70caf781a37e66383234c6895', name: "circle-check", class: "validation", size: "md" })), index.h("div", { key: '1ca2fd7095afbc12a1a54c8b09551f28fe5a3579', class: "stepper" }, index.h("nv-iconbutton", { key: '1c3f9200c5409bc05fab9061dff3847a92298d45', size: "md", name: "minus", emphasis: "lower", onClick: this.handleMinus, disabled: this.isMinValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }), index.h("nv-iconbutton", { key: 'eb65687b3c31d2ac8bdb534f5ca300a1ada9cd64', size: "md", name: "plus", emphasis: "lower", onClick: this.handlePlus, disabled: this.isMaxValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }))), index.h("slot", { key: '01006c0c2487bce4f908104d263acb0231cdb701', name: "after-input" })), (this.description ||
137
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '9db93a8aa6bb002a3286763909118e9c7a1661c0', class: "description" }, index.h("slot", { key: '13b0f797bace74e641cdd658bb798bccbfec70dc', name: "description" }, this.description))), (this.errorDescription ||
138
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '4ca240bc22fb83a283637e60384e59d687d67e9e', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '145b68572a38e91559431ff51ec38a64027d4978', name: "error-description" }, this.errorDescription)))));
122
139
  }
123
140
  static get formAssociated() { return true; }
124
141
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -107,9 +107,9 @@ const NvFieldpassword = class {
107
107
  /****************************************************************************/
108
108
  //#region RENDER
109
109
  render() {
110
- return (index.h(index.Host, { key: 'f6c3db1036f210ed45d9175f86536fefcec49aee' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '3f90294e9d136887c77765dff60f84a2feeba0af', htmlFor: this.inputId }, index.h("slot", { key: '6406a7f607430ffd4751b1eeda3c169e1e510795', name: "label" }, this.label))), index.h("div", { key: '2316eabf4abfe0ed740a078b4fde0d744f98f793', class: "input-wrapper" }, index.h("slot", { key: '00987dffa4d6e3666891ebf3cee4e36cc0534481', name: "before-input" }), index.h("div", { key: 'e6974c392b1a44dc1f631e85bdf4b45a1d1a5eee', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: '05b9ced4358271f96c0e1051fa8dee06fdc1fcd7', name: "leading-input" }), index.h("input", { key: '0996fa9815a09da1b66dad9d9e1bd4f37842ab9f', 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) && (index.h("nv-icon", { key: '065dbf76c1d1d6afee787e9b2becb8a4499bcfd7', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" })), !this.hidePasswordIcon && (index.h("nv-iconbutton", { key: 'eea65c55d64e58e621c9f8d7ad403eb985584afb', 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() }))), index.h("slot", { key: '17b613bb7b55fd13d445507d8b5182e3107811e8', name: "after-input" })), (this.description ||
111
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '5d99b2fb2e460febe5b93148d277cee9a73ee180', class: "description" }, index.h("slot", { key: 'd196e0641080bf455b02e0a92cf95f2d167eb8f9', name: "description" }, this.description))), (this.errorDescription ||
112
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '0f96208e27909dca72aea61a6c7fee2a37aaba5f', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '86d51c3d0244d7536b1818f28420b8d1a11e63b7', name: "error-description" }, this.errorDescription)))));
110
+ return (index.h(index.Host, { key: '3fd88ed71cb3c34fbd4a35cb861617687add3c76' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'b08c3c1d7ca6f196c547fdb42c2289f4fbacd461', htmlFor: this.inputId }, index.h("slot", { key: '2469c277ea25d8c9ea521cc05da068cf63465637', name: "label" }, this.label))), index.h("div", { key: '606a09205e3caa2490c3db48411eebc5bddbb786', class: "input-wrapper" }, index.h("slot", { key: '843cf4814cf84c9d6ca5fec7a13c30820dd0075a', name: "before-input" }), index.h("div", { key: '4b06bdf556442e8ccb4f28a450bcb5f432740b8a', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: 'c07a3575a5b831e5f803558607fbf677e5b2ffac', name: "leading-input" }), index.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) && (index.h("nv-icon", { key: 'df7f3b45b0dec7dabfdea7496ff6576413101cf5', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" })), !this.hidePasswordIcon && (index.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() }))), index.h("slot", { key: 'd7e892c362bcab7724c0250a8e097bdd3a7f28a2', name: "after-input" })), (this.description ||
111
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '5933be1bda9a32ceabcae5144e6a6a131203f9d6', class: "description" }, index.h("slot", { key: '31671c862c3e5988ef4939d21a75f721b47eacf6', name: "description" }, this.description))), (this.errorDescription ||
112
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'a38ff2519ae8da933b5884c0e576d91b8825dec7', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'ec242e6f6cf28b7e34bfcec658874067019ba540', name: "error-description" }, this.errorDescription)))));
113
113
  }
114
114
  static get formAssociated() { return true; }
115
115
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -88,9 +88,9 @@ const NvFieldradio = class {
88
88
  /****************************************************************************/
89
89
  //#region RENDER
90
90
  render() {
91
- return (index.h(index.Host, { key: 'df74694648d4d6ca117d5766871d032b0ec0fa85', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("input", { key: 'cf30fb745aba5943414e1572a8f7a42af1bf0e3d', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), index.h("div", { key: 'ff593d4187158ca803f5e49be365f701dc4d618d', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '25120e7e90ce5fb99f90ddca35edc54c1d73f760', htmlFor: this.inputId }, index.h("slot", { key: '557bc3204927f58c0c809870f766fdf36c701c7d', name: "label" }, this.label))), (this.description ||
92
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '9ded425c581cd60f8ef33a830b594589d83fec71', class: "description" }, index.h("slot", { key: '9554607229576afbd33da6bb95d08c7a0b354ee0', name: "description" }, this.description))), (this.errorDescription ||
93
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '4435f0d7258e3ea0124d06763ffa6a8f17e8ba15', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'd4a80a4b4ddca790a4cb65d79d5d898da4140a07', name: "error-description" }, this.errorDescription))))));
91
+ return (index.h(index.Host, { key: '18cad87f89d7532fab554e1ad74fcc615ddd8026', class: clsx297c1ffe.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.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 }), index.h("div", { key: '067cebdaf42e94c0b447a91b852a44fa7d5f58cf', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '9c90d0c9e27125576e8194113412795243492c9d', htmlFor: this.inputId }, index.h("slot", { key: 'c5da5d8f8715635ec0adfd46ee704b7c0d940bdd', name: "label" }, this.label))), (this.description ||
92
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'f5e00078f008ab49bbac08c3d3614cae05b783a7', class: "description" }, index.h("slot", { key: 'b70921bbe8acda5c9b7c8e7d81e2d696bc2e4613', name: "description" }, this.description))), (this.errorDescription ||
93
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'a6ccddfb948ba5db46f355bb3afd73873fcfe8e6', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '896448579ceee1ba50672e58e8a70e21d5d9fc64', name: "error-description" }, this.errorDescription))))));
94
94
  }
95
95
  static get formAssociated() { return true; }
96
96
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -336,13 +336,13 @@ const NvFieldselect = class {
336
336
  * @returns {HTMLStencilElement} The HTML element to render.
337
337
  */
338
338
  render() {
339
- return (index.h(index.Host, { key: '8db3dc06b44e4db7e2a0742e601c12e18e758ce4' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'ba4f797c94d2e8155758caf61ac58ad81ec76e9c', htmlFor: this.inputId }, index.h("slot", { key: '066e33d824ae5cf44e3c7e0ca63784d945a89fff', name: "label" }, this.label))), index.h("div", { key: '0c07cf2f4628ef816e6d1e927fef0da2f822ca54', class: "select-wrapper" }, index.h("slot", { key: '53dbbfa9adc491c47896c3898a3e2004a3ee7e54', name: "before-input" }), index.h("div", { key: 'c31b867bd77008caca565d81805964da23f8330c', class: "select-container", onClick: this.handleSelectContainerClick }, index.h("slot", { key: '7be8d229d57c77ec4c02761ae8c7e8bb7238a185', name: "leading-input" }), this.internalReadonly && (index.h("input", { key: '282485f65b1a7bc5b85623d5f892cb1d83a9e99c', 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
+ return (index.h(index.Host, { key: 'a1a4eb304e38fb1b058b66af5d3c86edcb05610f' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '8aa279dba4e264b17ebd3b33dcff4480ce6c5d57', htmlFor: this.inputId }, index.h("slot", { key: 'a7cd14d0efc0f22739ee5496d64aad0930000a6e', name: "label" }, this.label))), index.h("div", { key: '3929ad8d896250574d437d94ab35c72e55884e04', class: "select-wrapper" }, index.h("slot", { key: 'c92b18f7639b33ebfcf2f3a4b1c24ab4b5a54fa5', name: "before-input" }), index.h("div", { key: '8554dc402e570dd48ca5031f5e6e4d48f84e9a7d', class: "select-container", onClick: this.handleSelectContainerClick }, index.h("slot", { key: 'b76cd121460e53f5f0a1e4e7ca0e96f5e733f6f3', name: "leading-input" }), this.internalReadonly && (index.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
340
340
  ? `${this.inputId}-error`
341
- : `${this.inputId}-description` })), index.h("select", { key: '1170c1fc05941662434a7720cf00de136969621b', 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
+ : `${this.inputId}-description` })), index.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
342
342
  ? `${this.inputId}-error`
343
- : `${this.inputId}-description` }, this.options && this.options.length > 0 ? (this.options.map(option => (index.h("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (index.h("slot", null))), index.h("div", { key: '349a41292a5e2c20783884b04295f3fdfd40df42', class: "select-icons" }, this.error && (index.h("nv-icon", { key: '586c197ccb0797b6e051c52e4734d06ae9fdff15', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '506fbbb4c0248ce93b9c240b0db6f7714f285e09', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (index.h("nv-iconbutton", { key: '848c3638af8d84eeb2a6b884c8e3c5aa549a053f', name: "chevron-down", size: "md", emphasis: "lower", tabindex: -1 })))), index.h("slot", { key: '77e8ed090caf243296918a2916d5964090783a10', name: "after-input" })), (this.description ||
344
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '3b6f24dc66bbca05210bc77f64ef47524d6d4460', class: "description", id: `${this.inputId}-description` }, index.h("slot", { key: '1e23487e1008b2c2c9c9208e315509be2a46eba3', name: "description" }, this.description))), (this.errorDescription ||
345
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '8073f26e95848f831b210e3a8d730458d2b62e89', class: "error-description", id: `${this.inputId}-error` }, index.h("slot", { key: '8980e5890052257fef11e0fe0b932ef933d34316', name: "error-description" }, this.errorDescription)))));
343
+ : `${this.inputId}-description` }, this.options && this.options.length > 0 ? (this.options.map(option => (index.h("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (index.h("slot", null))), index.h("div", { key: '4e17199de9ac55f30ab27f37ad0f69526a96a53b', class: "select-icons" }, this.error && (index.h("nv-icon", { key: '6e02a15e6a72cd54910b44dcc3445bc0a875d301', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '2c936e0fe3070fdb1540e50196850531c1a186f3', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (index.h("nv-iconbutton", { key: '55ff8a3ad2908c9380041b684274ebb275197605', name: "chevron-down", size: "md", emphasis: "lower", tabindex: -1 })))), index.h("slot", { key: 'd32c4fa7b22a705dcb89224de06c1f5f0a965f34', name: "after-input" })), (this.description ||
344
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '1a8ba7867fa31618ae6d9149ce03ee63b0c958a1', class: "description", id: `${this.inputId}-description` }, index.h("slot", { key: '527ee48037f1d76e6478b90de86b5e4f0b819677', name: "description" }, this.description))), (this.errorDescription ||
345
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '5279561b8a6a20101447a05b4f99d4aea4e6994b', class: "error-description", id: `${this.inputId}-error` }, index.h("slot", { key: '101f92f3d2bba8c4c9502542fada0a1363ab5ad1', name: "error-description" }, this.errorDescription)))));
346
346
  }
347
347
  static get formAssociated() { return true; }
348
348
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -231,7 +231,9 @@ const FieldInput = props => {
231
231
  const handleValueChanged = (event) => {
232
232
  event.stopPropagation();
233
233
  const newValue = event.detail;
234
- if (isNaN(newValue)) {
234
+ // Accept null as a valid value (when field is cleared)
235
+ // Only reject NaN numbers
236
+ if (typeof newValue === 'number' && Number.isNaN(newValue)) {
235
237
  return;
236
238
  }
237
239
  onInput({
@@ -704,11 +706,11 @@ const NvFieldslider = class {
704
706
  /****************************************************************************/
705
707
  //#region RENDER
706
708
  render() {
707
- return (index.h(index.Host, { key: '5256401116f099a480f35552c3a38072c60d74ed' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'ae1c59b2561f0b007d3f6da3ef379a32fe2ff449', htmlFor: this.startInputId }, index.h("slot", { key: '6d0b7e287276082ea680fc7fdfaabe428648df03', name: "label" }, this.label))), index.h("div", { key: '3c09727930e4d7bbde1f1ad578fb87e18f04c8dc', class: "slider-container" }, this.range ? (index.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, index.h("div", { key: 'db7e57716f9fc13e9ecd2e81c4126ccd8ceade9f', class: "track-container" }, index.h("div", { key: '8b5cc8d661b8179fa71c6729291e72bc743dcb13', class: "track", onPointerDown: this.onTrackInteraction }, this.range ? (index.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 })) : (index.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 }))), index.h(TickMarks, { key: '4f7ee0f6eccff4a2539b9f33c9f1dd68e0e8afa1', ticks: this.internalTicks, min: this.min, max: this.max })), this.range ? (index.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 })) : (index.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 ||
709
+ return (index.h(index.Host, { key: 'e4d4719682957f858468c3df97c82d5be29e87b8' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'a6d84550e4b91a4f23252e31ebbd3680b5a81aad', htmlFor: this.startInputId }, index.h("slot", { key: '44ce936f4b50ae5be5c3b8769b990fda82ff9b27', name: "label" }, this.label))), index.h("div", { key: '578a9673356506f87d906ff34254f93c0f724ebb', class: "slider-container" }, this.range ? (index.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, index.h("div", { key: '1dd30a5e703309993e8d61dc44bf1ad0adbc11e0', class: "track-container" }, index.h("div", { key: '870f688ec85678ac490cfc1542cc8d1802a43ec7', class: "track", onPointerDown: this.onTrackInteraction }, this.range ? (index.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 })) : (index.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 }))), index.h(TickMarks, { key: '75fb4d22e84ea569928e475e35d0031130f6c6ed', ticks: this.internalTicks, min: this.min, max: this.max })), this.range ? (index.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 })) : (index.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 ||
708
710
  this.description ||
709
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '40b921d84578b1d7ae18fa5f1ebcc34cc1678df2', class: "description" }, this.success && (index.h("nv-icon", { key: 'c0c7e52eb9118154f18280fdcb09ca4a5db63c74', name: "circle-check", class: "validation", size: "md" })), index.h("slot", { key: '2d764e1dabf08abb3271de1f8c2cf6f8418d9d5d', name: "description" }, this.description))), (this.error ||
711
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'b88410b4d04254b66c146b39dc4215f92c42b9b8', class: "description" }, this.success && (index.h("nv-icon", { key: '4b3886cd627e8243d899399c60b85c47ce823170', name: "circle-check", class: "validation", size: "md" })), index.h("slot", { key: 'b262880c747c3f6d1e51b1d4214761d7aecc9f9c', name: "description" }, this.description))), (this.error ||
710
712
  this.errorDescription ||
711
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '96f9424431a2adcca98f4619350e6d34c2037bc2', class: "error-description", hidden: !this.error }, this.error && (index.h("nv-icon", { key: 'b77e2b14a5f4e9cdf49c173f5fbf24d6a3f081ff', name: "alert-circle", class: "validation", size: "md" })), index.h("slot", { key: 'f04a20c146d54c405669109436b28bf9ad99ebd8', name: "error-description" }, this.errorDescription)))));
713
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'ad5d61a003680c4ff53217bf594dcb4e5fa1b053', class: "error-description", hidden: !this.error }, this.error && (index.h("nv-icon", { key: '3898c1781b38497b3bd797587980ed9fd32c8afc', name: "alert-circle", class: "validation", size: "md" })), index.h("slot", { key: '7fa0cf391cdb113eba7dbcd76a66044fc4d60281', name: "error-description" }, this.errorDescription)))));
712
714
  }
713
715
  static get formAssociated() { return true; }
714
716
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
5
5
  require('react');
6
6
  require('react-dom');
@@ -112,9 +112,9 @@ const NvFieldtext = class {
112
112
  /****************************************************************************/
113
113
  //#region RENDER
114
114
  render() {
115
- return (index.h(index.Host, { key: 'c807258b41bcaada1a02abf56171f84a4dadc981' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '9ba74a42aaddc54af913d8e9a76ad596f0b0ca02', htmlFor: this.inputId }, index.h("slot", { key: '7b0c763c5034807aceaf883dc8a7097cc5d21586', name: "label" }, this.label))), index.h("div", { key: '89396cfa77b11ea2499292448f43303ec1419432', class: "input-wrapper" }, index.h("slot", { key: '0574e6280a9f8575a555ed71cb380f8d622019a3', name: "before-input" }), index.h("div", { key: 'a7822f74ded6e21992ebf15afbbcaea449195c6a', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: 'af6789b67cea21c9445bd1000fa582c092daccf6', name: "leading-input" }), index.h("input", { key: '00118f95a1555d601cf5de2b4703e064dc31250a', 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 }), index.h("slot", { key: '67e4fecbfd6c938e77b98416d0d6229993ec4592', name: "trailing-input" }), this.error && (index.h("nv-icon", { key: '5f11f64460e003859fefffa904c70719ebf87a26', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '161fec1690c7672be64684c0121a802406b1d30b', name: "circle-check", class: "validation", size: "md" }))), index.h("slot", { key: '05d808bc7c372d5c911d03c074c89a829e42083b', name: "after-input" })), (this.description ||
116
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '07818a5aec0540a8758ccdfc32dbc15129adf5e9', class: "description" }, index.h("slot", { key: 'cc7b3a9086b4afae71c25964a92ea2ed5f07813a', name: "description" }, this.description))), (this.errorDescription ||
117
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'a313507b2c8f88c5d7304513b84f9bb360886961', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '796a5b0c0df37196a4c71bef6a35814fff1eae47', name: "error-description" }, this.errorDescription)))));
115
+ return (index.h(index.Host, { key: '59c03a594971eab5cb8ae4bf7b5342899bba4336' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'a36f03b76cee03be0fe2608fd40a88455818a83b', htmlFor: this.inputId }, index.h("slot", { key: '284a3f6f9efaed1ee7a40675fd377bdbe3d08d9e', name: "label" }, this.label))), index.h("div", { key: '963b853f5de42058d1cdced00c7bdc38f4583000', class: "input-wrapper" }, index.h("slot", { key: 'dce7ea85a9ae76c923ea3dc732d93614b94ba391', name: "before-input" }), index.h("div", { key: 'eac7b8e1d85f9623287f839cdc7ef3133c9c75d8', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: 'db3ab29c4a0767ffc8f8c1368085052769bdc4cc', name: "leading-input" }), index.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 }), index.h("slot", { key: 'e8950b2b41ce5e350e39084c3d6936a1a11960e4', name: "trailing-input" }), this.error && (index.h("nv-icon", { key: '83eb974690dfd69858877ba434e4dd30802208c8', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '2b8e37bd41e2b98ae17a249379528dd6e1773e6e', name: "circle-check", class: "validation", size: "md" }))), index.h("slot", { key: '72e5ae030d15c61409095f4067436ee890d21a1e', name: "after-input" })), (this.description ||
116
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '54a353743334cf7d96597a543d0e2a7c52833a31', class: "description" }, index.h("slot", { key: '70dd9595b638f0dc56db6ecb24a93fcca629a2d3', name: "description" }, this.description))), (this.errorDescription ||
117
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '47a26240ae8875cedb50b95d0ad41dab762af6d3', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '0c84a7c46128a5c0960b5e2ecfda94f76ef9d7d7', name: "error-description" }, this.errorDescription)))));
118
118
  }
119
119
  static get formAssociated() { return true; }
120
120
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -182,9 +182,9 @@ const NvFieldtextarea = class {
182
182
  /****************************************************************************/
183
183
  //#region RENDER
184
184
  render() {
185
- return (index.h(index.Host, { key: '8f7f14974b855a44e88a951ff0795e11e3ab7d61' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '9b438132196d7bc75cc4efdae736451bd7a23cdc', htmlFor: this.inputId }, index.h("slot", { key: 'f64e341eccefed72152326fadd9287f056842634', name: "label" }, this.label))), index.h("div", { key: '454213728d3b455d602a21653c1fc784bc411477', class: "textarea-wrapper" }, index.h("div", { key: '9ab87f44cf9622ca7c389d797a7e777eda7621d9', class: "textarea-container", onClick: this.handleTextareaContainerClick }, index.h("textarea", { key: 'd8c66568fa9c581063e2b9f531f3442020d07b70', 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: clsx297c1ffe.clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
186
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '92700f5775053107569d2a2a0857c939a882debb', class: "description" }, index.h("slot", { key: 'd38ebd52d5d08ffe286acbee11e8733023c45824', name: "description" }, this.description))), (this.errorDescription ||
187
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '872008326796f477c7c48ee2e8eec60ca51135ba', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'eae9c837562d2b39bbe5813390c9bf63d86dcf36', name: "error-description" }, this.errorDescription)))));
185
+ return (index.h(index.Host, { key: '3011ab5796ff80bef57fa31f8c0c3862ea8b2ec9' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '5ce143e110d23ae0812d8e3282c7cfd7013dbf8c', htmlFor: this.inputId }, index.h("slot", { key: 'd2aec99e424f7acef8b6831ce88a094e7b97d5a2', name: "label" }, this.label))), index.h("div", { key: 'd7ca0f0a7002649b62c90a0f414ce951a45fb36f', class: "textarea-wrapper" }, index.h("div", { key: '7052a545876c11736cc851099aeca3d827e23e94', class: "textarea-container", onClick: this.handleTextareaContainerClick }, index.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: clsx297c1ffe.clsx(this.resize === 'none' && 'resize-none', this.resize === 'vertical' && 'resize-y', this.resize === 'horizontal' && 'resize-x', this.resize === 'both' && 'resize') }))), (this.description ||
186
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '03c0ac2d2a63ac5836ec45b64fa368d7e6462e41', class: "description" }, index.h("slot", { key: 'afe544101550988895f12598adbc13e25d5f221f', name: "description" }, this.description))), (this.errorDescription ||
187
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '45f08a76bf8abfc53a231d4e8977bbe6ed80b64d', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '4f37c2099badf5ccf9b58bb5ce71292c3b2baae5', name: "error-description" }, this.errorDescription)))));
188
188
  }
189
189
  static get formAssociated() { return true; }
190
190
  get el() { return index.getElement(this); }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-_oq_uffl.js');
3
+ var index = require('./index-BObVnP12.js');
4
4
  var constants69bafca2 = require('./constants-69bafca2-DpB_ghPF.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');
@@ -385,6 +385,7 @@ const NvFieldtime = class {
385
385
  if (firstVisibleType && this.inputElements[firstVisibleType]) {
386
386
  this.inputElements[firstVisibleType].blur();
387
387
  }
388
+ this.open = false;
388
389
  }
389
390
  }
390
391
  //#endregion LISTENERS
@@ -1059,9 +1060,9 @@ const NvFieldtime = class {
1059
1060
  }, key: `${option}-${index$1}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
1060
1061
  }
1061
1062
  render() {
1062
- return (index.h(index.Host, { key: '315b0a732c1ef8bee7aaa0141ce533ec265e35ab', onclick: (e) => this.handleHostClick(e), "aria-expanded": this.open ? 'true' : 'false' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '100b75accd50c277e3ddd13c007e55dad8c6f8b7', htmlFor: this.inputId }, index.h("slot", { key: 'cec67688f98fc7976299a2f55ba8ba859e4ecacc', name: "label" }, this.label))), index.h("nv-popover", { key: 'feaaefb107251368db809babb02b8f8c7cb7baf0', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: 'c539917597eebdd92bb2e832d1fd9d6afceb5c04', class: "input-wrapper", slot: "trigger" }, index.h("slot", { key: '5a869349e9fd7a422d596f5bd05402d5559a6f2b', name: "before-input" }), index.h("div", { key: '27dac6987b28d08bb54b9ffc70ddade28f527a9c', class: "input-container" }, index.h("slot", { key: '9df638bb3d58df138a360966925b04092f1d4b9a', name: "leading-input" }), this.renderTimeInputFields(), index.h("nv-iconbutton", { key: '8d6796d9fc57ef2a934bfe79621ff76def8e9507', name: 'clock', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide time picker' : 'Show time picker', onClick: () => this.HandleDropdownIconClick() }), this.error && (index.h("nv-icon", { key: '15b593ce4e850d18a5f5f93120ae84e84054cffe', name: "alert-circle", class: "validation", size: "sm" })), this.success && (index.h("nv-icon", { key: '85e4a38c3ef64552fc7a47448471d4276ee5cc46', name: "circle-check", class: "validation", size: "sm" }))), index.h("slot", { key: '45cc1c26bc40425df62382a371ab658dd18aefa8', name: "after-input" })), index.h("div", { key: '23432dd354491420e42400d9eeb22bc23e36623e', class: "time-dropdown", slot: "content" }, index.h("div", { key: 'efb53556077c85ee94a8fe345a03d67a3e36cdc1', class: "time-columns" }, this.renderTimeDropdownColumns()))), (this.description ||
1063
- this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '735447b328a8264739d3185ce6c65d48a01ec801', class: "description" }, index.h("slot", { key: '86387e48804b2ac1842c64b4cf4f5ca9f34a6719', name: "description" }, this.description))), (this.errorDescription ||
1064
- this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'b6cc406c6a872b5ebb83a35a84852e143781e12f', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'c9dc284e202b081a61346796d21e73c8647c7daa', name: "error-description" }, this.errorDescription)))));
1063
+ return (index.h(index.Host, { key: 'f66fe2a29f23a0bc967821a0c9bca4347b622286', onclick: (e) => this.handleHostClick(e), "aria-expanded": this.open ? 'true' : 'false' }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'f01ce1b034b1b547cbdde5814db9357ee1913e04', htmlFor: this.inputId }, index.h("slot", { key: 'd81dcb20883b93280db6e76e0299f679f1f9ed84', name: "label" }, this.label))), index.h("nv-popover", { key: '8c9e83002edcfba89ca4ca282fc82db714ed2f43', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: '3a5b26e4be67f277ead2a9fe2f04e5d12a4bd596', class: "input-wrapper", slot: "trigger" }, index.h("slot", { key: '2ea5f8269c6f0892c53a002a298ca3ceed8f8a00', name: "before-input" }), index.h("div", { key: 'ab97bbbf183118d7b510f82c800b4a3fa1fefda3', class: "input-container" }, index.h("slot", { key: 'a80d2f68b24d4226c18bf0df18ebf13ac6e0873e', name: "leading-input" }), this.renderTimeInputFields(), index.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 && (index.h("nv-icon", { key: '8f414a3b3daae6f0625b3c62b920621bf8698db3', name: "alert-circle", class: "validation", size: "sm" })), this.success && (index.h("nv-icon", { key: '13b5671664466b6bb50f2561b5cffb96517a1068', name: "circle-check", class: "validation", size: "sm" }))), index.h("slot", { key: 'b5d6085a9864ef84d4113062a0b1cb8a807ab241', name: "after-input" })), index.h("div", { key: '2950c5fac3a0f219e5db2e3a7e9f605d86e50aa2', class: "time-dropdown", slot: "content" }, index.h("div", { key: 'c5b7ff3818a05e1f6d7ca76657f57b85bb595345', class: "time-columns" }, this.renderTimeDropdownColumns()))), (this.description ||
1064
+ this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'c8cb90fad74721a9b5eb0ab50980f3fd7c587e62', class: "description" }, index.h("slot", { key: '641d1a6a9dbf580267664831d5b371a601afb039', name: "description" }, this.description))), (this.errorDescription ||
1065
+ this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '5721b81d7a16b626bfa7c3af20897f33b7c37080', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '84cef1043666ab6dd86f70d4ba0054d7f33ca589', name: "error-description" }, this.errorDescription)))));
1065
1066
  }
1066
1067
  static get formAssociated() { return true; }
1067
1068
  get el() { return index.getElement(this); }