@ni/spright-components 4.1.5 → 4.1.7
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.
|
@@ -26334,6 +26334,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26334
26334
|
border-bottom-color: ${borderHoverColor};
|
|
26335
26335
|
}
|
|
26336
26336
|
|
|
26337
|
+
:host([readonly]) .root,
|
|
26337
26338
|
:host([disabled]) .root {
|
|
26338
26339
|
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
26339
26340
|
}
|
|
@@ -26375,6 +26376,7 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26375
26376
|
width: 100%;
|
|
26376
26377
|
}
|
|
26377
26378
|
|
|
26379
|
+
:host([readonly]:hover) .root::after,
|
|
26378
26380
|
:host([disabled]:hover) .root::after {
|
|
26379
26381
|
width: 0px;
|
|
26380
26382
|
}
|
|
@@ -26455,11 +26457,20 @@ so this becomes the fallback color for the slot */ ''}
|
|
|
26455
26457
|
}
|
|
26456
26458
|
|
|
26457
26459
|
:host(:hover) .root {
|
|
26460
|
+
border-bottom-width: ${borderWidth};
|
|
26458
26461
|
padding-bottom: 0;
|
|
26459
26462
|
}
|
|
26460
26463
|
|
|
26464
|
+
:host([readonly]) .root,
|
|
26461
26465
|
:host([disabled]) .root {
|
|
26462
26466
|
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
26467
|
+
border-color: transparent;
|
|
26468
|
+
}
|
|
26469
|
+
|
|
26470
|
+
:host([error-visible][readonly]) .root,
|
|
26471
|
+
:host([error-visible][disabled]) .root {
|
|
26472
|
+
padding-bottom: 0;
|
|
26473
|
+
border-bottom-color: ${failColor};
|
|
26463
26474
|
}
|
|
26464
26475
|
`), appearanceBehavior(NumberFieldAppearance.outline, css `
|
|
26465
26476
|
.root {
|
|
@@ -60601,6 +60612,9 @@ img.ProseMirror-separator {
|
|
|
60601
60612
|
this.availableViewportHeight = 0;
|
|
60602
60613
|
this._value = '';
|
|
60603
60614
|
this.forcedPosition = false;
|
|
60615
|
+
this.selectedOptionObserver = new MutationObserver(() => {
|
|
60616
|
+
this.updateDisplayValue();
|
|
60617
|
+
});
|
|
60604
60618
|
}
|
|
60605
60619
|
/**
|
|
60606
60620
|
* The component is collapsible when in single-selection mode with no size attribute.
|
|
@@ -60626,6 +60640,11 @@ img.ProseMirror-separator {
|
|
|
60626
60640
|
if (this.open) {
|
|
60627
60641
|
this.initializeOpenState();
|
|
60628
60642
|
}
|
|
60643
|
+
this.observeSelectedOptionTextContent();
|
|
60644
|
+
}
|
|
60645
|
+
disconnectedCallback() {
|
|
60646
|
+
super.disconnectedCallback();
|
|
60647
|
+
this.selectedOptionObserver?.disconnect();
|
|
60629
60648
|
}
|
|
60630
60649
|
get value() {
|
|
60631
60650
|
Observable.track(this, 'value');
|
|
@@ -61474,6 +61493,7 @@ img.ProseMirror-separator {
|
|
|
61474
61493
|
updateValue(shouldEmit) {
|
|
61475
61494
|
if (this.$fastController.isConnected) {
|
|
61476
61495
|
this.value = this.firstSelectedOption?.value ?? '';
|
|
61496
|
+
this.observeSelectedOptionTextContent();
|
|
61477
61497
|
}
|
|
61478
61498
|
if (shouldEmit) {
|
|
61479
61499
|
this.$emit('input');
|
|
@@ -61524,6 +61544,20 @@ img.ProseMirror-separator {
|
|
|
61524
61544
|
this.setPositioning();
|
|
61525
61545
|
this.focusAndScrollOptionIntoView();
|
|
61526
61546
|
}
|
|
61547
|
+
observeSelectedOptionTextContent() {
|
|
61548
|
+
this.selectedOptionObserver?.disconnect();
|
|
61549
|
+
if (this.selectedIndex === -1) {
|
|
61550
|
+
return;
|
|
61551
|
+
}
|
|
61552
|
+
const selectedOption = this.firstSelectedOption;
|
|
61553
|
+
if (selectedOption) {
|
|
61554
|
+
this.selectedOptionObserver?.observe(selectedOption, {
|
|
61555
|
+
characterData: true,
|
|
61556
|
+
subtree: true,
|
|
61557
|
+
childList: true
|
|
61558
|
+
});
|
|
61559
|
+
}
|
|
61560
|
+
}
|
|
61527
61561
|
}
|
|
61528
61562
|
__decorate$1([
|
|
61529
61563
|
attr
|