@fluentui/web-components 3.0.0-beta.80 → 3.0.0-beta.82

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.
@@ -5278,7 +5278,7 @@ applyMixins(AnchorButton, StartEnd);
5278
5278
  const baseButtonStyles = css`
5279
5279
  ${display("inline-flex")}
5280
5280
 
5281
- :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}:is([slot='start'],::slotted([slot='start'])){margin-inline-end:var(--icon-spacing)}:is([slot='end'],::slotted([slot='end'])){flex-shrink:0}:host(:not(${iconOnlyState})) :is([slot='end'],:host(:not(${iconOnlyState}))::slotted([slot='end'])){margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
5281
+ :host{--icon-spacing:${spacingHorizontalSNudge};position:relative;contain:layout style;vertical-align:middle;align-items:center;box-sizing:border-box;justify-content:center;text-align:center;text-decoration-line:none;margin:0;min-height:32px;outline-style:none;background-color:${colorNeutralBackground1};color:${colorNeutralForeground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};padding:0 ${spacingHorizontalM};min-width:96px;border-radius:${borderRadiusMedium};font-size:${fontSizeBase300};font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};line-height:${lineHeightBase300};transition-duration:${durationFaster};transition-property:background,border,color;transition-timing-function:${curveEasyEase};cursor:pointer;user-select:none}.content{display:inherit}:host(:hover){background-color:${colorNeutralBackground1Hover};color:${colorNeutralForeground1Hover};border-color:${colorNeutralStroke1Hover}}:host(:hover:active){background-color:${colorNeutralBackground1Pressed};border-color:${colorNeutralStroke1Pressed};color:${colorNeutralForeground1Pressed};outline-style:none}:host(:focus-visible){border-color:${colorTransparentStroke};outline:${strokeWidthThick} solid ${colorTransparentStroke};box-shadow:${shadow4},0 0 0 2px ${colorStrokeFocus2}}@media screen and (prefers-reduced-motion:reduce){:host{transition-duration:0.01ms}}::slotted(svg){font-size:20px;height:20px;width:20px;fill:currentColor}::slotted([slot='start']){margin-inline-end:var(--icon-spacing)}::slotted([slot='end']){flex-shrink:0;margin-inline-start:var(--icon-spacing)}:host(${iconOnlyState}){min-width:32px;max-width:32px}:host(${smallState}){--icon-spacing:${spacingHorizontalXS};min-height:24px;min-width:64px;padding:0 ${spacingHorizontalS};border-radius:${borderRadiusSmall};font-size:${fontSizeBase200};line-height:${lineHeightBase200};font-weight:${fontWeightRegular}}:host(${smallState}${iconOnlyState}){min-width:24px;max-width:24px}:host(${largeState}){min-height:40px;border-radius:${borderRadiusLarge};padding:0 ${spacingHorizontalL};font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState}${iconOnlyState}){min-width:40px;max-width:40px}:host(${largeState}) ::slotted(svg){font-size:24px;height:24px;width:24px}:host(:is(${circularState},${circularState}:focus-visible)){border-radius:${borderRadiusCircular}}:host(:is(${squareState},${squareState}:focus-visible)){border-radius:${borderRadiusNone}}:host(${primaryState}){background-color:${colorBrandBackground};color:${colorNeutralForegroundOnBrand};border-color:transparent}:host(${primaryState}:hover){background-color:${colorBrandBackgroundHover}}:host(${primaryState}:is(:hover,:hover:active)){border-color:transparent;color:${colorNeutralForegroundOnBrand}}:host(${primaryState}:hover:active){background-color:${colorBrandBackgroundPressed}}:host(${primaryState}:focus-visible){border-color:${colorNeutralForegroundOnBrand};box-shadow:${shadow2},0 0 0 2px ${colorStrokeFocus2}}:host(${outlineState}){background-color:${colorTransparentBackground}}:host(${outlineState}:hover){background-color:${colorTransparentBackgroundHover}}:host(${outlineState}:hover:active){background-color:${colorTransparentBackgroundPressed}}:host(${subtleState}){background-color:${colorSubtleBackground};color:${colorNeutralForeground2};border-color:transparent}:host(${subtleState}:hover){background-color:${colorSubtleBackgroundHover};color:${colorNeutralForeground2Hover};border-color:transparent}:host(${subtleState}:hover:active){background-color:${colorSubtleBackgroundPressed};color:${colorNeutralForeground2Pressed};border-color:transparent}:host(${subtleState}:hover) ::slotted(svg){fill:${colorNeutralForeground2BrandHover}}:host(${subtleState}:hover:active) ::slotted(svg){fill:${colorNeutralForeground2BrandPressed}}:host(${transparentState}){background-color:${colorTransparentBackground};color:${colorNeutralForeground2}}:host(${transparentState}:hover){background-color:${colorTransparentBackgroundHover};color:${colorNeutralForeground2BrandHover}}:host(${transparentState}:hover:active){background-color:${colorTransparentBackgroundPressed};color:${colorNeutralForeground2BrandPressed}}:host(:is(${transparentState},${transparentState}:is(:hover,:active))){border-color:transparent}`;
5282
5282
  const styles$C = css`
5283
5283
  ${baseButtonStyles}
5284
5284
 
@@ -7688,7 +7688,7 @@ class BaseDropdown extends FASTElement {
7688
7688
  return true;
7689
7689
  }
7690
7690
  const optionIndex = this.isCombobox ? this.enabledOptions.findIndex(x => x.text === this.control.value) : this.enabledOptions.indexOf(e.target);
7691
- this.selectOption(optionIndex);
7691
+ this.selectOption(optionIndex, true);
7692
7692
  return true;
7693
7693
  }
7694
7694
  /**
@@ -7712,15 +7712,18 @@ class BaseDropdown extends FASTElement {
7712
7712
  this.listbox.showPopover();
7713
7713
  return true;
7714
7714
  }
7715
- if (isDropdownOption(target) && !this.multiple) {
7715
+ if (isDropdownOption(target)) {
7716
7716
  if (target.disabled) {
7717
7717
  return;
7718
7718
  }
7719
- if (this.isCombobox) {
7720
- this.control.value = target.text;
7721
- this.updateFreeformOption();
7719
+ this.selectOption(this.enabledOptions.indexOf(target), true);
7720
+ if (!this.multiple) {
7721
+ if (this.isCombobox) {
7722
+ this.control.value = target.text;
7723
+ this.updateFreeformOption();
7724
+ }
7725
+ this.listbox.hidePopover();
7722
7726
  }
7723
- this.listbox.hidePopover();
7724
7727
  }
7725
7728
  return true;
7726
7729
  }
@@ -7845,7 +7848,7 @@ class BaseDropdown extends FASTElement {
7845
7848
  case "Tab":
7846
7849
  {
7847
7850
  if (this.open) {
7848
- this.selectOption(this.activeIndex);
7851
+ this.selectOption(this.activeIndex, true);
7849
7852
  if (this.multiple) {
7850
7853
  break;
7851
7854
  }
@@ -7898,11 +7901,14 @@ class BaseDropdown extends FASTElement {
7898
7901
  * @param index - The index of the option to select.
7899
7902
  * @public
7900
7903
  */
7901
- selectOption(index = this.selectedIndex) {
7904
+ selectOption(index = this.selectedIndex, shouldEmit = false) {
7902
7905
  this.listbox.selectOption(index);
7903
7906
  this.control.value = this.displayValue;
7904
7907
  this.setValidity();
7905
7908
  this.updateFreeformOption();
7909
+ if (shouldEmit) {
7910
+ this.$emit("change");
7911
+ }
7906
7912
  }
7907
7913
  /**
7908
7914
  * Sets the validity of the element.
@@ -8657,6 +8663,9 @@ class Listbox extends FASTElement {
8657
8663
  * @public
8658
8664
  */
8659
8665
  clickHandler(e) {
8666
+ if (this.dropdown) {
8667
+ return true;
8668
+ }
8660
8669
  const target = e.target;
8661
8670
  if (isDropdownOption(target)) {
8662
8671
  this.selectOption(this.enabledOptions.indexOf(target));
@@ -10883,35 +10892,6 @@ class Slider extends FASTElement {
10883
10892
  this.max = "";
10884
10893
  this.step = "";
10885
10894
  this.mode = SliderMode.singleValue;
10886
- this.keypressHandler = event => {
10887
- if (this.disabled) {
10888
- return;
10889
- }
10890
- switch (event.key) {
10891
- case keyHome:
10892
- event.preventDefault();
10893
- this.value = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? `${this.minAsNumber}` : `${this.maxAsNumber}`;
10894
- break;
10895
- case keyEnd:
10896
- event.preventDefault();
10897
- this.value = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? `${this.maxAsNumber}` : `${this.minAsNumber}`;
10898
- break;
10899
- case keyArrowRight:
10900
- case keyArrowUp:
10901
- if (!event.shiftKey) {
10902
- event.preventDefault();
10903
- this.increment();
10904
- }
10905
- break;
10906
- case keyArrowLeft:
10907
- case keyArrowDown:
10908
- if (!event.shiftKey) {
10909
- event.preventDefault();
10910
- this.decrement();
10911
- }
10912
- break;
10913
- }
10914
- };
10915
10895
  this.setupTrackConstraints = () => {
10916
10896
  const clientRect = this.track.getBoundingClientRect();
10917
10897
  this.trackWidth = this.track.clientWidth;
@@ -10923,12 +10903,6 @@ class Slider extends FASTElement {
10923
10903
  this.trackWidth = 1;
10924
10904
  }
10925
10905
  };
10926
- this.setupListeners = (remove = false) => {
10927
- this.addEventListener("keydown", this.keypressHandler);
10928
- if (remove) {
10929
- this.removeEventListener("keydown", this.keypressHandler);
10930
- }
10931
- };
10932
10906
  /**
10933
10907
  * Handle mouse moves during a thumb drag operation
10934
10908
  * If the event handler is null it removes the events
@@ -10944,6 +10918,7 @@ class Slider extends FASTElement {
10944
10918
  });
10945
10919
  windowFn("touchend", this.handleWindowPointerUp);
10946
10920
  this.isDragging = event !== null;
10921
+ return true;
10947
10922
  };
10948
10923
  /**
10949
10924
  * Handle mouse moves during a thumb drag operation
@@ -10953,7 +10928,8 @@ class Slider extends FASTElement {
10953
10928
  return;
10954
10929
  }
10955
10930
  const sourceEvent = window.TouchEvent && event instanceof TouchEvent ? event.touches[0] : event;
10956
- const eventValue = this.orientation === Orientation.vertical ? sourceEvent.pageY - document.documentElement.scrollTop : sourceEvent.pageX - document.documentElement.scrollLeft - this.trackLeft;
10931
+ const thumbWidth = this.thumb.getBoundingClientRect().width;
10932
+ const eventValue = this.orientation === Orientation.vertical ? sourceEvent.pageY - document.documentElement.scrollTop : sourceEvent.pageX - document.documentElement.scrollLeft - this.trackLeft - thumbWidth / 2;
10957
10933
  this.value = `${this.calculateNewValue(eventValue)}`;
10958
10934
  };
10959
10935
  /**
@@ -10978,12 +10954,14 @@ class Slider extends FASTElement {
10978
10954
  windowFn("pointerup", this.handleWindowPointerUp);
10979
10955
  documentFn("mouseleave", this.handleWindowPointerUp);
10980
10956
  windowFn("pointermove", this.handlePointerMove);
10957
+ const thumbWidth = this.thumb.getBoundingClientRect().width;
10981
10958
  if (event) {
10982
10959
  this.setupTrackConstraints();
10983
- const controlValue = this.orientation === Orientation.vertical ? event.pageY - document.documentElement.scrollTop : event.pageX - document.documentElement.scrollLeft - this.trackLeft;
10960
+ const controlValue = this.orientation === Orientation.vertical ? event.pageY - document.documentElement.scrollTop : event.pageX - document.documentElement.scrollLeft - this.trackLeft - thumbWidth / 2;
10984
10961
  this.value = `${this.calculateNewValue(controlValue)}`;
10985
10962
  }
10986
10963
  }
10964
+ return true;
10987
10965
  };
10988
10966
  this.elementInternals.role = "slider";
10989
10967
  this.elementInternals.ariaOrientation = this.orientation ?? SliderOrientation.horizontal;
@@ -11275,7 +11253,6 @@ class Slider extends FASTElement {
11275
11253
  this.setDisabledSideEffect(this.disabled);
11276
11254
  this.updateStepMultiplier();
11277
11255
  this.setupTrackConstraints();
11278
- this.setupListeners();
11279
11256
  this.setupDefaultValue();
11280
11257
  this.setSliderPosition();
11281
11258
  Observable.getNotifier(this).subscribe(this, "max");
@@ -11288,7 +11265,6 @@ class Slider extends FASTElement {
11288
11265
  */
11289
11266
  disconnectedCallback() {
11290
11267
  super.disconnectedCallback();
11291
- this.setupListeners(true);
11292
11268
  Observable.getNotifier(this).unsubscribe(this, "max");
11293
11269
  Observable.getNotifier(this).unsubscribe(this, "min");
11294
11270
  Observable.getNotifier(this).unsubscribe(this, "step");
@@ -11315,6 +11291,36 @@ class Slider extends FASTElement {
11315
11291
  const decrementedValString = decrementedVal > this.minAsNumber ? `${decrementedVal}` : `${this.minAsNumber}`;
11316
11292
  this.value = decrementedValString;
11317
11293
  }
11294
+ handleKeydown(event) {
11295
+ if (this.disabled) {
11296
+ return true;
11297
+ }
11298
+ switch (event.key) {
11299
+ case keyHome:
11300
+ event.preventDefault();
11301
+ this.value = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? `${this.minAsNumber}` : `${this.maxAsNumber}`;
11302
+ break;
11303
+ case keyEnd:
11304
+ event.preventDefault();
11305
+ this.value = this.direction !== Direction.rtl && this.orientation !== Orientation.vertical ? `${this.maxAsNumber}` : `${this.minAsNumber}`;
11306
+ break;
11307
+ case keyArrowRight:
11308
+ case keyArrowUp:
11309
+ if (!event.shiftKey) {
11310
+ event.preventDefault();
11311
+ this.increment();
11312
+ }
11313
+ break;
11314
+ case keyArrowLeft:
11315
+ case keyArrowDown:
11316
+ if (!event.shiftKey) {
11317
+ event.preventDefault();
11318
+ this.decrement();
11319
+ }
11320
+ break;
11321
+ }
11322
+ return true;
11323
+ }
11318
11324
  /**
11319
11325
  * Places the thumb based on the current value
11320
11326
  */
@@ -11420,13 +11426,13 @@ const styles$b = css`
11420
11426
 
