Przeglądaj źródła

fix start listener

tripeur 4 lat temu
rodzic
commit
c45e5a9aa4
4 zmienionych plików z 7 dodań i 3 usunięć
  1. 4 1
      lib/Timeline.js
  2. 0 0
      lib/Timeline.js.map
  3. 1 1
      package.json
  4. 2 1
      src/Timeline.ts

+ 4 - 1
lib/Timeline.js

@@ -813,11 +813,14 @@ __decorate([
     lit_element_1.property({ type: Number })
 ], Timeline.prototype, "ressourceWidth", void 0);
 __decorate([
-    lit_element_1.property({ type: Object })
+    lit_element_1.internalProperty()
 ], Timeline.prototype, "_start", void 0);
 __decorate([
     lit_element_1.property({ type: String })
 ], Timeline.prototype, "start", null);
+__decorate([
+    lit_element_1.internalProperty()
+], Timeline.prototype, "_end", void 0);
 __decorate([
     lit_element_1.property({ type: String })
 ], Timeline.prototype, "end", null);

Plik diff jest za duży
+ 0 - 0
lib/Timeline.js.map


+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "jc-timeline",
-  "version": "0.2.9",
+  "version": "0.2.10",
   "description": "web component to manage ressources in time",
   "main": "./lib/main.js",
   "types": "./lib/main.d.ts",

+ 2 - 1
src/Timeline.ts

@@ -65,7 +65,7 @@ class Timeline extends LitElement {
   @property({ type: Number })
   public ressourceWidth: number;
 
-  @property({ type: Object })
+  @internalProperty() // important for the refresh
   private _start: Dayjs;
   @property({ type: String })
   public get start(): string {
@@ -81,6 +81,7 @@ class Timeline extends LitElement {
     }
   }
 
+  @internalProperty() // important for the refresh
   private _end: Dayjs;
   @property({ type: String })
   public get end(): string {

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików