dce-reactkit 3.7.20 → 3.7.22
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/package.json
CHANGED
|
@@ -433,6 +433,17 @@ const Modal: React.FC<ModalProps> = (props) => {
|
|
|
433
433
|
className={`modal-dialog modal-${size} ${animationClass} modal-dialog-scrollable modal-dialog-centered`}
|
|
434
434
|
style={{
|
|
435
435
|
zIndex: baseZIndex + 2,
|
|
436
|
+
// Override sizes for even larger for XL
|
|
437
|
+
width: (
|
|
438
|
+
size === ModalSize.ExtraLarge
|
|
439
|
+
? 'calc(100vw - 3rem)'
|
|
440
|
+
: undefined
|
|
441
|
+
),
|
|
442
|
+
maxWidth: (
|
|
443
|
+
size === ModalSize.ExtraLarge
|
|
444
|
+
? '80rem'
|
|
445
|
+
: undefined
|
|
446
|
+
),
|
|
436
447
|
}}
|
|
437
448
|
>
|
|
438
449
|
<div
|
|
@@ -123,27 +123,12 @@ const visitServerEndpoint = async (
|
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
// Process params (encode objects)
|
|
127
|
-
let params: {
|
|
128
|
-
[key: string]: any,
|
|
129
|
-
} | undefined;
|
|
130
|
-
if (opts.params) {
|
|
131
|
-
params = {};
|
|
132
|
-
Object.entries(opts.params).forEach(([key, value]) => {
|
|
133
|
-
if (typeof value === 'object') {
|
|
134
|
-
(params as any)[key] = JSON.stringify(value);
|
|
135
|
-
} else {
|
|
136
|
-
(params as any)[key] = value;
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
126
|
// Send the request
|
|
142
127
|
const sendRequest = await getSendRequest();
|
|
143
128
|
const response = await sendRequest({
|
|
144
129
|
path: opts.path,
|
|
145
130
|
method: opts.method ?? 'GET',
|
|
146
|
-
params,
|
|
131
|
+
params: opts.params,
|
|
147
132
|
});
|
|
148
133
|
|
|
149
134
|
// Check for failure
|