11421
11427
  :host{--thumb-size:20px;--track-margin-inline:calc(var(--thumb-size) / 2);--track-size:4px;--track-overhang:calc(var(--track-size) / -2);--rail-color:${colorCompoundBrandBackground};--track-color:${colorNeutralStrokeAccessible};--slider-direction:90deg;--border-radius:${borderRadiusMedium};--step-marker-inset:var(--track-overhang) -1px;position:relative;align-items:center;justify-content:center;box-sizing:border-box;outline:none;user-select:none;touch-action:none;min-width:120px;min-height:32px;grid-template-rows:1fr var(--thumb-size) 1fr;grid-template-columns:var(--track-margin-inline) 1fr var(--track-margin-inline)}:host(:hover){--rail-color:${colorCompoundBrandBackgroundHover}}:host(:active){--rail-color:${colorCompoundBrandBackgroundPressed}}:host(:disabled){--rail-color:${colorNeutralForegroundDisabled};--track-color:${colorNeutralBackgroundDisabled}}:host(:not(:disabled)){cursor:pointer}:host(:dir(rtl)){--slider-direction:-90deg}:host(${smallState}){--thumb-size:16px;--track-overhang:-1px;--track-size:2px;--border-radius:${borderRadiusSmall}}:host(${verticalState}){--slider-direction:0deg;--step-marker-inset:-1px var(--track-overhang);min-height:120px;grid-template-rows:var(--track-margin-inline) 1fr var(--track-margin-inline);grid-template-columns:1fr var(--thumb-size) 1fr;width:unset;min-width:32px;justify-items:center}:host(:not([slot='input']):focus-visible){box-shadow:0 0 0 2pt ${colorStrokeFocus2};outline:1px solid ${colorStrokeFocus1}}:host:after,.track{height:var(--track-size);width:100%}:host:after{background-image:linear-gradient(
11422
11428
  var(--slider-direction),var(--rail-color) 0%,var(--rail-color) 50%,var(--track-color) 50.1%,var(--track-color) 100%
11423
- );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${verticalState})::after,:host(${verticalState}) .track{height:100%;width:var(--track-size)}:host(${verticalState}) .track{top:var(--track-overhang);bottom:var(--track-overhang)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host(${verticalState}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
11429
+ );border-radius:var(--border-radius);content:'';grid-row:1 / -1;grid-column:1 / -1}.track{position:relative;background-color:var(--track-color);grid-row:2 / 2;grid-column:2 / 2;forced-color-adjust:none;overflow:hidden}:host(${verticalState})::after,:host(${verticalState}) .track{height:100%;width:var(--track-size)}.track::before{content:'';position:absolute;height:100%;border-radius:inherit;inset-inline-start:0;width:var(--slider-progress)}:host(:dir(rtl)) .track::before{width:calc(100% - var(--slider-progress))}:host(${verticalState}) .track::before{width:100%;bottom:0;height:var(--slider-progress)}:host([step]) .track::after{content:'';position:absolute;border-radius:inherit;inset:var(--step-marker-inset);background-image:repeating-linear-gradient(
11424
11430
  var(--slider-direction),#0000 0%,#0000 calc(var(--step-rate) - 1px),${colorNeutralBackground1} calc(var(--step-rate) - 1px),${colorNeutralBackground1} var(--step-rate)
11425
11431
  )}.thumb-container{position:absolute;grid-row:2 / 2;grid-column:2 / 2;transform:translateX(-50%);left:var(--slider-thumb)}:host(${verticalState}) .thumb-container{transform:translateY(50%);left:unset;bottom:var(--slider-thumb)}:host(:not(:active)) :is(.thumb-container,.track::before){transition:all 0.2s ease}.thumb{width:var(--thumb-size);height:var(--thumb-size);border-radius:${borderRadiusCircular};box-shadow:0 0 0 calc(var(--thumb-size) * 0.2) ${colorNeutralBackground1} inset;border:calc(var(--thumb-size) * 0.05) solid ${colorNeutralStroke1};box-sizing:border-box}.thumb,.track::before{background-color:var(--rail-color)}`.withBehaviors(forcedColorsStylesheetBehavior(css`
