intelliwaketssveltekitv25 0.1.97 → 0.1.98
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/Modal.svelte
CHANGED
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
marginForStickyHeader = false,
|
|
35
35
|
okButtonWrap = false,
|
|
36
36
|
class: clazz = '',
|
|
37
|
+
color,
|
|
37
38
|
classHeader = '',
|
|
38
39
|
classButton = '',
|
|
39
40
|
borderFooter = true,
|
|
@@ -68,6 +69,7 @@
|
|
|
68
69
|
marginForStickyHeader?: boolean
|
|
69
70
|
okButtonWrap?: boolean
|
|
70
71
|
class?: string
|
|
72
|
+
color?: string
|
|
71
73
|
classHeader?: string
|
|
72
74
|
classButton?: string
|
|
73
75
|
borderFooter?: boolean
|
|
@@ -206,6 +208,7 @@
|
|
|
206
208
|
onkeydown={keyDown}
|
|
207
209
|
style:max-width={width}
|
|
208
210
|
bind:this={dialogElement}
|
|
211
|
+
data-color={color}
|
|
209
212
|
onclick={(e) => {
|
|
210
213
|
if (!isDialogMouseDown) cancelAction(e)
|
|
211
214
|
}}
|
|
@@ -220,7 +223,7 @@
|
|
|
220
223
|
role="button"
|
|
221
224
|
tabindex={-1}>
|
|
222
225
|
<!-- svelte-ignore a11y_no_noninteractive_element_interactions -->
|
|
223
|
-
<h4 class='bg-primary-main dark:bg-primary-face text-white py-2 px-4 select-none mb-0 {classHeader}'
|
|
226
|
+
<h4 class='dialogHeader bg-primary-main dark:bg-primary-face text-white py-2 px-4 select-none mb-0 {classHeader}'
|
|
224
227
|
class:cursor-grab={isMouseDown}
|
|
225
228
|
onmousedown={doMouseDown}>
|
|
226
229
|
{#if header}
|
|
@@ -240,7 +243,7 @@
|
|
|
240
243
|
</div>
|
|
241
244
|
{/if}
|
|
242
245
|
</h4>
|
|
243
|
-
<fieldset class='px-4 pb-6'
|
|
246
|
+
<fieldset class='px-4 pb-6 dialogBody'
|
|
244
247
|
disabled={disable}
|
|
245
248
|
class:pt-3={!marginForStickyHeader}
|
|
246
249
|
class:mt-3={marginForStickyHeader}
|
|
@@ -253,13 +256,13 @@
|
|
|
253
256
|
</fieldset>
|
|
254
257
|
{#if !!cancelButton || !!okButton}
|
|
255
258
|
<fieldset
|
|
256
|
-
class='grid grid-cols-[min-content_auto_auto_min-content] border-t-slate-200 dark:border-t-slate-700 px-4 py-2'
|
|
259
|
+
class='dialogButtons grid grid-cols-[min-content_auto_auto_min-content] border-t-slate-200 dark:border-t-slate-700 px-4 py-2'
|
|
257
260
|
class:border-t={borderFooter}
|
|
258
261
|
disabled={disable}>
|
|
259
262
|
<div class='pr-2'>
|
|
260
263
|
{#if !!cancelButton}
|
|
261
264
|
<button type='button'
|
|
262
|
-
class='btnClean bg-transparent hover:bg-transparent shadow-none text-slate-500 hover:text-slate-700 dark:text-slate-300 pl-0 pt-1'
|
|
265
|
+
class='dialogButtonCancel btnClean bg-transparent hover:bg-transparent shadow-none text-slate-500 hover:text-slate-700 dark:text-slate-300 pl-0 pt-1'
|
|
263
266
|
class:whitespace-nowrap={!okButtonWrap}
|
|
264
267
|
onclick={cancelAction}>
|
|
265
268
|
{cancelButton}
|
|
@@ -275,7 +278,7 @@
|
|
|
275
278
|
<div class='text-right pl-2'>
|
|
276
279
|
{#if !!okButton}
|
|
277
280
|
<button type={okType}
|
|
278
|
-
class='shadow-none {classButton}'
|
|
281
|
+
class='dialogButtonOK shadow-none okButton {classButton}'
|
|
279
282
|
class:whitespace-nowrap={!okButtonWrap}
|
|
280
283
|
bind:this={okButtonElement}
|
|
281
284
|
onclick={okAction}
|
package/dist/Modal.svelte.d.ts
CHANGED