@kubex/zinc 1.1.31 → 1.1.32
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/custom-elements.json +1 -1
- package/dist/web-types.json +1 -1
- package/dist/zn.min.js +1166 -1185
- package/package.json +1 -1
- package/src/components/editor/editor.component.ts +1 -2
- package/src/components/icon-picker/material-icons.ts +530 -10442
- package/src/components/rating/rating.component.ts +1 -2
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {clamp} from "lodash";
|
|
2
1
|
import {classMap} from "lit/directives/class-map.js";
|
|
3
2
|
import {type CSSResultGroup, html, unsafeCSS} from 'lit';
|
|
4
3
|
import {FormControlController, validValidityState} from "../../internal/form";
|
|
@@ -98,7 +97,7 @@ export default class ZnRating extends ZincElement implements ZincFormControl {
|
|
|
98
97
|
const {left, width} = this.rating.getBoundingClientRect();
|
|
99
98
|
const value = this._roundToPrecision(((coordinate - left) / width) * this.max, this.precision);
|
|
100
99
|
|
|
101
|
-
return
|
|
100
|
+
return Math.min(Math.max(value, 0), this.max);
|
|
102
101
|
}
|
|
103
102
|
|
|
104
103
|
private _getValueFromMousePosition(event: MouseEvent): number {
|