@fluid-topics/ft-number-field 2.2.20 → 2.2.24

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.
@@ -15,7 +15,7 @@ export declare class FtNumberField extends FtLitElement implements FtNumberField
15
15
  focused: boolean;
16
16
  input?: HTMLInputElement;
17
17
  mainPanel?: HTMLElement;
18
- protected render(): import("lit-html").TemplateResult<1>;
18
+ protected render(): import("lit").TemplateResult<1>;
19
19
  protected update(changedProperties: PropertyValues): void;
20
20
  lowerBound(value: number): number;
21
21
  upperBound(value: number): number;
@@ -467,21 +467,21 @@
467
467
  `}update(t){super.update(t),(t.has("max")||t.has("min"))&&this.setValue(this.value)}lowerBound(t){return this.min!=null?Math.max(this.min,t):t}upperBound(t){return this.max!=null?Math.min(this.max,t):t}round(t){return this.integer?Math.floor(t):t}onChange(t){t.preventDefault(),t.stopPropagation(),this.setValue(+t.target.value)}setValue(t){let e=this.value;this.value=t;let i=this.value==null?void 0:this.round(this.lowerBound(this.upperBound(this.value)));setTimeout(()=>{this.value=i,e!==i&&this.dispatchEvent(new CustomEvent("change",{detail:this.value}))})}onFocus(){this.focused=!0}onMainPanelBlur(){var t;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1)}};_.elementDefinitions={"ft-input-label":w,"ft-ripple":b,"ft-typography":B};_.styles=ie;z([(0,H.property)()],_.prototype,"label",void 0);z([(0,et.numberProperty)()],_.prototype,"value",void 0);z([(0,H.property)({type:Boolean})],_.prototype,"integer",void 0);z([(0,H.property)({type:String})],_.prototype,"helper",void 0);z([(0,H.property)({type:Boolean})],_.prototype,"outlined",void 0);z([(0,H.property)({type:Boolean})],_.prototype,"disabled",void 0);z([(0,et.numberProperty)()],_.prototype,"min",void 0);z([(0,et.numberProperty)()],_.prototype,"max",void 0);z([(0,H.state)()],_.prototype,"focused",void 0);z([(0,H.query)(".ft-number-field--input")],_.prototype,"input",void 0);z([(0,H.query)(".ft-number-field--main-panel")],_.prototype,"mainPanel",void 0);var Ne={"ft-number-field":_};(0,We.customElements)(Ne);})();
468
468
  /*! Bundled license information:
469
469
 
470
- lit-html/directives/when.js:
470
+ .store/lit-html-npm-3.3.3-0f054b825a/package/directives/when.js:
471
471
  (**
472
472
  * @license
473
473
  * Copyright 2021 Google LLC
474
474
  * SPDX-License-Identifier: BSD-3-Clause
475
475
  *)
476
476
 
477
- lit-html/lit-html.js:
477
+ .store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
478
478
  (**
479
479
  * @license
480
480
  * Copyright 2017 Google LLC
481
481
  * SPDX-License-Identifier: BSD-3-Clause
482
482
  *)
483
483
 
484
- lit-html/static.js:
484
+ .store/lit-html-npm-3.3.3-0f054b825a/package/static.js:
485
485
  (**
486
486
  * @license
487
487
  * Copyright 2020 Google LLC