@fluentui/web-components 3.0.0-beta.73 → 3.0.0-beta.75
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/CHANGELOG.md +20 -2
- package/dist/dts/text-input/text-input.d.ts +16 -6
- package/dist/esm/accordion/accordion.js.map +1 -1
- package/dist/esm/anchor-button/anchor-button.js.map +1 -1
- package/dist/esm/avatar/avatar.js.map +1 -1
- package/dist/esm/button/button.js.map +1 -1
- package/dist/esm/checkbox/checkbox.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.js.map +1 -1
- package/dist/esm/dialog/dialog.js.map +1 -1
- package/dist/esm/divider/divider.js.map +1 -1
- package/dist/esm/drawer/drawer.js.map +1 -1
- package/dist/esm/field/field.js.map +1 -1
- package/dist/esm/form-associated/form-associated.js.map +1 -1
- package/dist/esm/helpers.tests.js.map +1 -1
- package/dist/esm/menu/menu.js.map +1 -1
- package/dist/esm/menu-item/menu-item.js.map +1 -1
- package/dist/esm/menu-list/menu-list.js.map +1 -1
- package/dist/esm/radio/radio.js.map +1 -1
- package/dist/esm/radio-group/radio-group.js.map +1 -1
- package/dist/esm/rating-display/rating-display.js.map +1 -1
- package/dist/esm/slider/slider-utilities.js.map +1 -1
- package/dist/esm/slider/slider.js.map +1 -1
- package/dist/esm/tab/tab.js.map +1 -1
- package/dist/esm/tablist/tablist.js.map +1 -1
- package/dist/esm/tabs/tabs.js.map +1 -1
- package/dist/esm/text/text.js.map +1 -1
- package/dist/esm/text-input/text-input.js +17 -9
- package/dist/esm/text-input/text-input.js.map +1 -1
- package/dist/esm/textarea/textarea.js.map +1 -1
- package/dist/esm/theme/set-theme.js.map +1 -1
- package/dist/esm/toggle-button/toggle-button.js.map +1 -1
- package/dist/esm/tooltip/tooltip.js.map +1 -1
- package/dist/esm/tooltip/tooltip.styles.js +2 -1
- package/dist/esm/tooltip/tooltip.styles.js.map +1 -1
- package/dist/esm/utils/apply-mixins.js.map +1 -1
- package/dist/esm/utils/behaviors/match-media-stylesheet-behavior.js.map +1 -1
- package/dist/esm/utils/benchmark-wrapper.js.map +1 -1
- package/dist/esm/utils/element-internals.js.map +1 -1
- package/dist/esm/utils/get-initials.js.map +1 -1
- package/dist/esm/utils/root-active-element.js.map +1 -1
- package/dist/esm/utils/template-helpers.js.map +1 -1
- package/dist/web-components.d.ts +16 -6
- package/dist/web-components.js +18 -10
- package/dist/web-components.min.js +69 -69
- package/package.json +2 -2
package/dist/web-components.js
CHANGED
|
@@ -11751,12 +11751,6 @@ class BaseTextInput extends FASTElement {
|
|
|
11751
11751
|
constructor() {
|
|
11752
11752
|
super(...arguments);
|
|
11753
11753
|
this.type = TextInputType.text;
|
|
11754
|
-
/**
|
|
11755
|
-
* The current value of the input.
|
|
11756
|
-
*
|
|
11757
|
-
* @internal
|
|
11758
|
-
*/
|
|
11759
|
-
this._value = this.initialValue;
|
|
11760
11754
|
/**
|
|
11761
11755
|
* Indicates that the value has been changed by the user.
|
|
11762
11756
|
*
|
|
@@ -11770,6 +11764,17 @@ class BaseTextInput extends FASTElement {
|
|
|
11770
11764
|
*/
|
|
11771
11765
|
this.elementInternals = this.attachInternals();
|
|
11772
11766
|
}
|
|
11767
|
+
/**
|
|
11768
|
+
* Tracks the current value of the input.
|
|
11769
|
+
*
|
|
11770
|
+
* @param prev - the previous value
|
|
11771
|
+
* @param next - the next value
|
|
11772
|
+
*
|
|
11773
|
+
* @internal
|
|
11774
|
+
*/
|
|
11775
|
+
currentValueChanged(prev, next) {
|
|
11776
|
+
this.value = next;
|
|
11777
|
+
}
|
|
11773
11778
|
/**
|
|
11774
11779
|
* Updates the control label visibility based on the presence of default slotted content.
|
|
11775
11780
|
*
|
|
@@ -11839,12 +11844,12 @@ class BaseTextInput extends FASTElement {
|
|
|
11839
11844
|
*/
|
|
11840
11845
|
get value() {
|
|
11841
11846
|
Observable.track(this, "value");
|
|
11842
|
-
return this.
|
|
11847
|
+
return this.currentValue;
|
|
11843
11848
|
}
|
|
11844
11849
|
set value(value) {
|
|
11845
|
-
this.
|
|
11850
|
+
this.currentValue = value;
|
|
11846
11851
|
if (this.$fastController.isConnected) {
|
|
11847
|
-
this.control.value = value;
|
|
11852
|
+
this.control.value = value ?? "";
|
|
11848
11853
|
this.setFormValue(value);
|
|
11849
11854
|
this.setValidity();
|
|
11850
11855
|
Observable.notify(this, "value");
|
|
@@ -12064,6 +12069,9 @@ __decorateClass$3([attr], BaseTextInput.prototype, "autocomplete", 2);
|
|
|
12064
12069
|
__decorateClass$3([attr({
|
|
12065
12070
|
mode: "boolean"
|
|
12066
12071
|
})], BaseTextInput.prototype, "autofocus", 2);
|
|
12072
|
+
__decorateClass$3([attr({
|
|
12073
|
+
attribute: "current-value"
|
|
12074
|
+
})], BaseTextInput.prototype, "currentValue", 2);
|
|
12067
12075
|
__decorateClass$3([observable], BaseTextInput.prototype, "defaultSlottedNodes", 2);
|
|
12068
12076
|
__decorateClass$3([attr], BaseTextInput.prototype, "dirname", 2);
|
|
12069
12077
|
__decorateClass$3([attr({
|
|
@@ -12561,7 +12569,7 @@ const TooltipPositioningOption = {
|
|
|
12561
12569
|
const styles = css`
|
|
12562
12570
|
${display("inline-flex")}
|
|
12563
12571
|
|
|
12564
|
-
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption
|
|
12572
|
+
:host(:not(:popover-open)){display:none}:host{--position-area:block-start;--position-try-options:flip-block;--block-offset:${spacingVerticalXS};--inline-offset:${spacingHorizontalXS};background:${colorNeutralBackground1};border-radius:${borderRadiusMedium};border:1px solid ${colorTransparentStroke};box-sizing:border-box;color:${colorNeutralForeground1};display:inline-flex;filter:drop-shadow(0 0 2px ${colorNeutralShadowAmbient}) drop-shadow(0 4px 8px ${colorNeutralShadowKey});font-family:${fontFamilyBase};font-size:${fontSizeBase200};inset:unset;line-height:${lineHeightBase200};margin:unset;max-width:240px;overflow:visible;padding:4px ${spacingHorizontalMNudge} 6px;position:absolute;position-area:var(--position-area);position-try-options:var(--position-try-options);width:auto;z-index:1}@supports (inset-area:block-start){:host{inset-area:var(--position-area);position-try-fallbacks:var(--position-try-options)}}:host(:is([positioning^='above'],[positioning^='below'],:not([positioning]))){margin-block:var(--block-offset)}:host(:is([positioning^='before'],[positioning^='after'])){margin-inline:var(--inline-offset);--position-try-options:flip-inline}:host([positioning='above-start']){--position-area:${TooltipPositioningOption["above-start"]}}:host([positioning='above']){--position-area:${TooltipPositioningOption.above}}:host([positioning='above-end']){--position-area:${TooltipPositioningOption["above-end"]}}:host([positioning='below-start']){--position-area:${TooltipPositioningOption["below-start"]}}:host([positioning='below']){--position-area:${TooltipPositioningOption.below}}:host([positioning='below-end']){--position-area:${TooltipPositioningOption["below-end"]}}:host([positioning='before-top']){--position-area:${TooltipPositioningOption["before-top"]}}:host([positioning='before']){--position-area:${TooltipPositioningOption.before}}:host([positioning='before-bottom']){--position-area:${TooltipPositioningOption["before-bottom"]}}:host([positioning='after-top']){--position-area:${TooltipPositioningOption["after-top"]}}:host([positioning='after']){--position-area:${TooltipPositioningOption.after}}:host([positioning='after-bottom']){--position-area:${TooltipPositioningOption["after-bottom"]}}`;
|
|
12565
12573
|
|
|
12566
12574
|
const template = html`<template popover aria-hidden="true"><slot></slot></template>`;
|
|
12567
12575
|
|