@dartech/arsenal-ui 1.4.18 → 1.4.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +5 -5
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1499,7 +1499,7 @@ const formatTableRowValue = ({
1499
1499
  const digitsOnly = new RegExp('^[-+]?[0-9]+$');
1500
1500
  const floatsOnly = new RegExp(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/);
1501
1501
  const isExpression = (value, useRecursion) => {
1502
- if (typeof value === 'string') return /\$(?:S?JS)?\(/g.test(value);
1502
+ if (typeof value === 'string') return /\$(?:S?JS)?(?:\{|\()/g.test(value);
1503
1503
  if (useRecursion) {
1504
1504
  if (Array.isArray(value)) {
1505
1505
  for (const item of value) {
@@ -3483,7 +3483,6 @@ const EntityAdditionalFields = ({
3483
3483
  name: `${parentPropertyFieldName}.name`
3484
3484
  });
3485
3485
  const {
3486
- fields,
3487
3486
  append,
3488
3487
  remove
3489
3488
  } = useFieldArray({
@@ -3571,7 +3570,7 @@ const EntityAdditionalFields = ({
3571
3570
  paddingLeft: '4px'
3572
3571
  }
3573
3572
  }, {
3574
- children: fields.map((property, index) => jsxs(Step, Object.assign({
3573
+ children: properties.map((property, index) => jsxs(Step, Object.assign({
3575
3574
  onClick: () => handleStepperClick(index),
3576
3575
  style: {
3577
3576
  cursor: 'pointer'
@@ -3609,7 +3608,7 @@ const EntityAdditionalFields = ({
3609
3608
  }, {
3610
3609
  children: jsx(CreatePropertiesList, {
3611
3610
  ref: propsRef,
3612
- properties: fields,
3611
+ properties: properties,
3613
3612
  hideAddButton: true,
3614
3613
  // entityPropFields={properties as any}
3615
3614
  parentRemove: remove,
@@ -5250,7 +5249,8 @@ const CreatePropertiesList = /*#__PURE__*/forwardRef(({
5250
5249
  setValue,
5251
5250
  getValues,
5252
5251
  reset,
5253
- trigger
5252
+ trigger,
5253
+ watch
5254
5254
  } = useForm({
5255
5255
  mode: 'all',
5256
5256
  defaultValues: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dartech/arsenal-ui",
3
- "version": "1.4.18",
3
+ "version": "1.4.20",
4
4
  "author": "DAR",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"