UNPKG

@haxtheweb/word-count

Version:
109 lines (108 loc) 2.72 kB
{ "schemaVersion": "1.0.0", "readme": "", "modules": [ { "kind": "javascript-module", "path": "word-count.js", "declarations": [ { "kind": "class", "description": "`word-count`\n`Count the words on whatever this wraps`", "name": "WordCount", "members": [ { "kind": "field", "name": "tag", "static": true, "readonly": true }, { "kind": "method", "name": "_updateWords", "parameters": [ { "name": "mutations" } ], "description": "Update words based on data in the slot." }, { "kind": "field", "name": "wordsPrefix", "privacy": "public", "type": { "text": "string" }, "default": "\"Word count\"", "attribute": "words-prefix" }, { "kind": "field", "name": "t", "type": { "text": "object" }, "default": "{ wordsPrefix: this.wordsPrefix, }" }, { "kind": "field", "name": "words", "privacy": "public", "type": { "text": "number" }, "attribute": "words" } ], "attributes": [ { "name": "words", "type": { "text": "number" }, "fieldName": "words" }, { "name": "words-prefix", "type": { "text": "string" }, "default": "\"Word count\"", "fieldName": "wordsPrefix" } ], "mixins": [ { "name": "I18NMixin", "package": "@haxtheweb/i18n-manager/lib/I18NMixin.js" } ], "superclass": { "name": "LitElement", "package": "lit" }, "tagName": "word-count", "customElement": true } ], "exports": [ { "kind": "custom-element-definition", "declaration": { "name": "WordCount", "module": "word-count.js" } }, { "kind": "js", "name": "WordCount", "declaration": { "name": "WordCount", "module": "word-count.js" } } ] } ] }