zaravand-ui 4.3.1 → 4.3.2

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.
@@ -5,6 +5,7 @@ export declare const noSearchResultMessage = "\u062F\u0627\u062F\u0647\u200C\u06
5
5
  export declare const actionsColumnLabel = "\u0639\u0645\u0644\u06CC\u0627\u062A";
6
6
  export declare const rowNumberColumnLabel = "\u0631\u062F\u06CC\u0641";
7
7
  export declare const addButtonLabel = "\u0627\u0641\u0632\u0648\u062F\u0646";
8
+ export declare const importExcelButtonLabel = "\u0628\u0627\u0631\u06AF\u0630\u0627\u0631\u06CC \u0627\u06A9\u0633\u0644";
8
9
  export declare const printButtonLabel = "\u0686\u0627\u067E";
9
10
  export declare const previewPrintButtonLabel = "\u067E\u06CC\u0634\u200C\u0646\u0645\u0627\u06CC\u0634 \u0686\u0627\u067E";
10
11
  export declare const editButtonLabel = "\u0648\u06CC\u0631\u0627\u06CC\u0634";
@@ -25,6 +25,7 @@ export type TableRowActionInput = {
25
25
  rowId?: TableRowId;
26
26
  };
27
27
  export type TableAddRowHandler = () => void | Promise<void>;
28
+ export type TableImportExcelHandler = () => void | Promise<void>;
28
29
  export type TableEditRowHandler = (input: TableRowActionInput) => void | Promise<void>;
29
30
  export type TableDeleteRowHandler = (input: TableRowActionInput) => void | Promise<void>;
30
31
  export type TablePrintHandlerInput = {
@@ -153,6 +154,13 @@ export interface TableProps {
153
154
  data: DynamicTableRow[];
154
155
  setData: React.Dispatch<React.SetStateAction<DynamicTableRow[]>>;
155
156
  onAdd?: TableAddRowHandler;
157
+ /**
158
+ * When provided, shows an import-from-Excel icon button in the table
159
+ * controls that calls this handler. The table performs no file
160
+ * selection/parsing/uploading itself — the parent owns the whole flow
161
+ * (opening a file picker, reading the file, sending it to the server).
162
+ */
163
+ onImportExcel?: TableImportExcelHandler;
156
164
  onEdit?: TableEditRowHandler;
157
165
  onDelete?: TableDeleteRowHandler;
158
166
  /**