@nova-design-system/nova-react 3.26.0 → 3.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/generated/components.server.js +19 -0
- package/dist/cjs/{index-BeFrXZol.js → index-clzdrCkN.js} +250 -236
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/{nv-accordion-item.entry-DtzjLTCo.js → nv-accordion-item.entry-Gn0QFETn.js} +1 -1
- package/dist/cjs/{nv-accordion.entry-DRcTfezT.js → nv-accordion.entry-BooppL5C.js} +1 -1
- package/dist/cjs/{nv-alert.entry-86bfoXVx.js → nv-alert.entry-CDmHhq86.js} +1 -1
- package/dist/cjs/{nv-avatar.entry-mp2LJ6RA.js → nv-avatar.entry-pYMjQvxK.js} +1 -1
- package/dist/cjs/{nv-badge_2.entry-BrDaHeqh.js → nv-badge_2.entry-BneUUyR7.js} +1 -1
- package/dist/cjs/{nv-breadcrumb.entry-B2q7jJy2.js → nv-breadcrumb.entry-B7CGcJ_l.js} +1 -1
- package/dist/cjs/{nv-breadcrumbs.entry-DKzST1uS.js → nv-breadcrumbs.entry-BNKz4ehX.js} +1 -1
- package/dist/cjs/{nv-button.entry-CVgcU-bi.js → nv-button.entry-DDCkNY_S.js} +1 -1
- package/dist/cjs/{nv-buttongroup.entry-CvuBGaGK.js → nv-buttongroup.entry-Bio-SWcx.js} +1 -1
- package/dist/cjs/{nv-calendar.entry-BCcGhxzJ.js → nv-calendar.entry-BoNFEz6W.js} +1 -1
- package/dist/cjs/{nv-col.entry-CzTahRVr.js → nv-col.entry-BHTqFTHl.js} +1 -1
- package/dist/cjs/{nv-datagrid.entry-DWZxNqTE.js → nv-datagrid.entry-Bw_sqaMu.js} +1 -1
- package/dist/cjs/{nv-datagridcolumn.entry-CzCzmdQl.js → nv-datagridcolumn.entry-Z-RXn3ak.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-ByVD02QB.js → nv-dialog.entry-ByZkK4F9.js} +16 -3
- package/dist/cjs/{nv-dialogfooter_2.entry-BmQcYJsD.js → nv-dialogfooter_2.entry-Bddcz6HA.js} +1 -1
- package/dist/cjs/{nv-drawer.entry-C15JRJ3N.js → nv-drawer.entry-660dihzy.js} +1 -1
- package/dist/cjs/{nv-drawerfooter_2.entry-DuDac_Os.js → nv-drawerfooter_2.entry-D6EA-3-u.js} +1 -1
- package/dist/cjs/{nv-fieldcheckbox.entry-CwDOQzSW.js → nv-fieldcheckbox.entry-Bm6qurcS.js} +1 -1
- package/dist/cjs/{nv-fielddate.entry-DKICGwc0.js → nv-fielddate.entry-DW9RQ_dD.js} +1 -1
- package/dist/cjs/{nv-fielddaterange.entry-DGEK8F9p.js → nv-fielddaterange.entry-m3dY0P2v.js} +1 -1
- package/dist/cjs/{nv-fielddropdown.entry-BLS7lRzD.js → nv-fielddropdown.entry-DkARzQix.js} +1 -1
- package/dist/cjs/{nv-fielddropdownitem.entry-Bbfi3A8C.js → nv-fielddropdownitem.entry-DKG1bO2H.js} +1 -1
- package/dist/cjs/{nv-fieldmultiselect.entry-Cpy7HzlZ.js → nv-fieldmultiselect.entry-B4As0NxI.js} +1 -1
- package/dist/cjs/{nv-fieldnumber.entry-SbNb4hKr.js → nv-fieldnumber.entry-DHBPKUcr.js} +1 -1
- package/dist/cjs/{nv-fieldpassword.entry-CPsgagjY.js → nv-fieldpassword.entry-DxEaIvRh.js} +1 -1
- package/dist/cjs/{nv-fieldradio.entry-DLP-rmKU.js → nv-fieldradio.entry-MSrPlSzv.js} +1 -1
- package/dist/cjs/{nv-fieldselect.entry-DOOO03kM.js → nv-fieldselect.entry-qMAtqdcr.js} +1 -1
- package/dist/cjs/{nv-fieldslider.entry-CpVbxkpo.js → nv-fieldslider.entry-CHdMG-lt.js} +1 -1
- package/dist/cjs/{nv-fieldtext.entry-BpbG4WHv.js → nv-fieldtext.entry-tbYFUJP9.js} +1 -1
- package/dist/cjs/{nv-fieldtextarea.entry-BA_RApYN.js → nv-fieldtextarea.entry-D7b3-4Ar.js} +1 -1
- package/dist/cjs/{nv-fieldtime.entry-DaJfwQtC.js → nv-fieldtime.entry-TSPljEeW.js} +1 -1
- package/dist/cjs/{nv-icon.entry-DIi792yJ.js → nv-icon.entry-BtmsouTL.js} +2 -2
- package/dist/cjs/{nv-iconbutton_2.entry-B4xB5WtE.js → nv-iconbutton_2.entry-Ch0rfD12.js} +1 -1
- package/dist/cjs/{nv-menu.entry-DHWhkWeB.js → nv-menu.entry-BKLyCbyy.js} +1 -1
- package/dist/cjs/{nv-menuitem.entry-CQApuT2D.js → nv-menuitem.entry-BBK6uQav.js} +1 -1
- package/dist/cjs/{nv-notification-bullet.entry-CnYVWE_Z.js → nv-notification-bullet.entry-Dk0oaUTe.js} +1 -1
- package/dist/cjs/{nv-notification.entry-DraOvzsu.js → nv-notification.entry-DVUXuj9T.js} +1 -1
- package/dist/cjs/{nv-notificationcontainer.entry-BDo-rQLL.js → nv-notificationcontainer.entry-BQbB0vJ8.js} +1 -1
- package/dist/cjs/nv-pagination-nav.entry-BON8ve70.js +201 -0
- package/dist/cjs/{nv-paginationtable.entry-CS7BhAVe.js → nv-paginationtable.entry-pT2Qx3xY.js} +2 -2
- package/dist/cjs/{nv-popover.entry-DSyKCLtF.js → nv-popover.entry-91VegZzi.js} +2 -2
- package/dist/cjs/{nv-row.entry-D21zN2Vr.js → nv-row.entry-C_75GYAm.js} +2 -2
- package/dist/cjs/{nv-sidebar.entry-DpKgnjsJ.js → nv-sidebar.entry-XIcDybjF.js} +2 -2
- package/dist/cjs/{nv-sidebarcontent.entry-BWFDcui8.js → nv-sidebarcontent.entry-JSf1Mb0x.js} +2 -2
- package/dist/cjs/{nv-sidebardivider.entry-BSzLq-h3.js → nv-sidebardivider.entry-XZ1hYAgj.js} +2 -2
- package/dist/cjs/{nv-sidebarfooter.entry-C3DLHPSQ.js → nv-sidebarfooter.entry-BHO9gh6y.js} +2 -2
- package/dist/cjs/{nv-sidebargroup.entry-BMYLbCql.js → nv-sidebargroup.entry-DAb7dWFF.js} +2 -2
- package/dist/cjs/{nv-sidebarheader.entry-CkUGD-Tw.js → nv-sidebarheader.entry-BksZP_km.js} +2 -2
- package/dist/cjs/{nv-sidebarlogo.entry-BX1-1S1v.js → nv-sidebarlogo.entry-BntEWmH_.js} +2 -2
- package/dist/cjs/{nv-sidebarnavitem.entry-CPwt0Njh.js → nv-sidebarnavitem.entry-DSu34C34.js} +12 -5
- package/dist/cjs/{nv-sidebarnavsubitem.entry-HZOTB6Tl.js → nv-sidebarnavsubitem.entry-Y8Ex0_Lr.js} +2 -2
- package/dist/cjs/{nv-split.entry-DdtzktvN.js → nv-split.entry-BDr6FxCd.js} +2 -2
- package/dist/cjs/{nv-stack.entry-BMLt30Nt.js → nv-stack.entry-CChjKrA3.js} +2 -2
- package/dist/cjs/{nv-table.entry-RTiqKRKM.js → nv-table.entry-CfqHpj1L.js} +2 -2
- package/dist/cjs/{nv-tableheader.entry-Ci4qo8eY.js → nv-tableheader.entry-C61xO9Ra.js} +2 -2
- package/dist/cjs/{nv-toggle.entry-s8B7-8P7.js → nv-toggle.entry-B0HofO36.js} +3 -3
- package/dist/cjs/{nv-togglebutton.entry-CyHgU4Wl.js → nv-togglebutton.entry-CzyNiZyK.js} +2 -2
- package/dist/cjs/{nv-togglebuttongroup.entry-Bn_9DsdP.js → nv-togglebuttongroup.entry-TizvIVlB.js} +2 -2
- package/dist/cjs/{nv-tooltip.entry-D6kxXLO-.js → nv-tooltip.entry-0kcGcQZo.js} +2 -2
- package/dist/generated/components.js +8 -0
- package/dist/generated/components.server.js +18 -0
- package/dist/types/generated/components.d.ts +6 -1
- package/dist/types/generated/components.server.d.ts +6 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
var constantsBReL3Lsa = require('./constants-BReL3Lsa-DpB_ghPF.js');
|
|
5
5
|
var collapse_animationDZDm0vSK = require('./collapse.animation-DZDm0vSK-C2TOIhIK.js');
|
|
6
6
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Generates a pagination range with page numbers and ellipsis items.
|
|
10
|
+
* @param {PaginationRangeConfig} config Pagination configuration.
|
|
11
|
+
* @returns {PaginationRangeItem[]} Ordered range items.
|
|
12
|
+
*/
|
|
13
|
+
function calculatePaginationRange({ currentPage, totalCount, pageSize, numStartZoneButtons, numEndZoneButtons, numMiddleButtons, showMiddleZone, }) {
|
|
14
|
+
const totalPageCount = Math.ceil(totalCount / pageSize);
|
|
15
|
+
const paginationRange = [];
|
|
16
|
+
const totalVisibleButtons = numStartZoneButtons + numEndZoneButtons;
|
|
17
|
+
if (totalPageCount <= totalVisibleButtons) {
|
|
18
|
+
for (let i = 1; i <= totalPageCount; i++) {
|
|
19
|
+
paginationRange.push(i);
|
|
20
|
+
}
|
|
21
|
+
return paginationRange;
|
|
22
|
+
}
|
|
23
|
+
const startZoneEnd = numStartZoneButtons;
|
|
24
|
+
const endZoneStart = totalPageCount - numEndZoneButtons + 1;
|
|
25
|
+
if (!showMiddleZone) {
|
|
26
|
+
const isInNaturalStartZone = currentPage <= numStartZoneButtons;
|
|
27
|
+
const isInNaturalEndZone = currentPage >= totalPageCount - numEndZoneButtons + 1;
|
|
28
|
+
if (!isInNaturalStartZone && !isInNaturalEndZone) {
|
|
29
|
+
const middlePoint = Math.floor(totalPageCount / 2);
|
|
30
|
+
if (currentPage <= middlePoint) {
|
|
31
|
+
const startIndex = currentPage - numStartZoneButtons + 1;
|
|
32
|
+
for (let i = startIndex; i <= currentPage; i++) {
|
|
33
|
+
paginationRange.push(i);
|
|
34
|
+
}
|
|
35
|
+
paginationRange.push('...');
|
|
36
|
+
for (let i = endZoneStart; i <= totalPageCount; i++) {
|
|
37
|
+
paginationRange.push(i);
|
|
38
|
+
}
|
|
39
|
+
return paginationRange;
|
|
40
|
+
}
|
|
41
|
+
for (let i = 1; i <= numStartZoneButtons; i++) {
|
|
42
|
+
paginationRange.push(i);
|
|
43
|
+
}
|
|
44
|
+
paginationRange.push('...');
|
|
45
|
+
const endIndex = Math.min(currentPage + numEndZoneButtons - 1, totalPageCount);
|
|
46
|
+
for (let i = currentPage; i <= endIndex; i++) {
|
|
47
|
+
paginationRange.push(i);
|
|
48
|
+
}
|
|
49
|
+
return paginationRange;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
const isInStartZone = currentPage <= startZoneEnd;
|
|
53
|
+
const isInEndZone = currentPage >= endZoneStart;
|
|
54
|
+
for (let i = 1; i <= startZoneEnd; i++) {
|
|
55
|
+
paginationRange.push(i);
|
|
56
|
+
}
|
|
57
|
+
if (showMiddleZone &&
|
|
58
|
+
!isInStartZone &&
|
|
59
|
+
!isInEndZone &&
|
|
60
|
+
endZoneStart > startZoneEnd + 1) {
|
|
61
|
+
paginationRange.push('...');
|
|
62
|
+
const halfMiddle = Math.floor(numMiddleButtons / 2);
|
|
63
|
+
const middleStart = Math.max(startZoneEnd + 1, currentPage - halfMiddle);
|
|
64
|
+
const middleEnd = Math.min(endZoneStart - 1, currentPage + halfMiddle);
|
|
65
|
+
for (let i = middleStart; i <= middleEnd; i++) {
|
|
66
|
+
paginationRange.push(i);
|
|
67
|
+
}
|
|
68
|
+
paginationRange.push('...');
|
|
69
|
+
}
|
|
70
|
+
else if (endZoneStart > startZoneEnd + 1) {
|
|
71
|
+
paginationRange.push('...');
|
|
72
|
+
}
|
|
73
|
+
for (let i = endZoneStart; i <= totalPageCount; i++) {
|
|
74
|
+
paginationRange.push(i);
|
|
75
|
+
}
|
|
76
|
+
return paginationRange;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const nvPaginationNavCss = () => `nv-pagination-nav{display:block}nv-pagination-nav [data-scope=pagination-nav]{display:flex;align-items:center;justify-content:center;gap:var(--spacing-2);flex-wrap:wrap}nv-pagination-nav [data-scope=page-list]{display:flex;align-items:center;gap:var(--spacing-2);list-style:none;margin:0;padding:0}nv-pagination-nav [data-scope=page-button]{display:flex;align-items:center}nv-pagination-nav [data-scope=page-button] nv-button,nv-pagination-nav [data-scope=page-button] nv-iconbutton{min-width:var(--spacing-8);justify-content:center}nv-pagination-nav [data-scope=ellipsis]{display:flex;align-items:center;justify-content:center;min-width:var(--spacing-8);height:var(--spacing-8);color:var(--color-content-lower-text);font-size:var(--font-size-sm);user-select:none}`;
|
|
80
|
+
|
|
81
|
+
const NvPaginationNav = class {
|
|
82
|
+
constructor(hostRef) {
|
|
83
|
+
index.registerInstance(this, hostRef);
|
|
84
|
+
this.currentPageChanged = index.createEvent(this, "currentPageChanged", 3);
|
|
85
|
+
/****************************************************************************/
|
|
86
|
+
//#region PROPERTIES
|
|
87
|
+
/**
|
|
88
|
+
* Label for the previous button.
|
|
89
|
+
*/
|
|
90
|
+
this.previousButtonLabel = 'Previous';
|
|
91
|
+
/**
|
|
92
|
+
* Label for the next button.
|
|
93
|
+
*/
|
|
94
|
+
this.nextButtonLabel = 'Next';
|
|
95
|
+
/**
|
|
96
|
+
* Number of page buttons to show at the start of the pagination range.
|
|
97
|
+
*/
|
|
98
|
+
this.numStartZoneButtons = 2;
|
|
99
|
+
/**
|
|
100
|
+
* Number of page buttons to show at the end of the pagination range.
|
|
101
|
+
*/
|
|
102
|
+
this.numEndZoneButtons = 2;
|
|
103
|
+
/**
|
|
104
|
+
* Number of page buttons to show in the middle zone around the current page.
|
|
105
|
+
*/
|
|
106
|
+
this.numMiddleButtons = 1;
|
|
107
|
+
/**
|
|
108
|
+
* Current page number (1-based index).
|
|
109
|
+
*/
|
|
110
|
+
this.currentPage = 1;
|
|
111
|
+
/**
|
|
112
|
+
* Total number of items to paginate.
|
|
113
|
+
*/
|
|
114
|
+
this.totalCount = 100;
|
|
115
|
+
/**
|
|
116
|
+
* Number of items per page.
|
|
117
|
+
*/
|
|
118
|
+
this.pageSize = 10;
|
|
119
|
+
/**
|
|
120
|
+
* If true, the Previous/Next navigation buttons will be displayed as icon buttons.
|
|
121
|
+
* Page number buttons always use regular buttons.
|
|
122
|
+
*/
|
|
123
|
+
this.isOnlyIcon = false;
|
|
124
|
+
/**
|
|
125
|
+
* If true, shows the middle zone with the current page when it's not in start/end zones.
|
|
126
|
+
* If false (default), only shows one ellipsis between start and end zones (simpler pagination).
|
|
127
|
+
*/
|
|
128
|
+
this.showMiddleZone = false;
|
|
129
|
+
/**
|
|
130
|
+
* Handles page change events.
|
|
131
|
+
* @param {number} pageNumber The page number to navigate to.
|
|
132
|
+
*/
|
|
133
|
+
this.handlePageChange = (pageNumber) => {
|
|
134
|
+
if (pageNumber < 1 ||
|
|
135
|
+
pageNumber > this.totalPages ||
|
|
136
|
+
pageNumber === this.currentPage) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
this.currentPage = pageNumber;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//#endregion PROPERTIES
|
|
143
|
+
/****************************************************************************/
|
|
144
|
+
//#region METHODS
|
|
145
|
+
/**
|
|
146
|
+
* Calculates the total number of pages based on totalCount and pageSize.
|
|
147
|
+
* @returns {number} The total number of pages.
|
|
148
|
+
*/
|
|
149
|
+
get totalPages() {
|
|
150
|
+
return Math.ceil(this.totalCount / this.pageSize);
|
|
151
|
+
}
|
|
152
|
+
//#endregion METHODS
|
|
153
|
+
/****************************************************************************/
|
|
154
|
+
//#region WATCHERS
|
|
155
|
+
/**
|
|
156
|
+
* Watches for changes to currentPage and emits the currentPageChanged event.
|
|
157
|
+
* @param {number} newValue The new current page value.
|
|
158
|
+
*/
|
|
159
|
+
onCurrentPageChange(newValue) {
|
|
160
|
+
// Validate and constrain currentPage
|
|
161
|
+
const constrainedValue = Math.max(1, Math.min(newValue, this.totalPages));
|
|
162
|
+
if (constrainedValue !== newValue) {
|
|
163
|
+
this.currentPage = constrainedValue;
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
this.currentPageChanged.emit(newValue);
|
|
167
|
+
}
|
|
168
|
+
//#endregion EVENTS
|
|
169
|
+
/****************************************************************************/
|
|
170
|
+
//#region RENDER
|
|
171
|
+
/**
|
|
172
|
+
* Renders a single page button.
|
|
173
|
+
* @param {number} pageNumber The page number to render.
|
|
174
|
+
* @returns {JSX.Element} The rendered page button element.
|
|
175
|
+
*/
|
|
176
|
+
renderPageButton(pageNumber) {
|
|
177
|
+
const isCurrentPage = pageNumber === this.currentPage;
|
|
178
|
+
return (index.h("li", { key: pageNumber, "data-scope": "page-button" }, index.h("nv-button", { size: "md", emphasis: "lower", active: isCurrentPage, onClick: () => this.handlePageChange(pageNumber), "data-page": pageNumber, "data-current": isCurrentPage ? 'true' : undefined }, pageNumber)));
|
|
179
|
+
}
|
|
180
|
+
render() {
|
|
181
|
+
const isFirstPage = this.currentPage === 1;
|
|
182
|
+
const isLastPage = this.currentPage === this.totalPages;
|
|
183
|
+
return (index.h(index.Host, { key: '536c7d2fd28a365ae3d637f7e67512832ffce284' }, index.h("nav", { key: 'ad98b2592c2702e9592316e03a0b0119d9da601c', "data-scope": "pagination-nav", "aria-label": "Pagination navigation" }, this.isOnlyIcon ? (index.h("nv-iconbutton", { name: "chevron-left", size: "md", emphasis: "lower", disabled: isFirstPage, onClick: () => this.handlePageChange(this.currentPage - 1), "data-scope": "previous-iconbutton", "aria-label": this.previousButtonLabel })) : (index.h("nv-button", { size: "md", emphasis: "lower", disabled: isFirstPage, onClick: () => this.handlePageChange(this.currentPage - 1), "data-scope": "previous-button" }, index.h("nv-icon", { slot: "leading-icon", name: "chevron-left" }), this.previousButtonLabel)), index.h("ol", { key: 'd52f16484737c5ea06c8bd1512e367beb4cd35b1', "data-scope": "page-list" }, calculatePaginationRange({
|
|
184
|
+
currentPage: this.currentPage,
|
|
185
|
+
totalCount: this.totalCount,
|
|
186
|
+
pageSize: this.pageSize,
|
|
187
|
+
numStartZoneButtons: this.numStartZoneButtons,
|
|
188
|
+
numEndZoneButtons: this.numEndZoneButtons,
|
|
189
|
+
numMiddleButtons: this.numMiddleButtons,
|
|
190
|
+
showMiddleZone: this.showMiddleZone,
|
|
191
|
+
}).map(item => typeof item === 'number' ? (this.renderPageButton(item)) : (index.h("li", { key: `ellipsis-${item}`, "data-scope": "ellipsis", "aria-hidden": "true" }, index.h("span", null, item))))), this.isOnlyIcon ? (index.h("nv-iconbutton", { name: "chevron-right", size: "md", emphasis: "lower", disabled: isLastPage, onClick: () => this.handlePageChange(this.currentPage + 1), "data-scope": "next-iconbutton", "aria-label": this.nextButtonLabel })) : (index.h("nv-button", { size: "md", emphasis: "lower", disabled: isLastPage, onClick: () => this.handlePageChange(this.currentPage + 1), "data-scope": "next-button" }, this.nextButtonLabel, index.h("nv-icon", { slot: "trailing-icon", name: "chevron-right" }))))));
|
|
192
|
+
}
|
|
193
|
+
static get watchers() { return {
|
|
194
|
+
"currentPage": [{
|
|
195
|
+
"onCurrentPageChange": 0
|
|
196
|
+
}]
|
|
197
|
+
}; }
|
|
198
|
+
};
|
|
199
|
+
NvPaginationNav.style = nvPaginationNavCss();
|
|
200
|
+
|
|
201
|
+
exports.nv_pagination_nav = NvPaginationNav;
|
package/dist/cjs/{nv-paginationtable.entry-CS7BhAVe.js → nv-paginationtable.entry-pT2Qx3xY.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -215,7 +215,7 @@ const NvPaginationtable = class {
|
|
|
215
215
|
const pageLabel = interpolate(this.labelPage, { pageIndex: this.pageIndex + 1, pageCount: this.pageCount }, 'Page {pageIndex} of {pageCount}');
|
|
216
216
|
const totalLabel = interpolate(this.labelTotal, { rowCount: this.rowCount }, 'Total: {rowCount} rows');
|
|
217
217
|
const pageSizeOptions = generatePageSizeOptions(this.labelPageSizeOption ?? '{pageSize} per page');
|
|
218
|
-
return (index.h(index.Host, { key: '
|
|
218
|
+
return (index.h(index.Host, { key: 'c4410c8e459e488c7e6dfab19baa0dace783bed7' }, !this.hideControls && (index.h("div", { key: 'd17f9712b070ce79ab367406ef58e251f9fd8ef1', "data-scope": "controls" }, !this.hideFirstLast && (index.h("nv-iconbutton", { key: '8326bd2a9bffaddfa5ab0f1bf385ef2d435d1304', name: "chevrons-left", emphasis: "lower", size: "sm", disabled: atFirstPage, onClick: () => this.firstPage() })), !this.hidePrevNext && (index.h("nv-iconbutton", { key: 'e05379b57d34060934946098fdc1790afc7060f5', name: "chevron-left", emphasis: "lower", size: "sm", disabled: atFirstPage, onClick: () => this.previousPage() })), !this.hidePrevNext && (index.h("nv-iconbutton", { key: '9be2a29cc9bdca82b5214ce9f3802a4c397702f8', name: "chevron-right", emphasis: "lower", size: "sm", disabled: atLastPage, onClick: () => this.nextPage() })), !this.hideFirstLast && (index.h("nv-iconbutton", { key: '39e9bac5ebc85c1956295a4213777fd769cab5c9', name: "chevrons-right", emphasis: "lower", size: "sm", disabled: atLastPage, onClick: () => this.lastPage() })))), index.h("span", { key: 'bef5172038e7bec7a56ffe2d75697641227c5bbc', "data-scope": "page-label" }, pageLabel), index.h("span", { key: '4711e8fa8ae6814a6b90cef6906f58475ab48317', "data-scope": "total" }, totalLabel), index.h("div", { key: '46244978c8c8be83195a0a96b8fd9879b3d087fa', "data-scope": "per-page" }, index.h("nv-fieldselect", { key: '8c194d51d13839825f34f2b004468472ba652064', value: String(this.pageSize), onValueChanged: this.handlePageSizeChange, options: pageSizeOptions })), index.h("slot", { key: 'ff066bce5da6b738f2d7954fb4ae393824f69f34' })));
|
|
219
219
|
}
|
|
220
220
|
static get watchers() { return {
|
|
221
221
|
"pageIndex": [{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
5
5
|
var grow_animationD7ep_aVl = require('./grow.animation-D7ep_aVl-BuXEDSK-.js');
|
|
6
6
|
require('./style-value-types.es-xlgmw4x8-B1vLqX9m.js');
|
|
@@ -1962,7 +1962,7 @@ const NvPopover = class {
|
|
|
1962
1962
|
/****************************************************************************/
|
|
1963
1963
|
//#region RENDER
|
|
1964
1964
|
render() {
|
|
1965
|
-
return (index.h(index.Host, { key: '
|
|
1965
|
+
return (index.h(index.Host, { key: 'f45908c500d83bbc4cc2e2bfa71d08297bb353e0' }, index.h("slot", { key: 'b0d692a8f25dca9d400b4ebac81bbcff895abe58', name: "trigger" }), index.h("div", { key: '500fdf54d35104a48936b1c31643c04ca92be8b5', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (index.h("div", { key: '9d3e96672c6e904ded03bb6338f5e70a18f8bf0c', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), index.h("slot", { key: 'ce8436ba395b75b42facc362503d272b8852308a', name: "content" }))));
|
|
1966
1966
|
}
|
|
1967
1967
|
get el() { return index.getElement(this); }
|
|
1968
1968
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvRow = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '07ad630aa3951fe325d4c767bec1d1008b8efa65' }, index.h("slot", { key: '50fafeac8db8bd0a34ad61196aa259dab2528b18' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvRow.style = nvRowCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -162,7 +162,7 @@ const NvSidebar = class {
|
|
|
162
162
|
//#region RENDER
|
|
163
163
|
render() {
|
|
164
164
|
const isCollapsed = this.type === 'collapsible' && !this.open;
|
|
165
|
-
return (index.h(index.Host, { key: '
|
|
165
|
+
return (index.h(index.Host, { key: '51a4f51b720a97eb58cad32cb2c92c3afe5e7a04', role: "navigation", collapsed: isCollapsed ? true : undefined, "notification-intention": this.notificationIntention, "notification-emphasis": this.notificationEmphasis, "aria-expanded": this.type === 'collapsible' ? String(this.open) : undefined }, index.h("div", { key: '30f2aa66cbdfc7bdc8c5d494dfe41debee565fac', class: "nv-sidebar-container" }, index.h("slot", { key: '519d25d1d5d8c4a5820f5b6c7655430004be542a' })), this.type === 'collapsible' && (index.h("button", { key: '70abdc10fed5b87dba34e7ff8cacfa44c00044b0', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, index.h("nv-icon", { key: 'ad693d6d1f95f41eb86d0f4cdf1ff04190cd5288', name: this.open
|
|
166
166
|
? 'layout-sidebar-left-collapse'
|
|
167
167
|
: 'layout-sidebar-right-collapse', size: "sm" })))));
|
|
168
168
|
}
|
package/dist/cjs/{nv-sidebarcontent.entry-BWFDcui8.js → nv-sidebarcontent.entry-JSf1Mb0x.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebarcontent = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: 'ad8dd37a6bce098af0ce3350c1a3035f62241d19', role: "list" }, index.h("slot", { key: 'c9cf80529ea060e8345929cacad2313fbb3daa17' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebarcontent.style = nvSidebarcontentCss();
|
package/dist/cjs/{nv-sidebardivider.entry-BSzLq-h3.js → nv-sidebardivider.entry-XZ1hYAgj.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebardivider = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return index.h(index.Host, { key: '
|
|
17
|
+
return index.h(index.Host, { key: '8fd03ba4a4d6a6bb876a0f0eea367fe5f70e4a6d', role: "separator", "aria-orientation": "horizontal" });
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebardivider.style = nvSidebardividerCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebarfooter = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '073019b05fc2bd13af8db145b4d7bcb8d7b20d34' }, index.h("slot", { key: '41905c616f7e74dcd9c578a68693b4e95cd4ccd7' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebarfooter.style = nvSidebarfooterCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -15,7 +15,7 @@ const NvSidebargroup = class {
|
|
|
15
15
|
/****************************************************************************/
|
|
16
16
|
//#region RENDER
|
|
17
17
|
render() {
|
|
18
|
-
return (index.h(index.Host, { key: '
|
|
18
|
+
return (index.h(index.Host, { key: 'e599aa76d560f3e30b6a45b75500372bea3b6be0', role: "group", "aria-label": this.label }, this.label && index.h("div", { key: 'c918bdde6cb461dad11977a29f6e5385505bbbcb', class: "nv-sidebargroup-label" }, this.label), index.h("slot", { key: '7980eeada701c3b87be062e9728bacc0f9fc502c' })));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
NvSidebargroup.style = nvSidebargroupCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -14,7 +14,7 @@ const NvSidebarheader = class {
|
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region RENDER
|
|
16
16
|
render() {
|
|
17
|
-
return (index.h(index.Host, { key: '
|
|
17
|
+
return (index.h(index.Host, { key: '8aff0fd7b73d0762cd8861f8d9043f494104ddfd' }, index.h("slot", { key: 'f9d643f352a36bf7397d5c2d81be4620641dead4' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
20
|
NvSidebarheader.style = nvSidebarheaderCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -24,7 +24,7 @@ const NvSidebarlogo = class {
|
|
|
24
24
|
render() {
|
|
25
25
|
const logoSrc = this.logo || this.defaultLogo;
|
|
26
26
|
const collapsedLogoSrc = this.collapsedLogo || this.defaultCollapsedLogo;
|
|
27
|
-
return (index.h(index.Host, { key: '
|
|
27
|
+
return (index.h(index.Host, { key: 'f4e0fe830c5fa5ef90d279c19336bd51e2e7e586' }, index.h("div", { key: '85d9516e1b140aa9a7bf16ca0722f35081702d19', class: "nv-sidebarlogo-container" }, index.h("img", { key: '82c1e3e9e47cd570a4f9aa64d120a5239c9e487c', src: logoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-full" }), index.h("img", { key: '113d60ca21ec36c9f8106276f8d7abb85753c1a9', src: collapsedLogoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-collapsed" }), index.h("slot", { key: '6c164d8f46d994980a4061e0a5df41fef11929b6', name: "label" }), this.label && index.h("span", { key: '12a5bb8deff9b73dc4c41c27aa1e5839beb46f32', class: "nv-sidebarlogo-title" }, this.label))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
NvSidebarlogo.style = nvSidebarlogoCss();
|
package/dist/cjs/{nv-sidebarnavitem.entry-CPwt0Njh.js → nv-sidebarnavitem.entry-DSu34C34.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -57,9 +57,16 @@ const NvSidebarnavitem = class {
|
|
|
57
57
|
event.preventDefault();
|
|
58
58
|
event.stopPropagation();
|
|
59
59
|
this.open = !this.open;
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
// For non-collapsible items in expanded mode, if the click didn't originate
|
|
63
|
+
// from the link itself (e.g. clicked the icon or padding), trigger the link.
|
|
64
|
+
if (!target.closest('a')) {
|
|
65
|
+
const link = this.el.querySelector('.nv-sidebarnavitem-content a, :scope > a');
|
|
66
|
+
if (link) {
|
|
67
|
+
link.click();
|
|
68
|
+
}
|
|
60
69
|
}
|
|
61
|
-
// For non-collapsible items in expanded mode, let the link handle the navigation
|
|
62
|
-
// Don't prevent default or stop propagation - allow the link to work normally
|
|
63
70
|
};
|
|
64
71
|
this.isAnimating = false;
|
|
65
72
|
this.hasInitializedHeight = false;
|
|
@@ -269,7 +276,7 @@ const NvSidebarnavitem = class {
|
|
|
269
276
|
render() {
|
|
270
277
|
const showNotificationBullet = this.notificationCount !== undefined && this.notificationCount > 0;
|
|
271
278
|
const notificationSize = this.isSidebarCollapsed ? 'reduced' : 'default';
|
|
272
|
-
return (index.h(index.Host, { key: '
|
|
279
|
+
return (index.h(index.Host, { key: '02ab37b6d10ba4696c002b6d220296e5a24adea0', role: "listitem" }, index.h("div", { key: '348ae561a8cfe97b149ff0048cb797d367a537fd', class: "nv-sidebarnavitem-trigger", onClick: this.handleToggle, "aria-expanded": this.collapsible ? String(this.open) : undefined, "aria-current": this.active && !this.collapsible ? 'page' : undefined }, this.icon && (index.h("div", { key: '6edb4688ce946914dee6748e967045e0100e9d28', class: "nv-sidebarnavitem-icon" }, index.h("nv-icon", { key: '990df4c9d2df9483a1f0bd364a050e7168f6fec1', name: this.icon, size: "md" }), showNotificationBullet && this.isSidebarCollapsed && (index.h("nv-notification-bullet", { key: '45baa0607d1cf3e53c78d439ee02cf8f14023986', count: this.notificationCount, size: notificationSize, contrastingBorder: true })))), index.h("div", { key: '5179eb39ca4248806cd90fb8e2caae1aa44ebafe', class: "nv-sidebarnavitem-content" }, index.h("slot", { key: '80cea6fd9f87b5169de72809edd9f47e237a7ba1' })), index.h("div", { key: '02fa17d52079bebf3ced8af706616e0f6f15a146', class: "nv-sidebarnavitem-trailing" }, index.h("slot", { key: '38891572371a5dad912c9a1177ad02aa904cd99c', name: "trailing" }), showNotificationBullet && !this.isSidebarCollapsed && (index.h("nv-notification-bullet", { key: '1235893ac6c2552c9b0f19693482f64efe84506d', count: this.notificationCount, size: notificationSize })), this.collapsible && (index.h("nv-icon", { key: '88a269b0309ea956377c8dc2666b930f53627954', name: "chevron-down", size: "sm", class: "nv-sidebarnavitem-chevron" })))), this.collapsible && this.hasSubitems && (index.h("div", { key: '4e0fe20c969d2e0375e82f337170296642771541', class: "nv-sidebarnavitem-subitems", ref: el => {
|
|
273
280
|
// Only update ref and initialize if element changed or not yet initialized
|
|
274
281
|
if (el !== this.subitemsRef) {
|
|
275
282
|
this.subitemsRef = el;
|
|
@@ -284,7 +291,7 @@ const NvSidebarnavitem = class {
|
|
|
284
291
|
});
|
|
285
292
|
}
|
|
286
293
|
}
|
|
287
|
-
} }, index.h("slot", { key: '
|
|
294
|
+
} }, index.h("slot", { key: '0d3ab2f4207370afb5819b468e58ab1c3cfe38b1', name: "subitems" })))));
|
|
288
295
|
}
|
|
289
296
|
get el() { return index.getElement(this); }
|
|
290
297
|
static get watchers() { return {
|
package/dist/cjs/{nv-sidebarnavsubitem.entry-HZOTB6Tl.js → nv-sidebarnavsubitem.entry-Y8Ex0_Lr.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -27,7 +27,7 @@ const NvSidebarnavsubitem = class {
|
|
|
27
27
|
/****************************************************************************/
|
|
28
28
|
//#region RENDER
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: 'd9279792355dc0d64f0e513b727447a27fcb1fa9', role: "listitem", "aria-current": this.active ? 'page' : undefined }, index.h("div", { key: 'a5ea72c3bbd5b08f075c4fa8281919792f125c80', class: "nv-sidebarnavsubitem-indicator" }), index.h("div", { key: '2d2c37eedf9e6db6d9cc44c0af4b26e2fb9f601c', class: "nv-sidebarnavsubitem-content" }, index.h("slot", { key: '635c40197bc256aabe6962d831dc9431a6ce1cda' })), index.h("div", { key: '192dbe9426642b9af4401f21d33c36272e327304', class: "nv-sidebarnavsubitem-trailing" }, index.h("slot", { key: '0ebd3bd4dab2bb45556cde7bd8cd4f8dd27bdba2', name: "trailing" }))));
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
NvSidebarnavsubitem.style = nvSidebarnavsubitemCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -326,7 +326,7 @@ const NvSplit = class {
|
|
|
326
326
|
/****************************************************************************/
|
|
327
327
|
//#region RENDER
|
|
328
328
|
render() {
|
|
329
|
-
return (index.h(index.Host, { key: '
|
|
329
|
+
return (index.h(index.Host, { key: 'ab5109b9c1c1e59f794029899855d7ddfba304f1', "data-dragging": this.isDragging.toString() }, index.h("slot", { key: 'd7587efb2e4799f102baaa624555e250fe3746a8', name: "pane" }), index.h("slot", { key: 'af615e7e74a99db838e3d71334b20ed2e77994f9', name: "gutter" })));
|
|
330
330
|
}
|
|
331
331
|
get el() { return index.getElement(this); }
|
|
332
332
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
require('@stencil/react-output-target/runtime');
|
|
6
6
|
require('react');
|
|
@@ -23,7 +23,7 @@ const NvStack = class {
|
|
|
23
23
|
/****************************************************************************/
|
|
24
24
|
//#region RENDER
|
|
25
25
|
render() {
|
|
26
|
-
return (index.h(index.Host, { key: '
|
|
26
|
+
return (index.h(index.Host, { key: 'd4399a61570a72d817150c5d50c38e89147459d4', class: clsxChV9xqsO.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') }, index.h("slot", { key: 'd7bec1dff9c21480b69aed24e4a6081d6de627f7' })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
NvStack.style = nvStackCss();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -236,7 +236,7 @@ const NvTable = class {
|
|
|
236
236
|
/****************************************************************************/
|
|
237
237
|
//#region RENDER
|
|
238
238
|
render() {
|
|
239
|
-
return (index.h(index.Host, { key: '
|
|
239
|
+
return (index.h(index.Host, { key: '43a288ca58eb82de6308dd98ac30abb3fc971f1e' }, index.h("slot", { key: '3a0b986f015777d2ca95b8ce7aebab7133b5d054' })));
|
|
240
240
|
}
|
|
241
241
|
get host() { return index.getElement(this); }
|
|
242
242
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
@@ -62,7 +62,7 @@ const NvTableheader = class {
|
|
|
62
62
|
/****************************************************************************/
|
|
63
63
|
//#region RENDER
|
|
64
64
|
render() {
|
|
65
|
-
return (index.h(index.Host, { key: '
|
|
65
|
+
return (index.h(index.Host, { key: '809cf43ff3c9d3977a60a30e350fe6f4457c39f4', role: "columnheader", "aria-sort": this.ariaSort, tabindex: this.sortable ? 0 : undefined, onKeyDown: this.handleKeyDown.bind(this), onClick: this.cycleSortDirection.bind(this) }, index.h("slot", { key: 'ba569a25aa09bb3b18d39e463474698efe6cff40' }), this.sortable && (index.h("span", { key: '77a948313d5dfc746c142eaf448df609ae0bf2b3', class: "sort-icon-wrap", "aria-hidden": "true" }, index.h("nv-iconbutton", { key: 'f18fa1d05c5d4eac8c057a7f350c270eaacc7055', disableTabindex: true, name: "arrow-up", size: "xs", emphasis: this.sortDirection === 'none' ? 'lower' : 'low',
|
|
66
66
|
// prevent mousedown from selecting text
|
|
67
67
|
onMouseDown: (e) => e.preventDefault(), class: {
|
|
68
68
|
'is-none': this.sortDirection === 'none',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-clzdrCkN.js');
|
|
4
4
|
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
5
|
var v4BdYh22OP = require('./v4-BdYh22OP-C1vaJ4yP.js');
|
|
6
6
|
require('@stencil/react-output-target/runtime');
|
|
@@ -66,8 +66,8 @@ const NvToggle = class {
|
|
|
66
66
|
/****************************************************************************/
|
|
67
67
|
//#region RENDER
|
|
68
68
|
render() {
|
|
69
|
-
return (index.h(index.Host, { key: '
|
|
70
|
-
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '
|
|
69
|
+
return (index.h(index.Host, { key: '626c2acc6992a641c5fd94509fd0ef171fd6d1c6', class: clsxChV9xqsO.clsx(this.labelPlacement === 'before' && 'label-placement-before') }, index.h("div", { key: 'a9e4b73d740032520f6094bcada1f835b4bac16c', class: "input-container" }, index.h("input", { key: '1856dfa88421fecee06bdf098dcad22e69f34c00', 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 })), index.h("div", { key: '4c46bc519d38a66fdecf75cb15caf6d577d92856', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (index.h("label", { key: 'fd61979a72a2b4e3254987beafd4b024fe1c6bae', htmlFor: this.inputId, class: clsxChV9xqsO.clsx(this.hideLabel && 'visually-hidden') }, index.h("slot", { key: '0e32e3e03ffda0633f881f41d2372a3d92d82f10', name: "label" }, this.label))), (this.description ||
|
|
70
|
+
this.el.querySelector('[slot="description"]')) && (index.h("div", { key: '688d4160a48d85fa5049556de27f0a26f10ec549', class: "description" }, index.h("slot", { key: '006a61b40a49426bc7c70f1fe830aeb38ecdbf3b', name: "description" }, this.description))))));
|
|
71
71
|
}
|
|
72
72
|
static get formAssociated() { return true; }
|
|
73
73
|
get el() { return index.getElement(this); }
|