@ni/nimble-components 20.17.4 → 20.17.6
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 +33 -33
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +25 -22
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/anchor-menu-item/index.js +5 -10
- package/dist/esm/anchor-menu-item/index.js.map +1 -1
- package/dist/esm/anchor-tree-item/styles.js +12 -12
- package/dist/esm/anchor-tree-item/styles.js.map +1 -1
- package/dist/esm/label-provider/base/index.js +1 -0
- package/dist/esm/label-provider/base/index.js.map +1 -1
- package/dist/esm/table/index.js +2 -2
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/table/models/virtualizer.d.ts +2 -2
- package/dist/esm/table/models/virtualizer.js +2 -2
- package/dist/esm/table/models/virtualizer.js.map +1 -1
- package/dist/esm/text-area/index.js +1 -0
- package/dist/esm/text-area/index.js.map +1 -1
- package/dist/esm/tree-item/styles.js +11 -8
- package/dist/esm/tree-item/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -16301,7 +16301,7 @@
|
|
|
16301
16301
|
|
|
16302
16302
|
/**
|
|
16303
16303
|
* Do not edit directly
|
|
16304
|
-
* Generated on
|
|
16304
|
+
* Generated on Tue, 16 Jan 2024 21:34:36 GMT
|
|
16305
16305
|
*/
|
|
16306
16306
|
|
|
16307
16307
|
const Information100DarkUi = "#a46eff";
|
|
@@ -17820,7 +17820,7 @@
|
|
|
17820
17820
|
// The following two handlers are workarounds for issues with anchor menu items in submenus.
|
|
17821
17821
|
// Events can bubble up the DOM and get handled by the menu item in the parent menu. When that happens,
|
|
17822
17822
|
// the menu item's handlers (FAST) return false and prevent the default action, i.e. navigation.
|
|
17823
|
-
//
|
|
17823
|
+
// See tech debt issue: https://github.com/ni/nimble/issues/1740
|
|
17824
17824
|
/**
|
|
17825
17825
|
* @internal
|
|
17826
17826
|
*/
|
|
@@ -17842,13 +17842,10 @@
|
|
|
17842
17842
|
}
|
|
17843
17843
|
return true;
|
|
17844
17844
|
}
|
|
17845
|
-
// The FAST Menu manages the `tabindex` of its menu items.
|
|
17846
|
-
//
|
|
17847
|
-
//
|
|
17848
|
-
//
|
|
17849
|
-
// set the tabindex on the host and instead set it on the inner anchor.
|
|
17850
|
-
// The referenced Chromium bug is actually fixed, but it hasn't been pulled into Edge yet (it is in
|
|
17851
|
-
// Chrome). Issue https://github.com/ni/nimble/issues/1118 tracks removal of this workaround.
|
|
17845
|
+
// The FAST Menu manages the `tabindex` of its menu items.
|
|
17846
|
+
// When keyboard navigating to an item, it sets that item's `tabindex` to 0.
|
|
17847
|
+
// We need to pass this on to the anchor, otherwise an anchor without an href
|
|
17848
|
+
// will not be focusable and will prevent arrowing through the menu.
|
|
17852
17849
|
setAttribute(qualifiedName, value) {
|
|
17853
17850
|
if (qualifiedName === 'tabindex') {
|
|
17854
17851
|
this.anchor.setAttribute(qualifiedName, value);
|
|
@@ -17857,11 +17854,9 @@
|
|
|
17857
17854
|
super.setAttribute(qualifiedName, value);
|
|
17858
17855
|
}
|
|
17859
17856
|
}
|
|
17860
|
-
// This is part of the bug workaround described above (in setAttribute)
|
|
17861
17857
|
get tabIndex() {
|
|
17862
17858
|
return this.anchor.tabIndex;
|
|
17863
17859
|
}
|
|
17864
|
-
// This is part of the bug workaround described above (in setAttribute)
|
|
17865
17860
|
set tabIndex(value) {
|
|
17866
17861
|
this.anchor.tabIndex = value;
|
|
17867
17862
|
}
|
|
@@ -18339,10 +18334,15 @@
|
|
|
18339
18334
|
--ni-private-tree-item-nested-width: 0;
|
|
18340
18335
|
}
|
|
18341
18336
|
|
|
18337
|
+
:host([disabled]) {
|
|
18338
|
+
color: ${bodyDisabledFontColor};
|
|
18339
|
+
cursor: default;
|
|
18340
|
+
}
|
|
18341
|
+
|
|
18342
18342
|
.control {
|
|
18343
18343
|
display: flex;
|
|
18344
18344
|
text-decoration: none;
|
|
18345
|
-
color:
|
|
18345
|
+
color: inherit;
|
|
18346
18346
|
}
|
|
18347
18347
|
|
|
18348
18348
|
.control${focusVisible} {
|
|
@@ -18351,10 +18351,6 @@
|
|
|
18351
18351
|
outline-offset: -2px;
|
|
18352
18352
|
}
|
|
18353
18353
|
|
|
18354
|
-
:host([disabled]) .control {
|
|
18355
|
-
cursor: not-allowed;
|
|
18356
|
-
}
|
|
18357
|
-
|
|
18358
18354
|
.positioning-region {
|
|
18359
18355
|
display: flex;
|
|
18360
18356
|
position: relative;
|
|
@@ -18367,6 +18363,10 @@
|
|
|
18367
18363
|
background: ${fillHoverColor};
|
|
18368
18364
|
}
|
|
18369
18365
|
|
|
18366
|
+
:host([disabled]) .positioning-region:hover {
|
|
18367
|
+
background: transparent;
|
|
18368
|
+
}
|
|
18369
|
+
|
|
18370
18370
|
:host([selected]) .positioning-region {
|
|
18371
18371
|
background: ${fillSelectedColor};
|
|
18372
18372
|
}
|
|
@@ -18395,11 +18395,6 @@
|
|
|
18395
18395
|
margin-inline-start: ${iconSize};
|
|
18396
18396
|
}
|
|
18397
18397
|
|
|
18398
|
-
:host([disabled]) .content-region {
|
|
18399
|
-
opacity: 0.5;
|
|
18400
|
-
cursor: not-allowed;
|
|
18401
|
-
}
|
|
18402
|
-
|
|
18403
18398
|
${
|
|
18404
18399
|
/* this rule keeps children without an icon text aligned with parents */ ''}
|
|
18405
18400
|
[part="start"] {
|
|
@@ -18409,12 +18404,12 @@
|
|
|
18409
18404
|
${ /* the start class is applied when the corresponding slot is filled */''}
|
|
18410
18405
|
.start {
|
|
18411
18406
|
display: flex;
|
|
18412
|
-
fill: currentcolor;
|
|
18413
18407
|
margin-inline-start: ${iconSize};
|
|
18414
18408
|
margin-inline-end: ${iconSize};
|
|
18415
18409
|
}
|
|
18416
18410
|
|
|
18417
18411
|
slot[name='start']::slotted(*) {
|
|
18412
|
+
${iconColor.cssCustomProperty}: currentcolor;
|
|
18418
18413
|
width: ${iconSize};
|
|
18419
18414
|
height: ${iconSize};
|
|
18420
18415
|
}
|
|
@@ -23815,6 +23810,7 @@
|
|
|
23815
23810
|
this.propertyNotifier.subscribe(this);
|
|
23816
23811
|
}
|
|
23817
23812
|
disconnectedCallback() {
|
|
23813
|
+
super.disconnectedCallback();
|
|
23818
23814
|
this.propertyNotifier.unsubscribe(this);
|
|
23819
23815
|
if (this.themeProvider) {
|
|
23820
23816
|
for (const token of Object.values(this.supportedLabels)) {
|
|
@@ -63464,11 +63460,11 @@ img.ProseMirror-separator {
|
|
|
63464
63460
|
}
|
|
63465
63461
|
});
|
|
63466
63462
|
}
|
|
63467
|
-
|
|
63463
|
+
connect() {
|
|
63468
63464
|
this.viewportResizeObserver.observe(this.table.viewport);
|
|
63469
63465
|
this.updateVirtualizer();
|
|
63470
63466
|
}
|
|
63471
|
-
|
|
63467
|
+
disconnect() {
|
|
63472
63468
|
this.viewportResizeObserver.disconnect();
|
|
63473
63469
|
}
|
|
63474
63470
|
dataChanged() {
|
|
@@ -64443,7 +64439,7 @@ img.ProseMirror-separator {
|
|
|
64443
64439
|
connectedCallback() {
|
|
64444
64440
|
super.connectedCallback();
|
|
64445
64441
|
this.initialize();
|
|
64446
|
-
this.virtualizer.
|
|
64442
|
+
this.virtualizer.connect();
|
|
64447
64443
|
this.viewport.addEventListener('scroll', this.onViewPortScroll, {
|
|
64448
64444
|
passive: true
|
|
64449
64445
|
});
|
|
@@ -64452,7 +64448,7 @@ img.ProseMirror-separator {
|
|
|
64452
64448
|
}
|
|
64453
64449
|
disconnectedCallback() {
|
|
64454
64450
|
super.disconnectedCallback();
|
|
64455
|
-
this.virtualizer.
|
|
64451
|
+
this.virtualizer.disconnect();
|
|
64456
64452
|
this.viewport.removeEventListener('scroll', this.onViewPortScroll);
|
|
64457
64453
|
document.removeEventListener('keydown', this.onKeyDown);
|
|
64458
64454
|
document.removeEventListener('keyup', this.onKeyUp);
|
|
@@ -67334,6 +67330,7 @@ img.ProseMirror-separator {
|
|
|
67334
67330
|
* @internal
|
|
67335
67331
|
*/
|
|
67336
67332
|
disconnectedCallback() {
|
|
67333
|
+
super.disconnectedCallback();
|
|
67337
67334
|
this.resizeObserver?.disconnect();
|
|
67338
67335
|
}
|
|
67339
67336
|
/**
|
|
@@ -67942,6 +67939,11 @@ img.ProseMirror-separator {
|
|
|
67942
67939
|
--ni-private-tree-item-nested-width: 0;
|
|
67943
67940
|
}
|
|
67944
67941
|
|
|
67942
|
+
:host([disabled]) {
|
|
67943
|
+
color: ${bodyDisabledFontColor};
|
|
67944
|
+
cursor: default;
|
|
67945
|
+
}
|
|
67946
|
+
|
|
67945
67947
|
${ /* this controls the side border */''}
|
|
67946
67948
|
:host([${groupSelectedAttribute}])::after {
|
|
67947
67949
|
background: ${borderHoverColor};
|
|
@@ -67983,6 +67985,10 @@ img.ProseMirror-separator {
|
|
|
67983
67985
|
background: ${fillHoverSelectedColor};
|
|
67984
67986
|
}
|
|
67985
67987
|
|
|
67988
|
+
:host([disabled]) .positioning-region:hover {
|
|
67989
|
+
background-color: transparent;
|
|
67990
|
+
}
|
|
67991
|
+
|
|
67986
67992
|
.positioning-region::before {
|
|
67987
67993
|
content: '';
|
|
67988
67994
|
display: block;
|
|
@@ -68007,11 +68013,6 @@ img.ProseMirror-separator {
|
|
|
68007
68013
|
outline: none;
|
|
68008
68014
|
}
|
|
68009
68015
|
|
|
68010
|
-
:host([disabled]) .content-region {
|
|
68011
|
-
opacity: 0.5;
|
|
68012
|
-
cursor: not-allowed;
|
|
68013
|
-
}
|
|
68014
|
-
|
|
68015
68016
|
.expand-collapse-button {
|
|
68016
68017
|
background: none;
|
|
68017
68018
|
border: none;
|
|
@@ -68021,7 +68022,6 @@ img.ProseMirror-separator {
|
|
|
68021
68022
|
padding: 0px;
|
|
68022
68023
|
justify-content: center;
|
|
68023
68024
|
align-items: center;
|
|
68024
|
-
cursor: pointer;
|
|
68025
68025
|
margin-left: 10px;
|
|
68026
68026
|
position: absolute;
|
|
68027
68027
|
}
|
|
@@ -68044,12 +68044,12 @@ img.ProseMirror-separator {
|
|
|
68044
68044
|
/* the start class is applied when the corresponding slots is filled */ ''}
|
|
68045
68045
|
.start {
|
|
68046
68046
|
display: flex;
|
|
68047
|
-
fill: currentcolor;
|
|
68048
68047
|
margin-inline-start: ${iconSize};
|
|
68049
68048
|
margin-inline-end: ${iconSize};
|
|
68050
68049
|
}
|
|
68051
68050
|
|
|
68052
68051
|
slot[name='start']::slotted(*) {
|
|
68052
|
+
${iconColor.cssCustomProperty}: currentcolor;
|
|
68053
68053
|
width: ${iconSize};
|
|
68054
68054
|
height: ${iconSize};
|
|
68055
68055
|
}
|