react-dialogger 1.1.130 → 1.1.131
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.
|
@@ -117,7 +117,7 @@ var PlaceholderWrapper = function (_a) {
|
|
|
117
117
|
? React.cloneElement(initialElement, __assign(__assign({}, dialog.dialogOptions.slotProps.loader), { values: dialog.values, inProcess: dialog.isInProcess() }))
|
|
118
118
|
: null;
|
|
119
119
|
var backgroundColor = (_b = dialogOptions.base.style.backgroundColor) !== null && _b !== void 0 ? _b : "#FFFFFF";
|
|
120
|
-
return (0, jsx_runtime_1.jsx)("div", { className: 'dialog-content-placeholder', style: { display: 'flex', backgroundColor: backgroundColor }, children: LoaderSlotElement });
|
|
120
|
+
return (0, jsx_runtime_1.jsx)("div", { className: 'dialog-content-placeholder', style: { display: inProcess.inProcess ? 'flex' : 'none', backgroundColor: backgroundColor }, children: LoaderSlotElement });
|
|
121
121
|
};
|
|
122
122
|
// const DialogContentBody: React.FC<IContentBodyProps> = React.forwardRef(({
|
|
123
123
|
// body
|
|
@@ -150,7 +150,8 @@ var DialogContentBody = React.forwardRef(function (_a, ref) {
|
|
|
150
150
|
return (0, jsx_runtime_1.jsxs)("div", { className: 'dialog-body', style: { height: '100%' }, children: [dialog.holder && (0, jsx_runtime_1.jsx)(PlaceholderWrapper, { dialog: dialog, dialogOptions: dialog.dialogOptions, children: dialog.holder }), body(dialog)] });
|
|
151
151
|
}
|
|
152
152
|
return (0, jsx_runtime_1.jsx)("div", { className: 'dialog-body', style: { height: '100%', padding: 10 }, children: dialog.holder ?
|
|
153
|
-
|
|
153
|
+
// <Placeholder dialogOptions={dialog.dialogOptions} placeholder={dialog.holder} />
|
|
154
|
+
(0, jsx_runtime_1.jsx)(PlaceholderWrapper, { dialog: dialog, dialogOptions: dialog.dialogOptions, children: dialog.holder })
|
|
154
155
|
:
|
|
155
156
|
body });
|
|
156
157
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-dialogger",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.131",
|
|
4
4
|
"description": "This package is a continuation of the react-araci package. Due to an error, react-araci was removed, and it has been decided to continue under the new package name react-dialogger",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "Sueleyman Topaloglu",
|
package/types/DialogTypes.d.ts
CHANGED
|
@@ -102,6 +102,9 @@ interface kSlotProps {
|
|
|
102
102
|
header?: Record<string, any>;
|
|
103
103
|
loader?: Record<string, any>;
|
|
104
104
|
}
|
|
105
|
+
export type DialogSlotLoaderProps = kSlotProps['loader'] & Pick<IDialogApiDef, 'values'> & {
|
|
106
|
+
processing: IInProcess;
|
|
107
|
+
};
|
|
105
108
|
export interface IBaseDialogOptions {
|
|
106
109
|
closeable?: boolean;
|
|
107
110
|
initialAnchor?: IDialogAnchor;
|