react-table-edit 1.4.4 → 1.4.6
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/component/wizard/index.d.ts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -42343,7 +42343,7 @@ const TableEdit = forwardRef((props, ref) => {
|
|
|
42343
42343
|
const [searchTerm, setSearchTerm] = useState('');
|
|
42344
42344
|
const tableElement = useRef(null);
|
|
42345
42345
|
const gridRef = useRef(null);
|
|
42346
|
-
|
|
42346
|
+
const totalCount = dataSource.length;
|
|
42347
42347
|
const pagingClient = pagingSetting?.allowPaging && (pagingSetting?.pagingClient || !(editDisable || addDisable));
|
|
42348
42348
|
const searchClient = searchSetting?.searchEnable && (searchSetting?.searchClient || !(editDisable || addDisable));
|
|
42349
42349
|
const fieldKey = columns.find((item) => item.isPrimarykey === true)?.field ?? 'id';
|
|
@@ -42696,7 +42696,7 @@ const TableEdit = forwardRef((props, ref) => {
|
|
|
42696
42696
|
} }, `col-${indexRow}-${indexCol}`) }));
|
|
42697
42697
|
case 'form':
|
|
42698
42698
|
return (jsx(EditForm, { id: `${idTable}-col${indexCol + 1}-row${indexRow + 1}`, ...col.formSettings, field: col.field, displayValue: col.formSettings?.displayValue ? col.formSettings?.displayValue(row) : '', placeholder: col.placeholder ? t(col.placeholder) : '', rowData: row, indexRow: indexRow, onChange: (val) => {
|
|
42699
|
-
row
|
|
42699
|
+
Object.assign(row, val);
|
|
42700
42700
|
handleDataChange(row, col, indexRow);
|
|
42701
42701
|
}, invalid: col.validate && col.validate(row[col.field], row), textAlign: col.textAlign, onKeyDown: (e) => {
|
|
42702
42702
|
return checkKeyDown(e, row, col, indexRow + 1, indexCol + 1);
|
|
@@ -65037,14 +65037,15 @@ styleInject(css_248z);
|
|
|
65037
65037
|
|
|
65038
65038
|
const Wizard = forwardRef((props, ref) => {
|
|
65039
65039
|
// ** Props
|
|
65040
|
-
const { steps, activeStep, setActiveStep, className = '', headerClassName = '', contentClassName = '', contentWrapperClassName = '', type = 'horizontal', separator = jsx(SvgChevronRight, { fontSize: 17 }) } = props;
|
|
65040
|
+
const { steps, activeStep, setActiveStep, className = '', headerClassName = '', contentClassName = '', contentWrapperClassName = '', type = 'horizontal', heightContent = 'auto', widthContent = '100%', separator = jsx(SvgChevronRight, { fontSize: 17 }) } = props;
|
|
65041
65041
|
// ** Renders Wizard Header
|
|
65042
65042
|
const renderHeader = () => {
|
|
65043
65043
|
return steps.map((step, index) => {
|
|
65044
65044
|
return (jsxs(Fragment, { children: [index !== 0 && index !== steps.length ? jsx("div", { className: 'line', children: separator }) : null, jsx("div", { className: classnames('step', {
|
|
65045
|
-
crossed: step.
|
|
65045
|
+
crossed: (step.done !== undefined ? step.done : activeStep > index),
|
|
65046
|
+
disable: step.disable,
|
|
65046
65047
|
active: index === activeStep
|
|
65047
|
-
}), "data-target": `#${step.id}`, children: jsxs("button", { type: 'button', className: 'step-trigger', onClick: () => setActiveStep?.(index), children: [jsx("span", { className: 'bs-stepper-box', children: step.icon ? step.icon : index + 1 }), jsxs("span", { className: 'bs-stepper-label', children: [
|
|
65048
|
+
}), "data-target": `#${step.id}`, children: jsxs("button", { type: 'button', disabled: step.disable, className: 'step-trigger', onClick: () => setActiveStep?.(index), children: [jsx("span", { className: 'bs-stepper-box', children: step.icon ? step.icon : index + 1 }), jsxs("span", { className: 'bs-stepper-label', children: [jsxs("span", { className: 'bs-stepper-title', children: [step.title, " "] }), step.loading && jsx(Spinner$1, { className: 'text-info', style: { borderWidth: 2, height: 15, width: 15, marginRight: 3 } }), " ", step.subtitle ? jsx("span", { className: 'bs-stepper-subtitle', children: step.subtitle }) : null] })] }) })] }, step.id));
|
|
65048
65049
|
});
|
|
65049
65050
|
};
|
|
65050
65051
|
// ** Renders Wizard Content
|
|
@@ -65061,7 +65062,7 @@ const Wizard = forwardRef((props, ref) => {
|
|
|
65061
65062
|
vertical: type === 'vertical',
|
|
65062
65063
|
'vertical wizard-modern': type === 'modern-vertical',
|
|
65063
65064
|
'wizard-modern': type === 'modern-horizontal'
|
|
65064
|
-
}), children: [jsx("div", { className: classnames('bs-stepper-header', { [headerClassName]: headerClassName }), children: renderHeader() }), jsx("div", { className: classnames('bs-stepper-content', { [contentWrapperClassName]: contentWrapperClassName }), children: renderContent() })] }));
|
|
65065
|
+
}), children: [jsx("div", { className: classnames('bs-stepper-header', { [headerClassName]: headerClassName }), children: renderHeader() }), jsx("div", { style: { height: heightContent, width: widthContent }, className: classnames('bs-stepper-content', { [contentWrapperClassName]: contentWrapperClassName }), children: renderContent() })] }));
|
|
65065
65066
|
});
|
|
65066
65067
|
|
|
65067
65068
|
const ImportExcelComponent = (props) => {
|