-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #993 from mammaadDeveloper/next-generation-ts
Next generation ts
- Loading branch information
Showing
13 changed files
with
366 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,79 @@ | ||
// ToDo: Form tag | ||
import { LanguageID } from '../../common/language/language'; | ||
import { RuntimeElementAttribute } from '../element_attribute'; | ||
import { RuntimeElementAttributeType } from '../element_attribute_type'; | ||
import { RuntimeElementAttributeValue } from '../element_attribute_value'; | ||
import { RuntimeElement } from './../element'; | ||
export class RuntimeElementForm extends RuntimeElement{ | ||
constructor(){ | ||
super(true, 'form'); | ||
this.addText(LanguageID.LanguageEnglish, 'form'); | ||
this.addText(LanguageID.LanguagePersian, 'فرم'); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.Url, 'aceept-charset') | ||
.addText(LanguageID.LanguageEnglish, 'accept charset') | ||
.addText(LanguageID.LanguagePersian, 'چارست') | ||
.addReservedValues([ | ||
new RuntimeElementAttributeValue('UTF-8') | ||
.addAllText('utf-8') | ||
.addAllText('utf 8') | ||
.addAllText('utf'), | ||
new RuntimeElementAttributeValue('8859-1') | ||
.addAllText('8859-1') | ||
.addAllText('8859') | ||
.addAllText('ISO-8859-1'), | ||
new RuntimeElementAttributeValue('ANSI').addAllText('ansi'), | ||
new RuntimeElementAttributeValue('ASCII').addAllText('ascii'), | ||
new RuntimeElementAttributeValue('Number').addAllText('number'), | ||
new RuntimeElementAttributeValue('windows-1252') | ||
.addAllText('windows-1252') | ||
.addAllText('windows 1252') | ||
.addAllText('windows') | ||
]) | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.Url, 'action') | ||
.addText(LanguageID.LanguageEnglish, 'action') | ||
.addText(LanguageID.LanguagePersian, 'منبع') | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.Boolean, 'autocomplete') | ||
.addText(LanguageID.LanguageEnglish, 'autocomplete') | ||
.addText(LanguageID.LanguagePersian, 'پرکردن خودکار') | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.String, 'enctype') | ||
.addText(LanguageID.LanguageEnglish, 'enctype') | ||
.addText(LanguageID.LanguagePersian, 'انک تایپ') | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.String, 'method') | ||
.addText(LanguageID.LanguageEnglish, 'method') | ||
.addText(LanguageID.LanguagePersian, 'متد') | ||
.addReservedValues([ | ||
new RuntimeElementAttributeValue('dialog') | ||
.addText(LanguageID.LanguageEnglish, 'dialog') | ||
.addText(LanguageID.LanguagePersian, 'دیالوگ') | ||
]) | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.String, 'name') | ||
.addText(LanguageID.LanguageEnglish, 'name') | ||
.addText(LanguageID.LanguagePersian, 'نام') | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.Boolean, 'novalidate') | ||
.addText(LanguageID.LanguageEnglish, 'novalidate') | ||
.addText(LanguageID.LanguagePersian, 'بدون اعتبارسنجی') | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.String, 'rel') | ||
.addText(LanguageID.LanguageEnglish, 'rel') | ||
.addText(LanguageID.LanguagePersian, 'ریلیشن') | ||
); | ||
this.addAttribute( | ||
new RuntimeElementAttribute(RuntimeElementAttributeType.String, 'target') | ||
.addText(LanguageID.LanguageEnglish, 'target') | ||
.addText(LanguageID.LanguagePersian, 'تارگت') | ||
); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { LanguageID } from "./../../common/language/language"; | ||
import { RuntimeElement } from "./../element"; | ||
|
||
export class RuntimeElementSelect extends RuntimeElement { | ||
export class RuntimeElementSmall extends RuntimeElement { | ||
constructor() { | ||
super(true, 'select'); | ||
this.addText(LanguageID.LanguageEnglish, 'select'); | ||
this.addText(LanguageID.LanguagePersian, 'انتخاب'); | ||
super(true, 'small'); | ||
this.addText(LanguageID.LanguageEnglish, 'small'); | ||
this.addText(LanguageID.LanguagePersian, 'کوچک'); | ||
} | ||
} |
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,10 +1,10 @@ | ||
import { LanguageID } from "./../../common/language/language"; | ||
import { RuntimeElement } from "./../element"; | ||
|
||
export class RuntimeElementSource extends RuntimeElement { | ||
export class RuntimeElementStrong extends RuntimeElement { | ||
constructor() { | ||
super(true, 'source'); | ||
this.addText(LanguageID.LanguageEnglish, 'source'); | ||
this.addText(LanguageID.LanguagePersian, 'منبع'); | ||
super(true, 'strong'); | ||
this.addText(LanguageID.LanguageEnglish, 'strong'); | ||
this.addText(LanguageID.LanguagePersian, 'مهم'); | ||
} | ||
} |
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,10 +1,10 @@ | ||
import { LanguageID } from "./../../common/language/language"; | ||
import { RuntimeElement } from "./../element"; | ||
|
||
export class RuntimeElementSource extends RuntimeElement { | ||
export class RuntimeElementStyle extends RuntimeElement { | ||
constructor() { | ||
super(true, 'source'); | ||
this.addText(LanguageID.LanguageEnglish, 'source'); | ||
this.addText(LanguageID.LanguagePersian, 'منبع'); | ||
super(true, 'style'); | ||
this.addText(LanguageID.LanguageEnglish, 'style'); | ||
this.addText(LanguageID.LanguagePersian, 'استایل'); | ||
} | ||
} |
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.