@nova-design-system/nova-react 3.27.0 → 3.28.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/generated/components.server.js +24 -0
- package/dist/cjs/{index-clzdrCkN.js → index-Kxp9mv-Q.js} +723 -317
- 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-fds_kk_3.js} +1 -1
- package/dist/cjs/{nv-accordion.entry-BooppL5C.js → nv-accordion.entry-BLs4N5ZL.js} +1 -1
- package/dist/cjs/{nv-alert.entry-CDmHhq86.js → nv-alert.entry-Bx1BiC8F.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-pYMjQvxK.js → nv-avatar.entry-DS88LME3.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-BneUUyR7.js → nv-badge_2.entry-vBPxmUmg.js} +2 -2
- package/dist/cjs/{nv-breadcrumb.entry-B7CGcJ_l.js → nv-breadcrumb.entry-BOo3hA5y.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-BNKz4ehX.js → nv-breadcrumbs.entry-igHC_6Bd.js} +1 -1
- package/dist/cjs/{nv-button.entry-DDCkNY_S.js → nv-button.entry-BRQPmQbs.js} +1 -1
- package/dist/cjs/{nv-buttongroup.entry-Bio-SWcx.js → nv-buttongroup.entry-D3tG2EZ1.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-BoNFEz6W.js → nv-calendar.entry-BpNHMTKr.js} +1 -1
- package/dist/cjs/{nv-col.entry-BHTqFTHl.js → nv-col.entry-lyIZqDsW.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-Bw_sqaMu.js → nv-datagrid.entry-BeemONKu.js} +1 -1
- package/dist/cjs/{nv-datagridcolumn.entry-Z-RXn3ak.js → nv-datagridcolumn.entry-B6kE4eVC.js} +1 -1
- package/dist/cjs/nv-datetest.entry-C1uuC-ZG.js +69 -0
- package/dist/cjs/nv-datetimetest.entry-Hthxbjj9.js +57 -0
- package/dist/cjs/{nv-dialog.entry-ByZkK4F9.js → nv-dialog.entry-Cr9zwMPo.js} +2 -2
- package/dist/cjs/{nv-dialogfooter_2.entry-Bddcz6HA.js → nv-dialogfooter_2.entry-DaaKojyE.js} +3 -3
- package/dist/cjs/{nv-drawer.entry-660dihzy.js → nv-drawer.entry-0UaYxCjh.js} +2 -2
- package/dist/cjs/{nv-drawerfooter_2.entry-D6EA-3-u.js → nv-drawerfooter_2.entry-CqtuC7xP.js} +3 -3
- package/dist/cjs/{nv-fieldcheckbox.entry-Bm6qurcS.js → nv-fieldcheckbox.entry-DK3aO8C8.js} +5 -5
- package/dist/cjs/{nv-fielddate.entry-DW9RQ_dD.js → nv-fielddate.entry-BY-xF3KN.js} +7 -7
- package/dist/cjs/{nv-fielddaterange.entry-m3dY0P2v.js → nv-fielddaterange.entry-BT6qCQc3.js} +7 -7
- package/dist/cjs/{nv-fielddropdown.entry-DkARzQix.js → nv-fielddropdown.entry-CsVD067i.js} +5 -5
- package/dist/cjs/{nv-fielddropdownitem.entry-DKG1bO2H.js → nv-fielddropdownitem.entry-Crtfwlx7.js} +2 -2
- package/dist/cjs/{nv-fieldmultiselect.entry-B4As0NxI.js → nv-fieldmultiselect.entry-C2uoE60e.js} +1 -1
- package/dist/cjs/{nv-fieldnumber.entry-DHBPKUcr.js → nv-fieldnumber.entry-DzW5SiiZ.js} +5 -5
- package/dist/cjs/{nv-fieldpassword.entry-DxEaIvRh.js → nv-fieldpassword.entry-D4r9Qxos.js} +5 -5
- package/dist/cjs/{nv-fieldradio.entry-MSrPlSzv.js → nv-fieldradio.entry-DX0Ghx--.js} +4 -4
- package/dist/cjs/{nv-fieldselect.entry-qMAtqdcr.js → nv-fieldselect.entry-_CglE66i.js} +6 -6
- package/dist/cjs/{nv-fieldslider.entry-CHdMG-lt.js → nv-fieldslider.entry-6zt75uDU.js} +4 -4
- package/dist/cjs/{nv-fieldtext.entry-tbYFUJP9.js → nv-fieldtext.entry-B4X110wn.js} +5 -5
- package/dist/cjs/{nv-fieldtextarea.entry-D7b3-4Ar.js → nv-fieldtextarea.entry-CeAMhA8Y.js} +4 -4
- package/dist/cjs/{nv-fieldtime.entry-TSPljEeW.js → nv-fieldtime.entry-BvzncwNd.js} +4 -4
- package/dist/cjs/nv-icon.entry-C2md2kmq.js +80 -0
- package/dist/cjs/{nv-iconbutton_2.entry-Ch0rfD12.js → nv-iconbutton_2.entry-D-zRpLjT.js} +3 -3
- package/dist/cjs/{nv-menu.entry-BKLyCbyy.js → nv-menu.entry-DN_DkosX.js} +2 -2
- package/dist/cjs/{nv-menuitem.entry-BBK6uQav.js → nv-menuitem.entry-Cj6w33rq.js} +2 -2
- package/dist/cjs/{nv-notification-bullet.entry-Dk0oaUTe.js → nv-notification-bullet.entry-DagStJ3K.js} +1 -1
- package/dist/cjs/{nv-notification.entry-DVUXuj9T.js → nv-notification.entry-oV69FpxE.js} +2 -2
- package/dist/cjs/{nv-notificationcontainer.entry-BQbB0vJ8.js → nv-notificationcontainer.entry-gQGHHeer.js} +2 -14
- package/dist/cjs/{nv-pagination-nav.entry-BON8ve70.js → nv-pagination-nav.entry-BYvcVj1M.js} +2 -2
- package/dist/cjs/{nv-paginationtable.entry-pT2Qx3xY.js → nv-paginationtable.entry-CwCFQwbl.js} +2 -2
- package/dist/cjs/{nv-popover.entry-91VegZzi.js → nv-popover.entry-DySToeSB.js} +2 -2
- package/dist/cjs/{nv-row.entry-C_75GYAm.js → nv-row.entry-46ghuEeG.js} +2 -2
- package/dist/cjs/{nv-sidebar.entry-XIcDybjF.js → nv-sidebar.entry-B6opNG2r.js} +2 -2
- package/dist/cjs/{nv-sidebarcontent.entry-JSf1Mb0x.js → nv-sidebarcontent.entry-Pb8c2QoA.js} +2 -2
- package/dist/cjs/{nv-sidebardivider.entry-XZ1hYAgj.js → nv-sidebardivider.entry-LCCO53Z5.js} +2 -2
- package/dist/cjs/{nv-sidebarfooter.entry-BHO9gh6y.js → nv-sidebarfooter.entry-DG5fkLHd.js} +2 -2
- package/dist/cjs/{nv-sidebargroup.entry-DAb7dWFF.js → nv-sidebargroup.entry-DRqkSyQi.js} +2 -2
- package/dist/cjs/{nv-sidebarheader.entry-BksZP_km.js → nv-sidebarheader.entry-D6WvH2wG.js} +2 -2
- package/dist/cjs/{nv-sidebarlogo.entry-BntEWmH_.js → nv-sidebarlogo.entry-BorScwI-.js} +2 -2
- package/dist/cjs/{nv-sidebarnavitem.entry-DSu34C34.js → nv-sidebarnavitem.entry-BEW74Rw3.js} +3 -3
- package/dist/cjs/{nv-sidebarnavsubitem.entry-Y8Ex0_Lr.js → nv-sidebarnavsubitem.entry-EgaIlUfP.js} +2 -2
- package/dist/cjs/{nv-split.entry-BDr6FxCd.js → nv-split.entry-CEC5Tuwz.js} +2 -2
- package/dist/cjs/{nv-stack.entry-CChjKrA3.js → nv-stack.entry-BR8lYaoI.js} +2 -2
- package/dist/cjs/{nv-table.entry-CfqHpj1L.js → nv-table.entry-CISZFst5.js} +2 -2
- package/dist/cjs/{nv-tableheader.entry-C61xO9Ra.js → nv-tableheader.entry-DbdpTJGC.js} +2 -2
- package/dist/cjs/nv-timetest.entry-Dg1JEgAv.js +75 -0
- package/dist/cjs/{nv-toggle.entry-B0HofO36.js → nv-toggle.entry-DDfRpC1R.js} +3 -3
- package/dist/cjs/{nv-togglebutton.entry-CzyNiZyK.js → nv-togglebutton.entry-D7NkdIXP.js} +2 -2
- package/dist/cjs/{nv-togglebuttongroup.entry-TizvIVlB.js → nv-togglebuttongroup.entry-L8gitSUS.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-0kcGcQZo.js → nv-tooltip.entry-BElnrEqE.js} +9 -4
- package/dist/components/NvDatatable/NvDatatable.js +293 -63
- 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 +17 -0
- package/dist/types/generated/components.d.ts +51 -1
- package/dist/types/generated/components.server.d.ts +51 -1
- package/package.json +6 -4
- package/dist/cjs/nv-icon.entry-BtmsouTL.js +0 -80
package/dist/cjs/{nv-accordion-item.entry-Gn0QFETn.js → nv-accordion-item.entry-fds_kk_3.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.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');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.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');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.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-Kxp9mv-Q.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');
|
|
@@ -210,7 +210,7 @@ const NvFielddropdownitemcheck = class {
|
|
|
210
210
|
/****************************************************************************/
|
|
211
211
|
//#region RENDER
|
|
212
212
|
render() {
|
|
213
|
-
return (index.h(index.Host, { key: '
|
|
213
|
+
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
214
|
}
|
|
215
215
|
get el() { return index.getElement(this); }
|
|
216
216
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.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-Kxp9mv-Q.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-Kxp9mv-Q.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-Kxp9mv-Q.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-Kxp9mv-Q.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-DaaKojyE.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
@@ -86,7 +86,7 @@ const NvDialogfooter = class {
|
|
|
86
86
|
/****************************************************************************/
|
|
87
87
|
//#region RENDER
|
|
88
88
|
render() {
|
|
89
|
-
return (index.h(index.Host, { key: '
|
|
89
|
+
return (index.h(index.Host, { key: '38542bde042483b52b17ff43fb31de4e8c304e1f' }, index.h("slot", { key: 'ccb01a71be38ac68d77cfa408fd982fee291f683' }, index.h(index.Fragment, { key: '223bb06266eca959f83859119a7ec3393f2b0c33' }, !this.undismissable && (index.h("nv-button", { key: '01866629e7dfbfb480982c86b07fa9b3db7ceb36', onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { key: '7d6bddb1681dc733ace5aac42b15b8b2d6fbc20e', 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: '5dcdb4a2b88f2b776ae37782101d011a0c9012b9', slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { key: 'd386d6a393cb9f6771f0e2dd282a6f8b76e30047', slot: "trailing-icon", name: this.trailingIcon, size: "sm" })))))));
|
|
90
90
|
}
|
|
91
91
|
static get formAssociated() { return true; }
|
|
92
92
|
get el() { return index.getElement(this); }
|
|
@@ -109,7 +109,7 @@ const NvDialogheader = class {
|
|
|
109
109
|
/****************************************************************************/
|
|
110
110
|
//#region RENDER
|
|
111
111
|
render() {
|
|
112
|
-
return (index.h(index.Host, { key: '
|
|
112
|
+
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
113
|
}
|
|
114
114
|
get el() { return index.getElement(this); }
|
|
115
115
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.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-CqtuC7xP.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
@@ -91,7 +91,7 @@ const NvDrawerfooter = class {
|
|
|
91
91
|
/****************************************************************************/
|
|
92
92
|
//#region RENDER
|
|
93
93
|
render() {
|
|
94
|
-
return (index.h(index.Host, { key: '
|
|
94
|
+
return (index.h(index.Host, { key: '34d1e6674af648693843a7ac721dbdbcd72b51c0' }, index.h("slot", { key: '1f4a4e543545e160f6adae62eb4313352c4792cc' }, index.h(index.Fragment, { key: '250ca124fa3b898eb4f60f44718dacbc182372e4' }, !this.undismissable && (index.h("nv-button", { key: 'd26c422a3b7912140ee92ac1d2fb6401a980f8f8', onClick: this.handleCancel, emphasis: "low", size: "sm" }, this.cancelLabel)), index.h("nv-button", { key: '8c77da0f29d18e68288b4e74f1050bc80ddb8e8d', 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: 'ef09488fa5a8ca561f0c03973cb7b4fe3a6669d3', slot: "leading-icon", name: this.leadingIcon, size: "sm" })), this.primaryLabel, this.trailingIcon && (index.h("nv-icon", { key: '56a7a5e6fab648c67a69a309128195d047f3b5a8', slot: "trailing-icon", name: this.trailingIcon, size: "sm" })))))));
|
|
95
95
|
}
|
|
96
96
|
static get formAssociated() { return true; }
|
|
97
97
|
get el() { return index.getElement(this); }
|
|
@@ -118,7 +118,7 @@ const NvDrawerheader = class {
|
|
|
118
118
|
/****************************************************************************/
|
|
119
119
|
//#region RENDER
|
|
120
120
|
render() {
|
|
121
|
-
return (index.h(index.Host, { key: '
|
|
121
|
+
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
122
|
}
|
|
123
123
|
get el() { return index.getElement(this); }
|
|
124
124
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.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: '4e721f36cb3c6137f0a05b981e22fda0e17dc8a3', 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, ...(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: '8d2900a5541c0920e18ec6274558aeb88e290139', class: "icon" }, this.checked && !this.indeterminate && (index.h("slot", { key: '3a80b2db6b84836d1b5ceb72abe0d45dc9f9d3f5', name: "checked-icon" }, index.h("svg", { key: 'cf5f36827d3470b6279bfb985cbe9fbf35d8773e', xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: 'b4b49d0ee3e2207fdfa00ff29d3ccfd63744b313', d: "M11.6667 3.5L5.25004 9.91667L2.33337 7", "stroke-linecap": "round", "stroke-linejoin": "round" })))), this.indeterminate && (index.h("slot", { key: '3a5ceee36c94ee66b4104373a1ab9a8dcae635f4', name: "indeterminate-icon" }, index.h("svg", { key: '11e3599cdda5c3055f7f18f7800b4b82747863a9', class: "indeterminate-svg", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 14 14", fill: "none" }, index.h("path", { key: '4b8eecd39e9cfc73a340980f8e438b855a64e2de', d: "M2.9165 7H11.0832", "stroke-linecap": "round", "stroke-linejoin": "round" })))))), index.h("slot", { key: 'd5f707b058e44ea577a37714994ddd16933e5e5b' }), index.h("div", { key: 'e60d0a559d0069074e5a7973e94d9dc212a659d5', class: "text-container" }, index.h("slot", { key: '3ba66c529955b680c16a94a8dd36955ebc7563aa', name: "main" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'be5232898d0209130626ae3d27af0fd6f2d79327', htmlFor: this.inputId, class: clsxChV9xqsO.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: 'ec0886e8605d7cdd2494134831d729bc7687f542', name: "label" }, this.label))), (this.description ||
|
|
166
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '0de7768b857c85b8b54cd4edaeaf60fa8130005a', class: "description" }, index.h("slot", { key: 'b6c3a2f467934d5bdaa913cc7dccc9b2677c49e5', name: "description" }, this.description)))), (this.errorDescription ||
|
|
167
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '2c286387dbdc2e8f98c6fc4ae62c63c57e85a972', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '3d0eeb3caee84399792cfe9484902c6d5a36e226', name: "error-description" }, this.errorDescription))))));
|
|
168
168
|
}
|
|
169
169
|
static get formAssociated() { return true; }
|
|
170
170
|
get el() { return index.getElement(this); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
var inputmaskCSo292ul = require('./inputmask-CSo292ul-DlvupPk6.js');
|
|
5
5
|
var v4BdYh22OP = require('./v4-BdYh22OP-C1vaJ4yP.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -404,15 +404,15 @@ const NvFielddate = class {
|
|
|
404
404
|
? ariaRequiredAttrValue === 'true' || ariaRequiredAttrValue === ''
|
|
405
405
|
: undefined;
|
|
406
406
|
const useNativeRequired = this.required && (!useAriaRequired || ariaRequiredValue === true);
|
|
407
|
-
return (index.h(index.Host, { key: '
|
|
408
|
-
this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '
|
|
407
|
+
return (index.h(index.Host, { key: '373ddbc08a6b5d6ca6f2ac368f0ec84067539313' }, ((this.label && this.label.length > 0) ||
|
|
408
|
+
this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '8373d2e38786f41bda23dd8fe9d345d24fb27710', htmlFor: this.inputId }, index.h("slot", { key: '8ded993892e5eef5caec76081eff5d3ed2db695a', name: "label" }, this.label))), index.h("nv-popover", { key: '0a394aab113c9a964f7495481d728416b1b7b041', ref: this.setPopoverRef, id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: 'ae7e1a4d7454b09969335a4772e77ba137a12389', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '7b744ada5b12dca2ffaca4690f27a9a77240ea55', name: "before-input" }), index.h("div", { key: '9eb02599b7d7b6ee1835756525d8646d8a50be73', class: "input-container", onClick: this.handleInputContainerClick }, index.h("slot", { key: '882a358dd1f0865a0c46ca5d9c5f8fe4689de616', name: "leading-input" }), index.h("input", { key: '2f8603d625b8fbfe8a5287e5512fdb2b7309004b', id: this.inputId, ref: this.setInputRef, placeholder: this.placeholder ||
|
|
409
409
|
this.convertToInputmaskFormat(this.dateFormat), name: this.name, disabled: this.disabled, readOnly: this.readonly, required: useNativeRequired ? this.required : undefined, ...(ariaRequiredValue !== undefined && {
|
|
410
410
|
'aria-required': String(ariaRequiredValue),
|
|
411
|
-
}), autofocus: this.autofocus, onInput: this.handleInput, onFocus: this.handleFocus, "data-scope": "date" }), this.error && (index.h("nv-icon", { key: '
|
|
411
|
+
}), autofocus: this.autofocus, onInput: this.handleInput, onFocus: this.handleFocus, "data-scope": "date" }), this.error && (index.h("nv-icon", { key: 'ae611c7990a9ee817fcd8fec5c3c6068b995310d', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '3fa08699f440d9dcbd9612965a3f1cf88b17a83c', name: "circle-check", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: 'ee781c688e8bc62d17250dd4ec198e5706641cf7', class: "toggle-calendar-icon", name: "calendar" //{this.open ? 'chevron-top' : 'chevron-down'}
|
|
412
412
|
,
|
|
413
|
-
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '
|
|
414
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
415
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
413
|
+
size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: 'ab360fe2a6d5ceb48899ba05e404548995348e96', name: "after-input" })), index.h("div", { key: '8379e7defd054c642fe0d25cd8f3890c351811b1', slot: "content" }, index.h("nv-calendar", { key: '316df6f492d8d684ba91429fe5e499330329d0a7', onSingleDateChange: this.handleSingleDateChange.bind(this), 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, onValueChanged: this.handleCalendarValueChanged }))), ((this.description && this.description.length > 0) ||
|
|
414
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '9bad6d56684e9fea1298b5338ed32c04f3ab364c', class: "description" }, index.h("slot", { key: '180f3d6aac34ed02bf7ac351319327d701d4a419', name: "description" }, this.description))), (this.errorDescription ||
|
|
415
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'b62cfbae2fec4d1e4c6d15f3bd3cf8e0936ec28f', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: '6c4f47488a757c5808ed1bbe8bcedaa5dce60da2' })));
|
|
416
416
|
}
|
|
417
417
|
get el() { return index.getElement(this); }
|
|
418
418
|
static get watchers() { return {
|
package/dist/cjs/{nv-fielddaterange.entry-m3dY0P2v.js → nv-fielddaterange.entry-BT6qCQc3.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
var inputmaskCSo292ul = require('./inputmask-CSo292ul-DlvupPk6.js');
|
|
5
5
|
var v4BdYh22OP = require('./v4-BdYh22OP-C1vaJ4yP.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -561,16 +561,16 @@ const NvFielddaterange = class {
|
|
|
561
561
|
? ariaRequiredAttrValue === 'true' || ariaRequiredAttrValue === ''
|
|
562
562
|
: undefined;
|
|
563
563
|
const useNativeRequired = this.required && (!useAriaRequired || ariaRequiredValue === true);
|
|
564
|
-
return (index.h(index.Host, { key: '
|
|
565
|
-
this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '
|
|
564
|
+
return (index.h(index.Host, { key: '659fbd943d7f088b0dde4ad6ae9eac2fd719d58d' }, ((this.label && this.label.length > 0) ||
|
|
565
|
+
this.el.querySelector('[slot="label"]')) && (index.h("label", { key: '5ec3a4df845c445ce2c4b45798677c9ba1c79f04', htmlFor: this.startInputId }, index.h("slot", { key: 'ac22f1a6d6f49a2feb2a92a1ff9045422785ef64', name: "label" }, this.label))), index.h("nv-popover", { key: 'd4ac345011bce61f263df887fa9eebc210659145', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, index.h("div", { key: '6f13372e3bea5b40ed7bc82ffea0fa4f85f6e450', slot: "trigger", class: "input-wrapper" }, index.h("slot", { key: '4403b049058b231017eea3be6a1045312d805d75', name: "before-input" }), index.h("div", { key: 'df2603a90a1e7740311c8a4b1a85a051ed8efff0', class: "input-container" }, index.h("slot", { key: '37554324ba2bb1f25446c97db50546e0a33b5af8', name: "leading-input" }), index.h("div", { key: '0e99431473e98409bdf883acfd7e50823e6fc3c2', class: "range-inputs" }, index.h("input", { key: '7077a4a95fd264466c44f4f96fd9b6236887b731', id: this.startInputId, type: "text", placeholder: this.startPlaceholder ||
|
|
566
566
|
this.convertToInputmaskFormat(this.dateFormat), name: this.startName, disabled: this.disabled, readOnly: this.readonly, required: useNativeRequired ? this.required : undefined, ...(ariaRequiredValue !== undefined && {
|
|
567
567
|
'aria-required': String(ariaRequiredValue),
|
|
568
|
-
}), autofocus: this.autofocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus, "data-scope": "date-range" }), index.h("div", { key: '
|
|
568
|
+
}), autofocus: this.autofocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus, "data-scope": "date-range" }), index.h("div", { key: '8f84668eb682306ff6751044fb715dfbccc38e6b', class: "range-separator" }), index.h("input", { key: '1e7045f9501a04e14d4f726171abd07cbce0e004', id: this.endInputId, type: "text", placeholder: this.endPlaceholder ||
|
|
569
569
|
this.convertToInputmaskFormat(this.dateFormat), name: this.endName, disabled: this.disabled, readOnly: this.readonly, required: useNativeRequired ? this.required : undefined, ...(ariaRequiredValue !== undefined && {
|
|
570
570
|
'aria-required': String(ariaRequiredValue),
|
|
571
|
-
}), value: this.endValue, onInput: this.handleEndInput, onFocus: this.handleFocus, "data-scope": "date-range" })), this.error && (index.h("nv-icon", { key: '
|
|
572
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
573
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
571
|
+
}), value: this.endValue, onInput: this.handleEndInput, onFocus: this.handleFocus, "data-scope": "date-range" })), this.error && (index.h("nv-icon", { key: 'a82a7ea123f900eda3eb82cb1a70796ffc0248da', name: "alert-circle", class: "validation", size: "md" })), this.success && (index.h("nv-icon", { key: '176e92373cb84d7cd873637818eba98b51a69646', name: "circle-check", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: 'd7069a77fa7fdca3b8202fed9fdfe8af082fdaf6', class: "toggle-calendar-icon", name: "calendar", size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide calendar' : 'Show calendar', onClick: this.toggleCalendar, tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '1ef543db2799a3242ed0a9ef8a5058b002fb885b', name: "after-input" })), index.h("div", { key: 'b47f6bbc98772ba7b0aa680737bf278b716aa237', slot: "content" }, index.h("nv-calendar", { key: '6008dda7daff3c40f20475996f8215ae8b6c457a', ref: el => (this.calendarElement = el), onRangeDateChange: this.handleRangeDateChange.bind(this), onValueChanged: this.handleCalendarValueChanged.bind(this), onSingleDateChange: this.handleCancelDateChange.bind(this), dateFormat: this.dateFormat, value: this.value, 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", "data-prevent-navigation": "true" }))), ((this.description && this.description.length > 0) ||
|
|
572
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'bd3c9e7650cea0ae6e30418c1ed15e2e21241576', class: "description" }, index.h("slot", { key: 'c87eb17e1b5624c7d3b5b31644919c4a473ea135', name: "description" }, this.description))), (this.errorDescription ||
|
|
573
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: 'e9cb169a418080a3c374f5d36fdc7c09845a52f6', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (index.h("slot", { name: "error-description" })) : (this.errorDescription))), index.h("slot", { key: 'ea7d3580a7007bcdc85eb096ccdbf683d7a1d906' })));
|
|
574
574
|
}
|
|
575
575
|
get el() { return index.getElement(this); }
|
|
576
576
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
var i18n_utilsCR9MpYzU = require('./i18n.utils-CR9MpYzU-ku0bScip.js');
|
|
5
5
|
var v4BdYh22OP = require('./v4-BdYh22OP-C1vaJ4yP.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -655,11 +655,11 @@ const NvFielddropdown = class {
|
|
|
655
655
|
? ariaRequiredAttrValue === 'true' || ariaRequiredAttrValue === ''
|
|
656
656
|
: undefined;
|
|
657
657
|
const useNativeRequired = this.required && (!useAriaRequired || ariaRequiredValue === true);
|
|
658
|
-
return (index.h(index.Host, { key: '
|
|
658
|
+
return (index.h(index.Host, { key: 'b41a60470da47b175fac17a8bc88b8719b56cc14', role: "combobox", "aria-expanded": this.open.toString(), "aria-haspopup": "listbox", "aria-label": this.label }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'adf93f21febb5404b931b821595eed91b24da55b', htmlFor: this.inputId, onClick: this.syncToggleDropdown.bind(this) }, index.h("slot", { key: 'c8b8256e6e06695a3b6778cec0a696bc0713e6dc', name: "label" }, this.label))), index.h("nv-popover", { key: '66895b00c801a5c1889da8bc73d9f519d3fe4b70', triggerMode: "controlled", placement: "bottom-start", open: this.open, onOpenChanged: e => this.openChanged.emit(e.detail) }, index.h("div", { key: 'e468646cb1d08f7f26a8c427040d14f843279fd0', class: "input-wrapper", slot: "trigger" }, index.h("slot", { key: 'd5567eb82b1e9230507963ed7ca76656f1415855', name: "before-input" }), index.h("div", { key: '872a8f01aeba95f52209e8dbe2bb1cff3c65c46f', class: "input-container" }, index.h("slot", { key: 'f8038d509899b3dbe895c9f042f39a1274d1b681', name: "leading-input" }), this.filterable || this.disabled || this.readonly ? (index.h("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, required: useNativeRequired ? this.required : undefined, ...(ariaRequiredValue !== undefined && {
|
|
659
659
|
'aria-required': String(ariaRequiredValue),
|
|
660
|
-
}), disabled: this.disabled, readOnly: this.readonly, onInput: this.handleFilterInput })) : (index.h("p", { "data-scope": "focusable", id: this.inputId, ref: el => (this.selectElement = el), class: "non-filterable-text", tabIndex: this.disabled ? -1 : 0 }, this.getSelectedLabel() || this.value || this.placeholder)), this.filterable && this.filterText && (index.h("nv-iconbutton", { key: '
|
|
661
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
662
|
-
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '
|
|
660
|
+
}), disabled: this.disabled, readOnly: this.readonly, onInput: this.handleFilterInput })) : (index.h("p", { "data-scope": "focusable", id: this.inputId, ref: el => (this.selectElement = el), class: "non-filterable-text", tabIndex: this.disabled ? -1 : 0 }, this.getSelectedLabel() || this.value || this.placeholder)), this.filterable && this.filterText && (index.h("nv-iconbutton", { key: 'b5b48972a2529eee9dd2fd68871859bf289d472a', name: "x", size: "md", emphasis: "lower", class: "clear-button", onClick: this.clearFilter.bind(this), "aria-label": "Clear input" })), this.error && (index.h("nv-icon", { key: '2cca314634242b1e697ba2b26298b095f0742582', name: "alert-circle", class: "validation", size: "md" })), index.h("nv-iconbutton", { key: 'eac277cbb66ac82547d5c4c6a6aec3443f2fb593', "data-scope": "toggle-dropdown", ref: el => (this.toggleElement = el), name: this.open ? 'chevron-top' : 'chevron-down', size: "md", emphasis: "lower", "aria-label": this.open ? 'Hide dropdown' : 'Show dropdown', onClick: this.syncToggleDropdown.bind(this), tabIndex: this.disabled ? -1 : 0 })), index.h("slot", { key: '25f05b5425937ca89e1c8c4f2be9fbde2e39959a', name: "after-input" })), index.h("div", { key: '064a1701a6f4678e1443d7e028f3681e2e41dfd9', slot: "content", style: this.maxHeight ? { maxHeight: this.maxHeight } : {} }, this.options?.length > 0 && (index.h("ul", { key: 'a9e489d4eb5551044f43a5aacaed94457ddbcacc' }, this.options.map(option => (index.h("nv-fielddropdownitem", { label: option.label, value: option.value, disabled: option.disabled, selected: option.value === this.value }))))), index.h("slot", { key: '4dda850901378ea3416260e1c0adda7af9a153c7', name: "content" }))), (this.description ||
|
|
661
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: 'a878da5beb9572bc8d3a318d3879517ee84c7bac', class: "description" }, index.h("slot", { key: '04618e824a1b5d67a4ccbe70f13d9ca818f607bd', name: "description" }, this.description))), (this.errorDescription ||
|
|
662
|
+
this.el.querySelector('[slot="error-description"]')) && (index.h("div", { key: '007314310806e8dcc5b2b48af65bc66de4ba9f7a', hidden: !this.error, class: "error-description" }, index.h("slot", { key: '237a4e37e5869f8b66c631559027ec6551005ec6', name: "error-description" }, this.errorDescription)))));
|
|
663
663
|
}
|
|
664
664
|
static get formAssociated() { return true; }
|
|
665
665
|
get el() { return index.getElement(this); }
|
package/dist/cjs/{nv-fielddropdownitem.entry-DKG1bO2H.js → nv-fielddropdownitem.entry-Crtfwlx7.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -60,7 +60,7 @@ const NvFielddropdownitem = class {
|
|
|
60
60
|
/****************************************************************************/
|
|
61
61
|
//#region RENDER
|
|
62
62
|
render() {
|
|
63
|
-
return (index.h(index.Host, { key: '
|
|
63
|
+
return (index.h(index.Host, { key: '40733c82ff3f46a260e536b8a5cfe95a06a5ef4c', role: "menuitem", tabindex: '-1', onClick: this.handleSelected }, index.h("slot", { key: 'a0fcbde0a3d70e8493d9c38428ea14d36d71fb84' }, index.h("div", { key: 'a88818483f7fe88d5e7d562bccf9c247c8189442', class: "text-wrapper" }, index.h("span", { key: '80cbccdb3cf0d86c22130a399f6cf70c7bc8c32b', "data-scope": "text" }, this.label))), this.selected && (index.h("nv-icon", { key: 'b89ab45c47eb08b37c29f93c78036121a33ab041', name: "check", "aria-hidden": "true", "data-scope": "selected" }))));
|
|
64
64
|
}
|
|
65
65
|
get el() { return index.getElement(this); }
|
|
66
66
|
};
|
package/dist/cjs/{nv-fieldmultiselect.entry-B4As0NxI.js → nv-fieldmultiselect.entry-C2uoE60e.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-Kxp9mv-Q.js');
|
|
4
4
|
var i18n_utilsCR9MpYzU = require('./i18n.utils-CR9MpYzU-ku0bScip.js');
|
|
5
5
|
var v4BdYh22OP = require('./v4-BdYh22OP-C1vaJ4yP.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|