11426
11432
  .track:hover,.track:active,.track{background:WindowText}.thumb:hover,.thumb:active,.thumb{background:ButtonText}:host(:hover) .track::before,:host(:active) .track::before,.track::before{background:Highlight}`));
11427
11433
 
11428
11434
  function sliderTemplate(options = {}) {
11429
- return html`<template tabindex="${x => x.disabled ? null : 0}" @pointerdown="${(x, c) => x.handlePointerDown(c.event)}"><div ${ref("track")} part="track-container" class="track" style="${x => x.position}"></div><div ${ref("thumb")} part="thumb-container" class="thumb-container" style="${x => x.position}" @pointerdown="${(x, c) => x.handleThumbPointerDown(c.event)}"><slot name="thumb">${staticallyCompose(options.thumb)}</slot></div></template>`;
11435
+ return html`<template tabindex="${x => x.disabled ? null : 0}" @pointerdown="${(x, c) => x.handlePointerDown(c.event)}" @keydown="${(x, c) => x.handleKeydown(c.event)}"><div ${ref("track")} part="track-container" class="track" style="${x => x.position}"></div><div ${ref("thumb")} part="thumb-container" class="thumb-container" style="${x => x.position}" @pointerdown="${(x, c) => x.handleThumbPointerDown(c.event)}"><slot name="thumb">${staticallyCompose(options.thumb)}</slot></div></template>`;
11430
11436
  }
11431
11437
  const template$b = sliderTemplate({
11432
11438
  thumb: `<div class="thumb"></div>`