@nova-design-system/nova-react 3.27.0 → 3.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/generated/components.server.js +24 -0
- package/dist/cjs/index-DgKzi_Pd.js +10208 -0
- package/dist/cjs/index.js +4 -1
- package/dist/cjs/nova-datetime-CyL2J6O4-0Y9g3rfI.js +10531 -0
- package/dist/cjs/{nv-accordion-item.entry-Gn0QFETn.js → nv-accordion-item.entry-D1o0gC5w.js} +3 -3
- package/dist/cjs/{nv-accordion.entry-BooppL5C.js → nv-accordion.entry-DYJtq9Az.js} +1 -1
- package/dist/cjs/{nv-alert.entry-CDmHhq86.js → nv-alert.entry-CMtCdHmk.js} +2 -2
- package/dist/cjs/{nv-avatar.entry-pYMjQvxK.js → nv-avatar.entry-B6e7aG4W.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-BneUUyR7.js → nv-badge_2.entry-RD3j0bJM.js} +8 -7
- package/dist/cjs/{nv-breadcrumb.entry-B7CGcJ_l.js → nv-breadcrumb.entry-DgpqY2fr.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-BNKz4ehX.js → nv-breadcrumbs.entry-CZgcDUw5.js} +1 -1
- package/dist/cjs/{nv-button.entry-DDCkNY_S.js → nv-button.entry-DR9NaRxG.js} +1 -1
- package/dist/cjs/{nv-buttongroup.entry-Bio-SWcx.js → nv-buttongroup.entry-qO8r7WqG.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-BoNFEz6W.js → nv-calendar.entry-DRlv3Xph.js} +1 -1
- package/dist/cjs/{nv-col.entry-BHTqFTHl.js → nv-col.entry-B7utJttP.js} +2 -2
- package/dist/cjs/{nv-datagrid.entry-Bw_sqaMu.js → nv-datagrid.entry-digYmlnA.js} +1 -1
- package/dist/cjs/{nv-datagridcolumn.entry-Z-RXn3ak.js → nv-datagridcolumn.entry-UwaDi-Hr.js} +1 -1
- package/dist/cjs/nv-datetest.entry-BJtWaM2T.js +69 -0
- package/dist/cjs/nv-datetimetest.entry-WaNPcHxh.js +57 -0
- package/dist/cjs/{nv-dialog.entry-ByZkK4F9.js → nv-dialog.entry-BI_mFT2G.js} +2 -2
- package/dist/cjs/{nv-dialogfooter_2.entry-Bddcz6HA.js → nv-dialogfooter_2.entry-DU2ClBUR.js} +7 -5
- package/dist/cjs/{nv-drawer.entry-660dihzy.js → nv-drawer.entry-BKF4CyOt.js} +2 -2
- package/dist/cjs/{nv-drawerfooter_2.entry-D6EA-3-u.js → nv-drawerfooter_2.entry-BSyUs7_4.js} +5 -3
- package/dist/cjs/{nv-fieldcheckbox.entry-Bm6qurcS.js → nv-fieldcheckbox.entry-l5FWToQi.js} +5 -5
- package/dist/cjs/{nv-fielddate.entry-DW9RQ_dD.js → nv-fielddate.entry-BfviesNp.js} +8 -8
- package/dist/cjs/{nv-fielddaterange.entry-m3dY0P2v.js → nv-fielddaterange.entry-BvDkPLXG.js} +8 -8
- package/dist/cjs/{nv-fielddropdown.entry-DkARzQix.js → nv-fielddropdown.entry-B-nYjuMt.js} +6 -6
- package/dist/cjs/{nv-fielddropdownitem.entry-DKG1bO2H.js → nv-fielddropdownitem.entry-Dxqyb9DN.js} +2 -2
- package/dist/cjs/{nv-fieldmultiselect.entry-B4As0NxI.js → nv-fieldmultiselect.entry-CgO1RP0W.js} +115 -86
- package/dist/cjs/{nv-fieldnumber.entry-DHBPKUcr.js → nv-fieldnumber.entry-stgdLi7x.js} +6 -6
- package/dist/cjs/{nv-fieldpassword.entry-DxEaIvRh.js → nv-fieldpassword.entry-CHA3JAUd.js} +6 -6
- package/dist/cjs/{nv-fieldradio.entry-MSrPlSzv.js → nv-fieldradio.entry-DHavVjB-.js} +4 -4
- package/dist/cjs/{nv-fieldselect.entry-qMAtqdcr.js → nv-fieldselect.entry-Dq5AsOFt.js} +7 -7
- package/dist/cjs/{nv-fieldslider.entry-CHdMG-lt.js → nv-fieldslider.entry-SlF3BBUW.js} +4 -4
- package/dist/cjs/{nv-fieldtext.entry-tbYFUJP9.js → nv-fieldtext.entry-BYCc8SyD.js} +6 -6
- package/dist/cjs/{nv-fieldtextarea.entry-D7b3-4Ar.js → nv-fieldtextarea.entry-96JCOb9L.js} +5 -5
- package/dist/cjs/{nv-fieldtime.entry-TSPljEeW.js → nv-fieldtime.entry-BdzjxkaK.js} +15 -12
- package/dist/cjs/nv-icon.entry-CSRxi6BH.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-Ch0rfD12.js → nv-iconbutton_2.entry-BtDxwMFD.js} +3 -3
- package/dist/cjs/{nv-menu.entry-BKLyCbyy.js → nv-menu.entry-aX39SPH8.js} +2 -2
- package/dist/cjs/{nv-menuitem.entry-BBK6uQav.js → nv-menuitem.entry-DzSp52G2.js} +2 -2
- package/dist/cjs/{nv-notification-bullet.entry-Dk0oaUTe.js → nv-notification-bullet.entry-D2yOXj46.js} +1 -1
- package/dist/cjs/{nv-notification.entry-DVUXuj9T.js → nv-notification.entry-BRXHbtT8.js} +2 -2
- package/dist/cjs/{nv-notificationcontainer.entry-BQbB0vJ8.js → nv-notificationcontainer.entry-YNIM2_ah.js} +2 -14
- package/dist/cjs/{nv-pagination-nav.entry-BON8ve70.js → nv-pagination-nav.entry-uY1nT9aT.js} +2 -2
- package/dist/cjs/{nv-paginationtable.entry-pT2Qx3xY.js → nv-paginationtable.entry-mr5KYXVC.js} +2 -2
- package/dist/cjs/{nv-popover.entry-91VegZzi.js → nv-popover.entry-_9ARKM70.js} +2 -2
- package/dist/cjs/{nv-row.entry-C_75GYAm.js → nv-row.entry-BMQvcqlU.js} +2 -2
- package/dist/cjs/{nv-sidebar.entry-XIcDybjF.js → nv-sidebar.entry-C4HTjJmz.js} +2 -2
- package/dist/cjs/{nv-sidebarcontent.entry-JSf1Mb0x.js → nv-sidebarcontent.entry-llnRwVuj.js} +2 -2
- package/dist/cjs/{nv-sidebardivider.entry-XZ1hYAgj.js → nv-sidebardivider.entry--rQv8d5T.js} +2 -2
- package/dist/cjs/{nv-sidebarfooter.entry-BHO9gh6y.js → nv-sidebarfooter.entry-C5R0sUI_.js} +2 -2
- package/dist/cjs/{nv-sidebargroup.entry-DAb7dWFF.js → nv-sidebargroup.entry-DdrpLbU7.js} +2 -2
- package/dist/cjs/{nv-sidebarheader.entry-BksZP_km.js → nv-sidebarheader.entry-HuBPIsyf.js} +2 -2
- package/dist/cjs/{nv-sidebarlogo.entry-BntEWmH_.js → nv-sidebarlogo.entry-TZNPoqnA.js} +2 -2
- package/dist/cjs/{nv-sidebarnavitem.entry-DSu34C34.js → nv-sidebarnavitem.entry-BWc3mF5I.js} +3 -3
- package/dist/cjs/{nv-sidebarnavsubitem.entry-Y8Ex0_Lr.js → nv-sidebarnavsubitem.entry-DekANwO8.js} +2 -2
- package/dist/cjs/{nv-split.entry-BDr6FxCd.js → nv-split.entry-BOwOB8FW.js} +2 -2
- package/dist/cjs/{nv-stack.entry-CChjKrA3.js → nv-stack.entry-CaTiSLGN.js} +2 -2
- package/dist/cjs/{nv-table.entry-CfqHpj1L.js → nv-table.entry-LFZaS0Dy.js} +3 -3
- package/dist/cjs/{nv-tableheader.entry-C61xO9Ra.js → nv-tableheader.entry-CK50S8xW.js} +2 -2
- package/dist/cjs/nv-timetest.entry-A9elKwkf.js +75 -0
- package/dist/cjs/{nv-toggle.entry-B0HofO36.js → nv-toggle.entry-BGu-6rEs.js} +3 -3
- package/dist/cjs/{nv-togglebutton.entry-CzyNiZyK.js → nv-togglebutton.entry-BzAcBOgN.js} +2 -2
- package/dist/cjs/{nv-togglebuttongroup.entry-TizvIVlB.js → nv-togglebuttongroup.entry-CIWp7IXc.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-0kcGcQZo.js → nv-tooltip.entry-CoGkSHpv.js} +9 -4
- package/dist/components/NvDatatable/NvDatatable.js +384 -65
- package/dist/components/NvDatatable/selectionState.js +45 -0
- package/dist/components/NvDatatable/selectionState.test.js +74 -0
- package/dist/generated/components.js +38 -0
- package/dist/generated/components.server.js +21 -0
- package/dist/types/components/NvDatatable/NvDatatable.d.ts +1 -1
- package/dist/types/components/NvDatatable/selectionState.d.ts +21 -0
- package/dist/types/components/NvDatatable/selectionState.test.d.ts +1 -0
- package/dist/types/components/NvDatatable/types.d.ts +22 -0
- package/dist/types/generated/components.d.ts +51 -1
- package/dist/types/generated/components.server.d.ts +51 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/providers/NotificationProvider.d.ts +2 -2
- package/package.json +6 -4
- package/dist/cjs/index-clzdrCkN.js +0 -9713
- package/dist/cjs/nv-icon.entry-BtmsouTL.js +0 -80
package/dist/cjs/{nv-accordion-item.entry-Gn0QFETn.js → nv-accordion-item.entry-D1o0gC5w.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var collapse_animationDZDm0vSK = require('./collapse.animation-DZDm0vSK-C2TOIhIK.js');
|
|
5
5
|
require('./style-value-types.es-xlgmw4x8-B1vLqX9m.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -196,12 +196,12 @@ const NvAccordionItem = class {
|
|
|
196
196
|
/****************************************************************************/
|
|
197
197
|
//#region RENDER
|
|
198
198
|
render() {
|
|
199
|
-
return (index.h(index.Host, { key: '
|
|
199
|
+
return (index.h(index.Host, { key: '2db3307c8665cf2d4b05c963cc8ca3147347876f', class: {
|
|
200
200
|
'nv-accordion-item': true,
|
|
201
201
|
'is-open': this.currentOpenState,
|
|
202
202
|
'is-disabled': this.disabled,
|
|
203
203
|
'is-animating': this.isAnimating,
|
|
204
|
-
}, role: "listitem", "aria-expanded": this.currentOpenState ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("div", { key: '
|
|
204
|
+
}, role: "listitem", "aria-expanded": this.currentOpenState ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false' }, index.h("div", { key: '993d96a9f61a5d1b8373108da93ff2fb3c99743e', class: "nv-accordion-item__header", onClick: this.handleHeaderClick, "aria-controls": "content" }, index.h("slot", { key: '8f38e7f8e97f654cbb11e22f8e0d300a15f62d82', name: "header" }, index.h("div", { key: '586b7a7555d874d014952393f217086d15863105', class: "nv-accordion-item__header-content" }, this.itemTitle && (index.h("span", { key: 'c94820fb1701aac71316e07282514db4ae91ddec', class: "nv-accordion-item__title" }, this.itemTitle)), this.subtitle && (index.h("span", { key: '76421e64254eb9b3d3a4f61f10e850c99c2b647c', class: "nv-accordion-item__subtitle" }, this.subtitle)))), index.h("nv-iconbutton", { key: '5f440c0313ebabcf0f0cab34d9e94212d250268f', emphasis: "low", size: "sm", shape: "square", name: this.chevronIconName, tabindex: this.disabled ? -1 : 0, onClick: this.handleIconClick, onKeyDown: this.handleHeaderKeyDown, "aria-controls": "content", "aria-label": this.currentOpenState ? 'Close the section' : 'Open the section' })), index.h("div", { key: '6c83b26f4da8112146a5dc76c7b2a28e69241fae', id: "content", class: "nv-accordion-item__content", ref: el => (this.contentRef = el) }, index.h("div", { key: '0d8fba56bcf5487b45ce1bfac5a8fd68500817cc', class: "nv-accordion-item__content-inner" }, index.h("slot", { key: '2238e8f467f9253e1a9e7e54d1a66593373cec47', name: "content" })))));
|
|
205
205
|
}
|
|
206
206
|
get el() { return index.getElement(this); }
|
|
207
207
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
6
6
|
var collapse_animationDZDm0vSK = require('./collapse.animation-DZDm0vSK-C2TOIhIK.js');
|
|
@@ -163,7 +163,7 @@ const NvAlert = class {
|
|
|
163
163
|
/****************************************************************************/
|
|
164
164
|
//#region RENDER
|
|
165
165
|
render() {
|
|
166
|
-
return (index.h(index.Host, { key: '
|
|
166
|
+
return (index.h(index.Host, { key: '9a8ab30a8653a1369de135474a7c3772fa48e34b', role: "alert", class: clsxChV9xqsO.clsx('root', `feedback-${this.feedback}`) }, index.h("nv-icon", { key: '3f6789afa52b52b583256a9534297f20cdb638d6', name: this.icon ?? this.getDefaultIcon(), class: `icon-${this.feedback}`, size: "md" }), index.h("div", { key: '6ef7b204125af6c249db995159a76e540285e0e6', class: "content" }, this.heading && index.h("p", { key: '0a1622512986eb61003df3690d1e1317ef4a4152', class: "heading" }, this.heading), this.message && index.h("p", { key: '985884d07932a356af1c124edab0524cd4539521', class: "message" }, this.message), index.h("slot", { key: 'cec75763902869e019b6fbc1b793106534a8bbda' })), this.dismissible && (index.h("button", { key: '9df0c2b641a00a174f8e8a090e0c7d6e48ca97ea', class: "close", type: "button", onClick: this.handleDismiss }, index.h("nv-icon", { key: '973eeb6af6df7f07ce6d7e6965b42b89fa283b83', name: "x", size: "sm" })))));
|
|
167
167
|
}
|
|
168
168
|
get el() { return index.getElement(this); }
|
|
169
169
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
var collapse_animationDZDm0vSK = require('./collapse.animation-DZDm0vSK-C2TOIhIK.js');
|
|
6
6
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
@@ -42,6 +42,7 @@ const NvBadge = class {
|
|
|
42
42
|
this.label = null;
|
|
43
43
|
/**
|
|
44
44
|
* The lead icon of the badge.
|
|
45
|
+
* @icon
|
|
45
46
|
*/
|
|
46
47
|
this.leadIcon = null;
|
|
47
48
|
/**
|
|
@@ -120,7 +121,7 @@ const NvBadge = class {
|
|
|
120
121
|
if (this.dismissal) {
|
|
121
122
|
this.dismissible = this.dismissal;
|
|
122
123
|
}
|
|
123
|
-
if (this.icon != null && this.icon
|
|
124
|
+
if (this.icon != null && this.icon) {
|
|
124
125
|
this.leadIcon = this.icon;
|
|
125
126
|
}
|
|
126
127
|
if (this.hidden) {
|
|
@@ -135,14 +136,14 @@ const NvBadge = class {
|
|
|
135
136
|
/****************************************************************************/
|
|
136
137
|
//#region RENDER
|
|
137
138
|
render() {
|
|
138
|
-
return (index.h(index.Host, { key: '
|
|
139
|
+
return (index.h(index.Host, { key: '178d7a8500d2b51bff75934f020d68df2548bbb9', class: clsxChV9xqsO.clsx(`badge-${this.color}`, {
|
|
139
140
|
'has-close': this.dismissible,
|
|
140
141
|
'with-gap': this.dismissible || this.label,
|
|
141
142
|
'visually-hidden': this._isHidden,
|
|
142
143
|
'is-icon-only': this.isIconOnly,
|
|
143
|
-
}) }, index.h("span", { key: '
|
|
144
|
+
}) }, index.h("span", { key: '67dec92be67c5f2a8e75c348fd8e5d30da8a8a46', class: "nv-badge-leading" }, this.leadIcon && index.h("nv-icon", { key: '19f2acbecb7be8ea62f7656d2e2e79c2f03baebd', name: this.leadIcon, size: "sm" }), index.h("slot", { key: '9bbb8b139c5c38d635ecf6947a860a5ac08da316', name: "leading-icon" })), index.h("span", { key: '07ba9cba9bbcff4b9539f1e6af80a0440fca4afb', class: clsxChV9xqsO.clsx('nv-badge-label', {
|
|
144
145
|
'visually-hidden': this.isIconOnly,
|
|
145
|
-
}) }, this.label, index.h("slot", { key: '
|
|
146
|
+
}) }, this.label, index.h("slot", { key: '807224b100e753cb07e4af338bfb90054df7ac97' })), this.dismissible && (index.h("button", { key: '6e2f9d6f81bbfe8529deed31dbd59274cd1ea51e', onClick: this.handleClose, class: "close", type: "button" }, index.h("nv-icon", { key: 'e0e3c0c6400893a70db61558b13e7e619fa576cc', name: "x", size: "sm" })))));
|
|
146
147
|
}
|
|
147
148
|
get el() { return index.getElement(this); }
|
|
148
149
|
static get watchers() { return {
|
|
@@ -159,7 +160,7 @@ const NvBadge = class {
|
|
|
159
160
|
};
|
|
160
161
|
NvBadge.style = nvBadgeCss();
|
|
161
162
|
|
|
162
|
-
const nvFielddropdownitemcheckCss = () => `nv-fielddropdownitemcheck slot-fb,nv-fielddropdownitemcheck span{all:unset}nv-fielddropdownitemcheck{cursor:pointer;display:flex;padding:var(--list-dropdown-item-padding-y) var(--list-dropdown-item-padding-x);border-radius:var(--list-dropdown-item-radius)}nv-fielddropdownitemcheck:hover{background-color:var(--components-list-dropdown-item-background-hover)}`;
|
|
163
|
+
const nvFielddropdownitemcheckCss = () => `nv-fielddropdownitemcheck slot-fb,nv-fielddropdownitemcheck span{all:unset}nv-fielddropdownitemcheck{cursor:pointer;display:flex;padding:var(--list-dropdown-item-padding-y) var(--list-dropdown-item-padding-x);border-radius:var(--list-dropdown-item-radius)}nv-fielddropdownitemcheck:hover,nv-fielddropdownitemcheck[data-state=highlighted]{background-color:var(--components-list-dropdown-item-background-hover)}`;
|
|
163
164
|
|
|
164
165
|
const NvFielddropdownitemcheck = class {
|
|
165
166
|
constructor(hostRef) {
|
|
@@ -210,7 +211,7 @@ const NvFielddropdownitemcheck = class {
|
|
|
210
211
|
/****************************************************************************/
|
|
211
212
|
//#region RENDER
|
|
212
213
|
render() {
|
|
213
|
-
return (index.h(index.Host, { key: '
|
|
214
|
+
return (index.h(index.Host, { key: '52f3eeee8d22ab9b45723403c58edc3f16905a07', onClick: this.handleClick }, index.h("nv-fieldcheckbox", { key: 'b06def71aa859fca784140d5c961ffa6cd8cdccc', checked: this.checked, name: this.label || this.value, label: this.label || this.value, labelPlacement: "after", description: this.description, disabled: this.disabled, tabindex: "-1", onCheckedChanged: this.onFieldcheckboxChanged }, index.h("slot", { key: 'cc53d2732969cb2812d08f978b3d7eeb5cdaa02a' }), index.h("slot", { key: '67336141a3dcfdab0bdc749e1937797222eaaded', name: "main" }), index.h("slot", { key: '165a860ee2dbd1783d4bf391c3a07da6756d7013', name: "label" }), index.h("slot", { key: '27c6e04f85b608a267ef2b280326d125c22dd970', name: "description" }))));
|
|
214
215
|
}
|
|
215
216
|
get el() { return index.getElement(this); }
|
|
216
217
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
5
5
|
var _commonjsHelpersB85MJLTf = require('./_commonjsHelpers-B85MJLTf-CFO10eej.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
@@ -30,7 +30,7 @@ const NvCol = class {
|
|
|
30
30
|
/****************************************************************************/
|
|
31
31
|
//#region RENDER
|
|
32
32
|
render() {
|
|
33
|
-
return (index.h(index.Host, { key: '
|
|
33
|
+
return (index.h(index.Host, { key: '8170490b65da46794b207e150175c0627ab57b94', class: clsxChV9xqsO.clsx(this.getColSize()) }, index.h("slot", { key: '7c4cdb29efdd597af059f7942a6baf89d7d53b34' })));
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
NvCol.style = nvColCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var dom_utilsCuXVGECR = require('./dom.utils-CuXVGECR-8VY5SfMZ.js');
|
|
5
5
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
|
+
var novaDatetimeCyL2J6O4 = require('./nova-datetime-CyL2J6O4-0Y9g3rfI.js');
|
|
5
|
+
require('@stencil/react-output-target/runtime');
|
|
6
|
+
require('react');
|
|
7
|
+
require('react-dom');
|
|
8
|
+
|
|
9
|
+
const nvDatetestCss = () => `nv-datetest{display:flex}nv-datetest label{display:flex;flex-direction:column;margin-right:10px;font-weight:bold}nv-datetest input{font-weight:normal;padding:var(--spacing-2);border-radius:var(--spacing-1);border:1px solid #ccc}`;
|
|
10
|
+
|
|
11
|
+
const NvDatetest = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 3);
|
|
15
|
+
this.lastChanged = index.createEvent(this, "lastChanged", 3);
|
|
16
|
+
this.historyChanged = index.createEvent(this, "historyChanged", 3);
|
|
17
|
+
this.valueDateChanged = index.createEvent(this, "valueDateChanged", 3);
|
|
18
|
+
//#endregion PROPERTIES
|
|
19
|
+
/****************************************************************************/
|
|
20
|
+
//#region METHODS
|
|
21
|
+
this.handleStartChange = (event) => {
|
|
22
|
+
const input = event.target;
|
|
23
|
+
const parsed = novaDatetimeCyL2J6O4.parseDateOnly(input.value);
|
|
24
|
+
if (!parsed)
|
|
25
|
+
return;
|
|
26
|
+
const newStart = novaDatetimeCyL2J6O4.formatDateOnly(parsed);
|
|
27
|
+
this.value = { start: newStart, end: this.value?.end };
|
|
28
|
+
this.lastChange = newStart;
|
|
29
|
+
this.history = [...(this.history ?? []), newStart];
|
|
30
|
+
this.valueChanged.emit(this.value);
|
|
31
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
32
|
+
this.historyChanged.emit({ dates: this.history });
|
|
33
|
+
this.valueDateChanged.emit({
|
|
34
|
+
start: this.value?.start
|
|
35
|
+
? new Date(this.value.start + 'T00:00:00')
|
|
36
|
+
: undefined,
|
|
37
|
+
end: this.value?.end ? new Date(this.value.end + 'T00:00:00') : undefined,
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
this.handleEndChange = (event) => {
|
|
41
|
+
const input = event.target;
|
|
42
|
+
const parsed = novaDatetimeCyL2J6O4.parseDateOnly(input.value);
|
|
43
|
+
if (!parsed)
|
|
44
|
+
return;
|
|
45
|
+
const newEnd = novaDatetimeCyL2J6O4.formatDateOnly(parsed);
|
|
46
|
+
this.value = { start: this.value?.start, end: newEnd };
|
|
47
|
+
this.lastChange = newEnd;
|
|
48
|
+
this.history = [...(this.history ?? []), newEnd];
|
|
49
|
+
this.valueChanged.emit(this.value);
|
|
50
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
51
|
+
this.historyChanged.emit({ dates: this.history });
|
|
52
|
+
this.valueDateChanged.emit({
|
|
53
|
+
start: this.value?.start
|
|
54
|
+
? new Date(this.value.start + 'T00:00:00')
|
|
55
|
+
: undefined,
|
|
56
|
+
end: this.value?.end ? new Date(this.value.end + 'T00:00:00') : undefined,
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//#endregion EVENTS
|
|
61
|
+
/****************************************************************************/
|
|
62
|
+
//#region RENDER
|
|
63
|
+
render() {
|
|
64
|
+
return (index.h(index.Host, { key: '44e383a31e357a45c8ebe011c4ec14641ce43d74' }, index.h("label", { key: '9be748d4fcbe74b81a7aa03f2a14c806c472f118' }, "Start:", index.h("input", { key: '262ffa195b8dc8ecaaea00d12b6debe48b375cd1', type: "date", value: this.value?.start ?? '', onInput: this.handleStartChange })), index.h("label", { key: 'd8934398264595a08eb75f241fd2c5bc50e9f0d2' }, "End:", index.h("input", { key: '3fdb5b2e410706c6cfedf5244e674fd1dab361a9', type: "date", value: this.value?.end ?? '', onInput: this.handleEndChange })), index.h("slot", { key: 'bb828cffcff4e2c69a48a314636470644c55d2cc' })));
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
NvDatetest.style = nvDatetestCss();
|
|
68
|
+
|
|
69
|
+
exports.nv_datetest = NvDatetest;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
const nvDatetimetestCss = () => `nv-datetimetest{display:flex}nv-datetimetest label{display:flex;flex-direction:column;margin-right:10px;font-weight:bold}nv-datetimetest input{font-weight:normal;padding:var(--spacing-2);border-radius:var(--spacing-1);border:1px solid #ccc}`;
|
|
9
|
+
|
|
10
|
+
const NvDatetimetest = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.valueChanged = index.createEvent(this, "valueChanged", 3);
|
|
14
|
+
this.lastChanged = index.createEvent(this, "lastChanged", 3);
|
|
15
|
+
this.historyChanged = index.createEvent(this, "historyChanged", 3);
|
|
16
|
+
//#endregion PROPERTIES
|
|
17
|
+
/****************************************************************************/
|
|
18
|
+
//#region METHODS
|
|
19
|
+
this.handleStartChange = (event) => {
|
|
20
|
+
const input = event.target;
|
|
21
|
+
const newStart = new Date(input.value);
|
|
22
|
+
this.value = { start: newStart, end: this.value?.end };
|
|
23
|
+
this.lastChange = newStart;
|
|
24
|
+
this.history = [...(this.history ?? []), newStart];
|
|
25
|
+
this.valueChanged.emit(this.value);
|
|
26
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
27
|
+
this.historyChanged.emit({ dates: this.history });
|
|
28
|
+
};
|
|
29
|
+
this.handleEndChange = (event) => {
|
|
30
|
+
const input = event.target;
|
|
31
|
+
const newEnd = new Date(input.value);
|
|
32
|
+
this.value = { start: this.value?.start, end: newEnd };
|
|
33
|
+
this.lastChange = newEnd;
|
|
34
|
+
this.history = [...(this.history ?? []), newEnd];
|
|
35
|
+
this.valueChanged.emit(this.value);
|
|
36
|
+
this.lastChanged.emit({ date: this.lastChange });
|
|
37
|
+
this.historyChanged.emit({ dates: this.history });
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
//#endregion EVENTS
|
|
41
|
+
/****************************************************************************/
|
|
42
|
+
//#region RENDER
|
|
43
|
+
render() {
|
|
44
|
+
const formatDate = (date) => {
|
|
45
|
+
if (!date)
|
|
46
|
+
return '';
|
|
47
|
+
const d = new Date(date);
|
|
48
|
+
if (isNaN(d.getTime()))
|
|
49
|
+
return '';
|
|
50
|
+
return d.toISOString().slice(0, 16);
|
|
51
|
+
};
|
|
52
|
+
return (index.h(index.Host, null, index.h("label", null, "Start:", index.h("input", { type: "datetime-local", value: formatDate(this.value?.start), onInput: this.handleStartChange })), index.h("label", null, "End:", index.h("input", { type: "datetime-local", value: formatDate(this.value?.end), onInput: this.handleEndChange })), index.h("slot", null)));
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
NvDatetimetest.style = nvDatetimetestCss();
|
|
56
|
+
|
|
57
|
+
exports.nv_datetimetest = NvDatetimetest;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var index_esmD3eWMME9 = require('./index.esm-D3eWMME9-CG1TVKfu.js');
|
|
5
5
|
var events_utilsB6GgGra_ = require('./events.utils-B6GgGra--01N__3wY.js');
|
|
6
6
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
@@ -298,7 +298,7 @@ const NvDialog = class {
|
|
|
298
298
|
//#region RENDER
|
|
299
299
|
render() {
|
|
300
300
|
const hasForm = this.form || this.el.querySelector('form');
|
|
301
|
-
return (index.h(index.Host, { key: '
|
|
301
|
+
return (index.h(index.Host, { key: '8a7bd6c255e68d2950802190764221263eedc794' }, index.h("slot", { key: '3194aed7aa3e70ca0c7d3a9aa310a5ae12a8c55f', name: "trigger" }), index.h("dialog", { key: '2eb801ffa547e5159e125631de4973c4072228e6', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, onPointerDown: this.handleDialogPointerDown, onClick: this.handleDialogClick, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsxChV9xqsO.clsx({ full: this.full }) }, index.h("div", { key: 'be4754c9b659de5186ceca7a038cfe048e36f7e6', class: "backdrop", ref: el => (this.backdropElement = el) }, index.h("div", { key: '6dc502fe058efde6220c15fff444a16c5920e524', class: "content", ref: el => (this.contentElement = el) }, !this.undismissable && (index.h("nv-button", { key: 'b9bbc39d6553e268aaabd8a394209302b4c3129d', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDialogClose, "aria-label": "Close dialog" }, index.h("nv-icon", { key: 'aa8eb0f8ce6d2d5480b8522c470c61e902fb05fd', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-dialogheader", { id: "dialog-header" })), index.h("div", { key: '9e53461c4ff39eb272dfc1042047f43aa9afa4cc', class: "content-body", id: "dialog-content" }, index.h("slot", { key: '26f5bbe3d31dc0a341cf444dd4116f7ffd51f469' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? constantsBReL3Lsa.ButtonType.Submit : constantsBReL3Lsa.ButtonType.Button, onDialogCanceled: this.handleDialogClose, undismissable: this.undismissable })))))));
|
|
302
302
|
}
|
|
303
303
|
get el() { return index.getElement(this); }
|
|
304
304
|
static get watchers() { return {
|
package/dist/cjs/{nv-dialogfooter_2.entry-Bddcz6HA.js → nv-dialogfooter_2.entry-DU2ClBUR.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
@@ -33,12 +33,14 @@ const NvDialogfooter = class {
|
|
|
33
33
|
this.undismissable = false;
|
|
34
34
|
/**
|
|
35
35
|
* Sets the leading icon for the primary button.
|
|
36
|
+
* @icon
|
|
36
37
|
*/
|
|
37
|
-
this.leadingIcon =
|
|
38
|
+
this.leadingIcon = null;
|
|
38
39
|
/**
|
|
39
40
|
* Sets the trailing icon for the primary button.
|
|
41
|
+
* @icon
|
|
40
42
|
*/
|
|
41
|
-
this.trailingIcon =
|
|
43
|
+
this.trailingIcon = null;
|
|
42
44
|
/**
|
|
43
45
|
* Sets the danger state for the primary button.
|
|
44
46
|
*/
|
|
@@ -86,7 +88,7 @@ const NvDialogfooter = class {
|
|
|
86
88
|
/****************************************************************************/
|
|
87
89
|
//#region RENDER
|
|
88
90
|
render() {
|
|
89
|
-
return (index.h(index.Host, { key: '
|
|
91
|
+
return (index.h(index.Host, { key: 'a66631cca8c689b702dbaca327d432013a01d5a9' }, index.h("slot", { key: 'b11ebee7ba1cf0d54ea14061adfc2aa652a8f320' }, index.h(index.Fragment, { key: 'b476090b330740be2903f0f8baaf2af37ce9f4b9' }, !this.undismissable && (index.h("nv-button", { key: '7fbcf88d375443143b6c51e4374d2c8aab0a138c', onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { key: '45ea2b382870b4a94033e609b5bc57d0af7cad93', ref: el => (this.primaryButtonRef = el), onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (index.h("nv-icon", { key: 'c021c5db17e94c0fa320824335ad3cf3507fc47e', slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { key: '3b3f4ebf29a35d901228d46ce799ff722a874272', slot: "trailing-icon", name: this.trailingIcon, size: "sm" })))))));
|
|
90
92
|
}
|
|
91
93
|
static get formAssociated() { return true; }
|
|
92
94
|
get el() { return index.getElement(this); }
|
|
@@ -109,7 +111,7 @@ const NvDialogheader = class {
|
|
|
109
111
|
/****************************************************************************/
|
|
110
112
|
//#region RENDER
|
|
111
113
|
render() {
|
|
112
|
-
return (index.h(index.Host, { key: '
|
|
114
|
+
return (index.h(index.Host, { key: '791850365cf2de9d1a5395083e01ee927e9fcfac' }, index.h("slot", { key: '2641c425dc10b7d748365fa0fa3d86a6784e129b' }, index.h(index.Fragment, { key: '7c8ef96b9c7e0ba03e374cc7e74d1f8f24d94c5b' }, index.h("div", { key: '53d09670dc9779101b3e79adea03bc34870df028', class: "heading" }, this.heading), index.h("div", { key: '624861c0ecac1de23ac1a4b558dea9de6acf5706', class: "subheading" }, this.subheading)))));
|
|
113
115
|
}
|
|
114
116
|
get el() { return index.getElement(this); }
|
|
115
117
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var index_esmD3eWMME9 = require('./index.esm-D3eWMME9-CG1TVKfu.js');
|
|
5
5
|
var events_utilsB6GgGra_ = require('./events.utils-B6GgGra--01N__3wY.js');
|
|
6
6
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
@@ -431,7 +431,7 @@ const NvDrawer = class {
|
|
|
431
431
|
render() {
|
|
432
432
|
const hasForm = this.form || this.el.querySelector('form');
|
|
433
433
|
const state = this.open ? 'open' : 'closed';
|
|
434
|
-
return (index.h(index.Host, { key: '
|
|
434
|
+
return (index.h(index.Host, { key: '6ca026b67705704b891c9bca8293dde501c0dc7d' }, index.h("slot", { key: 'ce9a79e0fe385b774aeac0106929343d6a053394', name: "trigger" }), index.h("dialog", { key: '49f9c71fd04de256f05d82d671b7664cf1ab3563', ref: el => (this.dialogElement = el), onClose: this.handleDrawerClose, onClick: this.handleDrawerClick, role: "dialog", "aria-modal": "true", "aria-labelledby": "drawer-header", "aria-describedby": "drawer-content", class: clsxChV9xqsO.clsx({ [`side-${this.side}`]: true }), "data-state": state }, index.h("div", { key: '9c113486255925e4c7520c1f040b95ec253625d8', class: "backdrop", ref: el => (this.backdropElement = el) }, index.h("div", { key: 'e5b32ffe6785c27eef326f37b23478b9993f451a', class: clsxChV9xqsO.clsx('content', `size-${this.size}`), ref: el => (this.contentElement = el), "data-state": state, "data-side": this.side, style: this.width ? { width: this.width } : {} }, !this.undismissable && (index.h("nv-button", { key: 'ac89f7d87b1f307fd809e518cfb88ceb82a074af', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleDrawerClose, "aria-label": "Close drawer" }, index.h("nv-icon", { key: '47d0888ea54efdf3f82cfd0b39bda5c1141074ba', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-drawerheader", { id: "drawer-header" })), index.h("div", { key: '77a08ee8fcda500d45c9426de8d0b6fb9e960142', class: "content-body", id: "drawer-content" }, index.h("slot", { key: 'fc40bc3ecb66c95c188b1984431788e8d3bb66e2' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-drawerfooter", { form: this.form, primaryButtonType: hasForm ? constantsBReL3Lsa.ButtonType.Submit : constantsBReL3Lsa.ButtonType.Button, onDrawerCanceled: this.handleDrawerClose, undismissable: this.undismissable })))))));
|
|
435
435
|
}
|
|
436
436
|
get el() { return index.getElement(this); }
|
|
437
437
|
static get watchers() { return {
|
package/dist/cjs/{nv-drawerfooter_2.entry-D6EA-3-u.js → nv-drawerfooter_2.entry-BSyUs7_4.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
@@ -33,10 +33,12 @@ const NvDrawerfooter = class {
|
|
|
33
33
|
this.undismissable = false;
|
|
34
34
|
/**
|
|
35
35
|
* Sets the leading icon for the primary button.
|
|
36
|
+
* @icon
|
|
36
37
|
*/
|
|
37
38
|
this.leadingIcon = null;
|
|
38
39
|
/**
|
|
39
40
|
* Sets the trailing icon for the primary button.
|
|
41
|
+
* @icon
|
|
40
42
|
*/
|
|
41
43
|
this.trailingIcon = null;
|
|
42
44
|
/**
|
|
@@ -91,7 +93,7 @@ const NvDrawerfooter = class {
|
|
|
91
93
|
/****************************************************************************/
|
|
92
94
|
//#region RENDER
|
|
93
95
|
render() {
|
|
94
|
-
return (index.h(index.Host, { key: '
|
|
96
|
+
return (index.h(index.Host, { key: '280e30ae22c734269f8181a96ac0418d2c3bd5db' }, index.h("slot", { key: '9e435bc05507e06906121b49b4b486daff032ade' }, index.h(index.Fragment, { key: '1b38093cb1e7af2a16f5c465b9f7d0d79e39ea58' }, !this.undismissable && (index.h("nv-button", { key: 'a341887eb32885c375c393a8a13064c38b99cd48', onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { key: '58ec1ef9f3e2e4647cea49bd89455da601976aff', ref: el => (this.primaryButtonRef = el), onClick: this.handlePrimary, disabled: this.disabled, danger: this.danger, size: "sm", emphasis: "high", form: this.form, type: this.primaryButtonType }, this.leadingIcon && (index.h("nv-icon", { key: '4ade73bea4bf75f845b07418e0dc3f5c032cff2e', slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { key: '02e4cba8e8f39664cf0ee052fe8d5df4ef580949', slot: "trailing-icon", name: this.trailingIcon, size: "sm" })))))));
|
|
95
97
|
}
|
|
96
98
|
static get formAssociated() { return true; }
|
|
97
99
|
get el() { return index.getElement(this); }
|
|
@@ -118,7 +120,7 @@ const NvDrawerheader = class {
|
|
|
118
120
|
/****************************************************************************/
|
|
119
121
|
//#region RENDER
|
|
120
122
|
render() {
|
|
121
|
-
return (index.h(index.Host, { key: '
|
|
123
|
+
return (index.h(index.Host, { key: '7f7a5091089b48e34ca8161d37062a760d04cb04' }, index.h("slot", { key: '32a03c7930e82a38a3e26d6cd1726dd1ac9f246c' }, index.h(index.Fragment, { key: 'ef9d6e52ac2918691ec04df4cb7e7703d5e3d0ee' }, index.h("div", { key: '2a4c59cf0e68d17014b977dbcd15d7b76b63b396', class: "heading" }, this.heading), index.h("div", { key: '70820933a33c13e39db4bb3178d270ddb780afdf', class: "subheading" }, this.subheading)))));
|
|
122
124
|
}
|
|
123
125
|
get el() { return index.getElement(this); }
|
|
124
126
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-DgKzi_Pd.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
var v4BdYh22OP = require('./v4-BdYh22OP-C1vaJ4yP.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -156,15 +156,15 @@ const NvFieldcheckbox = class {
|
|
|
156
156
|
? ariaRequiredAttrValue === 'true' || ariaRequiredAttrValue === ''
|
|
157
157
|
: undefined;
|
|
158
158
|
const useNativeRequired = this.required && (!useAriaRequired || ariaRequiredValue === true);
|
|
159
|
-
return (index.h(index.Host, { key: '
|
|
159
|
+
return (index.h(index.Host, { key: 'd7af71859fcbf45833c17977e7f524d12d7ec516', class: clsxChV9xqsO.clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, index.h("div", { key: 'c636a80f3d538843e76b48f4bc6387064fdbcb6f', class: "input-container" }, index.h("input", { key: 'd5ca4e3d2166b89cd92aecd2b393f03d0d78b769', 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 && !useNativeRequired, required: useNativeRequired ? this.required : undefined, tabindex: this.el.tabIndex, ...(ariaRequiredValue !== undefined && {
|
|
160
160
|
'aria-required': String(ariaRequiredValue),
|
|
161
161
|
}), indeterminate: this.indeterminate, ref: el => {
|
|
162
162
|
if (el) {
|
|
163
163
|
el.indeterminate = this.indeterminate;
|
|
164
164
|
}
|
|
165
|
-
} }), index.h("span", { key: '
|
|
166
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
167
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
165
|
+
} }), index.h("span", { key: 'b51e2d55382e69519d3764f4f9c7087ccfd24235', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: 'cd70b0132a720ebf866fe21d1b53bbab89cda62f', name: "checked-icon" }, index.h("svg", { key: 'f1a9166fa75cbd37c2a0f1850b937de00f77a51e', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '2886dee16859f19b7dc630a100cbfd110c2e9eb7', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '68eb14e2bbf5726a27023714f67de50d8e24ad83', name: "indeterminate-icon" }, index.h("svg", { key: '671dc1afed5b3b9d71efff519009c8384da49ec1', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '956838789fbac27422e0db8f13c4e2a8abc64c74', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("slot", { key: 'a93af1189444b1c96ea689eff29b7fa1e5b726c6' }), index.h("div", { key: '1bd695cb83a2010267d6ce1ce8dc6902dd62adf4', class: "text-container" }, index.h("slot", { key: 'b4e3088cf9469842b403d0eeb3122a85d08ce710', name: "main" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'f5326d69a430d60577fac4cbb6229cd26292cb6f', htmlFor: this.inputId, class: clsxChV9xqsO.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '56e52bbf5e0fed0e49b255a23a1c7fdabf69df13', name: "label" }, this.label))), (this.description ||
|
|
166
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'ca56f06cc4c3493e27d31de804f695bbe8a77231', class: "description" }, index.h("slot", { key: '46bd6a8deed8dfa6390b0994776a5c31aca16fdf', name: "description" }, this.description)))), (this.errorDescription ||
|
|
167
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'c1a5b14f4397a495e6ad340a6ae3a45e9f2c82fa', hidden: !this.error, class: "error-description" }, index.h("slot", { key: 'b8e10251f26ec1d541a1acad5d6bda0fc57b589d', name: "error-description" }, this.errorDescription))))));
|
|
168
168
|
}
|
|
169
169
|
static get formAssociated() { return true; }
|
|
170
170
|
get el() { return index.getElement(this); }
|