From bf785cd5b9ff65a0d98a23029f092b8c6bcfdc29 Mon Sep 17 00:00:00 2001 From: Erik Lieben Date: Sat, 22 Oct 2016 12:06:22 +0200 Subject: [PATCH] fix(autocomplete): add auto complete to all elements of https://developer.mozilla.org/en-US/docs/Web/HTML/Element --- .../parser/aureliaTags.js | 187 +++++++++++++++--- .../parser/aureliaTags.js.map | 2 +- .../parser/aureliaTags.ts | 103 +++++++++- 3 files changed, 251 insertions(+), 41 deletions(-) diff --git a/dist/src/server/aurelia-languageservice/parser/aureliaTags.js b/dist/src/server/aurelia-languageservice/parser/aureliaTags.js index cc74c64a..d110ddec 100644 --- a/dist/src/server/aurelia-languageservice/parser/aureliaTags.js +++ b/dist/src/server/aurelia-languageservice/parser/aureliaTags.js @@ -59,45 +59,168 @@ exports.AURELIA_GLOBAL_ATTRIBUTES = [ new models_1.HTMLAttributeSpecification('compile-spy', [], true), ]; const actionRedirectOptions = ['delegate', 'trigger', 'call']; +const actionRedirectOptionsNonBubbling = ['trigger', 'call']; const globalEvents = [ - new models_1.HTMLAttributeSpecification('abort', defaultBindings), - new models_1.HTMLAttributeSpecification('blur', defaultBindings), - new models_1.HTMLAttributeSpecification('change', defaultBindings), - new models_1.HTMLAttributeSpecification('click', defaultBindings), - new models_1.HTMLAttributeSpecification('close', defaultBindings), - new models_1.HTMLAttributeSpecification('contextmenu', defaultBindings), - new models_1.HTMLAttributeSpecification('dblclick', defaultBindings), - new models_1.HTMLAttributeSpecification('error', defaultBindings), - new models_1.HTMLAttributeSpecification('focus', defaultBindings), - new models_1.HTMLAttributeSpecification('input', defaultBindings), - new models_1.HTMLAttributeSpecification('keydown', defaultBindings), - new models_1.HTMLAttributeSpecification('keypress', defaultBindings), - new models_1.HTMLAttributeSpecification('keyup', defaultBindings), - new models_1.HTMLAttributeSpecification('load', defaultBindings), - new models_1.HTMLAttributeSpecification('mousedown', defaultBindings), - new models_1.HTMLAttributeSpecification('mousemove', defaultBindings), - new models_1.HTMLAttributeSpecification('mouseout', defaultBindings), - new models_1.HTMLAttributeSpecification('mouseover', defaultBindings), - new models_1.HTMLAttributeSpecification('mouseup', defaultBindings), - new models_1.HTMLAttributeSpecification('reset', defaultBindings), - new models_1.HTMLAttributeSpecification('resize', defaultBindings), - new models_1.HTMLAttributeSpecification('scroll', defaultBindings), - new models_1.HTMLAttributeSpecification('select', defaultBindings), - new models_1.HTMLAttributeSpecification('submit', defaultBindings), + // Resource Events + new models_1.HTMLAttributeSpecification('error', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('abort', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('load', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('unload', actionRedirectOptionsNonBubbling), + // Focus Events + new models_1.HTMLAttributeSpecification('blur', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('focus', actionRedirectOptionsNonBubbling), + // CSS Animation Events + new models_1.HTMLAttributeSpecification('animationstart', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('animationend', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('animationiteration', actionRedirectOptions), + // Text Composition Events + new models_1.HTMLAttributeSpecification('compositionstart', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('compositionupdate', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('compositionend', actionRedirectOptions), + // View Events + new models_1.HTMLAttributeSpecification('scroll', actionRedirectOptionsNonBubbling), + // Clipboard Events + new models_1.HTMLAttributeSpecification('cut', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('copy', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('paste', actionRedirectOptions), + // Keyboard Events + new models_1.HTMLAttributeSpecification('keydown', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('keypress', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('keyup', actionRedirectOptions), + // Mouse Events + new models_1.HTMLAttributeSpecification('mouseenter', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('mouseover', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('mousemove', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('mousedown', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('mouseup', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('mouseout', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('click', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('dblclick', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('contextmenu', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('wheel', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('mouseleave', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('mouseout', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('select', actionRedirectOptionsNonBubbling), + new models_1.HTMLAttributeSpecification('pointerlockchange', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('pointerlockerror', actionRedirectOptions), + // Drag & Drop Events + new models_1.HTMLAttributeSpecification('dragstart', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('drag', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('dragend', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('dragenter', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('dragover', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('dragleave', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('drop', actionRedirectOptions), + // Touch events + new models_1.HTMLAttributeSpecification('touchstart', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('touchmove', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('touchend', actionRedirectOptions), + // Other + new models_1.HTMLAttributeSpecification('close', actionRedirectOptions), ]; exports.AURELIA_EVENTS = { + 'a': globalEvents, + 'abbr': globalEvents, + 'address': globalEvents, + 'area': globalEvents, + 'article': globalEvents, + 'aside': globalEvents, + 'audio': globalEvents, + 'b': globalEvents, + 'base': globalEvents, + 'bdi': globalEvents, + 'bdo': globalEvents, + 'blockquote': globalEvents, + 'body': globalEvents, + 'br': globalEvents, + 'button': globalEvents, + 'canvas': globalEvents, + 'caption': globalEvents, + 'cite': globalEvents, + 'code': globalEvents, + 'col': globalEvents, + 'colgroup': globalEvents, + 'data': globalEvents, + 'datalist': globalEvents, + 'dd': globalEvents, + 'del': globalEvents, + 'details': globalEvents, + 'dfn': globalEvents, + 'div': globalEvents, + 'dl': globalEvents, + 'dt': globalEvents, + 'em': globalEvents, + 'embed': globalEvents, + 'fieldset': globalEvents, + 'figcaption': globalEvents, + 'figure': globalEvents, + 'footer': globalEvents, 'form': [ ...globalEvents, + new models_1.HTMLAttributeSpecification('reset', actionRedirectOptions), new models_1.HTMLAttributeSpecification('submit', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('change', actionRedirectOptions), + new models_1.HTMLAttributeSpecification('input', actionRedirectOptions), ], - 'input': [...globalEvents], - 'textarea': [...globalEvents], - 'select': [...globalEvents], - 'div': [...globalEvents], + 'header': globalEvents, + 'hr': globalEvents, + 'i': globalEvents, + 'iframe': globalEvents, + 'img': globalEvents, + 'input': globalEvents, + 'ins': globalEvents, + 'kbd': globalEvents, + 'label': globalEvents, + 'legend': globalEvents, + 'li': globalEvents, + 'link': globalEvents, + 'main': globalEvents, + 'map': globalEvents, + 'mark': globalEvents, + 'meter': globalEvents, + 'nav': globalEvents, + 'object': globalEvents, + 'ol': globalEvents, + 'optgroup': globalEvents, + 'option': globalEvents, + 'output': globalEvents, 'p': [...globalEvents], - 'span': [...globalEvents], - 'ul': [...globalEvents], - 'ol': [...globalEvents], - 'li': [...globalEvents] + 'param': [...globalEvents], + 'pre': [...globalEvents], + 'progress': [...globalEvents], + 'q': globalEvents, + 'rp': globalEvents, + 'rt': globalEvents, + 'rtc': globalEvents, + 'ruby': globalEvents, + 's': globalEvents, + 'samp': globalEvents, + 'section': globalEvents, + 'select': globalEvents, + 'shadow': globalEvents, + 'small': globalEvents, + 'source': globalEvents, + 'span': globalEvents, + 'strong': globalEvents, + 'sub': globalEvents, + 'summary': globalEvents, + 'sup': globalEvents, + 'table': globalEvents, + 'tbody': globalEvents, + 'td': globalEvents, + 'template': globalEvents, + 'textarea': globalEvents, + 'tfoot': globalEvents, + 'th': globalEvents, + 'thead': globalEvents, + 'time': globalEvents, + 'title': globalEvents, + 'tr': globalEvents, + 'track': globalEvents, + 'u': globalEvents, + 'ul': globalEvents, + 'var': globalEvents, + 'video': globalEvents, + 'wbr': globalEvents, }; //# sourceMappingURL=aureliaTags.js.map \ No newline at end of file diff --git a/dist/src/server/aurelia-languageservice/parser/aureliaTags.js.map b/dist/src/server/aurelia-languageservice/parser/aureliaTags.js.map index 0d561b45..5f6c9370 100644 --- a/dist/src/server/aurelia-languageservice/parser/aureliaTags.js.map +++ b/dist/src/server/aurelia-languageservice/parser/aureliaTags.js.map @@ -1 +1 @@ -{"version":3,"file":"aureliaTags.js","sourceRoot":"","sources":["../../../../../src/server/aurelia-languageservice/parser/aureliaTags.ts"],"names":[],"mappings":";AAAA,yBAAoG,UAAU,CAAC,CAAA;AAElG,oBAAY,GAAY;IACnC,SAAS,EAAG,IAAI,6BAAoB,CAAC,gGAAgG,EAAE;QACrI,IAAI,mCAA0B,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC;QACvD,IAAI,mCAA0B,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAE,CAAC;IAC1D,aAAa,EAAE,IAAI,6BAAoB,CAAC,oCAAoC,EAAE;QAC5E,IAAI,mCAA0B,CAAC,MAAM,CAAC;QACtC,IAAI,mCAA0B,CAAC,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC;QAC9D,IAAI,mCAA0B,CAAE,mBAAmB,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC;QACrE,IAAI,mCAA0B,CAAC,cAAc,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACnE,SAAS,EAAE,IAAI,6BAAoB,CAAC,2CAA2C,E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C;IACzD,IAAI,mCAA0B,CAAC,QAAQ,EAAE,eAAe,CAAC;IACzD,IAAI,mCAA0B,CAAC,QAAQ,EAAE,eAAe,CAAC;IACzD,IAAI,mCAA0B,CAAC,QAAQ,EAAE,eAAe,CAAC;CAC5D,CAAC;AAEW,sBAAc,GAAc;IACvC,MAAM,EAAE;QACN,GAAG,YAAY;QACf,IAAI,mCAA0B,CAAC,QAAQ,EAAE,qBAAqB,CAAC;KAChE;IACD,OAAO,EAAE,CAAC,GAAG,YAAY,CAAC;IAC1B,UAAU,EAAE,CAAC,GAAG,YAAY,CAAC;IAC7B,QAAQ,EAAE,CAAC,GAAG,YAAY,CAAC;IAC3B,KAAK,EAAE,CAAC,GAAG,YAAY,CAAC;IACxB,GAAG,EAAE,CAAC,GAAG,YAAY,CAAC;IACtB,MAAM,EAAE,CAAC,GAAG,YAAY,CAAC;IACzB,IAAI,EAAE,CAAC,GAAG,YAAY,CAAC;IACvB,IAAI,EAAE,CAAC,GAAG,YAAY,CAAC;IACvB,IAAI,EAAE,CAAC,GAAG,YAAY,CAAC;CACxB,CAAA"} \ No newline at end of file +{"version":3,"file":"aureliaTags.js","sourceRoot":"","sources":["../../../../../src/server/aurelia-languageservice/parser/aureliaTags.ts"],"names":[],"mappings":";AAAA,yBAAoG,UAAU,CAAC,CAAA;AAElG,oBAAY,GAAY;IACnC,SAAS,EAAG,IAAI,6BAAoB,CAAC,gGAAgG,EAAE;QACrI,IAAI,mCAA0B,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC;QACvD,IAAI,mCAA0B,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAE,CAAC;IAC1D,aAAa,EAAE,IAAI,6BAAoB,CAAC,oCAAoC,EAAE;QAC5E,IAAI,mCAA0B,CAAC,MAAM,CAAC;QACtC,IAAI,mCAA0B,CAAC,aAAa,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC;QAC9D,IAAI,m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E,YAAY;IAClB,KAAK,EAAE,YAAY;IACnB,MAAM,EAAE,YAAY;IACpB,GAAG,EAAE,YAAY;IACjB,MAAM,EAAE,YAAY;IACpB,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,YAAY;IACtB,QAAQ,EAAE,YAAY;IACtB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,YAAY;IACtB,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,YAAY;IACnB,SAAS,EAAE,YAAY;IACvB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,YAAY;IACpB,OAAO,EAAE,YAAY;IACrB,IAAI,EAAE,YAAY;IAClB,OAAO,EAAE,YAAY;IACrB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,YAAY;IAClB,KAAK,EAAE,YAAY;IACnB,OAAO,EAAE,YAAY;IACrB,KAAK,EAAE,YAAY;CACpB,CAAA"} \ No newline at end of file diff --git a/src/server/aurelia-languageservice/parser/aureliaTags.ts b/src/server/aurelia-languageservice/parser/aureliaTags.ts index 0651798d..e4164e7b 100644 --- a/src/server/aurelia-languageservice/parser/aureliaTags.ts +++ b/src/server/aurelia-languageservice/parser/aureliaTags.ts @@ -136,6 +136,42 @@ const globalEvents = [ ]; export const AURELIA_EVENTS: IEventSet = { + 'a': globalEvents, + 'abbr': globalEvents, + 'address': globalEvents, + 'area': globalEvents, + 'article': globalEvents, + 'aside': globalEvents, + 'audio': globalEvents, + 'b': globalEvents, + 'base': globalEvents, + 'bdi': globalEvents, + 'bdo': globalEvents, + 'blockquote': globalEvents, + 'body': globalEvents, + 'br': globalEvents, + 'button': globalEvents, + 'canvas': globalEvents, + 'caption': globalEvents, + 'cite': globalEvents, + 'code': globalEvents, + 'col': globalEvents, + 'colgroup': globalEvents, + 'data': globalEvents, + 'datalist': globalEvents, + 'dd': globalEvents, + 'del': globalEvents, + 'details': globalEvents, + 'dfn': globalEvents, + 'div': globalEvents, + 'dl': globalEvents, + 'dt': globalEvents, + 'em': globalEvents, + 'embed': globalEvents, + 'fieldset': globalEvents, + 'figcaption': globalEvents, + 'figure': globalEvents, + 'footer': globalEvents, 'form': [ ...globalEvents, new HTMLAttributeSpecification('reset', actionRedirectOptions), @@ -143,13 +179,64 @@ export const AURELIA_EVENTS: IEventSet = { new HTMLAttributeSpecification('change', actionRedirectOptions), new HTMLAttributeSpecification('input', actionRedirectOptions), ], - 'input': [...globalEvents], - 'textarea': [...globalEvents], - 'select': [...globalEvents], - 'div': [...globalEvents], + 'header': globalEvents, + 'hr': globalEvents, + 'i': globalEvents, + 'iframe': globalEvents, + 'img': globalEvents, + 'input': globalEvents, + 'ins': globalEvents, + 'kbd': globalEvents, + 'label': globalEvents, + 'legend': globalEvents, + 'li': globalEvents, + 'link': globalEvents, + 'main': globalEvents, + 'map': globalEvents, + 'mark': globalEvents, + 'meter': globalEvents, + 'nav': globalEvents, + 'object': globalEvents, + 'ol': globalEvents, + 'optgroup': globalEvents, + 'option': globalEvents, + 'output': globalEvents, 'p': [...globalEvents], - 'span': [...globalEvents], - 'ul': [...globalEvents], - 'ol': [...globalEvents], - 'li': [...globalEvents] + 'param': [...globalEvents], + 'pre': [...globalEvents], + 'progress': [...globalEvents], + 'q': globalEvents, + 'rp': globalEvents, + 'rt': globalEvents, + 'rtc': globalEvents, + 'ruby': globalEvents, + 's': globalEvents, + 'samp': globalEvents, + 'section': globalEvents, + 'select': globalEvents, + 'shadow': globalEvents, + 'small': globalEvents, + 'source': globalEvents, + 'span': globalEvents, + 'strong': globalEvents, + 'sub': globalEvents, + 'summary': globalEvents, + 'sup': globalEvents, + 'table': globalEvents, + 'tbody': globalEvents, + 'td': globalEvents, + 'template': globalEvents, + 'textarea': globalEvents, + 'tfoot': globalEvents, + 'th': globalEvents, + 'thead': globalEvents, + 'time': globalEvents, + 'title': globalEvents, + 'tr': globalEvents, + 'track': globalEvents, + 'u': globalEvents, + 'ul': globalEvents, + 'var': globalEvents, + 'video': globalEvents, + 'wbr': globalEvents, }