@dartech/arsenal-ui 1.4.13 → 1.4.14

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/index.js CHANGED
@@ -5963,10 +5963,11 @@ const PropertyFiller = ({
5963
5963
  }
5964
5964
  }
5965
5965
  clearErrors();
5966
- }, [name, clearErrors, value, setFillOption, fillOption, propertyType, property]);
5966
+ }, [name, clearErrors, value, setFillOption, fillOption, propertyType, property, setValue, defaultProperyValue]);
5967
5967
  useEffect(() => {
5968
5968
  var _a;
5969
5969
  if (!isDirty && isPropertyValueEmpty(value)) {
5970
+ console.log('setDefaultValue');
5970
5971
  if (property.isRequired && (property.defaultValue === null || property.value === null)) {
5971
5972
  setValue(name, (_a = prevValueRef.current[fillOption]) !== null && _a !== void 0 ? _a : defaultProperyValue, {
5972
5973
  shouldDirty: true
@@ -5977,9 +5978,10 @@ const PropertyFiller = ({
5977
5978
  setValue(name, property.defaultValue || property.value);
5978
5979
  }
5979
5980
  }
5980
- }, [value, property, name, fillOption, isDirty]);
5981
+ }, [value, property, name, fillOption, isDirty, setValue, defaultProperyValue]);
5981
5982
  useEffect(() => {
5982
5983
  if (!isPropertyValueEmpty(value) && property.propertyType !== PropertyType.JSON) {
5984
+ console.log('setValue');
5983
5985
  setValue(name, value);
5984
5986
  }
5985
5987
  }, [name, setValue, value, property]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.13",
3
+ "version": "1.4.14",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Control } from 'react-hook-form';
2
3
  type Props = {
3
4
  control: Control<any>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type Props = {
2
3
  name: string;
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type Props = {
2
3
  name: string;
3
4
  format: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type Props = {
2
3
  name: string;
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type Props = {
2
3
  name: string;
3
4
  label?: string;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { PropertyUnion } from '../../../interfaces';
2
3
  type PropertyItemProps = {
3
4
  property: PropertyUnion;