-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add update employee password (#213)
Refs: closes #211 ## Summary Add update employee password feature.
- Loading branch information
1 parent
1aa3f04
commit 299bf83
Showing
16 changed files
with
534 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
* Size of an icon. | ||
*/ | ||
export type IconSize = | ||
| "xx-small" | ||
| "x-small" | ||
| "small" | ||
| "medium" | ||
|
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,52 @@ | ||
<script lang="ts"> | ||
import type { FormEventHandler } from "svelte/elements"; | ||
import Modal from "./Modal.svelte"; | ||
/** | ||
* Indicates if modal is open. | ||
*/ | ||
export let open: boolean; | ||
/** | ||
* The modal title. | ||
*/ | ||
export let title: string; | ||
/** | ||
* Callback fired when the form is submitted. | ||
*/ | ||
export let onSubmit: FormEventHandler<HTMLFormElement>; | ||
/** | ||
* Callback fired when open state changes. | ||
* @param open Modal open state. | ||
*/ | ||
export let onOpenChange: (open: boolean) => void; | ||
/** | ||
* Indicates whether the modal content is automatically configured with gutters. | ||
* @default false | ||
*/ | ||
export let gutters: boolean = false; | ||
/** | ||
* The form element. | ||
* @default null | ||
*/ | ||
export let form: HTMLFormElement | null = null; | ||
/** | ||
* Callback fired when backdrop is clicked. | ||
* @default null | ||
*/ | ||
export let onBackdropClick: (() => void) | null = null; | ||
</script> | ||
|
||
<form novalidate bind:this={form} on:submit|preventDefault={onSubmit}> | ||
<Modal {open} {gutters} {title} {onOpenChange} {onBackdropClick}> | ||
<slot /> | ||
<svelte:fragment slot="actions"> | ||
<slot name="actions" /> | ||
</svelte:fragment> | ||
</Modal> | ||
</form> |
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
Oops, something went wrong.