@ni/ok-components 1.18.0 → 1.18.2
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 -8
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +35 -9
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/custom-elements.json +339 -339
- package/dist/custom-elements.md +76 -76
- package/dist/esm/fv/multi-select/index.js +2 -0
- package/dist/esm/fv/multi-select/index.js.map +1 -1
- package/dist/esm/fv/multi-select/styles.js +35 -9
- package/dist/esm/fv/multi-select/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -113925,6 +113925,10 @@ focus outline in that case.
|
|
|
113925
113925
|
box-shadow: ${elevation2BoxShadow};
|
|
113926
113926
|
}
|
|
113927
113927
|
|
|
113928
|
+
.anchored-region.top .popup {
|
|
113929
|
+
flex-direction: column-reverse;
|
|
113930
|
+
}
|
|
113931
|
+
|
|
113928
113932
|
.filter-field {
|
|
113929
113933
|
flex-shrink: 0;
|
|
113930
113934
|
display: flex;
|
|
@@ -113934,6 +113938,10 @@ focus outline in that case.
|
|
|
113934
113938
|
box-shadow: 0 2px rgba(${borderRgbPartialColor}, 0.1);
|
|
113935
113939
|
}
|
|
113936
113940
|
|
|
113941
|
+
.anchored-region.top .filter-field {
|
|
113942
|
+
box-shadow: 0 -2px rgba(${borderRgbPartialColor}, 0.1);
|
|
113943
|
+
}
|
|
113944
|
+
|
|
113937
113945
|
.filter-icon {
|
|
113938
113946
|
flex-shrink: 0;
|
|
113939
113947
|
margin-left: ${smallPadding};
|
|
@@ -113959,16 +113967,31 @@ focus outline in that case.
|
|
|
113959
113967
|
.listbox {
|
|
113960
113968
|
min-height: 0;
|
|
113961
113969
|
max-height: 240px;
|
|
113970
|
+
box-sizing: border-box;
|
|
113971
|
+
padding: ${smallPadding};
|
|
113972
|
+
padding-top: calc(${smallPadding} + 2px);
|
|
113973
|
+
scroll-padding: calc(${smallPadding} + 2px) ${smallPadding} ${smallPadding};
|
|
113962
113974
|
overflow-y: auto;
|
|
113963
113975
|
outline: none;
|
|
113964
113976
|
}
|
|
113965
113977
|
|
|
113978
|
+
.anchored-region.top .filter-field + .listbox:has(.option) {
|
|
113979
|
+
padding-top: ${smallPadding};
|
|
113980
|
+
padding-bottom: calc(${smallPadding} + 2px);
|
|
113981
|
+
scroll-padding-top: ${smallPadding};
|
|
113982
|
+
scroll-padding-bottom: calc(${smallPadding} + 2px);
|
|
113983
|
+
}
|
|
113984
|
+
|
|
113985
|
+
.popup:has(.empty) .listbox {
|
|
113986
|
+
padding: 0;
|
|
113987
|
+
}
|
|
113988
|
+
|
|
113966
113989
|
.option {
|
|
113967
113990
|
display: flex;
|
|
113968
113991
|
align-items: center;
|
|
113969
113992
|
gap: ${smallPadding};
|
|
113970
113993
|
min-height: ${controlHeight};
|
|
113971
|
-
padding: 0 ${
|
|
113994
|
+
padding: 0 ${mediumPadding};
|
|
113972
113995
|
cursor: pointer;
|
|
113973
113996
|
}
|
|
113974
113997
|
|
|
@@ -113988,11 +114011,8 @@ focus outline in that case.
|
|
|
113988
114011
|
}
|
|
113989
114012
|
|
|
113990
114013
|
.keyboard-navigation .option.active {
|
|
113991
|
-
|
|
113992
|
-
|
|
113993
|
-
|
|
113994
|
-
.keyboard-navigation .option.active:hover {
|
|
113995
|
-
background: ${fillHoverSelectedColor};
|
|
114014
|
+
outline: 2px solid ${borderHoverColor};
|
|
114015
|
+
outline-offset: -2px;
|
|
113996
114016
|
}
|
|
113997
114017
|
|
|
113998
114018
|
:host(:is([disabled], :disabled)) .control-field,
|
|
@@ -114008,10 +114028,16 @@ focus outline in that case.
|
|
|
114008
114028
|
|
|
114009
114029
|
.empty {
|
|
114010
114030
|
flex-shrink: 0;
|
|
114011
|
-
|
|
114031
|
+
display: flex;
|
|
114032
|
+
align-items: center;
|
|
114033
|
+
box-sizing: border-box;
|
|
114034
|
+
height: ${controlHeight};
|
|
114035
|
+
padding: ${smallPadding} ${mediumPadding};
|
|
114012
114036
|
}
|
|
114013
114037
|
`.withBehaviors(themeBehavior(Theme.color, css `
|
|
114014
|
-
.filter-field
|
|
114038
|
+
.filter-field,
|
|
114039
|
+
.listbox,
|
|
114040
|
+
.empty {
|
|
114015
114041
|
background: rgba(255, 255, 255, 0.15);
|
|
114016
114042
|
}
|
|
114017
114043
|
`));
|
|
@@ -114339,6 +114365,8 @@ focus outline in that case.
|
|
|
114339
114365
|
if (!this.$fastController.isConnected) {
|
|
114340
114366
|
return;
|
|
114341
114367
|
}
|
|
114368
|
+
// Keep focus inside until the reopened popup can receive it.
|
|
114369
|
+
this.control.focus();
|
|
114342
114370
|
this.region.anchorElement = this.controlField;
|
|
114343
114371
|
this.updatePopupLayout();
|
|
114344
114372
|
this.resetActiveOption();
|