@htmlplus/element 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/client/decorators/attributes.js +3 -3
- package/client/decorators/element.js +11 -4
- package/client/decorators/event.js +2 -3
- package/client/decorators/listen.js +2 -1
- package/client/decorators/method.js +4 -5
- package/client/decorators/property.d.ts +0 -4
- package/client/decorators/property.js +38 -43
- package/client/decorators/state.js +17 -26
- package/client/decorators/watch.d.ts +7 -1
- package/client/decorators/watch.js +24 -10
- package/client/helpers/classes.d.ts +1 -1
- package/client/helpers/index.d.ts +3 -3
- package/client/helpers/index.js +3 -3
- package/client/helpers/{is-rtl.d.ts → isRTL.d.ts} +0 -0
- package/client/helpers/{is-rtl.js → isRTL.js} +0 -0
- package/client/helpers/{query-all.d.ts → queryAll.d.ts} +0 -0
- package/client/helpers/{query-all.js → queryAll.js} +0 -0
- package/client/helpers/slots.js +1 -1
- package/client/helpers/styles.js +2 -1
- package/client/helpers/{to-unit.d.ts → toUnit.d.ts} +0 -0
- package/client/helpers/{to-unit.js → toUnit.js} +0 -0
- package/client/utils/{append-to-method.d.ts → appendToMethod.d.ts} +0 -0
- package/client/utils/{append-to-method.js → appendToMethod.js} +0 -0
- package/client/utils/{define-property.d.ts → defineProperty.d.ts} +0 -0
- package/client/utils/{define-property.js → defineProperty.js} +0 -0
- package/client/utils/event.d.ts +5 -2
- package/client/utils/event.js +7 -4
- package/client/utils/{get-members.d.ts → getMembers.d.ts} +0 -0
- package/client/utils/{get-members.js → getMembers.js} +0 -0
- package/client/utils/{get-styles.d.ts → getStyles.d.ts} +0 -0
- package/client/utils/{get-styles.js → getStyles.js} +0 -0
- package/client/utils/index.d.ts +11 -14
- package/client/utils/index.js +11 -14
- package/client/utils/{is-event.d.ts → isEvent.d.ts} +0 -0
- package/client/utils/{is-event.js → isEvent.js} +0 -0
- package/client/utils/{is-server.d.ts → isServer.d.ts} +0 -0
- package/client/utils/{is-server.js → isServer.js} +0 -0
- package/client/utils/{parse-value.d.ts → parseValue.d.ts} +0 -0
- package/client/utils/{parse-value.js → parseValue.js} +2 -2
- package/client/utils/request.d.ts +3 -1
- package/client/utils/request.js +15 -5
- package/client/utils/sync.js +3 -3
- package/client/utils/{to-boolean.d.ts → toBoolean.d.ts} +0 -0
- package/client/utils/{to-boolean.js → toBoolean.js} +0 -0
- package/client/utils/{to-event.d.ts → toEvent.d.ts} +0 -0
- package/client/utils/{to-event.js → toEvent.js} +0 -0
- package/client/utils/{type-of.d.ts → typeOf.d.ts} +0 -0
- package/client/utils/{type-of.js → typeOf.js} +0 -0
- package/client/utils/{update-attribute.d.ts → updateAttribute.d.ts} +0 -0
- package/client/utils/{update-attribute.js → updateAttribute.js} +0 -0
- package/client/vendor/uhtml.d.ts +22 -0
- package/client/vendor/uhtml.js +700 -0
- package/compiler/compiler.js +42 -22
- package/compiler/plugins/customElement.d.ts +4 -1
- package/compiler/plugins/customElement.js +96 -77
- package/compiler/plugins/customElementReact/customElementReact.d.ts +1 -1
- package/compiler/plugins/customElementReact/customElementReact.js +12 -8
- package/compiler/plugins/customElementReact/templates/package.json.hbs +2 -2
- package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.compact.ts.hbs +4 -4
- package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.ts.hbs +1 -1
- package/compiler/plugins/{docs.d.ts → document.d.ts} +3 -4
- package/compiler/plugins/document.js +254 -0
- package/compiler/plugins/external.d.ts +9 -0
- package/compiler/plugins/external.js +25 -0
- package/compiler/plugins/extract.d.ts +1 -1
- package/compiler/plugins/extract.js +3 -11
- package/compiler/plugins/index.d.ts +2 -0
- package/compiler/plugins/index.js +2 -0
- package/compiler/plugins/style.js +1 -1
- package/compiler/utils/{get-initializer.d.ts → getInitializer.d.ts} +0 -0
- package/compiler/utils/{get-initializer.js → getInitializer.js} +0 -0
- package/compiler/utils/{get-type.d.ts → getType.d.ts} +0 -0
- package/compiler/utils/{get-type.js → getType.js} +0 -0
- package/compiler/utils/getTypeReference.d.ts +2 -0
- package/compiler/utils/getTypeReference.js +33 -0
- package/compiler/utils/{has-decorator.d.ts → hasDecorator.d.ts} +0 -0
- package/compiler/utils/{has-decorator.js → hasDecorator.js} +0 -0
- package/compiler/utils/index.d.ts +8 -7
- package/compiler/utils/index.js +8 -7
- package/compiler/utils/{is-directory-empty.d.ts → isDirectoryEmpty.d.ts} +0 -0
- package/compiler/utils/{is-directory-empty.js → isDirectoryEmpty.js} +0 -0
- package/compiler/utils/{print-type.d.ts → printType.d.ts} +0 -0
- package/compiler/utils/{print-type.js → printType.js} +0 -0
- package/compiler/utils/{render-template.d.ts → renderTemplate.d.ts} +0 -0
- package/compiler/utils/{render-template.js → renderTemplate.js} +0 -0
- package/compiler/utils/tags.d.ts +13 -0
- package/compiler/utils/tags.js +53 -0
- package/constants/index.d.ts +1 -2
- package/constants/index.js +2 -2
- package/package.json +22 -27
- package/types/context.d.ts +6 -0
- package/types/index.d.ts +1 -1
- package/types/index.js +1 -1
- package/types/plugin.d.ts +4 -3
- package/types/{plus-element.d.ts → plusElement.d.ts} +0 -0
- package/types/{plus-element.js → plusElement.js} +0 -0
- package/client/utils/is-ready.d.ts +0 -2
- package/client/utils/is-ready.js +0 -4
- package/client/utils/on-ready.d.ts +0 -2
- package/client/utils/on-ready.js +0 -6
- package/client/utils/render.d.ts +0 -2
- package/client/utils/render.js +0 -19
- package/compiler/plugins/componentDependencyResolver.d.ts +0 -5
- package/compiler/plugins/componentDependencyResolver.js +0 -40
- package/compiler/plugins/docs.js +0 -320
- package/compiler/utils/get-tags.d.ts +0 -6
- package/compiler/utils/get-tags.js +0 -34
- package/runtime/index.d.ts +0 -1
- package/runtime/index.js +0 -4
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Holds all details wrappers needed to render the content further on.
|
|
3
|
+
* @constructor
|
|
4
|
+
* @param {string} type The hole type, either `html` or `svg`.
|
|
5
|
+
* @param {string[]} template The template literals used to the define the content.
|
|
6
|
+
* @param {Array} values Zero, one, or more interpolated values to render.
|
|
7
|
+
*/
|
|
8
|
+
export class Hole {
|
|
9
|
+
constructor(type: any, template: any, values: any);
|
|
10
|
+
type: any;
|
|
11
|
+
template: any;
|
|
12
|
+
values: any;
|
|
13
|
+
}
|
|
14
|
+
export const html: ((template: any, ...values: any[]) => Hole) & {
|
|
15
|
+
for(ref: any, id: any): any;
|
|
16
|
+
node: (template: any, ...values: any[]) => any;
|
|
17
|
+
};
|
|
18
|
+
export function render(where: any, what: any): any;
|
|
19
|
+
export const svg: ((template: any, ...values: any[]) => Hole) & {
|
|
20
|
+
for(ref: any, id: any): any;
|
|
21
|
+
node: (template: any, ...values: any[]) => any;
|
|
22
|
+
};
|