intelliwaketssveltekitv25 1.0.52 → 1.0.54

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.
@@ -17,6 +17,7 @@
17
17
  SortColumnUpdate,
18
18
  ToUpperCaseWords
19
19
  } from '@solidbasisventures/intelliwaketsfoundation'
20
+ import { onMount } from 'svelte'
20
21
 
21
22
  let {
22
23
  arrayData,
@@ -40,11 +41,20 @@
40
41
 
41
42
  let sorter = $state<ISortColumn<T>>({
42
43
  ...initialSortColumn,
43
- primarySort: arrayStructure.defaultSortColumn ?? null,
44
- primaryAscending: arrayStructure.defaultSortAscending ?? true,
44
+ primarySort: null,
45
+ primaryAscending: true,
45
46
  empty_to_bottom: false
46
47
  })
47
48
 
49
+ onMount(() => {
50
+ sorter = {
51
+ ...initialSortColumn,
52
+ primarySort: arrayStructure.defaultSortColumn ?? null,
53
+ primaryAscending: arrayStructure.defaultSortAscending ?? true,
54
+ empty_to_bottom: false
55
+ }
56
+ })
57
+
48
58
 
49
59
  let validColumns = $derived(ValidColumns(arrayData, arrayStructure))
50
60
 
@@ -135,7 +135,7 @@
135
135
  if (show) scrollToActive()
136
136
  })
137
137
 
138
- const ddStyle = !maxHeight ? undefined : `max-height: ${maxHeight as string};`
138
+ const ddStyle = $derived(!maxHeight ? undefined : `max-height: ${maxHeight as string};`)
139
139
 
140
140
  let indentsExist = $derived(!!ddActions?.some(ddAction => ddAction.active && ddAction.indented))
141
141
  </script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelliwaketssveltekitv25",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/index.d.ts",
@@ -16,12 +16,12 @@
16
16
  "peerDependencies": {
17
17
  "@solidbasisventures/intelliwaketsfoundation": "^5.13.14",
18
18
  "@sveltejs/kit": "^2.49.2",
19
- "svelte": "^5.45.8"
19
+ "svelte": "^5.46.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@solidbasisventures/intelliwaketsfoundation": "^5.13.14",
23
- "@sveltejs/kit": "^2.49.0",
24
- "svelte": "^5.45.2",
23
+ "@sveltejs/kit": "^2.49.2",
24
+ "svelte": "^5.46.0",
25
25
  "@chromatic-com/storybook": "^3.2.6",
26
26
  "@eslint/compat": "^1.2.9",
27
27
  "@eslint/js": "^9.26.0",
@@ -47,12 +47,12 @@
47
47
  "@vitest/coverage-v8": "^3.1.3",
48
48
  "eslint": "^9.26.0",
49
49
  "eslint-config-prettier": "^10.1.5",
50
- "eslint-plugin-svelte": "^3.13.0",
50
+ "eslint-plugin-svelte": "^3.13.1",
51
51
  "globals": "^16.1.0",
52
52
  "jsdom": "^26.1.0",
53
53
  "playwright": "^1.52.0",
54
54
  "prettier": "^3.5.3",
55
- "prettier-plugin-svelte": "^3.4.0",
55
+ "prettier-plugin-svelte": "^3.4.1",
56
56
  "prettier-plugin-tailwindcss": "^0.6.11",
57
57
  "publint": "^0.3.12",
58
58
  "storybook": "^8.6.12",