Create dialog.ts

Initial release