Skip to content

Commit ad1af9b

Browse files
authored
Merge pull request #190 from techlab/v7.x
jQuery Smartwizard v7 - Complete TypeScript conversion and build system updates
2 parents f2c161c + da9e6eb commit ad1af9b

85 files changed

Lines changed: 17706 additions & 28375 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,32 @@
44
/vendor/
55
/public/
66

7+
# Logs
8+
logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
14+
lerna-debug.log*
15+
16+
node_modules
17+
dist
18+
dist-ssr
19+
*.local
20+
.rollup-cache
21+
722
# IDE Files
823
#-------------------------
924
/nbproject/
1025
.idea/*
1126
.vscode/*
27+
.DS_Store
28+
*.suo
29+
*.ntvs*
30+
*.njsproj
31+
*.sln
32+
*.sw?
1233

1334
## Sublime Text cache files
1435
*.tmlanguage.cache

.npmignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.lock-wscript
99
.svn
1010
.wafpickle-*
11+
.rollup-cache
1112
CVS
1213
npm-debug.log
1314

@@ -71,3 +72,9 @@ Thumbs.db
7172
/gulpfile.js
7273
/karma.conf.js
7374
/.travis.yml
75+
/playwright.config.js
76+
/vitest.config.js
77+
/vite.config.ts
78+
/rollup.config.mjs
79+
/tsconfig.json
80+
/jest.config.js

.travis.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,62 @@
11
CHANGELOG
22
=========
33

4+
v7.0.1
5+
-----
6+
**All new jQuery SmartWizard v7 — full TypeScript rewrite**
7+
8+
- **Added:** Complete rewrite in TypeScript with bundled type declarations (`dist/types/`)
9+
- **Added:** `displayMode` option — `auto` (follows system preference) | `dark` | `light` | `none`
10+
- **Added:** `swipeNavigation` option — swipe left/right on touch devices to navigate steps (`enabled`, `threshold`)
11+
- **Added:** Horizontal mouse-wheel scroll on the nav bar when steps overflow
12+
- **Added:** `behavior.useUrlHash` and `behavior.supportBrowserHistory` options replace old `enableUrlHash` / `backButtonSupport`
13+
- **Added:** `navigation.completed.clickable` option — control whether completed steps are re-clickable
14+
- **Added:** `DATA_ATTRIBUTES` constants for `data-theme` attribute management
15+
- **Added:** `contentLoader` callback for dynamic step content loading
16+
- **Added:** CSS animation support for transitions via `transition.css` (`prefix`, `forward`, `backward` class groups)
17+
- **Added:** Nav scroll buttons shown automatically when nav content overflows
18+
- **Added:** UMD, ESM, and CJS build outputs
19+
- **Added:** `scrollToView` option — scroll the active step anchor into view on step change
20+
21+
- **Changed:** All options restructured with clearer namespacing (see README for full reference)
22+
- `selected``initialStep`
23+
- `autoAdjustHeight``behavior.autoHeight`
24+
- `enableUrlHash``behavior.useUrlHash`
25+
- `backButtonSupport``behavior.supportBrowserHistory`
26+
- `anchor.enableNavigation``navigation.enabled`
27+
- `anchor.enableNavigationAlways``navigation.alwaysClickable`
28+
- `anchor.enableDoneState``navigation.completed.enabled`
29+
- `anchor.markPreviousStepsAsDone``navigation.completed.completeAllPreviousSteps`
30+
- `anchor.unDoneOnBackNavigation``navigation.completed.clearOnBack`
31+
- `anchor.enableDoneStateNavigation``navigation.completed.clickable`
32+
- `transition.animation``transition.effect`
33+
- `toolbar.showNextButton` / `showPreviousButton``toolbar.buttons.showNext` / `showPrevious`
34+
- `toolbar.extraHtml``toolbar.extraElements`
35+
- `keyboard.keyNavigation``keyboardNavigation.enabled`
36+
- `keyboard.keyLeft` / `keyRight``keyboardNavigation.keys.left` / `right`
37+
- `lang``localization.buttons`
38+
- `disabledSteps`, `errorSteps`, `warningSteps`, `hiddenSteps``stepStates.disabled`, `.error`, `.warning`, `.hidden`
39+
- `getContent``contentLoader`
40+
- **Changed:** Events renamed for consistency
41+
- `leaveStep``leave.sw`
42+
- `showStep``shown.sw`
43+
- `initialized``initialized.sw`
44+
- `loaded``loaded.sw`
45+
- **Changed:** `reset()` no longer manipulates URL hash unless `useUrlHash` + `supportBrowserHistory` are both enabled
46+
- **Changed:** `transition.css` animations require the element to be visible before class is applied (fixes `animationend` not firing)
47+
- **Changed:** `this.default(...)` references inside transition handlers replaced with direct `transitions.default(...)` to prevent `TypeError` when handlers are invoked without object context
48+
- **Changed:** Progressbar width uses `.toFixed(2)` for cleaner CSS values
49+
- **Changed:** `ANIMATIONEND` / `ANIMATIONCANCEL` events are now namespaced (`.sw`)
50+
51+
- **Fixed:** `this is undefined` TypeError in CSS / fade / slide transition fallbacks
52+
- **Fixed:** `animationend` event not firing on hidden elements (element now shown before animation class is applied)
53+
- **Fixed:** Double-invocation of transition `complete` callback (guard flag added)
54+
- **Fixed:** URL hash incorrectly always set; now only when both `useUrlHash` and `supportBrowserHistory` are `true`
55+
56+
- **Removed:** `justified` option (layout handled by CSS)
57+
- **Removed:** `cycleNavigation` option
58+
- **Removed:** `STEPCHANGE` and `RESET` events (use `shown.sw` and handle externally)
59+
460
v6.0.6
561
-----
662
- **Fixed:** History back on step1 not working https://github.com/techlab/jquery-smartwizard/issues/152

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
- Add documentation.
99
- Add a demo page.
1010
- [GitHub Sponsor](https://github.com/sponsors/techlab) - Sponsor on GitHub.
11-
- [Donate on Paypal](https://www.paypal.me/dipuraj)
1211

1312
## How to contribute code?
1413
Here are the basic steps to get started contributing code:
@@ -17,7 +16,7 @@ Here are the basic steps to get started contributing code:
1716
2. Install the dependencies, run `npm install`.
1817
3. Start the project, run `npm start`.
1918
4. Replicate the issue you're trying to fix or spec out the feature you're trying to add.
20-
5. Modify the code to fix the bug or to add the feature. All changes should happen in the relevant `src/js/*.js` and `src/scss/*.scss` files.
19+
5. Modify the code to fix the bug or to add the feature. All changes should happen in the relevant `src/ts/*.js` and `src/styles/*.scss` files.
2120
6. Verify that your fix or feature works.
2221
7. Run the test cases by running `npm test`, you can also add more test cases based on your new change.
2322
8. Build the code by running `npm run build`.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 Dipu Raj
3+
Copyright (c) 2026 Dipu Raj
44
http://techlaboratory.net
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)