intelliwaketssveltekitv25 0.1.178 → 0.1.180

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
@@ -37,6 +37,8 @@
37
37
  class: clazz = '',
38
38
  color,
39
39
  classHeader = '',
40
+ classBody = '',
41
+ classFooter = '',
40
42
  classButton = '',
41
43
  borderFooter = true,
42
44
  onOK = () => {
@@ -72,6 +74,8 @@
72
74
  okColor?: string
73
75
  color?: string
74
76
  classHeader?: string
77
+ classBody?: string
78
+ classFooter?: string
75
79
  classButton?: string
76
80
  borderFooter?: boolean
77
81
  onOK?: () => void
@@ -243,7 +247,7 @@
243
247
  </div>
244
248
  {/if}
245
249
  </h4>
246
- <fieldset class='px-4 pb-6 dialogBody overflow-x-hidden'
250
+ <fieldset class='px-4 pb-6 dialogBody overflow-x-hidden {classBody}'
247
251
  disabled={useDisable}
248
252
  class:pt-3={!marginForStickyHeader}
249
253
  class:mt-3={marginForStickyHeader}
@@ -255,7 +259,7 @@
255
259
  </fieldset>
256
260
  {#if !!cancelButton || !!okButton}
257
261
  <fieldset
258
- class='dialogButtons grid grid-cols-[min-content_auto_auto_min-content] border-t-slate-200 dark:border-t-slate-700 px-4 py-2'
262
+ class='dialogButtons grid grid-cols-[min-content_auto_auto_min-content] border-t-slate-200 dark:border-t-slate-700 px-4 py-2 {classFooter}'
259
263
  class:border-t={borderFooter}
260
264
  disabled={useDisable}>
261
265
  <div class='pr-2'>
@@ -26,6 +26,8 @@ type $$ComponentProps = {
26
26
  okColor?: string;
27
27
  color?: string;
28
28
  classHeader?: string;
29
+ classBody?: string;
30
+ classFooter?: string;
29
31
  classButton?: string;
30
32
  borderFooter?: boolean;
31
33
  onOK?: () => void;
@@ -188,8 +188,11 @@
188
188
  })))
189
189
 
190
190
  function setSelected(selIDs: (string | number)[] | undefined, poss: T[]) {
191
- if (selIDs && (selIDs.length !== selected.length || !selected.every(sel => !!selIDs?.some(selID => selID === idValue(sel))))) {
192
- selected = poss.filter(po => !!selIDs?.some(selID => selID == idValue(po)))
191
+ if (selIDs) {
192
+ const newSelected = poss.filter(po => !!selIDs?.some(selID => selID == idValue(po)))
193
+ if (!DeepEqual(selected, newSelected)) {
194
+ selected = poss.filter(po => !!selIDs?.some(selID => selID == idValue(po)))
195
+ }
193
196
  }
194
197
  }
195
198
 
@@ -300,6 +303,7 @@
300
303
  {#snippet toggle()}
301
304
  <div class='inputControl box-border grid grid-cols-[1fr_auto] !p-0 overflow-hidden
302
305
  text-[85%]'
306
+ class:readonly={useDisabled}
303
307
  id="MultiSelectInput"
304
308
  role='button'
305
309
  tabindex={-1}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "0.1.178",
3
+ "version": "0.1.180",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",