diff --git a/README.md b/README.md index 1f6f046..c753803 100755 --- a/README.md +++ b/README.md @@ -54,7 +54,11 @@ dart run build_runner test dart run build_runner watch dart pub global activate webdev +``` +OR + +```shell webdev build webdev serve diff --git a/lib/css_object_model.dart b/lib/css_object_model.dart new file mode 100644 index 0000000..e428be0 --- /dev/null +++ b/lib/css_object_model.dart @@ -0,0 +1,9 @@ +import 'package:web/web.dart'; + +// Cascading Style Sheet Object Model + +// Cascading Style Sheet +CSSStyleSheet styleSheet = CSSStyleSheet(); + +// Array of Cascading Style Sheets +StyleSheetList styleSheetArray = document.styleSheets; diff --git a/lib/elements.dart b/lib/elements.dart deleted file mode 100644 index 5601cf3..0000000 --- a/lib/elements.dart +++ /dev/null @@ -1,227 +0,0 @@ -import 'package:web/web.dart'; - -// Hypertext Markup Language Elements - -Element anchor = document.querySelector('a')!; - -Element abbreviation = document.querySelector('abbr')!; - -Element contactAddress = document.querySelector('address')!; - -Element imageMapArea = document.querySelector('area')!; - -Element article = document.querySelector('article')!; - -Element aside = document.querySelector('aside')!; - -Element audio = document.querySelector('audio')!; - -Element bringAttentionTo = document.querySelector('b')!; - -Element baseUniformResourceLocator = document.querySelector('base')!; - -Element bidirectionalIsolate = document.querySelector('bdi')!; - -Element bidirectionalTextOverride = document.querySelector('bdo')!; - -Element blockQuotation = document.querySelector('blockquote')!; - -Element body = document.querySelector('body')!; - -Element lineBreak = document.querySelector('br')!; - -Element button = document.querySelector('button')!; - -Element graphicscanvas = document.querySelector('canvas')!; - -Element caption = document.querySelector('caption')!; - -Element citation = document.querySelector('cite')!; - -Element inlineCode = document.querySelector('code')!; - -Element column = document.querySelector('col')!; - -Element columnGroup = document.querySelector('colgroup')!; - -Element data = document.querySelector('data')!; - -Element dataList = document.querySelector('datalist')!; - -Element descriptionDetails = document.querySelector('dd')!; - -Element deletedText = document.querySelector('del')!; - -Element detailsDisclosure = document.querySelector('details')!; - -Element definition = document.querySelector('dfn')!; - -Element dialog = document.querySelector('dialog')!; - -Element division = document.querySelector('div')!; - -Element descriptionList = document.querySelector('dl')!; - -Element descriptionTerm = document.querySelector('dt')!; - -Element emphasis = document.querySelector('em')!; - -Element embedded = document.querySelector('embed')!; - -Element fieldSet = document.querySelector('fieldset')!; - -Element figureCaption = document.querySelector('figcaption')!; - -Element figure = document.querySelector('figure')!; - -Element footer = document.querySelector('footer')!; - -Element form = document.querySelector('form')!; - -Element sectionHeadingOne = document.querySelector('h1')!; - -Element sectionHeadingTwo = document.querySelector('h2')!; - -Element sectionHeadingThree = document.querySelector('h3')!; - -Element sectionHeadingFour = document.querySelector('h4')!; - -Element sectionHeadingFive = document.querySelector('h5')!; - -Element sectionHeadingSix = document.querySelector('h6')!; - -Element heading = document.querySelector('head')!; - -Element header = document.querySelector('header')!; - -Element headingGroup = document.querySelector('hgroup')!; - -Element thematicBreakHorizontalRule = document.querySelector('hr')!; - -Element documentRoot = document.querySelector('html')!; - -Element idiomaticText = document.querySelector('i')!; - -Element inlineFrame = document.querySelector('iframe')!; - -Element image = document.querySelector('img')!; - -Element input = document.querySelector('input')!; - -Element insertedText = document.querySelector('ins')!; - -Element keyboardInput = document.querySelector('kbd')!; - -Element label = document.querySelector('label')!; - -Element fieldSetlegend = document.querySelector('legend')!; - -Element listItem = document.querySelector('li')!; - -Element hyperLink = document.querySelector('link')!; - -Element mainElement = document.querySelector('main')!; - -Element imageMap = document.querySelector('map')!; - -Element markedText = document.querySelector('mark')!; - -Element menu = document.querySelector('menu')!; - -Element metaData = document.querySelector('meta')!; - -Element meter = document.querySelector('meter')!; - -Element navigationSection = document.querySelector('nav')!; - -Element noScript = document.querySelector('noscript')!; - -Element object = document.querySelector('object')!; - -Element orderedList = document.querySelector('ol')!; - -Element optionGroup = document.querySelector('optgroup')!; - -Element option = document.querySelector('option')!; - -Element output = document.querySelector('output')!; - -Element paragraph = document.querySelector('p')!; - -Element picture = document.querySelector('picture')!; - -Element preformattedText = document.querySelector('pre')!; - -Element progressIndicator = document.querySelector('progress')!; - -Element inlineQuotation = document.querySelector('q')!; - -Element rubyFallbackParenthesis = document.querySelector('rp')!; - -Element rubyText = document.querySelector('rt')!; - -Element rubyAnnotation = document.querySelector('ruby')!; - -Element strikethrough = document.querySelector('s')!; - -Element sampleOutput = document.querySelector('samp')!; - -Element script = document.querySelector('script')!; - -Element search = document.querySelector('search')!; - -Element genericSection = document.querySelector('section')!; - -Element select = document.querySelector('select')!; - -Element webComponentSlot = document.querySelector('slot')!; - -Element sideComment = document.querySelector('small')!; - -Element mediaSource = document.querySelector('source')!; - -Element span = document.querySelector('span')!; - -Element strongImportance = document.querySelector('strong')!; - -Element style = document.querySelector('style')!; - -Element subscript = document.querySelector('sub')!; - -Element disclosureSummary = document.querySelector('summary')!; - -Element superscript = document.querySelector('sup')!; - -Element table = document.querySelector('table')!; - -Element tableBody = document.querySelector('tbody')!; - -Element tableDataCell = document.querySelector('td')!; - -Element template = document.querySelector('template')!; - -Element textArea = document.querySelector('textarea')!; - -Element tableFoot = document.querySelector('tfoot')!; - -Element tableHeader = document.querySelector('th')!; - -Element tableHeading = document.querySelector('thead')!; - -Element dateTime = document.querySelector('time')!; - -Element title = document.querySelector('title')!; - -Element tableRow = document.querySelector('tr')!; - -Element embeddedTextTrack = document.querySelector('track')!; - -Element unarticulatedAnnotationUnderline = document.querySelector('u')!; - -Element unorderedList = document.querySelector('ul')!; - -Element variable = document.querySelector('var')!; - -Element video = document.querySelector('video')!; - -Element lineBreakOpportunity = document.querySelector('wbr')!; diff --git a/lib/html_attributes.dart b/lib/html_attributes.dart new file mode 100644 index 0000000..eb6691c --- /dev/null +++ b/lib/html_attributes.dart @@ -0,0 +1,43 @@ +import 'package:web/web.dart'; + +// Hypertext Markup Language Attributes + +Attr accept = document.createAttribute('accept'); + +Attr autoComplete = document.createAttribute('autocomplete'); + +Attr capture = document.createAttribute('capture'); + +Attr crossOrigin = document.createAttribute('crossorigin'); + +Attr directionName = document.createAttribute('dirname'); + +Attr disabled = document.createAttribute('disabled'); + +Attr elementTiming = document.createAttribute('elementtiming'); + +Attr forAttribute = document.createAttribute('for'); + +Attr maximumValue = document.createAttribute('max'); + +Attr maximumLength = document.createAttribute('maxlength'); + +Attr minimumValue = document.createAttribute('min'); + +Attr minimumlength = document.createAttribute('minlength'); + +Attr multiple = document.createAttribute('multiple'); + +Attr pattern = document.createAttribute('pattern'); + +Attr placeHolder = document.createAttribute('placeholder'); + +Attr readOnly = document.createAttribute('readonly'); + +Attr resourceRelationship = document.createAttribute('rel'); + +Attr required = document.createAttribute('required'); + +Attr size = document.createAttribute('size'); + +Attr steppingInterval = document.createAttribute('step'); diff --git a/lib/html_elements.dart b/lib/html_elements.dart new file mode 100644 index 0000000..9a92393 --- /dev/null +++ b/lib/html_elements.dart @@ -0,0 +1,227 @@ +import 'package:web/web.dart'; + +// Hypertext Markup Language Elements + +Element anchor = document.createElement('a'); + +Element abbreviation = document.createElement('abbr'); + +Element contactAddress = document.createElement('address'); + +Element imageMapArea = document.createElement('area'); + +Element article = document.createElement('article'); + +Element aside = document.createElement('aside'); + +Element audio = document.createElement('audio'); + +Element bringAttentionTo = document.createElement('b'); + +Element baseUniformResourceLocator = document.createElement('base'); + +Element bidirectionalIsolate = document.createElement('bdi'); + +Element bidirectionalTextOverride = document.createElement('bdo'); + +Element blockQuotation = document.createElement('blockquote'); + +Element body = document.createElement('body'); + +Element lineBreak = document.createElement('br'); + +Element button = document.createElement('button'); + +Element graphicscanvas = document.createElement('canvas'); + +Element caption = document.createElement('caption'); + +Element citation = document.createElement('cite'); + +Element inlineCode = document.createElement('code'); + +Element column = document.createElement('col'); + +Element columnGroup = document.createElement('colgroup'); + +Element data = document.createElement('data'); + +Element dataList = document.createElement('datalist'); + +Element descriptionDetails = document.createElement('dd'); + +Element deletedText = document.createElement('del'); + +Element detailsDisclosure = document.createElement('details'); + +Element definition = document.createElement('dfn'); + +Element dialog = document.createElement('dialog'); + +Element division = document.createElement('div'); + +Element descriptionList = document.createElement('dl'); + +Element descriptionTerm = document.createElement('dt'); + +Element emphasis = document.createElement('em'); + +Element embedded = document.createElement('embed'); + +Element fieldSet = document.createElement('fieldset'); + +Element figureCaption = document.createElement('figcaption'); + +Element figure = document.createElement('figure'); + +Element footer = document.createElement('footer'); + +Element form = document.createElement('form'); + +Element sectionHeadingOne = document.createElement('h1'); + +Element sectionHeadingTwo = document.createElement('h2'); + +Element sectionHeadingThree = document.createElement('h3'); + +Element sectionHeadingFour = document.createElement('h4'); + +Element sectionHeadingFive = document.createElement('h5'); + +Element sectionHeadingSix = document.createElement('h6'); + +Element heading = document.createElement('head'); + +Element header = document.createElement('header'); + +Element headingGroup = document.createElement('hgroup'); + +Element thematicBreakHorizontalRule = document.createElement('hr'); + +Element documentRoot = document.createElement('html'); + +Element idiomaticText = document.createElement('i'); + +Element inlineFrame = document.createElement('iframe'); + +Element image = document.createElement('img'); + +Element input = document.createElement('input'); + +Element insertedText = document.createElement('ins'); + +Element keyboardInput = document.createElement('kbd'); + +Element label = document.createElement('label'); + +Element fieldSetlegend = document.createElement('legend'); + +Element listItem = document.createElement('li'); + +Element hyperLink = document.createElement('link'); + +Element mainElement = document.createElement('main'); + +Element imageMap = document.createElement('map'); + +Element markedText = document.createElement('mark'); + +Element menu = document.createElement('menu'); + +Element metaData = document.createElement('meta'); + +Element meter = document.createElement('meter'); + +Element navigationSection = document.createElement('nav'); + +Element noScript = document.createElement('noscript'); + +Element object = document.createElement('object'); + +Element orderedList = document.createElement('ol'); + +Element optionGroup = document.createElement('optgroup'); + +Element option = document.createElement('option'); + +Element output = document.createElement('output'); + +Element paragraph = document.createElement('p'); + +Element picture = document.createElement('picture'); + +Element preformattedText = document.createElement('pre'); + +Element progressIndicator = document.createElement('progress'); + +Element inlineQuotation = document.createElement('q'); + +Element rubyFallbackParenthesis = document.createElement('rp'); + +Element rubyText = document.createElement('rt'); + +Element rubyAnnotation = document.createElement('ruby'); + +Element strikethrough = document.createElement('s'); + +Element sampleOutput = document.createElement('samp'); + +Element script = document.createElement('script'); + +Element search = document.createElement('search'); + +Element genericSection = document.createElement('section'); + +Element select = document.createElement('select'); + +Element webComponentSlot = document.createElement('slot'); + +Element sideComment = document.createElement('small'); + +Element mediaSource = document.createElement('source'); + +Element span = document.createElement('span'); + +Element strongImportance = document.createElement('strong'); + +Element style = document.createElement('style'); + +Element subscript = document.createElement('sub'); + +Element disclosureSummary = document.createElement('summary'); + +Element superscript = document.createElement('sup'); + +Element table = document.createElement('table'); + +Element tableBody = document.createElement('tbody'); + +Element tableDataCell = document.createElement('td'); + +Element template = document.createElement('template'); + +Element textArea = document.createElement('textarea'); + +Element tableFoot = document.createElement('tfoot'); + +Element tableHeader = document.createElement('th'); + +Element tableHeading = document.createElement('thead'); + +Element dateTime = document.createElement('time'); + +Element title = document.createElement('title'); + +Element tableRow = document.createElement('tr'); + +Element embeddedTextTrack = document.createElement('track'); + +Element unarticulatedAnnotationUnderline = document.createElement('u'); + +Element unorderedList = document.createElement('ul'); + +Element variable = document.createElement('var'); + +Element video = document.createElement('video'); + +Element lineBreakOpportunity = document.createElement('wbr'); diff --git a/lib/html_global_attributes.dart b/lib/html_global_attributes.dart new file mode 100644 index 0000000..bec3cc6 --- /dev/null +++ b/lib/html_global_attributes.dart @@ -0,0 +1,63 @@ +import 'package:web/web.dart'; + +// Hypertext Markup Language Global Attributes + +Attr accessKey = document.createAttribute('accesskey'); + +Attr autoCapitalize = document.createAttribute('autocapitalize'); + +Attr autoFocus = document.createAttribute('autofocus'); + +Attr classAttribute = document.createAttribute('class'); + +Attr contentEditable = document.createAttribute('contenteditable'); + +Attr textDirection = document.createAttribute('dir'); + +Attr draggable = document.createAttribute('draggable'); + +Attr enterKeyHint = document.createAttribute('enterkeyhint'); + +Attr exportParts = document.createAttribute('exportparts'); + +Attr hidden = document.createAttribute('hidden'); + +Attr identifier = document.createAttribute('id'); + +Attr inert = document.createAttribute('inert'); + +Attr inputMode = document.createAttribute('inputmode'); + +Attr isAttribute = document.createAttribute('is'); + +Attr itemIdentifier = document.createAttribute('itemid'); + +Attr itemProperties = document.createAttribute('itemprop'); + +Attr itemReference = document.createAttribute('itemref'); + +Attr itemScope = document.createAttribute('itemscope'); + +Attr itemType = document.createAttribute('itemtype'); + +Attr language = document.createAttribute('lang'); + +Attr numberUsedOnce = document.createAttribute('nonce'); + +Attr elementPart = document.createAttribute('part'); + +Attr popover = document.createAttribute('popover'); + +Attr elementSlot = document.createAttribute('slot'); + +Attr spellCheck = document.createAttribute('spellcheck'); + +Attr elementStyle = document.createAttribute('style'); + +Attr tabIndex = document.createAttribute('tabindex'); + +Attr elementTitle = document.createAttribute('title'); + +Attr translate = document.createAttribute('translate'); + +Attr writingSuggestions = document.createAttribute('writingsuggestions'); diff --git a/lib/main.dart b/lib/main.dart index e3975d1..bebbb6c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,5 +1,5 @@ import 'package:web/web.dart'; -import 'package:data_interchange/elements.dart'; +import 'package:data_interchange/html_elements.dart'; void main() async { division.text = 'Data Interchange';