cecomponent 1.0.141 → 1.0.143

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.
@@ -14,6 +14,17 @@ export interface CETextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElem
14
14
  rows?: number;
15
15
  minHeight?: number | string;
16
16
  width?: number | string;
17
+ /**
18
+ * validationType controls what characters are allowed in the input.
19
+ * - 'number' -> digits only (0-9)
20
+ * - 'alphanumeric' -> letters and digits
21
+ * - 'alpha' -> letters only (A-Z, a-z)
22
+ * - 'alphanumericWithSpecial' -> letters + digits + full set of special characters + spaces
23
+ * - 'alphaWithoutSpecial' -> letters and spaces (no digits, no punctuation)
24
+ *
25
+ * Notes: This implementation strips disallowed characters on change.
26
+ */
27
+ validationType?: 'number' | 'alphanumeric' | 'alpha' | 'alphanumericWithSpecial' | 'alphaWithoutSpecial';
17
28
  }
18
29
  declare const CEDynamicTextField: React.ForwardRefExoticComponent<CETextFieldProps & React.RefAttributes<HTMLInputElement>>;
19
30
  export default CEDynamicTextField;
@@ -41,6 +41,11 @@ interface CEDataGridDynamicTableProps {
41
41
  clickableColumns?: string[];
42
42
  isExportAllToExcel?: boolean;
43
43
  conditionalClickableColumns?: Record<string, string[]>;
44
+ /**
45
+ * Optional consumer predicate. Return true to make the specific cell (row + column) clickable.
46
+ * If omitted, existing clickableColumns / conditionalClickableColumns behavior is used.
47
+ */
48
+ clickableCellPredicate?: (rowData: any, columnId: string) => boolean;
44
49
  handleCellClick?: (data: any, columnId?: any) => void;
45
50
  onReload?: () => void;
46
51
  showDownloadIcon?: boolean;
package/dist/idex.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './index'
2
+ export {}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "cecomponent",
3
3
  "description": "A React component library for building modern UIs for Cleanearth",
4
- "version": "1.0.141",
4
+ "version": "1.0.143",
5
5
  "main": "dist/ce-component-lib.js",
6
6
  "module": "dist/ce-component-lib.mjs",
7
- "types": "dist/index.d.ts",
7
+ "types": "dist/idex.d.ts",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "vite build",