@ni/nimble-components 11.9.0 → 11.10.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/all-components-bundle.js +68 -54
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +195 -185
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/combobox/index.d.ts +2 -0
- package/dist/esm/combobox/index.js +5 -0
- package/dist/esm/combobox/index.js.map +1 -1
- package/dist/esm/combobox/styles.js +20 -5
- package/dist/esm/combobox/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/styles.js +39 -9
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/select/styles.js +1 -35
- package/dist/esm/select/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -16423,6 +16423,16 @@
|
|
|
16423
16423
|
}
|
|
16424
16424
|
registerIcon('icon-arrow-expander-down', IconArrowExpanderDown);
|
|
16425
16425
|
|
|
16426
|
+
({
|
|
16427
|
+
above: SelectPosition.above,
|
|
16428
|
+
below: SelectPosition.below
|
|
16429
|
+
});
|
|
16430
|
+
const DropdownAppearance = {
|
|
16431
|
+
underline: 'underline',
|
|
16432
|
+
outline: 'outline',
|
|
16433
|
+
block: 'block'
|
|
16434
|
+
};
|
|
16435
|
+
|
|
16426
16436
|
const styles$m = css `
|
|
16427
16437
|
${display('inline-flex')}
|
|
16428
16438
|
|
|
@@ -16476,10 +16486,6 @@
|
|
|
16476
16486
|
transition: width ${smallDelay} ease-in;
|
|
16477
16487
|
}
|
|
16478
16488
|
|
|
16479
|
-
:host(.invalid)::after {
|
|
16480
|
-
border-bottom-color: ${failColor};
|
|
16481
|
-
}
|
|
16482
|
-
|
|
16483
16489
|
@media (prefers-reduced-motion) {
|
|
16484
16490
|
:host::after {
|
|
16485
16491
|
transition-duration: 0s;
|
|
@@ -16502,10 +16508,9 @@
|
|
|
16502
16508
|
display: flex;
|
|
16503
16509
|
min-height: 100%;
|
|
16504
16510
|
width: 100%;
|
|
16505
|
-
border
|
|
16511
|
+
border: 0px solid rgba(${borderRgbPartialColor}, 0.3);
|
|
16506
16512
|
background-color: transparent;
|
|
16507
|
-
padding
|
|
16508
|
-
padding-bottom: 1px;
|
|
16513
|
+
padding: ${borderWidth};
|
|
16509
16514
|
}
|
|
16510
16515
|
|
|
16511
16516
|
:host(.open:not(:hover)) .control {
|
|
@@ -16568,6 +16573,12 @@
|
|
|
16568
16573
|
white-space: nowrap;
|
|
16569
16574
|
text-overflow: ellipsis;
|
|
16570
16575
|
overflow: hidden;
|
|
16576
|
+
padding: 0px;
|
|
16577
|
+
padding-left: calc(${standardPadding} / 2);
|
|
16578
|
+
}
|
|
16579
|
+
|
|
16580
|
+
.selected-value[disabled]::placeholder {
|
|
16581
|
+
color: ${bodyDisabledFontColor};
|
|
16571
16582
|
}
|
|
16572
16583
|
|
|
16573
16584
|
.indicator {
|
|
@@ -16607,7 +16618,34 @@
|
|
|
16607
16618
|
::slotted(option) {
|
|
16608
16619
|
flex: none;
|
|
16609
16620
|
}
|
|
16610
|
-
|
|
16621
|
+
`.withBehaviors(appearanceBehavior(DropdownAppearance.underline, css `
|
|
16622
|
+
.control {
|
|
16623
|
+
border-bottom-width: ${borderWidth};
|
|
16624
|
+
padding-bottom: 0;
|
|
16625
|
+
}
|
|
16626
|
+
|
|
16627
|
+
:host([disabled]) .control {
|
|
16628
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
16629
|
+
}
|
|
16630
|
+
`), appearanceBehavior(DropdownAppearance.outline, css `
|
|
16631
|
+
.control {
|
|
16632
|
+
border-width: ${borderWidth};
|
|
16633
|
+
padding: 0;
|
|
16634
|
+
}
|
|
16635
|
+
`), appearanceBehavior(DropdownAppearance.block, css `
|
|
16636
|
+
.control {
|
|
16637
|
+
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
16638
|
+
}
|
|
16639
|
+
|
|
16640
|
+
.control:focus-within {
|
|
16641
|
+
border-bottom-width: ${borderWidth};
|
|
16642
|
+
padding-bottom: 0;
|
|
16643
|
+
}
|
|
16644
|
+
|
|
16645
|
+
:host([disabled]) .control {
|
|
16646
|
+
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
16647
|
+
}
|
|
16648
|
+
`));
|
|
16611
16649
|
|
|
16612
16650
|
const styles$l = css `
|
|
16613
16651
|
.error-icon {
|
|
@@ -16654,6 +16692,9 @@
|
|
|
16654
16692
|
:host {
|
|
16655
16693
|
--ni-private-hover-bottom-border-width: 2px;
|
|
16656
16694
|
--ni-private-bottom-border-width: 1px;
|
|
16695
|
+
--ni-private-height-within-border: calc(
|
|
16696
|
+
${controlHeight} - 2 * ${borderWidth}
|
|
16697
|
+
);
|
|
16657
16698
|
}
|
|
16658
16699
|
|
|
16659
16700
|
:host([disabled]) *,
|
|
@@ -16662,6 +16703,10 @@
|
|
|
16662
16703
|
color: ${bodyDisabledFontColor};
|
|
16663
16704
|
}
|
|
16664
16705
|
|
|
16706
|
+
:host(.invalid)::after {
|
|
16707
|
+
border-bottom-color: ${failColor};
|
|
16708
|
+
}
|
|
16709
|
+
|
|
16665
16710
|
.control {
|
|
16666
16711
|
bottom-border-width: var(--ni-private-bottom-border-width);
|
|
16667
16712
|
}
|
|
@@ -16678,8 +16723,9 @@
|
|
|
16678
16723
|
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
16679
16724
|
}
|
|
16680
16725
|
|
|
16681
|
-
:host(.invalid[disabled]) .control
|
|
16682
|
-
|
|
16726
|
+
:host(.invalid[disabled]) .control,
|
|
16727
|
+
:host(.open.invalid) .control {
|
|
16728
|
+
border-bottom-color: ${failColor};
|
|
16683
16729
|
}
|
|
16684
16730
|
|
|
16685
16731
|
.selected-value {
|
|
@@ -16690,7 +16736,7 @@
|
|
|
16690
16736
|
margin: auto 0;
|
|
16691
16737
|
width: 100%;
|
|
16692
16738
|
font-size: inherit;
|
|
16693
|
-
|
|
16739
|
+
height: var(--ni-private-height-within-border);
|
|
16694
16740
|
}
|
|
16695
16741
|
|
|
16696
16742
|
.selected-value:hover,
|
|
@@ -16731,7 +16777,12 @@
|
|
|
16731
16777
|
:host(:empty) .listbox {
|
|
16732
16778
|
display: none;
|
|
16733
16779
|
}
|
|
16734
|
-
|
|
16780
|
+
`.withBehaviors(appearanceBehavior(DropdownAppearance.block, css `
|
|
16781
|
+
:host(.invalid) .control {
|
|
16782
|
+
border-bottom-width: ${borderWidth};
|
|
16783
|
+
padding-bottom: 0;
|
|
16784
|
+
}
|
|
16785
|
+
`));
|
|
16735
16786
|
|
|
16736
16787
|
/**
|
|
16737
16788
|
* A nimble-styed HTML combobox
|
|
@@ -16739,6 +16790,7 @@
|
|
|
16739
16790
|
class Combobox extends Combobox$1 {
|
|
16740
16791
|
constructor() {
|
|
16741
16792
|
super(...arguments);
|
|
16793
|
+
this.appearance = DropdownAppearance.underline;
|
|
16742
16794
|
this.valueUpdatedByInput = false;
|
|
16743
16795
|
}
|
|
16744
16796
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
@@ -16871,6 +16923,9 @@
|
|
|
16871
16923
|
}
|
|
16872
16924
|
}
|
|
16873
16925
|
}
|
|
16926
|
+
__decorate([
|
|
16927
|
+
attr
|
|
16928
|
+
], Combobox.prototype, "appearance", void 0);
|
|
16874
16929
|
__decorate([
|
|
16875
16930
|
observable
|
|
16876
16931
|
], Combobox.prototype, "dropdownButton", void 0);
|
|
@@ -20820,50 +20875,9 @@
|
|
|
20820
20875
|
});
|
|
20821
20876
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
|
|
20822
20877
|
|
|
20823
|
-
({
|
|
20824
|
-
above: SelectPosition.above,
|
|
20825
|
-
below: SelectPosition.below
|
|
20826
|
-
});
|
|
20827
|
-
const DropdownAppearance = {
|
|
20828
|
-
underline: 'underline',
|
|
20829
|
-
outline: 'outline',
|
|
20830
|
-
block: 'block'
|
|
20831
|
-
};
|
|
20832
|
-
|
|
20833
20878
|
const styles$b = css `
|
|
20834
20879
|
${styles$m}
|
|
20835
|
-
|
|
20836
|
-
.control {
|
|
20837
|
-
padding-top: ${borderWidth};
|
|
20838
|
-
padding-left: calc(${borderWidth} + ${standardPadding} / 2);
|
|
20839
|
-
padding-right: ${borderWidth};
|
|
20840
|
-
}
|
|
20841
|
-
|
|
20842
|
-
:host([disabled]) .control {
|
|
20843
|
-
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
20844
|
-
}
|
|
20845
|
-
`), appearanceBehavior(DropdownAppearance.outline, css `
|
|
20846
|
-
.control {
|
|
20847
|
-
border: ${borderWidth} solid rgba(${borderRgbPartialColor}, 0.3);
|
|
20848
|
-
}
|
|
20849
|
-
|
|
20850
|
-
:host(.invalid) .errortext {
|
|
20851
|
-
top: calc(${controlHeight} - ${borderWidth});
|
|
20852
|
-
}
|
|
20853
|
-
`), appearanceBehavior(DropdownAppearance.block, css `
|
|
20854
|
-
.control {
|
|
20855
|
-
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
20856
|
-
padding-left: calc(${borderWidth} + ${standardPadding} / 2);
|
|
20857
|
-
padding-right: ${borderWidth};
|
|
20858
|
-
padding-bottom: calc(${borderWidth});
|
|
20859
|
-
border-bottom: ${borderWidth}
|
|
20860
|
-
rgba(${borderRgbPartialColor}, 0.07);
|
|
20861
|
-
}
|
|
20862
|
-
|
|
20863
|
-
:host([disabled]) .control {
|
|
20864
|
-
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
20865
|
-
}
|
|
20866
|
-
`));
|
|
20880
|
+
`;
|
|
20867
20881
|
|
|
20868
20882
|
/**
|
|
20869
20883
|
* A nimble-styled HTML select
|