@aurelia/template-compiler
Advanced tools
Comparing version 2.0.1-dev.202405230048 to 2.0.1-dev.202406121156
@@ -6,2 +6,9 @@ # Change Log | ||
<a name="2.0.0-beta.19"></a> | ||
# 2.0.0-beta.19 (2024-06-12) | ||
### Bug Fixes: | ||
* **plugin-conventions:** relax typescript dependency version ([02921ca](https://github.com/aurelia/aurelia/commit/02921ca)) | ||
<a name="2.0.0-beta.18"></a> | ||
@@ -8,0 +15,0 @@ # 2.0.0-beta.18 (2024-05-23) |
@@ -5,3 +5,3 @@ export { BindingMode, } from './binding-mode'; | ||
export { type AttributePatternDefinition, type AttributePatternKind, IAttributePattern, IAttributeParser, AttributeParser, ISyntaxInterpreter, SyntaxInterpreter, AttrSyntax, AttributePattern, Interpretation, ColonPrefixedBindAttributePattern, AtPrefixedTriggerAttributePattern, DotSeparatedAttributePattern, EventAttributePattern, RefAttributePattern, attributePattern, } from './attribute-pattern'; | ||
export { type PartialBindingCommandDefinition, type BindingCommandDecorator, BindingCommandDefinition, type BindingCommandInstance, type BindingCommandStaticAuDefinition, type BindingCommandKind, type IBindableCommandInfo, type ICommandBuildInfo, type IPlainAttrCommandInfo, BindingCommand, AttrBindingCommand, BindingCommandType, CaptureBindingCommand, ClassBindingCommand, DefaultBindingCommand, ForBindingCommand, FromViewBindingCommand, OneTimeBindingCommand, RefBindingCommand, SpreadValueBindingCommand, StyleBindingCommand, ToViewBindingCommand, TriggerBindingCommand, TwoWayBindingCommand, bindingCommand, } from './binding-command'; | ||
export { type PartialBindingCommandDefinition, type BindingCommandDecorator, BindingCommandDefinition, type BindingCommandInstance, type BindingCommandStaticAuDefinition, type BindingCommandKind, type IBindableCommandInfo, type ICommandBuildInfo, type IPlainAttrCommandInfo, BindingCommand, AttrBindingCommand, type BindingCommandType, CaptureBindingCommand, ClassBindingCommand, DefaultBindingCommand, ForBindingCommand, FromViewBindingCommand, OneTimeBindingCommand, RefBindingCommand, SpreadValueBindingCommand, StyleBindingCommand, ToViewBindingCommand, TriggerBindingCommand, TwoWayBindingCommand, bindingCommand, } from './binding-command'; | ||
export { IResourceResolver, IBindingCommandResolver, type IElementBindablesInfo, type IAttributeBindablesInfo, ITemplateCompilerHooks, TemplateCompiler, TemplateCompilerHooks, templateCompilerHooks, generateElementName, } from './template-compiler'; | ||
@@ -8,0 +8,0 @@ export { ITemplateElementFactory, } from './template-element-factory'; |
@@ -7,11 +7,10 @@ /** | ||
*/ | ||
export interface ITemplateElementFactory extends TemplateElementFactory { | ||
export interface ITemplateElementFactory { | ||
createTemplate(input: string | Node): HTMLTemplateElement; | ||
} | ||
export declare const ITemplateElementFactory: import("@aurelia/kernel").InterfaceSymbol<ITemplateElementFactory>; | ||
export declare class TemplateElementFactory { | ||
export declare class TemplateElementFactory implements ITemplateElementFactory { | ||
private t; | ||
createTemplate(markup: string): HTMLTemplateElement; | ||
createTemplate(node: Node): HTMLTemplateElement; | ||
createTemplate(input: string | Node): HTMLTemplateElement; | ||
} | ||
//# sourceMappingURL=template-element-factory.d.ts.map |
{ | ||
"name": "@aurelia/template-compiler", | ||
"version": "2.0.1-dev.202405230048", | ||
"version": "2.0.1-dev.202406121156", | ||
"main": "dist/cjs/index.cjs", | ||
@@ -56,5 +56,5 @@ "module": "dist/esm/index.mjs", | ||
"dependencies": { | ||
"@aurelia/metadata": "2.0.1-dev.202405230048", | ||
"@aurelia/kernel": "2.0.1-dev.202405230048", | ||
"@aurelia/expression-parser": "2.0.1-dev.202405230048" | ||
"@aurelia/metadata": "2.0.1-dev.202406121156", | ||
"@aurelia/kernel": "2.0.1-dev.202406121156", | ||
"@aurelia/expression-parser": "2.0.1-dev.202406121156" | ||
}, | ||
@@ -61,0 +61,0 @@ "devDependencies": { |
@@ -534,2 +534,3 @@ import type { Constructable, IRegistry, } from '@aurelia/kernel'; | ||
// Decorators are by nature static, so we need to store the metadata on the class itself, assuming only one set of patterns per class. | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access | ||
context.metadata[registrableMetadataKey] = registrable; | ||
@@ -554,3 +555,3 @@ return target; | ||
public static [Symbol.metadata] = { | ||
[registrableMetadataKey]: AttributePattern.create( | ||
[registrableMetadataKey]: /*@__PURE__*/AttributePattern.create( | ||
[ | ||
@@ -574,3 +575,3 @@ { pattern: 'PART.PART', symbols: '.' }, | ||
public static [Symbol.metadata] = { | ||
[registrableMetadataKey]: AttributePattern.create( | ||
[registrableMetadataKey]: /*@__PURE__*/AttributePattern.create( | ||
[ | ||
@@ -603,3 +604,3 @@ { pattern: 'ref', symbols: '' }, | ||
public static [Symbol.metadata] = { | ||
[registrableMetadataKey]: AttributePattern.create( | ||
[registrableMetadataKey]: /*@__PURE__*/AttributePattern.create( | ||
[ | ||
@@ -623,3 +624,3 @@ { pattern: 'PART.trigger:PART', symbols: '.:' }, | ||
public static [Symbol.metadata] = { | ||
[registrableMetadataKey]: AttributePattern.create( | ||
[registrableMetadataKey]: /*@__PURE__*/AttributePattern.create( | ||
[{ pattern: ':PART', symbols: ':' }], | ||
@@ -638,3 +639,3 @@ ColonPrefixedBindAttributePattern | ||
public static [Symbol.metadata] = { | ||
[registrableMetadataKey]: AttributePattern.create( | ||
[registrableMetadataKey]: /*@__PURE__*/AttributePattern.create( | ||
[ | ||
@@ -641,0 +642,0 @@ { pattern: '@PART', symbols: '@' }, |
@@ -52,3 +52,3 @@ export { | ||
AttrBindingCommand, | ||
BindingCommandType, | ||
type BindingCommandType, | ||
CaptureBindingCommand, | ||
@@ -55,0 +55,0 @@ ClassBindingCommand, |
@@ -11,3 +11,5 @@ import { IPlatform, resolve } from '@aurelia/kernel'; | ||
*/ | ||
export interface ITemplateElementFactory extends TemplateElementFactory {} | ||
export interface ITemplateElementFactory { | ||
createTemplate(input: string | Node): HTMLTemplateElement; | ||
} | ||
export const ITemplateElementFactory = /*@__PURE__*/createInterface<ITemplateElementFactory>('ITemplateElementFactory', x => x.singleton(TemplateElementFactory)); | ||
@@ -17,3 +19,3 @@ | ||
export class TemplateElementFactory { | ||
export class TemplateElementFactory implements ITemplateElementFactory { | ||
/** @internal */ | ||
@@ -28,5 +30,2 @@ private readonly p = resolve(IPlatform) as IDomPlatform; | ||
public createTemplate(markup: string): HTMLTemplateElement; | ||
public createTemplate(node: Node): HTMLTemplateElement; | ||
public createTemplate(input: string | Node): HTMLTemplateElement; | ||
public createTemplate(input: string | Node): HTMLTemplateElement { | ||
@@ -33,0 +32,0 @@ if (isString(input)) { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1086894
20351
+ Added@aurelia/expression-parser@2.0.1-dev.202406121156(transitive)
+ Added@aurelia/kernel@2.0.1-dev.202406121156(transitive)
+ Added@aurelia/metadata@2.0.1-dev.202406121156(transitive)
+ Added@aurelia/platform@2.0.1-dev.202406121156(transitive)
- Removed@aurelia/expression-parser@2.0.1-dev.202405230048(transitive)
- Removed@aurelia/kernel@2.0.1-dev.202405230048(transitive)
- Removed@aurelia/metadata@2.0.1-dev.202405230048(transitive)
- Removed@aurelia/platform@2.0.1-dev.202405230048(transitive)