@nova-design-system/nova-react 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/cjs/{index-Cn-oNJnW.js → index-BlWxX8x6.js} +2199 -1452
  2. package/dist/cjs/index.js +2 -1
  3. package/dist/cjs/{nv-alert.entry-BFwufSUQ.js → nv-alert.entry-BLGSitrm.js} +7 -7
  4. package/dist/cjs/{nv-avatar.entry-Do1K4s3s.js → nv-avatar.entry-CRcLMbEx.js} +7 -7
  5. package/dist/cjs/{nv-badge_2.entry-NTGHyFdg.js → nv-badge_2.entry-BtDAr7_d.js} +1 -1
  6. package/dist/cjs/{nv-breadcrumb.entry-oPVGJYlk.js → nv-breadcrumb.entry-PVDZoF9i.js} +1 -1
  7. package/dist/cjs/{nv-breadcrumbs.entry-BsOw153b.js → nv-breadcrumbs.entry-BY169s5F.js} +1 -1
  8. package/dist/cjs/{nv-button.entry-13tdBiRr.js → nv-button.entry-BpxpxFJP.js} +7 -7
  9. package/dist/cjs/{nv-calendar.entry-u9MgGb83.js → nv-calendar.entry-BobyjFdK.js} +389 -177
  10. package/dist/cjs/{nv-col.entry-DFhv-GI7.js → nv-col.entry-B4BJXJw-.js} +1 -1
  11. package/dist/cjs/{nv-datagrid.entry-BoB17gvI.js → nv-datagrid.entry-D5UVDiYl.js} +100 -108
  12. package/dist/cjs/{nv-datagridcolumn.entry-C3MYBmfS.js → nv-datagridcolumn.entry-dmpcmCIT.js} +2 -2
  13. package/dist/cjs/{nv-dialog.entry-OA3qL3Tx.js → nv-dialog.entry-BYovzkco.js} +3 -3
  14. package/dist/cjs/{nv-dialogfooter_2.entry-LAQYSiGV.js → nv-dialogfooter_2.entry-C9dhLKRM.js} +3 -3
  15. package/dist/cjs/{nv-fieldcheckbox.entry-CP7SDzVO.js → nv-fieldcheckbox.entry-BvFqY2dM.js} +1 -1
  16. package/dist/cjs/nv-fielddate.entry-CSpAcEXW.js +303 -0
  17. package/dist/cjs/nv-fielddaterange.entry-C14o96dd.js +439 -0
  18. package/dist/cjs/{nv-fielddropdown.entry-Nwric1vT.js → nv-fielddropdown.entry-C3VzNRhh.js} +84 -60
  19. package/dist/cjs/{nv-fielddropdownitem.entry-CiqSw5VL.js → nv-fielddropdownitem.entry-D4G4Ytus.js} +1 -1
  20. package/dist/cjs/{nv-fieldmultiselect.entry-QKNIBcW1.js → nv-fieldmultiselect.entry-Ci43ZvzC.js} +116 -104
  21. package/dist/cjs/nv-fieldnumber.entry-nvUi-64H.js +130 -0
  22. package/dist/cjs/nv-fieldpassword.entry-C2uqwDah.js +121 -0
  23. package/dist/cjs/{nv-fieldradio.entry-Dxc6ZCyb.js → nv-fieldradio.entry-DL2GdKqO.js} +1 -1
  24. package/dist/cjs/{nv-fieldselect.entry-Cys0KRyG.js → nv-fieldselect.entry-D4AIRE24.js} +2 -2
  25. package/dist/cjs/nv-fieldslider.entry-BNge4J69.js +665 -0
  26. package/dist/cjs/nv-fieldtext.entry-BI-fdkdX.js +123 -0
  27. package/dist/cjs/nv-fieldtextarea.entry-Ct0g9Qtb.js +198 -0
  28. package/dist/cjs/{nv-fieldtime.entry-BqxiFlLI.js → nv-fieldtime.entry-CmO96Py1.js} +67 -67
  29. package/dist/cjs/nv-icon.entry-TepdQ1jA.js +79 -0
  30. package/dist/cjs/{nv-iconbutton_2.entry-BLNrQz9Q.js → nv-iconbutton_2.entry-B7Xyut9H.js} +3 -3
  31. package/dist/cjs/{nv-menu.entry-7IDfPmZ8.js → nv-menu.entry-DHrRi_37.js} +2 -2
  32. package/dist/cjs/{nv-menuitem.entry-B9cjy7O8.js → nv-menuitem.entry-B_D1pSYa.js} +2 -2
  33. package/dist/cjs/{nv-popover.entry-ChLYZ3zY.js → nv-popover.entry-DyQPEQ4I.js} +2 -2
  34. package/dist/cjs/{nv-row.entry-DiLY8Vbc.js → nv-row.entry-CDTv7ikK.js} +2 -2
  35. package/dist/cjs/{nv-stack.entry-MpPzmg5_.js → nv-stack.entry-A78c6BVf.js} +2 -2
  36. package/dist/cjs/{nv-table.entry-cME3Zuq2.js → nv-table.entry-DkwcfdJM.js} +3 -3
  37. package/dist/cjs/{nv-tablecolumn.entry-DSctDxCS.js → nv-tablecolumn.entry-C8VNSpDf.js} +1 -1
  38. package/dist/cjs/{nv-toggle.entry-EBWm3Xy5.js → nv-toggle.entry-vxSyUDKZ.js} +3 -3
  39. package/dist/cjs/{nv-tooltip.entry-q6rJLq1C.js → nv-tooltip.entry-BQKXRp4d.js} +3 -3
  40. package/dist/generated/components.js +15 -3
  41. package/dist/types/generated/components.d.ts +8 -3
  42. package/package.json +1 -1
  43. package/dist/cjs/nv-fielddate.entry-CD7PX6yA.js +0 -269
  44. package/dist/cjs/nv-fielddaterange.entry-BVBVGmly.js +0 -353
  45. package/dist/cjs/nv-fieldnumber.entry-DfHcI-sO.js +0 -130
  46. package/dist/cjs/nv-fieldpassword.entry-b2pUmS8F.js +0 -121
  47. package/dist/cjs/nv-fieldtext.entry-DCZWLFFp.js +0 -123
  48. package/dist/cjs/nv-fieldtextarea.entry-DEeRdtZ7.js +0 -198
  49. package/dist/cjs/nv-icon.entry-CzEdUDdA.js +0 -79
  50. /package/dist/cjs/{constants-b97e736d-BzFAKCkR.js → constants-4faa1fae-BzFAKCkR.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cn-oNJnW.js');
3
+ var index = require('./index-BlWxX8x6.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  require('react');
6
6
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cn-oNJnW.js');
3
+ var index = require('./index-BlWxX8x6.js');
4
4
  var dom_utilsAc71e0ef = require('./dom.utils-ac71e0ef-CmIwRr6O.js');
5
- var constantsB97e736d = require('./constants-b97e736d-BzFAKCkR.js');
5
+ var constants4faa1fae = require('./constants-4faa1fae-BzFAKCkR.js');
6
6
  require('react');
7
7
 
8
8
  /**
@@ -3459,9 +3459,9 @@ const NvDatagrid = class {
3459
3459
  return;
3460
3460
  const nextOrder = header.column.getNextSortingOrder();
3461
3461
  switch (nextOrder) {
3462
- case constantsB97e736d.SortingPossibility.Asc:
3462
+ case constants4faa1fae.SortingPossibility.Asc:
3463
3463
  return 'Sort ascending';
3464
- case constantsB97e736d.SortingPossibility.Desc:
3464
+ case constants4faa1fae.SortingPossibility.Desc:
3465
3465
  return 'Sort descending';
3466
3466
  default:
3467
3467
  return 'Clear sort';
@@ -3501,34 +3501,37 @@ const NvDatagrid = class {
3501
3501
  header: col.header,
3502
3502
  accessor: col.accessor,
3503
3503
  repeatTemplate: col.hasAttribute('repeat-template'),
3504
+ group: col.group,
3504
3505
  };
3505
3506
  this.columnData.push(colData);
3506
3507
  });
3508
+ console.info('cacheTemplates this.columnData:', this.columnData);
3507
3509
  }
3508
3510
  parseDataAndColumns() {
3509
- if (this.dataJson) {
3510
- this.parseJsonData(this.dataJson);
3511
- }
3512
- else if (this.data && this.data.length > 0) {
3511
+ if (this.data && this.data.length > 0) {
3513
3512
  this.parseDataArray(this.data, this.parsedData);
3514
3513
  }
3515
- if (this.columnsJson) {
3516
- this.parseJsonColumns(this.columnsJson, this.parsedColumns);
3517
- }
3518
- else if (this.columns && this.columns.length > 0) {
3514
+ if (this.columns && this.columns.length > 0) {
3519
3515
  this.parseColumnsArray(this.columns, this.parsedColumns);
3520
3516
  }
3521
3517
  else if (this.headerTemplateCache.size > 0) {
3522
3518
  const headerKeys = Array.from(this.headerTemplateCache.keys());
3523
- const arrayColumnsConfig = headerKeys.map(key => (Object.assign({}, { accessor: key, header: key ? key.charAt(0).toUpperCase() + key.slice(1) : '' })));
3519
+ const arrayColumnsConfig = headerKeys.map(key => {
3520
+ var _a, _b;
3521
+ return (Object.assign({}, { accessor: key, header: key ? key.charAt(0).toUpperCase() + key.slice(1) : '', group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped' }));
3522
+ });
3524
3523
  this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
3525
3524
  }
3526
3525
  else if (this.parsedData.length > 0) {
3527
3526
  const firstRow = this.parsedData[0];
3528
- const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
3529
- accessor: key,
3530
- header: key.charAt(0).toUpperCase() + key.slice(1),
3531
- }));
3527
+ const arrayColumnsConfig = Object.keys(firstRow).map(key => {
3528
+ var _a, _b;
3529
+ return ({
3530
+ accessor: key,
3531
+ header: key.charAt(0).toUpperCase() + key.slice(1),
3532
+ group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped',
3533
+ });
3534
+ });
3532
3535
  if (this.autoGenerateColumns) {
3533
3536
  this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
3534
3537
  }
@@ -3571,6 +3574,7 @@ const NvDatagrid = class {
3571
3574
  var _a, _b, _c, _d;
3572
3575
  // Clear the previous table instance (if any)
3573
3576
  this.table = null;
3577
+ console.info('initializeTable this.columnData:', this.columnData);
3574
3578
  // Set default options for the table
3575
3579
  const tableOptions = {
3576
3580
  columns: [],
@@ -3629,10 +3633,14 @@ const NvDatagrid = class {
3629
3633
  if (hasData) {
3630
3634
  // No parsed columns and data is available
3631
3635
  const firstRow = this.parsedData[0];
3632
- const arrayColumnsConfig = Object.keys(firstRow).map(key => ({
3633
- accessor: key,
3634
- header: key.charAt(0).toUpperCase() + key.slice(1),
3635
- }));
3636
+ const arrayColumnsConfig = Object.keys(firstRow).map(key => {
3637
+ var _a, _b;
3638
+ return ({
3639
+ accessor: key,
3640
+ header: key.charAt(0).toUpperCase() + key.slice(1),
3641
+ group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped',
3642
+ });
3643
+ });
3636
3644
  if (this.autoGenerateColumns) {
3637
3645
  this.parseColumnsArray(arrayColumnsConfig, this.parsedColumns);
3638
3646
  }
@@ -3789,70 +3797,76 @@ const NvDatagrid = class {
3789
3797
  }
3790
3798
  // Helper function to generate column definitions
3791
3799
  generateColumns(validColumns, tableOptions) {
3792
- let generatedColumns = [];
3800
+ console.info('generateColumns this.columnData:', this.columnData);
3801
+ console.info('generateColumns validColumns:', validColumns);
3802
+ let processedColumns = validColumns || [];
3793
3803
  const columnHelper = createColumnHelper();
3794
- if (validColumns.length > 0) {
3795
- // Use defined columns
3796
- generatedColumns = validColumns.map(column => {
3804
+ // If no columns provided or autoGenerateColumns is true, generate them from data
3805
+ if ((!validColumns && tableOptions.data && tableOptions.data.length > 0) ||
3806
+ (validColumns.length <= 0 &&
3807
+ tableOptions.data &&
3808
+ tableOptions.data.length > 0)) {
3809
+ const sampleRow = tableOptions.data[0];
3810
+ processedColumns = Object.keys(sampleRow).map(key => {
3797
3811
  var _a, _b;
3798
- const identifiedColumnDef = {
3799
- header: (_b = (this.renderTemplate(this.headerTemplateCache.get(column.accessor), (_a = column.header) !== null && _a !== void 0 ? _a : column.accessor, null) ||
3800
- column.header)) !== null && _b !== void 0 ? _b : column.accessor,
3801
- cell: (info) => {
3802
- var _a, _b, _c;
3803
- const value = info.getValue();
3804
- const cellAccessors = column.accessor;
3805
- const row = info.row;
3806
- return ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
3807
- ? value.map((item) => {
3808
- var _a, _b;
3809
- return (_b = (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
3810
- item)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : this.fallbackValue;
3811
- })
3812
- : (_c = (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), value, row) ||
3813
- value)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
3814
- },
3815
- enableGlobalFilter: this.enableGlobalFilter,
3816
- enableSorting: this.enableSorting,
3817
- };
3818
- if (this.enableSorting) {
3819
- identifiedColumnDef.sortUndefined = 'last'; // Force undefined values to the end
3820
- identifiedColumnDef.sortDescFirst = false; // First sort order will be ascending (nullable values can mess up auto detection of sort order)
3821
- }
3822
- return columnHelper.accessor(column.accessor, identifiedColumnDef);
3812
+ return ({
3813
+ header: key.charAt(0).toUpperCase() + key.slice(1),
3814
+ accessor: key,
3815
+ group: (_b = (_a = this.columnData.find(x => x.accessor === key)) === null || _a === void 0 ? void 0 : _a.group) !== null && _b !== void 0 ? _b : 'ungrouped',
3816
+ headerSlot: null,
3817
+ cellSlot: null,
3818
+ });
3823
3819
  });
3824
3820
  }
3825
- else if (tableOptions.data && tableOptions.data.length > 0) {
3826
- // Generate columns from data keys
3827
- const sampleRow = tableOptions.data[0];
3828
- generatedColumns = Object.keys(sampleRow).map(key => {
3829
- const identifiedColumnDef = {
3830
- header: this.renderTemplate(this.headerTemplateCache.get(key), key.charAt(0).toUpperCase() + key.slice(1), null) || key.charAt(0).toUpperCase() + key.slice(1), // Capitalize key for header
3831
- cell: (info) => {
3832
- var _a, _b, _c;
3833
- const value = info.getValue();
3834
- const cellAccessors = key;
3835
- const row = info.row;
3836
- return ((_a = this.columnData.find(x => x.accessor === cellAccessors)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
3837
- ? value.map((item) => {
3838
- var _a, _b;
3839
- return (_b = (_a = (this.renderTemplate(this.templateCache.get(cellAccessors), item, row) ||
3840
- item)) !== null && _a !== void 0 ? _a : value) !== null && _b !== void 0 ? _b : this.fallbackValue;
3841
- })
3842
- : (_c = (_b = (this.renderTemplate(this.templateCache.get(cellAccessors), value, row) ||
3843
- value)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
3844
- },
3845
- enableGlobalFilter: this.enableGlobalFilter,
3846
- enableSorting: this.enableSorting,
3847
- };
3848
- if (this.enableSorting) {
3849
- identifiedColumnDef.sortUndefined = 'last'; // Force undefined values to the end
3850
- identifiedColumnDef.sortDescFirst = false; // First sort order will be ascending (nullable values can mess up auto detection of sort order)
3851
- }
3852
- return columnHelper.accessor(key, identifiedColumnDef);
3821
+ // Group columns by their group property
3822
+ const groupedColumns = processedColumns.reduce((acc, column) => {
3823
+ let group = column.group || 'ungrouped';
3824
+ if (group == 'ungrouped') {
3825
+ group = group + processedColumns.findIndex(x => x == column);
3826
+ }
3827
+ if (!acc[group]) {
3828
+ acc[group] = [];
3829
+ }
3830
+ acc[group].push(column);
3831
+ return acc;
3832
+ }, {});
3833
+ // Transform each column into a ColumnDef
3834
+ const createColumnDef = (column) => {
3835
+ var _a, _b, _c;
3836
+ return columnHelper.accessor(column.accessor, {
3837
+ header: (_c = (_b = this.renderTemplate(this.headerTemplateCache.get(column.accessor), (_a = column.header) !== null && _a !== void 0 ? _a : column.accessor, null)) !== null && _b !== void 0 ? _b : column.header) !== null && _c !== void 0 ? _c : column.accessor,
3838
+ cell: (info) => {
3839
+ var _a, _b, _c;
3840
+ const value = info.getValue();
3841
+ const row = info.row;
3842
+ return ((_a = this.columnData.find(x => x.accessor === column.accessor)) === null || _a === void 0 ? void 0 : _a.repeatTemplate) && Array.isArray(value)
3843
+ ? value.map((item) => {
3844
+ var _a, _b, _c;
3845
+ return (_c = (_b = (_a = this.renderTemplate(this.templateCache.get(column.accessor), item, row)) !== null && _a !== void 0 ? _a : item) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
3846
+ })
3847
+ : (_c = (_b = this.renderTemplate(this.templateCache.get(column.accessor), value, row)) !== null && _b !== void 0 ? _b : value) !== null && _c !== void 0 ? _c : this.fallbackValue;
3848
+ },
3849
+ sortUndefined: 'last',
3850
+ sortDescFirst: false,
3851
+ enableSorting: this.enableSorting, // Explicitly set enableSorting based on the sorting prop
3852
+ enableGlobalFilter: this.enableGlobalFilter, // Explicity set enableGlobalFilter based on the globalFiltering prop
3853
3853
  });
3854
- }
3855
- else ;
3854
+ };
3855
+ // Create the final column structure
3856
+ let generatedColumns = Object.entries(groupedColumns)
3857
+ .map(([groupName, groupColumns]) => {
3858
+ if (groupName.includes('ungrouped')) {
3859
+ return groupColumns.map(createColumnDef);
3860
+ }
3861
+ return {
3862
+ id: groupName,
3863
+ header: groupName,
3864
+ columns: groupColumns.map(createColumnDef),
3865
+ enableSorting: this.enableSorting, // Also apply to column groups
3866
+ enableGlobalFilter: this.enableGlobalFilter, // Also apply to column groups
3867
+ };
3868
+ })
3869
+ .flat();
3856
3870
  if (this.enableRowSelection) {
3857
3871
  const rowSelection = columnHelper.accessor('select', {
3858
3872
  header: ({ table }) => {
@@ -4139,10 +4153,10 @@ const NvDatagrid = class {
4139
4153
  if (!header.column.getCanSort())
4140
4154
  return null;
4141
4155
  const sortState = header.column.getIsSorted();
4142
- if (sortState === constantsB97e736d.SortingPossibility.Asc) {
4156
+ if (sortState === constants4faa1fae.SortingPossibility.Asc) {
4143
4157
  return (index.h("div", { class: "inline-flex align-middle" }, index.h("nv-icon", { name: "arrow-up" })));
4144
4158
  }
4145
- if (sortState === constantsB97e736d.SortingPossibility.Desc) {
4159
+ if (sortState === constants4faa1fae.SortingPossibility.Desc) {
4146
4160
  return (index.h("div", { class: "inline-flex align-middle" }, index.h("nv-icon", { name: "arrow-down" })));
4147
4161
  }
4148
4162
  return null;
@@ -4158,9 +4172,9 @@ const NvDatagrid = class {
4158
4172
  const sortIcon = this.getArrowSorting(header);
4159
4173
  const handleClick = this.createSortingClickHandler(header);
4160
4174
  if (this.enableRowSelection) {
4161
- return (index.h("th", { key: header.id }, content, " "));
4175
+ return (index.h("th", { key: header.id, colSpan: header.colSpan }, content, " "));
4162
4176
  }
4163
- const returnHtml = (index.h("th", { key: header.id }, index.h("button", { type: "button", class: isSortable
4177
+ const returnHtml = (index.h("th", { key: header.id, colSpan: header.colSpan }, index.h("button", { type: "button", class: isSortable
4164
4178
  ? 'w-full text-left cursor-pointer select-none bg-transparent border-none p-0 m-0 focus:outline-none'
4165
4179
  : 'w-full text-left bg-transparent border-none p-0 m-0 cursor-default', onClick: handleClick, title: sortTitle }, index.h("span", { class: "inline-flex items-center gap-1" }, content, sortIcon))));
4166
4180
  return returnHtml;
@@ -4181,29 +4195,9 @@ const NvDatagrid = class {
4181
4195
  parseColumns(newValue, oldValue = []) {
4182
4196
  this.parseColumnsArray(newValue, oldValue);
4183
4197
  }
4184
- parseJsonColumns(newValue, oldValue) {
4185
- try {
4186
- const newItems = newValue ? JSON.parse(newValue) : [];
4187
- this.parseColumnsArray(newItems, oldValue);
4188
- }
4189
- catch (e) {
4190
- console.error('Invalid JSON format for columnsJson:', e.message);
4191
- this.parsedColumns = [];
4192
- }
4193
- }
4194
4198
  parseData(newValue, oldValue = []) {
4195
4199
  this.parseDataArray(newValue, oldValue);
4196
4200
  }
4197
- parseJsonData(newValue) {
4198
- try {
4199
- const newItems = newValue ? JSON.parse(newValue) : [];
4200
- this.parseDataArray(newItems, this.parsedData);
4201
- }
4202
- catch (e) {
4203
- console.error('Invalid JSON format for dataJson:', e.message);
4204
- this.parsedData = [];
4205
- }
4206
- }
4207
4201
  handleParsedChange() {
4208
4202
  this.initializeTable();
4209
4203
  }
@@ -4295,7 +4289,7 @@ const NvDatagrid = class {
4295
4289
  const rows = !this.table || this.table === undefined || this.parsedData.length === 0
4296
4290
  ? []
4297
4291
  : (_c = (_b = this.table) === null || _b === void 0 ? void 0 : _b.getRowModel()) === null || _c === void 0 ? void 0 : _c.rows;
4298
- return (index.h(index.Host, { key: '7ed48645de6272bb3fed7897406e2a798021bba2' }, index.h("div", { key: '4ae6135c7ca302e06c3d26509dbf813128631a2e', class: "hidden" }, index.h("slot", { key: '3f8078b877a4e2ebe46842fc3a52d7059cb3cc68' })), index.h("slot", { key: 'c97cb30a0ce80dc8c25c2b855eb6086937dbe76b', name: "before" }), this.enableGlobalFilter && this.table && (index.h("div", { key: '68cd75ed6ecad3de049797ebfe7787f5a0b357fa', class: `search-container justify-${this.globalFilterPosition}` }, index.h("nv-fieldtext", { key: '80b4f8b50c3dda39555597a44707f3a296fbb8e6', value: this.globalFilterSearchTerm, onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns..." }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (index.h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (index.h("div", null, index.h("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (index.h("thead", null, this.parsedColumns.length > 0 && headerGroups
4292
+ return (index.h(index.Host, { key: '90be657fa9c7f8755391f8d91418399de742ae1f' }, index.h("div", { key: 'f28596438b7c9c22b34789236c5faa644938d1dc', class: "hidden" }, index.h("slot", { key: 'fdc1670cc6bafb5f1efa8c63d41acbfd15659de6' })), index.h("slot", { key: '65afa2282af4842bcb23f8baa592545fe3b74fa3', name: "before" }), this.enableGlobalFilter && this.table && (index.h("div", { key: '8628a23712471690b6a6239a289dd8263aed423c', class: `search-container justify-${this.globalFilterPosition}` }, index.h("nv-fieldtext", { key: '42c56dd6ba426e2045c02b3754fae3562632c49f', value: this.globalFilterSearchTerm, onInput: this.handleGlobalFilteringOnInput, placeholder: "Search all columns..." }))), this.parsedColumns.length === 0 && this.parsedData.length === 0 ? (index.h("div", { class: "no-data" }, this.noColumnsNoDataMessage)) : (index.h("div", null, index.h("table", null, this.parsedColumns.length > 0 && headerGroups.length > 0 && (index.h("thead", null, this.parsedColumns.length > 0 && headerGroups
4299
4293
  ? headerGroups === null || headerGroups === void 0 ? void 0 : headerGroups.map(headerGroup => (index.h("tr", { key: headerGroup.id }, headerGroup.headers.map(header => {
4300
4294
  return this.getHeaderCell(header);
4301
4295
  }))))
@@ -4306,14 +4300,12 @@ const NvDatagrid = class {
4306
4300
  return (index.h("td", { key: cell.id, "data-row-id": rowId }, this.flexRender(cell.column.columnDef.cell, cell.getContext())));
4307
4301
  })));
4308
4302
  }))), this.table && this.enableRowSelection ? (index.h("tfoot", null, index.h("tr", null, index.h("td", { colSpan: 20 }, this.enableRowSelection && this.table ? (index.h("div", null, this.rowSelectionState &&
4309
- Object.keys(this.rowSelectionState).length > 0 ? (index.h("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")) : (index.h("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), index.h("slot", { key: 'f7209e67ff423310bb4b59b866f486ade897781a', name: "after" })));
4303
+ Object.keys(this.rowSelectionState).length > 0 ? (index.h("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")) : (index.h("span", null, "No rows selected")))) : null)))) : null), this.getPagination())), index.h("slot", { key: 'e1641d8fd103b0802e1df4f0848f0de921260065', name: "after" })));
4310
4304
  }
4311
4305
  get el() { return index.getElement(this); }
4312
4306
  static get watchers() { return {
4313
4307
  "columns": ["parseColumns"],
4314
- "columnsJson": ["parseJsonColumns"],
4315
4308
  "data": ["parseData"],
4316
- "dataJson": ["parseJsonData"],
4317
4309
  "parsedColumns": ["handleParsedChange"],
4318
4310
  "parsedData": ["handleParsedChange"],
4319
4311
  "globalFilterSearchTerm": ["handleGlobalFilterSearchTerm"],
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cn-oNJnW.js');
3
+ var index = require('./index-BlWxX8x6.js');
4
4
  require('react');
5
5
 
6
6
  const NvDatagridcolumn = class {
@@ -15,7 +15,7 @@ const NvDatagridcolumn = class {
15
15
  /****************************************************************************/
16
16
  //#region RENDER
17
17
  render() {
18
- return (index.h(index.Host, { key: '20839d4a0abfa07e55a49b434ad26e3ddaebb66b' }, index.h("slot", { key: '2c1b24aef73e9be8e500d48741e4dc6a42ed6f06', name: "header" }), index.h("slot", { key: 'cbc4bcbb080f8647c6f702e4a52411fe9be1f6ca', name: "cell" })));
18
+ return (index.h(index.Host, { key: 'daa7b24c99857d7467f0a5ce0b69dcbeb42577e7' }, index.h("slot", { key: '8c2fe1f1b806322cdf1c89b9243dd0d094e565eb', name: "header" }), index.h("slot", { key: '81ae95ccd66f88c05253fde0ec9e0d20e02e5304', name: "cell" })));
19
19
  }
20
20
  };
21
21
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cn-oNJnW.js');
3
+ var index = require('./index-BlWxX8x6.js');
4
4
  var events_utilsFe1d907f = require('./events.utils-fe1d907f-01N__3wY.js');
5
5
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
6
- var constantsB97e736d = require('./constants-b97e736d-BzFAKCkR.js');
6
+ var constants4faa1fae = require('./constants-4faa1fae-BzFAKCkR.js');
7
7
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
8
8
  require('react');
9
9
 
@@ -782,7 +782,7 @@ const NvDialog = class {
782
782
  //#region RENDER
783
783
  render() {
784
784
  const hasForm = this.form || this.el.querySelector('form');
785
- return (index.h(index.Host, { key: 'c1eb9b79f52028c3ef7a57bad99260a45b678eb5' }, index.h("slot", { key: '65a624853aa7242dc849a1196c6b5b8c331d426f', name: "trigger" }), index.h("dialog", { key: '17369b9be014e9136d77f99628b4bc8184d36370', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx297c1ffe.clsx({ full: this.full }) }, index.h("div", { key: '8a17cd8deff162b333e2ac90c487454743d76f3d', class: "content" }, !this.undismissable && (index.h("nv-button", { key: 'd61a63785ce284ce2039be5c62d6e2bcce2a9b44', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleCloseButton, "aria-label": "Close dialog" }, index.h("nv-icon", { key: '5a0adb449785bc684c41d0e35aad08ccb725386a', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-dialogheader", { id: "dialog-header" })), index.h("div", { key: '7c39e52d8fe6fc9ab2fdc2574a0c105d790bbfbe', class: "content-body", id: "dialog-content" }, index.h("slot", { key: '038d9f3623177af5d996631dd9ae25fec49fd778' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? constantsB97e736d.ButtonType.Submit : constantsB97e736d.ButtonType.Button, onDialogCanceled: this.handleCancelButton, undismissable: this.undismissable }))))));
785
+ return (index.h(index.Host, { key: 'c1eb9b79f52028c3ef7a57bad99260a45b678eb5' }, index.h("slot", { key: '65a624853aa7242dc849a1196c6b5b8c331d426f', name: "trigger" }), index.h("dialog", { key: '17369b9be014e9136d77f99628b4bc8184d36370', ref: el => (this.dialogElement = el), onClose: this.handleDialogClose, role: "dialog", "aria-modal": "true", "aria-labelledby": "dialog-header", "aria-describedby": "dialog-content", class: clsx297c1ffe.clsx({ full: this.full }) }, index.h("div", { key: '8a17cd8deff162b333e2ac90c487454743d76f3d', class: "content" }, !this.undismissable && (index.h("nv-button", { key: 'd61a63785ce284ce2039be5c62d6e2bcce2a9b44', class: "close-button", emphasis: "lower", size: "sm", onClick: this.handleCloseButton, "aria-label": "Close dialog" }, index.h("nv-icon", { key: '5a0adb449785bc684c41d0e35aad08ccb725386a', name: "x", size: "sm" }))), this.headerElement ? (index.h("slot", { name: "header" })) : (index.h("nv-dialogheader", { id: "dialog-header" })), index.h("div", { key: '7c39e52d8fe6fc9ab2fdc2574a0c105d790bbfbe', class: "content-body", id: "dialog-content" }, index.h("slot", { key: '038d9f3623177af5d996631dd9ae25fec49fd778' })), this.footerElement ? (index.h("slot", { name: "footer" })) : (index.h("nv-dialogfooter", { form: this.form, primaryButtonType: hasForm ? constants4faa1fae.ButtonType.Submit : constants4faa1fae.ButtonType.Button, onDialogCanceled: this.handleCancelButton, undismissable: this.undismissable }))))));
786
786
  }
787
787
  get el() { return index.getElement(this); }
788
788
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cn-oNJnW.js');
4
- var constantsB97e736d = require('./constants-b97e736d-BzFAKCkR.js');
3
+ var index = require('./index-BlWxX8x6.js');
4
+ var constants4faa1fae = require('./constants-4faa1fae-BzFAKCkR.js');
5
5
  require('react');
6
6
 
7
7
  const nvDialogfooterCss = "nv-dialogfooter{display:flex;padding:var(--dialog-footer-padding-top) var(--dialog-footer-padding-x) var(--dialog-footer-padding-bottom) var(--dialog-footer-padding-x);justify-content:flex-end;align-items:flex-end;gap:var(--dialog-footer-gap-y);align-self:stretch}";
@@ -54,7 +54,7 @@ const NvDialogfooter = class {
54
54
  /**
55
55
  * Sets the type of the primary button.
56
56
  */
57
- this.primaryButtonType = constantsB97e736d.ButtonType.Button;
57
+ this.primaryButtonType = constants4faa1fae.ButtonType.Button;
58
58
  //#endregion EVENTS
59
59
  /****************************************************************************/
60
60
  //#region METHODS
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-Cn-oNJnW.js');
3
+ var index = require('./index-BlWxX8x6.js');
4
4
  var clsx297c1ffe = require('./clsx-297c1ffe-BtxeOLZW.js');
5
5
  var v4A79185f4 = require('./v4-a79185f4-2n0dOd_Y.js');
6
6
  require('react');