@dartech/arsenal-ui 1.3.75 → 1.3.76
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
@@ -1475,16 +1475,6 @@ const digitsOnly = new RegExp('^[-+]?[0-9]+$');
|
|
1475
1475
|
const floatsOnly = new RegExp(/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/);
|
1476
1476
|
const isExpression = value => {
|
1477
1477
|
if (typeof value === 'string') return /\$(?:S?JS)?\(/g.test(value);
|
1478
|
-
if (Array.isArray(value)) {
|
1479
|
-
for (const item of value) {
|
1480
|
-
if (isExpression(item)) return true;
|
1481
|
-
}
|
1482
|
-
}
|
1483
|
-
if (typeof value === 'object') {
|
1484
|
-
for (const key in value) {
|
1485
|
-
if (isExpression(value[key])) return true;
|
1486
|
-
}
|
1487
|
-
}
|
1488
1478
|
return false;
|
1489
1479
|
};
|
1490
1480
|
const isDateType = propertyType => {
|
package/package.json
CHANGED
@@ -3,7 +3,6 @@ import { PropertiesArrayType } from '../../../interfaces';
|
|
3
3
|
type Props = {
|
4
4
|
properties: PropertiesArrayType<unknown>;
|
5
5
|
data: unknown;
|
6
|
-
update?: number;
|
7
6
|
};
|
8
7
|
export declare const DefinitionValueView: ({ properties, data }: Props) => JSX.Element;
|
9
8
|
export default DefinitionValueView;
|