-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:#1218 moving planner to separated folder
- Loading branch information
Cuong Vu
committed
May 20, 2020
1 parent
4734d6a
commit 3b0c7b6
Showing
25 changed files
with
79 additions
and
68 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
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
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
34 changes: 0 additions & 34 deletions
34
packages/web-components/src/appointment-bookings/client/components/time-cell.svelte
This file was deleted.
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
2 changes: 1 addition & 1 deletion
2
packages/web-components/src/appointment-bookings/client/handlers/submit-form-step2.ts
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
13 changes: 8 additions & 5 deletions
13
...client/components/date-time-picker.svelte → ...client/components/date-time-picker.svelte
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 |
---|---|---|
@@ -1,19 +1,22 @@ | ||
<script> | ||
import { derrivedDayOfWeek } from '../core/store/week-store' | ||
import DateCell from './date-cell.svelte' | ||
export let handleNextStep | ||
export let themeClasses | ||
export let handleOnClickCell | ||
</script> | ||
|
||
<style> | ||
.date-time-picker-container { | ||
display: flex; | ||
} | ||
.date-time-picker-container { | ||
display: flex; | ||
} | ||
</style> | ||
|
||
<div class="date-time-picker-container"> | ||
{#each $derrivedDayOfWeek as date } | ||
{#each $derrivedDayOfWeek as date} | ||
<div> | ||
<DateCell {date} {handleNextStep}/> | ||
<DateCell {themeClasses} {date} {handleNextStep} {handleOnClickCell} /> | ||
</div> | ||
{/each} | ||
</div> |
35 changes: 35 additions & 0 deletions
35
packages/web-components/src/appointment-planner/client/components/time-cell.svelte
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,35 @@ | ||
<script> | ||
export let date | ||
export let startTime = '' | ||
export let handleOnClickCell | ||
export let themeClasses | ||
const handleTimeCellClick = () => { | ||
handleOnClickCell && handleOnClickCell({ appointmentDate: date, appointmentTime: startTime }) | ||
} | ||
</script> | ||
|
||
<style> | ||
.time-cell-container { | ||
padding: 1em; | ||
margin-bottom: 2px; | ||
cursor: pointer; | ||
min-height: 50px; | ||
} | ||
.time-cell-container-visible { | ||
visibility: visible; | ||
} | ||
.time-cell-container-not-visible { | ||
visibility: hidden; | ||
pointer-events: none; | ||
} | ||
</style> | ||
|
||
<div | ||
on:click={handleTimeCellClick} | ||
class="time-cell-container {startTime ? 'time-cell-container-visible' : 'time-cell-container-not-visible'} | ||
{themeClasses.timeCell}"> | ||
<div>{startTime || ''}</div> | ||
</div> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
packages/web-components/src/appointment-planner/server/index.ts
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 @@ | ||
// appointment-planner server goes here |