react-table-edit 0.5.6 → 0.5.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.mts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +3 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -16,6 +16,31 @@ type IFColumnSelectTable = {
|
|
|
16
16
|
maxWidth?: number;
|
|
17
17
|
minWidth?: number;
|
|
18
18
|
};
|
|
19
|
+
type Props = {
|
|
20
|
+
id?: string;
|
|
21
|
+
component?: any;
|
|
22
|
+
field?: string;
|
|
23
|
+
fieldValue?: string;
|
|
24
|
+
fieldLabel?: string;
|
|
25
|
+
onChange: any;
|
|
26
|
+
textAlign?: 'left' | 'right' | 'center';
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
invalid?: any;
|
|
29
|
+
loadOptions?: any;
|
|
30
|
+
menuWidth?: number;
|
|
31
|
+
rowData: any;
|
|
32
|
+
value: any;
|
|
33
|
+
onKeyDown?: any;
|
|
34
|
+
handleAdd?: any;
|
|
35
|
+
options: any[];
|
|
36
|
+
isMulti?: boolean;
|
|
37
|
+
maxHeight?: number;
|
|
38
|
+
columns?: IFColumnSelectTable[];
|
|
39
|
+
decimalSeparator?: string;
|
|
40
|
+
thousandSeparator?: string;
|
|
41
|
+
isClearable?: boolean;
|
|
42
|
+
};
|
|
43
|
+
declare const SelectTable: react.ForwardRefExoticComponent<Props & react.RefAttributes<unknown>>;
|
|
19
44
|
|
|
20
45
|
type ITextAlign = 'center' | 'left' | 'right';
|
|
21
46
|
type IEditType = 'text' | 'numeric' | 'asyncSelect' | 'datetime' | 'selectMulti' | 'selectTree' | 'date' | 'select' | 'selectTable' | 'checkbox' | 'form' | 'color';
|
|
@@ -210,4 +235,4 @@ type IFDataProps = {
|
|
|
210
235
|
};
|
|
211
236
|
declare const TabsMenuComponent: ({ buttonWidth, tabParent, tabChild, resourceCodeParent, resources, resourceCode, windowSize, renderModal }: IFDataProps) => react_jsx_runtime.JSX.Element;
|
|
212
237
|
|
|
213
|
-
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
|
238
|
+
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, SelectTable, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,31 @@ type IFColumnSelectTable = {
|
|
|
16
16
|
maxWidth?: number;
|
|
17
17
|
minWidth?: number;
|
|
18
18
|
};
|
|
19
|
+
type Props = {
|
|
20
|
+
id?: string;
|
|
21
|
+
component?: any;
|
|
22
|
+
field?: string;
|
|
23
|
+
fieldValue?: string;
|
|
24
|
+
fieldLabel?: string;
|
|
25
|
+
onChange: any;
|
|
26
|
+
textAlign?: 'left' | 'right' | 'center';
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
invalid?: any;
|
|
29
|
+
loadOptions?: any;
|
|
30
|
+
menuWidth?: number;
|
|
31
|
+
rowData: any;
|
|
32
|
+
value: any;
|
|
33
|
+
onKeyDown?: any;
|
|
34
|
+
handleAdd?: any;
|
|
35
|
+
options: any[];
|
|
36
|
+
isMulti?: boolean;
|
|
37
|
+
maxHeight?: number;
|
|
38
|
+
columns?: IFColumnSelectTable[];
|
|
39
|
+
decimalSeparator?: string;
|
|
40
|
+
thousandSeparator?: string;
|
|
41
|
+
isClearable?: boolean;
|
|
42
|
+
};
|
|
43
|
+
declare const SelectTable: react.ForwardRefExoticComponent<Props & react.RefAttributes<unknown>>;
|
|
19
44
|
|
|
20
45
|
type ITextAlign = 'center' | 'left' | 'right';
|
|
21
46
|
type IEditType = 'text' | 'numeric' | 'asyncSelect' | 'datetime' | 'selectMulti' | 'selectTree' | 'date' | 'select' | 'selectTable' | 'checkbox' | 'form' | 'color';
|
|
@@ -210,4 +235,4 @@ type IFDataProps = {
|
|
|
210
235
|
};
|
|
211
236
|
declare const TabsMenuComponent: ({ buttonWidth, tabParent, tabChild, resourceCodeParent, resources, resourceCode, windowSize, renderModal }: IFDataProps) => react_jsx_runtime.JSX.Element;
|
|
212
237
|
|
|
213
|
-
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
|
238
|
+
export { type FromItemsField, type IColumnTable, type ICommandItem, type IFColumnSelectTable, type IFCurrentPage, type IFCurrentPageConfig, type IFPageSize, type IFTableEditButton, type IFTableEditPaging, type IFTableEditProps, type IFTableEditSearchSetting, type IFTableEditToolbar, type IFToolbarOptions, type ISettingFormElement, type ISettingNumericElement, type ISettingSelectElement, SelectTable, TabsMenuComponent, TableEdit as default, formartNumberic, generateUUID, isNullOrUndefined, messageBoxConfirm, messageBoxConfirm2, messageBoxConfirmDelete, messageBoxError, messageHtmlBoxConfirm, messageHtmlBoxError, notificationError, notificationSuccess, objSymbolDecimal, objSymbolThousand, roundNumber, useOnClickOutside };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// index.ts
|
|
31
31
|
var Table_edit_exports = {};
|
|
32
32
|
__export(Table_edit_exports, {
|
|
33
|
+
SelectTable: () => SelectTable,
|
|
33
34
|
TabsMenuComponent: () => TabsMenuComponent,
|
|
34
35
|
default: () => Table_edit_default,
|
|
35
36
|
formartNumberic: () => formartNumberic,
|
|
@@ -2082,7 +2083,6 @@ var SelectTable = (0, import_react13.forwardRef)((props, ref) => {
|
|
|
2082
2083
|
}
|
|
2083
2084
|
);
|
|
2084
2085
|
});
|
|
2085
|
-
var select_table_default = SelectTable;
|
|
2086
2086
|
|
|
2087
2087
|
// test-app/src/component/table/index.tsx
|
|
2088
2088
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
@@ -2475,7 +2475,7 @@ var TableEdit = (0, import_react14.forwardRef)((props, ref) => {
|
|
|
2475
2475
|
valueSelectTable = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelectTable?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
|
|
2476
2476
|
}
|
|
2477
2477
|
return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
|
|
2478
|
-
|
|
2478
|
+
SelectTable,
|
|
2479
2479
|
{
|
|
2480
2480
|
id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
|
|
2481
2481
|
value: valueSelectTable,
|
|
@@ -3733,6 +3733,7 @@ var TabsMenuComponent = ({
|
|
|
3733
3733
|
var Table_edit_default = table_default;
|
|
3734
3734
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3735
3735
|
0 && (module.exports = {
|
|
3736
|
+
SelectTable,
|
|
3736
3737
|
TabsMenuComponent,
|
|
3737
3738
|
formartNumberic,
|
|
3738
3739
|
generateUUID,
|
package/dist/index.mjs
CHANGED
|
@@ -2048,7 +2048,6 @@ var SelectTable = forwardRef2((props, ref) => {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
);
|
|
2050
2050
|
});
|
|
2051
|
-
var select_table_default = SelectTable;
|
|
2052
2051
|
|
|
2053
2052
|
// test-app/src/component/table/index.tsx
|
|
2054
2053
|
import { Fragment as Fragment16, jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
@@ -2441,7 +2440,7 @@ var TableEdit = forwardRef3((props, ref) => {
|
|
|
2441
2440
|
valueSelectTable = !isNullOrUndefined(row[col.field]) && row[col.field] !== "" ? optionsSelectTable?.find((val) => val[col.selectSettings?.fieldValue ?? "value"] === row[col.field]) : "";
|
|
2442
2441
|
}
|
|
2443
2442
|
return /* @__PURE__ */ jsx14(
|
|
2444
|
-
|
|
2443
|
+
SelectTable,
|
|
2445
2444
|
{
|
|
2446
2445
|
id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`,
|
|
2447
2446
|
value: valueSelectTable,
|
|
@@ -3698,6 +3697,7 @@ var TabsMenuComponent = ({
|
|
|
3698
3697
|
// index.ts
|
|
3699
3698
|
var Table_edit_default = table_default;
|
|
3700
3699
|
export {
|
|
3700
|
+
SelectTable,
|
|
3701
3701
|
TabsMenuComponent,
|
|
3702
3702
|
Table_edit_default as default,
|
|
3703
3703
|
formartNumberic,
|