@ni/nimble-components 7.6.0 → 7.8.1
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/all-components-bundle.js +36 -7
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +6 -6
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/checkbox/index.js +3 -2
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/checkbox/styles.js +26 -4
- package/dist/esm/checkbox/styles.js.map +1 -1
- package/dist/esm/nimble-components/src/tree-view/types.d.ts +2 -1
- package/dist/esm/tree-item/index.js +3 -2
- package/dist/esm/tree-item/index.js.map +1 -1
- package/dist/esm/tree-item/styles.js +4 -0
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/dist/esm/tree-view/types.d.ts +2 -1
- package/dist/esm/tree-view/types.js +1 -0
- package/dist/esm/tree-view/types.js.map +1 -1
- package/package.json +1 -1
|
@@ -13675,22 +13675,44 @@
|
|
|
13675
13675
|
color: ${bodyDisabledFontColor};
|
|
13676
13676
|
}
|
|
13677
13677
|
|
|
13678
|
+
slot[name='checked-indicator'],
|
|
13679
|
+
slot[name='indeterminate-indicator'] {
|
|
13680
|
+
display: none;
|
|
13681
|
+
}
|
|
13682
|
+
|
|
13678
13683
|
slot[name='checked-indicator'] svg {
|
|
13679
13684
|
height: ${iconSize};
|
|
13680
13685
|
width: ${iconSize};
|
|
13681
13686
|
overflow: visible;
|
|
13682
13687
|
}
|
|
13683
13688
|
|
|
13689
|
+
:host(.checked:not(.indeterminate)) slot[name='checked-indicator'] {
|
|
13690
|
+
display: contents;
|
|
13691
|
+
}
|
|
13692
|
+
|
|
13684
13693
|
slot[name='checked-indicator'] path {
|
|
13685
13694
|
fill: ${borderColor};
|
|
13686
|
-
opacity: 0;
|
|
13687
13695
|
}
|
|
13688
13696
|
|
|
13689
|
-
:host([
|
|
13690
|
-
|
|
13697
|
+
:host([disabled]) slot[name='checked-indicator'] path {
|
|
13698
|
+
fill: rgba(${borderRgbPartialColor}, 0.3);
|
|
13691
13699
|
}
|
|
13692
13700
|
|
|
13693
|
-
|
|
13701
|
+
slot[name='indeterminate-indicator'] svg {
|
|
13702
|
+
height: ${iconSize};
|
|
13703
|
+
width: ${iconSize};
|
|
13704
|
+
overflow: visible;
|
|
13705
|
+
}
|
|
13706
|
+
|
|
13707
|
+
:host(.indeterminate) slot[name='indeterminate-indicator'] {
|
|
13708
|
+
display: contents;
|
|
13709
|
+
}
|
|
13710
|
+
|
|
13711
|
+
slot[name='indeterminate-indicator'] path {
|
|
13712
|
+
fill: ${borderColor};
|
|
13713
|
+
}
|
|
13714
|
+
|
|
13715
|
+
:host([disabled]) slot[name='indeterminate-indicator'] path {
|
|
13694
13716
|
fill: rgba(${borderRgbPartialColor}, 0.3);
|
|
13695
13717
|
}
|
|
13696
13718
|
`;
|
|
@@ -13705,7 +13727,8 @@
|
|
|
13705
13727
|
baseClass: Checkbox$1,
|
|
13706
13728
|
template: checkboxTemplate,
|
|
13707
13729
|
styles: styles$h,
|
|
13708
|
-
checkedIndicator: check16X16.data
|
|
13730
|
+
checkedIndicator: check16X16.data,
|
|
13731
|
+
indeterminateIndicator: minus16X16.data
|
|
13709
13732
|
});
|
|
13710
13733
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
|
|
13711
13734
|
|
|
@@ -18222,6 +18245,7 @@
|
|
|
18222
18245
|
(function (TreeViewSelectionMode) {
|
|
18223
18246
|
TreeViewSelectionMode["All"] = "all";
|
|
18224
18247
|
TreeViewSelectionMode["LeavesOnly"] = "leaves-only";
|
|
18248
|
+
TreeViewSelectionMode["None"] = "none";
|
|
18225
18249
|
})(TreeViewSelectionMode || (TreeViewSelectionMode = {}));
|
|
18226
18250
|
|
|
18227
18251
|
/* eslint-disable */
|
|
@@ -18338,6 +18362,10 @@
|
|
|
18338
18362
|
background: ${fillHoverColor};
|
|
18339
18363
|
}
|
|
18340
18364
|
|
|
18365
|
+
:host([${groupSelectedAttribute}]) .positioning-region:hover {
|
|
18366
|
+
background: ${fillHoverSelectedColor};
|
|
18367
|
+
}
|
|
18368
|
+
|
|
18341
18369
|
:host(${focusVisible}) .positioning-region {
|
|
18342
18370
|
box-shadow: 0px 0px 0px ${borderWidth} ${borderHoverColor} inset;
|
|
18343
18371
|
outline: ${borderWidth} solid ${borderHoverColor};
|
|
@@ -18520,8 +18548,9 @@
|
|
|
18520
18548
|
return;
|
|
18521
18549
|
}
|
|
18522
18550
|
const leavesOnly = this.treeView?.selectionMode === TreeViewSelectionMode.LeavesOnly;
|
|
18551
|
+
const all = this.treeView?.selectionMode === TreeViewSelectionMode.All;
|
|
18523
18552
|
const hasChildren = this.hasChildTreeItems();
|
|
18524
|
-
if ((leavesOnly && !hasChildren) ||
|
|
18553
|
+
if ((leavesOnly && !hasChildren) || all) {
|
|
18525
18554
|
const selectedTreeItem = this.getImmediateTreeItem(this.treeView?.currentSelected);
|
|
18526
18555
|
// deselect currently selected item if different than this instance
|
|
18527
18556
|
if (selectedTreeItem && this !== this.treeView?.currentSelected) {
|
|
@@ -18530,7 +18559,7 @@
|
|
|
18530
18559
|
this.selected = true;
|
|
18531
18560
|
}
|
|
18532
18561
|
else {
|
|
18533
|
-
// implicit hasChildren && leavesOnly, so only allow expand/collapse, not select
|
|
18562
|
+
// implicit (hasChildren && leavesOnly) || none, so only allow expand/collapse, not select
|
|
18534
18563
|
this.expanded = !this.expanded;
|
|
18535
18564
|
}
|
|
18536
18565
|
// don't allow base class to process click event
|