@nova-design-system/nova-react 3.24.0 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/cjs/dom.utils-CuXVGECR-8VY5SfMZ.js +177 -0
- package/dist/cjs/generated/components.server.js +82 -62
- package/dist/cjs/index-BeFrXZol.js +9699 -0
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/{nv-accordion-item.entry-Bu1tAcCq.js → nv-accordion-item.entry-DtzjLTCo.js} +8 -7
- package/dist/cjs/{nv-accordion.entry-jWjLdX8w.js → nv-accordion.entry-DRcTfezT.js} +10 -8
- package/dist/cjs/{nv-alert.entry-E9ZJay_K.js → nv-alert.entry-86bfoXVx.js} +6 -4
- package/dist/cjs/nv-avatar.entry-mp2LJ6RA.js +68 -0
- package/dist/cjs/nv-badge_2.entry-BrDaHeqh.js +220 -0
- package/dist/cjs/nv-breadcrumb.entry-B2q7jJy2.js +49 -0
- package/dist/cjs/nv-breadcrumbs.entry-DKzST1uS.js +21 -0
- package/dist/cjs/nv-button.entry-CVgcU-bi.js +166 -0
- package/dist/cjs/{nv-buttongroup.entry-CuZCRsnV.js → nv-buttongroup.entry-CvuBGaGK.js} +12 -6
- package/dist/cjs/{nv-calendar.entry-CT3mASW6.js → nv-calendar.entry-BCcGhxzJ.js} +27 -19
- package/dist/cjs/{nv-col.entry--pCxkaTh.js → nv-col.entry-CzTahRVr.js} +3 -3
- package/dist/cjs/{nv-datagrid.entry-CGCEhO8C.js → nv-datagrid.entry-DWZxNqTE.js} +47 -184
- package/dist/cjs/{nv-datagridcolumn.entry-Fsqc7CT_.js → nv-datagridcolumn.entry-CzCzmdQl.js} +1 -1
- package/dist/cjs/{nv-dialog.entry-B6OYcZxQ.js → nv-dialog.entry-ByVD02QB.js} +19 -20
- package/dist/cjs/{nv-dialogfooter_2.entry-C4fP_n2-.js → nv-dialogfooter_2.entry-BmQcYJsD.js} +11 -29
- package/dist/cjs/{nv-drawer.entry-C5O4KvHU.js → nv-drawer.entry-C15JRJ3N.js} +19 -19
- package/dist/cjs/{nv-drawerfooter_2.entry-C-reYJXG.js → nv-drawerfooter_2.entry-DuDac_Os.js} +11 -29
- package/dist/cjs/nv-fieldcheckbox.entry-CwDOQzSW.js +179 -0
- package/dist/cjs/{nv-fielddate.entry-dqZDBVmm.js → nv-fielddate.entry-DKICGwc0.js} +15 -13
- package/dist/cjs/{nv-fielddaterange.entry-wNRasXky.js → nv-fielddaterange.entry-DGEK8F9p.js} +15 -14
- package/dist/cjs/{nv-fielddropdown.entry-BA15piWa.js → nv-fielddropdown.entry-BLS7lRzD.js} +33 -31
- package/dist/cjs/nv-fielddropdownitem.entry-Bbfi3A8C.js +69 -0
- package/dist/cjs/{nv-fieldmultiselect.entry-BWY5xOAd.js → nv-fieldmultiselect.entry-Cpy7HzlZ.js} +28 -24
- package/dist/cjs/nv-fieldnumber.entry-SbNb4hKr.js +189 -0
- package/dist/cjs/nv-fieldpassword.entry-CPsgagjY.js +167 -0
- package/dist/cjs/nv-fieldradio.entry-DLP-rmKU.js +105 -0
- package/dist/cjs/{nv-fieldselect.entry-uUIZ6hmN.js → nv-fieldselect.entry-DOOO03kM.js} +20 -12
- package/dist/cjs/{nv-fieldslider.entry-DnvmxxYY.js → nv-fieldslider.entry-CpVbxkpo.js} +33 -15
- package/dist/cjs/nv-fieldtext.entry-BpbG4WHv.js +163 -0
- package/dist/cjs/nv-fieldtextarea.entry-BA_RApYN.js +245 -0
- package/dist/cjs/{nv-fieldtime.entry-DlMNDTht.js → nv-fieldtime.entry-DaJfwQtC.js} +15 -9
- package/dist/cjs/{nv-icon.entry-CnUkRzaA.js → nv-icon.entry-DIi792yJ.js} +4 -4
- package/dist/cjs/nv-iconbutton_2.entry-B4xB5WtE.js +171 -0
- package/dist/cjs/{nv-menu.entry-Dc_FvIx7.js → nv-menu.entry-DHWhkWeB.js} +9 -13
- package/dist/cjs/nv-menuitem.entry-CQApuT2D.js +59 -0
- package/dist/cjs/nv-notification-bullet.entry-CnYVWE_Z.js +76 -0
- package/dist/cjs/{nv-notification.entry-C3m5p5BL.js → nv-notification.entry-DraOvzsu.js} +4 -4
- package/dist/cjs/nv-notificationcontainer.entry-BDo-rQLL.js +41 -0
- package/dist/cjs/nv-paginationtable.entry-CS7BhAVe.js +231 -0
- package/dist/cjs/{nv-popover.entry-B0c-2rO4.js → nv-popover.entry-DSyKCLtF.js} +105 -33
- package/dist/cjs/nv-row.entry-D21zN2Vr.js +22 -0
- package/dist/cjs/{nv-sidebar.entry-CiN813gQ.js → nv-sidebar.entry-DpKgnjsJ.js} +10 -6
- package/dist/cjs/nv-sidebarcontent.entry-BWFDcui8.js +22 -0
- package/dist/cjs/{nv-sidebardivider.entry-B4EMyca5.js → nv-sidebardivider.entry-BSzLq-h3.js} +4 -4
- package/dist/cjs/{nv-sidebarfooter.entry-CHi4qOFe.js → nv-sidebarfooter.entry-C3DLHPSQ.js} +4 -4
- package/dist/cjs/nv-sidebargroup.entry-BMYLbCql.js +23 -0
- package/dist/cjs/{nv-sidebarheader.entry-_7ch0O3G.js → nv-sidebarheader.entry-CkUGD-Tw.js} +4 -4
- package/dist/cjs/{nv-sidebarlogo.entry-Ch9F-JnT.js → nv-sidebarlogo.entry-BX1-1S1v.js} +4 -4
- package/dist/cjs/{nv-sidebarnavitem.entry-DVrafSMr.js → nv-sidebarnavitem.entry-CPwt0Njh.js} +9 -7
- package/dist/cjs/nv-sidebarnavsubitem.entry-HZOTB6Tl.js +35 -0
- package/dist/cjs/{nv-split.entry-0HTslRAX.js → nv-split.entry-DdtzktvN.js} +10 -6
- package/dist/cjs/nv-stack.entry-BMLt30Nt.js +31 -0
- package/dist/cjs/{nv-table.entry-DH85n8Mc.js → nv-table.entry-RTiqKRKM.js} +6 -4
- package/dist/cjs/{nv-tableheader.entry-CKfocdxD.js → nv-tableheader.entry-Ci4qo8eY.js} +4 -4
- package/dist/cjs/nv-toggle.entry-s8B7-8P7.js +82 -0
- package/dist/cjs/nv-togglebutton.entry-CyHgU4Wl.js +66 -0
- package/dist/cjs/{nv-togglebuttongroup.entry-C0NLbsq7.js → nv-togglebuttongroup.entry-Bn_9DsdP.js} +13 -9
- package/dist/cjs/nv-tooltip.entry-D6kxXLO-.js +56 -0
- package/dist/components/NvDatatable/NvDatatable.js +29 -8
- package/dist/generated/components.js +11 -0
- package/dist/generated/components.server.js +81 -62
- package/dist/providers/NotificationProvider.js +9 -8
- package/dist/types/components/NvDatatable/types.d.ts +6 -0
- package/dist/types/generated/components.d.ts +52 -46
- package/dist/types/generated/components.server.d.ts +52 -46
- package/package.json +7 -4
- package/dist/cjs/index-kU2nW5aN.js +0 -40286
- package/dist/cjs/nv-avatar.entry-CUX7u0kR.js +0 -68
- package/dist/cjs/nv-badge_2.entry-bxpV5gxE.js +0 -213
- package/dist/cjs/nv-breadcrumb.entry-Cbbb9Qeh.js +0 -46
- package/dist/cjs/nv-breadcrumbs.entry-BTqnp9zO.js +0 -21
- package/dist/cjs/nv-button.entry-upWH19y6.js +0 -162
- package/dist/cjs/nv-fieldcheckbox.entry-bk7UNQny.js +0 -177
- package/dist/cjs/nv-fielddropdownitem.entry-DEWaf9dC.js +0 -72
- package/dist/cjs/nv-fieldnumber.entry-DoYORd0d.js +0 -187
- package/dist/cjs/nv-fieldpassword.entry-CPaLj9aD.js +0 -165
- package/dist/cjs/nv-fieldradio.entry-CvUmEaCa.js +0 -103
- package/dist/cjs/nv-fieldtext.entry-BYAJp3n_.js +0 -163
- package/dist/cjs/nv-fieldtextarea.entry-DU2bWYeg.js +0 -237
- package/dist/cjs/nv-iconbutton_2.entry-hqp4AcRq.js +0 -167
- package/dist/cjs/nv-menuitem.entry-DzMhx6c_.js +0 -60
- package/dist/cjs/nv-notification-bullet.entry-BwhHCMQF.js +0 -76
- package/dist/cjs/nv-notificationcontainer.entry-DTRNn7VE.js +0 -41
- package/dist/cjs/nv-row.entry-CdcjVGZv.js +0 -22
- package/dist/cjs/nv-sidebarcontent.entry-D9hpAhK8.js +0 -22
- package/dist/cjs/nv-sidebargroup.entry-RVqrsyIU.js +0 -23
- package/dist/cjs/nv-sidebarnavsubitem.entry-C0XDAzma.js +0 -35
- package/dist/cjs/nv-stack.entry-CqO7uTQf.js +0 -31
- package/dist/cjs/nv-toggle.entry-BHUl76Im.js +0 -80
- package/dist/cjs/nv-togglebutton.entry-D_9COjY-.js +0 -67
- package/dist/cjs/nv-tooltip.entry-BfViGE_U.js +0 -55
- /package/dist/cjs/{i18n.utils-IlwlcG9l-ku0bScip.js → i18n.utils-CR9MpYzU-ku0bScip.js} +0 -0
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BeFrXZol.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Pagination table utility functions for nv-paginationtable component
|
|
10
|
+
*
|
|
11
|
+
* This module contains pure utility functions for label interpolation
|
|
12
|
+
* and pagination calculations.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* Interpolates a template string by replacing placeholders with values.
|
|
16
|
+
* Placeholders are defined using curly braces: {key}
|
|
17
|
+
*
|
|
18
|
+
* @param {string} template - The template string with placeholders
|
|
19
|
+
* @param {InterpolationValues} values - Object containing key-value pairs for replacement
|
|
20
|
+
* @param {string} [fallback] - Optional fallback template if template is undefined/null
|
|
21
|
+
* @returns {string} The interpolated string, or empty string if no template and no fallback
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* interpolate('Page {pageIndex} of {pageCount}', { pageIndex: 1, pageCount: 14 })
|
|
25
|
+
* // Returns: 'Page 1 of 14'
|
|
26
|
+
*/
|
|
27
|
+
function interpolate(template, values, fallback) {
|
|
28
|
+
const effectiveTemplate = template ?? fallback ?? '';
|
|
29
|
+
if (!effectiveTemplate)
|
|
30
|
+
return '';
|
|
31
|
+
return effectiveTemplate.replace(/\{(\w+)\}/g, (match, key) => {
|
|
32
|
+
return key in values ? String(values[key]) : match;
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Checks if navigation to the first/previous page is possible
|
|
37
|
+
* @param {number} pageIndex - Current page index (zero-based)
|
|
38
|
+
* @returns {boolean} True if at the first page
|
|
39
|
+
*/
|
|
40
|
+
function isFirstPage(pageIndex) {
|
|
41
|
+
return pageIndex === 0;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Checks if navigation to the last/next page is possible
|
|
45
|
+
* @param {number} pageIndex - Current page index (zero-based)
|
|
46
|
+
* @param {number} pageCount - Total number of pages
|
|
47
|
+
* @returns {boolean} True if at the last page
|
|
48
|
+
*/
|
|
49
|
+
function isLastPage(pageIndex, pageCount) {
|
|
50
|
+
return pageIndex >= pageCount - 1;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Default page size values
|
|
54
|
+
*/
|
|
55
|
+
const DEFAULT_PAGE_SIZES = [10, 25, 50, 100];
|
|
56
|
+
/**
|
|
57
|
+
* Generates page size options with translated labels.
|
|
58
|
+
* @param {string} labelTemplate - Template string for the label (e.g., '{pageSize} per page')
|
|
59
|
+
* @param {number[]} sizes - Array of page size values
|
|
60
|
+
* @returns {PageSizeOption[]} Array of page size options with interpolated labels
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* generatePageSizeOptions('{pageSize} per page', [10, 25, 50])
|
|
64
|
+
* // Returns: [{ label: '10 per page', value: '10' }, { label: '25 per page', value: '25' }, ...]
|
|
65
|
+
*/
|
|
66
|
+
function generatePageSizeOptions(labelTemplate, sizes = DEFAULT_PAGE_SIZES) {
|
|
67
|
+
return sizes.map(size => ({
|
|
68
|
+
label: interpolate(labelTemplate, { pageSize: size }),
|
|
69
|
+
value: String(size),
|
|
70
|
+
}));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
const nvPaginationtableCss = () => `nv-paginationtable{display:flex;align-items:center;color:var(--color-content-medium-text);gap:var(--pagination-table-gap-x);user-select:none;font-size:var(--pagination-table-font-size);font-weight:400}nv-paginationtable nv-fieldselect .select-wrapper .select-container{border-color:transparent}nv-paginationtable nv-fieldselect .select-wrapper .select-container select{font-size:var(--pagination-table-font-size);font-weight:400;color:var(--color-content-medium-text)}`;
|
|
74
|
+
|
|
75
|
+
const NvPaginationtable = class {
|
|
76
|
+
constructor(hostRef) {
|
|
77
|
+
index.registerInstance(this, hostRef);
|
|
78
|
+
this.pageIndexChanged = index.createEvent(this, "pageIndexChanged", 3);
|
|
79
|
+
this.pageSizeChanged = index.createEvent(this, "pageSizeChanged", 3);
|
|
80
|
+
/****************************************************************************/
|
|
81
|
+
//#region PROPERTIES
|
|
82
|
+
/**
|
|
83
|
+
* Indicates which page of table results is currently being shown, using a
|
|
84
|
+
* zero-based index.
|
|
85
|
+
*/
|
|
86
|
+
this.pageIndex = 0;
|
|
87
|
+
/**
|
|
88
|
+
* Sets how many results appear at once before moving to the next page.
|
|
89
|
+
*/
|
|
90
|
+
this.pageSize = 10;
|
|
91
|
+
/**
|
|
92
|
+
* Total number of pages available.
|
|
93
|
+
*/
|
|
94
|
+
this.pageCount = 0;
|
|
95
|
+
/**
|
|
96
|
+
* Total number of rows in the dataset.
|
|
97
|
+
*/
|
|
98
|
+
this.rowCount = 0;
|
|
99
|
+
/**
|
|
100
|
+
* Hides all arrow navigation controls when set to true.
|
|
101
|
+
* By default, all controls are visible.
|
|
102
|
+
*/
|
|
103
|
+
this.hideControls = false;
|
|
104
|
+
/**
|
|
105
|
+
* Hides the previous/next arrow controls when set to true.
|
|
106
|
+
*/
|
|
107
|
+
this.hidePrevNext = false;
|
|
108
|
+
/**
|
|
109
|
+
* Hides the first/last arrow controls when set to true.
|
|
110
|
+
*/
|
|
111
|
+
this.hideFirstLast = false;
|
|
112
|
+
/**
|
|
113
|
+
* Label template for the page indicator.
|
|
114
|
+
* Supports placeholders: {pageIndex}, {pageCount}.
|
|
115
|
+
* Note: {pageIndex} is displayed as 1-based to users (internally 0-based).
|
|
116
|
+
* @example 'Page {pageIndex} of {pageCount}' → 'Page 1 of 14'
|
|
117
|
+
*/
|
|
118
|
+
this.labelPage = 'Page {pageIndex} of {pageCount}';
|
|
119
|
+
/**
|
|
120
|
+
* Label template for the total row count display.
|
|
121
|
+
* Supports placeholder: {rowCount}.
|
|
122
|
+
* @example 'Total: {rowCount} rows' → 'Total: 254 rows'
|
|
123
|
+
*/
|
|
124
|
+
this.labelTotal = 'Total: {rowCount} rows';
|
|
125
|
+
/**
|
|
126
|
+
* Label template for the page size dropdown options.
|
|
127
|
+
* Supports placeholder: {pageSize}.
|
|
128
|
+
* @example '{pageSize} per page' → '10 per page'
|
|
129
|
+
*/
|
|
130
|
+
this.labelPageSizeOption = '{pageSize} per page';
|
|
131
|
+
/**
|
|
132
|
+
* Handles the page size change from the dropdown.
|
|
133
|
+
* @param {CustomEvent<string>} event - The value changed event from nv-fieldselect.
|
|
134
|
+
*/
|
|
135
|
+
this.handlePageSizeChange = (event) => {
|
|
136
|
+
const newSize = Number(event.detail);
|
|
137
|
+
if (newSize > 0) {
|
|
138
|
+
this.pageSize = newSize;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
//#endregion PROPERTIES
|
|
143
|
+
/****************************************************************************/
|
|
144
|
+
//#region METHODS
|
|
145
|
+
/**
|
|
146
|
+
* Navigates to the first page.
|
|
147
|
+
*/
|
|
148
|
+
async firstPage() {
|
|
149
|
+
this.pageIndex = 0;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Navigates to the previous page.
|
|
153
|
+
*/
|
|
154
|
+
async previousPage() {
|
|
155
|
+
if (this.pageIndex > 0) {
|
|
156
|
+
this.pageIndex = this.pageIndex - 1;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Navigates to the next page.
|
|
161
|
+
*/
|
|
162
|
+
async nextPage() {
|
|
163
|
+
if (this.pageIndex < this.pageCount - 1) {
|
|
164
|
+
this.pageIndex = this.pageIndex + 1;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* Navigates to the last page.
|
|
169
|
+
*/
|
|
170
|
+
async lastPage() {
|
|
171
|
+
this.pageIndex = this.pageCount - 1;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Navigates to a specific page by index.
|
|
175
|
+
* @param {number} index The zero-based page index to navigate to.
|
|
176
|
+
*/
|
|
177
|
+
async setPageIndex(index) {
|
|
178
|
+
if (index >= 0 && index < this.pageCount) {
|
|
179
|
+
this.pageIndex = index;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Changes the number of rows displayed per page.
|
|
184
|
+
* @param {number} size The new page size.
|
|
185
|
+
*/
|
|
186
|
+
async setPageSize(size) {
|
|
187
|
+
if (size > 0) {
|
|
188
|
+
this.pageSize = size;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
//#endregion METHODS
|
|
192
|
+
/****************************************************************************/
|
|
193
|
+
//#region WATCHERS
|
|
194
|
+
/**
|
|
195
|
+
* Watches for changes to pageIndex and emits the pageIndexChanged event.
|
|
196
|
+
* @param {number} newValue The new page index value.
|
|
197
|
+
*/
|
|
198
|
+
onPageIndexChange(newValue) {
|
|
199
|
+
this.pageIndexChanged.emit(newValue);
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Watches for changes to pageSize and emits the pageSizeChanged event.
|
|
203
|
+
* @param {number} newValue The new page size value.
|
|
204
|
+
*/
|
|
205
|
+
onPageSizeChange(newValue) {
|
|
206
|
+
this.pageSizeChanged.emit(newValue);
|
|
207
|
+
}
|
|
208
|
+
//#endregion EVENTS
|
|
209
|
+
/****************************************************************************/
|
|
210
|
+
//#region RENDER
|
|
211
|
+
render() {
|
|
212
|
+
const atFirstPage = isFirstPage(this.pageIndex);
|
|
213
|
+
const atLastPage = isLastPage(this.pageIndex, this.pageCount);
|
|
214
|
+
// Use fallback values to handle undefined props (can happen when frameworks pass undefined explicitly)
|
|
215
|
+
const pageLabel = interpolate(this.labelPage, { pageIndex: this.pageIndex + 1, pageCount: this.pageCount }, 'Page {pageIndex} of {pageCount}');
|
|
216
|
+
const totalLabel = interpolate(this.labelTotal, { rowCount: this.rowCount }, 'Total: {rowCount} rows');
|
|
217
|
+
const pageSizeOptions = generatePageSizeOptions(this.labelPageSizeOption ?? '{pageSize} per page');
|
|
218
|
+
return (index.h(index.Host, { key: '1ca51049fc16cc949fe38c80ceabc7a72f189279' }, !this.hideControls && (index.h("div", { key: '6962c8ee324aa42f5eb5defceb48cbb6b5a6ed0a', "data-scope": "controls" }, !this.hideFirstLast && (index.h("nv-iconbutton", { key: 'faa193b020c69f274fd7024a9fbc736661500152', name: "chevrons-left", emphasis: "lower", size: "sm", disabled: atFirstPage, onClick: () => this.firstPage() })), !this.hidePrevNext && (index.h("nv-iconbutton", { key: 'dfa8731f6389768a659207bac3752b9ac674c9e8', name: "chevron-left", emphasis: "lower", size: "sm", disabled: atFirstPage, onClick: () => this.previousPage() })), !this.hidePrevNext && (index.h("nv-iconbutton", { key: 'a546e95f9921f4b6b0848ce1eaee929ac223949a', name: "chevron-right", emphasis: "lower", size: "sm", disabled: atLastPage, onClick: () => this.nextPage() })), !this.hideFirstLast && (index.h("nv-iconbutton", { key: 'f59fac8c7ee04c37779089aa8de8980d5ca51d04', name: "chevrons-right", emphasis: "lower", size: "sm", disabled: atLastPage, onClick: () => this.lastPage() })))), index.h("span", { key: '32079d8ea98a2918eee76c0176515eba13ac24a0', "data-scope": "page-label" }, pageLabel), index.h("span", { key: '21c38d9e335ce7c9d952f5ef8201d51f1d486b76', "data-scope": "total" }, totalLabel), index.h("div", { key: 'e981f5e869c08bdd52639b35ac6bec3deec8577c', "data-scope": "per-page" }, index.h("nv-fieldselect", { key: 'ac22a50b68b7a75f0560d19641c159a5d771bceb', value: String(this.pageSize), onValueChanged: this.handlePageSizeChange, options: pageSizeOptions })), index.h("slot", { key: '784a6edbfbf83b76ef7e49e881591ba16e9da064' })));
|
|
219
|
+
}
|
|
220
|
+
static get watchers() { return {
|
|
221
|
+
"pageIndex": [{
|
|
222
|
+
"onPageIndexChange": 0
|
|
223
|
+
}],
|
|
224
|
+
"pageSize": [{
|
|
225
|
+
"onPageSizeChange": 0
|
|
226
|
+
}]
|
|
227
|
+
}; }
|
|
228
|
+
};
|
|
229
|
+
NvPaginationtable.style = nvPaginationtableCss();
|
|
230
|
+
|
|
231
|
+
exports.nv_paginationtable = NvPaginationtable;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BeFrXZol.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');
|
|
7
7
|
var events_utilsB6GgGra_ = require('./events.utils-B6GgGra--01N__3wY.js');
|
|
8
|
+
var dom_utilsCuXVGECR = require('./dom.utils-CuXVGECR-8VY5SfMZ.js');
|
|
8
9
|
require('@stencil/react-output-target/runtime');
|
|
9
10
|
require('react');
|
|
10
11
|
require('react-dom');
|
|
@@ -1380,12 +1381,13 @@ const computePosition = (reference, floating, options) => {
|
|
|
1380
1381
|
};
|
|
1381
1382
|
|
|
1382
1383
|
const appendToMap = (map, propName, value) => {
|
|
1383
|
-
|
|
1384
|
-
if (!
|
|
1385
|
-
|
|
1384
|
+
let refs = map.get(propName);
|
|
1385
|
+
if (!refs) {
|
|
1386
|
+
refs = [];
|
|
1387
|
+
map.set(propName, refs);
|
|
1386
1388
|
}
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
+
if (!refs.some((ref) => ref.deref() === value)) {
|
|
1390
|
+
refs.push(new WeakRef(value));
|
|
1389
1391
|
}
|
|
1390
1392
|
};
|
|
1391
1393
|
const debounce = (fn, ms) => {
|
|
@@ -1413,33 +1415,54 @@ const debounce = (fn, ms) => {
|
|
|
1413
1415
|
const isConnected = (maybeElement) => !('isConnected' in maybeElement) || maybeElement.isConnected;
|
|
1414
1416
|
const cleanupElements = debounce((map) => {
|
|
1415
1417
|
for (let key of map.keys()) {
|
|
1416
|
-
|
|
1418
|
+
const refs = map.get(key).filter((ref) => {
|
|
1419
|
+
const elm = ref.deref();
|
|
1420
|
+
return elm && isConnected(elm);
|
|
1421
|
+
});
|
|
1422
|
+
map.set(key, refs);
|
|
1417
1423
|
}
|
|
1418
1424
|
}, 2_000);
|
|
1425
|
+
const core = index.StencilCore;
|
|
1426
|
+
const forceUpdate = core.forceUpdate;
|
|
1427
|
+
const getRenderingRef = core.getRenderingRef;
|
|
1419
1428
|
const stencilSubscription = () => {
|
|
1420
|
-
if (typeof
|
|
1429
|
+
if (typeof getRenderingRef !== 'function' || typeof forceUpdate !== 'function') {
|
|
1421
1430
|
// If we are not in a stencil project, we do nothing.
|
|
1422
1431
|
// This function is not really exported by @stencil/core.
|
|
1423
1432
|
return {};
|
|
1424
1433
|
}
|
|
1434
|
+
const ensureForceUpdate = forceUpdate;
|
|
1435
|
+
const ensureGetRenderingRef = getRenderingRef;
|
|
1425
1436
|
const elmsToUpdate = new Map();
|
|
1426
1437
|
return {
|
|
1427
1438
|
dispose: () => elmsToUpdate.clear(),
|
|
1428
1439
|
get: (propName) => {
|
|
1429
|
-
const elm =
|
|
1440
|
+
const elm = ensureGetRenderingRef();
|
|
1430
1441
|
if (elm) {
|
|
1431
1442
|
appendToMap(elmsToUpdate, propName, elm);
|
|
1432
1443
|
}
|
|
1433
1444
|
},
|
|
1434
1445
|
set: (propName) => {
|
|
1435
|
-
const
|
|
1436
|
-
if (
|
|
1437
|
-
|
|
1446
|
+
const refs = elmsToUpdate.get(propName);
|
|
1447
|
+
if (refs) {
|
|
1448
|
+
const nextRefs = refs.filter((ref) => {
|
|
1449
|
+
const elm = ref.deref();
|
|
1450
|
+
if (!elm)
|
|
1451
|
+
return false;
|
|
1452
|
+
return ensureForceUpdate(elm);
|
|
1453
|
+
});
|
|
1454
|
+
elmsToUpdate.set(propName, nextRefs);
|
|
1438
1455
|
}
|
|
1439
1456
|
cleanupElements(elmsToUpdate);
|
|
1440
1457
|
},
|
|
1441
1458
|
reset: () => {
|
|
1442
|
-
elmsToUpdate.forEach((
|
|
1459
|
+
elmsToUpdate.forEach((refs) => {
|
|
1460
|
+
refs.forEach((ref) => {
|
|
1461
|
+
const elm = ref.deref();
|
|
1462
|
+
if (elm)
|
|
1463
|
+
ensureForceUpdate(elm);
|
|
1464
|
+
});
|
|
1465
|
+
});
|
|
1443
1466
|
cleanupElements(elmsToUpdate);
|
|
1444
1467
|
},
|
|
1445
1468
|
};
|
|
@@ -1447,8 +1470,11 @@ const stencilSubscription = () => {
|
|
|
1447
1470
|
|
|
1448
1471
|
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
|
1449
1472
|
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1473
|
+
const resolveDefaultState = () => (unwrap(defaultState) ?? {});
|
|
1474
|
+
const initialState = resolveDefaultState();
|
|
1475
|
+
let states = new Map(Object.entries(initialState));
|
|
1476
|
+
const proxyAvailable = typeof Proxy !== 'undefined';
|
|
1477
|
+
const plainState = proxyAvailable ? null : {};
|
|
1452
1478
|
const handlers = {
|
|
1453
1479
|
dispose: [],
|
|
1454
1480
|
get: [],
|
|
@@ -1460,7 +1486,10 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1460
1486
|
const reset = () => {
|
|
1461
1487
|
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
|
1462
1488
|
// otherwise, the state won't be properly reset
|
|
1463
|
-
states = new Map(Object.entries(
|
|
1489
|
+
states = new Map(Object.entries(resolveDefaultState()));
|
|
1490
|
+
if (!proxyAvailable) {
|
|
1491
|
+
syncPlainStateKeys();
|
|
1492
|
+
}
|
|
1464
1493
|
handlers.reset.forEach((cb) => cb());
|
|
1465
1494
|
};
|
|
1466
1495
|
const dispose = () => {
|
|
@@ -1477,12 +1506,14 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1477
1506
|
const oldValue = states.get(propName);
|
|
1478
1507
|
if (shouldUpdate(value, oldValue, propName)) {
|
|
1479
1508
|
states.set(propName, value);
|
|
1509
|
+
if (!proxyAvailable) {
|
|
1510
|
+
ensurePlainProperty(propName);
|
|
1511
|
+
}
|
|
1480
1512
|
handlers.set.forEach((cb) => cb(propName, value, oldValue));
|
|
1481
1513
|
}
|
|
1482
1514
|
};
|
|
1483
|
-
const state = (
|
|
1484
|
-
? {
|
|
1485
|
-
: new Proxy(unwrappedState, {
|
|
1515
|
+
const state = (proxyAvailable
|
|
1516
|
+
? new Proxy(initialState, {
|
|
1486
1517
|
get(_, propName) {
|
|
1487
1518
|
return get(propName);
|
|
1488
1519
|
},
|
|
@@ -1502,7 +1533,11 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1502
1533
|
set(propName, value);
|
|
1503
1534
|
return true;
|
|
1504
1535
|
},
|
|
1505
|
-
})
|
|
1536
|
+
})
|
|
1537
|
+
: (() => {
|
|
1538
|
+
syncPlainStateKeys();
|
|
1539
|
+
return plainState;
|
|
1540
|
+
})());
|
|
1506
1541
|
const on = (eventName, callback) => {
|
|
1507
1542
|
handlers[eventName].push(callback);
|
|
1508
1543
|
return () => {
|
|
@@ -1515,7 +1550,10 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1515
1550
|
cb(newValue);
|
|
1516
1551
|
}
|
|
1517
1552
|
};
|
|
1518
|
-
const resetHandler = () =>
|
|
1553
|
+
const resetHandler = () => {
|
|
1554
|
+
const snapshot = resolveDefaultState();
|
|
1555
|
+
cb(snapshot[propName]);
|
|
1556
|
+
};
|
|
1519
1557
|
// Register the handlers
|
|
1520
1558
|
const unSet = on('set', setHandler);
|
|
1521
1559
|
const unReset = on('reset', resetHandler);
|
|
@@ -1558,6 +1596,38 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1558
1596
|
changeListeners.delete(listener);
|
|
1559
1597
|
}
|
|
1560
1598
|
};
|
|
1599
|
+
function ensurePlainProperty(key) {
|
|
1600
|
+
if (proxyAvailable || !plainState) {
|
|
1601
|
+
return;
|
|
1602
|
+
}
|
|
1603
|
+
if (Object.prototype.hasOwnProperty.call(plainState, key)) {
|
|
1604
|
+
return;
|
|
1605
|
+
}
|
|
1606
|
+
Object.defineProperty(plainState, key, {
|
|
1607
|
+
configurable: true,
|
|
1608
|
+
enumerable: true,
|
|
1609
|
+
get() {
|
|
1610
|
+
return get(key);
|
|
1611
|
+
},
|
|
1612
|
+
set(value) {
|
|
1613
|
+
set(key, value);
|
|
1614
|
+
},
|
|
1615
|
+
});
|
|
1616
|
+
}
|
|
1617
|
+
function syncPlainStateKeys() {
|
|
1618
|
+
if (proxyAvailable || !plainState) {
|
|
1619
|
+
return;
|
|
1620
|
+
}
|
|
1621
|
+
const knownKeys = new Set(states.keys());
|
|
1622
|
+
for (const key of Object.keys(plainState)) {
|
|
1623
|
+
if (!knownKeys.has(key)) {
|
|
1624
|
+
delete plainState[key];
|
|
1625
|
+
}
|
|
1626
|
+
}
|
|
1627
|
+
for (const key of knownKeys) {
|
|
1628
|
+
ensurePlainProperty(key);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1561
1631
|
return {
|
|
1562
1632
|
state,
|
|
1563
1633
|
get,
|
|
@@ -1585,7 +1655,7 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
1585
1655
|
return map;
|
|
1586
1656
|
};
|
|
1587
1657
|
|
|
1588
|
-
const nvPopoverCss =
|
|
1658
|
+
const nvPopoverCss = () => `nv-popover{display:inline-block;position:relative}nv-popover:has([fluid]:not([fluid=false])){display:block}nv-popover[strategy=fixed]{position:static}nv-popover>[data-scope=popover]{width:max-content;background-color:var(--components-popover-background);border-color:var(--components-popover-border);font-weight:var(--font-weight-medium-emphasis);border-width:1px;border-style:solid;border-radius:var(--popover-radius);padding:var(--popover-padding-y) var(--popover-padding-x);position:absolute;top:0;left:0;z-index:1;box-shadow:var(--popover-shadow-1-x) var(--popover-shadow-1-y) var(--popover-shadow-1-blur) -2px var(--popover-shadow-1-opacity), var(--popover-shadow-2-x) var(--popover-shadow-2-y) var(--popover-shadow-2-blur) var(--shadow-spread-lg-2) var(--popover-shadow-2-opacity)}nv-popover>[data-scope=popover][hidden]:not([hidden=false]){display:none}nv-popover>[data-scope=popover][data-strategy=fixed]{position:fixed;z-index:9999}nv-popover>[data-scope=popover]>[data-scope=arrow]{background-color:var(--components-popover-background);position:absolute;border-color:var(--components-popover-border);border-width:1px;border-style:solid;border-bottom-color:transparent;border-right-color:transparent;width:8px;height:8px;transform:rotate(45deg);border-radius:1px}nv-popover>[data-scope=popover]>[slot=content]{position:relative;z-index:1}nv-popover>slot-fb{display:none}`;
|
|
1589
1659
|
|
|
1590
1660
|
const { state } = createStore({
|
|
1591
1661
|
groups: new Map(),
|
|
@@ -1762,7 +1832,7 @@ const NvPopover = class {
|
|
|
1762
1832
|
positionPopover() {
|
|
1763
1833
|
if (!this.triggerElement)
|
|
1764
1834
|
return;
|
|
1765
|
-
computePosition(this.triggerElement, this.popoverElement, {
|
|
1835
|
+
computePosition(dom_utilsCuXVGECR.asElement(this.triggerElement), this.popoverElement, {
|
|
1766
1836
|
placement: this.placement,
|
|
1767
1837
|
strategy: this.strategy,
|
|
1768
1838
|
middleware: [
|
|
@@ -1852,11 +1922,10 @@ const NvPopover = class {
|
|
|
1852
1922
|
//#endregion WATCHERS
|
|
1853
1923
|
/****************************************************************************/
|
|
1854
1924
|
//#region LIFECYCLE
|
|
1855
|
-
|
|
1856
|
-
if (!this.triggerElement)
|
|
1857
|
-
this.triggerElement =
|
|
1858
|
-
|
|
1859
|
-
componentWillUpdate() {
|
|
1925
|
+
componentWillRender() {
|
|
1926
|
+
if (!this.triggerElement) {
|
|
1927
|
+
this.triggerElement = this.el.querySelector('[slot="trigger"]');
|
|
1928
|
+
}
|
|
1860
1929
|
this.attachEventListeners();
|
|
1861
1930
|
}
|
|
1862
1931
|
componentDidLoad() {
|
|
@@ -1871,7 +1940,6 @@ const NvPopover = class {
|
|
|
1871
1940
|
this.popoverElement.removeAttribute('hidden');
|
|
1872
1941
|
}
|
|
1873
1942
|
this.positionPopover();
|
|
1874
|
-
this.attachEventListeners();
|
|
1875
1943
|
}
|
|
1876
1944
|
disconnectedCallback() {
|
|
1877
1945
|
events_utilsB6GgGra_.removeEventListeners(this.closeEvents, document, this);
|
|
@@ -1894,14 +1962,18 @@ const NvPopover = class {
|
|
|
1894
1962
|
/****************************************************************************/
|
|
1895
1963
|
//#region RENDER
|
|
1896
1964
|
render() {
|
|
1897
|
-
return (index.h(index.Host, { key: '
|
|
1965
|
+
return (index.h(index.Host, { key: '8d6cfba040e2e29705a6e9fd3c1044c9e0b668b1' }, index.h("slot", { key: '1ea59e4037bf56ced06ad652c9c55bbc56556fd5', name: "trigger" }), index.h("div", { key: '7023f506e410e44a85c4683ebccfe10fdaf45c10', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (index.h("div", { key: 'b336819de26b0ae8899dbd378272a6a5a30517d6', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), index.h("slot", { key: 'fd9aad00f57cb5bab850983f2b28ea80b4cdd7fb', name: "content" }))));
|
|
1898
1966
|
}
|
|
1899
1967
|
get el() { return index.getElement(this); }
|
|
1900
1968
|
static get watchers() { return {
|
|
1901
|
-
"open": [
|
|
1902
|
-
|
|
1969
|
+
"open": [{
|
|
1970
|
+
"handleOpenChange": 0
|
|
1971
|
+
}],
|
|
1972
|
+
"strategy": [{
|
|
1973
|
+
"handleStrategyChange": 0
|
|
1974
|
+
}]
|
|
1903
1975
|
}; }
|
|
1904
1976
|
};
|
|
1905
|
-
NvPopover.style = nvPopoverCss;
|
|
1977
|
+
NvPopover.style = nvPopoverCss();
|
|
1906
1978
|
|
|
1907
1979
|
exports.nv_popover = NvPopover;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BeFrXZol.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
const nvRowCss = () => `nv-row{display:flex;flex-wrap:wrap;margin-right:calc(var(--spacing-4) * -1);margin-left:calc(var(--spacing-4) * -1);row-gap:var(--spacing-4)}`;
|
|
9
|
+
|
|
10
|
+
const NvRow = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region RENDER
|
|
16
|
+
render() {
|
|
17
|
+
return (index.h(index.Host, { key: '507041a8331236632f2dc12e94ca7c87465e8312' }, index.h("slot", { key: '3bef8f23cdc72e42467dc0407b9d2693f15638d7' })));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
NvRow.style = nvRowCss();
|
|
21
|
+
|
|
22
|
+
exports.nv_row = NvRow;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BeFrXZol.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
7
7
|
|
|
8
|
-
const nvSidebarCss =
|
|
8
|
+
const nvSidebarCss = () => `nv-sidebarnavitem a,nv-sidebarnavitem a:link,nv-sidebarnavitem a:visited,nv-sidebarnavitem a:hover,nv-sidebarnavitem a:active,nv-sidebarnavsubitem a,nv-sidebarnavsubitem a:link,nv-sidebarnavsubitem a:visited,nv-sidebarnavsubitem a:hover,nv-sidebarnavsubitem a:active{color:inherit !important;text-decoration:none !important}nv-sidebar{display:flex;flex-direction:column;position:relative;height:100vh;background-color:var(--components-sidebar-background);border-right:var(--sidebar-divider-size) solid var(--components-sidebar-border);transition:width 0.3s ease;width:var(--sidebar-width)}nv-sidebar[collapsed]{width:var(--sidebar-width-collapsed)}nv-sidebar[collapsed] [data-hide-on-collapsed]{display:none !important}nv-sidebar[collapsed] .nv-sidebar-container{padding:var(--sidebar-padding-y) var(--sidebar-padding-x-collapsed)}nv-sidebar .nv-sidebar-container{display:flex;flex-direction:column;flex:1;overflow:hidden;padding:var(--sidebar-padding-y) var(--sidebar-padding-x);gap:var(--sidebar-gap-y)}nv-sidebar .nv-sidebar-toggle{position:absolute;top:var(--sidebar-collapsible-button-position-top);right:calc(-1 * var(--sidebar-collapsible-button-position-right));display:flex;align-items:center;justify-content:center;padding:var(--sidebar-collapsible-button-padding);background-color:var(--components-sidebar-background);border:1px solid var(--color-content-low-border);border-radius:var(--radius-rounded-full);cursor:pointer;transition:transform 0.2s ease;z-index:10}nv-sidebar .nv-sidebar-toggle:hover{background-color:var(--color-interaction-container-neutral-background-hover)}nv-sidebar .nv-sidebar-toggle:focus,nv-sidebar .nv-sidebar-toggle:focus-within{outline:none}nv-sidebar .nv-sidebar-toggle:focus-visible,nv-sidebar .nv-sidebar-toggle:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebar .nv-sidebar-toggle nv-icon{width:var(--sidebar-collapsible-button-icon-size);height:var(--sidebar-collapsible-button-icon-size);color:var(--color-interaction-container-neutral-icon)}nv-sidebar .nv-sidebar-toggle nv-icon:hover{color:var(--color-interaction-container-neutral-icon-hover)}`;
|
|
9
9
|
|
|
10
10
|
const NvSidebar = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -162,16 +162,20 @@ 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: 'a22074a54f9d51c5a60dd698573a95862e9df0a8', 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: 'f19453d0dbbad812f27f188ef198b895d37e8ad2', class: "nv-sidebar-container" }, index.h("slot", { key: '7194ae2a2a655716f3f1db89d9c38dc4b0ab9df0' })), this.type === 'collapsible' && (index.h("button", { key: '4f7a1805932f6e1783fbcf63dc54d3260464eab0', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, index.h("nv-icon", { key: '76d84d1c07d3f841808950c6805aa7bcaa63cf85', name: this.open
|
|
166
166
|
? 'layout-sidebar-left-collapse'
|
|
167
167
|
: 'layout-sidebar-right-collapse', size: "sm" })))));
|
|
168
168
|
}
|
|
169
169
|
get el() { return index.getElement(this); }
|
|
170
170
|
static get watchers() { return {
|
|
171
|
-
"activePath": [
|
|
172
|
-
|
|
171
|
+
"activePath": [{
|
|
172
|
+
"onActivePathChanged": 0
|
|
173
|
+
}],
|
|
174
|
+
"open": [{
|
|
175
|
+
"onOpenChanged": 0
|
|
176
|
+
}]
|
|
173
177
|
}; }
|
|
174
178
|
};
|
|
175
|
-
NvSidebar.style = nvSidebarCss;
|
|
179
|
+
NvSidebar.style = nvSidebarCss();
|
|
176
180
|
|
|
177
181
|
exports.nv_sidebar = NvSidebar;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-BeFrXZol.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
const nvSidebarcontentCss = () => `nv-sidebarcontent{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}`;
|
|
9
|
+
|
|
10
|
+
const NvSidebarcontent = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
}
|
|
14
|
+
/****************************************************************************/
|
|
15
|
+
//#region RENDER
|
|
16
|
+
render() {
|
|
17
|
+
return (index.h(index.Host, { key: 'e88e1557fbfa8ec74391dc11b6073eecb4d97685', role: "list" }, index.h("slot", { key: 'ccaf985cc498a5729600316135d750190a514582' })));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
NvSidebarcontent.style = nvSidebarcontentCss();
|
|
21
|
+
|
|
22
|
+
exports.nv_sidebarcontent = NvSidebarcontent;
|
package/dist/cjs/{nv-sidebardivider.entry-B4EMyca5.js → nv-sidebardivider.entry-BSzLq-h3.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BeFrXZol.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
7
7
|
|
|
8
|
-
const nvSidebardividerCss =
|
|
8
|
+
const nvSidebardividerCss = () => `nv-sidebardivider{display:block;height:var(--sidebar-divider-size);background-color:var(--components-sidebar-divider)}`;
|
|
9
9
|
|
|
10
10
|
const NvSidebardivider = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -14,9 +14,9 @@ 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: 'e2288aab359dff9087f7758e53a476e4715b0742', role: "separator", "aria-orientation": "horizontal" });
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvSidebardivider.style = nvSidebardividerCss;
|
|
20
|
+
NvSidebardivider.style = nvSidebardividerCss();
|
|
21
21
|
|
|
22
22
|
exports.nv_sidebardivider = NvSidebardivider;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-BeFrXZol.js');
|
|
4
4
|
require('@stencil/react-output-target/runtime');
|
|
5
5
|
require('react');
|
|
6
6
|
require('react-dom');
|
|
7
7
|
|
|
8
|
-
const nvSidebarfooterCss =
|
|
8
|
+
const nvSidebarfooterCss = () => `nv-sidebarfooter{display:block;margin-top:auto}`;
|
|
9
9
|
|
|
10
10
|
const NvSidebarfooter = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -14,9 +14,9 @@ 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: 'ac36a47c2f96070779b7b05134303604e3ef7676' }, index.h("slot", { key: '295d26a47fa386deade3799a02686afe6ef42ce0' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvSidebarfooter.style = nvSidebarfooterCss;
|
|
20
|
+
NvSidebarfooter.style = nvSidebarfooterCss();
|
|
21
21
|
|
|
22
22
|
exports.nv_sidebarfooter = NvSidebarfooter;
|