-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from itk-dev/feature/1280-simplifying-plannin…
…g-form 1280: Simplified planning form. Added default value
- Loading branch information
Showing
23 changed files
with
500 additions
and
881 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Controller } from "@hotwired/stimulus"; | ||
|
||
/** Scroll to active sprint in planning view */ | ||
export default class extends Controller { | ||
static targets = ["column"]; | ||
|
||
connect() { | ||
const activeColumn = this.columnTargets.find((el) => el.dataset.active); | ||
|
||
if (!activeColumn) { | ||
return; | ||
} | ||
|
||
const activeIndex = activeColumn.dataset.index; | ||
const scrollToIndex = Math.max(0, activeIndex - 1); | ||
const scrollToColumn = this.columnTargets.find( | ||
(el) => el.dataset.index == scrollToIndex, | ||
); | ||
const firstColumn = this.columnTargets.find( | ||
(el) => el.dataset.index == 1, | ||
); | ||
|
||
if (!scrollToColumn || !firstColumn) { | ||
return; | ||
} | ||
|
||
const targetColumnX = scrollToColumn.getBoundingClientRect().x; | ||
const firstColumnX = firstColumn.getBoundingClientRect().x; | ||
|
||
scrollContainer.scrollTo(targetColumnX - firstColumnX, 0); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Import the svg core library | ||
import { library, dom } from "@fortawesome/fontawesome-svg-core"; | ||
|
||
// Import the icons from the free solid package. | ||
import { | ||
faMaximize, | ||
faEyeSlash, | ||
faMinimize, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
|
||
library.add(faMaximize, faEyeSlash, faMinimize); | ||
dom.i2svg(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.