x4js 2.2.28 → 2.2.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x4js",
3
- "version": "2.2.28",
3
+ "version": "2.2.30",
4
4
  "type": "module",
5
5
  "main": "src/x4.ts",
6
6
  "module": "src/x4.ts",
@@ -39,9 +39,11 @@ export interface PropertyValue {
39
39
  value: IValue | IValueCB;
40
40
  options?: ListItem[];
41
41
  callback: ( name: string, value: any ) => void;
42
- step?: number; // for numbers
43
42
  live?: boolean; // for live update
44
43
  cls?: string;
44
+ step?: number; // for numbers
45
+ min?: number;
46
+ max?: number;
45
47
  }
46
48
 
47
49
  export interface PropertyGroup {
@@ -215,6 +217,8 @@ export class PropertyGrid extends VBox {
215
217
  name: item.name,
216
218
  value: String(value),
217
219
  step: item.step,
220
+ min: item.min,
221
+ max: item.max,
218
222
  focus: ( e: EvFocus ) => {
219
223
  if( e.focus_out ) {
220
224
  item.callback?.( item.name, (editor as Input).getNumValue() );
@@ -30,7 +30,7 @@ import { Viewport } from '../viewport/viewport';
30
30
  import { SimpleText } from '../label/label';
31
31
  import { CoreElement } from '../../x4.js';
32
32
 
33
- import check_icon from "../checkbox/check.svg";
33
+ const check_icon = `<svg viewBox="0 0 10 7" fill="none" aria-hidden="true"><path d="M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z" fill="currentColor" fill-rule="evenodd" clip-rule="evenodd"></path></svg>`;
34
34
  import "./spreadsheet.module.scss"
35
35
 
36
36
  interface CellRef {