{"name":"aurelia-loader","children":[{"id":28,"name":"Loader","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"A generic resource loader, for loading modules, html, css and more."},"children":[{"id":29,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of Loader."},"signatures":[{"id":30,"name":"new Loader","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of Loader."},"type":{"type":"reference","name":"Loader","id":28}}]},{"id":59,"name":"addPlugin","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":60,"name":"addPlugin","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Registers a plugin with the loader."},"parameters":[{"id":61,"name":"pluginName","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The name of the plugin."},"type":{"type":"instrinct","name":"string"}},{"id":62,"name":"implementation","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The plugin implementation.\n"},"type":{"type":"reference","name":"LoaderPlugin","id":2}}],"type":{"type":"instrinct","name":"void"}}]},{"id":55,"name":"applyPluginToUrl","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":56,"name":"applyPluginToUrl","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Alters a module id so that it includes a plugin loader.","returns":"The plugin-based module id.\n"},"parameters":[{"id":57,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The url of the module to load."},"type":{"type":"instrinct","name":"string"}},{"id":58,"name":"pluginName","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The plugin to apply to the module id."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}]},{"id":63,"name":"getOrCreateTemplateRegistryEntry","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":64,"name":"getOrCreateTemplateRegistryEntry","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Gets or creates a TemplateRegistryEntry for the provided address.","returns":"The located or created TemplateRegistryEntry.\n"},"parameters":[{"id":65,"name":"address","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The address of the template."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"TemplateRegistryEntry","id":13}}]},{"id":46,"name":"loadAllModules","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":47,"name":"loadAllModules","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Loads a collection of modules.","returns":"A Promise for an array of loaded modules.\n"},"parameters":[{"id":48,"name":"ids","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The set of module ids to load."},"type":{"type":"instrinct","isArray":true,"name":"string"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","isArray":true,"name":"any"}]}}]},{"id":43,"name":"loadModule","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":44,"name":"loadModule","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Loads a module.","returns":"A Promise for the loaded module.\n"},"parameters":[{"id":45,"name":"id","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The module id to normalize."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"any"}]}}]},{"id":49,"name":"loadTemplate","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":50,"name":"loadTemplate","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Loads a template.","returns":"A Promise for a TemplateRegistryEntry containing the template.\n"},"parameters":[{"id":51,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The url of the template to load."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"reference","name":"TemplateRegistryEntry","id":13}]}}]},{"id":52,"name":"loadText","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":53,"name":"loadText","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Loads a text-based resource.","returns":"A Promise for text content.\n"},"parameters":[{"id":54,"name":"url","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The url of the text file to load."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"string"}]}}]},{"id":31,"name":"map","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":32,"name":"map","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Maps a module id to a source."},"parameters":[{"id":33,"name":"id","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The module id."},"type":{"type":"instrinct","name":"string"}},{"id":34,"name":"source","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The source to map the module to.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"void"}}]},{"id":39,"name":"normalize","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":40,"name":"normalize","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Normalizes a module id.","returns":"A promise for the normalized module id.\n"},"parameters":[{"id":41,"name":"moduleId","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The module id to normalize."},"type":{"type":"instrinct","name":"string"}},{"id":42,"name":"relativeTo","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"What the module id should be normalized relative to."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"string"}]}}]},{"id":35,"name":"normalizeSync","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":36,"name":"normalizeSync","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Normalizes a module id.","returns":"The normalized module id.\n"},"parameters":[{"id":37,"name":"moduleId","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The module id to normalize."},"type":{"type":"instrinct","name":"string"}},{"id":38,"name":"relativeTo","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"What the module id should be normalized relative to."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"string"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[29]},{"title":"Methods","kind":2048,"children":[59,55,63,46,43,49,52,31,39,35]}]},{"id":6,"name":"TemplateDependency","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Represents a dependency of a template."},"children":[{"id":9,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates a template dependency."},"signatures":[{"id":10,"name":"new TemplateDependency","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates a template dependency."},"parameters":[{"id":11,"name":"src","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The source of the dependency."},"type":{"type":"instrinct","name":"string"}},{"id":12,"name":"name","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"shortText":"The local name of the src when used in the template.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"TemplateDependency","id":6}}]},{"id":8,"name":"name","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The local name of the src when used in the template."},"type":{"type":"instrinct","name":"string"}},{"id":7,"name":"src","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The source of the dependency."},"type":{"type":"instrinct","name":"string"}}],"groups":[{"title":"Constructors","kind":512,"children":[9]},{"title":"Properties","kind":1024,"children":[8,7]}]},{"id":13,"name":"TemplateRegistryEntry","kind":128,"kindString":"Class","flags":{"isExported":true},"comment":{"shortText":"Represents an entry in the template registry."},"children":[{"id":19,"name":"constructor","kind":512,"kindString":"Constructor","flags":{"isExported":true},"comment":{"shortText":"Creates an instance of TemplateRegistryEntry."},"signatures":[{"id":20,"name":"new TemplateRegistryEntry","kind":16384,"kindString":"Constructor signature","flags":{},"comment":{"shortText":"Creates an instance of TemplateRegistryEntry."},"parameters":[{"id":21,"name":"address","kind":32768,"kindString":"Parameter","flags":{},"comment":{"shortText":"The address of the template that this entry represents.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"TemplateRegistryEntry","id":13}}]},{"id":14,"name":"address","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The address of the template that this entry represents."},"type":{"type":"instrinct","name":"string"}},{"id":18,"name":"dependencies","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"The dependencies of the associated template. Dependencies are not available until after the template is loaded."},"type":{"type":"reference","isArray":true,"name":"TemplateDependency","id":6}},{"id":23,"name":"factory","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Gets the factory capable of creating instances of this template."},"type":{"type":"instrinct","name":"any"}},{"id":16,"name":"factoryIsReady","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Indicates whether the factory is ready to be used to create instances of the associated template."},"type":{"type":"instrinct","name":"boolean"}},{"id":17,"name":"resources","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Sets the resources associated with this entry."},"type":{"type":"reference","name":"Object"}},{"id":22,"name":"template","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Gets the template for this registry entry."},"type":{"type":"reference","name":"Element"}},{"id":15,"name":"templateIsLoaded","kind":1024,"kindString":"Property","flags":{"isExported":true},"comment":{"shortText":"Indicates whether or not the associated template is loaded ."},"type":{"type":"instrinct","name":"boolean"}},{"id":24,"name":"addDependency","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":25,"name":"addDependency","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Adds a dependency to this template registry entry. Cannot be called until after the template is set."},"parameters":[{"id":26,"name":"src","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The dependency instance or a relative path to its module."},"type":{"type":"union","types":[{"type":"instrinct","name":"string"},{"type":"reference","name":"Function"}]}},{"id":27,"name":"name","kind":32768,"kindString":"Parameter","flags":{"isOptional":true},"comment":{"text":"An optional local name by which this dependency is used in the template.\n"},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"instrinct","name":"void"}}]}],"groups":[{"title":"Constructors","kind":512,"children":[19]},{"title":"Properties","kind":1024,"children":[14,18,23,16,17,22,15]},{"title":"Methods","kind":2048,"children":[24]}]},{"id":2,"name":"LoaderPlugin","kind":256,"kindString":"Interface","flags":{"isExported":true},"comment":{"shortText":"Represents a plugin to the module loader."},"children":[{"id":3,"name":"fetch","kind":2048,"kindString":"Method","flags":{"isExported":true},"signatures":[{"id":4,"name":"fetch","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Fetches the resource.","returns":"A Promise for the requested resouce.\n"},"parameters":[{"id":5,"name":"address","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"The address of the resource."},"type":{"type":"instrinct","name":"string"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"any"}]}}]}],"groups":[{"title":"Methods","kind":2048,"children":[3]}]}],"groups":[{"title":"Classes","kind":128,"children":[28,6,13]},{"title":"Interfaces","kind":256,"children":[2]}]}