intelliwaketssveltekitv25 0.1.90 → 0.1.91

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
@@ -10,6 +10,8 @@
10
10
  import { type Snippet, tick } from 'svelte'
11
11
  import ActivityOverlay from './ActivityOverlay.svelte'
12
12
  import { CleanNumber } from '@solidbasisventures/intelliwaketsfoundation'
13
+ import type { IFAProps } from './Definitions'
14
+ import { Icon } from './index'
13
15
 
14
16
  let {
15
17
  header,
@@ -24,6 +26,7 @@
24
26
  okButton = 'OK',
25
27
  okActionNotOnEnter = false,
26
28
  okDisabled = false,
29
+ okFAProps,
27
30
  noCloseOnOK = true,
28
31
  overflowVisible = false,
29
32
  disable = false,
@@ -54,6 +57,7 @@
54
57
  width?: string
55
58
  cancelButton?: string | false
56
59
  okButton?: string | false
60
+ okFAProps?: IFAProps
57
61
  okActionNotOnEnter?: boolean
58
62
  okDisabled?: boolean
59
63
  noCloseOnOK?: boolean
@@ -265,6 +269,9 @@
265
269
  bind:this={okButtonElement}
266
270
  onclick={okAction}
267
271
  disabled={okDisabled}>
272
+ {#if okFAProps}
273
+ <Icon fw {...okFAProps} />
274
+ {/if}
268
275
  {okButton}
269
276
  </button>
270
277
  {/if}
@@ -1,4 +1,5 @@
1
1
  import { type Snippet } from 'svelte';
2
+ import type { IFAProps } from './Definitions';
2
3
  type $$ComponentProps = {
3
4
  header?: Snippet;
4
5
  body?: Snippet;
@@ -12,6 +13,7 @@ type $$ComponentProps = {
12
13
  width?: string;
13
14
  cancelButton?: string | false;
14
15
  okButton?: string | false;
16
+ okFAProps?: IFAProps;
15
17
  okActionNotOnEnter?: boolean;
16
18
  okDisabled?: boolean;
17
19
  noCloseOnOK?: boolean;
@@ -5,6 +5,7 @@
5
5
  import { FormEnhance } from './FormEnhance'
6
6
  import { enhance } from '$app/forms'
7
7
  import { CleanNumber } from '@solidbasisventures/intelliwaketsfoundation'
8
+ import { Icon, type IFAProps } from './index'
8
9
 
9
10
  let {
10
11
  header,
@@ -19,6 +20,7 @@
19
20
  cancelButton = 'Cancel',
20
21
  okButton = 'OK',
21
22
  okDisabled = false,
23
+ okFAProps,
22
24
  noCloseOnOK = false,
23
25
  overflowVisible = false,
24
26
  disable = false,
@@ -45,6 +47,7 @@
45
47
  cancelButton?: string | false
46
48
  okButton?: string | false
47
49
  okDisabled?: boolean
50
+ okFAProps?: IFAProps
48
51
  noCloseOnOK?: boolean
49
52
  overflowVisible?: boolean
50
53
  disable?: boolean
@@ -158,7 +161,7 @@
158
161
  onmousemove={doMouseMove} />
159
162
 
160
163
  <!-- svelte-ignore a11y_click_events_have_key_events -->
161
- <dialog class='bg-white shadow-xl shadow-xl rounded-lg overflow-hidden w-full p-0 max-w-full
164
+ <dialog class='bg-white shadow-xl rounded-lg overflow-hidden w-full p-0 max-w-full
162
165
  dark:bg-slate-600 dark:text-white m-auto {clazz}'
163
166
  class:overflow-y-visible={overflowVisible}
164
167
  class:overflow-hidden={!overflowVisible}
@@ -235,6 +238,9 @@
235
238
  type='submit'
236
239
  class:whitespace-nowrap={!okButtonWrap}
237
240
  disabled={okDisabled}>
241
+ {#if okFAProps}
242
+ <Icon fw {...okFAProps} />
243
+ {/if}
238
244
  {okButton}
239
245
  </button>
240
246
  {/if}
@@ -1,5 +1,6 @@
1
1
  import { type Snippet } from 'svelte';
2
2
  import type { TEnhanceOptions } from './FormEnhance';
3
+ import { type IFAProps } from './index';
3
4
  type $$ComponentProps = {
4
5
  header?: Snippet;
5
6
  body?: Snippet;
@@ -13,6 +14,7 @@ type $$ComponentProps = {
13
14
  cancelButton?: string | false;
14
15
  okButton?: string | false;
15
16
  okDisabled?: boolean;
17
+ okFAProps?: IFAProps;
16
18
  noCloseOnOK?: boolean;
17
19
  overflowVisible?: boolean;
18
20
  disable?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.90",
3
+ "version": "0.1.91",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",