@rhtml/decorators 0.0.101 → 0.0.104
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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/index.ts +0 -1
- package/dist/input.d.ts +0 -1
- package/dist/input.js +0 -11
- package/dist/input.js.map +0 -1
- package/src/input.ts +0 -7
package/README.md
CHANGED
|
@@ -9,8 +9,8 @@ npm i @rhtml/decorators
|
|
|
9
9
|
#### Usage
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
import { Attribute, Options } from '@rhtml/custom-attributes';
|
|
13
|
-
import {
|
|
12
|
+
import { Attribute, Options, Input } from '@rhtml/custom-attributes';
|
|
13
|
+
import { HostListener } from '@rhtml/decorators';
|
|
14
14
|
|
|
15
15
|
export class TestDirective extends Attribute {
|
|
16
16
|
@Input()
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11,5 +11,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./host-listener"), exports);
|
|
14
|
-
__exportStar(require("./input"), exports);
|
|
15
14
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rhtml/decorators",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.104",
|
|
4
4
|
"description": "Reactive HyperText Markup Language",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "npx parcel ./examples/index.html --out-dir build/examples",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"type": "git",
|
|
16
16
|
"url": "git@github.com:rhtml/rhtml.git"
|
|
17
17
|
},
|
|
18
|
+
"dependencies": {},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"eslint": "^6.7.2",
|
|
20
21
|
"eslint-config-prettier": "^6.7.0",
|
package/src/index.ts
CHANGED
package/dist/input.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Input: () => (target: unknown, memberName: string) => void;
|
package/dist/input.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Input = void 0;
|
|
4
|
-
exports.Input = () => (target, memberName) => {
|
|
5
|
-
Object.defineProperty(target, memberName, {
|
|
6
|
-
get: function () {
|
|
7
|
-
return this.element.getAttribute(memberName.toLowerCase());
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=input.js.map
|
package/dist/input.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../src/input.ts"],"names":[],"mappings":";;;AAAa,QAAA,KAAK,GAAG,GAAG,EAAE,CAAC,CAAC,MAAe,EAAE,UAAkB,EAAE,EAAE;IACjE,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE;QACxC,GAAG,EAAE;YACH,OAAO,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC;QAC7D,CAAC;KACF,CAAC,CAAC;AACL,CAAC,CAAC"}
|