@gisce/react-ooui 2.0.0-alpha.17 → 2.0.0-alpha.19

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Float.d.ts","sourceRoot":"","sources":["../../../src/widgets/base/Float.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKtC,eAAO,MAAM,KAAK,UAAW,WAAW,4CA6BvC,CAAC"}
1
+ {"version":3,"file":"Float.d.ts","sourceRoot":"","sources":["../../../src/widgets/base/Float.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKtC,eAAO,MAAM,KAAK,UAAW,WAAW,4CA4BvC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../src/widgets/base/Integer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,KAAK,YAAY,GAAG,WAAW,GAAG;IAChC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,YAAY,4CA4C1C,CAAC"}
1
+ {"version":3,"file":"Integer.d.ts","sourceRoot":"","sources":["../../../src/widgets/base/Integer.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,KAAK,YAAY,GAAG,WAAW,GAAG;IAChC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,OAAO,UAAW,YAAY,4CA2C1C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "2.0.0-alpha.17",
3
+ "version": "2.0.0-alpha.19",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
@@ -30,7 +30,6 @@ export const Float = (props: WidgetProps) => {
30
30
  formatter={(value) => {
31
31
  return `${value}`.replace(/[^0-9\.\-]+/g, "");
32
32
  }}
33
- defaultValue={0}
34
33
  decimalSeparator={"."}
35
34
  onBlur={elementHasLostFocus}
36
35
  />
@@ -46,7 +46,6 @@ export const Integer = (props: IntegerProps) => {
46
46
  const newNumber = newValue as number;
47
47
  onChange?.(newNumber);
48
48
  }}
49
- defaultValue={0}
50
49
  onBlur={elementHasLostFocus}
51
50
  precision={0}
52
51
  style={requiredStyle}
@@ -670,7 +670,7 @@ const One2manyInput: React.FC<One2manyInputProps> = (
670
670
  <One2manyTopBar
671
671
  mode={currentView}
672
672
  title={getTitle()}
673
- readOnly={readOnly}
673
+ readOnly={readOnly || false}
674
674
  isMany2Many={isMany2many}
675
675
  formHasChanges={formHasChanges}
676
676
  totalItems={itemsToShow.length}