@nova-design-system/nova-react 3.0.0-beta.46 → 3.0.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-BgDhK4Po.js → index-Byv3Vmev.js} +605 -495
- package/dist/cjs/index.js +1 -2
- package/dist/cjs/{nv-alert.entry-C9DnCn0Q.js → nv-alert.entry-BXY4KXbF.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-Cj_bK7KY.js → nv-avatar.entry-BnPSKkJJ.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-H664ASUM.js → nv-badge_2.entry-BsI3B8Rr.js} +2 -2
- package/dist/cjs/{nv-breadcrumb.entry-BOyjRSxM.js → nv-breadcrumb.entry-D5vGHLOG.js} +2 -2
- package/dist/cjs/{nv-breadcrumbs.entry-DkffTj6Z.js → nv-breadcrumbs.entry-CsaqAsnb.js} +2 -2
- package/dist/cjs/{nv-button.entry-Dv4bG9oE.js → nv-button.entry-DzZfGZGy.js} +2 -2
- package/dist/cjs/{nv-calendar.entry-DSoKDy9Q.js → nv-calendar.entry-CGKv_-gO.js} +49 -20
- package/dist/cjs/{nv-col.entry-CGNiCKta.js → nv-col.entry-Cng8NaTW.js} +2 -2
- package/dist/cjs/{nv-datagrid.entry-YSL7aTz5.js → nv-datagrid.entry-BbAOzpiO.js} +352 -92
- package/dist/cjs/{nv-datagridcolumn.entry-7whgB5iS.js → nv-datagridcolumn.entry-CRogHbVM.js} +2 -2
- package/dist/cjs/{nv-dialog.entry-CLANnPw3.js → nv-dialog.entry-BSIZGYGF.js} +2 -2
- package/dist/cjs/{nv-dialogfooter_2.entry-cHevwuGs.js → nv-dialogfooter_2.entry-Q4_li_QU.js} +3 -3
- package/dist/cjs/{nv-fieldcheckbox.entry-BV8M8SyS.js → nv-fieldcheckbox.entry-DmgzfmRd.js} +5 -5
- package/dist/cjs/{nv-fielddate.entry--KEcXuio.js → nv-fielddate.entry-qAvLX_Ru.js} +6 -6
- package/dist/cjs/{nv-fielddaterange.entry-Bctzvr40.js → nv-fielddaterange.entry-DVB8Rwxk.js} +5 -5
- package/dist/cjs/{nv-fielddropdown.entry-DJPARQ0F.js → nv-fielddropdown.entry-DKXmoXeW.js} +16 -30
- package/dist/cjs/{nv-fielddropdownitem.entry-DAlnhF7-.js → nv-fielddropdownitem.entry-BVLVXi0e.js} +2 -2
- package/dist/cjs/{nv-fieldmultiselect.entry-DDKtC-sR.js → nv-fieldmultiselect.entry-DrTbd3Dj.js} +29 -72
- package/dist/cjs/{nv-fieldnumber.entry-FzcOQMWp.js → nv-fieldnumber.entry-DegbEHRL.js} +4 -4
- package/dist/cjs/{nv-fieldpassword.entry-ZgJKgEWo.js → nv-fieldpassword.entry-gqjlEl7a.js} +4 -4
- package/dist/cjs/{nv-fieldradio.entry-B6vwI0oH.js → nv-fieldradio.entry-CVEY4v6F.js} +4 -4
- package/dist/cjs/{nv-fieldselect.entry-Dpb1RR2D.js → nv-fieldselect.entry-BrCUuRWa.js} +6 -6
- package/dist/cjs/{nv-fieldtext.entry-WhMFksEn.js → nv-fieldtext.entry-q9NnqL5c.js} +4 -4
- package/dist/cjs/{nv-fieldtextarea.entry-Cpqi_pE7.js → nv-fieldtextarea.entry-B4qiLmX1.js} +4 -4
- package/dist/cjs/{nv-fieldtime.entry-BApGHC9K.js → nv-fieldtime.entry-Bp2IWjhN.js} +10 -10
- package/dist/cjs/{nv-icon.entry-DTbgrNDQ.js → nv-icon.entry-B1ax9cJS.js} +2 -2
- package/dist/cjs/{nv-iconbutton_2.entry-D5Wjr6mr.js → nv-iconbutton_2.entry-BRPAGl2S.js} +3 -3
- package/dist/cjs/{nv-menu.entry-4P44Bom1.js → nv-menu.entry-BiWiIZAm.js} +17 -43
- package/dist/cjs/{nv-menuitem.entry-pYkLIeY9.js → nv-menuitem.entry-CFkXoZ_r.js} +2 -2
- package/dist/cjs/{nv-popover.entry-DJzEjs-d.js → nv-popover.entry-KT1iQUJk.js} +2 -2
- package/dist/cjs/{nv-row.entry-AQGhBTGs.js → nv-row.entry-Cs2GDrcu.js} +2 -2
- package/dist/cjs/{nv-stack.entry-Bb6k4Yob.js → nv-stack.entry-Ci7pxGSo.js} +2 -2
- package/dist/cjs/{nv-table.entry-C4DY5CRF.js → nv-table.entry-N4MV8Y6E.js} +3 -3
- package/dist/cjs/{nv-tablecolumn.entry-jJAoHJnt.js → nv-tablecolumn.entry-CTz4jsZl.js} +1 -1
- package/dist/cjs/{nv-toggle.entry-P76L0fsx.js → nv-toggle.entry-m10-ncYR.js} +3 -3
- package/dist/cjs/{nv-tooltip.entry-DC7XngcD.js → nv-tooltip.entry-B6aRDto3.js} +2 -2
- package/dist/generated/components.js +0 -8
- package/dist/types/generated/components.d.ts +0 -3
- package/package.json +1 -1
- package/dist/cjs/nv-base.entry-DdLnS1hF.js +0 -71
|
@@ -4435,7 +4435,7 @@ const NvIcon$2 = /*@__PURE__*/ proxyCustomElement(class NvIcon extends H {
|
|
|
4435
4435
|
/****************************************************************************/
|
|
4436
4436
|
//#region RENDER
|
|
4437
4437
|
render() {
|
|
4438
|
-
return (h$1(Host$1, { key: '
|
|
4438
|
+
return (h$1(Host$1, { key: '5d5988e7c0f49781b57b86da6e46e38eeac5ddae', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, h$1("svg", { key: 'ab4007e92d6a13245293dbbb7dc746ab21cdbe33', 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$1("use", { key: 'c9cb4fea1695e81c4e9e775c217dfb9ac3b7c9ec', href: `#${this.name}` }))));
|
|
4439
4439
|
}
|
|
4440
4440
|
static get style() { return NvIconStyle0; }
|
|
4441
4441
|
}, [0, "nv-icon", {
|
|
@@ -4448,7 +4448,7 @@ const NvIcon$2 = /*@__PURE__*/ proxyCustomElement(class NvIcon extends H {
|
|
|
4448
4448
|
"name": [513],
|
|
4449
4449
|
"size": [1537]
|
|
4450
4450
|
}]);
|
|
4451
|
-
function defineCustomElement$
|
|
4451
|
+
function defineCustomElement$R() {
|
|
4452
4452
|
if (typeof customElements === "undefined") {
|
|
4453
4453
|
return;
|
|
4454
4454
|
}
|
|
@@ -4461,7 +4461,7 @@ function defineCustomElement$S() {
|
|
|
4461
4461
|
break;
|
|
4462
4462
|
} });
|
|
4463
4463
|
}
|
|
4464
|
-
defineCustomElement$
|
|
4464
|
+
defineCustomElement$R();
|
|
4465
4465
|
|
|
4466
4466
|
const nvAlertCss = "nv-alert{display:flex !important;align-items:flex-start;position:relative;gap:var(--alert-gap-x);border-radius:var(--alert-radius);font-family:\"TT Norms Pro\", \"Montserrat\", sans-serif}nv-alert>nv-icon{margin-left:var(--alert-icon-position-x);margin-top:var(--alert-icon-position-y)}nv-alert.feedback-information{background-color:var(--components-alert-information-background);border:1px solid var(--components-alert-information-border) !important}nv-alert.feedback-information>.close:focus,nv-alert.feedback-information>.close:focus-within{outline:none}nv-alert.feedback-information>.close:focus-visible,nv-alert.feedback-information>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-warning{background-color:var(--components-alert-warning-background);border:1px solid var(--components-alert-warning-border) !important}nv-alert.feedback-warning>.close:focus,nv-alert.feedback-warning>.close:focus-within{outline:none}nv-alert.feedback-warning>.close:focus-visible,nv-alert.feedback-warning>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-error{background-color:var(--components-alert-error-background);border:1px solid var(--components-alert-error-border) !important}nv-alert.feedback-error>.close:focus,nv-alert.feedback-error>.close:focus-within{outline:none}nv-alert.feedback-error>.close:focus-visible,nv-alert.feedback-error>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-success{background-color:var(--components-alert-success-background);border:1px solid var(--components-alert-success-border) !important}nv-alert.feedback-success>.close:focus,nv-alert.feedback-success>.close:focus-within{outline:none}nv-alert.feedback-success>.close:focus-visible,nv-alert.feedback-success>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-neutral{background-color:var(--components-alert-neutral-background);border:1px solid var(--components-alert-neutral-border) !important}nv-alert.feedback-neutral>.close:focus,nv-alert.feedback-neutral>.close:focus-within{outline:none}nv-alert.feedback-neutral>.close:focus-visible,nv-alert.feedback-neutral>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert>nv-icon.icon-information{color:var(--components-alert-information-icon)}nv-alert>nv-icon.icon-warning{color:var(--components-alert-warning-icon)}nv-alert>nv-icon.icon-error{color:var(--components-alert-error-icon)}nv-alert>nv-icon.icon-success{color:var(--components-alert-success-icon)}nv-alert>nv-icon.icon-neutral{color:var(--components-alert-neutral-icon)}nv-alert>.content{display:flex;padding:var(--alert-padding);padding-left:0;flex-direction:column;gap:var(--alert-gap-y)}nv-alert>.content>.heading{color:var(--components-alert-content-title);font-size:var(--alert-heading-font-size);line-height:var(--alert-heading-line-height);font-weight:var(--alert-heading-font-weight)}nv-alert>.content>.message{color:var(--components-alert-content-description);font-size:var(--alert-message-font-size);line-height:var(--alert-message-line-height)}nv-alert>.close{border-radius:var(--alert-radius);position:absolute;display:flex;top:var(--alert-icon-position-y);right:var(--alert-icon-position-x);padding:0;border:none;background:none;cursor:pointer}";
|
|
4467
4467
|
const NvAlertStyle0 = nvAlertCss;
|
|
@@ -4638,7 +4638,7 @@ const NvAlert$1 = /*@__PURE__*/ proxyCustomElement(class NvAlert extends H {
|
|
|
4638
4638
|
}, undefined, {
|
|
4639
4639
|
"hidden": ["handleHiddenChange"]
|
|
4640
4640
|
}]);
|
|
4641
|
-
function defineCustomElement$1$
|
|
4641
|
+
function defineCustomElement$1$o() {
|
|
4642
4642
|
if (typeof customElements === "undefined") {
|
|
4643
4643
|
return;
|
|
4644
4644
|
}
|
|
@@ -4651,15 +4651,15 @@ function defineCustomElement$1$p() {
|
|
|
4651
4651
|
break;
|
|
4652
4652
|
case "nv-icon":
|
|
4653
4653
|
if (!customElements.get(tagName)) {
|
|
4654
|
-
defineCustomElement$
|
|
4654
|
+
defineCustomElement$R();
|
|
4655
4655
|
}
|
|
4656
4656
|
break;
|
|
4657
4657
|
} });
|
|
4658
4658
|
}
|
|
4659
|
-
defineCustomElement$1$
|
|
4659
|
+
defineCustomElement$1$o();
|
|
4660
4660
|
|
|
4661
4661
|
const NvAlert$2 = NvAlert$1;
|
|
4662
|
-
const defineCustomElement$
|
|
4662
|
+
const defineCustomElement$Q = defineCustomElement$1$o;
|
|
4663
4663
|
|
|
4664
4664
|
const nvAvatarCss = "nv-avatar{align-items:center !important;background-color:var(--components-avatar-background-1);border-radius:var(--radius-rounded-full) !important;display:flex !important;flex-shrink:0 !important;font-family:\"TT Norms Pro\", sans-serif;font-style:normal;font-weight:var(--font-weight-medium-emphasis);justify-content:center !important;leading-trim:both;line-height:1 !important;text-align:center;text-edge:cap;text-transform:uppercase}nv-avatar.avatar-color-1{background-color:var(--components-avatar-background-1);color:var(--components-avatar-content-1)}nv-avatar.avatar-color-2{background-color:var(--components-avatar-background-2);color:var(--components-avatar-content-2)}nv-avatar.avatar-color-3{background-color:var(--components-avatar-background-3);color:var(--components-avatar-content-3)}nv-avatar.avatar-color-4{background-color:var(--components-avatar-background-4);color:var(--components-avatar-content-4)}nv-avatar.avatar-color-5{background-color:var(--components-avatar-background-5);color:var(--components-avatar-content-5)}nv-avatar.avatar-color-6{background-color:var(--components-avatar-background-6);color:var(--components-avatar-content-6)}nv-avatar.avatar-color-7{background-color:var(--components-avatar-background-7);color:var(--components-avatar-content-7)}nv-avatar.avatar-color-8{background-color:var(--components-avatar-background-8);color:var(--components-avatar-content-8)}nv-avatar.avatar-color-9{background-color:var(--components-avatar-background-9);color:var(--components-avatar-content-9)}nv-avatar.avatar-color-10{background-color:var(--components-avatar-background-10);color:var(--components-avatar-content-10)}nv-avatar img{height:100%;width:100%;object-fit:cover;object-position:center;border-radius:50%}nv-avatar.avatar-xs{width:var(--avatar-xs-size);height:var(--avatar-xs-size);font-size:var(--avatar-xs-font-size);line-height:var(--avatar-xs-font-size)}nv-avatar.avatar-xs nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-avatar.avatar-sm{width:var(--avatar-sm-size);height:var(--avatar-sm-size);font-size:var(--avatar-sm-font-size);line-height:var(--avatar-sm-font-size)}nv-avatar.avatar-sm nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-avatar.avatar-md{width:var(--avatar-md-size);height:var(--avatar-md-size);font-size:var(--avatar-md-font-size);line-height:var(--avatar-md-font-size)}nv-avatar.avatar-md nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-avatar.avatar-lg{width:var(--avatar-lg-size);height:var(--avatar-lg-size);font-size:var(--avatar-lg-font-size);line-height:var(--avatar-lg-font-size)}nv-avatar.avatar-lg nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-avatar.avatar-xl{width:var(--avatar-xl-size);height:var(--avatar-xl-size);font-size:var(--avatar-xl-font-size);line-height:var(--avatar-xl-font-size)}nv-avatar.avatar-xl nv-icon>svg{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}";
|
|
4665
4665
|
const NvAvatarStyle0 = nvAvatarCss;
|
|
@@ -4733,7 +4733,7 @@ const NvAvatar$1 = /*@__PURE__*/ proxyCustomElement(class NvAvatar extends H {
|
|
|
4733
4733
|
"size": [1537],
|
|
4734
4734
|
"color": [513]
|
|
4735
4735
|
}]);
|
|
4736
|
-
function defineCustomElement$1$
|
|
4736
|
+
function defineCustomElement$1$n() {
|
|
4737
4737
|
if (typeof customElements === "undefined") {
|
|
4738
4738
|
return;
|
|
4739
4739
|
}
|
|
@@ -4746,15 +4746,15 @@ function defineCustomElement$1$o() {
|
|
|
4746
4746
|
break;
|
|
4747
4747
|
case "nv-icon":
|
|
4748
4748
|
if (!customElements.get(tagName)) {
|
|
4749
|
-
defineCustomElement$
|
|
4749
|
+
defineCustomElement$R();
|
|
4750
4750
|
}
|
|
4751
4751
|
break;
|
|
4752
4752
|
} });
|
|
4753
4753
|
}
|
|
4754
|
-
defineCustomElement$1$
|
|
4754
|
+
defineCustomElement$1$n();
|
|
4755
4755
|
|
|
4756
4756
|
const NvAvatar$2 = NvAvatar$1;
|
|
4757
|
-
const defineCustomElement$
|
|
4757
|
+
const defineCustomElement$P = defineCustomElement$1$n;
|
|
4758
4758
|
|
|
4759
4759
|
const nvBadgeCss = "nv-badge{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content}nv-badge.with-gap{padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content;gap:var(--badge-gap-x)}nv-badge.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-badge:not(.with-gap){padding:var(--badge-padding-y) var(--badge-padding-x);display:inline-flex !important;vertical-align:middle;align-items:center;border-radius:var(--radius-rounded-full);border-style:solid;border-width:0.5px;height:fit-content;width:fit-content}nv-badge.badge-1{color:var(--color-rainbow-1-text);background-color:var(--color-rainbow-1-background);border-color:var(--color-rainbow-1-border)}nv-badge.badge-1 .close:focus,nv-badge.badge-1 .close:focus-within{outline:none}nv-badge.badge-1 .close:focus-visible,nv-badge.badge-1 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-1-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-1 nv-icon{color:var(--color-rainbow-1-icon)}nv-badge.badge-2{color:var(--color-rainbow-2-text);background-color:var(--color-rainbow-2-background);border-color:var(--color-rainbow-2-border)}nv-badge.badge-2 .close:focus,nv-badge.badge-2 .close:focus-within{outline:none}nv-badge.badge-2 .close:focus-visible,nv-badge.badge-2 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-2-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-2 nv-icon{color:var(--color-rainbow-2-icon)}nv-badge.badge-3{color:var(--color-rainbow-3-text);background-color:var(--color-rainbow-3-background);border-color:var(--color-rainbow-3-border)}nv-badge.badge-3 .close:focus,nv-badge.badge-3 .close:focus-within{outline:none}nv-badge.badge-3 .close:focus-visible,nv-badge.badge-3 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-3-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-3 nv-icon{color:var(--color-rainbow-3-icon)}nv-badge.badge-4{color:var(--color-rainbow-4-text);background-color:var(--color-rainbow-4-background);border-color:var(--color-rainbow-4-border)}nv-badge.badge-4 .close:focus,nv-badge.badge-4 .close:focus-within{outline:none}nv-badge.badge-4 .close:focus-visible,nv-badge.badge-4 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-4-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-4 nv-icon{color:var(--color-rainbow-4-icon)}nv-badge.badge-5{color:var(--color-rainbow-5-text);background-color:var(--color-rainbow-5-background);border-color:var(--color-rainbow-5-border)}nv-badge.badge-5 .close:focus,nv-badge.badge-5 .close:focus-within{outline:none}nv-badge.badge-5 .close:focus-visible,nv-badge.badge-5 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-5-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-5 nv-icon{color:var(--color-rainbow-5-icon)}nv-badge.badge-6{color:var(--color-rainbow-6-text);background-color:var(--color-rainbow-6-background);border-color:var(--color-rainbow-6-border)}nv-badge.badge-6 .close:focus,nv-badge.badge-6 .close:focus-within{outline:none}nv-badge.badge-6 .close:focus-visible,nv-badge.badge-6 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-6-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-6 nv-icon{color:var(--color-rainbow-6-icon)}nv-badge.badge-7{color:var(--color-rainbow-7-text);background-color:var(--color-rainbow-7-background);border-color:var(--color-rainbow-7-border)}nv-badge.badge-7 .close:focus,nv-badge.badge-7 .close:focus-within{outline:none}nv-badge.badge-7 .close:focus-visible,nv-badge.badge-7 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-7-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-7 nv-icon{color:var(--color-rainbow-7-icon)}nv-badge.badge-8{color:var(--color-rainbow-8-text);background-color:var(--color-rainbow-8-background);border-color:var(--color-rainbow-8-border)}nv-badge.badge-8 .close:focus,nv-badge.badge-8 .close:focus-within{outline:none}nv-badge.badge-8 .close:focus-visible,nv-badge.badge-8 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-8-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-8 nv-icon{color:var(--color-rainbow-8-icon)}nv-badge.badge-9{color:var(--color-rainbow-9-text);background-color:var(--color-rainbow-9-background);border-color:var(--color-rainbow-9-border)}nv-badge.badge-9 .close:focus,nv-badge.badge-9 .close:focus-within{outline:none}nv-badge.badge-9 .close:focus-visible,nv-badge.badge-9 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-9-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-9 nv-icon{color:var(--color-rainbow-9-icon)}nv-badge.badge-10{color:var(--color-rainbow-10-text);background-color:var(--color-rainbow-10-background);border-color:var(--color-rainbow-10-border)}nv-badge.badge-10 .close:focus,nv-badge.badge-10 .close:focus-within{outline:none}nv-badge.badge-10 .close:focus-visible,nv-badge.badge-10 .close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-10-content);outline-offset:calc(var(--focus-outline-offset) * 0.2)}nv-badge.badge-10 nv-icon{color:var(--color-rainbow-10-icon)}nv-badge span{font-size:var(--font-size-xs);line-height:var(--line-height-xs) !important}nv-badge nv-icon>svg.icon-xs{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-sm{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-md{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-lg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge nv-icon>svg.icon-xl{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-badge .close{padding:0;line-height:0;border:none;background:none;cursor:pointer;color:inherit;display:inline-flex;align-items:center;aspect-ratio:1/1;border-radius:var(--radius-rounded-full)}";
|
|
4760
4760
|
const NvBadgeStyle0 = nvBadgeCss;
|
|
@@ -4904,7 +4904,7 @@ const NvBadge$2 = /*@__PURE__*/ proxyCustomElement(class NvBadge extends H {
|
|
|
4904
4904
|
"icon": ["handleIconChange"],
|
|
4905
4905
|
"hidden": ["handleHiddenChange"]
|
|
4906
4906
|
}]);
|
|
4907
|
-
function defineCustomElement$
|
|
4907
|
+
function defineCustomElement$O() {
|
|
4908
4908
|
if (typeof customElements === "undefined") {
|
|
4909
4909
|
return;
|
|
4910
4910
|
}
|
|
@@ -4917,98 +4917,15 @@ function defineCustomElement$P() {
|
|
|
4917
4917
|
break;
|
|
4918
4918
|
case "nv-icon":
|
|
4919
4919
|
if (!customElements.get(tagName)) {
|
|
4920
|
-
defineCustomElement$
|
|
4920
|
+
defineCustomElement$R();
|
|
4921
4921
|
}
|
|
4922
4922
|
break;
|
|
4923
4923
|
} });
|
|
4924
4924
|
}
|
|
4925
|
-
defineCustomElement$
|
|
4925
|
+
defineCustomElement$O();
|
|
4926
4926
|
|
|
4927
4927
|
const NvBadge$1 = NvBadge$2;
|
|
4928
|
-
const defineCustomElement$
|
|
4929
|
-
|
|
4930
|
-
const classes = {
|
|
4931
|
-
'w-full': 'w-full',
|
|
4932
|
-
'wFull': 'w-full',
|
|
4933
|
-
'is-active': 'is-active',
|
|
4934
|
-
'is-selected': 'is-selected',
|
|
4935
|
-
};
|
|
4936
|
-
const NvBaseComponent = /*@__PURE__*/ proxyCustomElement(class NvBaseComponent extends H {
|
|
4937
|
-
constructor() {
|
|
4938
|
-
super();
|
|
4939
|
-
this.__registerHost();
|
|
4940
|
-
}
|
|
4941
|
-
/****************************************************************************/
|
|
4942
|
-
//#region LIFECYCLE
|
|
4943
|
-
componentWillLoad() {
|
|
4944
|
-
this.applyClassesOnInitialRender();
|
|
4945
|
-
}
|
|
4946
|
-
componentDidLoad() {
|
|
4947
|
-
this.mutationObserver = new MutationObserver(mutations => {
|
|
4948
|
-
mutations.forEach(mutation => {
|
|
4949
|
-
if (mutation.type === 'attributes') {
|
|
4950
|
-
const target = mutation.target;
|
|
4951
|
-
Object.keys(classes).forEach(attributeName => {
|
|
4952
|
-
if (target.hasAttribute(attributeName)) {
|
|
4953
|
-
target.classList.add(classes[attributeName]);
|
|
4954
|
-
}
|
|
4955
|
-
else {
|
|
4956
|
-
target.classList.remove(classes[attributeName]);
|
|
4957
|
-
}
|
|
4958
|
-
});
|
|
4959
|
-
}
|
|
4960
|
-
});
|
|
4961
|
-
});
|
|
4962
|
-
this.observeElements();
|
|
4963
|
-
}
|
|
4964
|
-
disconnectedCallback() {
|
|
4965
|
-
if (this.mutationObserver) {
|
|
4966
|
-
this.mutationObserver.disconnect();
|
|
4967
|
-
}
|
|
4968
|
-
}
|
|
4969
|
-
//#endregion LIFECYCLE
|
|
4970
|
-
/****************************************************************************/
|
|
4971
|
-
//#region METHODS
|
|
4972
|
-
applyClassesOnInitialRender() {
|
|
4973
|
-
Object.keys(classes).forEach(attributeName => {
|
|
4974
|
-
const elements = this.el.querySelectorAll(`[${attributeName}]`);
|
|
4975
|
-
elements.forEach(element => {
|
|
4976
|
-
element.classList.add(classes[attributeName]);
|
|
4977
|
-
});
|
|
4978
|
-
});
|
|
4979
|
-
}
|
|
4980
|
-
observeElements() {
|
|
4981
|
-
this.mutationObserver.observe(this.el, {
|
|
4982
|
-
attributes: true,
|
|
4983
|
-
attributeFilter: Object.keys(classes),
|
|
4984
|
-
subtree: true,
|
|
4985
|
-
});
|
|
4986
|
-
}
|
|
4987
|
-
//#endregion METHODS
|
|
4988
|
-
/****************************************************************************/
|
|
4989
|
-
//#region RENDER
|
|
4990
|
-
render() {
|
|
4991
|
-
return (h$1(Host$1, { key: 'ba3d284241a61fa30bd434f563b7e4962ea3f238', style: { display: 'block' } }, h$1("slot", { key: '44a0f1bc5267cf7e7bd0c1d258e8d9b8020a59f3' })));
|
|
4992
|
-
}
|
|
4993
|
-
get el() { return this; }
|
|
4994
|
-
}, [4, "nv-base"]);
|
|
4995
|
-
function defineCustomElement$1$n() {
|
|
4996
|
-
if (typeof customElements === "undefined") {
|
|
4997
|
-
return;
|
|
4998
|
-
}
|
|
4999
|
-
const components = ["nv-base"];
|
|
5000
|
-
components.forEach(tagName => { switch (tagName) {
|
|
5001
|
-
case "nv-base":
|
|
5002
|
-
if (!customElements.get(tagName)) {
|
|
5003
|
-
customElements.define(tagName, NvBaseComponent);
|
|
5004
|
-
}
|
|
5005
|
-
break;
|
|
5006
|
-
} });
|
|
5007
|
-
}
|
|
5008
|
-
defineCustomElement$1$n();
|
|
5009
|
-
|
|
5010
|
-
const NvBase$1 = NvBaseComponent;
|
|
5011
|
-
const defineCustomElement$N = defineCustomElement$1$n;
|
|
4928
|
+
const defineCustomElement$N = defineCustomElement$O;
|
|
5012
4929
|
|
|
5013
4930
|
const useGrow = (node, { duration = 200, amount = 0.8, hasFade = true } = {}) => {
|
|
5014
4931
|
const nodeStyler = index(node);
|
|
@@ -6975,7 +6892,7 @@ const NvPopover$2 = /*@__PURE__*/ proxyCustomElement(class NvPopover extends H {
|
|
|
6975
6892
|
/****************************************************************************/
|
|
6976
6893
|
//#region RENDER
|
|
6977
6894
|
render() {
|
|
6978
|
-
return (h$1(Host$1, { key: '
|
|
6895
|
+
return (h$1(Host$1, { key: '830051c35f7e10dfa4e31d401663bd5727ac988f' }, h$1("slot", { key: 'a49852a712bf6ab9c8557035ca4618d007939f03', name: "trigger" }), h$1("div", { key: '6d9cd4bd873cb92b1716a8ea88a3877a029cbe9c', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h$1("div", { key: 'f935c9248b602aa1c39e7d28c5503a24067fb744', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h$1("slot", { key: '6b682de05037b2d3b60c9139c448620fab963ea1', name: "content" }))));
|
|
6979
6896
|
}
|
|
6980
6897
|
get el() { return this; }
|
|
6981
6898
|
static get watchers() { return {
|
|
@@ -7048,7 +6965,7 @@ const NvTooltip$2 = /*@__PURE__*/ proxyCustomElement(class NvTooltip extends H {
|
|
|
7048
6965
|
/****************************************************************************/
|
|
7049
6966
|
//#region RENDER
|
|
7050
6967
|
render() {
|
|
7051
|
-
return (h$1(Host$1, { key: '
|
|
6968
|
+
return (h$1(Host$1, { key: '8309e08944469fad76997a6dfcb8b434461aa5a3' }, h$1("slot", { key: 'f3da94e2f2f581f7b8c93f4b3e70de67e305508a' }), h$1("nv-popover", { key: 'a28c50f59f9a781afd8a8ab60260d065dcadf96d', triggerMode: "hover", hasArrow: true, placement: this.placement, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, h$1("p", { key: '76f63a5f220de640f4eeada8aeba97e9ead73fc9', slot: "content" }, this.message), h$1("slot", { key: 'f55f71b357b23c29b40b9c022a5a1718c4c8c8fb', name: "content" }))));
|
|
7052
6969
|
}
|
|
7053
6970
|
get el() { return this; }
|
|
7054
6971
|
static get style() { return NvTooltipStyle0; }
|
|
@@ -7111,7 +7028,7 @@ const NvBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class NvBreadcrumb exten
|
|
|
7111
7028
|
/****************************************************************************/
|
|
7112
7029
|
//#region RENDER
|
|
7113
7030
|
render() {
|
|
7114
|
-
return (h$1(Host$1, { key: '
|
|
7031
|
+
return (h$1(Host$1, { key: '50f858dc015ef2cd51f54a08fa53ec88ee42ac41', role: "listitem", "aria-current": this.current ? 'location' : undefined, class: clsx({ 'visually-hidden': this.current }) }, this.type === 'collapsed' ? (h$1("button", { ref: el => (this.popoverTrigger = el) }, "...")) : (h$1("slot", null)), this.tooltip && (h$1("nv-tooltip", { key: '1df40faa4a483d4abf8895def5db87696cf0d08e', message: this.tooltip, triggerElement: this.popoverTrigger, placement: "top" })), this.type === 'collapsed' && (h$1("nv-popover", { key: '90174908cdcf1b3e1f8a8a82a01cfa505311c930', triggerMode: "click", groupName: "breadcrumbs", triggerElement: this.popoverTrigger }, h$1("ul", { key: '72282abd41c80bb8edf0c6b19506be32bf5ed688', slot: "content" }, h$1("slot", { key: '4b9c325c0d27162c4856796f6a7d7c9b39edf993' })))), h$1("span", { key: '62316fc8efc09067a0a64d4e90e76d57b329ee81', "data-scope": "separator" }, "/")));
|
|
7115
7032
|
}
|
|
7116
7033
|
get el() { return this; }
|
|
7117
7034
|
static get style() { return NvBreadcrumbStyle0; }
|
|
@@ -7158,7 +7075,7 @@ const NvBreadcrumbs$1 = /*@__PURE__*/ proxyCustomElement(class NvBreadcrumbs ext
|
|
|
7158
7075
|
}
|
|
7159
7076
|
//#region RENDER
|
|
7160
7077
|
render() {
|
|
7161
|
-
return (h$1(Host$1, { key: '
|
|
7078
|
+
return (h$1(Host$1, { key: '19ad2bb41f4254a98a571cbadb50ba5ed7d29f62', role: "navigation", "aria-label": "breadcrumbs" }, h$1("ol", { key: '11b77f0f11c6b1dc2ce5ab3f4f7b23e8ec728b61' }, h$1("slot", { key: 'c0c683f93c6874aa5f84fb735d13c1b5eabcd951' }))));
|
|
7162
7079
|
}
|
|
7163
7080
|
static get style() { return NvBreadcrumbsStyle0; }
|
|
7164
7081
|
}, [4, "nv-breadcrumbs"]);
|
|
@@ -7201,7 +7118,7 @@ const NvLoader$2 = /*@__PURE__*/ proxyCustomElement(class NvLoader extends H {
|
|
|
7201
7118
|
//#region RENDER
|
|
7202
7119
|
/* <slot> empty to force rendering change */
|
|
7203
7120
|
render() {
|
|
7204
|
-
return (h$1(Host$1, { key: '
|
|
7121
|
+
return (h$1(Host$1, { key: 'f3094e46eb7072534f497694d3c28030f0118acc', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
7205
7122
|
}
|
|
7206
7123
|
static get style() { return NvLoaderStyle0; }
|
|
7207
7124
|
}, [0, "nv-loader", {
|
|
@@ -7364,7 +7281,7 @@ const NvButton$2 = /*@__PURE__*/ proxyCustomElement(class NvButton extends H {
|
|
|
7364
7281
|
/****************************************************************************/
|
|
7365
7282
|
//#region RENDER
|
|
7366
7283
|
render() {
|
|
7367
|
-
return (h$1(Host$1, { key: '
|
|
7284
|
+
return (h$1(Host$1, { key: 'f8b20f9052d71f93eaf03f98550a7237225cadf2', role: "button", tabindex: "0", onClick: this.handleButtonClick }, this.loading && (h$1("nv-loader", { key: 'c1cefa72ee24dad9ce16bbfe1f51e6cec6dc7fbc', size: this.size === ButtonSize.Large ? 'sm' : 'xs' })), h$1("slot", { key: '36a311494e45ebc23b1133923a676d58e87f3800', name: "leading-icon" }), h$1("slot", { key: 'f6fea826cda9a09f7152f4e30cc6981c89e73ebe' }), h$1("slot", { key: 'd59c23ff85ea7efc16c69c5adbeb0e91786f1f68', name: "trailing-icon" })));
|
|
7368
7285
|
}
|
|
7369
7286
|
static get formAssociated() { return true; }
|
|
7370
7287
|
get el() { return this; }
|
|
@@ -7524,7 +7441,7 @@ const NvIconbutton$2 = /*@__PURE__*/ proxyCustomElement(class NvIconbutton exten
|
|
|
7524
7441
|
/****************************************************************************/
|
|
7525
7442
|
//#region RENDER
|
|
7526
7443
|
render() {
|
|
7527
|
-
return (h$1(Host$1, { key: '
|
|
7444
|
+
return (h$1(Host$1, { key: 'f678bd976942aa35ae36c536fdd86cd65a43263a', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && h$1("nv-loader", { key: 'b874de8701de163c1f4235c2034a13da30279191', size: this.size }), !this.loading && h$1("nv-icon", { key: '222ccc93e3af3dcec81308b3b90ca724ecdfa2fb', name: this.name, size: this.size }), h$1("slot", { key: 'c7a257f7715a9320ffe46e09b59a2d570d1f052c' })));
|
|
7528
7445
|
}
|
|
7529
7446
|
static get formAssociated() { return true; }
|
|
7530
7447
|
get el() { return this; }
|
|
@@ -7559,7 +7476,7 @@ function defineCustomElement$F() {
|
|
|
7559
7476
|
break;
|
|
7560
7477
|
case "nv-icon":
|
|
7561
7478
|
if (!customElements.get(tagName)) {
|
|
7562
|
-
defineCustomElement$
|
|
7479
|
+
defineCustomElement$R();
|
|
7563
7480
|
}
|
|
7564
7481
|
break;
|
|
7565
7482
|
case "nv-loader":
|
|
@@ -7798,11 +7715,11 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
7798
7715
|
/**
|
|
7799
7716
|
* Change the displayed month
|
|
7800
7717
|
* @param {number} offset - Month offset (-1 for previous, 1 for next)
|
|
7801
|
-
* @param {number} calendarOffset - Month offset for the calendar (0 by default)
|
|
7802
7718
|
*/
|
|
7803
|
-
changeMonth(offset
|
|
7719
|
+
changeMonth(offset) {
|
|
7804
7720
|
const newDate = new Date(this.currentDate);
|
|
7805
|
-
|
|
7721
|
+
// Ensure we only move by one month at a time
|
|
7722
|
+
newDate.setUTCMonth(newDate.getUTCMonth() + offset);
|
|
7806
7723
|
// Add the appropriate animation class
|
|
7807
7724
|
const containers = this.el.querySelectorAll('.calendar-grid');
|
|
7808
7725
|
containers.forEach(container => {
|
|
@@ -7960,10 +7877,13 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
7960
7877
|
const firstDay = new Date(Date.UTC(year, month, 1));
|
|
7961
7878
|
const lastDay = new Date(Date.UTC(year, month + 1, 0));
|
|
7962
7879
|
const days = [];
|
|
7963
|
-
//
|
|
7964
|
-
|
|
7880
|
+
// Correct calculation of offset for previous month days
|
|
7881
|
+
// Use getUTCDay to stay consistent with UTC timezone
|
|
7882
|
+
const dayOfWeekIndex = firstDay.getUTCDay(); // 0 = Sunday, 1 = Monday, etc.
|
|
7883
|
+
// Adjust based on firstDayOfWeek (if week starts on Monday, offset is different)
|
|
7884
|
+
const offsetDays = (dayOfWeekIndex - this.firstDayOfWeek + 7) % 7;
|
|
7965
7885
|
// Add the days of the previous month for the first calendar
|
|
7966
|
-
if (offset === 0) {
|
|
7886
|
+
if (offset === 0 && offsetDays > 0) {
|
|
7967
7887
|
const prevMonthLastDay = new Date(Date.UTC(year, month, 0)).getUTCDate();
|
|
7968
7888
|
for (let i = offsetDays; i > 0; i--) {
|
|
7969
7889
|
const date = new Date(Date.UTC(year, month - 1, prevMonthLastDay - i + 1));
|
|
@@ -8153,6 +8073,21 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8153
8073
|
parseDate(dateInput) {
|
|
8154
8074
|
if (dateInput instanceof Date)
|
|
8155
8075
|
return dateInput;
|
|
8076
|
+
// Attempt to automatically detect ISO 8601 format (generated by toISOString())
|
|
8077
|
+
// The regex checks the standard ISO format: YYYY-MM-DDTHH:mm:ss.sssZ
|
|
8078
|
+
if (typeof dateInput === 'string' &&
|
|
8079
|
+
/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z$/.test(dateInput)) {
|
|
8080
|
+
try {
|
|
8081
|
+
const parsedDate = new Date(dateInput);
|
|
8082
|
+
if (!isNaN(parsedDate.getTime())) {
|
|
8083
|
+
return parsedDate;
|
|
8084
|
+
}
|
|
8085
|
+
}
|
|
8086
|
+
catch (error) {
|
|
8087
|
+
// If it fails, continue with other methods
|
|
8088
|
+
console.error('Error parsing ISO date:', error);
|
|
8089
|
+
}
|
|
8090
|
+
}
|
|
8156
8091
|
// Handling Unix Seconds ("X") formats
|
|
8157
8092
|
if (this.dateFormat === 'X') {
|
|
8158
8093
|
const unixSeconds = Number(dateInput);
|
|
@@ -8199,6 +8134,20 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8199
8134
|
}
|
|
8200
8135
|
return parsed.toDate();
|
|
8201
8136
|
}
|
|
8137
|
+
/**
|
|
8138
|
+
* Checks if the date format is in UTC mode
|
|
8139
|
+
* @returns {boolean} true if the date format is in UTC mode
|
|
8140
|
+
*/
|
|
8141
|
+
get isUTCMode() {
|
|
8142
|
+
return this.dateFormat.includes('Z');
|
|
8143
|
+
}
|
|
8144
|
+
/**
|
|
8145
|
+
* Checks if the date format is ISO 8601
|
|
8146
|
+
* @returns {boolean} true if the format is ISO 8601
|
|
8147
|
+
*/
|
|
8148
|
+
get isISO8601Format() {
|
|
8149
|
+
return this.dateFormat === 'YYYY-MM-DD[T]HH:mm:ss[Z]';
|
|
8150
|
+
}
|
|
8202
8151
|
/**
|
|
8203
8152
|
* Formats a date to a string according to the format
|
|
8204
8153
|
* @param {Date} date - Date to format
|
|
@@ -8207,6 +8156,11 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8207
8156
|
formatDate(date) {
|
|
8208
8157
|
if (!date)
|
|
8209
8158
|
return '';
|
|
8159
|
+
// Special case for ISO 8601
|
|
8160
|
+
if (this.isISO8601Format) {
|
|
8161
|
+
// For the ISO 8601 format, use directly toISOString() which is standard
|
|
8162
|
+
return date.toISOString();
|
|
8163
|
+
}
|
|
8210
8164
|
// If the format is "Ticks", convert the time to C# ticks
|
|
8211
8165
|
if (this.dateFormat === 'Ticks') {
|
|
8212
8166
|
const ticks = date.getTime() * 10000 + 621355968000000000;
|
|
@@ -8402,11 +8356,10 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8402
8356
|
/**
|
|
8403
8357
|
* Handles month change with an offset
|
|
8404
8358
|
* @param {number} direction - Direction (-1 for previous, 1 for next)
|
|
8405
|
-
* @param {number} offset - Month offset (0 by default)
|
|
8406
8359
|
* @returns {Function} Change month handler
|
|
8407
8360
|
*/
|
|
8408
|
-
getChangeMonthHandler(direction
|
|
8409
|
-
return () => this.changeMonth(direction
|
|
8361
|
+
getChangeMonthHandler(direction) {
|
|
8362
|
+
return () => this.changeMonth(direction);
|
|
8410
8363
|
}
|
|
8411
8364
|
/**
|
|
8412
8365
|
* Handles month change from an event (ex: dropdown)
|
|
@@ -8468,13 +8421,6 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8468
8421
|
return [];
|
|
8469
8422
|
}
|
|
8470
8423
|
}
|
|
8471
|
-
/**
|
|
8472
|
-
* Checks if the date format is in UTC mode
|
|
8473
|
-
* @returns {boolean} true if the date format is in UTC mode
|
|
8474
|
-
*/
|
|
8475
|
-
get isUTCMode() {
|
|
8476
|
-
return this.dateFormat.includes('Z');
|
|
8477
|
-
}
|
|
8478
8424
|
/**
|
|
8479
8425
|
* Checks if shortcuts are visible
|
|
8480
8426
|
* @returns {boolean} true if shortcuts are visible
|
|
@@ -8500,8 +8446,8 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8500
8446
|
* @description Renders the header of the calendar
|
|
8501
8447
|
*/
|
|
8502
8448
|
renderHeader(offset, index) {
|
|
8503
|
-
return (h$1("div", { class: "header" }, this.numberOfCalendars > 1 && index === 0 && (h$1("nv-iconbutton", { class: "nav-left", emphasis: "lower", name: "chevron-left", onClick: this.getChangeMonthHandler(-1
|
|
8504
|
-
Math.floor((this.currentDate.getUTCMonth() + offset) / 12), onChange: this.getHandleYearChange(offset) })), this.numberOfCalendars === 1 && (h$1("div", { class: "nav-buttons" }, h$1("nv-iconbutton", { emphasis: "lower", name: "chevron-left", onClick: this.getChangeMonthHandler(-1
|
|
8449
|
+
return (h$1("div", { class: "header" }, this.numberOfCalendars > 1 && index === 0 && (h$1("nv-iconbutton", { class: "nav-left", emphasis: "lower", name: "chevron-left", onClick: this.getChangeMonthHandler(-1) })), h$1("div", { class: "date-controls" }, h$1("select", { class: "month-select mr-4", onChange: this.getHandleMonthChange(offset) }, this.months.map(month => (h$1("option", { key: month.value, value: month.value, selected: month.value === (this.currentDate.getUTCMonth() + offset) % 12 }, month.label)))), h$1("input", { type: "number", class: "year-input", min: "1950", max: "2100", value: this.currentDate.getUTCFullYear() +
|
|
8450
|
+
Math.floor((this.currentDate.getUTCMonth() + offset) / 12), onChange: this.getHandleYearChange(offset) })), this.numberOfCalendars === 1 && (h$1("div", { class: "nav-buttons" }, h$1("nv-iconbutton", { emphasis: "lower", name: "chevron-left", onClick: this.getChangeMonthHandler(-1) }), h$1("nv-iconbutton", { emphasis: "lower", name: "chevron-right", onClick: this.getChangeMonthHandler(1) }))), this.numberOfCalendars > 1 && index === this.numberOfCalendars - 1 && (h$1("nv-iconbutton", { emphasis: "lower", name: "chevron-right", onClick: this.getChangeMonthHandler(1), class: "nav-right" }))));
|
|
8505
8451
|
}
|
|
8506
8452
|
/**
|
|
8507
8453
|
* Renders the week numbers
|
|
@@ -8594,7 +8540,7 @@ const NvCalendar$2 = /*@__PURE__*/ proxyCustomElement(class NvCalendar extends H
|
|
|
8594
8540
|
* @slot default - Child content of the component.
|
|
8595
8541
|
*/
|
|
8596
8542
|
render() {
|
|
8597
|
-
return (h$1(Host$1, { key: '
|
|
8543
|
+
return (h$1(Host$1, { key: '89300da9f694aa926855452414e7e036f75f2de6' }, h$1("div", { key: '467ef9fc9d6523eec3712bf779d49fdf50c55617', class: "datepicker-root" }, h$1("div", { key: '990f2cb18dcad96cab0f8dfb62e6c57049475440', class: `datepicker-container ${this.numberOfCalendars === 1 ? 'datepicker-container-single' : ''}` }, h$1("div", { key: 'c0dedf1007cbc6a87bd591925c9994474c876afc', class: `datepicker-wrapper ${this.numberOfCalendars === 1 ? 'single' : ''}` }, this.shortcutsPlacement === 'left' && this.renderShortcuts(), Array.from({ length: this.numberOfCalendars }, (_, index) => this.renderCalendar(index, index)), this.shortcutsPlacement === 'right' && this.renderShortcuts()), (this.hasShortcuts || this.hasActions) && (h$1("div", { key: 'ef81eaf952fbe569be7e1d3ee6cb59de0e137fe4', class: "datepicker-controls" }, this.hasShortcuts && this.renderShortcuts(), this.hasActions && this.renderActions())))), h$1("slot", { key: 'e1281217950b5cb02952a69b081d4fcce5863b4d' })));
|
|
8598
8544
|
}
|
|
8599
8545
|
get el() { return this; }
|
|
8600
8546
|
static get watchers() { return {
|
|
@@ -8648,7 +8594,7 @@ function defineCustomElement$E() {
|
|
|
8648
8594
|
break;
|
|
8649
8595
|
case "nv-icon":
|
|
8650
8596
|
if (!customElements.get(tagName)) {
|
|
8651
|
-
defineCustomElement$
|
|
8597
|
+
defineCustomElement$R();
|
|
8652
8598
|
}
|
|
8653
8599
|
break;
|
|
8654
8600
|
case "nv-iconbutton":
|
|
@@ -8694,7 +8640,7 @@ const NvCol$1 = /*@__PURE__*/ proxyCustomElement(class NvCol extends H {
|
|
|
8694
8640
|
/****************************************************************************/
|
|
8695
8641
|
//#region RENDER
|
|
8696
8642
|
render() {
|
|
8697
|
-
return (h$1(Host$1, { key: '
|
|
8643
|
+
return (h$1(Host$1, { key: '8f7112dc8ce8896d9e7265741f06b7449dd508df', class: clsx(this.getColSize()) }, h$1("slot", { key: '3bedff11752d04db2615a5f26d4d910d95dee76c' })));
|
|
8698
8644
|
}
|
|
8699
8645
|
static get style() { return NvColStyle0; }
|
|
8700
8646
|
}, [4, "nv-col", {
|
|
@@ -11834,6 +11780,22 @@ function getCoreRowModel() {
|
|
|
11834
11780
|
return rowModel;
|
|
11835
11781
|
}, getMemoOptions(table.options, 'debugTable', 'getRowModel', () => table._autoResetPageIndex()));
|
|
11836
11782
|
}
|
|
11783
|
+
function expandRows(rowModel) {
|
|
11784
|
+
const expandedRows = [];
|
|
11785
|
+
const handleRow = row => {
|
|
11786
|
+
var _row$subRows;
|
|
11787
|
+
expandedRows.push(row);
|
|
11788
|
+
if ((_row$subRows = row.subRows) != null && _row$subRows.length && row.getIsExpanded()) {
|
|
11789
|
+
row.subRows.forEach(handleRow);
|
|
11790
|
+
}
|
|
11791
|
+
};
|
|
11792
|
+
rowModel.rows.forEach(handleRow);
|
|
11793
|
+
return {
|
|
11794
|
+
rows: expandedRows,
|
|
11795
|
+
flatRows: rowModel.flatRows,
|
|
11796
|
+
rowsById: rowModel.rowsById
|
|
11797
|
+
};
|
|
11798
|
+
}
|
|
11837
11799
|
|
|
11838
11800
|
function filterRows(rows, filterRowImpl, table) {
|
|
11839
11801
|
if (table.options.filterFromLeafRows) {
|
|
@@ -12021,6 +11983,49 @@ function getFilteredRowModel() {
|
|
|
12021
11983
|
}, getMemoOptions(table.options, 'debugTable', 'getFilteredRowModel', () => table._autoResetPageIndex()));
|
|
12022
11984
|
}
|
|
12023
11985
|
|
|
11986
|
+
function getPaginationRowModel(opts) {
|
|
11987
|
+
return table => memo(() => [table.getState().pagination, table.getPrePaginationRowModel(), table.options.paginateExpandedRows ? undefined : table.getState().expanded], (pagination, rowModel) => {
|
|
11988
|
+
if (!rowModel.rows.length) {
|
|
11989
|
+
return rowModel;
|
|
11990
|
+
}
|
|
11991
|
+
const {
|
|
11992
|
+
pageSize,
|
|
11993
|
+
pageIndex
|
|
11994
|
+
} = pagination;
|
|
11995
|
+
let {
|
|
11996
|
+
rows,
|
|
11997
|
+
flatRows,
|
|
11998
|
+
rowsById
|
|
11999
|
+
} = rowModel;
|
|
12000
|
+
const pageStart = pageSize * pageIndex;
|
|
12001
|
+
const pageEnd = pageStart + pageSize;
|
|
12002
|
+
rows = rows.slice(pageStart, pageEnd);
|
|
12003
|
+
let paginatedRowModel;
|
|
12004
|
+
if (!table.options.paginateExpandedRows) {
|
|
12005
|
+
paginatedRowModel = expandRows({
|
|
12006
|
+
rows,
|
|
12007
|
+
flatRows,
|
|
12008
|
+
rowsById
|
|
12009
|
+
});
|
|
12010
|
+
} else {
|
|
12011
|
+
paginatedRowModel = {
|
|
12012
|
+
rows,
|
|
12013
|
+
flatRows,
|
|
12014
|
+
rowsById
|
|
12015
|
+
};
|
|
12016
|
+
}
|
|
12017
|
+
paginatedRowModel.flatRows = [];
|
|
12018
|
+
const handleRow = row => {
|
|
12019
|
+
paginatedRowModel.flatRows.push(row);
|
|
12020
|
+
if (row.subRows.length) {
|
|
12021
|
+
row.subRows.forEach(handleRow);
|
|
12022
|
+
}
|
|
12023
|
+
};
|
|
12024
|
+
paginatedRowModel.rows.forEach(handleRow);
|
|
12025
|
+
return paginatedRowModel;
|
|
12026
|
+
}, getMemoOptions(table.options, 'debugTable'));
|
|
12027
|
+
}
|
|
12028
|
+
|
|
12024
12029
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
12025
12030
|
/**
|
|
12026
12031
|
* Debounce function to prevent multiple calls in a short
|
|
@@ -12051,13 +12056,15 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12051
12056
|
this.action = createEvent$1(this, "action");
|
|
12052
12057
|
this.templateCache = new Map();
|
|
12053
12058
|
this.headerTemplateCache = new Map();
|
|
12059
|
+
this.minPageIndex = 1;
|
|
12054
12060
|
/****************************************************************************/
|
|
12055
12061
|
//#region STATES
|
|
12056
12062
|
this.table = null;
|
|
12057
12063
|
this.parsedColumns = []; // Parsed array
|
|
12058
12064
|
this.parsedData = []; // Parsed array
|
|
12059
|
-
this.
|
|
12065
|
+
this.globalFilterSearchTerm = '';
|
|
12060
12066
|
this.columnData = [];
|
|
12067
|
+
this.paginationState = null;
|
|
12061
12068
|
//#endregion STATES
|
|
12062
12069
|
/****************************************************************************/
|
|
12063
12070
|
//#region PROPERTIES
|
|
@@ -12107,8 +12114,24 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12107
12114
|
* @default false
|
|
12108
12115
|
*/
|
|
12109
12116
|
this.autoGenerateColumns = false;
|
|
12117
|
+
/**
|
|
12118
|
+
* Whether to enable pagination for the data grid.
|
|
12119
|
+
* @default false
|
|
12120
|
+
*/
|
|
12121
|
+
this.enablePagination = false;
|
|
12122
|
+
/**
|
|
12123
|
+
* The number of rows to display per page.
|
|
12124
|
+
* @default 10
|
|
12125
|
+
*/
|
|
12126
|
+
this.pageSize = 10;
|
|
12127
|
+
/**
|
|
12128
|
+
* The array of page sizes to display in the pagination dropdown.
|
|
12129
|
+
* @default [10, 20, 30, 40, 50]
|
|
12130
|
+
*/
|
|
12131
|
+
this.pageSizes = [10, 20, 30, 40, 50];
|
|
12110
12132
|
this.debouncedFilter = debounce((value) => {
|
|
12111
|
-
|
|
12133
|
+
var _a;
|
|
12134
|
+
(_a = this.table) === null || _a === void 0 ? void 0 : _a.setGlobalFilter(value);
|
|
12112
12135
|
}, 300);
|
|
12113
12136
|
/**
|
|
12114
12137
|
* Handles global filtering on input event for the search input.
|
|
@@ -12124,6 +12147,23 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12124
12147
|
this.debouncedFilter(value);
|
|
12125
12148
|
}
|
|
12126
12149
|
};
|
|
12150
|
+
this.flexRender = (comp, props) => {
|
|
12151
|
+
if (typeof comp === 'function') {
|
|
12152
|
+
return comp(props);
|
|
12153
|
+
}
|
|
12154
|
+
return comp;
|
|
12155
|
+
};
|
|
12156
|
+
this.handlePageIndexChange = (event) => {
|
|
12157
|
+
const target = event.target;
|
|
12158
|
+
const page = target.value ? Number(target.value) - 1 : 0;
|
|
12159
|
+
// Simply use `setPageIndex` to update the page index directly
|
|
12160
|
+
this.paginationState = Object.assign(Object.assign({}, this.paginationState), { pageIndex: page }); // This triggers the paginationState watcher
|
|
12161
|
+
};
|
|
12162
|
+
this.handlePageSizeChange = (event) => {
|
|
12163
|
+
const target = event.target;
|
|
12164
|
+
// Simply use `setPageSize` to update the page size directly
|
|
12165
|
+
this.paginationState = Object.assign(Object.assign({}, this.paginationState), { pageSize: Number(target.value) }); // This triggers the paginationState watcher
|
|
12166
|
+
};
|
|
12127
12167
|
}
|
|
12128
12168
|
//#endregion PROPERTIES
|
|
12129
12169
|
/****************************************************************************/
|
|
@@ -12225,6 +12265,7 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12225
12265
|
this.parsedColumns = safeNewValue;
|
|
12226
12266
|
}
|
|
12227
12267
|
initializeTable() {
|
|
12268
|
+
var _a, _b, _c, _d;
|
|
12228
12269
|
// Clear the previous table instance (if any)
|
|
12229
12270
|
this.table = null;
|
|
12230
12271
|
// Set default options for the table
|
|
@@ -12258,26 +12299,9 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12258
12299
|
}, // Default: no column sizing info
|
|
12259
12300
|
},
|
|
12260
12301
|
};
|
|
12261
|
-
if (this.enableGlobalFilter) {
|
|
12262
|
-
tableOptions.getFilteredRowModel = getFilteredRowModel();
|
|
12263
|
-
// Set the initial global filter value
|
|
12264
|
-
tableOptions.state.globalFilter = this.globalFilter;
|
|
12265
|
-
// Define the callback for global filter changes
|
|
12266
|
-
tableOptions.onGlobalFilterChange = value => {
|
|
12267
|
-
this.globalFilter = value;
|
|
12268
|
-
};
|
|
12269
|
-
tableOptions.globalFilterFn = (row, columnId, filterValue) => {
|
|
12270
|
-
const response = row
|
|
12271
|
-
.getValue(columnId)
|
|
12272
|
-
.toString()
|
|
12273
|
-
.toLowerCase()
|
|
12274
|
-
.includes(filterValue.toLowerCase());
|
|
12275
|
-
return response;
|
|
12276
|
-
};
|
|
12277
|
-
}
|
|
12278
12302
|
if (this.parsedColumns.length > 0) {
|
|
12279
12303
|
// Validate and generate column definitions
|
|
12280
|
-
const validColumns = this.parsedColumns.filter(column =>
|
|
12304
|
+
const validColumns = this.parsedColumns.filter(column => column === null || column === void 0 ? void 0 : column.accessor);
|
|
12281
12305
|
// Update tableOptions based on parsed data and columns
|
|
12282
12306
|
const hasColumns = validColumns && Array.isArray(validColumns) && validColumns.length > 0;
|
|
12283
12307
|
const hasData = this.parsedData &&
|
|
@@ -12285,22 +12309,22 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12285
12309
|
this.parsedData.length > 0;
|
|
12286
12310
|
if (!hasColumns && !hasData) ;
|
|
12287
12311
|
else if (hasColumns && !hasData) {
|
|
12312
|
+
// Has columns but no data
|
|
12288
12313
|
tableOptions.columns = this.generateColumns(validColumns, tableOptions);
|
|
12289
12314
|
}
|
|
12290
12315
|
else {
|
|
12291
12316
|
// Both columns and data are available
|
|
12292
|
-
// No columns and data is available
|
|
12293
12317
|
tableOptions.data = this.getTableData();
|
|
12294
12318
|
tableOptions.columns = this.generateColumns(validColumns, tableOptions);
|
|
12295
12319
|
}
|
|
12296
12320
|
}
|
|
12297
12321
|
else {
|
|
12298
|
-
// No columns and data is available
|
|
12322
|
+
// No parsed columns and data is available
|
|
12299
12323
|
const hasData = this.parsedData &&
|
|
12300
12324
|
Array.isArray(this.parsedData) &&
|
|
12301
12325
|
this.parsedData.length > 0;
|
|
12302
12326
|
if (hasData) {
|
|
12303
|
-
// No columns and data is available
|
|
12327
|
+
// No parsed columns and data is available
|
|
12304
12328
|
const firstRow = this.parsedData[0];
|
|
12305
12329
|
const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
|
|
12306
12330
|
accessor: key,
|
|
@@ -12313,26 +12337,116 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12313
12337
|
tableOptions.columns = this.generateColumns(arrayColumnsConfig, tableOptions);
|
|
12314
12338
|
}
|
|
12315
12339
|
}
|
|
12340
|
+
if (this.enableGlobalFilter) {
|
|
12341
|
+
tableOptions.getFilteredRowModel = getFilteredRowModel();
|
|
12342
|
+
const globalFilter = this.globalFilterSearchTerm;
|
|
12343
|
+
// Set the initial global filter value
|
|
12344
|
+
tableOptions.state.globalFilter = globalFilter;
|
|
12345
|
+
// Define the callback for global filter changes
|
|
12346
|
+
tableOptions.onGlobalFilterChange = updater => {
|
|
12347
|
+
const newFilter = typeof updater === 'function'
|
|
12348
|
+
? updater(this.globalFilterSearchTerm)
|
|
12349
|
+
: updater;
|
|
12350
|
+
this.globalFilterSearchTerm = newFilter; // Will automatically trigger the searchTerm watcher and update the table
|
|
12351
|
+
};
|
|
12352
|
+
tableOptions.globalFilterFn = this.globalFilterFn;
|
|
12353
|
+
}
|
|
12354
|
+
if (this.enablePagination) {
|
|
12355
|
+
tableOptions.getPaginationRowModel = getPaginationRowModel();
|
|
12356
|
+
const pagination = {
|
|
12357
|
+
pageIndex: (_b = (_a = this.paginationState) === null || _a === void 0 ? void 0 : _a.pageIndex) !== null && _b !== void 0 ? _b : 0,
|
|
12358
|
+
pageSize: (_d = (_c = this.paginationState) === null || _c === void 0 ? void 0 : _c.pageSize) !== null && _d !== void 0 ? _d : 10,
|
|
12359
|
+
};
|
|
12360
|
+
// Set the initial pagination value with safeguards
|
|
12361
|
+
tableOptions.state.pagination = pagination;
|
|
12362
|
+
tableOptions.onPaginationChange = updater => {
|
|
12363
|
+
const newPagination = typeof updater === 'function'
|
|
12364
|
+
? updater(this.paginationState)
|
|
12365
|
+
: updater;
|
|
12366
|
+
this.paginationState = newPagination;
|
|
12367
|
+
};
|
|
12368
|
+
}
|
|
12316
12369
|
// Initialize the table
|
|
12317
12370
|
this.table = createTable(tableOptions);
|
|
12318
12371
|
}
|
|
12372
|
+
/**
|
|
12373
|
+
* Global filter function for the table.
|
|
12374
|
+
* This function checks if the specified filter value is present in any of the row's original values,
|
|
12375
|
+
* including nested objects and arrays. It is used to filter the rows based on the global filter value,
|
|
12376
|
+
* allowing for case-insensitive matching.
|
|
12377
|
+
*
|
|
12378
|
+
* @param {Row<any>} row - The row object containing the data to be filtered.
|
|
12379
|
+
* @param {string} _columnId - The ID of the column being filtered (not used in this function).
|
|
12380
|
+
* @param {string} filterValue - The value to filter the rows by. This value is checked against the row's data.
|
|
12381
|
+
* @returns {boolean} - Returns true if the row should be included in the filtered results, false otherwise.
|
|
12382
|
+
* If the filter value is empty, all rows are included.
|
|
12383
|
+
*/
|
|
12384
|
+
globalFilterFn(row, _columnId, filterValue) {
|
|
12385
|
+
const safeFilterValue = String(filterValue).toLowerCase().trim();
|
|
12386
|
+
// If no filter value, return true for all rows
|
|
12387
|
+
if (!safeFilterValue)
|
|
12388
|
+
return true;
|
|
12389
|
+
// More robust filtering across all columns
|
|
12390
|
+
const checkValue = (value) => {
|
|
12391
|
+
if (typeof value === 'object' && value !== null) {
|
|
12392
|
+
// If it's an array, check each item
|
|
12393
|
+
if (Array.isArray(value)) {
|
|
12394
|
+
return value.some(item => checkValue(item));
|
|
12395
|
+
}
|
|
12396
|
+
// If it's an object, check each property
|
|
12397
|
+
return Object.values(value).some(val => checkValue(val));
|
|
12398
|
+
}
|
|
12399
|
+
return String(value).toLowerCase().includes(safeFilterValue);
|
|
12400
|
+
};
|
|
12401
|
+
return checkValue(row.original);
|
|
12402
|
+
}
|
|
12319
12403
|
// Helper function to generate column definitions
|
|
12320
12404
|
generateColumns(validColumns, tableOptions) {
|
|
12321
12405
|
const columnHelper = createColumnHelper();
|
|
12322
12406
|
if (validColumns.length > 0) {
|
|
12323
12407
|
// Use defined columns
|
|
12324
|
-
return validColumns.map(column =>
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12408
|
+
return validColumns.map(column => {
|
|
12409
|
+
var _a, _b;
|
|
12410
|
+
return columnHelper.accessor(column.accessor, {
|
|
12411
|
+
header: (_b = (this.renderTemplate(this.headerTemplateCache.get(column.accessor), (_a = column.header) !== null && _a !== void 0 ? _a : column.accessor, null) ||
|
|
12412
|
+
column.header)) !== null && _b !== void 0 ? _b : column.accessor,
|
|
12413
|
+
cell: (info) => {
|
|
12414
|
+
var _a, _b, _c;
|
|
12415
|
+
const value = info.getValue();
|
|
12416
|
+
const cellAccessors = column.accessor;
|
|
12417
|
+
const row = info.row;
|
|
12418
|
+
return ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
|
|
12419
|
+
? value.map((item) => {
|
|
12420
|
+
var _a, _b;
|
|
12421
|
+
return (_b = (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
|
|
12422
|
+
item)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : this.fallbackValue;
|
|
12423
|
+
})
|
|
12424
|
+
: (_c = (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), value, row) ||
|
|
12425
|
+
value)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
|
|
12426
|
+
},
|
|
12427
|
+
enableGlobalFilter: this.enableGlobalFilter,
|
|
12428
|
+
});
|
|
12429
|
+
});
|
|
12329
12430
|
}
|
|
12330
12431
|
else if (tableOptions.data && tableOptions.data.length > 0) {
|
|
12331
12432
|
// Generate columns from data keys
|
|
12332
12433
|
const sampleRow = tableOptions.data[0];
|
|
12333
12434
|
return Object.keys(sampleRow).map(key => columnHelper.accessor(key, {
|
|
12334
|
-
header: key.charAt(0).toUpperCase() + key.slice(1), // Capitalize key for header
|
|
12335
|
-
cell: info =>
|
|
12435
|
+
header: this.renderTemplate(this.headerTemplateCache.get(key), key.charAt(0).toUpperCase() + key.slice(1), null) || key.charAt(0).toUpperCase() + key.slice(1), // Capitalize key for header
|
|
12436
|
+
cell: (info) => {
|
|
12437
|
+
var _a, _b, _c;
|
|
12438
|
+
const value = info.getValue();
|
|
12439
|
+
const cellAccessors = key;
|
|
12440
|
+
const row = info.row;
|
|
12441
|
+
return ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
|
|
12442
|
+
? value.map((item) => {
|
|
12443
|
+
var _a, _b;
|
|
12444
|
+
return (_b = (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
|
|
12445
|
+
item)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : this.fallbackValue;
|
|
12446
|
+
})
|
|
12447
|
+
: (_c = (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), value, row) ||
|
|
12448
|
+
value)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
|
|
12449
|
+
},
|
|
12336
12450
|
enableGlobalFilter: this.enableGlobalFilter,
|
|
12337
12451
|
}));
|
|
12338
12452
|
}
|
|
@@ -12361,11 +12475,11 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12361
12475
|
// Replace placeholders in text content, attributes, and properties
|
|
12362
12476
|
element.querySelectorAll('*').forEach(el => {
|
|
12363
12477
|
// Replace placeholders in text content
|
|
12364
|
-
this.replacePlaceholdersTextContent(el, cellValue);
|
|
12478
|
+
this.replacePlaceholdersTextContent(el, cellValue, row);
|
|
12365
12479
|
// Replace placeholders in attributes
|
|
12366
|
-
this.replacePlaceholdersAttributes(el, cellValue);
|
|
12480
|
+
this.replacePlaceholdersAttributes(el, cellValue, row);
|
|
12367
12481
|
// Replace placeholders in properties
|
|
12368
|
-
this.replacePlaceholdersProperties(el, cellValue);
|
|
12482
|
+
this.replacePlaceholdersProperties(el, cellValue, row);
|
|
12369
12483
|
});
|
|
12370
12484
|
// Handle `data-bind-event`
|
|
12371
12485
|
element.querySelectorAll('[data-bind-event]').forEach(el => {
|
|
@@ -12464,51 +12578,128 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12464
12578
|
// If cellValue is a primitive (string, number, boolean, etc.), return it as a string
|
|
12465
12579
|
return (_a = cellValue === null || cellValue === void 0 ? void 0 : cellValue.toString()) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
|
12466
12580
|
}
|
|
12467
|
-
replacePlaceholdersTextContent(element, cellValue) {
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12581
|
+
replacePlaceholdersTextContent(element, cellValue, row) {
|
|
12582
|
+
if (!cellValue) {
|
|
12583
|
+
// ✅ Replace placeholders in text content with the row original value
|
|
12584
|
+
// but first get the original value
|
|
12585
|
+
const originalValue = row.original;
|
|
12586
|
+
element.childNodes.forEach(node => {
|
|
12587
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
12588
|
+
node.textContent = node.textContent.replace(/__([\w.]+)__/g, (_, key) => {
|
|
12589
|
+
if (key in originalValue) {
|
|
12590
|
+
return this.replaceKeyWithValue(key, originalValue[key]);
|
|
12591
|
+
}
|
|
12592
|
+
else {
|
|
12593
|
+
console.warn(`Key ${key} not found in originalValue`);
|
|
12594
|
+
return '';
|
|
12595
|
+
}
|
|
12596
|
+
});
|
|
12597
|
+
}
|
|
12598
|
+
});
|
|
12599
|
+
}
|
|
12600
|
+
else {
|
|
12601
|
+
// ✅ Replace placeholders in text content
|
|
12602
|
+
element.childNodes.forEach(node => {
|
|
12603
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
12604
|
+
node.textContent = node.textContent.replace(/__([\w.]+)__/g, (_, key) => this.replaceKeyWithValue(key, cellValue));
|
|
12605
|
+
}
|
|
12606
|
+
});
|
|
12607
|
+
}
|
|
12482
12608
|
}
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12609
|
+
replacePlaceholdersAttributes(element, cellValue, row) {
|
|
12610
|
+
if (!cellValue) {
|
|
12611
|
+
// ✅ Replace placeholders in attributes with the row original value
|
|
12612
|
+
// but first get the original value
|
|
12613
|
+
const originalValue = row.original;
|
|
12614
|
+
Array.from(element.attributes).forEach(attr => {
|
|
12615
|
+
if (attr.value.includes('__')) {
|
|
12616
|
+
attr.value = attr.value.replace(/__([\w.]+)__/g, (_, key) => {
|
|
12617
|
+
if (key in originalValue) {
|
|
12618
|
+
return this.replaceKeyWithValue(key, originalValue[key]);
|
|
12619
|
+
}
|
|
12620
|
+
else {
|
|
12621
|
+
console.warn(`Key ${key} not found in originalValue`);
|
|
12622
|
+
return '';
|
|
12623
|
+
}
|
|
12624
|
+
});
|
|
12625
|
+
}
|
|
12626
|
+
});
|
|
12493
12627
|
}
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12628
|
+
else {
|
|
12629
|
+
// ✅ Replace placeholders in attributes
|
|
12630
|
+
Array.from(element.attributes).forEach(attr => {
|
|
12631
|
+
if (attr.value.includes('__')) {
|
|
12632
|
+
attr.value = attr.value.replace(/__([\w.]+)__/g, (_, key) => this.replaceKeyWithValue(key, cellValue));
|
|
12633
|
+
}
|
|
12634
|
+
});
|
|
12635
|
+
}
|
|
12636
|
+
}
|
|
12637
|
+
replacePlaceholdersProperties(element, cellValue, row) {
|
|
12638
|
+
if (!cellValue) {
|
|
12639
|
+
// ✅ Replace placeholders in properties with the row original value
|
|
12640
|
+
// but first get the original value
|
|
12641
|
+
const originalValue = row.original;
|
|
12642
|
+
// ✅ Dynamically extract relevant properties
|
|
12643
|
+
const properties = new Set();
|
|
12644
|
+
// Collect only own enumerable properties
|
|
12645
|
+
Object.keys(originalValue).forEach(key => properties.add(key));
|
|
12646
|
+
// Collect inherited properties from prototypes (HTMLElement -> Element -> Node)
|
|
12647
|
+
let proto = Object.getPrototypeOf(originalValue);
|
|
12648
|
+
while (proto && proto !== H.prototype) {
|
|
12649
|
+
Object.keys(proto).forEach(key => properties.add(key));
|
|
12650
|
+
proto = Object.getPrototypeOf(proto);
|
|
12651
|
+
}
|
|
12652
|
+
// ✅ Filter and copy only non-function properties and exclude irrelevant ones
|
|
12653
|
+
properties.forEach(prop => {
|
|
12654
|
+
if (typeof element[prop] !== 'function' && // Ignore methods
|
|
12655
|
+
!prop.startsWith('on') && // Ignore event listeners (onclick, oninput, etc.)
|
|
12656
|
+
!excludedProps.has(prop) // 🚨 Prevent text duplication and irrelevant props
|
|
12657
|
+
) {
|
|
12501
12658
|
const propValue = element[prop];
|
|
12502
|
-
// ✅ Replace placeholders only if the value is a string
|
|
12503
12659
|
if (typeof propValue === 'string' && propValue.includes('__')) {
|
|
12504
|
-
element[prop] = propValue.replace(/__([\w.]+)__/g, (_, key) =>
|
|
12660
|
+
element[prop] = propValue.replace(/__([\w.]+)__/g, (_, key) => {
|
|
12661
|
+
if (key in originalValue) {
|
|
12662
|
+
return this.replaceKeyWithValue(key, originalValue[key]);
|
|
12663
|
+
}
|
|
12664
|
+
else {
|
|
12665
|
+
console.warn(`Key ${key} not found in originalValue`);
|
|
12666
|
+
return '';
|
|
12667
|
+
}
|
|
12668
|
+
});
|
|
12505
12669
|
}
|
|
12506
12670
|
}
|
|
12507
|
-
|
|
12508
|
-
|
|
12671
|
+
});
|
|
12672
|
+
}
|
|
12673
|
+
else {
|
|
12674
|
+
// ✅ Dynamically extract relevant properties
|
|
12675
|
+
const properties = new Set();
|
|
12676
|
+
// Collect only own enumerable properties
|
|
12677
|
+
Object.keys(element).forEach(key => properties.add(key));
|
|
12678
|
+
// Collect inherited properties from prototypes (HTMLElement -> Element -> Node)
|
|
12679
|
+
let proto = Object.getPrototypeOf(element);
|
|
12680
|
+
while (proto && proto !== H.prototype) {
|
|
12681
|
+
Object.keys(proto).forEach(key => properties.add(key));
|
|
12682
|
+
proto = Object.getPrototypeOf(proto);
|
|
12683
|
+
}
|
|
12684
|
+
// ✅ Filter and copy only non-function properties and exclude irrelevant ones
|
|
12685
|
+
properties.forEach(prop => {
|
|
12686
|
+
if (typeof element[prop] !== 'function' && // Ignore methods
|
|
12687
|
+
!prop.startsWith('on') && // Ignore event listeners (onclick, oninput, etc.)
|
|
12688
|
+
!excludedProps.has(prop) // 🚨 Prevent text duplication and irrelevant props
|
|
12689
|
+
) {
|
|
12690
|
+
try {
|
|
12691
|
+
const propValue = element[prop];
|
|
12692
|
+
// ✅ Replace placeholders only if the value is a string
|
|
12693
|
+
if (typeof propValue === 'string' && propValue.includes('__')) {
|
|
12694
|
+
element[prop] = propValue.replace(/__([\w.]+)__/g, (_, key) => this.replaceKeyWithValue(key, cellValue)); // ✅ TypeScript safe
|
|
12695
|
+
}
|
|
12696
|
+
}
|
|
12697
|
+
catch (error) {
|
|
12698
|
+
console.warn(`Could not assign property ${prop}:`, error.message);
|
|
12699
|
+
}
|
|
12509
12700
|
}
|
|
12510
|
-
}
|
|
12511
|
-
}
|
|
12701
|
+
});
|
|
12702
|
+
}
|
|
12512
12703
|
}
|
|
12513
12704
|
//#endregion METHODS
|
|
12514
12705
|
/****************************************************************************/
|
|
@@ -12542,14 +12733,30 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12542
12733
|
handleParsedChange() {
|
|
12543
12734
|
this.initializeTable();
|
|
12544
12735
|
}
|
|
12545
|
-
|
|
12736
|
+
handleGlobalFilterSearchTerm(newValue) {
|
|
12737
|
+
if (!this.table) {
|
|
12738
|
+
console.warn('Table is not initialized yet.');
|
|
12739
|
+
return;
|
|
12740
|
+
}
|
|
12741
|
+
// Not working
|
|
12742
|
+
/*// Set the global filter for the table
|
|
12743
|
+
this.table.setGlobalFilter(newValue);*/
|
|
12744
|
+
// Manually update the globalFilter state
|
|
12745
|
+
this.table.options.state.globalFilter = newValue;
|
|
12746
|
+
}
|
|
12747
|
+
handlePaginationState(newValue, oldValue) {
|
|
12546
12748
|
if (!this.table) {
|
|
12547
12749
|
console.warn('Table is not initialized yet.');
|
|
12548
12750
|
return;
|
|
12549
12751
|
}
|
|
12550
|
-
//
|
|
12551
|
-
|
|
12552
|
-
|
|
12752
|
+
// Only update if there is a meaningful change
|
|
12753
|
+
if (JSON.stringify(newValue) !== JSON.stringify(oldValue)) {
|
|
12754
|
+
// Not working
|
|
12755
|
+
/*// Set the pagination for the table
|
|
12756
|
+
this.table.setPagination(newValue);*/
|
|
12757
|
+
// Manually update the pagination state
|
|
12758
|
+
this.table.options.state.pagination = newValue;
|
|
12759
|
+
}
|
|
12553
12760
|
}
|
|
12554
12761
|
//#endregion WATCHERS
|
|
12555
12762
|
/****************************************************************************/
|
|
@@ -12558,41 +12765,39 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12558
12765
|
this.cacheTemplates();
|
|
12559
12766
|
this.parseDataAndColumns();
|
|
12560
12767
|
this.initializeTable();
|
|
12768
|
+
if (this.enablePagination) {
|
|
12769
|
+
// Ensure a valid page size
|
|
12770
|
+
const effectivePageSize = this.pageSize > 0 ? this.pageSize : 10;
|
|
12771
|
+
this.paginationState = {
|
|
12772
|
+
pageIndex: Math.max(0, this.minPageIndex - 1),
|
|
12773
|
+
pageSize: effectivePageSize,
|
|
12774
|
+
};
|
|
12775
|
+
}
|
|
12561
12776
|
}
|
|
12562
12777
|
//#endregion EVENTS
|
|
12563
12778
|
/****************************************************************************/
|
|
12564
12779
|
//#region RENDER
|
|
12565
12780
|
render() {
|
|
12566
|
-
var _a, _b, _c, _d;
|
|
12781
|
+
var _a, _b, _c, _d, _e;
|
|
12567
12782
|
const headerGroups = !this.table || this.table === undefined || this.parsedColumns.length === 0
|
|
12568
12783
|
? []
|
|
12569
12784
|
: (_a = this.table) === null || _a === void 0 ? void 0 : _a.getHeaderGroups();
|
|
12570
12785
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
12571
12786
|
? []
|
|
12572
12787
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
12573
|
-
return (h$1(Host$1, { key: '
|
|
12788
|
+
return (h$1(Host$1, { key: 'b3886397a5e6694611636d4da7d61ae5ccbe1903' }, h$1("div", { key: '8fa71d83f4cfa79cf7fb334bcf6115e4cf253c5d', class: "hidden" }, h$1("slot", { key: '9aad5956b5973cafc486f3a854a66ae86038ef4a' })), h$1("slot", { key: '7a1ca93223567faffabb3473df2176cd02654247', name: "before" }), this.enableGlobalFilter && this.table && (h$1("div", { key: '0020880c229d8ed9070c15182191e86b8b3fed1d', class: "search-container" }, h$1("input", { key: 'cefc47330a7d770c3668d1406930b9ac50992a10', type: "text", value: (_d = this.globalFilterSearchTerm) !== null && _d !== void 0 ? _d : '', onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns...", class: "search-input", "aria-label": "Search all columns" }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h$1("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h$1("div", null, h$1("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h$1("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
12574
12789
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (h$1("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
12575
12790
|
return (h$1("th", { key: header.id }, header.isPlaceholder
|
|
12576
12791
|
? null
|
|
12577
|
-
: this.
|
|
12792
|
+
: this.flexRender(header.column.columnDef.header, header.getContext())));
|
|
12578
12793
|
}))))
|
|
12579
12794
|
: null)), h$1("tbody", null, !rows || rows.length === 0 || this.parsedData.length === 0 ? (h$1("tr", null, h$1("td", { colSpan: this.parsedColumns.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => {
|
|
12580
12795
|
const rowId = row.id;
|
|
12581
12796
|
const visibleCells = row === null || row === void 0 ? void 0 : row.getVisibleCells();
|
|
12582
12797
|
return (h$1("tr", { key: rowId }, visibleCells.map(cell => {
|
|
12583
|
-
|
|
12584
|
-
const cellAccessors = cell.column.id;
|
|
12585
|
-
const cellValue = cell.getValue();
|
|
12586
|
-
return (h$1("td", { key: cell.id, "data-row-id": rowId }, ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(cellValue)
|
|
12587
|
-
? cellValue.map((item) => {
|
|
12588
|
-
var _a;
|
|
12589
|
-
return (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
|
|
12590
|
-
item)) !== null && _a !== void 0 ? _a : this.fallbackValue;
|
|
12591
|
-
})
|
|
12592
|
-
: (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), cellValue, row) ||
|
|
12593
|
-
cellValue)) !== null && _b !== void 0 ? _b : this.fallbackValue));
|
|
12798
|
+
return (h$1("td", { key: cell.id, "data-row-id": rowId }, this.flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
12594
12799
|
})));
|
|
12595
|
-
}))))), h$1("slot", { key: '
|
|
12800
|
+
})))), this.enablePagination && (h$1("div", { class: "flex items-center gap-2" }, h$1("button", { class: "border rounded p-1", disabled: !this.table.getCanPreviousPage(), onClick: this.table.firstPage }, "<<"), h$1("button", { class: "border rounded p-1", disabled: !this.table.getCanPreviousPage(), onClick: this.table.previousPage }, "<"), h$1("button", { class: "border rounded p-1", disabled: !this.table.getCanNextPage(), onClick: this.table.nextPage }, ">"), h$1("button", { class: "border rounded p-1", disabled: !this.table.getCanNextPage(), onClick: this.table.lastPage }, ">>"), h$1("span", { class: "flex items-center gap-1" }, h$1("div", null, "Page"), h$1("strong", null, this.table.getState().pagination.pageIndex + 1, " of", ' ', this.table.getPageCount().toLocaleString())), h$1("span", { class: "flex items-center gap-1" }, "| Go to page:", ' ', h$1("input", { type: "number", min: this.minPageIndex, max: this.table.getPageCount(), value: this.table.getState().pagination.pageIndex + 1, class: "border p-1 rounded w-16", "aria-label": "Go to page", onInput: this.handlePageIndexChange })), (_e = this.pageSizes) !== null && _e !== void 0 ? _e : (h$1("select", { "aria-label": "Rows per page", onChange: this.handlePageSizeChange }, this.pageSizes.map(pageSize => (h$1("option", { value: String(pageSize), selected: this.table.getState().pagination.pageSize === pageSize }, "Show ", pageSize))))))))), h$1("slot", { key: '2030fdc2b38a293e749f2ffd4645987e834fee76', name: "after" })));
|
|
12596
12801
|
}
|
|
12597
12802
|
get el() { return this; }
|
|
12598
12803
|
static get watchers() { return {
|
|
@@ -12602,7 +12807,8 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12602
12807
|
"dataJson": ["parseJsonData"],
|
|
12603
12808
|
"parsedColumns": ["handleParsedChange"],
|
|
12604
12809
|
"parsedData": ["handleParsedChange"],
|
|
12605
|
-
"
|
|
12810
|
+
"globalFilterSearchTerm": ["handleGlobalFilterSearchTerm"],
|
|
12811
|
+
"paginationState": ["handlePaginationState"]
|
|
12606
12812
|
}; }
|
|
12607
12813
|
static get style() { return NvDatagridStyle0; }
|
|
12608
12814
|
}, [4, "nv-datagrid", {
|
|
@@ -12615,11 +12821,15 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12615
12821
|
"noColumnsNoDataMessage": [513, "no-columns-no-data-message"],
|
|
12616
12822
|
"enableGlobalFilter": [516, "enable-global-filter"],
|
|
12617
12823
|
"autoGenerateColumns": [516, "auto-generate-columns"],
|
|
12824
|
+
"enablePagination": [516, "enable-pagination"],
|
|
12825
|
+
"pageSize": [514, "page-size"],
|
|
12826
|
+
"pageSizes": [16],
|
|
12618
12827
|
"table": [32],
|
|
12619
12828
|
"parsedColumns": [32],
|
|
12620
12829
|
"parsedData": [32],
|
|
12621
|
-
"
|
|
12622
|
-
"columnData": [32]
|
|
12830
|
+
"globalFilterSearchTerm": [32],
|
|
12831
|
+
"columnData": [32],
|
|
12832
|
+
"paginationState": [32]
|
|
12623
12833
|
}, undefined, {
|
|
12624
12834
|
"columns": ["parseColumns"],
|
|
12625
12835
|
"columnsJson": ["parseJsonColumns"],
|
|
@@ -12627,7 +12837,8 @@ const NvDatagrid$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagrid extends H
|
|
|
12627
12837
|
"dataJson": ["parseJsonData"],
|
|
12628
12838
|
"parsedColumns": ["handleParsedChange"],
|
|
12629
12839
|
"parsedData": ["handleParsedChange"],
|
|
12630
|
-
"
|
|
12840
|
+
"globalFilterSearchTerm": ["handleGlobalFilterSearchTerm"],
|
|
12841
|
+
"paginationState": ["handlePaginationState"]
|
|
12631
12842
|
}]);
|
|
12632
12843
|
function defineCustomElement$1$j() {
|
|
12633
12844
|
if (typeof customElements === "undefined") {
|
|
@@ -12660,7 +12871,7 @@ const NvDatagridcolumn$1 = /*@__PURE__*/ proxyCustomElement(class NvDatagridcolu
|
|
|
12660
12871
|
/****************************************************************************/
|
|
12661
12872
|
//#region RENDER
|
|
12662
12873
|
render() {
|
|
12663
|
-
return (h$1(Host$1, { key: '
|
|
12874
|
+
return (h$1(Host$1, { key: '20839d4a0abfa07e55a49b434ad26e3ddaebb66b' }, h$1("slot", { key: '2c1b24aef73e9be8e500d48741e4dc6a42ed6f06', name: "header" }), h$1("slot", { key: 'cbc4bcbb080f8647c6f702e4a52411fe9be1f6ca', name: "cell" })));
|
|
12664
12875
|
}
|
|
12665
12876
|
}, [4, "nv-datagridcolumn", {
|
|
12666
12877
|
"header": [513],
|
|
@@ -12765,7 +12976,7 @@ const NvDialogfooter$2 = /*@__PURE__*/ proxyCustomElement(class NvDialogfooter e
|
|
|
12765
12976
|
/****************************************************************************/
|
|
12766
12977
|
//#region RENDER
|
|
12767
12978
|
render() {
|
|
12768
|
-
return (h$1(Host$1, { key: '
|
|
12979
|
+
return (h$1(Host$1, { key: '5756a0cc697188c3fdee2930b1c6ae7922af71cc' }, !this.hasSlot ? (h$1(Fragment$1, null, !this.undismissable && (h$1("nv-button", { onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), h$1("nv-button", { onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (h$1("nv-icon", { slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (h$1("nv-icon", { slot: "trailing-icon", name: this.trailingIcon, size: "sm" }))))) : (h$1("slot", null))));
|
|
12769
12980
|
}
|
|
12770
12981
|
static get formAssociated() { return true; }
|
|
12771
12982
|
get el() { return this; }
|
|
@@ -12799,7 +13010,7 @@ function defineCustomElement$z() {
|
|
|
12799
13010
|
break;
|
|
12800
13011
|
case "nv-icon":
|
|
12801
13012
|
if (!customElements.get(tagName)) {
|
|
12802
|
-
defineCustomElement$
|
|
13013
|
+
defineCustomElement$R();
|
|
12803
13014
|
}
|
|
12804
13015
|
break;
|
|
12805
13016
|
case "nv-loader":
|
|
@@ -12840,7 +13051,7 @@ const NvDialogheader$2 = /*@__PURE__*/ proxyCustomElement(class NvDialogheader e
|
|
|
12840
13051
|
/****************************************************************************/
|
|
12841
13052
|
//#region RENDER
|
|
12842
13053
|
render() {
|
|
12843
|
-
return (h$1(Host$1, { key: '
|
|
13054
|
+
return (h$1(Host$1, { key: '850e2408cb7a35903be3bc51fbee000fc58f4a76' }, !this.hasSlot ? (h$1(Fragment$1, null, h$1("div", { class: "heading" }, this.heading), h$1("div", { class: "subheading" }, this.subheading))) : (h$1("slot", null))));
|
|
12844
13055
|
}
|
|
12845
13056
|
get el() { return this; }
|
|
12846
13057
|
static get style() { return NvDialogheaderStyle0; }
|
|
@@ -13686,7 +13897,7 @@ const NvDialog$1 = /*@__PURE__*/ proxyCustomElement(class NvDialog extends H {
|
|
|
13686
13897
|
//#region RENDER
|
|
13687
13898
|
render() {
|
|
13688
13899
|
const hasForm = this.form || this.el.querySelector('form');
|
|
13689
|
-
return (h$1(Host$1, { key: '
|
|
13900
|
+
return (h$1(Host$1, { key: '97fcd67a39e1ade8b2c85280d98aa756e693fdaf' }, h$1("slot", { key: 'cd2126fc88215305b1229e03c70ee8efbd4bd518', name: "trigger" }), h$1("dialog", { key: 'f7d40530e0f0646e1d8c415c0ec341e959e142e6', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx({ full: this.full }) }, h$1("div", { key: '44c81193f1946a1ae0819e96d0217bf986c6e99a', class: "content" }, !this.undismissable && (h$1("nv-button", { key: '5c2cf4e7434903f72ba814af716ce93826caaa3a', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleCloseButton, "aria-label": "Close dialog" }, h$1("nv-icon", { key: '97b57d2340aaf1cd04e49d0f4e594b2de5295809', name: "x", size: "sm" }))), this.headerElement ? (h$1("slot", { name: "header" })) : (h$1("nv-dialogheader", { id: "dialog-header" })), h$1("div", { key: '27cd8b2058505be1e0ee0e380bf44582c37c525f', class: "content-body", id: "dialog-content" }, h$1("slot", { key: 'cef88d8a7fe28518842c206761adc2fd753b2648' })), this.footerElement ? (h$1("slot", { name: "footer" })) : (h$1("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? ButtonType.Submit : ButtonType.Button, onDialogCanceled: this.handleCancelButton, undismissable: this.undismissable }))))));
|
|
13690
13901
|
}
|
|
13691
13902
|
get el() { return this; }
|
|
13692
13903
|
static get watchers() { return {
|
|
@@ -13735,7 +13946,7 @@ function defineCustomElement$1$h() {
|
|
|
13735
13946
|
break;
|
|
13736
13947
|
case "nv-icon":
|
|
13737
13948
|
if (!customElements.get(tagName)) {
|
|
13738
|
-
defineCustomElement$
|
|
13949
|
+
defineCustomElement$R();
|
|
13739
13950
|
}
|
|
13740
13951
|
break;
|
|
13741
13952
|
case "nv-loader":
|
|
@@ -13870,13 +14081,13 @@ const NvFieldcheckbox$2 = /*@__PURE__*/ proxyCustomElement(class NvFieldcheckbox
|
|
|
13870
14081
|
/****************************************************************************/
|
|
13871
14082
|
//#region RENDER
|
|
13872
14083
|
render() {
|
|
13873
|
-
return (h$1(Host$1, { key: '
|
|
14084
|
+
return (h$1(Host$1, { key: '98f9dfdadab534193e7076f929c9820a231fecba', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h$1("div", { key: '5a4d02d46b7c8c8930c24f794452180d58604ffe', class: "input-container" }, h$1("input", { key: 'f7a4002a5fb9800ed4036638773ac42c49d4ae0f', type: "checkbox", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly && !this.required, required: this.required, indeterminate: this.indeterminate, ref: el => {
|
|
13874
14085
|
if (el) {
|
|
13875
14086
|
el.indeterminate = this.indeterminate;
|
|
13876
14087
|
}
|
|
13877
|
-
} }), h$1("span", { key: '
|
|
13878
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
13879
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
14088
|
+
} }), h$1("span", { key: '56a2547ecf96ef3f7f28054592471323497cb94f', class: "icon" }, this.checked && !this.indeterminate && (h$1("slot", { key: 'af4e10bd52b42850c8348e0aed8c90a7e700d64a', name: "checked-icon" }, h$1("svg", { key: '105847f526c391566cef42fa35d94fbaba0e8984', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, h$1("path", { key: '41e221d5f3eab7a4cc88d4ed9454f198d69ec815', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (h$1("slot", { key: '3a1f5ffdc34a1ecdc1bb7f1b5347e1f12f5f690d', name: "indeterminate-icon" }, h$1("svg", { key: '1b68c27172d5b6b9ba2419d278c0ac0299d7a4b7', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, h$1("path", { key: '7b2f4e5fe1d961fad290aade639b9807446f34ba', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), h$1("div", { key: 'd472d7d8901ff7de37fe370bf5d637fc8ae6069d', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: 'c8dbda4d6f9cb757476c9a96934599171f6ea7ae', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h$1("slot", { key: '3c0ec17aeb856457b63981fd0e21ead69ca3af0f', name: "label" }, this.label))), (this.description ||
|
|
14089
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: 'dff6c3a69496324cabcf25ae7639c98a7d908769', class: "description" }, h$1("slot", { key: '498c8216c9a0a537f1aa2a542b3caa688b76e55d', name: "description" }, this.description))), (this.errorDescription ||
|
|
14090
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '6c584da0ad93e7f0ad62610d760c36d77b1a6fc6', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '93df382e666707cdde3133daae7aa66914215149', name: "error-description" }, this.errorDescription))))));
|
|
13880
14091
|
}
|
|
13881
14092
|
static get formAssociated() { return true; }
|
|
13882
14093
|
get el() { return this; }
|
|
@@ -17924,12 +18135,12 @@ const NvFielddate$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddate extends
|
|
|
17924
18135
|
/****************************************************************************/
|
|
17925
18136
|
//#region RENDER
|
|
17926
18137
|
render() {
|
|
17927
|
-
return (h$1(Host$1, { key: '
|
|
17928
|
-
this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '
|
|
18138
|
+
return (h$1(Host$1, { key: '817d7baa3525b53962f9afe3d1eb56d7fcbcaf0e' }, ((this.label && this.label.length > 0) ||
|
|
18139
|
+
this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '00faded19c22c4883b7ef4de71d90c13c287d60d', htmlFor: this.inputId }, h$1("slot", { key: '48b7e470d654b9f07c3eba400145b8936c9eb27e', name: "label" }, this.label))), h$1("nv-popover", { key: '5b8e57124c0a08097874ac9ad0280908c3f2e330', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, h$1("div", { key: '902097ce5a7f208ac97f72a847d68b80cd16419a', slot: "trigger", class: "input-wrapper" }, h$1("slot", { key: '909ff8453e9e48516582c64dae0762987cbd5986', name: "before-input" }), h$1("div", { key: 'e62714e613e9bffc5a6a302d72cdfea75555756a', class: "input-container", onClick: this.handleInputContainerClick }, h$1("slot", { key: '9d4e6bd15fe09bee974676032d4b75a73f733674', name: "leading-input" }), h$1("input", { key: '4565589e720150706096cbdeeadefb84ee836c39', id: this.inputId, ref: e => (this.inputElement = e), placeholder: this.placeholder, name: this.name, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, value: this.singleValue, onInput: this.handleInput, onFocus: this.handleFocus }), h$1("nv-iconbutton", { key: '115ba5c4e9bbd502c51d04894a5cf88f98167231', class: "toggle-calendar-icon", name: "calendar" //{this.open ? 'chevron-top' : 'chevron-down'}
|
|
17929
18140
|
,
|
|
17930
|
-
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', "aria-pressed": this.open.toString(), onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), h$1("slot", { key: '
|
|
17931
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
17932
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
18141
|
+
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', "aria-pressed": this.open.toString(), onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), h$1("slot", { key: '3df2883ebe71fa1dd437f5dc62d82019b3550b88', name: "after-input" })), h$1("div", { key: '61241669d9599d23f2cf024d8e65becdafe58847', slot: "content" }, h$1("nv-calendar", { key: 'dd3c67a46e8addbf1017eaf578447a09a3dd9e66', dateFormat: this.dateFormat, singleValue: this.singleValue, firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates }))), ((this.description && this.description.length > 0) ||
|
|
18142
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: 'f835c89363c45529512e156b313cb35f71ef5264', class: "description" }, h$1("slot", { key: '738d49ee6e525310375eba5da057573104d3c2ed', name: "description" }, this.description))), (this.errorDescription ||
|
|
18143
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '7c5c07db1af3423efc9a1b1127c1b3cbdede0a28', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (h$1("slot", { name: "error-description" })) : (this.errorDescription))), h$1("slot", { key: 'ccfd311cbbb56b9b336317d0e543fc57676a60d3' })));
|
|
17933
18144
|
}
|
|
17934
18145
|
get el() { return this; }
|
|
17935
18146
|
static get watchers() { return {
|
|
@@ -17989,7 +18200,7 @@ function defineCustomElement$1$g() {
|
|
|
17989
18200
|
break;
|
|
17990
18201
|
case "nv-icon":
|
|
17991
18202
|
if (!customElements.get(tagName)) {
|
|
17992
|
-
defineCustomElement$
|
|
18203
|
+
defineCustomElement$R();
|
|
17993
18204
|
}
|
|
17994
18205
|
break;
|
|
17995
18206
|
case "nv-iconbutton":
|
|
@@ -18344,15 +18555,15 @@ const NvFielddaterange$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddateran
|
|
|
18344
18555
|
/****************************************************************************/
|
|
18345
18556
|
//#region RENDER
|
|
18346
18557
|
render() {
|
|
18347
|
-
return (h$1(Host$1, { key: '
|
|
18348
|
-
this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '
|
|
18558
|
+
return (h$1(Host$1, { key: '965223047219ae767b07ccecb0a00580ea39c232' }, ((this.label && this.label.length > 0) ||
|
|
18559
|
+
this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '096d6a34148da30d61686024b5891e7e15cd92e2', htmlFor: this.startInputId }, h$1("slot", { key: 'ee6e84ef1927ad809e7dddb2f4ad5ef7380d0bca', name: "label" }, this.label))), h$1("nv-popover", { key: '1a0549e85ab73157b379fcbcee014a7d85be9752', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, h$1("div", { key: 'd9fc4c8f379e3c1884867c87bcaa67b2da1c64ae', slot: "trigger", class: "input-wrapper" }, h$1("slot", { key: '4189696f3e877c19d4c24b09377b2ab0ce9aa437', name: "before-input" }), h$1("div", { key: '98025c8fc29121c736deb3042e961ef0eb1442fe', class: "input-container" }, h$1("slot", { key: '897481f836e33fd70a7c3b083a4e9b3db87637f2', name: "leading-input" }), h$1("div", { key: '788df58693fafaf8c78645b81d1b09a828138ccf', class: "range-inputs" }, h$1("input", { key: '7966b844668ca4cb02ac34886b62ee24cb7b1399', id: this.startInputId, type: "text", placeholder: this.startPlaceholder, name: this.startName, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.shouldAutoFocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus }), h$1("svg", { key: '67c0b68f0fb32ce122f9d4e5b1240440f3b649d0', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: "icon icon-tabler icons-tabler-outline icon-tabler-arrows-move-horizontal" }, h$1("path", { key: 'eb68f32a768c1c48b51a45ddba3f85357b8045e6', stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), h$1("path", { key: 'b8ccaf592dc2d36719a8418800a736b06d1c1775', d: "M18 9l3 3l-3 3" }), h$1("path", { key: 'c4b8d8e8ffad9a339abcde63a9a0feb2ddc771d3', d: "M15 12h6" }), h$1("path", { key: '7a28c7086d7085163ff8d885acd7434b4e5ea69a', d: "M6 9l-3 3l3 3" }), h$1("path", { key: '39917978c25b13a270f0852818b31868f2034832', d: "M3 12h6" })), h$1("input", { key: 'aaad42e407d1fe8e31a7e7c153e2d4cd35d8d2df', id: this.endInputId, type: "text", placeholder: this.endPlaceholder, name: this.endName, disabled: this.disabled, readOnly: this.readonly, required: this.required, value: this.endValue, onInput: this.handleEndInput, onFocus: this.handleFocus })), h$1("nv-iconbutton", { key: '04701e7bdf80a869f8a5f519141ac99c0077c20b', class: "toggle-calendar-icon", name: "calendar", size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', "aria-pressed": this.open.toString(), onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), h$1("slot", { key: 'cf1a48dcd20b4e363a746c9f26ecae8085e8ebbd', name: "after-input" })), h$1("div", { key: 'a36a223b6d5edd30bb9a4590d059caede5412b6a', slot: "content" }, h$1("nv-calendar", { key: '1ff22f214d648c4bb35455cf477529251c436e2d', dateFormat: this.dateFormat, rangeValue: this.startValue && this.endValue
|
|
18349
18560
|
? JSON.stringify({
|
|
18350
18561
|
start: this.startValue,
|
|
18351
18562
|
end: this.endValue,
|
|
18352
18563
|
})
|
|
18353
18564
|
: '', firstDayOfWeek: this.firstDayOfWeek, numberOfCalendars: this.numberOfCalendars, min: this.min, max: this.max, locale: this.locale, shortcutsPlacement: this.shortcutsPlacement, showActions: this.showActions, shortcuts: this.shortcuts, showWeekNumbers: this.showWeekNumbers, disabledDates: this.disabledDates, selectionType: "range" }))), ((this.description && this.description.length > 0) ||
|
|
18354
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
18355
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
18565
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '780f82060de810eb394285f4799511d2223312a3', class: "description" }, h$1("slot", { key: '326cbf626387738b9997f3b4d452c50ea2b3d5b2', name: "description" }, this.description))), (this.errorDescription ||
|
|
18566
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '6043f611a60f14976b8572e975621fac57b18f89', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (h$1("slot", { name: "error-description" })) : (this.errorDescription))), h$1("slot", { key: '129fe5bcd6c5bd9449242dc6b4f0e1c90ae31082' })));
|
|
18356
18567
|
}
|
|
18357
18568
|
get el() { return this; }
|
|
18358
18569
|
static get watchers() { return {
|
|
@@ -18416,7 +18627,7 @@ function defineCustomElement$1$f() {
|
|
|
18416
18627
|
break;
|
|
18417
18628
|
case "nv-icon":
|
|
18418
18629
|
if (!customElements.get(tagName)) {
|
|
18419
|
-
defineCustomElement$
|
|
18630
|
+
defineCustomElement$R();
|
|
18420
18631
|
}
|
|
18421
18632
|
break;
|
|
18422
18633
|
case "nv-iconbutton":
|
|
@@ -18498,7 +18709,7 @@ const NvFielddropdownitem$2 = /*@__PURE__*/ proxyCustomElement(class NvFielddrop
|
|
|
18498
18709
|
/****************************************************************************/
|
|
18499
18710
|
//#region RENDER
|
|
18500
18711
|
render() {
|
|
18501
|
-
return (h$1(Host$1, { key: '
|
|
18712
|
+
return (h$1(Host$1, { key: '86699901e52c35392ae5e60013f542427973a626', role: "menuitem", tabindex: '-1', onClick: this.handleSelected }, h$1("slot", { key: 'f2d893f0692821fc0e918da9283eb174c3429173' }), !this.composed && (h$1("div", { key: '5e62842ee3b0e79333f99a3ec8d92dd843ebd96e', class: "text-wrapper" }, h$1("span", { key: 'baa00ac59b5d85d912f34fc16fbf82d87af849e2', "data-scope": "text" }, this.label))), this.selected && (h$1("nv-icon", { key: 'f9a5082e4cee6b68531809f9861e3da83b3001d6', name: "check", "aria-hidden": "true", "data-scope": "selected" }))));
|
|
18502
18713
|
}
|
|
18503
18714
|
get el() { return this; }
|
|
18504
18715
|
static get style() { return NvFielddropdownitemStyle0; }
|
|
@@ -18521,7 +18732,7 @@ function defineCustomElement$q() {
|
|
|
18521
18732
|
break;
|
|
18522
18733
|
case "nv-icon":
|
|
18523
18734
|
if (!customElements.get(tagName)) {
|
|
18524
|
-
defineCustomElement$
|
|
18735
|
+
defineCustomElement$R();
|
|
18525
18736
|
}
|
|
18526
18737
|
break;
|
|
18527
18738
|
} });
|
|
@@ -18600,10 +18811,6 @@ const NvFielddropdown$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddropdown
|
|
|
18600
18811
|
/** The text entered by the user for filtering dropdown items. */
|
|
18601
18812
|
this.filterText = '';
|
|
18602
18813
|
this.selectedValues = new Set();
|
|
18603
|
-
/**
|
|
18604
|
-
* Options configuration for the dropdown items.
|
|
18605
|
-
*/
|
|
18606
|
-
this.parsedOptions = [];
|
|
18607
18814
|
this.handleInputContainerClick = (event) => {
|
|
18608
18815
|
if (this.disabled || this.readonly) {
|
|
18609
18816
|
return;
|
|
@@ -18646,17 +18853,17 @@ const NvFielddropdown$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddropdown
|
|
|
18646
18853
|
this.open = !this.open;
|
|
18647
18854
|
};
|
|
18648
18855
|
this.getSelectedLabel = () => {
|
|
18649
|
-
var _a, _b, _c, _d, _e;
|
|
18856
|
+
var _a, _b, _c, _d, _e, _f;
|
|
18650
18857
|
if (!this.value)
|
|
18651
18858
|
return '';
|
|
18652
|
-
if (this.
|
|
18653
|
-
const matchingItem = this.
|
|
18654
|
-
return (
|
|
18859
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 1) {
|
|
18860
|
+
const matchingItem = this.options.find(option => option.value === this.value);
|
|
18861
|
+
return (_c = (_b = matchingItem === null || matchingItem === void 0 ? void 0 : matchingItem.label) !== null && _b !== void 0 ? _b : matchingItem === null || matchingItem === void 0 ? void 0 : matchingItem.value) !== null && _c !== void 0 ? _c : this.value;
|
|
18655
18862
|
}
|
|
18656
18863
|
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitem'));
|
|
18657
18864
|
const matchingItem = items.find(item => item.value === this.value);
|
|
18658
18865
|
const selectedLabel = matchingItem
|
|
18659
|
-
? (
|
|
18866
|
+
? (_f = (_d = matchingItem.label) !== null && _d !== void 0 ? _d : (_e = matchingItem.textContent) === null || _e === void 0 ? void 0 : _e.trim()) !== null && _f !== void 0 ? _f : matchingItem.value
|
|
18660
18867
|
: '';
|
|
18661
18868
|
return selectedLabel;
|
|
18662
18869
|
};
|
|
@@ -18693,23 +18900,12 @@ const NvFielddropdown$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddropdown
|
|
|
18693
18900
|
}
|
|
18694
18901
|
handleOptionsChange(newValue) {
|
|
18695
18902
|
var _a;
|
|
18696
|
-
if (newValue)
|
|
18697
|
-
|
|
18698
|
-
|
|
18699
|
-
|
|
18700
|
-
|
|
18701
|
-
|
|
18702
|
-
this.value = (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _a !== void 0 ? _a : '';
|
|
18703
|
-
this.updateSelectedItem(this.value);
|
|
18704
|
-
}
|
|
18705
|
-
}
|
|
18706
|
-
catch (error) {
|
|
18707
|
-
console.error('nv-fielddropdown: error parsing options:', error);
|
|
18708
|
-
this.parsedOptions = [];
|
|
18709
|
-
}
|
|
18710
|
-
}
|
|
18711
|
-
else {
|
|
18712
|
-
this.parsedOptions = [];
|
|
18903
|
+
if (!newValue)
|
|
18904
|
+
return;
|
|
18905
|
+
if (!this.value) {
|
|
18906
|
+
const defaultValue = newValue.find(option => option.selected);
|
|
18907
|
+
this.value = (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.value) !== null && _a !== void 0 ? _a : '';
|
|
18908
|
+
this.updateSelectedItem(this.value);
|
|
18713
18909
|
}
|
|
18714
18910
|
}
|
|
18715
18911
|
handleBlur(event) {
|
|
@@ -18864,9 +19060,10 @@ const NvFielddropdown$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddropdown
|
|
|
18864
19060
|
/****************************************************************************/
|
|
18865
19061
|
//#region RENDER
|
|
18866
19062
|
render() {
|
|
18867
|
-
|
|
18868
|
-
|
|
18869
|
-
this.el.querySelector('[slot="
|
|
19063
|
+
var _a;
|
|
19064
|
+
return (h$1(Host$1, { key: '6c23d4cfd361e1f40a2181db66692eb0d6326bfe', role: "combobox", "aria-expanded": this.open.toString(), "aria-haspopup": "listbox", "aria-label": this.label }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: 'db9a30ece9e669c70b18193b3cc7d14967a5e071', htmlFor: this.inputId }, h$1("slot", { key: 'b7a721b25b82646d34ce141526775f24a9849f4b', name: "label" }, this.label))), h$1("nv-popover", { key: '724756cb69b4b6ef8837e6f7f53a65eb42a43b5e', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h$1("div", { key: '0092cd2b78234ec2e0cdc70433246a2985b7e57f', class: "input-wrapper", slot: "trigger" }, h$1("slot", { key: '519c1a407c8309861673b9eadb723edb0c70ae68', name: "before-input" }), h$1("div", { key: 'd88af43846337d9bfd6aeb4f28ab2dc7e56de4e8', class: "input-container", onClick: this.handleInputContainerClick }, h$1("slot", { key: '8e91459d89acbf7a1cde5e75c520b11b109e810d', name: "leading-input" }), this.filterable || this.disabled || this.readonly ? (h$1("input", { "data-scope": "focusable", id: this.inputId, type: "search", ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.getSelectedLabel(), required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInput, onFocus: this.handleInputFocus, onClick: this.handleInputFocus, onKeyDown: this.handleKeyDown })) : (h$1("p", { "data-scope": "focusable", id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClick, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocus }, this.getSelectedLabel() || this.value || this.placeholder)), this.filterable && this.filterText && this.open && (h$1("nv-iconbutton", { key: '55efb1100997af6b9b4ee41c489a9e628d36b749', name: "x", size: "md", emphasis: "lower", class: "clear-button", onClick: this.clearFilter, "aria-label": "Clear input" })), this.error && (h$1("nv-icon", { key: '69cfcac7b21d0e9faf9bad7f306bab187a761758', name: "alert-circle", class: "validation", size: "md" })), h$1("nv-iconbutton", { key: '5b773edca6a5028eb8cedb42632a9c5b6e8b3d36', "data-scope": "toggle-dropdown", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopover, tabIndex: this.disabled ? -1 : 0 })), h$1("slot", { key: 'c225279e1ec938e2fbe672ce02e8d2a79cb7ff1e', name: "after-input" })), h$1("div", { key: '94905d2f6a0b7faae17540139c0bd2458e4c98ae', slot: "content" }, ((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (h$1("ul", null, this.options.map(option => (h$1("nv-fielddropdownitem", { label: option.label, value: option.value, disabled: option.disabled, selected: option.value === this.value }))))) : (h$1("slot", { name: "content" })))), (this.description ||
|
|
19065
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '5d0b74de616aefa056d17cb70fab0d36ab9b41c3', class: "description" }, h$1("slot", { key: 'bab9d8222164d2227c6024ac2bd5675142ccb964', name: "description" }, this.description))), (this.errorDescription ||
|
|
19066
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '58596e0c753e8bb90f9d21432607427b0a029d64', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '6062d632aee6e825cd2d17a22180cb24d66e2864', name: "error-description" }, this.errorDescription)))));
|
|
18870
19067
|
}
|
|
18871
19068
|
static get formAssociated() { return true; }
|
|
18872
19069
|
get el() { return this; }
|
|
@@ -18891,11 +19088,10 @@ const NvFielddropdown$1 = /*@__PURE__*/ proxyCustomElement(class NvFielddropdown
|
|
|
18891
19088
|
"disabled": [516],
|
|
18892
19089
|
"emptyResult": [513, "empty-result"],
|
|
18893
19090
|
"filterable": [516],
|
|
18894
|
-
"options": [
|
|
19091
|
+
"options": [16],
|
|
18895
19092
|
"autofocus": [516],
|
|
18896
19093
|
"filterText": [32],
|
|
18897
19094
|
"selectedValues": [32],
|
|
18898
|
-
"parsedOptions": [32],
|
|
18899
19095
|
"getFilterText": [64]
|
|
18900
19096
|
}, [[0, "dropdownItemSelected", "handleDropdownItemSelected"], [0, "openChanged", "handleOpenChanged"], [2, "blur", "handleBlur"], [0, "keydown", "handleKeyDown"]], {
|
|
18901
19097
|
"value": ["watchValueHandler"],
|
|
@@ -18919,7 +19115,7 @@ function defineCustomElement$1$e() {
|
|
|
18919
19115
|
break;
|
|
18920
19116
|
case "nv-icon":
|
|
18921
19117
|
if (!customElements.get(tagName)) {
|
|
18922
|
-
defineCustomElement$
|
|
19118
|
+
defineCustomElement$R();
|
|
18923
19119
|
}
|
|
18924
19120
|
break;
|
|
18925
19121
|
case "nv-iconbutton":
|
|
@@ -18994,7 +19190,7 @@ const NvFielddropdownitemcheck$2 = /*@__PURE__*/ proxyCustomElement(class NvFiel
|
|
|
18994
19190
|
};
|
|
18995
19191
|
}
|
|
18996
19192
|
render() {
|
|
18997
|
-
return (h$1(Host$1, { key: '
|
|
19193
|
+
return (h$1(Host$1, { key: '93a97fb36d69bd837b27cdbfa31adc5a7a71dab4', onClick: this.handleClick }, h$1("nv-fieldcheckbox", { key: '7afd9b55ce6911c327fae658304fa313fc908d45', checked: this.checked, name: this.label || this.value, label: this.label || this.value, "label-placement": "after", description: this.description, disabled: this.disabled, tabindex: "-1", role: "option", onCheckedChanged: this.onFieldcheckboxChanged })));
|
|
18998
19194
|
}
|
|
18999
19195
|
get el() { return this; }
|
|
19000
19196
|
static get style() { return NvFielddropdownitemcheckStyle0; }
|
|
@@ -19089,10 +19285,6 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19089
19285
|
* State of the multiselect popover.
|
|
19090
19286
|
*/
|
|
19091
19287
|
this.open = false;
|
|
19092
|
-
/**
|
|
19093
|
-
* Options configuration for the multiselect items.
|
|
19094
|
-
*/
|
|
19095
|
-
this.parsedOptions = [];
|
|
19096
19288
|
/**
|
|
19097
19289
|
* List of selected values in the multiselect.
|
|
19098
19290
|
*/
|
|
@@ -19110,12 +19302,6 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19110
19302
|
* @default 300
|
|
19111
19303
|
*/
|
|
19112
19304
|
this.debounceDelay = 300;
|
|
19113
|
-
/**
|
|
19114
|
-
* State for the mode of the multiselect.
|
|
19115
|
-
* @type {'options' | 'slots'}
|
|
19116
|
-
* @default 'options'
|
|
19117
|
-
*/
|
|
19118
|
-
this.modeState = 'options'; // Default value
|
|
19119
19305
|
this.isHandlingEscape = false;
|
|
19120
19306
|
/**
|
|
19121
19307
|
* Applies focus to the input field as soon as the component is mounted. This
|
|
@@ -19136,7 +19322,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19136
19322
|
item.style.display = '';
|
|
19137
19323
|
});
|
|
19138
19324
|
// Reorder options without the divider since there are no selected elements
|
|
19139
|
-
this.
|
|
19325
|
+
this.options = this.options.filter(option => !option.isDivider);
|
|
19140
19326
|
// Reorder options without the divider since there are no selected elements
|
|
19141
19327
|
this.reorderOptionsContent();
|
|
19142
19328
|
};
|
|
@@ -19164,13 +19350,6 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19164
19350
|
return;
|
|
19165
19351
|
}
|
|
19166
19352
|
this.filterText = '';
|
|
19167
|
-
// Only reorder based on the mode
|
|
19168
|
-
if (this.modeState === 'options') {
|
|
19169
|
-
this.reorderOptionsContent();
|
|
19170
|
-
}
|
|
19171
|
-
else {
|
|
19172
|
-
this.reorderSlotContent();
|
|
19173
|
-
}
|
|
19174
19353
|
// Reset filter if needed
|
|
19175
19354
|
if (this.filterable) {
|
|
19176
19355
|
this.resetFilter();
|
|
@@ -19339,7 +19518,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19339
19518
|
* @returns {any} The JSX for options mode
|
|
19340
19519
|
*/
|
|
19341
19520
|
this.renderOptionsMode = () => {
|
|
19342
|
-
return (h$1(Host$1, null, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { htmlFor: this.inputId }, h$1("slot", { name: "label" }, this.label))), h$1("nv-popover", { ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h$1("div", { class: "input-wrapper-multiselect", slot: "trigger" }, h$1("slot", { name: "before-input" }), h$1("div", { class: "input-container-multiselect" }, h$1("slot", { name: "leading-input" }), this.selectedValues.length > 0 && (h$1("nv-badge", { slot: "leading-input", "prevent-auto-close": true, color: "10", dismissible: this.selectedValues.length > 0, label: `${this.selectedValues.length} ${this.badgeLabel}`, "aria-label": `Clear all ${this.selectedValues.length} ${this.badgeLabel} items`, onCloseClicked: this.handleBadgeCloseOptions })), this.filterable || this.disabled || this.readonly ? (h$1("input", { type: "text", id: this.inputId, ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInputOptions, onFocus: this.handleInputFocusOptions, onBlur: this.handleInputBlurOptions, onKeyDown: this.handleKeyDown })) : (h$1("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClickOptions, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocusOptions, role: "combobox", "aria-expanded": this.open }, h$1("span", null, this.value || this.placeholder))), this.error && (h$1("nv-icon", { name: "alert-circle", class: "validation", size: "md" })), h$1("nv-iconbutton", { "data-scope": "toggle-dropdown", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopoverOptions })), h$1("slot", { name: "after-input" })), h$1("div", { slot: "content", role: "listbox", "aria-multiselectable": "true", style: { 'max-height': this.maxHeight, 'overflow-y': 'auto' } }, h$1("ul", { role: "content" }, this.
|
|
19521
|
+
return (h$1(Host$1, null, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { htmlFor: this.inputId }, h$1("slot", { name: "label" }, this.label))), h$1("nv-popover", { ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h$1("div", { class: "input-wrapper-multiselect", slot: "trigger" }, h$1("slot", { name: "before-input" }), h$1("div", { class: "input-container-multiselect" }, h$1("slot", { name: "leading-input" }), this.selectedValues.length > 0 && (h$1("nv-badge", { slot: "leading-input", "prevent-auto-close": true, color: "10", dismissible: this.selectedValues.length > 0, label: `${this.selectedValues.length} ${this.badgeLabel}`, "aria-label": `Clear all ${this.selectedValues.length} ${this.badgeLabel} items`, onCloseClicked: this.handleBadgeCloseOptions })), this.filterable || this.disabled || this.readonly ? (h$1("input", { type: "text", id: this.inputId, ref: e => (this.inputElement = e), autofocus: this.autofocus, autocomplete: this.autocomplete, placeholder: this.placeholder, name: this.name, value: this.value, required: this.required, disabled: this.disabled, readOnly: this.readonly, onInput: this.handleInputOptions, onFocus: this.handleInputFocusOptions, onBlur: this.handleInputBlurOptions, onKeyDown: this.handleKeyDown })) : (h$1("p", { id: this.inputId, class: "non-filterable-text", onClick: this.handleInputContainerClickOptions, tabIndex: 0, onKeyDown: this.handleKeyDown, onFocus: this.handleInputFocusOptions, role: "combobox", "aria-expanded": this.open }, h$1("span", null, this.value || this.placeholder))), this.error && (h$1("nv-icon", { name: "alert-circle", class: "validation", size: "md" })), h$1("nv-iconbutton", { "data-scope": "toggle-dropdown", name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', "aria-pressed": this.open.toString(), onClick: this.togglePopoverOptions })), h$1("slot", { name: "after-input" })), h$1("div", { slot: "content", role: "listbox", "aria-multiselectable": "true", style: { 'max-height': this.maxHeight, 'overflow-y': 'auto' } }, h$1("ul", { role: "content" }, this.options.map(option => (h$1("nv-fielddropdownitemcheck", { label: option.label, description: option.description, value: option.value, checked: this.selectedValues.includes(option.value), disabled: option.disabled }))), h$1("hr", { class: "multiselect-divider", style: { display: 'none' } })))), this.renderDescriptions()));
|
|
19343
19522
|
};
|
|
19344
19523
|
/**
|
|
19345
19524
|
* Renders the component in slots mode
|
|
@@ -19362,13 +19541,13 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19362
19541
|
* Set the mode state and handle options change.
|
|
19363
19542
|
*/
|
|
19364
19543
|
componentWillLoad() {
|
|
19365
|
-
|
|
19544
|
+
var _a;
|
|
19366
19545
|
// Don't call handleOptionsChange if we are in slots mode
|
|
19367
|
-
if (this.
|
|
19546
|
+
if (this.options) {
|
|
19368
19547
|
this.handleOptionsChange(this.options);
|
|
19369
19548
|
}
|
|
19370
19549
|
// Specific initialization for slots mode
|
|
19371
|
-
if (this.
|
|
19550
|
+
if (!this.options) {
|
|
19372
19551
|
Promise.resolve().then(() => {
|
|
19373
19552
|
const items = Array.from(this.el.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
19374
19553
|
// Initialize selectedValues with checked items
|
|
@@ -19382,8 +19561,8 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19382
19561
|
});
|
|
19383
19562
|
}
|
|
19384
19563
|
// Initialize the sorted options array with the parsed options for initial rendering
|
|
19385
|
-
if (this.
|
|
19386
|
-
this.sortedOptions = [...this.
|
|
19564
|
+
if (this.options) {
|
|
19565
|
+
this.sortedOptions = [...((_a = this.options) !== null && _a !== void 0 ? _a : [])];
|
|
19387
19566
|
}
|
|
19388
19567
|
// Apply filtering if the multiselect is filterable and there is a value
|
|
19389
19568
|
if (this.filterable && this.value) {
|
|
@@ -19399,10 +19578,8 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19399
19578
|
* Force reorder if options mode in componentDidLoad because of the initial render not trigger @watch
|
|
19400
19579
|
*/
|
|
19401
19580
|
componentDidLoad() {
|
|
19402
|
-
if (this.
|
|
19403
|
-
|
|
19404
|
-
this.reorderOptionsContent();
|
|
19405
|
-
});
|
|
19581
|
+
if (this.options) {
|
|
19582
|
+
this.handleOptionsChange(this.options);
|
|
19406
19583
|
}
|
|
19407
19584
|
}
|
|
19408
19585
|
/**
|
|
@@ -19427,6 +19604,12 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19427
19604
|
else {
|
|
19428
19605
|
this.handlePopoverClose();
|
|
19429
19606
|
}
|
|
19607
|
+
if (this.options) {
|
|
19608
|
+
this.reorderOptionsContent();
|
|
19609
|
+
}
|
|
19610
|
+
else {
|
|
19611
|
+
this.reorderSlotContent();
|
|
19612
|
+
}
|
|
19430
19613
|
}
|
|
19431
19614
|
/**
|
|
19432
19615
|
* Listen for the `itemChecked` event emitted by child items.
|
|
@@ -19460,41 +19643,13 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19460
19643
|
console.warn('Received itemChecked event with undefined or null value'); // Warning log
|
|
19461
19644
|
}
|
|
19462
19645
|
}
|
|
19463
|
-
/**
|
|
19464
|
-
* Emitted when the options change.
|
|
19465
|
-
* @param {string | Array<{label: string, value: string, isDivider?: boolean, disabled?: boolean, description?: string, checked?: boolean}>} newValue - The new value of the options.
|
|
19466
|
-
*/
|
|
19467
19646
|
handleOptionsChange(newValue) {
|
|
19468
|
-
if (
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
|
|
19472
|
-
|
|
19473
|
-
|
|
19474
|
-
this.parsedOptions = [...parsedOpts];
|
|
19475
|
-
}
|
|
19476
|
-
catch (error) {
|
|
19477
|
-
console.error('Error parsing options:', error);
|
|
19478
|
-
this.parsedOptions = [];
|
|
19479
|
-
}
|
|
19480
|
-
}
|
|
19481
|
-
else if (Array.isArray(newValue)) {
|
|
19482
|
-
this.selectedValues = newValue
|
|
19483
|
-
.filter(option => option.checked)
|
|
19484
|
-
.map(option => option.value);
|
|
19485
|
-
this.parsedOptions = [...newValue];
|
|
19486
|
-
}
|
|
19487
|
-
else {
|
|
19488
|
-
this.parsedOptions = [];
|
|
19489
|
-
}
|
|
19490
|
-
// Wait for the options to be fully loaded
|
|
19491
|
-
Promise.resolve().then(() => {
|
|
19492
|
-
requestAnimationFrame(() => {
|
|
19493
|
-
if (this.modeState === 'options') {
|
|
19494
|
-
this.reorderOptionsContent();
|
|
19495
|
-
}
|
|
19496
|
-
});
|
|
19497
|
-
});
|
|
19647
|
+
if (!newValue)
|
|
19648
|
+
return;
|
|
19649
|
+
this.selectedValues = newValue
|
|
19650
|
+
.filter(option => option.checked)
|
|
19651
|
+
.map(option => option.value);
|
|
19652
|
+
this.reorderOptionsContent();
|
|
19498
19653
|
}
|
|
19499
19654
|
/**
|
|
19500
19655
|
* Emitted when the value changes.
|
|
@@ -19591,7 +19746,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19591
19746
|
* Reorder the content of the slot.
|
|
19592
19747
|
*/
|
|
19593
19748
|
reorderSlotContent() {
|
|
19594
|
-
if (this.
|
|
19749
|
+
if (this.options)
|
|
19595
19750
|
return;
|
|
19596
19751
|
const ul = this.el.querySelector('ul');
|
|
19597
19752
|
if (!ul)
|
|
@@ -19655,7 +19810,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19655
19810
|
existingEmptyMessage.remove();
|
|
19656
19811
|
}
|
|
19657
19812
|
if (!this.filterText.trim()) {
|
|
19658
|
-
if (this.
|
|
19813
|
+
if (this.options && this.options.length > 0) {
|
|
19659
19814
|
// Reset options display
|
|
19660
19815
|
const items = Array.from(ul.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
19661
19816
|
items.forEach(item => {
|
|
@@ -19678,11 +19833,11 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19678
19833
|
}
|
|
19679
19834
|
const normalizedFilter = this.normalizeText(this.filterText);
|
|
19680
19835
|
let hasVisibleItems = false;
|
|
19681
|
-
if (this.
|
|
19836
|
+
if (this.options && this.options.length > 0) {
|
|
19682
19837
|
// Filter options mode
|
|
19683
19838
|
const items = Array.from(ul.querySelectorAll('nv-fielddropdownitemcheck'));
|
|
19684
19839
|
items.forEach(item => {
|
|
19685
|
-
const option = this.
|
|
19840
|
+
const option = this.options.find(opt => opt.value === item.getAttribute('value'));
|
|
19686
19841
|
if (option && !option.isDivider) {
|
|
19687
19842
|
const matchesFilter = this.normalizeText(option.label).includes(normalizedFilter) ||
|
|
19688
19843
|
this.normalizeText(option.value).includes(normalizedFilter);
|
|
@@ -19767,7 +19922,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19767
19922
|
* Filter multiselect items in slots mode
|
|
19768
19923
|
*/
|
|
19769
19924
|
filterSlotsItems() {
|
|
19770
|
-
if (this.
|
|
19925
|
+
if (this.options)
|
|
19771
19926
|
return;
|
|
19772
19927
|
const ul = this.el.querySelector('ul');
|
|
19773
19928
|
if (!ul)
|
|
@@ -19903,7 +20058,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
19903
20058
|
// Do the reorder and wait a bit before closing
|
|
19904
20059
|
const handleEscape = async () => {
|
|
19905
20060
|
this.isHandlingEscape = true; // Disable the hide listener
|
|
19906
|
-
if (this.
|
|
20061
|
+
if (this.options) {
|
|
19907
20062
|
this.reorderOptionsContent();
|
|
19908
20063
|
}
|
|
19909
20064
|
else {
|
|
@@ -20015,9 +20170,7 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
20015
20170
|
* @returns {any} The JSX for the component
|
|
20016
20171
|
*/
|
|
20017
20172
|
render() {
|
|
20018
|
-
return this.
|
|
20019
|
-
? this.renderOptionsMode()
|
|
20020
|
-
: this.renderSlotsMode();
|
|
20173
|
+
return this.options ? this.renderOptionsMode() : this.renderSlotsMode();
|
|
20021
20174
|
}
|
|
20022
20175
|
static get formAssociated() { return true; }
|
|
20023
20176
|
get el() { return this; }
|
|
@@ -20044,14 +20197,12 @@ const NvFieldmultiselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldmulti
|
|
|
20044
20197
|
"filterable": [516],
|
|
20045
20198
|
"value": [1537],
|
|
20046
20199
|
"open": [1540],
|
|
20047
|
-
"options": [
|
|
20200
|
+
"options": [1040],
|
|
20048
20201
|
"debounceDelay": [514, "debounce-delay"],
|
|
20049
20202
|
"autofocus": [516],
|
|
20050
|
-
"parsedOptions": [32],
|
|
20051
20203
|
"selectedValues": [32],
|
|
20052
20204
|
"sortedOptions": [32],
|
|
20053
20205
|
"filterText": [32],
|
|
20054
|
-
"modeState": [32],
|
|
20055
20206
|
"isHandlingEscape": [32],
|
|
20056
20207
|
"getFilterText": [64],
|
|
20057
20208
|
"resetFilter": [64],
|
|
@@ -20073,7 +20224,7 @@ function defineCustomElement$1$d() {
|
|
|
20073
20224
|
break;
|
|
20074
20225
|
case "nv-badge":
|
|
20075
20226
|
if (!customElements.get(tagName)) {
|
|
20076
|
-
defineCustomElement$
|
|
20227
|
+
defineCustomElement$O();
|
|
20077
20228
|
}
|
|
20078
20229
|
break;
|
|
20079
20230
|
case "nv-fieldcheckbox":
|
|
@@ -20088,7 +20239,7 @@ function defineCustomElement$1$d() {
|
|
|
20088
20239
|
break;
|
|
20089
20240
|
case "nv-icon":
|
|
20090
20241
|
if (!customElements.get(tagName)) {
|
|
20091
|
-
defineCustomElement$
|
|
20242
|
+
defineCustomElement$R();
|
|
20092
20243
|
}
|
|
20093
20244
|
break;
|
|
20094
20245
|
case "nv-iconbutton":
|
|
@@ -20221,9 +20372,9 @@ const NvFieldnumber$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldnumber ext
|
|
|
20221
20372
|
/****************************************************************************/
|
|
20222
20373
|
//#region RENDER
|
|
20223
20374
|
render() {
|
|
20224
|
-
return (h$1(Host$1, { key: '
|
|
20225
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
20226
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
20375
|
+
return (h$1(Host$1, { key: 'e054d1e05c0623bf3d5d78c2bafb6d096dbcbd08' }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '0743432faff56e8256b2a30fab68ced0592bbf6a', htmlFor: this.inputId }, h$1("slot", { key: '709f68c3f4bf6ade475cd6afbee5c9912c782c43', name: "label" }, this.label))), h$1("div", { key: '5798b0faf23bc671aeda3273dcfff7c1d1ca4109', class: "input-wrapper" }, h$1("slot", { key: '47b9f0ef000d2d98e2e3ad1c1f4191ce91c69266', name: "before-input" }), h$1("div", { key: '082d2ab64b892cc994955b723d1ab342414061fb', class: "input-container", onClick: this.handleInputContainerClick }, h$1("slot", { key: '34511207a7ebc1cc5fe8cc91d05f4fa549fda316', name: "leading-input" }), h$1("input", { key: '20f96b319b6e7528d738bdc31152649575409dd1', 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 }), this.error && (h$1("nv-icon", { key: '2b05afbbc94bd39dd82a270511e4372536ee80ba', name: "alert-circle", class: "validation", size: "md" })), this.success && (h$1("nv-icon", { key: '95d74e6298e49d422b19bf080d3e2de25c2ad8e2', name: "circle-check", class: "validation", size: "md" })), h$1("div", { key: '5c665de10e9650003b127997cd6010e35d7d0b7a', class: "stepper" }, h$1("nv-iconbutton", { key: '9702ee4778623862e67d29a56f7790af364786bf', size: "md", name: "minus", emphasis: "lower", onClick: this.handleMinus, disabled: this.isMinValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }), h$1("nv-iconbutton", { key: '20fc509c42230f6768d98e4144db12afae3649ef', size: "md", name: "plus", emphasis: "lower", onClick: this.handlePlus, disabled: this.isMaxValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }))), h$1("slot", { key: 'd432d4e6fb8c4fd67c6c972b5c967e093cadfe68', name: "after-input" })), (this.description ||
|
|
20376
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: 'e1d585c32f4cff50d84f5d1b6696856c8c875ef7', class: "description" }, h$1("slot", { key: '860b5fb8ba3e24fc728021b238b371178ae54ead', name: "description" }, this.description))), (this.errorDescription ||
|
|
20377
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: 'aaa707753b98415ca4e329fab9b45bfc3b42525a', hidden: !this.error, class: "error-description" }, h$1("slot", { key: 'f8c0910451550baa82663500a7c0339064720428', name: "error-description" }, this.errorDescription)))));
|
|
20227
20378
|
}
|
|
20228
20379
|
static get formAssociated() { return true; }
|
|
20229
20380
|
get el() { return this; }
|
|
@@ -20266,7 +20417,7 @@ function defineCustomElement$1$c() {
|
|
|
20266
20417
|
break;
|
|
20267
20418
|
case "nv-icon":
|
|
20268
20419
|
if (!customElements.get(tagName)) {
|
|
20269
|
-
defineCustomElement$
|
|
20420
|
+
defineCustomElement$R();
|
|
20270
20421
|
}
|
|
20271
20422
|
break;
|
|
20272
20423
|
case "nv-iconbutton":
|
|
@@ -20385,9 +20536,9 @@ const NvFieldpassword$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldpassword
|
|
|
20385
20536
|
/****************************************************************************/
|
|
20386
20537
|
//#region RENDER
|
|
20387
20538
|
render() {
|
|
20388
|
-
return (h$1(Host$1, { key: '
|
|
20389
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
20390
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
20539
|
+
return (h$1(Host$1, { key: '4a6de90f24bd6607293d616d60f6d742c46b04a9' }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '715f5935de3aa0f0f7b6aa9aa72c409a3875a849', htmlFor: this.inputId }, h$1("slot", { key: 'da11187833b12acfae578024bb67d717efbafaa1', name: "label" }, this.label))), h$1("div", { key: 'a669823e6c5aea5b4e0aacf0bfc1c8f7dbe67bab', class: "input-wrapper" }, h$1("slot", { key: '98b2b6eaaa867228a667bec2920c640ff0b829c7', name: "before-input" }), h$1("div", { key: 'fc896f9018563e80ea0f2aa1e2eb7992fd4a854c', class: "input-container", onClick: this.handleInputContainerClick }, h$1("slot", { key: '715814e77d1ba40463253d12751129f2c0d05407', name: "leading-input" }), h$1("input", { key: '8101af836f80da56ac9e2b859ab9fd5b6d254b91', 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$1("nv-icon", { key: 'fdf5caa936a43961bd3f00f5d50635124b57ff0b', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" })), !this.hidePasswordIcon && (h$1("nv-iconbutton", { key: '9b9e70d855fca2ea1ff2769609af05fc7d3fd1c2', 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$1("slot", { key: '4458e83104562509b53b05faf3a316a5502b76b7', name: "after-input" })), (this.description ||
|
|
20540
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '91dcddd8a80abccaaffda9cd583759bebf376456', class: "description" }, h$1("slot", { key: 'fe6da6eb725b3866faf138e848f89152f0f24a00', name: "description" }, this.description))), (this.errorDescription ||
|
|
20541
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: 'bfe57a6b0f199c3b371a2036a7b8787f40f639a4', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '529e34f2197c64ac768df11251bb285fec1f2cd5', name: "error-description" }, this.errorDescription)))));
|
|
20391
20542
|
}
|
|
20392
20543
|
static get formAssociated() { return true; }
|
|
20393
20544
|
get el() { return this; }
|
|
@@ -20433,7 +20584,7 @@ function defineCustomElement$1$b() {
|
|
|
20433
20584
|
break;
|
|
20434
20585
|
case "nv-icon":
|
|
20435
20586
|
if (!customElements.get(tagName)) {
|
|
20436
|
-
defineCustomElement$
|
|
20587
|
+
defineCustomElement$R();
|
|
20437
20588
|
}
|
|
20438
20589
|
break;
|
|
20439
20590
|
case "nv-iconbutton":
|
|
@@ -20536,9 +20687,9 @@ const NvFieldradio$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldradio exten
|
|
|
20536
20687
|
/****************************************************************************/
|
|
20537
20688
|
//#region RENDER
|
|
20538
20689
|
render() {
|
|
20539
|
-
return (h$1(Host$1, { key: '
|
|
20540
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
20541
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
20690
|
+
return (h$1(Host$1, { key: 'e1a92204a7d3e07de9485873906ed57dc2f4dfb1', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, h$1("input", { key: '8161b36c31b960a4ca4f7a1291a9cdbdd830429c', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), h$1("div", { key: '8d5ff5b5742a96dc9d1167298859a7a97347eeab', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '7417fe1c5041e20fd63abca907fd75fe7d3b49d2', htmlFor: this.inputId }, h$1("slot", { key: 'e29a092dbd19c912c496e1ae56d9f46bcb44208c', name: "label" }, this.label))), (this.description ||
|
|
20691
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: 'a894108a6e5235010d18547a39daf526e066e432', class: "description" }, h$1("slot", { key: 'c67b5b5a5d2ef1f27e69eb251e9a15c98909db85', name: "description" }, this.description))), (this.errorDescription ||
|
|
20692
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '18ea2ae58994289900f28c0e6220e113b45b2a92', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '52a10763fb7bf688e5a1de5e854aa0d80bc996f4', name: "error-description" }, this.errorDescription))))));
|
|
20542
20693
|
}
|
|
20543
20694
|
static get formAssociated() { return true; }
|
|
20544
20695
|
get el() { return this; }
|
|
@@ -20921,13 +21072,13 @@ const NvFieldselect$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldselect ext
|
|
|
20921
21072
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
20922
21073
|
*/
|
|
20923
21074
|
render() {
|
|
20924
|
-
return (h$1(Host$1, { key: '
|
|
21075
|
+
return (h$1(Host$1, { key: '38cb85c6698c5541793a1e5d34b36417cd743759' }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: 'd81b9837c43c1a19a2d87b51cede9e7c32bda50c', htmlFor: this.inputId }, h$1("slot", { key: '9d7c10281b117f2006ca1997f91e4e0b99fc5ab5', name: "label" }, this.label))), h$1("div", { key: '2796a31f2aac0604054c4542564fca77c2ac4272', class: "select-wrapper" }, h$1("slot", { key: '0407c6379597b09e1bb11ee6b43110b1d5fb98ea', name: "before-input" }), h$1("div", { key: 'c0ae999fc017fb0352b0a1cfe2ff75e313955f23', class: "select-container", onClick: this.handleSelectContainerClick }, h$1("slot", { key: 'ea2b63ddb3b70521b63e15efd1c3daf06c38cc0a', name: "leading-input" }), this.internalReadonly && (h$1("input", { key: 'f543f67c0360ac315ed873eb14a93af35dd90670', 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
|
|
20925
21076
|
? `${this.inputId}-error`
|
|
20926
|
-
: `${this.inputId}-description` })), h$1("select", { key: '
|
|
21077
|
+
: `${this.inputId}-description` })), h$1("select", { key: 'b2ae3854c40ea798069417127cd763c8a0db040e', 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
|
|
20927
21078
|
? `${this.inputId}-error`
|
|
20928
|
-
: `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (h$1("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (h$1("slot", null))), h$1("div", { key: '
|
|
20929
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
20930
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
21079
|
+
: `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (h$1("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (h$1("slot", null))), h$1("div", { key: 'dd59af14105272eaa77218136f5b7b0b40a5b40b', class: "select-icons" }, this.error && (h$1("nv-icon", { key: '719e239472f6b697298682cc8d1b10933d3504ec', name: "alert-circle", class: "validation", size: "md" })), this.success && (h$1("nv-icon", { key: '5d63d5ddbcd8f46296bc067afd45f3921f4f3917', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (h$1("nv-iconbutton", { key: '978a540682409a88ce55d2219dbeb9f2fc82cd51', name: "chevron-down", size: "md", emphasis: "lower", tabindex: -1 })))), h$1("slot", { key: '3483846a9f38be08caaf6f2b02332caefae0cbed', name: "after-input" })), (this.description ||
|
|
21080
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '5b47c05942549b6e2238696132ab2f3c9af5b7f0', class: "description", id: `${this.inputId}-description` }, h$1("slot", { key: '46b7f053ae343949b540240e1ec438850bb9a015', name: "description" }, this.description))), (this.errorDescription ||
|
|
21081
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '6126ab6967fc430c6a1d3ddfb191a98a8c2ecce9', class: "error-description", id: `${this.inputId}-error` }, h$1("slot", { key: 'afc6a0443c6fe1175213d36a2c59ffefe2923eab', name: "error-description" }, this.errorDescription)))));
|
|
20931
21082
|
}
|
|
20932
21083
|
static get formAssociated() { return true; }
|
|
20933
21084
|
get el() { return this; }
|
|
@@ -20978,7 +21129,7 @@ function defineCustomElement$1$9() {
|
|
|
20978
21129
|
break;
|
|
20979
21130
|
case "nv-icon":
|
|
20980
21131
|
if (!customElements.get(tagName)) {
|
|
20981
|
-
defineCustomElement$
|
|
21132
|
+
defineCustomElement$R();
|
|
20982
21133
|
}
|
|
20983
21134
|
break;
|
|
20984
21135
|
case "nv-iconbutton":
|
|
@@ -21102,9 +21253,9 @@ const NvFieldtext$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldtext extends
|
|
|
21102
21253
|
/****************************************************************************/
|
|
21103
21254
|
//#region RENDER
|
|
21104
21255
|
render() {
|
|
21105
|
-
return (h$1(Host$1, { key: '
|
|
21106
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
21107
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
21256
|
+
return (h$1(Host$1, { key: 'e4891525becd4b0757ec380d45d9694ebc6c3318' }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '1157e609be8150d014e9190dcf53f74bcee20119', htmlFor: this.inputId }, h$1("slot", { key: '888fb12e994f6f4f47bc2be496cd74aeedb628c0', name: "label" }, this.label))), h$1("div", { key: '0555b12dbbe5fa81f5af464d3b48c35b243aec32', class: "input-wrapper" }, h$1("slot", { key: '5210a9b903c560775453741d8815286dbe8bbb53', name: "before-input" }), h$1("div", { key: '7bc11232dfa46706982bf3645054a7a1f67832f9', class: "input-container", onClick: this.handleInputContainerClick }, h$1("slot", { key: '87abc6976b432a3dc51246c97564108f9baccff8', name: "leading-input" }), h$1("input", { key: 'b0c3e30bc5363f6b49ea1361005e125826184016', 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 }), this.error && (h$1("nv-icon", { key: '5e359bc40906bbf2c63eb7d196dd8294b15dd672', name: "alert-circle", class: "validation", size: "md" })), this.success && (h$1("nv-icon", { key: '4812b31e512bf388fa84f9d35a949de5f9b86d59', name: "circle-check", class: "validation", size: "md" }))), h$1("slot", { key: '06922c63f02470be6c74ee6ba4bf93baabd03e57', name: "after-input" })), (this.description ||
|
|
21257
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '960bcb53a55aed3e1b8cd1b193ad26f5c6b151fd', class: "description" }, h$1("slot", { key: '07c09b8543e9b91928821a100869943de94a65a7', name: "description" }, this.description))), (this.errorDescription ||
|
|
21258
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '456d00a47f01f70938d99faa774da1a9e51b036d', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '590aef8c37efd2fa472c9b7b92fd82d29c4e6d39', name: "error-description" }, this.errorDescription)))));
|
|
21108
21259
|
}
|
|
21109
21260
|
static get formAssociated() { return true; }
|
|
21110
21261
|
get el() { return this; }
|
|
@@ -21146,7 +21297,7 @@ function defineCustomElement$1$8() {
|
|
|
21146
21297
|
break;
|
|
21147
21298
|
case "nv-icon":
|
|
21148
21299
|
if (!customElements.get(tagName)) {
|
|
21149
|
-
defineCustomElement$
|
|
21300
|
+
defineCustomElement$R();
|
|
21150
21301
|
}
|
|
21151
21302
|
break;
|
|
21152
21303
|
} });
|
|
@@ -21329,9 +21480,9 @@ const NvFieldtextarea$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldtextarea
|
|
|
21329
21480
|
/****************************************************************************/
|
|
21330
21481
|
//#region RENDER
|
|
21331
21482
|
render() {
|
|
21332
|
-
return (h$1(Host$1, { key: '
|
|
21333
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
21334
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
21483
|
+
return (h$1(Host$1, { key: '606902cda67b3f523ab32d8e9c6fd11b6bc0f3a7' }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: '3167dfd5f17028ad20a82b5646ccfa788a5bbb86', htmlFor: this.inputId }, h$1("slot", { key: 'ae98d87f3e1b7cb2864b6b7e7183d3a37c1a7e14', name: "label" }, this.label))), h$1("div", { key: '8f25bdadd8f94938dc9b6c631b0586fc6bcbc37c', class: "textarea-wrapper" }, h$1("div", { key: '6568df9f332e8bca84445ba596d6eceaaed64b9e', class: "textarea-container", onClick: this.handleTextareaContainerClick }, h$1("textarea", { key: 'fca9ba5bd6925cc1a201625e5785ad451fc8849b', 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 ||
|
|
21484
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: 'c5c8c1999105df446a603a3e02f431ad37de4c5e', class: "description" }, h$1("slot", { key: 'bbcea14c7585e1ff1c995eb4f21cb532a160ed40', name: "description" }, this.description))), (this.errorDescription ||
|
|
21485
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '2d43d92b5c9b93faeac45bdcfa142d4dfd70511a', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '33514ea705969b353f11c49ca65090706e6aadf8', name: "error-description" }, this.errorDescription)))));
|
|
21335
21486
|
}
|
|
21336
21487
|
static get formAssociated() { return true; }
|
|
21337
21488
|
get el() { return this; }
|
|
@@ -22360,26 +22511,26 @@ const NvFieldtime$1 = /*@__PURE__*/ proxyCustomElement(class NvFieldtime extends
|
|
|
22360
22511
|
}, key: `${option}-${index}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
|
|
22361
22512
|
}
|
|
22362
22513
|
render() {
|
|
22363
|
-
return (h$1(Host$1, { key: '
|
|
22364
|
-
h$1("input", { key: '
|
|
22514
|
+
return (h$1(Host$1, { key: 'fb5bc4740731089bf81ab7b24e57f24f966c5f92', onclick: e => this.handleHostClick(e) }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: 'd9f44f4ab94a13a620df743979d95b1f59572bfe', htmlFor: this.inputId }, h$1("slot", { key: 'fbc8176ea3443511764b2993939d1110fd932a5a', name: "label" }, this.label))), h$1("nv-popover", { key: 'ea376ec38db428db158c998e8963e27048ef03b0', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, h$1("div", { key: 'fa825918cea4a64db76324f953645f6db7cb81b9', class: "input-wrapper", slot: "trigger" }, h$1("slot", { key: '37d7fd2eae40e4f47e9b626c226d060cf5e350e2', name: "before-input" }), h$1("div", { key: '6b73d8c9598bfaf470b5c5a455db0b08397cc8c8', class: "input-container" }, h$1("slot", { key: '88f20151d7ccc1e3ad6f6aba4b5926cccc22c19c', name: "leading-input" }), startsWithIgnoreCase(this.format, 'HH') && [
|
|
22515
|
+
h$1("input", { key: '292ee8c62fd248b28fb46275ba06846d69b3b602', ref: el => (this.inputElements[TimeType.Hours] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.hours, onInput: e => this.handleInputChange(e, TimeType.Hours), placeholder: this.format.includes('hh') ? 'hh' : 'HH', inputMode: "numeric", onFocus: () => this.handleFocus(TimeType.Hours), name: this.name
|
|
22365
22516
|
? `${TimeType.Hours}-${this.name}`
|
|
22366
22517
|
: TimeType.Hours, id: this.inputId, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
22367
22518
|
], this.format.includes('mm') && [
|
|
22368
|
-
h$1("span", { key: '
|
|
22369
|
-
h$1("input", { key: '
|
|
22519
|
+
h$1("span", { key: 'c7de2283771d60e1e9f756257e34da0eefcf27f3' }, ":"),
|
|
22520
|
+
h$1("input", { key: '521fad8cc60c9ced2ba634441b789fba15340ae7', ref: el => (this.inputElements[TimeType.Minutes] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.minutes, onInput: e => this.handleInputChange(e, TimeType.Minutes), placeholder: "mm", inputMode: "numeric", onFocus: () => this.handleFocus(TimeType.Minutes), name: this.name
|
|
22370
22521
|
? `${TimeType.Minutes}-${this.name}`
|
|
22371
22522
|
: TimeType.Minutes, id: `${this.inputId}-minutes`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
22372
22523
|
], this.format.includes('ss') && [
|
|
22373
|
-
h$1("span", { key: '
|
|
22374
|
-
h$1("input", { key: '
|
|
22524
|
+
h$1("span", { key: 'ceef993e3efdc2fa01d466033522e09ee78683b1' }, ":"),
|
|
22525
|
+
h$1("input", { key: '9c51f0fcecb86a913e9ae4cd3c5bcfbf34ac4ab8', ref: el => (this.inputElements[TimeType.Seconds] = el), type: "number", autofocus: this.autofocus, class: "time-input", pattern: "[0-9]*", maxlength: "3", value: this.seconds, onInput: e => this.handleInputChange(e, TimeType.Seconds), placeholder: "ss", inputMode: "numeric", onFocus: () => this.handleFocus(TimeType.Seconds), name: this.name
|
|
22375
22526
|
? `${TimeType.Seconds}-${this.name}`
|
|
22376
22527
|
: TimeType.Seconds, id: `${this.inputId}-seconds`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
22377
|
-
], h$1("nv-iconbutton", { key: '
|
|
22528
|
+
], h$1("nv-iconbutton", { key: '7a5516b7d91dc99f6963ee9daacee9305b16dfb0', name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide time picker' : 'Show time picker', "aria-pressed": this.open.toString(), onClick: () => this.HandleDropdownIconClick() }), this.error && (h$1("nv-icon", { key: 'a9a9a02e312caf25a52b91e1d4db6b6ee9d850d6', name: "alert-circle", class: "validation", size: "sm" })), this.success && (h$1("nv-icon", { key: '93a69f343771dbdb8c6bd694ea9f5ddeeba39801', name: "circle-check", class: "validation", size: "sm" }))), h$1("slot", { key: '678d9af754b860ac99a50d70cb9b975e79f164c9', name: "after-input" })), h$1("div", { key: '2bd255e97d8b34b66fa0af2f209d5175e67b62a3', class: "time-dropdown", slot: "content" }, h$1("div", { key: '017b58a9a7ccb44918a408fb680fa1c18d8f5672', class: "time-columns" }, startsWithIgnoreCase(this.format, 'HH') &&
|
|
22378
22529
|
this.RenderTimeOptionsColumn(TimeType.Hours), this.format.includes('mm') &&
|
|
22379
22530
|
this.RenderTimeOptionsColumn(TimeType.Minutes), this.format.includes('ss') &&
|
|
22380
22531
|
this.RenderTimeOptionsColumn(TimeType.Seconds)))), (this.description ||
|
|
22381
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
22382
|
-
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '
|
|
22532
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '35f5fb47bfeb9cde2c3551df391cf52ccaf10c72', class: "description" }, h$1("slot", { key: 'b450124765db5b2337f03a5f68c4a9466c80ca85', name: "description" }, this.description))), (this.errorDescription ||
|
|
22533
|
+
this.el.querySelector('[slot="error-description"]')) && (h$1("div", { key: '87d441f595f7ba8be04ca749235ec3918e9a80b0', hidden: !this.error, class: "error-description" }, h$1("slot", { key: '35717f533b4a4c310f4fb805c3989398f340b8b1', name: "error-description" }, this.errorDescription)))));
|
|
22383
22534
|
}
|
|
22384
22535
|
static get formAssociated() { return true; }
|
|
22385
22536
|
get el() { return this; }
|
|
@@ -22424,7 +22575,7 @@ function defineCustomElement$1$6() {
|
|
|
22424
22575
|
break;
|
|
22425
22576
|
case "nv-icon":
|
|
22426
22577
|
if (!customElements.get(tagName)) {
|
|
22427
|
-
defineCustomElement$
|
|
22578
|
+
defineCustomElement$R();
|
|
22428
22579
|
}
|
|
22429
22580
|
break;
|
|
22430
22581
|
case "nv-iconbutton":
|
|
@@ -22450,7 +22601,7 @@ const NvFieldtime$2 = NvFieldtime$1;
|
|
|
22450
22601
|
const defineCustomElement$e = defineCustomElement$1$6;
|
|
22451
22602
|
|
|
22452
22603
|
const NvIcon$1 = NvIcon$2;
|
|
22453
|
-
const defineCustomElement$d = defineCustomElement$
|
|
22604
|
+
const defineCustomElement$d = defineCustomElement$R;
|
|
22454
22605
|
|
|
22455
22606
|
const NvIconbutton$1 = NvIconbutton$2;
|
|
22456
22607
|
const defineCustomElement$c = defineCustomElement$F;
|
|
@@ -22505,7 +22656,7 @@ const NvMenuitem$2 = /*@__PURE__*/ proxyCustomElement(class NvMenuitem extends H
|
|
|
22505
22656
|
/****************************************************************************/
|
|
22506
22657
|
//#region RENDER
|
|
22507
22658
|
render() {
|
|
22508
|
-
return (h$1(Host$1, { key: '
|
|
22659
|
+
return (h$1(Host$1, { key: 'd736bc00759cb97fe52d2d6dc091667057a5585c', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && h$1("nv-icon", { key: 'cf29c75feedcb61d16d33433f834751c821a4256', name: this.icon }), h$1("slot", { key: '0ebe8b2faac9981023c224e3c5cd4f131e088c0e' }), this.label && h$1("span", { key: 'd2659aceb0ecc1cad794ae16d15432379677012c', "data-scope": "text" }, this.label), this.shortcut && !this.hasSubmenu && h$1("kbd", { key: '7d7772b6efda6faccafc425772c905d4aabd2ef5' }, this.shortcut), this.hasSubmenu && h$1("nv-icon", { key: 'c756d3ceffc907fa0c37338595a7fd09f8238a7b', name: "chevron-right" })));
|
|
22509
22660
|
}
|
|
22510
22661
|
get el() { return this; }
|
|
22511
22662
|
static get style() { return NvMenuitemStyle0; }
|
|
@@ -22530,7 +22681,7 @@ function defineCustomElement$a() {
|
|
|
22530
22681
|
break;
|
|
22531
22682
|
case "nv-icon":
|
|
22532
22683
|
if (!customElements.get(tagName)) {
|
|
22533
|
-
defineCustomElement$
|
|
22684
|
+
defineCustomElement$R();
|
|
22534
22685
|
}
|
|
22535
22686
|
break;
|
|
22536
22687
|
} });
|
|
@@ -22569,25 +22720,23 @@ const NvMenu$1 = /*@__PURE__*/ proxyCustomElement(class NvMenu extends H {
|
|
|
22569
22720
|
* position on the axis to fit on the screen, so users can always see it.
|
|
22570
22721
|
*/
|
|
22571
22722
|
this.placement = 'bottom-end';
|
|
22723
|
+
//#endregion LIFECYCLE
|
|
22724
|
+
/****************************************************************************/
|
|
22725
|
+
//#region RENDER
|
|
22572
22726
|
/**
|
|
22573
|
-
*
|
|
22727
|
+
* Generates menu items from the `items` property.
|
|
22728
|
+
* @param {MenuItem[]} items - The items to display in the menu.
|
|
22729
|
+
* @returns {HTMLElement[]} The rendered items.
|
|
22574
22730
|
*/
|
|
22575
|
-
this.
|
|
22576
|
-
|
|
22577
|
-
|
|
22578
|
-
|
|
22579
|
-
|
|
22580
|
-
|
|
22581
|
-
|
|
22582
|
-
|
|
22583
|
-
|
|
22584
|
-
this.parsedItems = JSON.parse(newValue);
|
|
22585
|
-
}
|
|
22586
|
-
catch (error) {
|
|
22587
|
-
console.error('Error parsing menu items:', error);
|
|
22588
|
-
this.parsedItems = [];
|
|
22589
|
-
}
|
|
22590
|
-
}
|
|
22731
|
+
this.renderMenuItems = () => {
|
|
22732
|
+
return this.items.map(item => {
|
|
22733
|
+
var _a;
|
|
22734
|
+
if (item.hasSubmenu && ((_a = item.submenuItems) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
22735
|
+
return (h$1("nv-menu", { nested: true, placement: "right-start", items: item.submenuItems }, h$1("nv-menuitem", { slot: "trigger", hasSubmenu: true, disabled: item.disabled, icon: item.icon, shortcut: item.shortcut, id: item.value, name: item.label, label: item.label })));
|
|
22736
|
+
}
|
|
22737
|
+
return (h$1("nv-menuitem", { disabled: item.disabled, icon: item.icon, shortcut: item.shortcut, id: item.value, name: item.label, label: item.label }));
|
|
22738
|
+
});
|
|
22739
|
+
};
|
|
22591
22740
|
}
|
|
22592
22741
|
//#endregion PROPERTIES
|
|
22593
22742
|
/****************************************************************************/
|
|
@@ -22727,48 +22876,21 @@ const NvMenu$1 = /*@__PURE__*/ proxyCustomElement(class NvMenu extends H {
|
|
|
22727
22876
|
this.triggerElement = Array.from(this.el.children).find(child => {
|
|
22728
22877
|
return child.getAttribute('slot') === 'trigger';
|
|
22729
22878
|
});
|
|
22730
|
-
// If the items attribute is provided, parse its value.
|
|
22731
|
-
if (this.items) {
|
|
22732
|
-
this.handleItemsChange(this.items);
|
|
22733
|
-
}
|
|
22734
|
-
}
|
|
22735
|
-
//#endregion LIFECYCLE
|
|
22736
|
-
/****************************************************************************/
|
|
22737
|
-
//#region RENDER
|
|
22738
|
-
/**
|
|
22739
|
-
* Generates menu items from the `items` property.
|
|
22740
|
-
* @param {MenuItem[]} items - The items to display in the menu.
|
|
22741
|
-
* @returns {HTMLElement[]} The rendered items.
|
|
22742
|
-
*/
|
|
22743
|
-
renderMenuItems(items) {
|
|
22744
|
-
return items.map(item => {
|
|
22745
|
-
var _a;
|
|
22746
|
-
if (item.hasSubmenu && ((_a = item.submenuItems) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
22747
|
-
return (h$1("nv-menu", { nested: true, placement: "right-start", items: JSON.stringify(item.submenuItems) }, h$1("nv-menuitem", { slot: "trigger", "has-submenu": true, disabled: item.disabled, icon: item.icon, shortcut: item.shortcut, id: item.value, name: item.label, label: item.label })));
|
|
22748
|
-
}
|
|
22749
|
-
return (h$1("nv-menuitem", { disabled: item.disabled, icon: item.icon, shortcut: item.shortcut, id: item.value, name: item.label, label: item.label }));
|
|
22750
|
-
});
|
|
22751
22879
|
}
|
|
22752
22880
|
render() {
|
|
22753
|
-
return (h$1(Host$1, { key: '
|
|
22881
|
+
return (h$1(Host$1, { key: 'b66fd4f51c7f754d2d49265fe6175cc1a2c0b03a' }, h$1("slot", { key: 'acd3dc4ad3ed94a4bcbef735049e59bf37a8f67d', name: "trigger" }), h$1("nv-popover", { key: '28218c78f3fa21a9dcfd5ea13d3416eda11efc49', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, this.items ? (h$1("ul", { slot: "content" }, this.renderMenuItems())) : (h$1("slot", { name: "content" })))));
|
|
22754
22882
|
}
|
|
22755
22883
|
get el() { return this; }
|
|
22756
|
-
static get watchers() { return {
|
|
22757
|
-
"items": ["handleItemsChange"]
|
|
22758
|
-
}; }
|
|
22759
22884
|
static get style() { return NvMenuStyle0; }
|
|
22760
22885
|
}, [4, "nv-menu", {
|
|
22761
22886
|
"open": [1540],
|
|
22762
22887
|
"nested": [516],
|
|
22763
22888
|
"disableCloseOnSelect": [516, "disable-close-on-select"],
|
|
22764
22889
|
"placement": [513],
|
|
22765
|
-
"items": [
|
|
22766
|
-
"parsedItems": [32],
|
|
22890
|
+
"items": [16],
|
|
22767
22891
|
"show": [64],
|
|
22768
22892
|
"close": [64]
|
|
22769
|
-
}, [[0, "menuitemSelected", "handleMenuItemSelect"], [0, "keydown", "handleKeydown"], [0, "openChanged", "handleOpenChanged"]]
|
|
22770
|
-
"items": ["handleItemsChange"]
|
|
22771
|
-
}]);
|
|
22893
|
+
}, [[0, "menuitemSelected", "handleMenuItemSelect"], [0, "keydown", "handleKeydown"], [0, "openChanged", "handleOpenChanged"]]]);
|
|
22772
22894
|
function defineCustomElement$1$5() {
|
|
22773
22895
|
if (typeof customElements === "undefined") {
|
|
22774
22896
|
return;
|
|
@@ -22782,7 +22904,7 @@ function defineCustomElement$1$5() {
|
|
|
22782
22904
|
break;
|
|
22783
22905
|
case "nv-icon":
|
|
22784
22906
|
if (!customElements.get(tagName)) {
|
|
22785
|
-
defineCustomElement$
|
|
22907
|
+
defineCustomElement$R();
|
|
22786
22908
|
}
|
|
22787
22909
|
break;
|
|
22788
22910
|
case "nv-menu":
|
|
@@ -22824,7 +22946,7 @@ const NvRow$1 = /*@__PURE__*/ proxyCustomElement(class NvRow extends H {
|
|
|
22824
22946
|
/****************************************************************************/
|
|
22825
22947
|
//#region RENDER
|
|
22826
22948
|
render() {
|
|
22827
|
-
return (h$1(Host$1, { key: '
|
|
22949
|
+
return (h$1(Host$1, { key: '7daaa109808165553e69707c72550f284e087011' }, h$1("slot", { key: 'a00fd8c81352b485d8508f9bd68af4dd81d959e1' })));
|
|
22828
22950
|
}
|
|
22829
22951
|
static get style() { return NvRowStyle0; }
|
|
22830
22952
|
}, [4, "nv-row"]);
|
|
@@ -22865,7 +22987,7 @@ const NvStack$1 = /*@__PURE__*/ proxyCustomElement(class NvStack extends H {
|
|
|
22865
22987
|
/****************************************************************************/
|
|
22866
22988
|
//#region RENDER
|
|
22867
22989
|
render() {
|
|
22868
|
-
return (h$1(Host$1, { key: '
|
|
22990
|
+
return (h$1(Host$1, { key: '02e184fbc9e9ddd4b02b107baf093047fa3697b0', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gap-x-${this.gutter}`, this.gutter && this.vertical && `gap-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, h$1("slot", { key: '1a501fcc419f97f2714be822120072b49590e5ea' })));
|
|
22869
22991
|
}
|
|
22870
22992
|
static get style() { return NvStackStyle0; }
|
|
22871
22993
|
}, [4, "nv-stack", {
|
|
@@ -23204,14 +23326,14 @@ const NvTable$1 = /*@__PURE__*/ proxyCustomElement(class NvTable extends H {
|
|
|
23204
23326
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
23205
23327
|
? []
|
|
23206
23328
|
: this.table.data;
|
|
23207
|
-
return (h$1(Host$1, { key: '
|
|
23329
|
+
return (h$1(Host$1, { key: 'b2962fba4d5a12aa660d0c0f69298c93947ef592' }, h$1("div", { key: 'f60e5c09d57c0ccf5cb9996ca85fcc8792270b85', class: "hidden" }, h$1("slot", { key: '9c4aefff542478535b3f342b1c75f68d717c3bf8' })), h$1("slot", { key: 'bfd0f5406187bcad69d9ed41e2f294314a3572f1', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (h$1("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (h$1("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (h$1("thead", { class: "table-header" }, h$1("tr", null, headerGroups &&
|
|
23208
23330
|
headerGroups.map(col => {
|
|
23209
23331
|
return (h$1("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
|
|
23210
23332
|
})))), h$1("tbody", { class: "table-body" }, !rows || rows.length === 0 ? (h$1("tr", null, h$1("td", { colSpan: headerGroups.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => (h$1("tr", { key: JSON.stringify(row) }, headerGroups.map(col => {
|
|
23211
23333
|
var _a;
|
|
23212
23334
|
return (h$1("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
|
|
23213
23335
|
((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
|
|
23214
|
-
})))))))), h$1("slot", { key: '
|
|
23336
|
+
})))))))), h$1("slot", { key: 'e0039c9af9506bc8f2ded8cc81bbd2667ee1f2c1', name: "after" })));
|
|
23215
23337
|
}
|
|
23216
23338
|
get el() { return this; }
|
|
23217
23339
|
static get watchers() { return {
|
|
@@ -23354,8 +23476,8 @@ const NvToggle$1 = /*@__PURE__*/ proxyCustomElement(class NvToggle extends H {
|
|
|
23354
23476
|
/****************************************************************************/
|
|
23355
23477
|
//#region RENDER
|
|
23356
23478
|
render() {
|
|
23357
|
-
return (h$1(Host$1, { key: '
|
|
23358
|
-
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '
|
|
23479
|
+
return (h$1(Host$1, { key: 'e80390a43bab3d55373f6b05db1516210f90c3b5', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h$1("div", { key: '66156f05cc18bb63a8625cdff72d9c177e4cf86b', class: "input-container" }, h$1("input", { key: 'db0c2c078c23431605befb8dd972a29bfdefb16f', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), h$1("div", { key: '576df464b48fa11bf8a46bede5f1d822db569636', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h$1("label", { key: 'f529b009876a5de5061747f78372a66ccfdcac61', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h$1("slot", { key: '3ace029242d920b783fe0038f8721b416f54633f', name: "label" }, this.label))), (this.description ||
|
|
23480
|
+
this.el.querySelector('[slot="description"]')) && (h$1("div", { key: '2eeb41266ee52ef40c1600750084fda0fac8dc6f', class: "description" }, h$1("slot", { key: '605541594fcc7f3192766a5395c5a81f42de7728', name: "description" }, this.description))))));
|
|
23359
23481
|
}
|
|
23360
23482
|
static get formAssociated() { return true; }
|
|
23361
23483
|
get el() { return this; }
|
|
@@ -23443,14 +23565,14 @@ const NvAlert = E({
|
|
|
23443
23565
|
onHiddenChangedComplete: 'hiddenChangedComplete',
|
|
23444
23566
|
onCloseClicked: 'closeClicked'
|
|
23445
23567
|
},
|
|
23446
|
-
defineCustomElement: defineCustomElement$
|
|
23568
|
+
defineCustomElement: defineCustomElement$Q
|
|
23447
23569
|
});
|
|
23448
23570
|
const NvAvatar = E({
|
|
23449
23571
|
tagName: 'nv-avatar',
|
|
23450
23572
|
elementClass: NvAvatar$2,
|
|
23451
23573
|
react: React,
|
|
23452
23574
|
events: {},
|
|
23453
|
-
defineCustomElement: defineCustomElement$
|
|
23575
|
+
defineCustomElement: defineCustomElement$P
|
|
23454
23576
|
});
|
|
23455
23577
|
const NvBadge = E({
|
|
23456
23578
|
tagName: 'nv-badge',
|
|
@@ -23461,13 +23583,6 @@ const NvBadge = E({
|
|
|
23461
23583
|
onHiddenChanged: 'hiddenChanged',
|
|
23462
23584
|
onHiddenChangedComplete: 'hiddenChangedComplete'
|
|
23463
23585
|
},
|
|
23464
|
-
defineCustomElement: defineCustomElement$O
|
|
23465
|
-
});
|
|
23466
|
-
const NvBase = E({
|
|
23467
|
-
tagName: 'nv-base',
|
|
23468
|
-
elementClass: NvBase$1,
|
|
23469
|
-
react: React,
|
|
23470
|
-
events: {},
|
|
23471
23586
|
defineCustomElement: defineCustomElement$N
|
|
23472
23587
|
});
|
|
23473
23588
|
const NvBreadcrumb = E({
|
|
@@ -23807,151 +23922,147 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
|
23807
23922
|
case 'nv-alert':
|
|
23808
23923
|
return Promise.resolve().then(function () { return require(
|
|
23809
23924
|
/* webpackMode: "lazy" */
|
|
23810
|
-
'./nv-alert.entry-
|
|
23925
|
+
'./nv-alert.entry-BXY4KXbF.js'); }).then(processMod, consoleError);
|
|
23811
23926
|
case 'nv-avatar':
|
|
23812
23927
|
return Promise.resolve().then(function () { return require(
|
|
23813
23928
|
/* webpackMode: "lazy" */
|
|
23814
|
-
'./nv-avatar.entry-
|
|
23815
|
-
case 'nv-base':
|
|
23816
|
-
return Promise.resolve().then(function () { return require(
|
|
23817
|
-
/* webpackMode: "lazy" */
|
|
23818
|
-
'./nv-base.entry-DdLnS1hF.js'); }).then(processMod, consoleError);
|
|
23929
|
+
'./nv-avatar.entry-BnPSKkJJ.js'); }).then(processMod, consoleError);
|
|
23819
23930
|
case 'nv-breadcrumb':
|
|
23820
23931
|
return Promise.resolve().then(function () { return require(
|
|
23821
23932
|
/* webpackMode: "lazy" */
|
|
23822
|
-
'./nv-breadcrumb.entry-
|
|
23933
|
+
'./nv-breadcrumb.entry-D5vGHLOG.js'); }).then(processMod, consoleError);
|
|
23823
23934
|
case 'nv-breadcrumbs':
|
|
23824
23935
|
return Promise.resolve().then(function () { return require(
|
|
23825
23936
|
/* webpackMode: "lazy" */
|
|
23826
|
-
'./nv-breadcrumbs.entry-
|
|
23937
|
+
'./nv-breadcrumbs.entry-CsaqAsnb.js'); }).then(processMod, consoleError);
|
|
23827
23938
|
case 'nv-col':
|
|
23828
23939
|
return Promise.resolve().then(function () { return require(
|
|
23829
23940
|
/* webpackMode: "lazy" */
|
|
23830
|
-
'./nv-col.entry-
|
|
23941
|
+
'./nv-col.entry-Cng8NaTW.js'); }).then(processMod, consoleError);
|
|
23831
23942
|
case 'nv-datagrid':
|
|
23832
23943
|
return Promise.resolve().then(function () { return require(
|
|
23833
23944
|
/* webpackMode: "lazy" */
|
|
23834
|
-
'./nv-datagrid.entry-
|
|
23945
|
+
'./nv-datagrid.entry-BbAOzpiO.js'); }).then(processMod, consoleError);
|
|
23835
23946
|
case 'nv-datagridcolumn':
|
|
23836
23947
|
return Promise.resolve().then(function () { return require(
|
|
23837
23948
|
/* webpackMode: "lazy" */
|
|
23838
|
-
'./nv-datagridcolumn.entry-
|
|
23949
|
+
'./nv-datagridcolumn.entry-CRogHbVM.js'); }).then(processMod, consoleError);
|
|
23839
23950
|
case 'nv-dialog':
|
|
23840
23951
|
return Promise.resolve().then(function () { return require(
|
|
23841
23952
|
/* webpackMode: "lazy" */
|
|
23842
|
-
'./nv-dialog.entry-
|
|
23953
|
+
'./nv-dialog.entry-BSIZGYGF.js'); }).then(processMod, consoleError);
|
|
23843
23954
|
case 'nv-fielddate':
|
|
23844
23955
|
return Promise.resolve().then(function () { return require(
|
|
23845
23956
|
/* webpackMode: "lazy" */
|
|
23846
|
-
'./nv-fielddate.entry
|
|
23957
|
+
'./nv-fielddate.entry-qAvLX_Ru.js'); }).then(processMod, consoleError);
|
|
23847
23958
|
case 'nv-fielddaterange':
|
|
23848
23959
|
return Promise.resolve().then(function () { return require(
|
|
23849
23960
|
/* webpackMode: "lazy" */
|
|
23850
|
-
'./nv-fielddaterange.entry-
|
|
23961
|
+
'./nv-fielddaterange.entry-DVB8Rwxk.js'); }).then(processMod, consoleError);
|
|
23851
23962
|
case 'nv-fielddropdown':
|
|
23852
23963
|
return Promise.resolve().then(function () { return require(
|
|
23853
23964
|
/* webpackMode: "lazy" */
|
|
23854
|
-
'./nv-fielddropdown.entry-
|
|
23965
|
+
'./nv-fielddropdown.entry-DKXmoXeW.js'); }).then(processMod, consoleError);
|
|
23855
23966
|
case 'nv-fieldmultiselect':
|
|
23856
23967
|
return Promise.resolve().then(function () { return require(
|
|
23857
23968
|
/* webpackMode: "lazy" */
|
|
23858
|
-
'./nv-fieldmultiselect.entry-
|
|
23969
|
+
'./nv-fieldmultiselect.entry-DrTbd3Dj.js'); }).then(processMod, consoleError);
|
|
23859
23970
|
case 'nv-fieldnumber':
|
|
23860
23971
|
return Promise.resolve().then(function () { return require(
|
|
23861
23972
|
/* webpackMode: "lazy" */
|
|
23862
|
-
'./nv-fieldnumber.entry-
|
|
23973
|
+
'./nv-fieldnumber.entry-DegbEHRL.js'); }).then(processMod, consoleError);
|
|
23863
23974
|
case 'nv-fieldpassword':
|
|
23864
23975
|
return Promise.resolve().then(function () { return require(
|
|
23865
23976
|
/* webpackMode: "lazy" */
|
|
23866
|
-
'./nv-fieldpassword.entry-
|
|
23977
|
+
'./nv-fieldpassword.entry-gqjlEl7a.js'); }).then(processMod, consoleError);
|
|
23867
23978
|
case 'nv-fieldradio':
|
|
23868
23979
|
return Promise.resolve().then(function () { return require(
|
|
23869
23980
|
/* webpackMode: "lazy" */
|
|
23870
|
-
'./nv-fieldradio.entry-
|
|
23981
|
+
'./nv-fieldradio.entry-CVEY4v6F.js'); }).then(processMod, consoleError);
|
|
23871
23982
|
case 'nv-fieldselect':
|
|
23872
23983
|
return Promise.resolve().then(function () { return require(
|
|
23873
23984
|
/* webpackMode: "lazy" */
|
|
23874
|
-
'./nv-fieldselect.entry-
|
|
23985
|
+
'./nv-fieldselect.entry-BrCUuRWa.js'); }).then(processMod, consoleError);
|
|
23875
23986
|
case 'nv-fieldtext':
|
|
23876
23987
|
return Promise.resolve().then(function () { return require(
|
|
23877
23988
|
/* webpackMode: "lazy" */
|
|
23878
|
-
'./nv-fieldtext.entry-
|
|
23989
|
+
'./nv-fieldtext.entry-q9NnqL5c.js'); }).then(processMod, consoleError);
|
|
23879
23990
|
case 'nv-fieldtextarea':
|
|
23880
23991
|
return Promise.resolve().then(function () { return require(
|
|
23881
23992
|
/* webpackMode: "lazy" */
|
|
23882
|
-
'./nv-fieldtextarea.entry-
|
|
23993
|
+
'./nv-fieldtextarea.entry-B4qiLmX1.js'); }).then(processMod, consoleError);
|
|
23883
23994
|
case 'nv-fieldtime':
|
|
23884
23995
|
return Promise.resolve().then(function () { return require(
|
|
23885
23996
|
/* webpackMode: "lazy" */
|
|
23886
|
-
'./nv-fieldtime.entry-
|
|
23997
|
+
'./nv-fieldtime.entry-Bp2IWjhN.js'); }).then(processMod, consoleError);
|
|
23887
23998
|
case 'nv-row':
|
|
23888
23999
|
return Promise.resolve().then(function () { return require(
|
|
23889
24000
|
/* webpackMode: "lazy" */
|
|
23890
|
-
'./nv-row.entry-
|
|
24001
|
+
'./nv-row.entry-Cs2GDrcu.js'); }).then(processMod, consoleError);
|
|
23891
24002
|
case 'nv-stack':
|
|
23892
24003
|
return Promise.resolve().then(function () { return require(
|
|
23893
24004
|
/* webpackMode: "lazy" */
|
|
23894
|
-
'./nv-stack.entry-
|
|
24005
|
+
'./nv-stack.entry-Ci7pxGSo.js'); }).then(processMod, consoleError);
|
|
23895
24006
|
case 'nv-table':
|
|
23896
24007
|
return Promise.resolve().then(function () { return require(
|
|
23897
24008
|
/* webpackMode: "lazy" */
|
|
23898
|
-
'./nv-table.entry-
|
|
24009
|
+
'./nv-table.entry-N4MV8Y6E.js'); }).then(processMod, consoleError);
|
|
23899
24010
|
case 'nv-tablecolumn':
|
|
23900
24011
|
return Promise.resolve().then(function () { return require(
|
|
23901
24012
|
/* webpackMode: "lazy" */
|
|
23902
|
-
'./nv-tablecolumn.entry-
|
|
24013
|
+
'./nv-tablecolumn.entry-CTz4jsZl.js'); }).then(processMod, consoleError);
|
|
23903
24014
|
case 'nv-toggle':
|
|
23904
24015
|
return Promise.resolve().then(function () { return require(
|
|
23905
24016
|
/* webpackMode: "lazy" */
|
|
23906
|
-
'./nv-toggle.entry-
|
|
24017
|
+
'./nv-toggle.entry-m10-ncYR.js'); }).then(processMod, consoleError);
|
|
23907
24018
|
case 'nv-badge_2':
|
|
23908
24019
|
return Promise.resolve().then(function () { return require(
|
|
23909
24020
|
/* webpackMode: "lazy" */
|
|
23910
|
-
'./nv-badge_2.entry-
|
|
24021
|
+
'./nv-badge_2.entry-BsI3B8Rr.js'); }).then(processMod, consoleError);
|
|
23911
24022
|
case 'nv-dialogfooter_2':
|
|
23912
24023
|
return Promise.resolve().then(function () { return require(
|
|
23913
24024
|
/* webpackMode: "lazy" */
|
|
23914
|
-
'./nv-dialogfooter_2.entry-
|
|
24025
|
+
'./nv-dialogfooter_2.entry-Q4_li_QU.js'); }).then(processMod, consoleError);
|
|
23915
24026
|
case 'nv-fielddropdownitem':
|
|
23916
24027
|
return Promise.resolve().then(function () { return require(
|
|
23917
24028
|
/* webpackMode: "lazy" */
|
|
23918
|
-
'./nv-fielddropdownitem.entry-
|
|
24029
|
+
'./nv-fielddropdownitem.entry-BVLVXi0e.js'); }).then(processMod, consoleError);
|
|
23919
24030
|
case 'nv-menu':
|
|
23920
24031
|
return Promise.resolve().then(function () { return require(
|
|
23921
24032
|
/* webpackMode: "lazy" */
|
|
23922
|
-
'./nv-menu.entry-
|
|
24033
|
+
'./nv-menu.entry-BiWiIZAm.js'); }).then(processMod, consoleError);
|
|
23923
24034
|
case 'nv-menuitem':
|
|
23924
24035
|
return Promise.resolve().then(function () { return require(
|
|
23925
24036
|
/* webpackMode: "lazy" */
|
|
23926
|
-
'./nv-menuitem.entry-
|
|
24037
|
+
'./nv-menuitem.entry-CFkXoZ_r.js'); }).then(processMod, consoleError);
|
|
23927
24038
|
case 'nv-tooltip':
|
|
23928
24039
|
return Promise.resolve().then(function () { return require(
|
|
23929
24040
|
/* webpackMode: "lazy" */
|
|
23930
|
-
'./nv-tooltip.entry-
|
|
24041
|
+
'./nv-tooltip.entry-B6aRDto3.js'); }).then(processMod, consoleError);
|
|
23931
24042
|
case 'nv-calendar':
|
|
23932
24043
|
return Promise.resolve().then(function () { return require(
|
|
23933
24044
|
/* webpackMode: "lazy" */
|
|
23934
|
-
'./nv-calendar.entry-
|
|
24045
|
+
'./nv-calendar.entry-CGKv_-gO.js'); }).then(processMod, consoleError);
|
|
23935
24046
|
case 'nv-fieldcheckbox':
|
|
23936
24047
|
return Promise.resolve().then(function () { return require(
|
|
23937
24048
|
/* webpackMode: "lazy" */
|
|
23938
|
-
'./nv-fieldcheckbox.entry-
|
|
24049
|
+
'./nv-fieldcheckbox.entry-DmgzfmRd.js'); }).then(processMod, consoleError);
|
|
23939
24050
|
case 'nv-button':
|
|
23940
24051
|
return Promise.resolve().then(function () { return require(
|
|
23941
24052
|
/* webpackMode: "lazy" */
|
|
23942
|
-
'./nv-button.entry-
|
|
24053
|
+
'./nv-button.entry-DzZfGZGy.js'); }).then(processMod, consoleError);
|
|
23943
24054
|
case 'nv-popover':
|
|
23944
24055
|
return Promise.resolve().then(function () { return require(
|
|
23945
24056
|
/* webpackMode: "lazy" */
|
|
23946
|
-
'./nv-popover.entry-
|
|
24057
|
+
'./nv-popover.entry-KT1iQUJk.js'); }).then(processMod, consoleError);
|
|
23947
24058
|
case 'nv-iconbutton_2':
|
|
23948
24059
|
return Promise.resolve().then(function () { return require(
|
|
23949
24060
|
/* webpackMode: "lazy" */
|
|
23950
|
-
'./nv-iconbutton_2.entry-
|
|
24061
|
+
'./nv-iconbutton_2.entry-BRPAGl2S.js'); }).then(processMod, consoleError);
|
|
23951
24062
|
case 'nv-icon':
|
|
23952
24063
|
return Promise.resolve().then(function () { return require(
|
|
23953
24064
|
/* webpackMode: "lazy" */
|
|
23954
|
-
'./nv-icon.entry-
|
|
24065
|
+
'./nv-icon.entry-B1ax9cJS.js'); }).then(processMod, consoleError);
|
|
23955
24066
|
}
|
|
23956
24067
|
}
|
|
23957
24068
|
return import(
|
|
@@ -26329,7 +26440,7 @@ const globalScripts = () => {};
|
|
|
26329
26440
|
const defineCustomElements = async (win, options) => {
|
|
26330
26441
|
if (typeof window === 'undefined') return undefined;
|
|
26331
26442
|
await globalScripts();
|
|
26332
|
-
return bootstrapLazy(JSON.parse("[[\"nv-fieldmultiselect\",[[68,\"nv-fieldmultiselect\",{\"inputId\":[513,\"input-id\"],\"name\":[513],\"label\":[513],\"description\":[513],\"placeholder\":[513],\"maxHeight\":[513,\"max-height\"],\"badgeLabel\":[513,\"badge-label\"],\"emptyResult\":[513,\"empty-result\"],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"readonly\":[516],\"disabled\":[516],\"autocomplete\":[513],\"filterable\":[516],\"value\":[1537],\"open\":[1540],\"options\":[513],\"debounceDelay\":[514,\"debounce-delay\"],\"autofocus\":[516],\"parsedOptions\":[32],\"selectedValues\":[32],\"sortedOptions\":[32],\"filterText\":[32],\"modeState\":[32],\"isHandlingEscape\":[32],\"getFilterText\":[64],\"resetFilter\":[64],\"getSelectedValues\":[64]},[[0,\"openChanged\",\"handleOpenChanged\"],[0,\"itemChecked\",\"handleItemChecked\"],[0,\"slotchange\",\"handleSlotChange\"],[0,\"keydown\",\"handleKeyDown\"]],{\"options\":[\"handleOptionsChange\"],\"value\":[\"watchValueHandler\"]}]]],[\"nv-fielddate\",[[4,\"nv-fielddate\",{\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[513],\"placeholder\":[513],\"name\":[513],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"success\":[516],\"autofocus\":[516],\"value\":[513],\"firstDayOfWeek\":[514,\"first-day-of-week\"],\"numberOfCalendars\":[514,\"number-of-calendars\"],\"min\":[513],\"max\":[513],\"locale\":[513],\"dateFormat\":[513,\"date-format\"],\"shortcutsPlacement\":[513,\"shortcuts-placement\"],\"showActions\":[516,\"show-actions\"],\"shortcuts\":[513],\"showWeekNumbers\":[516,\"show-week-numbers\"],\"disabledDates\":[513,\"disabled-dates\"],\"singleValue\":[32],\"open\":[32]},[[0,\"singleDateChange\",\"handleSingleDateChange\"],[0,\"closePopover\",\"handleClosePopover\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"handleValueChange\"]}]]],[\"nv-fielddaterange\",[[4,\"nv-fielddaterange\",{\"startInputId\":[513,\"start-input-id\"],\"endInputId\":[513,\"end-input-id\"],\"label\":[513],\"description\":[513],\"startPlaceholder\":[513,\"start-placeholder\"],\"endPlaceholder\":[513,\"end-placeholder\"],\"startName\":[513,\"start-name\"],\"endName\":[513,\"end-name\"],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"success\":[516],\"shouldAutoFocus\":[516,\"should-auto-focus\"],\"value\":[513],\"firstDayOfWeek\":[514,\"first-day-of-week\"],\"numberOfCalendars\":[514,\"number-of-calendars\"],\"min\":[513],\"max\":[513],\"locale\":[513],\"dateFormat\":[513,\"date-format\"],\"shortcutsPlacement\":[513,\"shortcuts-placement\"],\"showActions\":[516,\"show-actions\"],\"shortcuts\":[513],\"showWeekNumbers\":[516,\"show-week-numbers\"],\"disabledDates\":[513,\"disabled-dates\"],\"startValue\":[32],\"endValue\":[32],\"open\":[32]},[[0,\"rangeDateChange\",\"handleRangeDateChange\"],[0,\"closePopover\",\"handleClosePopover\"],[0,\"applyDateRange\",\"handleApplyDateRange\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"handleValueChange\"]}]]],[\"nv-dialog\",[[4,\"nv-dialog\",{\"triggerElement\":[1040],\"headerElement\":[1040],\"footerElement\":[1040],\"open\":[1540],\"undismissable\":[516],\"clickOutside\":[516,\"click-outside\"],\"controlled\":[516],\"full\":[516],\"show\":[64],\"close\":[64]},[[4,\"keydown\",\"handleKeyDown\"],[4,\"click\",\"handleDocumentClick\"],[5,\"touchstart\",\"handleDocumentTouch\"]],{\"open\":[\"handleDialogOpenChange\"]}]]],[\"nv-fielddropdown\",[[68,\"nv-fielddropdown\",{\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[513],\"placeholder\":[513],\"name\":[513],\"open\":[1540],\"autocomplete\":[513],\"value\":[1537],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"readonly\":[516],\"disabled\":[516],\"emptyResult\":[513,\"empty-result\"],\"filterable\":[516],\"options\":[513],\"autofocus\":[516],\"filterText\":[32],\"selectedValues\":[32],\"parsedOptions\":[32],\"getFilterText\":[64]},[[0,\"dropdownItemSelected\",\"handleDropdownItemSelected\"],[0,\"openChanged\",\"handleOpenChanged\"],[2,\"blur\",\"handleBlur\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"watchValueHandler\"],\"options\":[\"handleOptionsChange\"]}]]],[\"nv-fieldtime\",[[68,\"nv-fieldtime\",{\"value\":[1537],\"label\":[513],\"inputId\":[513,\"input-id\"],\"readonly\":[516],\"disabled\":[516],\"required\":[516],\"name\":[513],\"success\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"format\":[513],\"description\":[513],\"open\":[1540],\"step\":[514],\"max\":[513],\"min\":[513],\"autofocus\":[516],\"hours\":[32],\"minutes\":[32],\"seconds\":[32]},[[0,\"openChanged\",\"handleOpenChanged\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"handleValueChange\"]}]]],[\"nv-fieldnumber\",[[68,\"nv-fieldnumber\",{\"message\":[513],\"validation\":[513],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"max\":[514],\"min\":[514],\"step\":[514],\"value\":[1538],\"autofocus\":[516]},null,{\"value\":[\"watchValueHandler\"]}]]],[\"nv-fieldpassword\",[[68,\"nv-fieldpassword\",{\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"success\":[516],\"maxlength\":[514],\"minlength\":[514],\"pattern\":[513],\"mode\":[513],\"autocomplete\":[513],\"hidePasswordIcon\":[516,\"hide-password-icon\"],\"showPassword\":[516,\"show-password\"],\"autofocus\":[516],\"showPasswordState\":[32]},null,{\"showPassword\":[\"handleShowPasswordChange\"]}]]],[\"nv-fieldselect\",[[68,\"nv-fieldselect\",{\"message\":[513],\"validation\":[513],\"options\":[513],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"name\":[513],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"multiple\":[516],\"value\":[1537],\"displayValue\":[516,\"display-value\"],\"autofocus\":[516],\"computedDisplayValue\":[32],\"internalReadonly\":[32],\"parsedOptions\":[32]},null,{\"value\":[\"updateDisplayValueWatcher\"],\"displayValue\":[\"handleDisplayValueChange\"],\"readonly\":[\"handleReadonlyChange\"],\"options\":[\"handleOptionsChange\"]}]]],[\"nv-breadcrumb\",[[4,\"nv-breadcrumb\",{\"type\":[513],\"tooltip\":[513],\"current\":[516]}]]],[\"nv-alert\",[[4,\"nv-alert\",{\"color\":[513],\"feedback\":[1537],\"message\":[513],\"heading\":[513],\"icon\":[513],\"dismissible\":[516],\"preventAutoClose\":[516,\"prevent-auto-close\"],\"hidden\":[1540],\"hasNoAnimations\":[516,\"has-no-animations\"]},null,{\"hidden\":[\"handleHiddenChange\"]}]]],[\"nv-avatar\",[[4,\"nv-avatar\",{\"xsmall\":[516],\"small\":[516],\"medium\":[516],\"large\":[516],\"xlarge\":[516],\"text\":[513],\"url\":[513],\"alt\":[513],\"src\":[1537],\"initials\":[1537],\"size\":[1537],\"color\":[513]}]]],[\"nv-fieldtext\",[[68,\"nv-fieldtext\",{\"message\":[513],\"validation\":[513],\"textInputType\":[513,\"text-input-type\"],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"type\":[1537],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"maxlength\":[514],\"minlength\":[514],\"pattern\":[513],\"autocomplete\":[513],\"multiple\":[516],\"autofocus\":[516]}]]],[\"nv-base\",[[4,\"nv-base\"]]],[\"nv-breadcrumbs\",[[4,\"nv-breadcrumbs\"]]],[\"nv-col\",[[4,\"nv-col\",{\"size\":[514]}]]],[\"nv-datagrid\",[[4,\"nv-datagrid\",{\"data\":[16],\"columns\":[16],\"dataJson\":[513,\"data-json\"],\"columnsJson\":[513,\"columns-json\"],\"fallbackValue\":[513,\"fallback-value\"],\"noDataMessage\":[513,\"no-data-message\"],\"noColumnsNoDataMessage\":[513,\"no-columns-no-data-message\"],\"enableGlobalFilter\":[516,\"enable-global-filter\"],\"autoGenerateColumns\":[516,\"auto-generate-columns\"],\"table\":[32],\"parsedColumns\":[32],\"parsedData\":[32],\"globalFilter\":[32],\"columnData\":[32]},null,{\"columns\":[\"parseColumns\"],\"columnsJson\":[\"parseJsonColumns\"],\"data\":[\"parseData\"],\"dataJson\":[\"parseJsonData\"],\"parsedColumns\":[\"handleParsedChange\"],\"parsedData\":[\"handleParsedChange\"],\"globalFilter\":[\"handleGlobalFilter\"]}]]],[\"nv-datagridcolumn\",[[4,\"nv-datagridcolumn\",{\"header\":[513],\"accessor\":[513],\"repeatTemplate\":[516,\"repeat-template\"]}]]],[\"nv-fieldradio\",[[68,\"nv-fieldradio\",{\"message\":[513],\"labelBefore\":[516,\"label-before\"],\"inputId\":[513,\"input-id\"],\"name\":[513],\"value\":[513],\"label\":[513],\"labelPlacement\":[1537,\"label-placement\"],\"description\":[1537],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"checked\":[1540],\"disabled\":[516],\"autofocus\":[516]},[[0,\"change\",\"handleChange\"]],{\"checked\":[\"handleCheckedChange\"]}]]],[\"nv-fieldtextarea\",[[68,\"nv-fieldtextarea\",{\"message\":[513],\"validation\":[513],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"maxlength\":[514],\"minlength\":[514],\"rows\":[514],\"resize\":[513],\"autosize\":[516],\"autofocus\":[516]},null,{\"rows\":[\"rowsChanged\"],\"autosize\":[\"autosizeChanged\"],\"value\":[\"handleValueChange\"]}]]],[\"nv-row\",[[4,\"nv-row\"]]],[\"nv-stack\",[[4,\"nv-stack\",{\"gutter\":[514],\"fill\":[516],\"flex\":[516],\"full\":[516],\"vertical\":[516]}]]],[\"nv-table\",[[4,\"nv-table\",{\"data\":[16],\"columnsConfig\":[16],\"dataJson\":[513,\"data-json\"],\"columnsConfigJson\":[513,\"columns-config-json\"],\"fallbackValue\":[513,\"fallback-value\"],\"noDataMessage\":[513,\"no-data-message\"],\"noColumnsNoDataMessage\":[513,\"no-columns-no-data-message\"],\"parsedColumns\":[32],\"parsedData\":[32],\"table\":[32]},null,{\"columnsConfig\":[\"parseColumns\"],\"columnsConfigJson\":[\"parseJsonColumns\"],\"data\":[\"parseData\"],\"dataJson\":[\"parseJsonData\"],\"parsedColumns\":[\"handleParsedChange\"],\"parsedData\":[\"handleParsedChange\"]}]]],[\"nv-tablecolumn\",[[0,\"nv-tablecolumn\",{\"name\":[513],\"header\":[513]}]]],[\"nv-toggle\",[[68,\"nv-toggle\",{\"inputId\":[513,\"input-id\"],\"name\":[513],\"value\":[513],\"label\":[513],\"labelPlacement\":[513,\"label-placement\"],\"hideLabel\":[516,\"hide-label\"],\"description\":[513],\"checked\":[1540],\"disabled\":[516],\"readonly\":[516]},[[0,\"change\",\"handleChange\"]],{\"checked\":[\"onCheckedChanged\"]}]]],[\"nv-icon\",[[0,\"nv-icon\",{\"xsmall\":[516],\"small\":[516],\"medium\":[516],\"large\":[516],\"xlarge\":[516],\"color\":[513],\"name\":[513],\"size\":[1537]}]]],[\"nv-menu\",[[4,\"nv-menu\",{\"open\":[1540],\"nested\":[516],\"disableCloseOnSelect\":[516,\"disable-close-on-select\"],\"placement\":[513],\"items\":[513],\"parsedItems\":[32],\"show\":[64],\"close\":[64]},[[0,\"menuitemSelected\",\"handleMenuItemSelect\"],[0,\"keydown\",\"handleKeydown\"],[0,\"openChanged\",\"handleOpenChanged\"]],{\"items\":[\"handleItemsChange\"]}]]],[\"nv-fielddropdownitem\",[[4,\"nv-fielddropdownitem\",{\"disabled\":[516],\"selected\":[516],\"value\":[1537],\"label\":[513]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"nv-menuitem\",[[4,\"nv-menuitem\",{\"label\":[513],\"icon\":[513],\"disabled\":[516],\"shortcut\":[513],\"hasSubmenu\":[516,\"has-submenu\"],\"name\":[513]},[[2,\"click\",\"handleClick\"],[0,\"keydown\",\"handleKeyDown\"]]]]],[\"nv-tooltip\",[[4,\"nv-tooltip\",{\"triggerElement\":[1040],\"message\":[513],\"placement\":[513],\"enterDelay\":[514,\"enter-delay\"]}]]],[\"nv-iconbutton_2\",[[68,\"nv-iconbutton\",{\"size\":[513],\"emphasis\":[513],\"loading\":[1540],\"disabled\":[1540],\"active\":[516],\"name\":[513],\"type\":[513],\"shape\":[513]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"touchstart\",\"handleTouchStart\"]],{\"loading\":[\"handleLoadingChange\"],\"disabled\":[\"handleDisabledChange\"]}],[0,\"nv-loader\",{\"size\":[513],\"color\":[513]}]]],[\"nv-button\",[[68,\"nv-button\",{\"size\":[513],\"emphasis\":[513],\"active\":[516],\"danger\":[516],\"loading\":[1540],\"disabled\":[1540],\"fluid\":[516],\"type\":[513],\"form\":[513]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"touchstart\",\"handleTouchStart\"]],{\"loading\":[\"handleLoadingChange\"],\"disabled\":[\"handleDisabledChange\"]}]]],[\"nv-calendar\",[[4,\"nv-calendar\",{\"firstDayOfWeek\":[514,\"first-day-of-week\"],\"numberOfCalendars\":[1538,\"number-of-calendars\"],\"singleValue\":[1537,\"single-value\"],\"rangeValue\":[1537,\"range-value\"],\"min\":[513],\"max\":[513],\"disabledDates\":[513,\"disabled-dates\"],\"locale\":[513],\"dateFormat\":[513,\"date-format\"],\"shortcutsPlacement\":[513,\"shortcuts-placement\"],\"selectionType\":[513,\"selection-type\"],\"showActions\":[516,\"show-actions\"],\"shortcuts\":[513],\"showWeekNumbers\":[516,\"show-week-numbers\"],\"currentDate\":[32],\"selectedDate\":[32],\"startDate\":[32],\"endDate\":[32],\"months\":[32]},null,{\"numberOfCalendars\":[\"validateNumberOfCalendars\"],\"rangeValue\":[\"onRangeValueChange\"],\"disabledDates\":[\"handleDisabledDatesChange\"],\"singleValue\":[\"onSingleValueChange\"]}]]],[\"nv-dialogfooter_2\",[[68,\"nv-dialogfooter\",{\"disabled\":[516],\"undismissable\":[516],\"leadingIcon\":[513,\"leading-icon\"],\"trailingIcon\":[513,\"trailing-icon\"],\"danger\":[516],\"cancelLabel\":[513,\"cancel-label\"],\"primaryLabel\":[513,\"primary-label\"],\"primaryButtonType\":[513,\"primary-button-type\"],\"form\":[513]}],[4,\"nv-dialogheader\",{\"heading\":[513],\"subheading\":[513]}]]],[\"nv-fieldcheckbox\",[[68,\"nv-fieldcheckbox\",{\"message\":[513],\"validation\":[513],\"labelBefore\":[516,\"label-before\"],\"inputId\":[513,\"input-id\"],\"name\":[513],\"value\":[513],\"label\":[513],\"labelPlacement\":[1537,\"label-placement\"],\"hideLabel\":[516,\"hide-label\"],\"description\":[1537],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"checked\":[1540],\"indeterminate\":[1540],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"autofocus\":[516]},[[0,\"change\",\"handleChange\"]],{\"checked\":[\"onCheckedChanged\"]}]]],[\"nv-badge_2\",[[4,\"nv-badge\",{\"dismissal\":[516],\"icon\":[513],\"iconLocation\":[513,\"icon-location\"],\"color\":[513],\"label\":[513],\"leadIcon\":[1537,\"lead-icon\"],\"dismissible\":[1540],\"hidden\":[1540],\"preventAutoClose\":[516,\"prevent-auto-close\"],\"_isHidden\":[32]},null,{\"dismissal\":[\"handleDismissalChange\"],\"icon\":[\"handleIconChange\"],\"hidden\":[\"handleHiddenChange\"]}],[0,\"nv-fielddropdownitemcheck\",{\"checked\":[1540],\"value\":[513],\"label\":[513],\"description\":[513],\"group\":[513],\"disabled\":[516]}]]],[\"nv-popover\",[[4,\"nv-popover\",{\"triggerElement\":[1040],\"open\":[1540],\"triggerMode\":[513,\"trigger-mode\"],\"placement\":[513],\"groupName\":[513,\"group-name\"],\"offset\":[514],\"hasArrow\":[516,\"has-arrow\"],\"disableFlip\":[516,\"disable-flip\"],\"shiftPadding\":[514,\"shift-padding\"],\"enterDelay\":[514,\"enter-delay\"],\"nested\":[516],\"show\":[64],\"hide\":[64],\"toggle\":[64]},[[4,\"openChanged\",\"handleOpenChanged\"]],{\"open\":[\"handleOpenChange\"]}]]]]"), options);
|
|
26443
|
+
return bootstrapLazy(JSON.parse("[[\"nv-fieldmultiselect\",[[68,\"nv-fieldmultiselect\",{\"inputId\":[513,\"input-id\"],\"name\":[513],\"label\":[513],\"description\":[513],\"placeholder\":[513],\"maxHeight\":[513,\"max-height\"],\"badgeLabel\":[513,\"badge-label\"],\"emptyResult\":[513,\"empty-result\"],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"readonly\":[516],\"disabled\":[516],\"autocomplete\":[513],\"filterable\":[516],\"value\":[1537],\"open\":[1540],\"options\":[1040],\"debounceDelay\":[514,\"debounce-delay\"],\"autofocus\":[516],\"selectedValues\":[32],\"sortedOptions\":[32],\"filterText\":[32],\"isHandlingEscape\":[32],\"getFilterText\":[64],\"resetFilter\":[64],\"getSelectedValues\":[64]},[[0,\"openChanged\",\"handleOpenChanged\"],[0,\"itemChecked\",\"handleItemChecked\"],[0,\"slotchange\",\"handleSlotChange\"],[0,\"keydown\",\"handleKeyDown\"]],{\"options\":[\"handleOptionsChange\"],\"value\":[\"watchValueHandler\"]}]]],[\"nv-fielddate\",[[4,\"nv-fielddate\",{\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[513],\"placeholder\":[513],\"name\":[513],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"success\":[516],\"autofocus\":[516],\"value\":[513],\"firstDayOfWeek\":[514,\"first-day-of-week\"],\"numberOfCalendars\":[514,\"number-of-calendars\"],\"min\":[513],\"max\":[513],\"locale\":[513],\"dateFormat\":[513,\"date-format\"],\"shortcutsPlacement\":[513,\"shortcuts-placement\"],\"showActions\":[516,\"show-actions\"],\"shortcuts\":[513],\"showWeekNumbers\":[516,\"show-week-numbers\"],\"disabledDates\":[513,\"disabled-dates\"],\"singleValue\":[32],\"open\":[32]},[[0,\"singleDateChange\",\"handleSingleDateChange\"],[0,\"closePopover\",\"handleClosePopover\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"handleValueChange\"]}]]],[\"nv-fielddaterange\",[[4,\"nv-fielddaterange\",{\"startInputId\":[513,\"start-input-id\"],\"endInputId\":[513,\"end-input-id\"],\"label\":[513],\"description\":[513],\"startPlaceholder\":[513,\"start-placeholder\"],\"endPlaceholder\":[513,\"end-placeholder\"],\"startName\":[513,\"start-name\"],\"endName\":[513,\"end-name\"],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"success\":[516],\"shouldAutoFocus\":[516,\"should-auto-focus\"],\"value\":[513],\"firstDayOfWeek\":[514,\"first-day-of-week\"],\"numberOfCalendars\":[514,\"number-of-calendars\"],\"min\":[513],\"max\":[513],\"locale\":[513],\"dateFormat\":[513,\"date-format\"],\"shortcutsPlacement\":[513,\"shortcuts-placement\"],\"showActions\":[516,\"show-actions\"],\"shortcuts\":[513],\"showWeekNumbers\":[516,\"show-week-numbers\"],\"disabledDates\":[513,\"disabled-dates\"],\"startValue\":[32],\"endValue\":[32],\"open\":[32]},[[0,\"rangeDateChange\",\"handleRangeDateChange\"],[0,\"closePopover\",\"handleClosePopover\"],[0,\"applyDateRange\",\"handleApplyDateRange\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"handleValueChange\"]}]]],[\"nv-dialog\",[[4,\"nv-dialog\",{\"triggerElement\":[1040],\"headerElement\":[1040],\"footerElement\":[1040],\"open\":[1540],\"undismissable\":[516],\"clickOutside\":[516,\"click-outside\"],\"controlled\":[516],\"full\":[516],\"show\":[64],\"close\":[64]},[[4,\"keydown\",\"handleKeyDown\"],[4,\"click\",\"handleDocumentClick\"],[5,\"touchstart\",\"handleDocumentTouch\"]],{\"open\":[\"handleDialogOpenChange\"]}]]],[\"nv-fielddropdown\",[[68,\"nv-fielddropdown\",{\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[513],\"placeholder\":[513],\"name\":[513],\"open\":[1540],\"autocomplete\":[513],\"value\":[1537],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"readonly\":[516],\"disabled\":[516],\"emptyResult\":[513,\"empty-result\"],\"filterable\":[516],\"options\":[16],\"autofocus\":[516],\"filterText\":[32],\"selectedValues\":[32],\"getFilterText\":[64]},[[0,\"dropdownItemSelected\",\"handleDropdownItemSelected\"],[0,\"openChanged\",\"handleOpenChanged\"],[2,\"blur\",\"handleBlur\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"watchValueHandler\"],\"options\":[\"handleOptionsChange\"]}]]],[\"nv-fieldtime\",[[68,\"nv-fieldtime\",{\"value\":[1537],\"label\":[513],\"inputId\":[513,\"input-id\"],\"readonly\":[516],\"disabled\":[516],\"required\":[516],\"name\":[513],\"success\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"format\":[513],\"description\":[513],\"open\":[1540],\"step\":[514],\"max\":[513],\"min\":[513],\"autofocus\":[516],\"hours\":[32],\"minutes\":[32],\"seconds\":[32]},[[0,\"openChanged\",\"handleOpenChanged\"],[0,\"keydown\",\"handleKeyDown\"]],{\"value\":[\"handleValueChange\"]}]]],[\"nv-fieldnumber\",[[68,\"nv-fieldnumber\",{\"message\":[513],\"validation\":[513],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"max\":[514],\"min\":[514],\"step\":[514],\"value\":[1538],\"autofocus\":[516]},null,{\"value\":[\"watchValueHandler\"]}]]],[\"nv-fieldpassword\",[[68,\"nv-fieldpassword\",{\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"success\":[516],\"maxlength\":[514],\"minlength\":[514],\"pattern\":[513],\"mode\":[513],\"autocomplete\":[513],\"hidePasswordIcon\":[516,\"hide-password-icon\"],\"showPassword\":[516,\"show-password\"],\"autofocus\":[516],\"showPasswordState\":[32]},null,{\"showPassword\":[\"handleShowPasswordChange\"]}]]],[\"nv-fieldselect\",[[68,\"nv-fieldselect\",{\"message\":[513],\"validation\":[513],\"options\":[513],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"name\":[513],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"multiple\":[516],\"value\":[1537],\"displayValue\":[516,\"display-value\"],\"autofocus\":[516],\"computedDisplayValue\":[32],\"internalReadonly\":[32],\"parsedOptions\":[32]},null,{\"value\":[\"updateDisplayValueWatcher\"],\"displayValue\":[\"handleDisplayValueChange\"],\"readonly\":[\"handleReadonlyChange\"],\"options\":[\"handleOptionsChange\"]}]]],[\"nv-breadcrumb\",[[4,\"nv-breadcrumb\",{\"type\":[513],\"tooltip\":[513],\"current\":[516]}]]],[\"nv-alert\",[[4,\"nv-alert\",{\"color\":[513],\"feedback\":[1537],\"message\":[513],\"heading\":[513],\"icon\":[513],\"dismissible\":[516],\"preventAutoClose\":[516,\"prevent-auto-close\"],\"hidden\":[1540],\"hasNoAnimations\":[516,\"has-no-animations\"]},null,{\"hidden\":[\"handleHiddenChange\"]}]]],[\"nv-avatar\",[[4,\"nv-avatar\",{\"xsmall\":[516],\"small\":[516],\"medium\":[516],\"large\":[516],\"xlarge\":[516],\"text\":[513],\"url\":[513],\"alt\":[513],\"src\":[1537],\"initials\":[1537],\"size\":[1537],\"color\":[513]}]]],[\"nv-fieldtext\",[[68,\"nv-fieldtext\",{\"message\":[513],\"validation\":[513],\"textInputType\":[513,\"text-input-type\"],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"type\":[1537],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"maxlength\":[514],\"minlength\":[514],\"pattern\":[513],\"autocomplete\":[513],\"multiple\":[516],\"autofocus\":[516]}]]],[\"nv-breadcrumbs\",[[4,\"nv-breadcrumbs\"]]],[\"nv-col\",[[4,\"nv-col\",{\"size\":[514]}]]],[\"nv-datagrid\",[[4,\"nv-datagrid\",{\"data\":[16],\"columns\":[16],\"dataJson\":[513,\"data-json\"],\"columnsJson\":[513,\"columns-json\"],\"fallbackValue\":[513,\"fallback-value\"],\"noDataMessage\":[513,\"no-data-message\"],\"noColumnsNoDataMessage\":[513,\"no-columns-no-data-message\"],\"enableGlobalFilter\":[516,\"enable-global-filter\"],\"autoGenerateColumns\":[516,\"auto-generate-columns\"],\"enablePagination\":[516,\"enable-pagination\"],\"pageSize\":[514,\"page-size\"],\"pageSizes\":[16],\"table\":[32],\"parsedColumns\":[32],\"parsedData\":[32],\"globalFilterSearchTerm\":[32],\"columnData\":[32],\"paginationState\":[32]},null,{\"columns\":[\"parseColumns\"],\"columnsJson\":[\"parseJsonColumns\"],\"data\":[\"parseData\"],\"dataJson\":[\"parseJsonData\"],\"parsedColumns\":[\"handleParsedChange\"],\"parsedData\":[\"handleParsedChange\"],\"globalFilterSearchTerm\":[\"handleGlobalFilterSearchTerm\"],\"paginationState\":[\"handlePaginationState\"]}]]],[\"nv-datagridcolumn\",[[4,\"nv-datagridcolumn\",{\"header\":[513],\"accessor\":[513],\"repeatTemplate\":[516,\"repeat-template\"]}]]],[\"nv-fieldradio\",[[68,\"nv-fieldradio\",{\"message\":[513],\"labelBefore\":[516,\"label-before\"],\"inputId\":[513,\"input-id\"],\"name\":[513],\"value\":[513],\"label\":[513],\"labelPlacement\":[1537,\"label-placement\"],\"description\":[1537],\"error\":[516],\"errorDescription\":[513,\"error-description\"],\"checked\":[1540],\"disabled\":[516],\"autofocus\":[516]},[[0,\"change\",\"handleChange\"]],{\"checked\":[\"handleCheckedChange\"]}]]],[\"nv-fieldtextarea\",[[68,\"nv-fieldtextarea\",{\"message\":[513],\"validation\":[513],\"inputId\":[513,\"input-id\"],\"label\":[513],\"description\":[1537],\"placeholder\":[513],\"name\":[513],\"value\":[1537],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"success\":[516],\"maxlength\":[514],\"minlength\":[514],\"rows\":[514],\"resize\":[513],\"autosize\":[516],\"autofocus\":[516]},null,{\"rows\":[\"rowsChanged\"],\"autosize\":[\"autosizeChanged\"],\"value\":[\"handleValueChange\"]}]]],[\"nv-row\",[[4,\"nv-row\"]]],[\"nv-stack\",[[4,\"nv-stack\",{\"gutter\":[514],\"fill\":[516],\"flex\":[516],\"full\":[516],\"vertical\":[516]}]]],[\"nv-table\",[[4,\"nv-table\",{\"data\":[16],\"columnsConfig\":[16],\"dataJson\":[513,\"data-json\"],\"columnsConfigJson\":[513,\"columns-config-json\"],\"fallbackValue\":[513,\"fallback-value\"],\"noDataMessage\":[513,\"no-data-message\"],\"noColumnsNoDataMessage\":[513,\"no-columns-no-data-message\"],\"parsedColumns\":[32],\"parsedData\":[32],\"table\":[32]},null,{\"columnsConfig\":[\"parseColumns\"],\"columnsConfigJson\":[\"parseJsonColumns\"],\"data\":[\"parseData\"],\"dataJson\":[\"parseJsonData\"],\"parsedColumns\":[\"handleParsedChange\"],\"parsedData\":[\"handleParsedChange\"]}]]],[\"nv-tablecolumn\",[[0,\"nv-tablecolumn\",{\"name\":[513],\"header\":[513]}]]],[\"nv-toggle\",[[68,\"nv-toggle\",{\"inputId\":[513,\"input-id\"],\"name\":[513],\"value\":[513],\"label\":[513],\"labelPlacement\":[513,\"label-placement\"],\"hideLabel\":[516,\"hide-label\"],\"description\":[513],\"checked\":[1540],\"disabled\":[516],\"readonly\":[516]},[[0,\"change\",\"handleChange\"]],{\"checked\":[\"onCheckedChanged\"]}]]],[\"nv-icon\",[[0,\"nv-icon\",{\"xsmall\":[516],\"small\":[516],\"medium\":[516],\"large\":[516],\"xlarge\":[516],\"color\":[513],\"name\":[513],\"size\":[1537]}]]],[\"nv-menu\",[[4,\"nv-menu\",{\"open\":[1540],\"nested\":[516],\"disableCloseOnSelect\":[516,\"disable-close-on-select\"],\"placement\":[513],\"items\":[16],\"show\":[64],\"close\":[64]},[[0,\"menuitemSelected\",\"handleMenuItemSelect\"],[0,\"keydown\",\"handleKeydown\"],[0,\"openChanged\",\"handleOpenChanged\"]]]]],[\"nv-fielddropdownitem\",[[4,\"nv-fielddropdownitem\",{\"disabled\":[516],\"selected\":[516],\"value\":[1537],\"label\":[513]},[[0,\"keydown\",\"handleKeyDown\"]]]]],[\"nv-menuitem\",[[4,\"nv-menuitem\",{\"label\":[513],\"icon\":[513],\"disabled\":[516],\"shortcut\":[513],\"hasSubmenu\":[516,\"has-submenu\"],\"name\":[513]},[[2,\"click\",\"handleClick\"],[0,\"keydown\",\"handleKeyDown\"]]]]],[\"nv-tooltip\",[[4,\"nv-tooltip\",{\"triggerElement\":[1040],\"message\":[513],\"placement\":[513],\"enterDelay\":[514,\"enter-delay\"]}]]],[\"nv-iconbutton_2\",[[68,\"nv-iconbutton\",{\"size\":[513],\"emphasis\":[513],\"loading\":[1540],\"disabled\":[1540],\"active\":[516],\"name\":[513],\"type\":[513],\"shape\":[513]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"touchstart\",\"handleTouchStart\"]],{\"loading\":[\"handleLoadingChange\"],\"disabled\":[\"handleDisabledChange\"]}],[0,\"nv-loader\",{\"size\":[513],\"color\":[513]}]]],[\"nv-button\",[[68,\"nv-button\",{\"size\":[513],\"emphasis\":[513],\"active\":[516],\"danger\":[516],\"loading\":[1540],\"disabled\":[1540],\"fluid\":[516],\"type\":[513],\"form\":[513]},[[0,\"keydown\",\"handleKeyDown\"],[0,\"touchstart\",\"handleTouchStart\"]],{\"loading\":[\"handleLoadingChange\"],\"disabled\":[\"handleDisabledChange\"]}]]],[\"nv-calendar\",[[4,\"nv-calendar\",{\"firstDayOfWeek\":[514,\"first-day-of-week\"],\"numberOfCalendars\":[1538,\"number-of-calendars\"],\"singleValue\":[1537,\"single-value\"],\"rangeValue\":[1537,\"range-value\"],\"min\":[513],\"max\":[513],\"disabledDates\":[513,\"disabled-dates\"],\"locale\":[513],\"dateFormat\":[513,\"date-format\"],\"shortcutsPlacement\":[513,\"shortcuts-placement\"],\"selectionType\":[513,\"selection-type\"],\"showActions\":[516,\"show-actions\"],\"shortcuts\":[513],\"showWeekNumbers\":[516,\"show-week-numbers\"],\"currentDate\":[32],\"selectedDate\":[32],\"startDate\":[32],\"endDate\":[32],\"months\":[32]},null,{\"numberOfCalendars\":[\"validateNumberOfCalendars\"],\"rangeValue\":[\"onRangeValueChange\"],\"disabledDates\":[\"handleDisabledDatesChange\"],\"singleValue\":[\"onSingleValueChange\"]}]]],[\"nv-dialogfooter_2\",[[68,\"nv-dialogfooter\",{\"disabled\":[516],\"undismissable\":[516],\"leadingIcon\":[513,\"leading-icon\"],\"trailingIcon\":[513,\"trailing-icon\"],\"danger\":[516],\"cancelLabel\":[513,\"cancel-label\"],\"primaryLabel\":[513,\"primary-label\"],\"primaryButtonType\":[513,\"primary-button-type\"],\"form\":[513]}],[4,\"nv-dialogheader\",{\"heading\":[513],\"subheading\":[513]}]]],[\"nv-fieldcheckbox\",[[68,\"nv-fieldcheckbox\",{\"message\":[513],\"validation\":[513],\"labelBefore\":[516,\"label-before\"],\"inputId\":[513,\"input-id\"],\"name\":[513],\"value\":[513],\"label\":[513],\"labelPlacement\":[1537,\"label-placement\"],\"hideLabel\":[516,\"hide-label\"],\"description\":[1537],\"error\":[1540],\"errorDescription\":[1537,\"error-description\"],\"checked\":[1540],\"indeterminate\":[1540],\"disabled\":[516],\"readonly\":[516],\"required\":[516],\"autofocus\":[516]},[[0,\"change\",\"handleChange\"]],{\"checked\":[\"onCheckedChanged\"]}]]],[\"nv-badge_2\",[[4,\"nv-badge\",{\"dismissal\":[516],\"icon\":[513],\"iconLocation\":[513,\"icon-location\"],\"color\":[513],\"label\":[513],\"leadIcon\":[1537,\"lead-icon\"],\"dismissible\":[1540],\"hidden\":[1540],\"preventAutoClose\":[516,\"prevent-auto-close\"],\"_isHidden\":[32]},null,{\"dismissal\":[\"handleDismissalChange\"],\"icon\":[\"handleIconChange\"],\"hidden\":[\"handleHiddenChange\"]}],[0,\"nv-fielddropdownitemcheck\",{\"checked\":[1540],\"value\":[513],\"label\":[513],\"description\":[513],\"group\":[513],\"disabled\":[516]}]]],[\"nv-popover\",[[4,\"nv-popover\",{\"triggerElement\":[1040],\"open\":[1540],\"triggerMode\":[513,\"trigger-mode\"],\"placement\":[513],\"groupName\":[513,\"group-name\"],\"offset\":[514],\"hasArrow\":[516,\"has-arrow\"],\"disableFlip\":[516,\"disable-flip\"],\"shiftPadding\":[514,\"shift-padding\"],\"enterDelay\":[514,\"enter-delay\"],\"nested\":[516],\"show\":[64],\"hide\":[64],\"toggle\":[64]},[[4,\"openChanged\",\"handleOpenChanged\"]],{\"open\":[\"handleOpenChange\"]}]]]]"), options);
|
|
26333
26444
|
};
|
|
26334
26445
|
|
|
26335
26446
|
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a);}})();
|
|
@@ -26339,7 +26450,6 @@ exports.Host = Host;
|
|
|
26339
26450
|
exports.NvAlert = NvAlert;
|
|
26340
26451
|
exports.NvAvatar = NvAvatar;
|
|
26341
26452
|
exports.NvBadge = NvBadge;
|
|
26342
|
-
exports.NvBase = NvBase;
|
|
26343
26453
|
exports.NvBreadcrumb = NvBreadcrumb;
|
|
26344
26454
|
exports.NvBreadcrumbs = NvBreadcrumbs;
|
|
26345
26455
|
exports.NvButton = NvButton;
|