albinasoft-ui-package 1.0.18 → 1.0.19
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.
@@ -160,6 +160,7 @@ interface AutoCompleteInputElement {
|
|
160
160
|
type FormElement = InputElement | TextareaElement | CheckboxElement | RadioButtonElement | SelectElement | DateTimePickerElement | TextElement | DividerElement | RichTextboxElement | TreeViewElement | ButtonElement | AutoCompleteInputElement;
|
161
161
|
interface CustomFormProps {
|
162
162
|
elements: FormElement[];
|
163
|
+
innerRowCustomClass?: string;
|
163
164
|
onSubmit: (formValues: Record<string, any>) => void;
|
164
165
|
confirmLabel?: string;
|
165
166
|
cancelLabel?: string;
|
@@ -69,7 +69,7 @@ var ElementType;
|
|
69
69
|
})(ElementType || (ElementType = {}));
|
70
70
|
exports.ElementType = ElementType;
|
71
71
|
var CustomForm = function (_a) {
|
72
|
-
var elements = _a.elements, onSubmit = _a.onSubmit, _b = _a.confirmLabel, confirmLabel = _b === void 0 ? 'Confirm' : _b, // Varsayılan değer
|
72
|
+
var elements = _a.elements, innerRowCustomClass = _a.innerRowCustomClass, onSubmit = _a.onSubmit, _b = _a.confirmLabel, confirmLabel = _b === void 0 ? 'Confirm' : _b, // Varsayılan değer
|
73
73
|
_c = _a.cancelLabel, // Varsayılan değer
|
74
74
|
cancelLabel = _c === void 0 ? 'Cancel' : _c, // Varsayılan değer
|
75
75
|
handleCancel = _a.handleCancel, _d = _a.showConfirmButton, showConfirmButton = _d === void 0 ? true : _d, // Varsayılan olarak görünür
|
@@ -145,7 +145,7 @@ var CustomForm = function (_a) {
|
|
145
145
|
var colId = _a[0], innerRows = _a[1];
|
146
146
|
return (react_1.default.createElement("div", { className: "col", key: "col-".concat(rowId, "-").concat(colId) }, Object.entries(innerRows).map(function (_a) {
|
147
147
|
var innerRowId = _a[0], elements = _a[1];
|
148
|
-
return (react_1.default.createElement("div", { className: "row", key: "inner-row-".concat(rowId, "-").concat(colId, "-").concat(innerRowId) }, elements.map(function (element) { return (react_1.default.createElement("div", { className: element.colClass || 'col-12', key: element.id }, element.type === ElementType.TEXT ?
|
148
|
+
return (react_1.default.createElement("div", { className: "row ".concat(innerRowCustomClass), key: "inner-row-".concat(rowId, "-").concat(colId, "-").concat(innerRowId) }, elements.map(function (element) { return (react_1.default.createElement("div", { className: element.colClass || 'col-12', key: element.id }, element.type === ElementType.TEXT ?
|
149
149
|
(react_1.default.createElement(CustomText_1.default, __assign({}, element))) : element.type === ElementType.INPUT ?
|
150
150
|
(react_1.default.createElement(CustomInput_1.default, __assign({}, element))) : element.type === ElementType.TEXTAREA ?
|
151
151
|
(react_1.default.createElement(CustomTextarea_1.default, __assign({}, element))) : element.type === ElementType.CHECKBOX ?
|