@massimo-cassandro/minimo 1.31.2 → 1.31.4
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
|
@@ -100,6 +100,7 @@ function getDomBuilderContentProps(value) {
|
|
|
100
100
|
* @param {string | number | null} [params.dialogHeight=null] - optional dialog height value - if set, overrides main css custom prop (default: null)
|
|
101
101
|
* @param {string | number | null} [params.dialogMinHeight=null] - optional dialog min-height value - if set, overrides main css custom prop (default: null)
|
|
102
102
|
* @param {string | number | null} [params.dialogMaxHeight=null] - optional dialog max-height value - if set, overrides main css custom prop (default: null)
|
|
103
|
+
* @param {string | number | null} [params.dialogContentPadding=null] - optional dialog content padding value - if set, overrides main css custom prop (default: null)
|
|
103
104
|
* @param {string | null} [params.iframeUrl=null] - URL to load in an iframe. (default: null)
|
|
104
105
|
* @param {string | null} [params.ajaxUrl=null] - URL for Ajax content loading. (default: null)
|
|
105
106
|
* @param {((el: HTMLDialogElement) => void) | null} [params.openCallback=null] - Called with the dialog element after opening, receives the dialog element (`openCallback(dialogEl)`). (default: null)
|
|
@@ -119,13 +120,14 @@ export function modalPopup({
|
|
|
119
120
|
/** extra classname added to dialogInner */
|
|
120
121
|
contentExtraClassName = null,
|
|
121
122
|
|
|
122
|
-
/** optional values for
|
|
123
|
+
/** optional values for main custom props overriding */
|
|
123
124
|
dialogWidth = null,
|
|
124
125
|
dialogMinWidth = null,
|
|
125
126
|
dialogMaxWidth = null,
|
|
126
127
|
dialogHeight = null,
|
|
127
128
|
dialogMinHeight = null,
|
|
128
129
|
dialogMaxHeight = null,
|
|
130
|
+
dialogContentPadding = null,
|
|
129
131
|
|
|
130
132
|
addFocus = true,
|
|
131
133
|
|
|
@@ -198,15 +200,17 @@ export function modalPopup({
|
|
|
198
200
|
dialogHeight,
|
|
199
201
|
dialogMinHeight,
|
|
200
202
|
dialogMaxHeight,
|
|
203
|
+
dialogContentPadding,
|
|
201
204
|
};
|
|
202
205
|
/** @type {Record<string, string>} */
|
|
203
206
|
const cpropsMap = {
|
|
204
|
-
dialogWidth
|
|
205
|
-
dialogMinWidth
|
|
206
|
-
dialogMaxWidth
|
|
207
|
-
dialogHeight
|
|
208
|
-
dialogMinHeight
|
|
209
|
-
dialogMaxHeight
|
|
207
|
+
dialogWidth : '--mpopup-width',
|
|
208
|
+
dialogMinWidth : '--mpopup-min-width',
|
|
209
|
+
dialogMaxWidth : '--mpopup-max-width',
|
|
210
|
+
dialogHeight : '--mpopup-height',
|
|
211
|
+
dialogMinHeight : '--mpopup-min-height',
|
|
212
|
+
dialogMaxHeight : '--mpopup-max-height',
|
|
213
|
+
dialogContentPadding : '--mpopup-content-padding'
|
|
210
214
|
};
|
|
211
215
|
/** @type {string[]} */
|
|
212
216
|
let dialogStyle = [];
|