@nova-design-system/nova-react 3.21.1-beta.0 → 3.23.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/_commonjsHelpers-B85MJLTf-CFO10eej.js +7 -0
- package/dist/cjs/{collapse.animation-6e0b08df-AHWzNGm_.js → collapse.animation-DZDm0vSK-C2TOIhIK.js} +3 -3
- package/dist/cjs/{fade.animation-9b939939-DV--bM4S.js → fade.animation-DcRL9lcm-DAZeHoKN.js} +75 -75
- package/dist/cjs/generated/components.server.js +163 -60
- package/dist/cjs/{grow.animation-24ad5cf8-LUp_ITEx.js → grow.animation-CvHGHBL4-DDIEYBK-.js} +5 -5
- package/dist/cjs/i18n.utils-DOZbXX2L-BizoXo6c.js +2498 -0
- package/dist/cjs/{index-CEKdYnmK.js → index-CtjeeUI-.js} +10298 -6029
- package/dist/cjs/index.js +2 -1
- package/dist/cjs/inputmask-CSo292ul-DlvupPk6.js +3758 -0
- package/dist/cjs/{nv-accordion-item.entry-zvp8yDql.js → nv-accordion-item.entry-B_l0-ux0.js} +11 -10
- package/dist/cjs/{nv-accordion.entry-D6gckOF4.js → nv-accordion.entry-BX8_YuZF.js} +8 -5
- package/dist/cjs/{nv-alert.entry-Df8-nQ-R.js → nv-alert.entry-DCWYR0OK.js} +22 -22
- package/dist/cjs/{nv-avatar.entry-ZOnVWP9L.js → nv-avatar.entry-C_xZD3Lp.js} +11 -11
- package/dist/cjs/{nv-badge_2.entry-DgiVv_Yf.js → nv-badge_2.entry-JjqANStV.js} +24 -24
- package/dist/cjs/{nv-breadcrumb.entry-IqtE1JL0.js → nv-breadcrumb.entry-DQZDn6cm.js} +5 -5
- package/dist/cjs/{nv-breadcrumbs.entry-Be6dz7zI.js → nv-breadcrumbs.entry-Bz0GjhY_.js} +3 -3
- package/dist/cjs/{nv-button.entry-CmswF3Si.js → nv-button.entry-Br1DH9Vj.js} +9 -9
- package/dist/cjs/{nv-buttongroup.entry-Cfe6rFSs.js → nv-buttongroup.entry-BZaTKN_n.js} +3 -3
- package/dist/cjs/{nv-calendar.entry-q83sS_dN.js → nv-calendar.entry-D9ESuu7C.js} +105 -79
- package/dist/cjs/{nv-col.entry-Cu-Qi1bi.js → nv-col.entry-CfgPMMxS.js} +5 -5
- package/dist/cjs/{nv-datagrid.entry-Cx7SvD5S.js → nv-datagrid.entry-DcB5q2oC.js} +14 -14
- package/dist/cjs/{nv-datagridcolumn.entry-B_uXKFLg.js → nv-datagridcolumn.entry-BhKOzXA6.js} +2 -1
- package/dist/cjs/{nv-dialog.entry-J6Xwi6z1.js → nv-dialog.entry-O47Eol_7.js} +23 -23
- package/dist/cjs/{nv-dialogfooter_2.entry-DOlhqDTh.js → nv-dialogfooter_2.entry-Dn16bI8a.js} +10 -11
- package/dist/cjs/nv-fieldcheckbox.entry-Bx6ArV_b.js +177 -0
- package/dist/cjs/{nv-fielddate.entry-xWi3GpLl.js → nv-fielddate.entry-B4P0U8QG.js} +86 -40
- package/dist/cjs/{nv-fielddaterange.entry-BwFtpw9X.js → nv-fielddaterange.entry-BORwYJ-k.js} +150 -101
- package/dist/cjs/nv-fielddropdown.entry-DzBAIynY.js +687 -0
- package/dist/cjs/{nv-fielddropdownitem.entry-DjyFlVXw.js → nv-fielddropdownitem.entry-C_17isWd.js} +6 -5
- package/dist/cjs/{nv-fieldmultiselect.entry-BtLTG7nM.js → nv-fieldmultiselect.entry-DiqRreWh.js} +347 -232
- package/dist/cjs/nv-fieldnumber.entry-C9O4UPp3.js +187 -0
- package/dist/cjs/nv-fieldpassword.entry-BfVJNT0A.js +165 -0
- package/dist/cjs/{nv-fieldradio.entry-2hb1Ur40.js → nv-fieldradio.entry-CG22oETM.js} +10 -10
- package/dist/cjs/{nv-fieldselect.entry-D-eYQpAv.js → nv-fieldselect.entry-BPQEtrv2.js} +52 -13
- package/dist/cjs/{nv-fieldslider.entry-BGle1RZR.js → nv-fieldslider.entry-CozmnUfN.js} +16 -31
- package/dist/cjs/nv-fieldtext.entry-BD-z01ru.js +163 -0
- package/dist/cjs/{nv-fieldtextarea.entry-Z32-s901.js → nv-fieldtextarea.entry-7UrKWDHg.js} +51 -12
- package/dist/cjs/{nv-fieldtime.entry-CDFGdfFL.js → nv-fieldtime.entry-DakOlLiO.js} +109 -57
- package/dist/cjs/{nv-icon.entry-BDq7DKRt.js → nv-icon.entry-Db00kB2u.js} +11 -11
- package/dist/cjs/{nv-iconbutton_2.entry-DdgEkFLK.js → nv-iconbutton_2.entry-CaKCa8NT.js} +7 -8
- package/dist/cjs/{nv-menu.entry-iob0Kve8.js → nv-menu.entry-CK2HdmBt.js} +16 -29
- package/dist/cjs/{nv-menuitem.entry-C989Ui60.js → nv-menuitem.entry-mKMqCAdz.js} +6 -5
- package/dist/cjs/nv-notification-bullet.entry-DtbjtFxs.js +77 -0
- package/dist/cjs/{nv-notification.entry-BxvJMKxH.js → nv-notification.entry-CLb0gNu3.js} +39 -39
- package/dist/cjs/{nv-notificationcontainer.entry-CxGCIb96.js → nv-notificationcontainer.entry-Cijivlm6.js} +3 -3
- package/dist/cjs/{nv-popover.entry-1KsO_KQm.js → nv-popover.entry-mLdLSp6n.js} +49 -45
- package/dist/cjs/{nv-row.entry-PBLq_BzJ.js → nv-row.entry-C2C94fcv.js} +3 -3
- package/dist/cjs/{nv-sidebar.entry-CjLbvLqw.js → nv-sidebar.entry-inDVNJ4s.js} +13 -13
- package/dist/cjs/{nv-sidebarcontent.entry-Cv76IH4W.js → nv-sidebarcontent.entry-DxoljE15.js} +3 -3
- package/dist/cjs/{nv-sidebardivider.entry-DYPJ_k73.js → nv-sidebardivider.entry-D_yern0R.js} +4 -4
- package/dist/cjs/{nv-sidebarfooter.entry-mGcMBRmv.js → nv-sidebarfooter.entry-Rkkn9TB_.js} +3 -3
- package/dist/cjs/{nv-sidebargroup.entry-DtwFliHZ.js → nv-sidebargroup.entry-C1p9qqxr.js} +4 -4
- package/dist/cjs/{nv-sidebarheader.entry-BdOYIXCA.js → nv-sidebarheader.entry-CYpD_4pI.js} +3 -3
- package/dist/cjs/{nv-sidebarlogo.entry-Da0kGsfw.js → nv-sidebarlogo.entry-BgK03M1v.js} +3 -3
- package/dist/cjs/{nv-sidebarnavitem.entry-D5xLfpwn.js → nv-sidebarnavitem.entry-DglvcCOD.js} +4 -4
- package/dist/cjs/nv-sidebarnavsubitem.entry-Dt1jKmC-.js +35 -0
- package/dist/cjs/{nv-split.entry-y66NBf88.js → nv-split.entry-mzg2F66T.js} +6 -6
- package/dist/cjs/{nv-stack.entry-CXjpkpbW.js → nv-stack.entry-nnvjTrBy.js} +5 -5
- package/dist/cjs/{nv-table.entry-quaVnLru.js → nv-table.entry-DkbNgxtI.js} +3 -3
- package/dist/cjs/{nv-tableheader.entry-DTBE2XQO.js → nv-tableheader.entry-CRVFTQA-.js} +6 -6
- package/dist/cjs/{nv-toggle.entry-CxUwF0pb.js → nv-toggle.entry-oC9TVkr1.js} +9 -9
- package/dist/cjs/nv-togglebutton.entry-BTWCzbS9.js +67 -0
- package/dist/cjs/{nv-togglebuttongroup.entry-UbrE8y7a.js → nv-togglebuttongroup.entry-BYXX5ejg.js} +8 -5
- package/dist/cjs/{nv-tooltip.entry-Dq2bkV33.js → nv-tooltip.entry-OJGxfJEh.js} +5 -5
- package/dist/cjs/{style-value-types.es-f5d10b79-D0QCM8OB.js → style-value-types.es-xlgmw4x8-B1vLqX9m.js} +6 -3
- package/dist/cjs/{v4-a79185f4-2n0dOd_Y.js → v4-BdYh22OP-C1vaJ4yP.js} +1 -1
- package/dist/components/NvDatatable/NvDatatable.js +77 -4
- package/dist/generated/components.server.js +144 -60
- package/dist/providers/NotificationProvider.js +3 -4
- package/dist/types/components/NvDatatable/NvDatatable.d.ts +1 -1
- package/dist/types/components/NvDatatable/types.d.ts +17 -1
- package/package.json +2 -2
- package/dist/cjs/_commonjsHelpers-1789f0cf-BJu3ubxk.js +0 -10
- package/dist/cjs/inputmask-edcad3c1-B9Omti4z.js +0 -3749
- package/dist/cjs/nv-fieldcheckbox.entry-C23dGGX7.js +0 -138
- package/dist/cjs/nv-fielddropdown.entry-mnl7mSaK.js +0 -392
- package/dist/cjs/nv-fieldnumber.entry-C00Hg70B.js +0 -148
- package/dist/cjs/nv-fieldpassword.entry-BLg8tCN0.js +0 -122
- package/dist/cjs/nv-fieldtext.entry-Djg8cqOa.js +0 -124
- package/dist/cjs/nv-notification-bullet.entry-J8OkAZtU.js +0 -77
- package/dist/cjs/nv-sidebarnavsubitem.entry-CkeJfHH4.js +0 -35
- package/dist/cjs/nv-togglebutton.entry-w-WEAmE6.js +0 -56
- /package/dist/cjs/{clsx-297c1ffe-BtxeOLZW.js → clsx-ChV9xqsO-BtxeOLZW.js} +0 -0
- /package/dist/cjs/{constants-69bafca2-DpB_ghPF.js → constants-BReL3Lsa-DpB_ghPF.js} +0 -0
- /package/dist/cjs/{timeline.animation-79215cd4-KteJaZPb.js → timeline.animation-CgHCo_Ho-KteJaZPb.js} +0 -0
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('./style-value-types.es-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
var fade_animationDcRL9lcm = require('./fade.animation-DcRL9lcm-DAZeHoKN.js');
|
|
5
|
+
var grow_animationCvHGHBL4 = require('./grow.animation-CvHGHBL4-DDIEYBK-.js');
|
|
6
|
+
require('./style-value-types.es-xlgmw4x8-B1vLqX9m.js');
|
|
7
|
+
require('@stencil/react-output-target/runtime');
|
|
7
8
|
require('react');
|
|
8
9
|
require('react-dom');
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Custom positioning reference element.
|
|
13
|
+
* @see https://floating-ui.com/docs/virtual-elements
|
|
14
|
+
*/
|
|
15
|
+
|
|
10
16
|
const min = Math.min;
|
|
11
17
|
const max = Math.max;
|
|
12
18
|
const round = Math.round;
|
|
@@ -843,7 +849,6 @@ function getOverflowAncestors(node, list, traverseIframes) {
|
|
|
843
849
|
const isBody = scrollableAncestor === ((_node$ownerDocument2 = node.ownerDocument) == null ? void 0 : _node$ownerDocument2.body);
|
|
844
850
|
const win = getWindow(scrollableAncestor);
|
|
845
851
|
if (isBody) {
|
|
846
|
-
getFrameElement(win);
|
|
847
852
|
return list.concat(win, win.visualViewport || [], isOverflowElement(scrollableAncestor) ? scrollableAncestor : [], []);
|
|
848
853
|
}
|
|
849
854
|
return list.concat(scrollableAncestor, getOverflowAncestors(scrollableAncestor, []));
|
|
@@ -1409,7 +1414,7 @@ const cleanupElements = debounce((map) => {
|
|
|
1409
1414
|
for (let key of map.keys()) {
|
|
1410
1415
|
map.set(key, map.get(key).filter(isConnected));
|
|
1411
1416
|
}
|
|
1412
|
-
},
|
|
1417
|
+
}, 2_000);
|
|
1413
1418
|
const stencilSubscription = () => {
|
|
1414
1419
|
if (typeof index.getRenderingRef !== 'function') {
|
|
1415
1420
|
// If we are not in a stencil project, we do nothing.
|
|
@@ -1442,18 +1447,19 @@ const stencilSubscription = () => {
|
|
|
1442
1447
|
const unwrap = (val) => (typeof val === 'function' ? val() : val);
|
|
1443
1448
|
const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) => {
|
|
1444
1449
|
const unwrappedState = unwrap(defaultState);
|
|
1445
|
-
let states = new Map(Object.entries(unwrappedState
|
|
1450
|
+
let states = new Map(Object.entries(unwrappedState ?? {}));
|
|
1446
1451
|
const handlers = {
|
|
1447
1452
|
dispose: [],
|
|
1448
1453
|
get: [],
|
|
1449
1454
|
set: [],
|
|
1450
1455
|
reset: [],
|
|
1451
1456
|
};
|
|
1457
|
+
// Track onChange listeners to enable removeListener functionality
|
|
1458
|
+
const changeListeners = new Map();
|
|
1452
1459
|
const reset = () => {
|
|
1453
|
-
var _a;
|
|
1454
1460
|
// When resetting the state, the default state may be a function - unwrap it to invoke it.
|
|
1455
1461
|
// otherwise, the state won't be properly reset
|
|
1456
|
-
states = new Map(Object.entries(
|
|
1462
|
+
states = new Map(Object.entries(unwrap(defaultState) ?? {}));
|
|
1457
1463
|
handlers.reset.forEach((cb) => cb());
|
|
1458
1464
|
};
|
|
1459
1465
|
const dispose = () => {
|
|
@@ -1503,17 +1509,21 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1503
1509
|
};
|
|
1504
1510
|
};
|
|
1505
1511
|
const onChange = (propName, cb) => {
|
|
1506
|
-
const
|
|
1512
|
+
const setHandler = (key, newValue) => {
|
|
1507
1513
|
if (key === propName) {
|
|
1508
1514
|
cb(newValue);
|
|
1509
1515
|
}
|
|
1510
|
-
}
|
|
1511
|
-
|
|
1512
|
-
//
|
|
1513
|
-
const
|
|
1516
|
+
};
|
|
1517
|
+
const resetHandler = () => cb(unwrap(defaultState)[propName]);
|
|
1518
|
+
// Register the handlers
|
|
1519
|
+
const unSet = on('set', setHandler);
|
|
1520
|
+
const unReset = on('reset', resetHandler);
|
|
1521
|
+
// Track the relationship between the user callback and internal handlers
|
|
1522
|
+
changeListeners.set(cb, { setHandler, resetHandler, propName });
|
|
1514
1523
|
return () => {
|
|
1515
1524
|
unSet();
|
|
1516
1525
|
unReset();
|
|
1526
|
+
changeListeners.delete(cb);
|
|
1517
1527
|
};
|
|
1518
1528
|
};
|
|
1519
1529
|
const use = (...subscriptions) => {
|
|
@@ -1538,6 +1548,15 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1538
1548
|
const oldValue = states.get(key);
|
|
1539
1549
|
handlers.set.forEach((cb) => cb(key, oldValue, oldValue));
|
|
1540
1550
|
};
|
|
1551
|
+
const removeListener = (propName, listener) => {
|
|
1552
|
+
const listenerInfo = changeListeners.get(listener);
|
|
1553
|
+
if (listenerInfo && listenerInfo.propName === propName) {
|
|
1554
|
+
// Remove the specific handlers that were created for this listener
|
|
1555
|
+
removeFromArray(handlers.set, listenerInfo.setHandler);
|
|
1556
|
+
removeFromArray(handlers.reset, listenerInfo.resetHandler);
|
|
1557
|
+
changeListeners.delete(listener);
|
|
1558
|
+
}
|
|
1559
|
+
};
|
|
1541
1560
|
return {
|
|
1542
1561
|
state,
|
|
1543
1562
|
get,
|
|
@@ -1548,6 +1567,7 @@ const createObservableMap = (defaultState, shouldUpdate = (a, b) => a !== b) =>
|
|
|
1548
1567
|
dispose,
|
|
1549
1568
|
reset,
|
|
1550
1569
|
forceUpdate,
|
|
1570
|
+
removeListener,
|
|
1551
1571
|
};
|
|
1552
1572
|
};
|
|
1553
1573
|
const removeFromArray = (array, item) => {
|
|
@@ -1565,7 +1585,6 @@ const createStore = (defaultState, shouldUpdate) => {
|
|
|
1565
1585
|
};
|
|
1566
1586
|
|
|
1567
1587
|
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}";
|
|
1568
|
-
const NvPopoverStyle0 = nvPopoverCss;
|
|
1569
1588
|
|
|
1570
1589
|
const { state } = createStore({
|
|
1571
1590
|
groups: new Map(),
|
|
@@ -1573,7 +1592,7 @@ const { state } = createStore({
|
|
|
1573
1592
|
const NvPopover = class {
|
|
1574
1593
|
constructor(hostRef) {
|
|
1575
1594
|
index.registerInstance(this, hostRef);
|
|
1576
|
-
this.openChanged = index.createEvent(this, "openChanged");
|
|
1595
|
+
this.openChanged = index.createEvent(this, "openChanged", 3);
|
|
1577
1596
|
this.eventsAttached = false;
|
|
1578
1597
|
this.isAnimating = false;
|
|
1579
1598
|
this.clickEvents = [
|
|
@@ -1724,14 +1743,14 @@ const NvPopover = class {
|
|
|
1724
1743
|
*/
|
|
1725
1744
|
attachEventListeners() {
|
|
1726
1745
|
if (this.triggerElement && !this.eventsAttached) {
|
|
1727
|
-
|
|
1746
|
+
grow_animationCvHGHBL4.addEventListeners(this.closeEvents, document, this);
|
|
1728
1747
|
if (this.triggerMode === 'click') {
|
|
1729
|
-
|
|
1748
|
+
grow_animationCvHGHBL4.addEventListeners(this.clickEvents, this.triggerElement, this);
|
|
1730
1749
|
// Add document click and touch listeners
|
|
1731
|
-
|
|
1750
|
+
grow_animationCvHGHBL4.addEventListeners(this.outsideClickEvents, document, this);
|
|
1732
1751
|
}
|
|
1733
1752
|
if (this.triggerMode === 'hover') {
|
|
1734
|
-
|
|
1753
|
+
grow_animationCvHGHBL4.addEventListeners(this.hoverEvents, this.triggerElement, this);
|
|
1735
1754
|
}
|
|
1736
1755
|
this.eventsAttached = true;
|
|
1737
1756
|
}
|
|
@@ -1806,11 +1825,11 @@ const NvPopover = class {
|
|
|
1806
1825
|
state.groups.delete(this.groupName);
|
|
1807
1826
|
if (this.groupName && open)
|
|
1808
1827
|
state.groups.set(this.groupName, { openedBy: this.el });
|
|
1809
|
-
const { growIn } =
|
|
1828
|
+
const { growIn } = grow_animationCvHGHBL4.useGrow(this.popoverElement, {
|
|
1810
1829
|
duration: isOtherMemberOpen ? 0 : 100,
|
|
1811
1830
|
amount: 0.85,
|
|
1812
1831
|
});
|
|
1813
|
-
const { fadeOut } =
|
|
1832
|
+
const { fadeOut } = fade_animationDcRL9lcm.useFade(this.popoverElement, {
|
|
1814
1833
|
duration: isOtherMemberOpen ? 0 : 100,
|
|
1815
1834
|
});
|
|
1816
1835
|
if (open === true) {
|
|
@@ -1832,21 +1851,6 @@ const NvPopover = class {
|
|
|
1832
1851
|
}
|
|
1833
1852
|
//#endregion WATCHERS
|
|
1834
1853
|
/****************************************************************************/
|
|
1835
|
-
//#region LISTENERS
|
|
1836
|
-
handleOpenChanged(event) {
|
|
1837
|
-
var _a;
|
|
1838
|
-
if (this.triggerMode === 'controlled')
|
|
1839
|
-
return;
|
|
1840
|
-
if (this.nested)
|
|
1841
|
-
return;
|
|
1842
|
-
if ((_a = event.target) === null || _a === void 0 ? void 0 : _a.hasAttribute('nested'))
|
|
1843
|
-
return;
|
|
1844
|
-
// This popover should close when another one is opened.
|
|
1845
|
-
if (event.target !== this.el && event.detail === true)
|
|
1846
|
-
this.open = false;
|
|
1847
|
-
}
|
|
1848
|
-
//#endregion LISTENERS
|
|
1849
|
-
/****************************************************************************/
|
|
1850
1854
|
//#region LIFECYCLE
|
|
1851
1855
|
componentWillLoad() {
|
|
1852
1856
|
if (!this.triggerElement)
|
|
@@ -1858,11 +1862,11 @@ const NvPopover = class {
|
|
|
1858
1862
|
componentDidLoad() {
|
|
1859
1863
|
// Initial inline style setup
|
|
1860
1864
|
if (!this.open) {
|
|
1861
|
-
const { setGrowOut } =
|
|
1865
|
+
const { setGrowOut } = grow_animationCvHGHBL4.useGrow(this.popoverElement);
|
|
1862
1866
|
setGrowOut();
|
|
1863
1867
|
}
|
|
1864
1868
|
else {
|
|
1865
|
-
const { setFadeIn } =
|
|
1869
|
+
const { setFadeIn } = fade_animationDcRL9lcm.useFade(this.popoverElement);
|
|
1866
1870
|
setFadeIn();
|
|
1867
1871
|
this.popoverElement.removeAttribute('hidden');
|
|
1868
1872
|
}
|
|
@@ -1870,14 +1874,14 @@ const NvPopover = class {
|
|
|
1870
1874
|
this.attachEventListeners();
|
|
1871
1875
|
}
|
|
1872
1876
|
disconnectedCallback() {
|
|
1873
|
-
|
|
1877
|
+
grow_animationCvHGHBL4.removeEventListeners(this.closeEvents, document, this);
|
|
1874
1878
|
if (this.triggerMode === 'click') {
|
|
1875
|
-
|
|
1879
|
+
grow_animationCvHGHBL4.removeEventListeners(this.clickEvents, this.triggerElement, this);
|
|
1876
1880
|
// Remove document listeners
|
|
1877
|
-
|
|
1881
|
+
grow_animationCvHGHBL4.removeEventListeners(this.outsideClickEvents, document, this);
|
|
1878
1882
|
}
|
|
1879
1883
|
if (this.triggerMode === 'hover')
|
|
1880
|
-
|
|
1884
|
+
grow_animationCvHGHBL4.removeEventListeners(this.hoverEvents, this.triggerElement, this);
|
|
1881
1885
|
// Reset flag so events can be reattached if component is reconnected
|
|
1882
1886
|
this.eventsAttached = false;
|
|
1883
1887
|
// Clean up any pending timeouts
|
|
@@ -1890,7 +1894,7 @@ const NvPopover = class {
|
|
|
1890
1894
|
/****************************************************************************/
|
|
1891
1895
|
//#region RENDER
|
|
1892
1896
|
render() {
|
|
1893
|
-
return (index.h(index.Host, { key: '
|
|
1897
|
+
return (index.h(index.Host, { key: '8ef71227900185e903bd0003771074ba5d071aac' }, index.h("slot", { key: '84ccbb797f486d76ed650b50e5004bffc2521ddb', name: "trigger" }), index.h("div", { key: '66dc1bf520a2bf6f0a1c4e91b091b0b4941807c4', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (index.h("div", { key: 'a1ab4831292b9ab60ebfd8dd478c3685944dbe79', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), index.h("slot", { key: '2d9ee411891f956ff3ccd7b74d956e5b952e1af0', name: "content" }))));
|
|
1894
1898
|
}
|
|
1895
1899
|
get el() { return index.getElement(this); }
|
|
1896
1900
|
static get watchers() { return {
|
|
@@ -1898,6 +1902,6 @@ const NvPopover = class {
|
|
|
1898
1902
|
"strategy": ["handleStrategyChange"]
|
|
1899
1903
|
}; }
|
|
1900
1904
|
};
|
|
1901
|
-
NvPopover.style =
|
|
1905
|
+
NvPopover.style = nvPopoverCss;
|
|
1902
1906
|
|
|
1903
1907
|
exports.nv_popover = NvPopover;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
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)}";
|
|
8
|
-
const NvRowStyle0 = nvRowCss;
|
|
9
9
|
|
|
10
10
|
const NvRow = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -17,6 +17,6 @@ const NvRow = class {
|
|
|
17
17
|
return (index.h(index.Host, { key: '8415bdad0106bd3d836996c617a749294e0c19e2' }, index.h("slot", { key: '77c069ced0dc25c4169945877c388f30d27fdc4f' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvRow.style =
|
|
20
|
+
NvRow.style = nvRowCss;
|
|
21
21
|
|
|
22
22
|
exports.nv_row = NvRow;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
|
-
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(--
|
|
8
|
-
const NvSidebarStyle0 = 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) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.openChanged = index.createEvent(this, "openChanged");
|
|
13
|
+
this.openChanged = index.createEvent(this, "openChanged", 3);
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region PROPERTIES
|
|
16
16
|
/**
|
|
@@ -134,6 +134,13 @@ const NvSidebar = class {
|
|
|
134
134
|
onActivePathChanged() {
|
|
135
135
|
this.setActiveNavItems();
|
|
136
136
|
}
|
|
137
|
+
onOpenChanged(newValue, oldValue) {
|
|
138
|
+
this.handleCollapsedSideEffects(this.type === 'collapsible' && !newValue);
|
|
139
|
+
// Only emit event when open state actually changes (not on re-render with same value)
|
|
140
|
+
if (this.type === 'collapsible' && newValue !== oldValue) {
|
|
141
|
+
this.openChanged.emit(newValue);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
137
144
|
//#endregion WATCHERS
|
|
138
145
|
/****************************************************************************/
|
|
139
146
|
//#region LIFECYCLE
|
|
@@ -142,13 +149,6 @@ const NvSidebar = class {
|
|
|
142
149
|
this.setupMutationObserver();
|
|
143
150
|
this.handleCollapsedSideEffects(this.type === 'collapsible' && !this.open);
|
|
144
151
|
}
|
|
145
|
-
onOpenChanged(newValue, oldValue) {
|
|
146
|
-
this.handleCollapsedSideEffects(this.type === 'collapsible' && !newValue);
|
|
147
|
-
// Only emit event when open state actually changes (not on re-render with same value)
|
|
148
|
-
if (this.type === 'collapsible' && newValue !== oldValue) {
|
|
149
|
-
this.openChanged.emit(newValue);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
152
|
disconnectedCallback() {
|
|
153
153
|
if (this.mutationObserver) {
|
|
154
154
|
this.mutationObserver.disconnect();
|
|
@@ -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: '79f262f95af40b330d5640273f7a6059f672068b', 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: '348023343f71ba232b82c21f968c0a8bbb170eca', class: "nv-sidebar-container" }, index.h("slot", { key: 'b634857cb88c12975de9641e154b669de8ce8726' })), this.type === 'collapsible' && (index.h("button", { key: '0b398d6738536aad4d4e96ad5ca1f04dd543ee1b', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, index.h("nv-icon", { key: '44b5eb0c9b3239750956c7da09eb9a22e5d0939f', name: this.open
|
|
166
166
|
? 'layout-sidebar-left-collapse'
|
|
167
167
|
: 'layout-sidebar-right-collapse', size: "sm" })))));
|
|
168
168
|
}
|
|
@@ -172,6 +172,6 @@ const NvSidebar = class {
|
|
|
172
172
|
"open": ["onOpenChanged"]
|
|
173
173
|
}; }
|
|
174
174
|
};
|
|
175
|
-
NvSidebar.style =
|
|
175
|
+
NvSidebar.style = nvSidebarCss;
|
|
176
176
|
|
|
177
177
|
exports.nv_sidebar = NvSidebar;
|
package/dist/cjs/{nv-sidebarcontent.entry-Cv76IH4W.js → nv-sidebarcontent.entry-DxoljE15.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
8
|
const nvSidebarcontentCss = "nv-sidebarcontent{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}";
|
|
8
|
-
const NvSidebarcontentStyle0 = nvSidebarcontentCss;
|
|
9
9
|
|
|
10
10
|
const NvSidebarcontent = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -17,6 +17,6 @@ const NvSidebarcontent = class {
|
|
|
17
17
|
return (index.h(index.Host, { key: 'd960a2c2abe06db605980bf35d2c7cc74f4e0dba', role: "list" }, index.h("slot", { key: '7c0b0ad872d1afc279bfd9c9d381097207f055e2' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvSidebarcontent.style =
|
|
20
|
+
NvSidebarcontent.style = nvSidebarcontentCss;
|
|
21
21
|
|
|
22
22
|
exports.nv_sidebarcontent = NvSidebarcontent;
|
package/dist/cjs/{nv-sidebardivider.entry-DYPJ_k73.js → nv-sidebardivider.entry-D_yern0R.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
|
-
const nvSidebardividerCss = "nv-sidebardivider{display:block;height:var(--sidebar-
|
|
8
|
-
const NvSidebardividerStyle0 = 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) {
|
|
@@ -17,6 +17,6 @@ const NvSidebardivider = class {
|
|
|
17
17
|
return index.h(index.Host, { key: 'a4328b357b750232920c8b5e24e91503bba7e235', role: "separator", "aria-orientation": "horizontal" });
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvSidebardivider.style =
|
|
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-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
8
|
const nvSidebarfooterCss = "nv-sidebarfooter{display:block;margin-top:auto}";
|
|
8
|
-
const NvSidebarfooterStyle0 = nvSidebarfooterCss;
|
|
9
9
|
|
|
10
10
|
const NvSidebarfooter = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -17,6 +17,6 @@ const NvSidebarfooter = class {
|
|
|
17
17
|
return (index.h(index.Host, { key: '73ce5246f93d982caf0d65f2cde8156dfbe565da' }, index.h("slot", { key: '92a297a59988ce6e70875eedd50227cdf011d4bf' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvSidebarfooter.style =
|
|
20
|
+
NvSidebarfooter.style = nvSidebarfooterCss;
|
|
21
21
|
|
|
22
22
|
exports.nv_sidebarfooter = NvSidebarfooter;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
|
-
const nvSidebargroupCss = "nv-sidebargroup{display:flex;flex-direction:column;gap:var(--
|
|
8
|
-
const NvSidebargroupStyle0 = nvSidebargroupCss;
|
|
8
|
+
const nvSidebargroupCss = "nv-sidebargroup{display:flex;flex-direction:column;gap:var(--sidebar-group-gap-y)}nv-sidebargroup .nv-sidebargroup-label{display:block;font-size:var(--font-size-sm);line-height:var(--line-height-sm);font-weight:var(--font-weight-medium-emphasis);color:var(--color-content-lower-text);letter-spacing:0;padding:var(--sidebar-title-padding-y) var(--sidebar-title-padding-x)}nv-sidebar[collapsed] nv-sidebargroup .nv-sidebargroup-label{display:none}";
|
|
9
9
|
|
|
10
10
|
const NvSidebargroup = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -18,6 +18,6 @@ const NvSidebargroup = class {
|
|
|
18
18
|
return (index.h(index.Host, { key: 'c7b4e34d8237dc93adaa33f12d7cfda36a8ac269', role: "group", "aria-label": this.label }, this.label && index.h("div", { key: '7cafdf840b12c89604efda7895b764331c8054b7', class: "nv-sidebargroup-label" }, this.label), index.h("slot", { key: 'b6567a223f7cc05ce2874a632d38d6665c255659' })));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
NvSidebargroup.style =
|
|
21
|
+
NvSidebargroup.style = nvSidebargroupCss;
|
|
22
22
|
|
|
23
23
|
exports.nv_sidebargroup = NvSidebargroup;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
8
|
const nvSidebarheaderCss = "nv-sidebarheader{display:block}";
|
|
8
|
-
const NvSidebarheaderStyle0 = nvSidebarheaderCss;
|
|
9
9
|
|
|
10
10
|
const NvSidebarheader = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -17,6 +17,6 @@ const NvSidebarheader = class {
|
|
|
17
17
|
return (index.h(index.Host, { key: '42d91f8325df19e8208ab045a057657c97bf3ff4' }, index.h("slot", { key: '42b4e5952fd55b95fe2934297929cef3bd1b226c' })));
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
NvSidebarheader.style =
|
|
20
|
+
NvSidebarheader.style = nvSidebarheaderCss;
|
|
21
21
|
|
|
22
22
|
exports.nv_sidebarheader = NvSidebarheader;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
8
|
const nvSidebarlogoCss = "nv-sidebarlogo{display:block}nv-sidebarlogo .nv-sidebarlogo-container{display:flex;align-items:center;gap:var(--spacing-3)}nv-sidebarlogo .nv-sidebarlogo-full,nv-sidebarlogo .nv-sidebarlogo-collapsed{height:var(--spacing-8);width:auto;object-fit:contain}nv-sidebarlogo .nv-sidebarlogo-collapsed{display:none}nv-sidebarlogo .nv-sidebarlogo-title{font-size:var(--nv-sidebarlogo-font-size, var(--font-size-md));font-weight:var(--nv-sidebarlogo-font-weight, var(--font-weight-high-emphasis));font-family:var(--nv-sidebarlogo-font-family, inherit);color:var(--color-content-high-text);white-space:nowrap;overflow:hidden;transition:opacity 0.2s ease, max-width 0.3s ease, margin-left 0.3s ease;max-width:200px;opacity:1}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-full{display:none}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-collapsed{display:block}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-title{max-width:0;opacity:0;margin-left:0}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-container{justify-content:center;align-items:center;gap:0;width:100%;min-height:var(--spacing-12);padding:0}";
|
|
8
|
-
const NvSidebarlogoStyle0 = nvSidebarlogoCss;
|
|
9
9
|
|
|
10
10
|
const NvSidebarlogo = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -27,6 +27,6 @@ const NvSidebarlogo = class {
|
|
|
27
27
|
return (index.h(index.Host, { key: 'ec2aba08293e4def2fe083c311b69cafe005cf5e' }, index.h("div", { key: '3a24d832a0bb5aa44264fe1fc3091878556649bd', class: "nv-sidebarlogo-container" }, index.h("img", { key: 'a9a08e7c5dd51902d9ffbda0d9216a4ffb186756', src: logoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-full" }), index.h("img", { key: 'daef311e11c8d5ee6b823a4896be36ea5bd696cc', src: collapsedLogoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-collapsed" }), this.label && index.h("span", { key: '9685e4c110e7bb7356f5d49b615105033a32a736', class: "nv-sidebarlogo-title" }, this.label))));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
NvSidebarlogo.style =
|
|
30
|
+
NvSidebarlogo.style = nvSidebarlogoCss;
|
|
31
31
|
|
|
32
32
|
exports.nv_sidebarlogo = NvSidebarlogo;
|
package/dist/cjs/{nv-sidebarnavitem.entry-D5xLfpwn.js → nv-sidebarnavitem.entry-DglvcCOD.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
|
-
const nvSidebarnavitemCss = "nv-sidebarnavitem{display:flex;flex-direction:column;gap:0}nv-sidebarnavitem .nv-sidebarnavitem-trigger{display:flex;align-items:center;gap:var(--sidebar-
|
|
8
|
-
const NvSidebarnavitemStyle0 = nvSidebarnavitemCss;
|
|
8
|
+
const nvSidebarnavitemCss = "nv-sidebarnavitem{display:flex;flex-direction:column;gap:0}nv-sidebarnavitem .nv-sidebarnavitem-trigger{display:flex;align-items:center;gap:var(--sidebar-item-gap-x);padding:var(--sidebar-item-padding-y) var(--sidebar-item-padding-x);border-radius:var(--sidebar-item-radius);cursor:pointer;transition:all 0.15s ease;font-size:var(--sidebar-item-font-size);font-weight:var(--font-weight-medium-emphasis);color:var(--color-content-low-text);background:var(--components-sidebar-background);text-decoration:none;--nv-component-background:var(--components-sidebar-background);--nv-sidebarnavitem-background:var(--components-sidebar-background)}nv-sidebarnavitem .nv-sidebarnavitem-trigger:hover{background-color:var(--color-interaction-container-neutral-background-hover);color:var(--color-content-medium-text);--nv-component-background:var(--color-interaction-container-neutral-background-hover);--nv-sidebarnavitem-background:var(--color-interaction-container-neutral-background-hover)}nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus,nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus-within{outline:none}nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus-visible,nv-sidebarnavitem .nv-sidebarnavitem-trigger:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebarnavitem[active] .nv-sidebarnavitem-trigger{background-color:var(--color-interaction-container-neutral-background-active);color:var(--color-interaction-container-neutral-text-active);font-weight:var(--font-weight-medium-emphasis);--nv-component-background:var(--color-interaction-container-neutral-background-active);--nv-sidebarnavitem-background:var(--color-interaction-container-neutral-background-active)}nv-sidebarnavitem .nv-sidebarnavitem-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:inherit;width:var(--sidebar-item-icon-size);height:var(--sidebar-item-icon-size);position:relative}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-icon{overflow:visible;margin:0;justify-content:center}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-icon nv-notification-bullet{position:absolute;transform:translate(50%, -50%);z-index:1;--sidebar-notification-bullet-size-reduced:calc(\n var(--sidebar-item-icon-size) * 0.4\n )}nv-sidebarnavitem .nv-sidebarnavitem-content{flex:1;display:flex;align-items:center}nv-sidebarnavitem .nv-sidebarnavitem-content a{color:inherit !important;text-decoration:none !important;font-weight:var(--font-weight-medium-emphasis) !important;flex:1}nv-sidebarnavitem .nv-sidebarnavitem-trailing{display:flex;align-items:center;gap:var(--spacing-2);margin-left:auto}nv-sidebarnavitem .nv-sidebarnavitem-chevron{transition:transform 0.2s ease;color:inherit}nv-sidebarnavitem[open] .nv-sidebarnavitem-chevron{transform:rotate(180deg)}nv-sidebarnavitem .nv-sidebarnavitem-subitems{display:flex;flex-direction:column;gap:0;max-height:0;overflow:hidden;opacity:0;transition:max-height 0.3s ease, opacity 0.2s ease;padding-left:0}nv-sidebarnavitem[open] .nv-sidebarnavitem-subitems{opacity:1;margin-top:var(--spacing-1)}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-trigger{justify-content:center;gap:0;padding:var(--sidebar-item-padding-y-collapsed) var(--sidebar-item-padding-x-collapsed)}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-content{display:none}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-trailing,nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-chevron{display:none}";
|
|
9
9
|
|
|
10
10
|
const NvSidebarnavitem = class {
|
|
11
11
|
constructor(hostRef) {
|
|
@@ -292,6 +292,6 @@ const NvSidebarnavitem = class {
|
|
|
292
292
|
"open": ["onOpenChanged"]
|
|
293
293
|
}; }
|
|
294
294
|
};
|
|
295
|
-
NvSidebarnavitem.style =
|
|
295
|
+
NvSidebarnavitem.style = nvSidebarnavitemCss;
|
|
296
296
|
|
|
297
297
|
exports.nv_sidebarnavitem = NvSidebarnavitem;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
5
|
+
require('react');
|
|
6
|
+
require('react-dom');
|
|
7
|
+
|
|
8
|
+
const nvSidebarnavsubitemCss = "nv-sidebarnavsubitem{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--sidebar-item-padding-y) var(--sidebar-item-padding-x) var(--sidebar-item-padding-y) calc(var(--sidebar-sub-item-padding-left) + var(--sidebar-item-padding-x));cursor:pointer;transition:all 0.15s ease;position:relative;min-height:var(--spacing-10);background-color:var(--color-interaction-container-neutral-background);border-radius:var(--sidebar-item-radius);--nv-component-background:var(--color-interaction-container-neutral-background)}nv-sidebarnavsubitem:hover{background-color:var(--color-interaction-container-neutral-background-hover);--nv-component-background:var(--color-interaction-container-neutral-background-hover)}nv-sidebarnavsubitem:focus,nv-sidebarnavsubitem:focus-within{outline:none}nv-sidebarnavsubitem:focus-visible,nv-sidebarnavsubitem:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebarnavsubitem .nv-sidebarnavsubitem-indicator{display:none}nv-sidebarnavsubitem .nv-sidebarnavsubitem-content{flex:1;display:flex;align-items:center;gap:var(--spacing-2);font-size:var(--font-size-sm);color:var(--color-content-medium-text);text-decoration:none;font-weight:var(--font-weight-medium-emphasis)}nv-sidebarnavsubitem .nv-sidebarnavsubitem-content a{color:inherit !important;text-decoration:none !important;font-weight:var(--font-weight-medium-emphasis) !important;flex:1}nv-sidebarnavsubitem:hover .nv-sidebarnavsubitem-content{color:var(--color-content-medium-text)}nv-sidebarnavsubitem[active]{background-color:var(--color-interaction-container-neutral-background-active);--nv-component-background:var(--color-interaction-container-neutral-background-active)}nv-sidebarnavsubitem[active] .nv-sidebarnavsubitem-content{color:var(--color-interaction-container-neutral-text-active);font-weight:var(--font-weight-high-emphasis)}nv-sidebarnavsubitem .nv-sidebarnavsubitem-trailing{display:flex;align-items:center}nv-sidebar[collapsed] nv-sidebarnavsubitem .nv-sidebarnavsubitem-content{max-width:0;opacity:0;margin:0;overflow:hidden;transition:opacity 0.2s ease, max-width 0.2s ease}nv-sidebar[collapsed] nv-sidebarnavsubitem .nv-sidebarnavsubitem-indicator{margin-right:0;width:var(--spacing-6);justify-content:center}nv-sidebar[collapsed] nv-sidebarnavsubitem .nv-sidebarnavsubitem-trailing{display:none}";
|
|
9
|
+
|
|
10
|
+
const NvSidebarnavsubitem = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/****************************************************************************/
|
|
14
|
+
//#region PROPERTIES
|
|
15
|
+
/**
|
|
16
|
+
* Whether this sub-item represents the active/current page.
|
|
17
|
+
*/
|
|
18
|
+
this.active = false;
|
|
19
|
+
}
|
|
20
|
+
//#endregion PROPERTIES
|
|
21
|
+
/****************************************************************************/
|
|
22
|
+
//#region METHODS
|
|
23
|
+
// Note: We no longer use stopPropagation() here because it prevents React Router
|
|
24
|
+
// (and other SPA routers) from receiving the click event due to event delegation.
|
|
25
|
+
// Instead, the parent nv-sidebarnavitem checks if clicks originate from subitems.
|
|
26
|
+
//#endregion METHODS
|
|
27
|
+
/****************************************************************************/
|
|
28
|
+
//#region RENDER
|
|
29
|
+
render() {
|
|
30
|
+
return (index.h(index.Host, { key: '8ae8c5e2038145bd458a35d237495a06fde97294', role: "listitem", "aria-current": this.active ? 'page' : undefined }, index.h("div", { key: '559a99d72973f7af43091c5c920e77d8cad3944c', class: "nv-sidebarnavsubitem-indicator" }), index.h("div", { key: '204c7ad681d51310f43b618ef14a12d0ccc93ddc', class: "nv-sidebarnavsubitem-content" }, index.h("slot", { key: 'f4717aee216fbeac4dbfe0d98b34fe7e83476701' })), index.h("div", { key: 'b5db84c75ae4e51d8a048000a49697eaf4b20f1d', class: "nv-sidebarnavsubitem-trailing" }, index.h("slot", { key: 'b6d0afcd6b4ace60b32f531f414b70aba513a274', name: "trailing" }))));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
NvSidebarnavsubitem.style = nvSidebarnavsubitemCss;
|
|
34
|
+
|
|
35
|
+
exports.nv_sidebarnavsubitem = NvSidebarnavsubitem;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
require('@stencil/react-output-target/runtime');
|
|
4
5
|
require('react');
|
|
5
6
|
require('react-dom');
|
|
6
7
|
|
|
7
|
-
const nvSplitCss = "nv-split{display:flex;width:100%;height:100%;position:relative}nv-split[direction=horizontal]{flex-direction:row}nv-split[direction=vertical]{flex-direction:column}nv-split .nv-split-gutter{position:absolute;z-index:10;background:transparent;display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:background-color 0.2s ease}nv-split .nv-split-gutter::after{content:\"\";position:absolute;background:var(--
|
|
8
|
-
const NvSplitStyle0 = nvSplitCss;
|
|
8
|
+
const nvSplitCss = "nv-split{display:flex;width:100%;height:100%;position:relative}nv-split[direction=horizontal]{flex-direction:row}nv-split[direction=vertical]{flex-direction:column}nv-split .nv-split-gutter{position:absolute;z-index:10;background:transparent;display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:background-color 0.2s ease}nv-split .nv-split-gutter::after{content:\"\";position:absolute;background:var(--components-splitter-line-background);transition:background-color 0.2s ease}nv-split .nv-split-gutter:hover::after{background:var(--components-splitter-line-background-hover)}nv-split .nv-split-gutter::before{content:\"\";background:var(--components-splitter-handle-background);position:absolute;background-repeat:no-repeat;background-position:center;transition:all 0.2s ease;pointer-events:none}nv-split[direction=horizontal]>.nv-split-gutter{width:var(--splitter-gutter);top:0;bottom:0;transform:translateX(-50%);cursor:col-resize}nv-split[direction=horizontal]>.nv-split-gutter::after{width:var(--splitter-line-width);background-color:var(--components-splitter-line-background);height:100%;left:50%;top:0%;transform:translateX(-50%)}nv-split[direction=horizontal]>.nv-split-gutter:hover::after{background-color:var(--components-splitter-line-background-hover)}nv-split[direction=horizontal]>.nv-split-gutter:active::after{background-color:var(--components-splitter-line-background-active)}nv-split[direction=horizontal]>.nv-split-gutter::before{background-color:var(--components-splitter-handle-background);width:var(--splitter-handle-wide);height:var(--splitter-handle-long);border-radius:var(--splitter-handle-radius);z-index:11;transition:all 0.2s ease}nv-split[direction=horizontal]>.nv-split-gutter:hover::before{background-color:var(--components-splitter-handle-background-hover)}nv-split[direction=horizontal]>.nv-split-gutter:active::before{background-color:var(--components-splitter-handle-background-active)}nv-split[direction=vertical]>.nv-split-gutter{height:var(--splitter-gutter);left:0;right:0;transform:translateY(-50%);cursor:row-resize}nv-split[direction=vertical]>.nv-split-gutter::after{height:var(--splitter-line-width);background-color:var(--components-splitter-line-background);width:100%;top:50%;left:0%;transform:translateY(-50%)}nv-split[direction=vertical]>.nv-split-gutter:hover::after{background-color:var(--components-splitter-line-background-hover)}nv-split[direction=vertical]>.nv-split-gutter:active::after{background-color:var(--components-splitter-line-background-active)}nv-split[direction=vertical]>.nv-split-gutter::before{background-color:var(--components-splitter-handle-background);width:var(--splitter-handle-long);height:var(--splitter-handle-wide);border-radius:var(--splitter-handle-radius);z-index:11;transition:all 0.2s ease}nv-split[direction=vertical]>.nv-split-gutter:hover::before{background-color:var(--components-splitter-handle-background-hover)}nv-split[direction=vertical]>.nv-split-gutter:active::before{background-color:var(--components-splitter-handle-background-active)}nv-split[data-dragging=true]>.nv-split-gutter::after{background:var(--components-splitter-line-background-active)}nv-split>[slot=pane]{flex:1 1 auto;overflow:hidden;min-width:0;min-height:0;display:flex;flex-direction:column}nv-split>[slot=pane]>nv-split{flex:1 1 auto;width:100%;height:100%}";
|
|
9
9
|
|
|
10
10
|
const NvSplit = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
index.registerInstance(this, hostRef);
|
|
13
|
-
this.sizesChanged = index.createEvent(this, "sizesChanged");
|
|
13
|
+
this.sizesChanged = index.createEvent(this, "sizesChanged", 3);
|
|
14
14
|
/****************************************************************************/
|
|
15
15
|
//#region PROPERTIES
|
|
16
16
|
/**
|
|
@@ -324,7 +324,7 @@ const NvSplit = class {
|
|
|
324
324
|
/****************************************************************************/
|
|
325
325
|
//#region RENDER
|
|
326
326
|
render() {
|
|
327
|
-
return (index.h(index.Host, { key: '
|
|
327
|
+
return (index.h(index.Host, { key: '2266f982349909b08637721e0bf5d8792fa2f3aa', "data-dragging": this.isDragging.toString() }, index.h("slot", { key: '0b0845ae2f93bb137692fd570beaa2e26816c1c9', name: "pane" }), index.h("slot", { key: 'ac322712eb7024dde9efc41dac946196fd15a786', name: "gutter" })));
|
|
328
328
|
}
|
|
329
329
|
get el() { return index.getElement(this); }
|
|
330
330
|
static get watchers() { return {
|
|
@@ -332,6 +332,6 @@ const NvSplit = class {
|
|
|
332
332
|
"direction": ["onDirectionChanged"]
|
|
333
333
|
}; }
|
|
334
334
|
};
|
|
335
|
-
NvSplit.style =
|
|
335
|
+
NvSplit.style = nvSplitCss;
|
|
336
336
|
|
|
337
337
|
exports.nv_split = NvSplit;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var
|
|
3
|
+
var index = require('./index-CtjeeUI-.js');
|
|
4
|
+
var clsxChV9xqsO = require('./clsx-ChV9xqsO-BtxeOLZW.js');
|
|
5
|
+
require('@stencil/react-output-target/runtime');
|
|
5
6
|
require('react');
|
|
6
7
|
require('react-dom');
|
|
7
8
|
|
|
8
9
|
const nvStackCss = "nv-stack{display:flex;align-items:center;justify-content:flex-start;flex-direction:row}nv-stack nv-col{display:flex}nv-stack:not(nv-row){flex-wrap:nowrap}nv-stack>.nv-stack-item-flex{flex-shrink:1;flex-grow:1}nv-stack>.nv-stack-item-lead{margin-right:auto}nv-stack>.nv-stack-item-lead+*{margin-left:0}nv-stack>.nv-stack-item-center{margin-right:auto;margin-left:auto}nv-stack>.nv-stack-item-tail{margin-left:auto}nv-stack>.nv-stack-nowrap{white-space:nowrap}nv-stack.nv-stack-vertical{align-items:stretch;flex-direction:column}nv-stack.nv-stack-vertical>.nv-stack-item-lead{margin-right:0;margin-bottom:auto}nv-stack.nv-stack-vertical>.nv-stack-item-lead+*{margin-top:0}nv-stack.nv-stack-vertical>.nv-stack-item-tail{margin-left:0;margin-top:auto}nv-stack.nv-stack-vertical>.nv-stack-item-center{margin:auto 0}nv-stack.nv-stack-flex>*{flex-shrink:1;flex-grow:1}nv-stack.nv-stack-fill>*{height:100%}nv-stack.nv-stack-fill.nv-stack-vertical>*{height:auto;width:100%}";
|
|
9
|
-
const NvStackStyle0 = nvStackCss;
|
|
10
10
|
|
|
11
11
|
const NvStack = class {
|
|
12
12
|
constructor(hostRef) {
|
|
@@ -23,9 +23,9 @@ const NvStack = class {
|
|
|
23
23
|
/****************************************************************************/
|
|
24
24
|
//#region RENDER
|
|
25
25
|
render() {
|
|
26
|
-
return (index.h(index.Host, { key: 'fbdaf5b2fb134b050883a512b4aeb96b070017c1', class:
|
|
26
|
+
return (index.h(index.Host, { key: 'fbdaf5b2fb134b050883a512b4aeb96b070017c1', 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: '6c7c231b8ff2575a1b509539d227468629fae6ab' })));
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
NvStack.style =
|
|
29
|
+
NvStack.style = nvStackCss;
|
|
30
30
|
|
|
31
31
|
exports.nv_stack = NvStack;
|