@nova-design-system/nova-webcomponents 3.3.0 → 3.4.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-c56424e5.js +8 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +20 -4
- package/dist/cjs/nv-calendar.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +44 -11
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +28 -5
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldradio.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldselect.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldslider.cjs.entry.js +7 -7
- package/dist/cjs/nv-fieldslider.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldtime.cjs.entry.js +9 -9
- package/dist/cjs/nv-icon.cjs.entry.js +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +2 -2
- package/dist/cjs/nv-menu.cjs.entry.js +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-row.cjs.entry.js +1 -1
- package/dist/cjs/nv-stack.cjs.entry.js +1 -1
- package/dist/cjs/nv-table.cjs.entry.js +2 -2
- package/dist/cjs/nv-toggle.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js +20 -4
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +88 -2
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +89 -10
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js.map +1 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +31 -4
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +8 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -3
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +3 -3
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -5
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -3
- package/dist/collection/components/nv-fieldslider/partials/field-input.js +1 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js.map +1 -1
- package/dist/collection/components/nv-fieldslider/styles/nv-fieldslider.css +9 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +3 -3
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +9 -9
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +1 -1
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +3 -3
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +2 -2
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/templates/navigation.docs.js +1 -1
- package/dist/collection/templates/navigation.docs.js.map +1 -1
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +2 -2
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-datagrid.js +53 -18
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-dialog.js +4 -4
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-fielddate.js +6 -6
- package/dist/components/nv-fielddaterange.js +36 -12
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +5 -5
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +5 -5
- package/dist/components/nv-fieldnumber.js +1 -180
- package/dist/components/nv-fieldnumber.js.map +1 -1
- package/dist/components/nv-fieldpassword.js +6 -6
- package/dist/components/nv-fieldradio.js +3 -3
- package/dist/components/nv-fieldselect.js +8 -8
- package/dist/components/nv-fieldslider.js +27 -9
- package/dist/components/nv-fieldslider.js.map +1 -1
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtextarea.js +3 -3
- package/dist/components/nv-fieldtime.js +13 -13
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-loader.js +1 -1
- package/dist/components/nv-menu.js +4 -4
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-table.js +2 -2
- package/dist/components/nv-toggle.js +2 -2
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-eabbc885.js → p-131e5140.js} +3 -3
- package/dist/components/{p-eabbc885.js.map → p-131e5140.js.map} +1 -1
- package/dist/components/{p-95a7581c.js → p-3f567fde.js} +4 -4
- package/dist/components/{p-95a7581c.js.map → p-3f567fde.js.map} +1 -1
- package/dist/components/{p-7935c1cb.js → p-3f58525b.js} +5 -5
- package/dist/components/{p-7935c1cb.js.map → p-3f58525b.js.map} +1 -1
- package/dist/components/{p-e28c4707.js → p-953d8b4d.js} +2 -2
- package/dist/components/{p-e28c4707.js.map → p-953d8b4d.js.map} +1 -1
- package/dist/components/{p-b6d858b2.js → p-9f1e8ef3.js} +2 -2
- package/dist/components/{p-b6d858b2.js.map → p-9f1e8ef3.js.map} +1 -1
- package/dist/components/{p-5e90b9b8.js → p-a0d7e0cd.js} +21 -5
- package/dist/components/p-a0d7e0cd.js.map +1 -0
- package/dist/components/{p-8d92f0e1.js → p-a1438b39.js} +3 -3
- package/dist/components/{p-8d92f0e1.js.map → p-a1438b39.js.map} +1 -1
- package/dist/components/{p-c9006520.js → p-a189d074.js} +4 -4
- package/dist/components/{p-c9006520.js.map → p-a189d074.js.map} +1 -1
- package/dist/components/p-a29a9396.js +184 -0
- package/dist/components/p-a29a9396.js.map +1 -0
- package/dist/components/{p-9fa0de38.js → p-b207be02.js} +2 -2
- package/dist/components/{p-9fa0de38.js.map → p-b207be02.js.map} +1 -1
- package/dist/components/{p-5ee4015d.js → p-dcaf9010.js} +2 -2
- package/dist/components/{p-5ee4015d.js.map → p-dcaf9010.js.map} +1 -1
- package/dist/components/{p-bb6d1e4e.js → p-dec6fc68.js} +2 -2
- package/dist/components/{p-bb6d1e4e.js.map → p-dec6fc68.js.map} +1 -1
- package/dist/components/{p-2ae214d2.js → p-df465ef2.js} +2 -2
- package/dist/components/{p-2ae214d2.js.map → p-df465ef2.js.map} +1 -1
- package/dist/components/{p-3e32b5a1.js → p-f7c7a406.js} +3 -3
- package/dist/components/{p-3e32b5a1.js.map → p-f7c7a406.js.map} +1 -1
- package/dist/esm/index-a1936cd0.js +8 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-calendar.entry.js +20 -4
- package/dist/esm/nv-calendar.entry.js.map +1 -1
- package/dist/esm/nv-datagrid.entry.js +44 -11
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +28 -5
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +3 -3
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +3 -3
- package/dist/esm/nv-fieldradio.entry.js +3 -3
- package/dist/esm/nv-fieldselect.entry.js +5 -5
- package/dist/esm/nv-fieldslider.entry.js +7 -7
- package/dist/esm/nv-fieldslider.entry.js.map +1 -1
- package/dist/esm/nv-fieldtext.entry.js +3 -3
- package/dist/esm/nv-fieldtextarea.entry.js +3 -3
- package/dist/esm/nv-fieldtime.entry.js +9 -9
- package/dist/esm/nv-icon.entry.js +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +2 -2
- package/dist/esm/nv-menu.entry.js +1 -1
- package/dist/esm/nv-menuitem.entry.js +1 -1
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-row.entry.js +1 -1
- package/dist/esm/nv-stack.entry.js +1 -1
- package/dist/esm/nv-table.entry.js +2 -2
- package/dist/esm/nv-toggle.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/{p-45459dbb.entry.js → p-01164e86.entry.js} +2 -2
- package/dist/native/{p-dc7dd7f3.entry.js → p-0410facd.entry.js} +2 -2
- package/dist/native/p-0410facd.entry.js.map +1 -0
- package/dist/native/{p-58bb90ad.entry.js → p-0ec2d430.entry.js} +2 -2
- package/dist/native/{p-58bb90ad.entry.js.map → p-0ec2d430.entry.js.map} +1 -1
- package/dist/native/{p-ed6019fe.entry.js → p-14895e84.entry.js} +2 -2
- package/dist/native/p-14895e84.entry.js.map +1 -0
- package/dist/native/{p-fdea17ce.entry.js → p-24659a85.entry.js} +2 -2
- package/dist/native/{p-838f7842.entry.js → p-2b1e7675.entry.js} +2 -2
- package/dist/native/{p-d040bd61.entry.js → p-2bc7d66a.entry.js} +2 -2
- package/dist/native/{p-26cf4938.entry.js → p-2c3fb8cc.entry.js} +2 -2
- package/dist/native/p-2c3fb8cc.entry.js.map +1 -0
- package/dist/native/{p-83288db0.entry.js → p-55df8bf9.entry.js} +2 -2
- package/dist/native/{p-5b6c59e0.entry.js → p-7ba03c5d.entry.js} +2 -2
- package/dist/native/p-82c4bf56.entry.js +2 -0
- package/dist/native/p-82c4bf56.entry.js.map +1 -0
- package/dist/native/{p-8fb4e5c0.entry.js → p-9850c1d7.entry.js} +2 -2
- package/dist/native/{p-b8f2c1e7.entry.js → p-a0505695.entry.js} +2 -2
- package/dist/native/p-a0505695.entry.js.map +1 -0
- package/dist/native/{p-f94d7054.entry.js → p-a30206c1.entry.js} +2 -2
- package/dist/native/{p-3817efb2.entry.js → p-c7b8b7ba.entry.js} +2 -2
- package/dist/native/p-c92d55f9.entry.js +2 -0
- package/dist/native/{p-64a76565.entry.js → p-c9d3de9c.entry.js} +2 -2
- package/dist/native/{p-e2c1992e.entry.js → p-cbca9326.entry.js} +2 -2
- package/dist/native/{p-60c64f2b.entry.js → p-ec87200a.entry.js} +2 -2
- package/dist/native/{p-d53e8795.entry.js → p-f377b285.entry.js} +2 -2
- package/dist/native/{p-050d6c6c.entry.js → p-ff0f3794.entry.js} +2 -2
- package/dist/types/components/nv-datagrid/nv-datagrid.d.ts +106 -2
- package/dist/types/components/nv-fielddaterange/nv-fielddaterange.d.ts +2 -0
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +1 -0
- package/dist/types/components.d.ts +138 -0
- package/hydrate/index.js +145 -71
- package/hydrate/index.mjs +145 -71
- package/package.json +10 -2
- package/dist/components/p-5e90b9b8.js.map +0 -1
- package/dist/native/p-26cf4938.entry.js.map +0 -1
- package/dist/native/p-4f9cdf0b.entry.js +0 -2
- package/dist/native/p-abc251aa.entry.js +0 -2
- package/dist/native/p-abc251aa.entry.js.map +0 -1
- package/dist/native/p-b8f2c1e7.entry.js.map +0 -1
- package/dist/native/p-dc7dd7f3.entry.js.map +0 -1
- package/dist/native/p-ed6019fe.entry.js.map +0 -1
- /package/dist/native/{p-45459dbb.entry.js.map → p-01164e86.entry.js.map} +0 -0
- /package/dist/native/{p-fdea17ce.entry.js.map → p-24659a85.entry.js.map} +0 -0
- /package/dist/native/{p-838f7842.entry.js.map → p-2b1e7675.entry.js.map} +0 -0
- /package/dist/native/{p-d040bd61.entry.js.map → p-2bc7d66a.entry.js.map} +0 -0
- /package/dist/native/{p-83288db0.entry.js.map → p-55df8bf9.entry.js.map} +0 -0
- /package/dist/native/{p-5b6c59e0.entry.js.map → p-7ba03c5d.entry.js.map} +0 -0
- /package/dist/native/{p-8fb4e5c0.entry.js.map → p-9850c1d7.entry.js.map} +0 -0
- /package/dist/native/{p-f94d7054.entry.js.map → p-a30206c1.entry.js.map} +0 -0
- /package/dist/native/{p-3817efb2.entry.js.map → p-c7b8b7ba.entry.js.map} +0 -0
- /package/dist/native/{p-4f9cdf0b.entry.js.map → p-c92d55f9.entry.js.map} +0 -0
- /package/dist/native/{p-64a76565.entry.js.map → p-c9d3de9c.entry.js.map} +0 -0
- /package/dist/native/{p-e2c1992e.entry.js.map → p-cbca9326.entry.js.map} +0 -0
- /package/dist/native/{p-60c64f2b.entry.js.map → p-ec87200a.entry.js.map} +0 -0
- /package/dist/native/{p-d53e8795.entry.js.map → p-f377b285.entry.js.map} +0 -0
- /package/dist/native/{p-050d6c6c.entry.js.map → p-ff0f3794.entry.js.map} +0 -0
package/hydrate/index.js
CHANGED
|
@@ -5958,10 +5958,26 @@ function parseDate(dateInput, dateFormat) {
|
|
|
5958
5958
|
parsed = dayjs(dateInput, dateFormat, true);
|
|
5959
5959
|
}
|
|
5960
5960
|
if (!parsed.isValid()) {
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5961
|
+
// Check if the date input contains placeholder characters (incomplete input from Inputmask)
|
|
5962
|
+
// This specifically targets partial dates being typed with placeholder characters
|
|
5963
|
+
const hasPlaceholderChars = typeof dateInput === 'string' &&
|
|
5964
|
+
(dateInput.includes('_') ||
|
|
5965
|
+
dateInput.includes('-_') ||
|
|
5966
|
+
dateInput.includes('/_') ||
|
|
5967
|
+
dateInput.includes('._'));
|
|
5968
|
+
// Check if it looks like a partial date being typed (starts with valid pattern)
|
|
5969
|
+
const looksLikePartialDate = typeof dateInput === 'string' &&
|
|
5970
|
+
dateInput.length < dateFormat.length &&
|
|
5971
|
+
/^[\d\-/.]*$/.test(dateInput) && // Only contains digits and date separators
|
|
5972
|
+
dateInput.length > 0;
|
|
5973
|
+
const isIncompleteInput = hasPlaceholderChars || looksLikePartialDate;
|
|
5974
|
+
// Only log error if it's not an incomplete input (to avoid spam during typing)
|
|
5975
|
+
if (!isIncompleteInput) {
|
|
5976
|
+
console.error(`Parsing error:`, {
|
|
5977
|
+
dateInput,
|
|
5978
|
+
dateFormat: dateFormat,
|
|
5979
|
+
});
|
|
5980
|
+
}
|
|
5965
5981
|
return null;
|
|
5966
5982
|
}
|
|
5967
5983
|
return parsed.toDate();
|
|
@@ -10554,6 +10570,7 @@ class NvDatagrid {
|
|
|
10554
10570
|
registerInstance(this, hostRef);
|
|
10555
10571
|
this.action = createEvent(this, "action", 7);
|
|
10556
10572
|
this.selectedRows = createEvent(this, "selectedRows", 7);
|
|
10573
|
+
this.stateChanged = createEvent(this, "stateChanged", 7);
|
|
10557
10574
|
this.templateCache = new Map();
|
|
10558
10575
|
this.headerTemplateCache = new Map();
|
|
10559
10576
|
this.minPageIndex = 1;
|
|
@@ -10565,7 +10582,7 @@ class NvDatagrid {
|
|
|
10565
10582
|
this.globalFilterSearchTerm = '';
|
|
10566
10583
|
this.columnData = [];
|
|
10567
10584
|
this.paginationState = null;
|
|
10568
|
-
this.
|
|
10585
|
+
this.sortingState = [];
|
|
10569
10586
|
this.rowSelectionState = {};
|
|
10570
10587
|
//#endregion STATES
|
|
10571
10588
|
/****************************************************************************/
|
|
@@ -10645,6 +10662,10 @@ class NvDatagrid {
|
|
|
10645
10662
|
* Whether to enable row selection for the data grid.
|
|
10646
10663
|
*/
|
|
10647
10664
|
this.enableRowSelection = false;
|
|
10665
|
+
/**
|
|
10666
|
+
* The overall state
|
|
10667
|
+
*/
|
|
10668
|
+
this.state = null;
|
|
10648
10669
|
this.debouncedFilter = debounce$1((value) => {
|
|
10649
10670
|
var _a;
|
|
10650
10671
|
(_a = this.table) === null || _a === void 0 ? void 0 : _a.setGlobalFilter(value);
|
|
@@ -10922,10 +10943,10 @@ class NvDatagrid {
|
|
|
10922
10943
|
if (this.enableSorting) {
|
|
10923
10944
|
tableOptions.getSortedRowModel = getSortedRowModel();
|
|
10924
10945
|
tableOptions.enableSorting = this.enableSorting;
|
|
10925
|
-
tableOptions.state.sorting = this.
|
|
10946
|
+
tableOptions.state.sorting = this.sortingState;
|
|
10926
10947
|
tableOptions.onSortingChange = updater => {
|
|
10927
|
-
const newSorting = typeof updater === 'function' ? updater(this.
|
|
10928
|
-
this.
|
|
10948
|
+
const newSorting = typeof updater === 'function' ? updater(this.sortingState) : updater;
|
|
10949
|
+
this.sortingState = newSorting; // Will automatically trigger the searchTerm watcher and update the table
|
|
10929
10950
|
};
|
|
10930
10951
|
}
|
|
10931
10952
|
if (this.enableRowSelection) {
|
|
@@ -11463,7 +11484,7 @@ class NvDatagrid {
|
|
|
11463
11484
|
this.table.options.state.pagination = newValue;
|
|
11464
11485
|
}
|
|
11465
11486
|
}
|
|
11466
|
-
|
|
11487
|
+
handleSortingState(newValue) {
|
|
11467
11488
|
if (!this.table) {
|
|
11468
11489
|
console.warn('Table is not initialized yet.');
|
|
11469
11490
|
return;
|
|
@@ -11496,6 +11517,33 @@ class NvDatagrid {
|
|
|
11496
11517
|
this.table.options.state.rowSelection = newValue;
|
|
11497
11518
|
}
|
|
11498
11519
|
}
|
|
11520
|
+
handleStateChange(newValue) {
|
|
11521
|
+
if (newValue) {
|
|
11522
|
+
// Only update internal state if values are different to avoid loops
|
|
11523
|
+
if (this.globalFilterSearchTerm !== newValue.globalFilterSearchTerm) {
|
|
11524
|
+
this.globalFilterSearchTerm = newValue.globalFilterSearchTerm;
|
|
11525
|
+
}
|
|
11526
|
+
if (JSON.stringify(this.paginationState) !==
|
|
11527
|
+
JSON.stringify(newValue.paginationState)) {
|
|
11528
|
+
this.paginationState = newValue.paginationState;
|
|
11529
|
+
}
|
|
11530
|
+
if (JSON.stringify(this.sortingState) !==
|
|
11531
|
+
JSON.stringify(newValue.sortingState)) {
|
|
11532
|
+
this.sortingState = newValue.sortingState;
|
|
11533
|
+
}
|
|
11534
|
+
}
|
|
11535
|
+
}
|
|
11536
|
+
// Add watchers for internal state to emit changes
|
|
11537
|
+
handleInternalStateChange() {
|
|
11538
|
+
// Only emit if the state has actually changed
|
|
11539
|
+
const newState = {
|
|
11540
|
+
globalFilterSearchTerm: this.globalFilterSearchTerm,
|
|
11541
|
+
paginationState: this.paginationState,
|
|
11542
|
+
sortingState: this.sortingState,
|
|
11543
|
+
};
|
|
11544
|
+
// Emit the new state and let the parent component update the prop
|
|
11545
|
+
this.stateChanged.emit(newState);
|
|
11546
|
+
}
|
|
11499
11547
|
//#endregion WATCHERS
|
|
11500
11548
|
/****************************************************************************/
|
|
11501
11549
|
//#region LIFECYCLE
|
|
@@ -11526,7 +11574,7 @@ class NvDatagrid {
|
|
|
11526
11574
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
11527
11575
|
? []
|
|
11528
11576
|
: (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
|
|
11529
|
-
return (hAsync(Host, { key: '
|
|
11577
|
+
return (hAsync(Host, { key: '95d3cea67d17f1aab33e7bc054161760e6d6df54' }, hAsync("div", { key: 'b6cbdf841ab4ba64d2ccbf49fc6caf9ef082c7ee', class: "hidden" }, hAsync("slot", { key: '18dde7efeec5c1bc38a044a683910db41f70e22d' })), hAsync("slot", { key: 'd3ffb496e938ee3c91c5a7422357cbee90100d84', name: "before" }), this.enableGlobalFilter && this.table && (hAsync("div", { key: '0ab19e6c1c585d4e77004ec9238dba3baff83614', class: `search-container justify-${this.globalFilterPosition}` }, hAsync("nv-fieldtext", { key: '76722d31da818102347278c7b62a93deaa9c29a1', value: this.globalFilterSearchTerm, onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns..." }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (hAsync("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (hAsync("div", null, hAsync("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (hAsync("thead", null, this.parsedColumns.length > 0 && headerGroups
|
|
11530
11578
|
? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (hAsync("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
|
|
11531
11579
|
return this.getHeaderCell(header);
|
|
11532
11580
|
}))))
|
|
@@ -11537,7 +11585,7 @@ class NvDatagrid {
|
|
|
11537
11585
|
return (hAsync("td", { key: cell.id, "data-row-id": rowId }, this.flexRender(cell.column.columnDef.cell, cell.getContext())));
|
|
11538
11586
|
})));
|
|
11539
11587
|
}))), this.table && this.enableRowSelection ? (hAsync("tfoot", null, hAsync("tr", null, hAsync("td", { colSpan: 20 }, this.enableRowSelection && this.table ? (hAsync("div", null, this.rowSelectionState &&
|
|
11540
|
-
Object.keys(this.rowSelectionState).length > 0 ? (hAsync("span", null, Object.keys(this.rowSelectionState).length, " of", ' ', ((_e = (_d = this.table.getPreFilteredRowModel()) === null || _d === void 0 ? void 0 : _d.rows) === null || _e === void 0 ? void 0 : _e.length) || 0, ' ', "Total Rows Selected")) : (hAsync("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), hAsync("slot", { key: '
|
|
11588
|
+
Object.keys(this.rowSelectionState).length > 0 ? (hAsync("span", null, Object.keys(this.rowSelectionState).length, " of", ' ', ((_e = (_d = this.table.getPreFilteredRowModel()) === null || _d === void 0 ? void 0 : _d.rows) === null || _e === void 0 ? void 0 : _e.length) || 0, ' ', "Total Rows Selected")) : (hAsync("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), hAsync("slot", { key: 'ee4cdbb4683a3da20154fd60580d694d8f78feb8', name: "after" })));
|
|
11541
11589
|
}
|
|
11542
11590
|
get el() { return getElement(this); }
|
|
11543
11591
|
static get watchers() { return {
|
|
@@ -11545,11 +11593,12 @@ class NvDatagrid {
|
|
|
11545
11593
|
"data": ["parseData"],
|
|
11546
11594
|
"parsedColumns": ["handleParsedChange"],
|
|
11547
11595
|
"parsedData": ["handleParsedChange"],
|
|
11548
|
-
"globalFilterSearchTerm": ["handleGlobalFilterSearchTerm"],
|
|
11549
|
-
"paginationState": ["handlePaginationState"],
|
|
11550
|
-
"
|
|
11596
|
+
"globalFilterSearchTerm": ["handleGlobalFilterSearchTerm", "handleInternalStateChange"],
|
|
11597
|
+
"paginationState": ["handlePaginationState", "handleInternalStateChange"],
|
|
11598
|
+
"sortingState": ["handleSortingState", "handleInternalStateChange"],
|
|
11551
11599
|
"pageSize": ["handlePageSize"],
|
|
11552
|
-
"rowSelectionState": ["handleRowSelectionState"]
|
|
11600
|
+
"rowSelectionState": ["handleRowSelectionState"],
|
|
11601
|
+
"state": ["handleStateChange"]
|
|
11553
11602
|
}; }
|
|
11554
11603
|
static get style() { return NvDatagridStyle0; }
|
|
11555
11604
|
static get cmpMeta() { return {
|
|
@@ -11569,13 +11618,14 @@ class NvDatagrid {
|
|
|
11569
11618
|
"pageSizes": [16],
|
|
11570
11619
|
"enableSorting": [516, "enable-sorting"],
|
|
11571
11620
|
"enableRowSelection": [516, "enable-row-selection"],
|
|
11621
|
+
"state": [16],
|
|
11572
11622
|
"table": [32],
|
|
11573
11623
|
"parsedColumns": [32],
|
|
11574
11624
|
"parsedData": [32],
|
|
11575
11625
|
"globalFilterSearchTerm": [32],
|
|
11576
11626
|
"columnData": [32],
|
|
11577
11627
|
"paginationState": [32],
|
|
11578
|
-
"
|
|
11628
|
+
"sortingState": [32],
|
|
11579
11629
|
"rowSelectionState": [32]
|
|
11580
11630
|
},
|
|
11581
11631
|
"$listeners$": undefined,
|
|
@@ -17349,18 +17399,41 @@ class NvFielddaterange {
|
|
|
17349
17399
|
// Use the unified parsing method instead of JSON.parse
|
|
17350
17400
|
this.parseUnifiedValue(newValue);
|
|
17351
17401
|
}
|
|
17402
|
+
onOpenChanged(newValue) {
|
|
17403
|
+
if (this.contentRef) {
|
|
17404
|
+
if (newValue) {
|
|
17405
|
+
this.contentRef.style.transition = 'none';
|
|
17406
|
+
this.contentRef.style.maxHeight = '0px';
|
|
17407
|
+
requestAnimationFrame(() => {
|
|
17408
|
+
this.contentRef.style.transition =
|
|
17409
|
+
'max-height 0.18s cubic-bezier(0.4,0,0.2,1)';
|
|
17410
|
+
this.contentRef.style.maxHeight = this.contentRef.scrollHeight + 'px';
|
|
17411
|
+
});
|
|
17412
|
+
}
|
|
17413
|
+
else {
|
|
17414
|
+
this.contentRef.style.transition = 'none';
|
|
17415
|
+
this.contentRef.style.maxHeight = this.contentRef.scrollHeight + 'px';
|
|
17416
|
+
requestAnimationFrame(() => {
|
|
17417
|
+
this.contentRef.style.transition =
|
|
17418
|
+
'max-height 0.18s cubic-bezier(0.4,0,0.2,1)';
|
|
17419
|
+
this.contentRef.style.maxHeight = '0px';
|
|
17420
|
+
});
|
|
17421
|
+
}
|
|
17422
|
+
}
|
|
17423
|
+
}
|
|
17352
17424
|
//#endregion EVENTS
|
|
17353
17425
|
/****************************************************************************/
|
|
17354
17426
|
//#region RENDER
|
|
17355
17427
|
render() {
|
|
17356
|
-
return (hAsync(Host, { key: '
|
|
17357
|
-
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '
|
|
17358
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
17359
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
17428
|
+
return (hAsync(Host, { key: '5f3b1fe7aee232ce13bbff470db257f723aef978' }, ((this.label && this.label.length > 0) ||
|
|
17429
|
+
this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '663fac675ac0fc443fd7e671d793bdfcb9f52d46', htmlFor: this.startInputId }, hAsync("slot", { key: 'afdd8f49f12d5f3b476dee59b9a38439ff9215c5', name: "label" }, this.label))), hAsync("nv-popover", { key: '1b6cb3b7dcabf572d580594fcf7d695b6d6ee66f', ref: el => (this.popoverElement = el), id: this.popoverId, triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: 'd363e153e04eb0af7eeefef57dff6973a06f646d', slot: "trigger", class: "input-wrapper" }, hAsync("slot", { key: '5e638ea73f83fb096a9581d3ef8bc11616e19acb', name: "before-input" }), hAsync("div", { key: '6dcde890ca01b12a512f3e42eb7de2acc43562ee', class: "input-container" }, hAsync("slot", { key: 'ce6acc334efc528965d7e957b6c5d3c48a0ee7d4', name: "leading-input" }), hAsync("div", { key: '301b88ba035cc5ebe5ccb7a50a81391dcdf9c212', class: "range-inputs" }, hAsync("input", { key: '385554f08afb6d0f3c276fa446edb7d01d756d5d', id: this.startInputId, type: "text", placeholder: this.startPlaceholder, name: this.startName, disabled: this.disabled, readOnly: this.readonly, required: this.required, autofocus: this.autofocus, value: this.startValue, onInput: this.handleStartInput, onFocus: this.handleFocus, "data-scope": "date-range" }), hAsync("svg", { key: 'f8c024bc6e933575dce8cc21213dbe719ffece28', 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" }, hAsync("path", { key: '0c942f98b933530f9a98f40d201cd4004781070d', stroke: "none", d: "M0 0h24v24H0z", fill: "none" }), hAsync("path", { key: '6b719ff53b0f8ded007954d110a26df367de8d76', d: "M18 9l3 3l-3 3" }), hAsync("path", { key: 'dbc9d98a1123f2516e125fe368422059ee9de216', d: "M15 12h6" }), hAsync("path", { key: 'bb450d42a867c08ba586de71750d3142576756fa', d: "M6 9l-3 3l3 3" }), hAsync("path", { key: 'aced7f97e1d65c069a0831fc1fb41de0e5f14216', d: "M3 12h6" })), hAsync("input", { key: 'a6182dd71ba14944918aef3c69c1ac81ecba3892', 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, "data-scope": "date-range" })), this.error && (hAsync("nv-icon", { key: '4470222fe55588e441d3a41cfbcec0655616f1d6', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '5a6565f2c6fb8a4148f87ecbad54da0bb7ae1acc', name: "circle-check", class: "validation", size: "md" })), hAsync("nv-iconbutton", { key: '229ef4753a605ac0b7241d92f6157367d86dbd92', 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 })), hAsync("slot", { key: '15de0c662d97751a16ea994f2c5678fa5bb333c0', name: "after-input" })), hAsync("div", { key: 'cc165993c4033b5536649001cf2f8989ef9b41ef', slot: "content" }, hAsync("nv-calendar", { key: '0a7c76e9a16504431ea0428278c940b9e97e7117', ref: el => (this.calendarElement = el), 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) ||
|
|
17430
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '2c7164560b8d59abca3759ae3db06bd3820fd897', class: "description" }, hAsync("slot", { key: 'b84ed04584a0e4a4e33682503c588d70e5cc5735', name: "description" }, this.description))), (this.errorDescription ||
|
|
17431
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '09aee3d407a9b126ca85ec82306430b4cb6ce71d', hidden: !this.error, class: "error-description" }, this.el.querySelector('[slot="error-description"]') ? (hAsync("slot", { name: "error-description" })) : (this.errorDescription))), hAsync("slot", { key: 'aa03e8616062be05d9947fa697016483bdfd9fdc' })));
|
|
17360
17432
|
}
|
|
17361
17433
|
get el() { return getElement(this); }
|
|
17362
17434
|
static get watchers() { return {
|
|
17363
|
-
"value": ["handleValueChange"]
|
|
17435
|
+
"value": ["handleValueChange"],
|
|
17436
|
+
"open": ["onOpenChanged"]
|
|
17364
17437
|
}; }
|
|
17365
17438
|
static get style() { return NvFielddaterangeStyle0; }
|
|
17366
17439
|
static get cmpMeta() { return {
|
|
@@ -18980,6 +19053,7 @@ var NvFieldnumberStyle0 = nvFieldnumberCss;
|
|
|
18980
19053
|
|
|
18981
19054
|
/**
|
|
18982
19055
|
* @slot leading-input - Content to be placed before the input text, within the input container.
|
|
19056
|
+
* @slot trailing-input - Content to be placed after the input text, within the input container.
|
|
18983
19057
|
* @slot before-input - Content to be placed before the input text, outside the input container.
|
|
18984
19058
|
* @slot after-input - Content to be placed after the input text, outside the input container.
|
|
18985
19059
|
* @slot label - Content to be placed as the label, will override the label prop.
|
|
@@ -19094,9 +19168,9 @@ class NvFieldnumber {
|
|
|
19094
19168
|
/****************************************************************************/
|
|
19095
19169
|
//#region RENDER
|
|
19096
19170
|
render() {
|
|
19097
|
-
return (hAsync(Host, { key: '
|
|
19098
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
19099
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19171
|
+
return (hAsync(Host, { key: 'bc6961e9cfb030f0ded61180836826bc67215432' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '98542b998a5db7572209167ccda6e143797efe02', htmlFor: this.inputId }, hAsync("slot", { key: '59ee59722d9a05bc62307f12db55965b29ec5ac2', name: "label" }, this.label))), hAsync("div", { key: 'dd63f77ae0110620d37d5e7d9e02baafd7384a18', class: "input-wrapper" }, hAsync("slot", { key: '0c73ca84d755675012c82d0e963c619839551965', name: "before-input" }), hAsync("div", { key: 'bcc8edc6ff5d2f57d1237f22de0d6b6d190ff8e3', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '6ae97f06dae32a6bf00bb73eddfe556ad2e92453', name: "leading-input" }), hAsync("input", { key: '1799946e5b38ef77e3241a4ace04e37afdec98a4', 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 }), hAsync("slot", { key: 'b0861939aa926e51777caa62bf01ed6a0a39dc50', name: "trailing-input" }), this.error && (hAsync("nv-icon", { key: '57df54aa50deab4ad077692cc4592561b31e0d42', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: 'e57297c4fab2826fb50943c47983f73eb3a8f5b0', name: "circle-check", class: "validation", size: "md" })), hAsync("div", { key: '6096c2878876dd4324b112cf3067bfc3cf9d35f2', class: "stepper" }, hAsync("nv-iconbutton", { key: '7e03c767f0f0c44f70435bfed2bae02f409ed23b', size: "md", name: "minus", emphasis: "lower", onClick: this.handleMinus, disabled: this.isMinValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }), hAsync("nv-iconbutton", { key: '06a5b8af32c99bab407ce427c4d634fb0209674c', size: "md", name: "plus", emphasis: "lower", onClick: this.handlePlus, disabled: this.isMaxValueReached(), onMouseDown: this.preventSelection, tabindex: "-1" }))), hAsync("slot", { key: '32dc74a736303088b40fff6b8dd53efb9c0e3832', name: "after-input" })), (this.description ||
|
|
19172
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'c0cb59d63dfa4a16820ddf1b3438e287a4e94aaa', class: "description" }, hAsync("slot", { key: 'bcb6d46402b596401ac7f9f01fb6cfb3e4b58feb', name: "description" }, this.description))), (this.errorDescription ||
|
|
19173
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '093f05eadee4cf3802be34b98907596d64febcb6', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '93572b4f780e085a2be652a687e561275ebbc428', name: "error-description" }, this.errorDescription)))));
|
|
19100
19174
|
}
|
|
19101
19175
|
static get formAssociated() { return true; }
|
|
19102
19176
|
get el() { return getElement(this); }
|
|
@@ -19244,9 +19318,9 @@ class NvFieldpassword {
|
|
|
19244
19318
|
/****************************************************************************/
|
|
19245
19319
|
//#region RENDER
|
|
19246
19320
|
render() {
|
|
19247
|
-
return (hAsync(Host, { key: '
|
|
19248
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
19249
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19321
|
+
return (hAsync(Host, { key: 'fb277f244fb9f92e09cf77463c3a59b1a7a93095' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '84227c9b8844bcb02917e6f942c206758f2378b8', htmlFor: this.inputId }, hAsync("slot", { key: '36331156c6823f96b017a18a4d134b3a0467e289', name: "label" }, this.label))), hAsync("div", { key: 'babca6f3bf893084259917bfec7434a189bc6a88', class: "input-wrapper" }, hAsync("slot", { key: '7ff461c1b36594cde5e2934b3c4aaa3eaafbea20', name: "before-input" }), hAsync("div", { key: 'ac90041750bfdcc23245c42d7e6c52ae855b4bb5', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: '0696566301e7fd935c0316b70b41f15cc68b2276', name: "leading-input" }), hAsync("input", { key: '776db054e9b5fb46b592723fa6b0ad073e0cad93', 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) && (hAsync("nv-icon", { key: '73d827ca041e3841b5159dd829769def664a5e8b', name: this.success ? 'circle-check' : 'alert-circle', class: "validation", size: "md" })), !this.hidePasswordIcon && (hAsync("nv-iconbutton", { key: '7920164504e0834d8e8f0b91a51e4747cbaa0bfb', 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() }))), hAsync("slot", { key: '4c651f834fe546cd75fc6f24ba37f35f3713c004', name: "after-input" })), (this.description ||
|
|
19322
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '9db3be325ffe22ddaaaf6052d03b0eb5a8decc9f', class: "description" }, hAsync("slot", { key: 'e262fafe3e0d3f1ffbf059eb80d0b0b2128f0c07', name: "description" }, this.description))), (this.errorDescription ||
|
|
19323
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '28571af4f63bdf4a9d7ff558d0d672546765f188', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '9b3635bec4932601c0b265cfef7851ab48bad289', name: "error-description" }, this.errorDescription)))));
|
|
19250
19324
|
}
|
|
19251
19325
|
static get formAssociated() { return true; }
|
|
19252
19326
|
get el() { return getElement(this); }
|
|
@@ -19374,9 +19448,9 @@ class NvFieldradio {
|
|
|
19374
19448
|
/****************************************************************************/
|
|
19375
19449
|
//#region RENDER
|
|
19376
19450
|
render() {
|
|
19377
|
-
return (hAsync(Host, { key: '
|
|
19378
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
19379
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19451
|
+
return (hAsync(Host, { key: '4533a498fbbf7edc20695ac8411dea11355c2bf9', class: clsx(this.labelPlacement === 'before' && 'label-placement-before', this.error && 'error') }, hAsync("input", { key: '0ba25de106a4bb4a3ccf1c5ddf82e60966e59e9f', type: "radio", id: this.inputId, name: this.name, autofocus: this.autofocus, autocomplete: "off", value: this.value, checked: this.checked, disabled: this.disabled }), hAsync("div", { key: 'c090a6746068f4ab8a8989d0117ec274320918a8', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '804bbd45628e20bcfce8005fd0abd6b8f5ecc677', htmlFor: this.inputId }, hAsync("slot", { key: 'bfe774833365bf51bc1c1be47d960ce04cadaee3', name: "label" }, this.label))), (this.description ||
|
|
19452
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '99245a0234557bb64887d6f499ffdd4a8b0a03b0', class: "description" }, hAsync("slot", { key: '34bc5919f9bf80fee5a26b4d7dcbf4b2844ef202', name: "description" }, this.description))), (this.errorDescription ||
|
|
19453
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'c67be256e429796853146da66aebe0f8ea80a131', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '241a84a4be6028850e42e96305413e8c3298acf3', name: "error-description" }, this.errorDescription))))));
|
|
19380
19454
|
}
|
|
19381
19455
|
static get formAssociated() { return true; }
|
|
19382
19456
|
get el() { return getElement(this); }
|
|
@@ -19760,13 +19834,13 @@ class NvFieldselect {
|
|
|
19760
19834
|
* @returns {HTMLStencilElement} The HTML element to render.
|
|
19761
19835
|
*/
|
|
19762
19836
|
render() {
|
|
19763
|
-
return (hAsync(Host, { key: '
|
|
19837
|
+
return (hAsync(Host, { key: '3614f589d16ecfe4b7153a57d079b5bde8d14e4f' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'd3d222aeece0c0f99141adf9be19b3dfda5095ac', htmlFor: this.inputId }, hAsync("slot", { key: 'd0deb950cdd7784878f2ee7d7e5a382c3aa67620', name: "label" }, this.label))), hAsync("div", { key: '94b1ead9abf988d3a9a944f04c441054e0aeba1f', class: "select-wrapper" }, hAsync("slot", { key: '5e018a64cd9556d67ecc2b9cfb48771f137c10a6', name: "before-input" }), hAsync("div", { key: 'd52813fc9e534463b50da23b8a5a3e5d57aa2c3a', class: "select-container", onClick: this.handleSelectContainerClick }, hAsync("slot", { key: 'dda40c57c5be6d10a20cb11cfa8eaa8398f84d6c', name: "leading-input" }), this.internalReadonly && (hAsync("input", { key: '37b22a058b25867d7c4c5c7675288f7d4a368263', 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
|
|
19764
19838
|
? `${this.inputId}-error`
|
|
19765
|
-
: `${this.inputId}-description` })), hAsync("select", { key: '
|
|
19839
|
+
: `${this.inputId}-description` })), hAsync("select", { key: '064eec6725beeba26cc5ded5fb21237b55d40cff', 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
|
|
19766
19840
|
? `${this.inputId}-error`
|
|
19767
|
-
: `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (hAsync("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (hAsync("slot", null))), hAsync("div", { key: '
|
|
19768
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
19769
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
19841
|
+
: `${this.inputId}-description` }, this.parsedOptions.length > 0 ? (this.parsedOptions.map(option => (hAsync("option", { value: option.value, selected: option.selected, disabled: option.disabled }, option.label)))) : (hAsync("slot", null))), hAsync("div", { key: '02e2e941e3d8efe4a1a5ef3e2cf95adcdaaa25e7', class: "select-icons" }, this.error && (hAsync("nv-icon", { key: '481df68e62c2438db29aa3591180353f140d506d', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '2b7c05697786bb684f7be9aba49641d0bd4b17e2', name: "circle-check", class: "validation", size: "md" })), !this.multiple && (hAsync("nv-iconbutton", { key: 'ee340692540948b768ff8d7ad817879f1fa892c4', name: "chevron-down", size: "md", emphasis: "lower", tabindex: -1 })))), hAsync("slot", { key: '9d638182d2f9808d6cf454d56c70cb7e45e520ab', name: "after-input" })), (this.description ||
|
|
19842
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '0b5d93842494d99c7eeb5cde17bc266de14ebc79', class: "description", id: `${this.inputId}-description` }, hAsync("slot", { key: '011365d39b5e18fda111f257461bedab1e4ddb5e', name: "description" }, this.description))), (this.errorDescription ||
|
|
19843
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '15c238fe1651bab3cfe0088837b8f58beec52e28', class: "error-description", id: `${this.inputId}-error` }, hAsync("slot", { key: 'edd7d6187957e34646cc270dcc1485f73d634e52', name: "error-description" }, this.errorDescription)))));
|
|
19770
19844
|
}
|
|
19771
19845
|
static get formAssociated() { return true; }
|
|
19772
19846
|
get el() { return getElement(this); }
|
|
@@ -19992,12 +20066,12 @@ const FieldInput = props => {
|
|
|
19992
20066
|
? 'input-container'
|
|
19993
20067
|
: 'input-container hidden-input';
|
|
19994
20068
|
return hasField ? (hAsync("div", { class: containerClass },
|
|
19995
|
-
|
|
19996
|
-
|
|
19997
|
-
|
|
20069
|
+
hAsync("nv-fieldnumber", Object.assign({ id: inputId, value: fieldValue, min: min, max: max, step: step, disabled: disabled, readonly: readonly, name: inputName }, dataAttrs, { onInput: onInput }),
|
|
20070
|
+
labelBeforeValue && (hAsync("span", { class: "label-before", slot: "leading-input" }, labelBeforeValue)),
|
|
20071
|
+
labelAfterValue && (hAsync("span", { class: "label-after", slot: "trailing-input" }, labelAfterValue))))) : (hAsync("input", { id: inputId, type: "hidden", value: fieldValue, disabled: disabled, readonly: readonly, name: inputName }));
|
|
19998
20072
|
};
|
|
19999
20073
|
|
|
20000
|
-
const nvFieldsliderCss = "nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range{background:var(--components-slider-track-filled-focus)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb{border-color:var(--components-slider-track-filled-focus)}nv-fieldslider[error] .slider-container .track-container .track .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:hover{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-handler-background-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:focus{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box;max-width:480px}nv-fieldslider .slider-container{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--form-gap-x)}nv-fieldslider .slider-container .track-container{position:relative;flex:1;height:calc(var(--slider-handler-size-min) + 0.25rem);padding:calc(var(--slider-handler-size-min) / 2) 0}nv-fieldslider .slider-container .track-container .track{position:relative;height:var(--slider-track-height);background:var(--components-slider-track-background);border-radius:var(--slider-track-radius);cursor:pointer}nv-fieldslider .slider-container .track-container .track .track-range{position:absolute;top:0;height:var(--slider-track-height);background:var(--components-slider-track-filled-default);border-radius:var(--slider-track-radius);pointer-events:none}nv-fieldslider .slider-container .track-container .track .thumb{position:absolute;top:50%;width:var(--slider-handler-size-min);height:var(--slider-handler-size-min);background:#ffffff;border:var(--slider-handler-stroke) solid var(--components-slider-track-filled-default);border-radius:50%;transform:translate(-50%, -50%);z-index:1;cursor:grab;transition:width 0.2s, height 0.2s, box-shadow 0.2s, background-color 0.2s}nv-fieldslider .slider-container .track-container .track .thumb:hover{width:var(--slider-handler-size-max);height:var(--slider-handler-size-max);border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container .track .thumb:focus{width:var(--slider-handler-size-min);height:var(--slider-handler-size-min);border-color:var(--components-slider-track-filled-focus);outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1);transition:outline;background:var(--components-slider-handler-background-focus)}nv-fieldslider .slider-container .track-container .track .thumb:active{cursor:grabbing;background:var(--components-slider-handler-background-hover)}nv-fieldslider .slider-container .track-container .track .thumb .thumb-tooltip{position:absolute;top:25px;left:50%;background-color:var(--components-tooltip-background);color:var(--components-tooltip-text);padding:5px;border-radius:var(--tooltip-radius);font-size:var(--tooltip-font-size);z-index:10;pointer-events:none;user-select:none;opacity:0;transition:opacity 0.3s ease-in-out;transform:translateX(-50%)}nv-fieldslider .slider-container .track-container .track .thumb .thumb-tooltip:after{content:\"\";background:var(--components-tooltip-background);box-shadow:none;border:none;position:absolute;border-bottom-color:transparent;border-right-color:transparent;width:6px;height:6px;transform:rotate(45deg);border-radius:1px;top:-3px;left:50%;margin-left:-3px}nv-fieldslider .slider-container .track-container .track .thumb:hover .thumb-tooltip,nv-fieldslider .slider-container .track-container .track .thumb:active .thumb-tooltip,nv-fieldslider .slider-container .track-container .track .thumb:focus .thumb-tooltip{opacity:1}nv-fieldslider .slider-container .track-container .track-ticks{position:relative;height:1rem;margin-top:0.25rem}nv-fieldslider .slider-container .track-container .track-ticks .track-tick{position:absolute;top:0;width:var(--slider-tick-height);height:var(--slider-tick-height);background:var(--components-form-field-border-default);border-radius:50%;transform:translate(-50%, 0);pointer-events:none}nv-fieldslider .slider-container .track-container .track-ticks .track-tick:first-of-type{transform:translate(0, 0)}nv-fieldslider .slider-container .track-container .track-ticks .track-tick:last-of-type{transform:translate(-100%, 0)}nv-fieldslider .slider-container .track-container .track-ticks .track-tick .tick-label{position:absolute;top:calc(var(--slider-tick-height) + 0.25rem);left:50%;color:var(--components-form-field-border-default);transform:translateX(-50%);white-space:nowrap}.track-tick-first nv-fieldslider .slider-container .track-container .track-ticks .track-tick .tick-label{left:0;transform:translateX(0)}.track-tick-last nv-fieldslider .slider-container .track-container .track-ticks .track-tick .tick-label{left:100%;transform:translateX(-100%)}nv-fieldslider .slider-container .input-container{display:flex;flex-grow:1;justify-content:center;align-items:center;align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default, 1);background:var(--nv-field-background);transition:all 150ms ease-out;width:70px;flex-grow:unset}nv-fieldslider .slider-container .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fieldslider .slider-container .input-container:focus-within,nv-fieldslider .slider-container .input-container:focus-within:hover,nv-fieldslider .slider-container .input-container:focus,nv-fieldslider .slider-container .input-container:focus:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fieldslider .slider-container .input-container:has(input:read-only){opacity:0.5;background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fieldslider .slider-container .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fieldslider .slider-container .input-container input{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);padding:var(--form-field-padding-y) var(--form-field-padding-x);font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height);width:100%;}nv-fieldslider .slider-container .input-container input:focus{outline:none}nv-fieldslider .slider-container .input-container input::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fieldslider .slider-container .input-container input[type=password]::-ms-clear,nv-fieldslider .slider-container .input-container input[type=password]::-ms-reveal{display:none;width:0;height:0}nv-fieldslider[fluid]:not([fluid=false]){max-width:unset}nv-fieldslider[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive-in-field)}nv-fieldslider[success]:not([success=false]){--nv-field-border-default:var(--components-form-field-border-success);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-success)}nv-fieldslider[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fieldslider[readonly]:not([readonly=false]) .track,nv-fieldslider[readonly]:not([readonly=false]) .thumb{cursor:default}nv-fieldslider label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fieldslider nv-icon.validation{color:var(--nv-field-border-default)}nv-fieldslider[hide-label]:not([hide-label=false]) label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}nv-fieldslider[has-field]:not([has-field=false]) .thumb-tooltip{display:none}nv-fieldslider>.description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fieldslider>.error-description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldslider>.error-description[hidden]{display:none}";
|
|
20074
|
+
const nvFieldsliderCss = "nv-fieldslider .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .track-range{background:var(--components-slider-track-filled-focus)}nv-fieldslider .slider-container .track-container:has(.thumb:focus) .thumb{border-color:var(--components-slider-track-filled-focus)}nv-fieldslider[error] .slider-container .track-container .track .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:hover{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-handler-background-error)}nv-fieldslider[error] .slider-container .track-container .track .thumb:focus{border-color:var(--components-slider-track-filled-error);outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-slider-track-filled-error);outline-offset:calc(var(--focus-outline-offset) * 1);background-color:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .track-range{background:var(--components-slider-track-filled-error)}nv-fieldslider[error] .slider-container .track-container:has(.thumb:hover) .thumb{border-color:var(--components-slider-track-filled-error)}nv-fieldslider{--nv-field-border-default:var(--components-form-field-border-default);--nv-field-border-hover:var(--components-form-field-border-hover);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--components-form-field-border-default);--nv-field-border-readonly:var(--components-form-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-brand);--nv-field-background:var(--components-form-field-background-default);display:flex;flex-direction:column;align-items:flex-start;gap:var(--form-gap-y);box-sizing:border-box;max-width:480px}nv-fieldslider .slider-container{width:100%;display:flex;flex-direction:row;align-items:center;gap:var(--form-gap-x)}nv-fieldslider .slider-container .track-container{position:relative;flex:1;height:calc(var(--slider-handler-size-min) + 0.25rem);padding:calc(var(--slider-handler-size-min) / 2) 0}nv-fieldslider .slider-container .track-container .track{position:relative;height:var(--slider-track-height);background:var(--components-slider-track-background);border-radius:var(--slider-track-radius);cursor:pointer}nv-fieldslider .slider-container .track-container .track .track-range{position:absolute;top:0;height:var(--slider-track-height);background:var(--components-slider-track-filled-default);border-radius:var(--slider-track-radius);pointer-events:none}nv-fieldslider .slider-container .track-container .track .thumb{position:absolute;top:50%;width:var(--slider-handler-size-min);height:var(--slider-handler-size-min);background:#ffffff;border:var(--slider-handler-stroke) solid var(--components-slider-track-filled-default);border-radius:50%;transform:translate(-50%, -50%);z-index:1;cursor:grab;transition:width 0.2s, height 0.2s, box-shadow 0.2s, background-color 0.2s}nv-fieldslider .slider-container .track-container .track .thumb:hover{width:var(--slider-handler-size-max);height:var(--slider-handler-size-max);border-color:var(--components-slider-track-filled-hover)}nv-fieldslider .slider-container .track-container .track .thumb:focus{width:var(--slider-handler-size-min);height:var(--slider-handler-size-min);border-color:var(--components-slider-track-filled-focus);outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1);transition:outline;background:var(--components-slider-handler-background-focus)}nv-fieldslider .slider-container .track-container .track .thumb:active{cursor:grabbing;background:var(--components-slider-handler-background-hover)}nv-fieldslider .slider-container .track-container .track .thumb .thumb-tooltip{position:absolute;top:25px;left:50%;background-color:var(--components-tooltip-background);color:var(--components-tooltip-text);padding:5px;border-radius:var(--tooltip-radius);font-size:var(--tooltip-font-size);z-index:10;pointer-events:none;user-select:none;opacity:0;transition:opacity 0.3s ease-in-out;transform:translateX(-50%)}nv-fieldslider .slider-container .track-container .track .thumb .thumb-tooltip:after{content:\"\";background:var(--components-tooltip-background);box-shadow:none;border:none;position:absolute;border-bottom-color:transparent;border-right-color:transparent;width:6px;height:6px;transform:rotate(45deg);border-radius:1px;top:-3px;left:50%;margin-left:-3px}nv-fieldslider .slider-container .track-container .track .thumb:hover .thumb-tooltip,nv-fieldslider .slider-container .track-container .track .thumb:active .thumb-tooltip,nv-fieldslider .slider-container .track-container .track .thumb:focus .thumb-tooltip{opacity:1}nv-fieldslider .slider-container .track-container .track-ticks{position:relative;height:1rem;margin-top:0.25rem}nv-fieldslider .slider-container .track-container .track-ticks .track-tick{position:absolute;top:0;width:var(--slider-tick-height);height:var(--slider-tick-height);background:var(--components-form-field-border-default);border-radius:50%;transform:translate(-50%, 0);pointer-events:none}nv-fieldslider .slider-container .track-container .track-ticks .track-tick:first-of-type{transform:translate(0, 0)}nv-fieldslider .slider-container .track-container .track-ticks .track-tick:last-of-type{transform:translate(-100%, 0)}nv-fieldslider .slider-container .track-container .track-ticks .track-tick .tick-label{position:absolute;top:calc(var(--slider-tick-height) + 0.25rem);left:50%;color:var(--components-form-field-border-default);transform:translateX(-50%);white-space:nowrap}.track-tick-first nv-fieldslider .slider-container .track-container .track-ticks .track-tick .tick-label{left:0;transform:translateX(0)}.track-tick-last nv-fieldslider .slider-container .track-container .track-ticks .track-tick .tick-label{left:100%;transform:translateX(-100%)}nv-fieldslider .slider-container .input-container{display:flex;flex-grow:1;justify-content:center;align-items:center;align-self:stretch;border-radius:var(--form-field-radius);border-width:1px;border-style:solid;border-color:var(--nv-field-border-default);opacity:var(--components-form-opacity-default, 1);background:var(--nv-field-background);transition:all 150ms ease-out;width:90px;flex-grow:unset}nv-fieldslider .slider-container .input-container:hover{border-color:var(--nv-field-border-hover)}nv-fieldslider .slider-container .input-container:focus-within,nv-fieldslider .slider-container .input-container:focus-within:hover,nv-fieldslider .slider-container .input-container:focus,nv-fieldslider .slider-container .input-container:focus:hover{border-color:var(--nv-field-border-focus);box-shadow:0px 0px 0px var(--focus-field-stroke) var(--nv-field-focus-box-shadow)}nv-fieldslider .slider-container .input-container:has(input:read-only){opacity:0.5;background-color:var(--components-form-field-background-readonly);border-color:var(--nv-field-border-readonly)}nv-fieldslider .slider-container .input-container:has(input:disabled){opacity:0.5;background-color:var(--components-form-field-background-disabled);border-color:var(--nv-field-border-disabled)}nv-fieldslider .slider-container .input-container input{display:flex;align-items:center;flex:1 0 0;overflow:hidden;background-color:transparent;color:var(--components-form-field-content-text);padding:var(--form-field-padding-y) var(--form-field-padding-x);font-size:var(--form-field-font-size);font-style:normal;font-weight:500;line-height:var(--form-field-line-height);width:100%;}nv-fieldslider .slider-container .input-container input:focus{outline:none}nv-fieldslider .slider-container .input-container input::placeholder{overflow:hidden;color:var(--components-form-field-content-placeholder);text-overflow:ellipsis;font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-field-font-size);font-style:normal;font-weight:400;line-height:var(--form-field-line-height)}nv-fieldslider .slider-container .input-container input[type=password]::-ms-clear,nv-fieldslider .slider-container .input-container input[type=password]::-ms-reveal{display:none;width:0;height:0}nv-fieldslider .slider-container .input-container .label-before{margin-left:var(--spacing-2);color:var(--components-form-field-icon-default)}nv-fieldslider .slider-container .input-container .label-after{margin-right:var(--spacing-2);color:var(--components-form-field-icon-default)}nv-fieldslider[fluid]:not([fluid=false]){max-width:unset}nv-fieldslider[error]:not([error=false]){--nv-field-border-default:var(--components-form-field-border-error);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-destructive-in-field)}nv-fieldslider[success]:not([success=false]){--nv-field-border-default:var(--components-form-field-border-success);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--nv-field-border-default);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-focus-box-shadow:var(--color-focus-success)}nv-fieldslider[readonly]:not([readonly=false]){--nv-field-border-default:var(--components-form-field-border-readonly);--nv-field-border-hover:var(--nv-field-border-default);--nv-field-border-focus:var(--components-form-field-border-focus);--nv-field-border-disabled:var(--nv-field-border-default);--nv-field-border-readonly:var(--nv-field-border-default);--nv-field-background:var(--components-form-field-background-readonly)}nv-fieldslider[readonly]:not([readonly=false]) .track,nv-fieldslider[readonly]:not([readonly=false]) .thumb{cursor:default}nv-fieldslider label{display:flex;align-items:center;gap:var(--form-label-gap);align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-fieldslider nv-icon.validation{color:var(--nv-field-border-default)}nv-fieldslider[hide-label]:not([hide-label=false]) label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}nv-fieldslider[has-field]:not([has-field=false]) .thumb-tooltip{display:none}nv-fieldslider>.description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height)}nv-fieldslider>.error-description{display:flex;align-items:center;align-self:stretch;gap:var(--spacing-1);color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;line-height:var(--form-description-line-height);color:var(--components-form-text-description-error)}nv-fieldslider>.error-description[hidden]{display:none}";
|
|
20001
20075
|
var NvFieldsliderStyle0 = nvFieldsliderCss;
|
|
20002
20076
|
|
|
20003
20077
|
/**
|
|
@@ -20450,11 +20524,11 @@ class NvFieldslider {
|
|
|
20450
20524
|
/****************************************************************************/
|
|
20451
20525
|
//#region RENDER
|
|
20452
20526
|
render() {
|
|
20453
|
-
return (hAsync(Host, { key: '
|
|
20527
|
+
return (hAsync(Host, { key: '924819b3d8cc05d7b7448a613b833a3514c4fe46' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '079800a326daa6677bfeadbb335100ad43a6c3a6', htmlFor: this.startInputId }, hAsync("slot", { key: '31c7deab4307cf05951ee3e52e69a57bed2cc4dd', name: "label" }, this.label))), hAsync("div", { key: 'c3f9a721150e9e3e4396509007d17fd5878db9d2', class: "slider-container" }, this.range ? (hAsync(FieldInput, { range: this.range, hasField: this.hasField, value: this.valueInternal, rangeValue: this.rangeValueInternal, index: 0, inputId: this.startInputId, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onInput: this.handleFieldChange, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue, name: this.name, endName: this.endName })) : null, hAsync("div", { key: '2156dae3524cbce4390a27f8699bd2f3c5623799', class: "track-container" }, hAsync("div", { key: '7d601c91d58ef7cc8cecdc6b5becf82245ada8f7', class: "track", onPointerDown: this.onTrackInteraction }, this.range ? (hAsync(RangeThumb, { rangeValue: this.rangeValueInternal, rawRangePosition: this.rawRangePosition, activeDragThumb: this.activeDragThumb, isDragging: this.isDragging, snap: this.snap, min: this.min, max: this.max, disabled: this.disabled, readonly: this.readonly, onKeyDown: this.onKeyDown, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue })) : (hAsync(SingleThumb, { value: this.valueInternal, min: this.min, max: this.max, rawPosition: this.rawPosition, isDragging: this.isDragging, snap: this.snap, disabled: this.disabled, readonly: this.readonly, onKeyDown: this.onKeyDown, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue }))), hAsync(TickMarks, { key: '27869c72bdf64db4c7efab71bbfb0dc221bbce1c', ticks: this.internalTicks, min: this.min, max: this.max })), this.range ? (hAsync(FieldInput, { range: this.range, hasField: this.hasField, value: this.valueInternal, rangeValue: this.rangeValueInternal, index: 1, inputId: this.endInputId, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onInput: this.handleFieldChange, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue, name: this.name, endName: this.endName })) : (hAsync(FieldInput, { range: this.range, hasField: this.hasField, value: this.valueInternal, rangeValue: this.rangeValueInternal, inputId: this.startInputId, min: this.min, max: this.max, step: this.step, disabled: this.disabled, readonly: this.readonly, onInput: this.handleFieldChange, labelBeforeValue: this.labelBeforeValue, labelAfterValue: this.labelAfterValue, name: this.name }))), (this.success ||
|
|
20454
20528
|
this.description ||
|
|
20455
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
20529
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'ff43246b18e39fca6401663e17c75774d964b232', class: "description" }, this.success && (hAsync("nv-icon", { key: 'c8d0cf20d5c91e84d9529c594400886e9e5cb89c', name: "circle-check", class: "validation", size: "md" })), hAsync("slot", { key: 'fe5e79473950d01bf73ebd67628d301fe0b48573', name: "description" }, this.description))), (this.error ||
|
|
20456
20530
|
this.errorDescription ||
|
|
20457
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
20531
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'c02f5c9db7270a5442ab75f8532151e4d97801bc', class: "error-description", hidden: !this.error }, this.error && (hAsync("nv-icon", { key: '56ed10394aca3dc9fdb800f44587cec47e993a8d', name: "alert-circle", class: "validation", size: "md" })), hAsync("slot", { key: '037fd3db57941a5f02cde3506112059e7f792803', name: "error-description" }, this.errorDescription)))));
|
|
20458
20532
|
}
|
|
20459
20533
|
static get formAssociated() { return true; }
|
|
20460
20534
|
get el() { return getElement(this); }
|
|
@@ -20629,9 +20703,9 @@ class NvFieldtext {
|
|
|
20629
20703
|
/****************************************************************************/
|
|
20630
20704
|
//#region RENDER
|
|
20631
20705
|
render() {
|
|
20632
|
-
return (hAsync(Host, { key: '
|
|
20633
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
20634
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
20706
|
+
return (hAsync(Host, { key: '376745526ad4350a50ef017acceb43d77414ddaf' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'f03087361cb8f347d6fffb1dc234f3d041109229', htmlFor: this.inputId }, hAsync("slot", { key: 'cea3904cf5522359426b47e7d4e8f4a71da6fb00', name: "label" }, this.label))), hAsync("div", { key: '9f766da6a0962d3e865388d732109c81b03a5802', class: "input-wrapper" }, hAsync("slot", { key: 'f9cd30cda301c60f89263eef30c178ccbbf2fa18', name: "before-input" }), hAsync("div", { key: '086b7a59b7883aea0f5a93945d40a642f3b0fef2', class: "input-container", onClick: this.handleInputContainerClick }, hAsync("slot", { key: 'caa4cf0d9d1e2990c438aea19e6afa29a11163b9', name: "leading-input" }), hAsync("input", { key: '36fda559fb8609c8275fa3f3d14142d0cf4fc2db', 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 }), hAsync("slot", { key: 'dd6564d4960fff20e8204dab2cad3ae07ec433ad', name: "trailing-input" }), this.error && (hAsync("nv-icon", { key: '203a3a51cf3db17b6544b327d692d8805c9577ee', name: "alert-circle", class: "validation", size: "md" })), this.success && (hAsync("nv-icon", { key: '13f4d73e72745cbb06cdb3969f94ad5627822743', name: "circle-check", class: "validation", size: "md" }))), hAsync("slot", { key: '1c9b1388173a7ad98b3ec2ac7663d77588d71c8d', name: "after-input" })), (this.description ||
|
|
20707
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '71797445f8593485ec2c0030c90eef6649d25f7f', class: "description" }, hAsync("slot", { key: '296dbddd49b791284734254bcd07400532e9e8ce', name: "description" }, this.description))), (this.errorDescription ||
|
|
20708
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'a2cf61e30ff98da3b3c4134f0669ef6f63cdc62f', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: 'fd4ba3d94a266ce096ca3f1b016b05040813cc37', name: "error-description" }, this.errorDescription)))));
|
|
20635
20709
|
}
|
|
20636
20710
|
static get formAssociated() { return true; }
|
|
20637
20711
|
get el() { return getElement(this); }
|
|
@@ -20851,9 +20925,9 @@ class NvFieldtextarea {
|
|
|
20851
20925
|
/****************************************************************************/
|
|
20852
20926
|
//#region RENDER
|
|
20853
20927
|
render() {
|
|
20854
|
-
return (hAsync(Host, { key: '
|
|
20855
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
20856
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
20928
|
+
return (hAsync(Host, { key: '1ee58085eaa986a995b26dce3ec149130831bb42' }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'dc8ede45802fa28d9bf616e534f4ca50b8f74f63', htmlFor: this.inputId }, hAsync("slot", { key: '498b99a1e7b82694be943dffc1181c9f0a4c9f5e', name: "label" }, this.label))), hAsync("div", { key: '9a9b90d5398f2ba010384b7b9cb64865329b019c', class: "textarea-wrapper" }, hAsync("div", { key: '4d48453ac04146e6ad25e650995df5e4f550e35e', class: "textarea-container", onClick: this.handleTextareaContainerClick }, hAsync("textarea", { key: '2190886c348e78073f5d8f6afc04cf3e91423b16', 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 ||
|
|
20929
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '55475e861f4b63ae2806141eb148d62864615b97', class: "description" }, hAsync("slot", { key: 'da2d6533d1b86f7ad3cb436650e3691cc155a1dd', name: "description" }, this.description))), (this.errorDescription ||
|
|
20930
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '239cc36f8db7855aeedf3c8f428099921142f249', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '97cd804f0c573da6042a6194c263d8580931ca55', name: "error-description" }, this.errorDescription)))));
|
|
20857
20931
|
}
|
|
20858
20932
|
static get formAssociated() { return true; }
|
|
20859
20933
|
get el() { return getElement(this); }
|
|
@@ -21881,26 +21955,26 @@ class NvFieldtime {
|
|
|
21881
21955
|
}, key: `${option}-${index}`, onClick: e => this.handleTimeOptionClick(e, type) }, option)))));
|
|
21882
21956
|
}
|
|
21883
21957
|
render() {
|
|
21884
|
-
return (hAsync(Host, { key: '
|
|
21885
|
-
hAsync("input", { key: '
|
|
21958
|
+
return (hAsync(Host, { key: 'c93db13f558128b6923ef9c0a5a96f3a1df15a23', onclick: e => this.handleHostClick(e) }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: '3049f15468677e1214e627352e6d0c5bfedf2aa8', htmlFor: this.inputId }, hAsync("slot", { key: '00291784c0f7074a9b6e42b9e884c58735fadee9', name: "label" }, this.label))), hAsync("nv-popover", { key: '38d2995f5698c21cc8e10d02e57cf1c617188aed', ref: el => (this.popoverElement = el), triggerMode: "controlled", placement: "bottom-start", open: this.open }, hAsync("div", { key: 'd71f02fb8cfd8c7ccd96e17e06ab6e930ae437a8', class: "input-wrapper", slot: "trigger" }, hAsync("slot", { key: 'b4fa621c1189efb75d786e87d48eb6e754987358', name: "before-input" }), hAsync("div", { key: '00d7bb6ae8945d946182fbe01faea79c4176b66a', class: "input-container" }, hAsync("slot", { key: '6d5fc613e05a7a353f96fb6f8b30dd606627c742', name: "leading-input" }), startsWithIgnoreCase(this.format, 'HH') && [
|
|
21959
|
+
hAsync("input", { key: '4a062db12b9b750c6d327fcadff850571e92f674', 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
|
|
21886
21960
|
? `${TimeType.Hours}-${this.name}`
|
|
21887
21961
|
: TimeType.Hours, id: this.inputId, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
21888
21962
|
], this.format.includes('mm') && [
|
|
21889
|
-
hAsync("span", { key: '
|
|
21890
|
-
hAsync("input", { key: '
|
|
21963
|
+
hAsync("span", { key: '629882cf244f54684e1997c7dd60d32deb5fad5a' }, ":"),
|
|
21964
|
+
hAsync("input", { key: '14ae0159a0e5d616d8734e12deffb0f392ee315a', 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
|
|
21891
21965
|
? `${TimeType.Minutes}-${this.name}`
|
|
21892
21966
|
: TimeType.Minutes, id: `${this.inputId}-minutes`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
21893
21967
|
], this.format.includes('ss') && [
|
|
21894
|
-
hAsync("span", { key: '
|
|
21895
|
-
hAsync("input", { key: '
|
|
21968
|
+
hAsync("span", { key: '4d1fb67d409976c5510773c409441f330f627ea4' }, ":"),
|
|
21969
|
+
hAsync("input", { key: 'ea04cddd6f7534f88bc79f82ddcb4a111bffb492', 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
|
|
21896
21970
|
? `${TimeType.Seconds}-${this.name}`
|
|
21897
21971
|
: TimeType.Seconds, id: `${this.inputId}-seconds`, readonly: this.readonly, disabled: this.disabled, required: this.required, onKeyDown: e => this.handleKeyDown(e), onBlur: () => this.handleInputBlur() }),
|
|
21898
|
-
], hAsync("nv-iconbutton", { key: '
|
|
21972
|
+
], hAsync("nv-iconbutton", { key: '1eaf8a58a077bfd9c3d93f9277aa8db6e16cbc80', 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 && (hAsync("nv-icon", { key: 'e3ce880982184b1d31f6a15163361997deca7ac6', name: "alert-circle", class: "validation", size: "sm" })), this.success && (hAsync("nv-icon", { key: '6bcf818a4713e4420d79bf8b0f447ff41dfe5d6f', name: "circle-check", class: "validation", size: "sm" }))), hAsync("slot", { key: '55538603473159890b542b3953b73c43bb8ff262', name: "after-input" })), hAsync("div", { key: '577234c4d732118b059e5a5aa8626677f40ba864', class: "time-dropdown", slot: "content" }, hAsync("div", { key: '25d144cb214a37420182e121078e9f690ee21271', class: "time-columns" }, startsWithIgnoreCase(this.format, 'HH') &&
|
|
21899
21973
|
this.RenderTimeOptionsColumn(TimeType.Hours), this.format.includes('mm') &&
|
|
21900
21974
|
this.RenderTimeOptionsColumn(TimeType.Minutes), this.format.includes('ss') &&
|
|
21901
21975
|
this.RenderTimeOptionsColumn(TimeType.Seconds)))), (this.description ||
|
|
21902
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
21903
|
-
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: '
|
|
21976
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '875466380478b23bbc56e661a93392b27fa7af7d', class: "description" }, hAsync("slot", { key: 'ae870e00e1b92f44ea6a3e08b844b9de21060a01', name: "description" }, this.description))), (this.errorDescription ||
|
|
21977
|
+
this.el.querySelector('[slot="error-description"]')) && (hAsync("div", { key: 'aaca1281abe877b9696931d5cc1ab567441f3de9', hidden: !this.error, class: "error-description" }, hAsync("slot", { key: '4e17b0085732e9a47c9637c4ad9b145b5a705e2a', name: "error-description" }, this.errorDescription)))));
|
|
21904
21978
|
}
|
|
21905
21979
|
static get formAssociated() { return true; }
|
|
21906
21980
|
get el() { return getElement(this); }
|
|
@@ -22005,7 +22079,7 @@ class NvIcon {
|
|
|
22005
22079
|
/****************************************************************************/
|
|
22006
22080
|
//#region RENDER
|
|
22007
22081
|
render() {
|
|
22008
|
-
return (hAsync(Host, { key: '
|
|
22082
|
+
return (hAsync(Host, { key: '26f1c3b326b50a317bfef8f8415fa76c28b08253', class: clsx(this.color && `${this.color}`), role: "img", "aria-label": `${this.name}-icon` }, hAsync("svg", { key: '7a998a855a9526b9e86e0b19f4f03f8e0cdf235d', 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}` }, hAsync("use", { key: '9f2681f14c37da95909b8dc6abcac22adf906a11', href: `#${this.name}` }))));
|
|
22009
22083
|
}
|
|
22010
22084
|
static get style() { return NvIconStyle0; }
|
|
22011
22085
|
static get cmpMeta() { return {
|
|
@@ -22149,7 +22223,7 @@ class NvIconbutton {
|
|
|
22149
22223
|
/****************************************************************************/
|
|
22150
22224
|
//#region RENDER
|
|
22151
22225
|
render() {
|
|
22152
|
-
return (hAsync(Host, { key: '
|
|
22226
|
+
return (hAsync(Host, { key: '1536dd34c53c9eaf67914fcdf869a0274aa6cf87', 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 && hAsync("nv-loader", { key: '241d18417cd2c4a55c1dcc3fb328edfd8b95a95f', size: this.size }), !this.loading && hAsync("nv-icon", { key: '1cadeaa79ff4992fb88b6703c4e7d6feee37440c', name: this.name, size: this.size }), hAsync("slot", { key: '9d205fbc548c91990fac461f7722f69470b58913' })));
|
|
22153
22227
|
}
|
|
22154
22228
|
static get formAssociated() { return true; }
|
|
22155
22229
|
get el() { return getElement(this); }
|
|
@@ -22197,7 +22271,7 @@ class NvLoader {
|
|
|
22197
22271
|
//#region RENDER
|
|
22198
22272
|
/* <slot> empty to force rendering change */
|
|
22199
22273
|
render() {
|
|
22200
|
-
return (hAsync(Host, { key: '
|
|
22274
|
+
return (hAsync(Host, { key: '5e3cf72314d0355d5a979cf1c8561312eed50644', class: clsx(this.size && `size-${this.size}`, this.color && `color-${this.color}`) }));
|
|
22201
22275
|
}
|
|
22202
22276
|
static get style() { return NvLoaderStyle0; }
|
|
22203
22277
|
static get cmpMeta() { return {
|
|
@@ -22408,7 +22482,7 @@ class NvMenu {
|
|
|
22408
22482
|
});
|
|
22409
22483
|
}
|
|
22410
22484
|
render() {
|
|
22411
|
-
return (hAsync(Host, { key: '
|
|
22485
|
+
return (hAsync(Host, { key: 'e95adf4b7d951357f550a8084ce957c97134d58f' }, hAsync("slot", { key: 'e2db24c208c716c24c3357c95983c87ee0f11d88', name: "trigger" }), hAsync("nv-popover", { key: '735f6d29c7333293aea263eea751b021fbfd0943', ref: el => (this.popoverElement = el), triggerMode: "click", triggerElement: this.triggerElement, placement: this.placement, nested: this.nested, open: this.open }, this.items ? (hAsync("ul", { slot: "content" }, this.renderMenuItems())) : (hAsync("slot", { name: "content" })))));
|
|
22412
22486
|
}
|
|
22413
22487
|
get el() { return getElement(this); }
|
|
22414
22488
|
static get style() { return NvMenuStyle0; }
|
|
@@ -22479,7 +22553,7 @@ class NvMenuitem {
|
|
|
22479
22553
|
/****************************************************************************/
|
|
22480
22554
|
//#region RENDER
|
|
22481
22555
|
render() {
|
|
22482
|
-
return (hAsync(Host, { key: '
|
|
22556
|
+
return (hAsync(Host, { key: '12438da400f424a313c213b0950fcca96fd42442', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && hAsync("nv-icon", { key: '83a86971ac01576cfbfbe3d07e39e0c54f813bde', name: this.icon }), hAsync("slot", { key: '0b6fc3c1e0eaa6dedee1aa5c99fc39ee4899e400' }), this.label && hAsync("span", { key: 'fb85b1ace8d7cd479c9f78d48950110fd592788d', "data-scope": "text" }, this.label), this.shortcut && !this.hasSubmenu && hAsync("kbd", { key: 'fd42e2eb808d318a9f5e7aaa18da7f4e85293ec3' }, this.shortcut), this.hasSubmenu && hAsync("nv-icon", { key: '51a5accbc105843b9e7a40209bd9139c16eec4b0', name: "chevron-right" })));
|
|
22483
22557
|
}
|
|
22484
22558
|
get el() { return getElement(this); }
|
|
22485
22559
|
static get style() { return NvMenuitemStyle0; }
|
|
@@ -24606,7 +24680,7 @@ class NvPopover {
|
|
|
24606
24680
|
/**
|
|
24607
24681
|
* Sets how many pixels the popover should stay from the edge of the viewport.
|
|
24608
24682
|
*/
|
|
24609
|
-
this.shiftPadding =
|
|
24683
|
+
this.shiftPadding = 0;
|
|
24610
24684
|
/**
|
|
24611
24685
|
* Use this to set a delay before the popover appears on hover. If the mouse
|
|
24612
24686
|
* leaves before this time, the popover won't show. This only works when the
|
|
@@ -24864,7 +24938,7 @@ class NvPopover {
|
|
|
24864
24938
|
/****************************************************************************/
|
|
24865
24939
|
//#region RENDER
|
|
24866
24940
|
render() {
|
|
24867
|
-
return (hAsync(Host, { key: '
|
|
24941
|
+
return (hAsync(Host, { key: '3ab4e0f245ab925d2336f09b0cfa1c5c81a7eb32' }, hAsync("slot", { key: '54d237432f4f69f517f0182e58a3e6d75c658382', name: "trigger" }), hAsync("div", { key: 'ea6d9cedbade36ca48f9e72ec139720caeae1e35', "data-scope": "popover", hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (hAsync("div", { key: 'f7cc6db85501f067317f66cc500b21e6571feeb6', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), hAsync("slot", { key: '2330178c2adfd93eea13286ec3efee5c495b2680', name: "content" }))));
|
|
24868
24942
|
}
|
|
24869
24943
|
get el() { return getElement(this); }
|
|
24870
24944
|
static get watchers() { return {
|
|
@@ -24909,7 +24983,7 @@ class NvRow {
|
|
|
24909
24983
|
/****************************************************************************/
|
|
24910
24984
|
//#region RENDER
|
|
24911
24985
|
render() {
|
|
24912
|
-
return (hAsync(Host, { key: '
|
|
24986
|
+
return (hAsync(Host, { key: '5cd3c7b2db57e433f37a086d0cda9bb0335c84fc' }, hAsync("slot", { key: 'ca4003ec7100ee2979ba7b00352c19ecf1d62e05' })));
|
|
24913
24987
|
}
|
|
24914
24988
|
static get style() { return NvRowStyle0; }
|
|
24915
24989
|
static get cmpMeta() { return {
|
|
@@ -24944,7 +25018,7 @@ class NvStack {
|
|
|
24944
25018
|
/****************************************************************************/
|
|
24945
25019
|
//#region RENDER
|
|
24946
25020
|
render() {
|
|
24947
|
-
return (hAsync(Host, { key: '
|
|
25021
|
+
return (hAsync(Host, { key: '61662dda82c5191e4d90098e10d01bad6524e8c7', 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') }, hAsync("slot", { key: '7ee777cdebbfe9d4f6438a2a79407d9f670f2885' })));
|
|
24948
25022
|
}
|
|
24949
25023
|
static get style() { return NvStackStyle0; }
|
|
24950
25024
|
static get cmpMeta() { return {
|
|
@@ -25281,14 +25355,14 @@ class NvTable {
|
|
|
25281
25355
|
const rows = !this.table || this.table === undefined || this.parsedData.length === 0
|
|
25282
25356
|
? []
|
|
25283
25357
|
: this.table.data;
|
|
25284
|
-
return (hAsync(Host, { key: '
|
|
25358
|
+
return (hAsync(Host, { key: '510ea0b8404254faa7b2add62884da77232bf13d' }, hAsync("div", { key: '482a3cfb6fb948d7280b7c0ea70035a9c6385615', class: "hidden" }, hAsync("slot", { key: 'da7aa706d453676212e260e9454ed4e5143f2ccc' })), hAsync("slot", { key: '78054c9a10623c82d7cc7fef5619053c89b70944', name: "before" }), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (hAsync("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (hAsync("table", { class: "table" }, this.parsedColumns.length > 0 && headerGroups.length > 0 && (hAsync("thead", { class: "table-header" }, hAsync("tr", null, headerGroups &&
|
|
25285
25359
|
headerGroups.map(col => {
|
|
25286
25360
|
return (hAsync("th", { key: col.name }, this.renderTemplate(this.headerTemplateCache.get(col.name), {}) || col.header));
|
|
25287
25361
|
})))), hAsync("tbody", { class: "table-body" }, !rows || rows.length === 0 ? (hAsync("tr", null, hAsync("td", { colSpan: headerGroups.length || 12, class: "no-data" }, this.noDataMessage))) : (rows.map(row => (hAsync("tr", { key: JSON.stringify(row) }, headerGroups.map(col => {
|
|
25288
25362
|
var _a;
|
|
25289
25363
|
return (hAsync("td", null, this.renderTemplate(this.templateCache.get(col.name), row) ||
|
|
25290
25364
|
((_a = row[col.name]) !== null && _a !== void 0 ? _a : this.fallbackValue)));
|
|
25291
|
-
})))))))), hAsync("slot", { key: '
|
|
25365
|
+
})))))))), hAsync("slot", { key: '8e5b8eee3870e0d38944370a3d9500f641914935', name: "after" })));
|
|
25292
25366
|
}
|
|
25293
25367
|
get el() { return getElement(this); }
|
|
25294
25368
|
static get watchers() { return {
|
|
@@ -25408,8 +25482,8 @@ class NvToggle {
|
|
|
25408
25482
|
/****************************************************************************/
|
|
25409
25483
|
//#region RENDER
|
|
25410
25484
|
render() {
|
|
25411
|
-
return (hAsync(Host, { key: '
|
|
25412
|
-
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: '
|
|
25485
|
+
return (hAsync(Host, { key: '4c1b964876714244584d1dd4e949cf920312d0bf', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, hAsync("div", { key: 'b593008916115afefa8eebeaffde07c3a576089b', class: "input-container" }, hAsync("input", { key: '20783b13ea6e1b427fd79db1ff46d5685e7c7d89', 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 })), hAsync("div", { key: 'b2c9e1d17dbf53a42fdd0612c1ba507ea15c2775', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (hAsync("label", { key: 'd5ac7d57befa88f4b1fa752d95dce9ea50db577c', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, hAsync("slot", { key: '63817f8322de43590bd2052d3695a3e090c466bc', name: "label" }, this.label))), (this.description ||
|
|
25486
|
+
this.el.querySelector('[slot="description"]')) && (hAsync("div", { key: 'f33e45707f6cde570f7d4e3f44aece36413cf7c8', class: "description" }, hAsync("slot", { key: '3dcbe64426121cd2541fc545606f1b1381d51fdf', name: "description" }, this.description))))));
|
|
25413
25487
|
}
|
|
25414
25488
|
static get formAssociated() { return true; }
|
|
25415
25489
|
get el() { return getElement(this); }
|
|
@@ -25474,7 +25548,7 @@ class NvTooltip {
|
|
|
25474
25548
|
/****************************************************************************/
|
|
25475
25549
|
//#region RENDER
|
|
25476
25550
|
render() {
|
|
25477
|
-
return (hAsync(Host, { key: '
|
|
25551
|
+
return (hAsync(Host, { key: '34431c56ab8f0d9581d7bae170eea34972594a3c' }, hAsync("slot", { key: '0e9b3492b07b23e3eb5e7475d174aca7f3d18cdb' }), hAsync("nv-popover", { key: '2a3eccd8a928114ad8df6ce67a19948fab772654', triggerMode: "hover", hasArrow: true, placement: this.placement, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, hAsync("p", { key: '286fad171703def16f9a1b95f2e8dc01afc062a0', slot: "content" }, this.message), hAsync("slot", { key: '502d9abb156d4a40f36f442a6629e08b754a983f', name: "content" }))));
|
|
25478
25552
|
}
|
|
25479
25553
|
get el() { return getElement(this); }
|
|
25480
25554
|
static get style() { return NvTooltipStyle0; }
|