@rhtml/decorators 0.0.102 → 0.0.103

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 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 { Input, HostListener } from '@rhtml/decorators';
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
@@ -1,2 +1 @@
1
1
  export * from './host-listener';
2
- export * from './input';
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;AAChC,0CAAwB"}
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.102",
3
+ "version": "0.0.103",
4
4
  "description": "Reactive HyperText Markup Language",
5
5
  "scripts": {
6
6
  "start": "npx parcel ./examples/index.html --out-dir build/examples",
package/src/index.ts CHANGED
@@ -1,2 +1 @@
1
1
  export * from './host-listener';
2
- export * from './input';
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"}
package/src/input.ts DELETED
@@ -1,7 +0,0 @@
1
- export const Input = () => (target: unknown, memberName: string) => {
2
- Object.defineProperty(target, memberName, {
3
- get: function() {
4
- return this.element.getAttribute(memberName.toLowerCase());
5
- }
6
- });
7
- };