@ni/nimble-components 11.5.0 → 11.6.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 +51 -6
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +102 -73
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/patterns/dropdown/styles.js +1 -4
- package/dist/esm/patterns/dropdown/styles.js.map +1 -1
- package/dist/esm/patterns/dropdown/types.d.ts +6 -0
- package/dist/esm/patterns/dropdown/types.js +5 -0
- package/dist/esm/patterns/dropdown/types.js.map +1 -1
- package/dist/esm/select/index.d.ts +3 -1
- package/dist/esm/select/index.js +11 -1
- package/dist/esm/select/index.js.map +1 -1
- package/dist/esm/select/styles.js +35 -1
- package/dist/esm/select/styles.js.map +1 -1
- package/dist/esm/select/types.d.ts +5 -0
- package/dist/esm/select/types.js +6 -0
- package/dist/esm/select/types.js.map +1 -0
- package/package.json +1 -1
|
@@ -16283,10 +16283,7 @@
|
|
|
16283
16283
|
:host::before {
|
|
16284
16284
|
content: '';
|
|
16285
16285
|
position: absolute;
|
|
16286
|
-
bottom: calc(
|
|
16287
|
-
var(--ni-private-hover-indicator-width) +
|
|
16288
|
-
var(--ni-private-indicator-lines-gap)
|
|
16289
|
-
);
|
|
16286
|
+
bottom: calc(${borderWidth} + var(--ni-private-indicator-lines-gap));
|
|
16290
16287
|
width: 0px;
|
|
16291
16288
|
height: 0px;
|
|
16292
16289
|
justify-self: center;
|
|
@@ -20494,14 +20491,59 @@
|
|
|
20494
20491
|
});
|
|
20495
20492
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleNumberField());
|
|
20496
20493
|
|
|
20494
|
+
({
|
|
20495
|
+
above: SelectPosition.above,
|
|
20496
|
+
below: SelectPosition.below
|
|
20497
|
+
});
|
|
20498
|
+
const DropdownAppearance = {
|
|
20499
|
+
underline: 'underline',
|
|
20500
|
+
outline: 'outline',
|
|
20501
|
+
block: 'block'
|
|
20502
|
+
};
|
|
20503
|
+
|
|
20497
20504
|
const styles$b = css `
|
|
20498
20505
|
${styles$l}
|
|
20499
|
-
|
|
20506
|
+
`.withBehaviors(appearanceBehavior(DropdownAppearance.underline, css `
|
|
20507
|
+
.control {
|
|
20508
|
+
padding-top: ${borderWidth};
|
|
20509
|
+
padding-left: calc(${borderWidth} + ${standardPadding} / 2);
|
|
20510
|
+
padding-right: ${borderWidth};
|
|
20511
|
+
}
|
|
20512
|
+
|
|
20513
|
+
:host([disabled]) .control {
|
|
20514
|
+
border-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
20515
|
+
}
|
|
20516
|
+
`), appearanceBehavior(DropdownAppearance.outline, css `
|
|
20517
|
+
.control {
|
|
20518
|
+
border: ${borderWidth} solid rgba(${borderRgbPartialColor}, 0.3);
|
|
20519
|
+
}
|
|
20520
|
+
|
|
20521
|
+
:host(.invalid) .errortext {
|
|
20522
|
+
top: calc(${controlHeight} - ${borderWidth});
|
|
20523
|
+
}
|
|
20524
|
+
`), appearanceBehavior(DropdownAppearance.block, css `
|
|
20525
|
+
.control {
|
|
20526
|
+
background-color: rgba(${borderRgbPartialColor}, 0.1);
|
|
20527
|
+
padding-left: calc(${borderWidth} + ${standardPadding} / 2);
|
|
20528
|
+
padding-right: ${borderWidth};
|
|
20529
|
+
padding-bottom: calc(${borderWidth});
|
|
20530
|
+
border-bottom: ${borderWidth}
|
|
20531
|
+
rgba(${borderRgbPartialColor}, 0.07);
|
|
20532
|
+
}
|
|
20533
|
+
|
|
20534
|
+
:host([disabled]) .control {
|
|
20535
|
+
background-color: rgba(${borderRgbPartialColor}, 0.07);
|
|
20536
|
+
}
|
|
20537
|
+
`));
|
|
20500
20538
|
|
|
20501
20539
|
/**
|
|
20502
|
-
* A nimble-
|
|
20540
|
+
* A nimble-styled HTML select
|
|
20503
20541
|
*/
|
|
20504
20542
|
class Select extends Select$1 {
|
|
20543
|
+
constructor() {
|
|
20544
|
+
super(...arguments);
|
|
20545
|
+
this.appearance = DropdownAppearance.underline;
|
|
20546
|
+
}
|
|
20505
20547
|
// Workaround for https://github.com/microsoft/fast/issues/5123
|
|
20506
20548
|
setPositioning() {
|
|
20507
20549
|
if (!this.$fastController.isConnected) {
|
|
@@ -20529,6 +20571,9 @@
|
|
|
20529
20571
|
}
|
|
20530
20572
|
}
|
|
20531
20573
|
}
|
|
20574
|
+
__decorate([
|
|
20575
|
+
attr
|
|
20576
|
+
], Select.prototype, "appearance", void 0);
|
|
20532
20577
|
const nimbleSelect = Select.compose({
|
|
20533
20578
|
baseName: 'select',
|
|
20534
20579
|
baseClass: Select$1,
|