@oliasoft-open-source/react-ui-library 5.11.7-beta-7 → 5.11.7-beta-8

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/dist/index.d.ts CHANGED
@@ -2211,8 +2211,8 @@ declare type TUpdateTableImportExportState = (value: ITableImportExportState | (
2211
2211
 
2212
2212
  export declare interface TValidationRule {
2213
2213
  fieldName: string;
2214
- defaultUnit: string;
2215
- validUnits: string[];
2214
+ defaultUnit?: string;
2215
+ validUnits?: string[];
2216
2216
  optionalColumn?: boolean;
2217
2217
  validator?: (value: string) => string | boolean | undefined | null;
2218
2218
  fieldNameValidator?: (params: {
package/dist/index.js CHANGED
@@ -4205,7 +4205,7 @@ var isValidLength = (e, t, n) => e >= t - n, isNonPlaceholderUnit = (e) => !!e &
4205
4205
  t.forEach((r, c) => {
4206
4206
  let l = n[c];
4207
4207
  if (!l || l?.optionalColumn) return;
4208
- let u = l.unitsValidator ?? defaultUnitsValidator, d = i?.[c];
4208
+ let u = l.unitsValidator ?? defaultUnitsValidator, d = i?.[c] ?? [];
4209
4209
  u({
4210
4210
  value: r,
4211
4211
  defaultAllowedValues: d,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "5.11.7-beta-7",
3
+ "version": "5.11.7-beta-8",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {