-
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.
fix(consts): move constants to central location
- Loading branch information
1 parent
801ab1b
commit 3469e2a
Showing
19 changed files
with
55 additions
and
59 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export enum FormHook { | ||
BeforeValidate = 'beforeValidate', | ||
AfterValidate = 'afterValidate', | ||
|
||
BeforeSubmit = 'beforeSubmit', | ||
AfterSubmit = 'afterSubmit', | ||
|
||
BeforeReset = 'beforeReset', | ||
AfterReset = 'afterReset', | ||
|
||
ElementChange = 'afterElementChange', | ||
|
||
BeforeAddElement = 'beforeAddElement', | ||
AfterAddElement = 'afterAddElement', | ||
} | ||
|
||
export const FORM_HOOKS = Object.freeze(Object.values(FormHook)); | ||
|
||
export const COMPONENT_LIFECYCLE_HOOKS = [ | ||
'onCreated', | ||
'onActivated', | ||
'onBeforeMount', | ||
'onBeforeUnmount', | ||
'onBeforeUpdate', | ||
'onDeactivated', | ||
'onMounted', | ||
'onUnmounted', | ||
'onUpdated', | ||
] as const; | ||
|
||
export const PLAIN_ELEMENT_HOOKS = ['blur', 'click', 'focus', ...COMPONENT_LIFECYCLE_HOOKS] as const; | ||
|
||
export const INTERACTIVE_ELEMENT_HOOKS = [ | ||
'blur', | ||
'focus', | ||
'sanitize', | ||
'update', | ||
'validate', | ||
...PLAIN_ELEMENT_HOOKS, | ||
] as const; |
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 +1,2 @@ | ||
export * from './componentLifecycleHooks'; | ||
export * from './hooks'; | ||
export * from './provides'; |
File renamed without changes.
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 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
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
export * from '../validator'; | ||
export * from './InteractiveElement'; | ||
export * from './InteractiveElement.types'; | ||
export * from './hooks'; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './PlainElement'; | ||
export * from './PlainElement.types'; | ||
export * from './hooks'; |
This file was deleted.
Oops, something went wrong.