-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: introduce kebab-cased events (#526)
* refactor: test possible kebab events implementation with checkbox component * style: format 😑 * refactor: kebab events implementation with collapsible component * refactor: kebab events implementation with date-picker component * style: format collapsible * refactor: kebab events implementation with input component * refactor: adapt emitEvent() - 3rd argument (event payload) is now optional * refactor: kebab events implementation with menu-flyout component w/o storybook * refactor: kebab events implementation with menu-flyout-list component * refactor: kebab events implementation with modal component w/o storybook * refactor: kebab events implementation with radio-button component w/o storybook * refactor: kebab events implementation with slider component w/o storybook * refactor: kebab events implementation with switch component w/o storybook * refactor: kebab events implementation with tag component w/o storybook * refactor: kebab events implementation with text-field component w/o storybook * refactor: kebab events implementation with textarea component w/o storybook * refactor: kebab events implementation with rating-stars component w/o storybook * refactor: kebab events implementation with pagination component w/o storybook * refactor: kebab events implementation with data-grid component w/o storybook * refactor: kebab events implementation with dropdown component w/o storybook * refactor: use kebab for internal @listen * fix: adapt visual tests * fix(angular): add post-processing to angular proxies for fixing kebab case event names also update`@stencil/angular-output-target` * chore: add angular proxy processing to build pipeline * refactor: remove dead code (comments) * feat: show new events in stories * refactor: remove unnecessary events from vue templates Co-authored-by: Chris P <pajungc@gmx.de> Co-authored-by: Stefan Kopco <hey@oddcelot.dev> Co-authored-by: Daniel Beck <daniel@beck.win>
- Loading branch information
1 parent
4b12d2d
commit 600e2f4
Showing
68 changed files
with
714 additions
and
225 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,15 @@ | ||
const fs = require('fs'); | ||
const angularProxiesFile = '../components-angular/src/directives/proxies.ts'; | ||
|
||
fs.readFile(angularProxiesFile, 'utf8', (err, data) => { | ||
if (err) return console.log(err); | ||
|
||
// regex matches the kebab case event name | ||
const withEscapedKeys = data.replace(/(\w)+(-(\w)+)+!:/g, (match) => { | ||
return `"${match.split('!:')[0]}"!:`; | ||
}); | ||
|
||
fs.writeFile(angularProxiesFile, withEscapedKeys, 'utf8', (err) => { | ||
if (err) return console.log(err); | ||
}); | ||
}); |
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
Oops, something went wrong.