@htmlplus/element 0.3.0 → 0.3.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 +4 -4
- package/package.json +8 -45
- package/dist/client/decorators/attributes.d.ts +0 -2
- package/dist/client/decorators/attributes.js +0 -13
- package/dist/client/decorators/bind.d.ts +0 -4
- package/dist/client/decorators/bind.js +0 -17
- package/dist/client/decorators/element.d.ts +0 -2
- package/dist/client/decorators/element.js +0 -49
- package/dist/client/decorators/event.d.ts +0 -21
- package/dist/client/decorators/event.js +0 -18
- package/dist/client/decorators/index.d.ts +0 -9
- package/dist/client/decorators/index.js +0 -9
- package/dist/client/decorators/listen.d.ts +0 -12
- package/dist/client/decorators/listen.js +0 -30
- package/dist/client/decorators/method.d.ts +0 -2
- package/dist/client/decorators/method.js +0 -12
- package/dist/client/decorators/property.d.ts +0 -12
- package/dist/client/decorators/property.js +0 -51
- package/dist/client/decorators/state.d.ts +0 -2
- package/dist/client/decorators/state.js +0 -32
- package/dist/client/decorators/watch.d.ts +0 -2
- package/dist/client/decorators/watch.js +0 -17
- package/dist/client/helpers/classes.d.ts +0 -1
- package/dist/client/helpers/classes.js +0 -62
- package/dist/client/helpers/direction.d.ts +0 -3
- package/dist/client/helpers/direction.js +0 -4
- package/dist/client/helpers/index.d.ts +0 -9
- package/dist/client/helpers/index.js +0 -9
- package/dist/client/helpers/is-rtl.d.ts +0 -2
- package/dist/client/helpers/is-rtl.js +0 -2
- package/dist/client/helpers/query-all.d.ts +0 -3
- package/dist/client/helpers/query-all.js +0 -5
- package/dist/client/helpers/query.d.ts +0 -3
- package/dist/client/helpers/query.js +0 -5
- package/dist/client/helpers/slots.d.ts +0 -6
- package/dist/client/helpers/slots.js +0 -15
- package/dist/client/helpers/styles.d.ts +0 -1
- package/dist/client/helpers/styles.js +0 -16
- package/dist/client/helpers/to-unit.d.ts +0 -1
- package/dist/client/helpers/to-unit.js +0 -7
- package/dist/client/index.d.ts +0 -3
- package/dist/client/index.js +0 -3
- package/dist/client/services/index.d.ts +0 -1
- package/dist/client/services/index.js +0 -1
- package/dist/client/services/link.d.ts +0 -4
- package/dist/client/services/link.js +0 -196
- package/dist/client/utils/append-to-method.d.ts +0 -2
- package/dist/client/utils/append-to-method.js +0 -7
- package/dist/client/utils/call.d.ts +0 -2
- package/dist/client/utils/call.js +0 -4
- package/dist/client/utils/define-property.d.ts +0 -1
- package/dist/client/utils/define-property.js +0 -1
- package/dist/client/utils/event.d.ts +0 -2
- package/dist/client/utils/event.js +0 -6
- package/dist/client/utils/get-members.d.ts +0 -2
- package/dist/client/utils/get-members.js +0 -5
- package/dist/client/utils/get-styles.d.ts +0 -2
- package/dist/client/utils/get-styles.js +0 -5
- package/dist/client/utils/host.d.ts +0 -2
- package/dist/client/utils/host.js +0 -4
- package/dist/client/utils/index.d.ts +0 -20
- package/dist/client/utils/index.js +0 -20
- package/dist/client/utils/is-event.d.ts +0 -1
- package/dist/client/utils/is-event.js +0 -3
- package/dist/client/utils/is-ready.d.ts +0 -2
- package/dist/client/utils/is-ready.js +0 -4
- package/dist/client/utils/is-server.d.ts +0 -1
- package/dist/client/utils/is-server.js +0 -3
- package/dist/client/utils/on-ready.d.ts +0 -2
- package/dist/client/utils/on-ready.js +0 -6
- package/dist/client/utils/parse-value.d.ts +0 -1
- package/dist/client/utils/parse-value.js +0 -15
- package/dist/client/utils/render.d.ts +0 -2
- package/dist/client/utils/render.js +0 -19
- package/dist/client/utils/request.d.ts +0 -2
- package/dist/client/utils/request.js +0 -28
- package/dist/client/utils/sync.d.ts +0 -1
- package/dist/client/utils/sync.js +0 -31
- package/dist/client/utils/task.d.ts +0 -6
- package/dist/client/utils/task.js +0 -37
- package/dist/client/utils/to-boolean.d.ts +0 -1
- package/dist/client/utils/to-boolean.js +0 -3
- package/dist/client/utils/to-event.d.ts +0 -1
- package/dist/client/utils/to-event.js +0 -3
- package/dist/client/utils/type-of.d.ts +0 -3
- package/dist/client/utils/type-of.js +0 -6
- package/dist/client/utils/update-attribute.d.ts +0 -1
- package/dist/client/utils/update-attribute.js +0 -7
- package/dist/compiler/compiler.d.ts +0 -7
- package/dist/compiler/compiler.js +0 -55
- package/dist/compiler/index.d.ts +0 -2
- package/dist/compiler/index.js +0 -2
- package/dist/compiler/plugins/componentDependencyResolver.d.ts +0 -5
- package/dist/compiler/plugins/componentDependencyResolver.js +0 -40
- package/dist/compiler/plugins/customElement.d.ts +0 -5
- package/dist/compiler/plugins/customElement.js +0 -138
- package/dist/compiler/plugins/customElementReact/customElementReact.d.ts +0 -12
- package/dist/compiler/plugins/customElementReact/customElementReact.js +0 -125
- package/dist/compiler/plugins/customElementReact/index.d.ts +0 -1
- package/dist/compiler/plugins/customElementReact/index.js +0 -1
- package/dist/compiler/plugins/customElementReact/templates/README.md.hbs +0 -1
- package/dist/compiler/plugins/customElementReact/templates/_.gitignore.hbs +0 -2
- package/dist/compiler/plugins/customElementReact/templates/package.json.hbs +0 -37
- package/dist/compiler/plugins/customElementReact/templates/rollup.config.js.hbs +0 -21
- package/dist/compiler/plugins/customElementReact/templates/src/components/index.ts.hbs +0 -17
- package/dist/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.compact.ts.hbs +0 -18
- package/dist/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.ts.hbs +0 -26
- package/dist/compiler/plugins/customElementReact/templates/src/index.ts.hbs +0 -1
- package/dist/compiler/plugins/customElementReact/templates/src/proxy.ts.hbs +0 -278
- package/dist/compiler/plugins/customElementReact/templates/tsconfig.json.hbs +0 -17
- package/dist/compiler/plugins/docs.d.ts +0 -11
- package/dist/compiler/plugins/docs.js +0 -320
- package/dist/compiler/plugins/extract.d.ts +0 -8
- package/dist/compiler/plugins/extract.js +0 -70
- package/dist/compiler/plugins/index.d.ts +0 -7
- package/dist/compiler/plugins/index.js +0 -7
- package/dist/compiler/plugins/parse.d.ts +0 -5
- package/dist/compiler/plugins/parse.js +0 -16
- package/dist/compiler/plugins/read.d.ts +0 -5
- package/dist/compiler/plugins/read.js +0 -13
- package/dist/compiler/plugins/style.d.ts +0 -12
- package/dist/compiler/plugins/style.js +0 -42
- package/dist/compiler/plugins/validate.d.ts +0 -5
- package/dist/compiler/plugins/validate.js +0 -40
- package/dist/compiler/plugins/vscode.d.ts +0 -11
- package/dist/compiler/plugins/vscode.js +0 -83
- package/dist/compiler/utils/__dirname.d.ts +0 -1
- package/dist/compiler/utils/__dirname.js +0 -5
- package/dist/compiler/utils/get-initializer.d.ts +0 -2
- package/dist/compiler/utils/get-initializer.js +0 -10
- package/dist/compiler/utils/get-tags.d.ts +0 -6
- package/dist/compiler/utils/get-tags.js +0 -34
- package/dist/compiler/utils/get-type.d.ts +0 -2
- package/dist/compiler/utils/get-type.js +0 -69
- package/dist/compiler/utils/has-decorator.d.ts +0 -1
- package/dist/compiler/utils/has-decorator.js +0 -5
- package/dist/compiler/utils/index.d.ts +0 -10
- package/dist/compiler/utils/index.js +0 -10
- package/dist/compiler/utils/is-directory-empty.d.ts +0 -1
- package/dist/compiler/utils/is-directory-empty.js +0 -10
- package/dist/compiler/utils/print-type.d.ts +0 -1
- package/dist/compiler/utils/print-type.js +0 -69
- package/dist/compiler/utils/print.d.ts +0 -2
- package/dist/compiler/utils/print.js +0 -5
- package/dist/compiler/utils/render-template.d.ts +0 -1
- package/dist/compiler/utils/render-template.js +0 -25
- package/dist/compiler/utils/visitor.d.ts +0 -2
- package/dist/compiler/utils/visitor.js +0 -5
- package/dist/constants/index.d.ts +0 -23
- package/dist/constants/index.js +0 -29
- package/dist/runtime/index.d.ts +0 -1
- package/dist/runtime/index.js +0 -4
- package/dist/types/context.d.ts +0 -32
- package/dist/types/context.js +0 -1
- package/dist/types/global.d.ts +0 -4
- package/dist/types/global.js +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.js +0 -4
- package/dist/types/plugin.d.ts +0 -9
- package/dist/types/plugin.js +0 -1
- package/dist/types/plus-element.d.ts +0 -2
- package/dist/types/plus-element.js +0 -1
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const PACKAGE_NAME = "@htmlplus/element";
|
|
2
|
-
export declare const API_HOST = "$host$";
|
|
3
|
-
export declare const API_READY = "$ready$";
|
|
4
|
-
export declare const API_SETUP = "$setup$";
|
|
5
|
-
export declare const DECORATOR_ELEMENT = "Element";
|
|
6
|
-
export declare const DECORATOR_EVENT = "Event";
|
|
7
|
-
export declare const DECORATOR_PROPERTY = "Property";
|
|
8
|
-
export declare const DECORATOR_STATE = "State";
|
|
9
|
-
export declare const DECORATOR_METHOD = "Method";
|
|
10
|
-
export declare const LIFECYCLE_ADOPTED = "adoptedCallback";
|
|
11
|
-
export declare const LIFECYCLE_CONNECTED = "connectedCallback";
|
|
12
|
-
export declare const LIFECYCLE_DISCONNECTED = "disconnectedCallback";
|
|
13
|
-
export declare const LIFECYCLE_LOADED = "loadedCallback";
|
|
14
|
-
export declare const LIFECYCLE_UPDATE = "updateCallback";
|
|
15
|
-
export declare const LIFECYCLE_UPDATED = "updatedCallback";
|
|
16
|
-
export declare const METHOD_RENDER = "render";
|
|
17
|
-
export declare const STATIC_MEMBERS = "members";
|
|
18
|
-
export declare const STATIC_STYLES = "styles";
|
|
19
|
-
export declare const TYPE_BOOLEAN = "boolean";
|
|
20
|
-
export declare const TYPE_DATE = "date";
|
|
21
|
-
export declare const TYPE_FUNCTION = "function";
|
|
22
|
-
export declare const TYPE_STRING = "string";
|
|
23
|
-
export declare const TYPE_NUMBER = "number";
|
package/dist/constants/index.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
export const PACKAGE_NAME = '@htmlplus/element';
|
|
2
|
-
// apis
|
|
3
|
-
export const API_HOST = '$host$';
|
|
4
|
-
export const API_READY = '$ready$';
|
|
5
|
-
export const API_SETUP = '$setup$';
|
|
6
|
-
// decorators
|
|
7
|
-
export const DECORATOR_ELEMENT = 'Element';
|
|
8
|
-
export const DECORATOR_EVENT = 'Event';
|
|
9
|
-
export const DECORATOR_PROPERTY = 'Property';
|
|
10
|
-
export const DECORATOR_STATE = 'State';
|
|
11
|
-
export const DECORATOR_METHOD = 'Method';
|
|
12
|
-
// lifecycle
|
|
13
|
-
export const LIFECYCLE_ADOPTED = 'adoptedCallback';
|
|
14
|
-
export const LIFECYCLE_CONNECTED = 'connectedCallback';
|
|
15
|
-
export const LIFECYCLE_DISCONNECTED = 'disconnectedCallback';
|
|
16
|
-
export const LIFECYCLE_LOADED = 'loadedCallback';
|
|
17
|
-
export const LIFECYCLE_UPDATE = 'updateCallback';
|
|
18
|
-
export const LIFECYCLE_UPDATED = 'updatedCallback';
|
|
19
|
-
// methods
|
|
20
|
-
export const METHOD_RENDER = 'render';
|
|
21
|
-
// statics
|
|
22
|
-
export const STATIC_MEMBERS = 'members';
|
|
23
|
-
export const STATIC_STYLES = 'styles';
|
|
24
|
-
// types
|
|
25
|
-
export const TYPE_BOOLEAN = 'boolean';
|
|
26
|
-
export const TYPE_DATE = 'date';
|
|
27
|
-
export const TYPE_FUNCTION = 'function';
|
|
28
|
-
export const TYPE_STRING = 'string';
|
|
29
|
-
export const TYPE_NUMBER = 'number';
|
package/dist/runtime/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const html: (template: any, ...values: any[]) => any;
|
package/dist/runtime/index.js
DELETED
package/dist/types/context.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ClassBody, ClassDeclaration, ClassMethod, ClassProperty, File } from '@babel/types';
|
|
2
|
-
export interface Context {
|
|
3
|
-
dependencies?: Array<Context>;
|
|
4
|
-
dependenciesUnresolved?: Array<string>;
|
|
5
|
-
isInvalid?: boolean;
|
|
6
|
-
script?: string;
|
|
7
|
-
componentClassName?: string;
|
|
8
|
-
componentInterfaceName?: string;
|
|
9
|
-
componentKey?: string;
|
|
10
|
-
componentTag?: string;
|
|
11
|
-
directoryName?: string;
|
|
12
|
-
directoryPath?: string;
|
|
13
|
-
fileAST?: File;
|
|
14
|
-
fileContent?: string;
|
|
15
|
-
fileExtension?: string;
|
|
16
|
-
fileName?: string;
|
|
17
|
-
filePath?: string;
|
|
18
|
-
styleContent?: string;
|
|
19
|
-
styleDependencies?: Array<string>;
|
|
20
|
-
styleParsed?: string;
|
|
21
|
-
stylePath?: string;
|
|
22
|
-
class?: ClassDeclaration;
|
|
23
|
-
classEvents?: Array<ClassProperty>;
|
|
24
|
-
classHasMount?: boolean;
|
|
25
|
-
classHasUnmount?: boolean;
|
|
26
|
-
classMembers?: ClassBody['body'];
|
|
27
|
-
classMethods?: Array<ClassMethod>;
|
|
28
|
-
className?: string;
|
|
29
|
-
classProperties?: Array<ClassProperty>;
|
|
30
|
-
classRender?: ClassMethod;
|
|
31
|
-
classStates?: Array<ClassProperty>;
|
|
32
|
-
}
|
package/dist/types/context.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/global.d.ts
DELETED
package/dist/types/global.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/index.d.ts
DELETED
package/dist/types/index.js
DELETED
package/dist/types/plugin.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Context } from './context.js';
|
|
2
|
-
import { Global } from './global';
|
|
3
|
-
export declare type Return<T> = void | T | Promise<T>;
|
|
4
|
-
export declare type Plugin = {
|
|
5
|
-
name: string;
|
|
6
|
-
start?: (global: Global) => Return<Global>;
|
|
7
|
-
next?: (context: Context, global: Global) => Return<Context>;
|
|
8
|
-
finish?: (global: Global) => Return<Global>;
|
|
9
|
-
};
|
package/dist/types/plugin.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|