@ni/nimble-components 7.4.3 → 7.7.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 +61 -12
- package/dist/all-components-bundle.js.map +1 -1
- package/dist/all-components-bundle.min.js +5 -5
- package/dist/all-components-bundle.min.js.map +1 -1
- package/dist/esm/checkbox/index.js +3 -2
- package/dist/esm/checkbox/index.js.map +1 -1
- package/dist/esm/checkbox/styles.js +26 -4
- package/dist/esm/checkbox/styles.js.map +1 -1
- package/dist/esm/drawer/index.d.ts +6 -0
- package/dist/esm/drawer/index.js +11 -1
- package/dist/esm/drawer/index.js.map +1 -1
- package/dist/esm/nimble-components/src/drawer/index.d.ts +6 -0
- package/dist/esm/text-field/index.js +5 -2
- package/dist/esm/text-field/index.js.map +1 -1
- package/dist/esm/text-field/styles.js +17 -4
- package/dist/esm/text-field/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -13675,22 +13675,44 @@
|
|
|
13675
13675
|
color: ${bodyDisabledFontColor};
|
|
13676
13676
|
}
|
|
13677
13677
|
|
|
13678
|
+
slot[name='checked-indicator'],
|
|
13679
|
+
slot[name='indeterminate-indicator'] {
|
|
13680
|
+
display: none;
|
|
13681
|
+
}
|
|
13682
|
+
|
|
13678
13683
|
slot[name='checked-indicator'] svg {
|
|
13679
13684
|
height: ${iconSize};
|
|
13680
13685
|
width: ${iconSize};
|
|
13681
13686
|
overflow: visible;
|
|
13682
13687
|
}
|
|
13683
13688
|
|
|
13689
|
+
:host(.checked:not(.indeterminate)) slot[name='checked-indicator'] {
|
|
13690
|
+
display: contents;
|
|
13691
|
+
}
|
|
13692
|
+
|
|
13684
13693
|
slot[name='checked-indicator'] path {
|
|
13685
13694
|
fill: ${borderColor};
|
|
13686
|
-
opacity: 0;
|
|
13687
13695
|
}
|
|
13688
13696
|
|
|
13689
|
-
:host([
|
|
13690
|
-
|
|
13697
|
+
:host([disabled]) slot[name='checked-indicator'] path {
|
|
13698
|
+
fill: rgba(${borderRgbPartialColor}, 0.3);
|
|
13691
13699
|
}
|
|
13692
13700
|
|
|
13693
|
-
|
|
13701
|
+
slot[name='indeterminate-indicator'] svg {
|
|
13702
|
+
height: ${iconSize};
|
|
13703
|
+
width: ${iconSize};
|
|
13704
|
+
overflow: visible;
|
|
13705
|
+
}
|
|
13706
|
+
|
|
13707
|
+
:host(.indeterminate) slot[name='indeterminate-indicator'] {
|
|
13708
|
+
display: contents;
|
|
13709
|
+
}
|
|
13710
|
+
|
|
13711
|
+
slot[name='indeterminate-indicator'] path {
|
|
13712
|
+
fill: ${borderColor};
|
|
13713
|
+
}
|
|
13714
|
+
|
|
13715
|
+
:host([disabled]) slot[name='indeterminate-indicator'] path {
|
|
13694
13716
|
fill: rgba(${borderRgbPartialColor}, 0.3);
|
|
13695
13717
|
}
|
|
13696
13718
|
`;
|
|
@@ -13705,7 +13727,8 @@
|
|
|
13705
13727
|
baseClass: Checkbox$1,
|
|
13706
13728
|
template: checkboxTemplate,
|
|
13707
13729
|
styles: styles$h,
|
|
13708
|
-
checkedIndicator: check16X16.data
|
|
13730
|
+
checkedIndicator: check16X16.data,
|
|
13731
|
+
indeterminateIndicator: minus16X16.data
|
|
13709
13732
|
});
|
|
13710
13733
|
DesignSystem.getOrCreate().withPrefix('nimble').register(nimbleCheckbox());
|
|
13711
13734
|
|
|
@@ -14932,6 +14955,7 @@
|
|
|
14932
14955
|
this.propertiesToWatch = ['hidden', 'location', 'state'];
|
|
14933
14956
|
this.animationDurationMilliseconds = animationDurationWhenDisabledMilliseconds;
|
|
14934
14957
|
}
|
|
14958
|
+
/** @internal */
|
|
14935
14959
|
connectedCallback() {
|
|
14936
14960
|
// disable trapFocus before super.connectedCallback as FAST Dialog will immediately queue work to
|
|
14937
14961
|
// change focus if it's true before connectedCallback
|
|
@@ -14949,6 +14973,7 @@
|
|
|
14949
14973
|
this.propertyChangeSubscriber = subscriber;
|
|
14950
14974
|
this.propertyChangeNotifier = notifier;
|
|
14951
14975
|
}
|
|
14976
|
+
/** @internal */
|
|
14952
14977
|
disconnectedCallback() {
|
|
14953
14978
|
super.disconnectedCallback();
|
|
14954
14979
|
this.cancelCurrentAnimation();
|
|
@@ -14970,8 +14995,16 @@
|
|
|
14970
14995
|
// Not calling super.hide() as that will immediately hide the drawer, whereas 'Closing' state will animate
|
|
14971
14996
|
this.state = DrawerState.Closing;
|
|
14972
14997
|
}
|
|
14998
|
+
/**
|
|
14999
|
+
* Handler for overlay clicks (user-initiated dismiss requests) only.
|
|
15000
|
+
* @internal
|
|
15001
|
+
*/
|
|
14973
15002
|
dismiss() {
|
|
14974
|
-
|
|
15003
|
+
const shouldDismiss = this.$emit('cancel', {},
|
|
15004
|
+
// Aligned with the configuration of HTMLDialogElement cancel event:
|
|
15005
|
+
// https://developer.mozilla.org/en-US/docs/Web/API/HTMLDialogElement/cancel_event
|
|
15006
|
+
{ bubbles: false, cancelable: true, composed: false });
|
|
15007
|
+
if (shouldDismiss && !this.preventDismiss) {
|
|
14975
15008
|
super.dismiss();
|
|
14976
15009
|
this.hide();
|
|
14977
15010
|
}
|
|
@@ -17931,25 +17964,29 @@
|
|
|
17931
17964
|
}
|
|
17932
17965
|
|
|
17933
17966
|
[part='end'] {
|
|
17967
|
+
display: contents;
|
|
17968
|
+
}
|
|
17969
|
+
|
|
17970
|
+
.error-content {
|
|
17934
17971
|
display: none;
|
|
17935
17972
|
}
|
|
17936
17973
|
|
|
17937
|
-
:host(.invalid)
|
|
17974
|
+
:host(.invalid) .error-content {
|
|
17938
17975
|
display: contents;
|
|
17939
17976
|
}
|
|
17940
17977
|
|
|
17941
|
-
:host(.invalid)
|
|
17978
|
+
:host(.invalid) .error-content svg {
|
|
17942
17979
|
height: ${iconSize};
|
|
17943
17980
|
width: ${iconSize};
|
|
17944
17981
|
padding-right: 8px;
|
|
17945
17982
|
flex: none;
|
|
17946
17983
|
}
|
|
17947
17984
|
|
|
17948
|
-
:host(.invalid)
|
|
17985
|
+
:host(.invalid) .error-content path {
|
|
17949
17986
|
fill: ${failColor};
|
|
17950
17987
|
}
|
|
17951
17988
|
|
|
17952
|
-
:host([disabled])
|
|
17989
|
+
:host([disabled]) .error-content path {
|
|
17953
17990
|
fill: ${bodyDisabledFontColor};
|
|
17954
17991
|
}
|
|
17955
17992
|
|
|
@@ -17980,6 +18017,15 @@
|
|
|
17980
18017
|
:host([disabled]) .errortext {
|
|
17981
18018
|
color: ${bodyDisabledFontColor};
|
|
17982
18019
|
}
|
|
18020
|
+
|
|
18021
|
+
[part='actions'] {
|
|
18022
|
+
display: contents;
|
|
18023
|
+
}
|
|
18024
|
+
|
|
18025
|
+
slot[name='actions']::slotted(*) {
|
|
18026
|
+
margin-right: 8px;
|
|
18027
|
+
${controlHeight.cssCustomProperty}: 24px;
|
|
18028
|
+
}
|
|
17983
18029
|
`.withBehaviors(appearanceBehavior(TextFieldAppearance.Underline, css `
|
|
17984
18030
|
.root {
|
|
17985
18031
|
--ni-private-bottom-border-width: 1px;
|
|
@@ -18086,10 +18132,13 @@
|
|
|
18086
18132
|
delegatesFocus: true
|
|
18087
18133
|
},
|
|
18088
18134
|
end: html `
|
|
18089
|
-
|
|
18135
|
+
<span class="error-content">${exclamationMark16X16.data}</span>
|
|
18136
|
+
<span part="actions">
|
|
18137
|
+
<slot name="actions"></slot>
|
|
18138
|
+
</span>
|
|
18090
18139
|
<div
|
|
18091
18140
|
id="errortext"
|
|
18092
|
-
class="errortext"
|
|
18141
|
+
class="errortext error-content"
|
|
18093
18142
|
title="${x => x.errorText}"
|
|
18094
18143
|
aria-live="polite"
|
|
18095
18144
|
>
|