input-duration 2.1.0 → 2.2.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 CHANGED
@@ -38,13 +38,13 @@
38
38
  <div align="center">
39
39
 
40
40
 
41
- <a href="https://github.com/StephanLuis/chronlyhms">
41
+ <a href="https://github.com/StephanLuis/input-duration">
42
42
  <h3 align="center">Input-Duration -- The best 'Time Only' Input</h3> <img src="readme/logo.svg" alt="Logo" width="90" height="90">
43
43
  </a>
44
44
 
45
45
 
46
46
 
47
- <p align="center">A time input that works on Safari in close imitation of a time input on Chrome... only better. </p>
47
+ <p align="center">A vanilla JS boosted input that works on Safari in very close imitation of a time input on Chrome <br>... only better. </p>
48
48
  </div>
49
49
 
50
50
  'Time Only' means that this control is for time as a unit, or a duration, like for count down timers. Not for time of day nor date on a calendar, so no unwanted AM/PM conversions on Safari, no unwanted date-time selectors. Just time up to 999 hrs and down to 1 millisecond.<br>
@@ -52,20 +52,19 @@
52
52
  <div>
53
53
  </div>
54
54
  <div align="center">
55
- <a href="https://6mxpg2.csb.app/" target="_blank">Demo</a>
56
- ·
57
- <a href="https://stephanluis.github.io/input-duration/" target="_blank">Docs</a>
58
- ·
59
55
  <a href="https://codesandbox.io/s/peaceful-waterfall-6mxpg2?file=/index.html" target="_blank">
60
56
  Fiddle
61
- </a>
57
+ </a> ·
58
+ <a href="https://6mxpg2.csb.app/" target="_blank">Demo</a>
59
+ ·
60
+ <a href="https://stephanluis.github.io/input-duration/" target="_blank">Docs</a>
62
61
  ·
63
62
  <a href="https://github.com/StephanLuis/input-duration/issues">Bugs</a>
64
63
  ·
65
64
  <a href="https://github.com/StephanLuis/input-duration/issues">Request Feature</a>
66
65
  </p>
67
66
  </div>
68
- Ok, what about mobile?? Yep, ChronlyHMS works on all popular operating system / browser combinations.
67
+ Ok, what about mobile?? Yep, input-duration works on all popular operating system / browser combinations.
69
68
  <br/>
70
69
  </div>
71
70
  <br/>
@@ -108,28 +107,29 @@
108
107
 
109
108
  <!-- ABOUT THE PROJECT -->
110
109
  ## About The Project
111
- Time inputs <input type='time'> are updated by browsers in unwanted ways! Safari on desktop adds AM/PM if the user is in the USA and on mobile the cool scroll time selector does not allow fractions of a second. The best html5 option doesn't cut it, sadly, so ChronlyHMS was designed and buit for a consistant UX no matter the browser, OS, or location settings.
110
+ Time inputs <input type='time'> are updated by browsers in unwanted ways! Safari on desktop adds AM/PM if the user is in the USA and on mobile the cool scroll time selector does not allow fractions of a second. The best html5 option doesn't cut it, sadly, so input-duration was designed and buit for a consistant UX no matter the browser, OS, or location settings.
112
111
 
113
112
  <!-- [![Product Name Screen Shot][product-screenshot]](https://example.com) -->
114
113
 
115
- <img src="readme/html.png" alt="drawing" width="60%"/>
114
+ <img src="readme/codeDrawing.png" alt="drawing" width="60%"/>
116
115
 
117
116
  <!-- [![HTML Screen Shot][html-screenshot]](https://example.com) -->
117
+ *note input-duration needs closing tag!
118
118
 
119
- <h3> Bob is rescued by ChronlyHMS! </h3>
119
+ <h3> Bob is rescued by INPUT-DURATION! </h3>
120
120
 
121
- The objective is a minimised vanilla javascript plugin that reproduces the behaviour of the input type=time on Chrome. This way at least two of the major browsers are supported, Safari and Chrome, on desktop and mobile operating systems.
121
+ The objective is a minimised javascript plugin that reproduces the behaviour of the input type=time on Chrome. This way at least two of the major browsers are supported, Safari and Chrome, on desktop and mobile operating systems.
122
122
 
123
- <i>Does this loose any functionality?</i> No! document.querySelector('#bob').value has a getter and setter! So values can be set and retrieved by ID.
123
+ <i>Does this loose any functionality?</i> No! document.querySelector('#bob').value has a getter and setter! So values can be set and retrieved by ID or attribute in HTML.
124
124
 
125
125
 
126
126
 
127
- <img src="readme/safariBad.png" alt="drawing" width="60%"/>
127
+ <img src="readme/safariBad.png" alt="drawing" width="80%"/>
128
128
  <!-- [![Safari Screen Shot][safari-screenshot]](https://example.com) -->
129
129
 
130
- Yes! It seems CRAZY in 2022 that there is not a native 'time only' input for HTML. What I mean is there is no user input control for time rendered independantly of date or time of day. Yea, crazy, but now ChronlyHMS is a javascript plugin that creates a UX input control for a value of time simply as hours, minutes, seconds --<b>only</b>! <br> Ever thought, why is it difficult to 'code' a countdown timer? Why can't it be done with one control? Just look at google's timer and other coundown timers! All use multiple inputs, usually designed for integers.
130
+ Yes! It seems CRAZY in 2022 that there is not a native 'time only' input for HTML. What I mean is there is no user input control for time rendered independantly of date or time of day. Yea, crazy, but now input-duration is a javascript plugin that creates a UX input control for a value of time simply as hours, minutes, seconds --<b>only</b>! <br> Ever thought, why is it difficult to 'code' a countdown timer? Why can't it be done with one control? Just look at google's timer and other coundown timers! All use multiple inputs, usually designed for integers.
131
131
 
132
- The very worst is Safari on desktop and mobile undermine those snazzy input type=time efforts and update the input depending on OS settings for desktop or provide a control with restricted capability... Shouldn't a user be able to 'scientifically' specify a period of time with one control? <br>The closest HTML5 input type- time when configured with UX for hours to millisecs is very finicky and rendered differently on Chrome and Safari <b>and</b> mobile is different from laptop, so I've simplified that!
132
+ The very worst is Safari on desktop and mobile, which undermine any input type=time coding efforts and update the input based on OS settings! Shouldn't a user be able to 'scientifically' specify a period of time with one control? <br> Maybe it's just me, but the chrome / google timer is 14 separate elements ... those guys must be paid by the hour. The closest HTML5 input type- time when configured with UX for hours to millisecs is very finicky and is rendered differently on Chrome than Safari. <b>Mobile</b> is different from laptop<br> ... so I've simplified that!
133
133
 
134
134
 
135
135
 
@@ -137,7 +137,7 @@ The very worst is Safari on desktop and mobile undermine those snazzy input type
137
137
 
138
138
 
139
139
 
140
- There are a few plugins (links to come) that remediate the lack of continuity, but even time controls with the plugin treat time as a date (ex 24hr max). So it seems the current state is the most relable UX is multi input type number (more links to come ). The best example is the Google countdown timer. And that's wrong because time is a basic unit that should be separate from calendar complexities. That got me thinking, why isn't there an input control for it implemented across browsers?? I needed one, so coded ChronlyHMS.
140
+ There were a few plugins that remediated the lack of continuity, but even those controls treated time as a date (ex 24hr max). So it seems the current state is the most relable UX is multi input type number. The worst example is the Google countdown timer. That way is wrong because time is a basic unit that should be separate from calendar complexities. That got me thinking, why isn't there an input control for it implemented across browsers?? I needed one, so coded input-duration.
141
141
 
142
142
  Here's why:
143
143
  * Time is hours minutes and seconds (and millisecs) and needn't be associated with part of a day or a date
@@ -157,14 +157,15 @@ Feel free to vote for WhatWG inclusion of a into the HTML spec! (link comming so
157
157
 
158
158
  ### Built With
159
159
 
160
- This section should lists any major frameworks/libraries used to for this project. Any add-ons/plugins are in the acknowledgements section.
160
+
161
161
 
162
162
  * [Node.js](https://nodejs.org/)
163
- * [Webpack](https://webpack.js.org/)
164
163
  * [Gitpod](https://www.gitpod.io/)
165
164
  * [Testing Powered By SauceLabs](https://saucelabs.com)
166
165
  * [Selenium](https://www.selenium.dev/)
167
166
 
167
+ input-duration is a module and works with webpack. Any add-ons/plugins used in dev are in the acknowledgements section.
168
+
168
169
  <p align="right">(<a href="#top">back to top</a>)</p>
169
170
 
170
171
 
@@ -172,7 +173,7 @@ This section should lists any major frameworks/libraries used to for this projec
172
173
  <!-- GETTING STARTED -->
173
174
  ## Getting Started
174
175
 
175
- There are no pre-requisites for using ChronlyHMS if you're not compiling/ packaging you javascript. If you are packaging:
176
+ There are no pre-requisites for using input-duration if you're not compiling/ packaging you javascript. If you are packaging:
176
177
 
177
178
  ### Prerequisites
178
179
 
@@ -183,9 +184,6 @@ This is an example of how to get started with npm and webpack, other frameworks
183
184
  npm init -y
184
185
  npm install webpack webpack-cli --save-dev
185
186
  ```
186
- * Webpack requires configuration for packaging ChronlyHMS CSS
187
- see [Webpack CSS Loader](https://webpack.js.org/loaders/css-loader/)
188
-
189
187
 
190
188
  ### Installation
191
189
 
@@ -194,19 +192,25 @@ _This template doesn't rely on any external dependencies or services._
194
192
 
195
193
  1. Install from NPM
196
194
  ```sh
197
- npm i chronlyhms
195
+ npm i input-duration
198
196
  ```
199
- 2. import ChronlyHMS javascript and css
197
+ 2. import input-duration in javascript
200
198
  ```sh
201
- import ChronlyHMS from 'chronlyhms';
202
- import 'chronlyhms/src/chrono.css'
199
+
200
+ import id from 'input-duration';
201
+
203
202
  ```
204
203
 
205
204
  Without packaging:
206
205
 
207
206
  1. Add script:
208
207
  ```sh
209
- <script src="https://cdn.jsdelivr.net/npm/chronlyhms@1.0.65/dist/chronoBundle.min.js"></script>
208
+
209
+ <script type="module">
210
+
211
+ import chronlyhms from 'https://cdn.jsdelivr.net/npm/input-duration/+esm'
212
+
213
+ </script>
210
214
 
211
215
  ```
212
216
 
@@ -218,25 +222,31 @@ Without packaging:
218
222
  <!-- USAGE EXAMPLES -->
219
223
  ## Usage
220
224
 
221
- ChronlyHMS requires an input element with the attribute 'data-univHMS'. There's no more code than that needed.
225
+ input-duration requires a `<input-duration>` element . There's no more HTML than that, but don't forget the closing tag. Native Input elements don't have them!
222
226
  ```sh
223
- <input id='bob' data-univHMS></input>
227
+
228
+ <input-duration id='bob'></input-duration>
229
+
224
230
  ```
225
231
 
226
- If you would like ChronlyHMS to update inputs that are placed on DOM with javascipt (ex. after chronlyhms script is added), then with your js:
227
- 1) add a data attribute to the input
232
+ If you would like to get or set values or to disable input-duration elemet, javascipt can do that:
233
+
228
234
  ```sh
229
- data-univHMS [data-univHMS='']
235
+
236
+ document.querySelector('#bob').value = '44:04:04.444'
237
+
230
238
  ```
231
239
 
232
- 2) call the Chronly boot method
240
+ and
233
241
 
234
242
  ```sh
235
- window.ChronlyHMS.boot()
243
+
244
+ document.querySelector('#bob').disable()
245
+
236
246
  ```
237
247
  so the inputs are modified.
238
248
 
239
- _For more documentation, please refer to the jscocs on [ChronlyHMS Docs](https://stephanluis.github.io/chronlyhms/)_
249
+ _For more documentation, please refer to the jscocs on [input-duration Docs](https://stephanluis.github.io/input-duration/)_
240
250
 
241
251
  <p align="right">(<a href="#top">back to top</a>)</p>
242
252
 
@@ -254,7 +264,7 @@ _For more documentation, please refer to the jscocs on [ChronlyHMS Docs](https:
254
264
  - [ ] Multi-language documentation (Google translate of this page?)
255
265
  - [ ] Chinese
256
266
  - [ ] Spanish
257
- - [ ] Is it worth having a remove function, restoring the original input?
267
+ - [ ] min and max values (sorry for the moment you'll have to do those yourself in js)
258
268
 
259
269
  See the [open issues](https://github.com/StephanLuis/chronlyhms/issues) for a full list of proposed features (and known issues).
260
270
 
@@ -93,7 +93,7 @@
93
93
 
94
94
  <dt class="tag-source">Source:</dt>
95
95
  <dd class="tag-source"><ul class="dummy"><li>
96
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line1">line 1</a>
96
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line12">line 12</a>
97
97
  </li></ul></dd>
98
98
 
99
99
 
@@ -199,7 +199,7 @@ so in js use var x = document.querySelector("#bobPrepop").value;
199
199
 
200
200
  <dt class="tag-source">Source:</dt>
201
201
  <dd class="tag-source"><ul class="dummy"><li>
202
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line30">line 30</a>
202
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line41">line 41</a>
203
203
  </li></ul></dd>
204
204
 
205
205
 
@@ -262,7 +262,7 @@ so in js use document.querySelector("#bobPrepop").value = "05:05:05.005"
262
262
 
263
263
  <dt class="tag-source">Source:</dt>
264
264
  <dd class="tag-source"><ul class="dummy"><li>
265
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line57">line 57</a>
265
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line68">line 68</a>
266
266
  </li></ul></dd>
267
267
 
268
268
 
@@ -343,7 +343,7 @@ the change event of the input
343
343
 
344
344
  <dt class="tag-source">Source:</dt>
345
345
  <dd class="tag-source"><ul class="dummy"><li>
346
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line509">line 509</a>
346
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line520">line 520</a>
347
347
  </li></ul></dd>
348
348
 
349
349
 
@@ -439,7 +439,7 @@ the change event of the input
439
439
 
440
440
  <dt class="tag-source">Source:</dt>
441
441
  <dd class="tag-source"><ul class="dummy"><li>
442
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line144">line 144</a>
442
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line155">line 155</a>
443
443
  </li></ul></dd>
444
444
 
445
445
 
@@ -535,7 +535,7 @@ the click event of the input
535
535
 
536
536
  <dt class="tag-source">Source:</dt>
537
537
  <dd class="tag-source"><ul class="dummy"><li>
538
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line537">line 537</a>
538
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line548">line 548</a>
539
539
  </li></ul></dd>
540
540
 
541
541
 
@@ -630,7 +630,7 @@ the click event of the input
630
630
 
631
631
  <dt class="tag-source">Source:</dt>
632
632
  <dd class="tag-source"><ul class="dummy"><li>
633
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line215">line 215</a>
633
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line226">line 226</a>
634
634
  </li></ul></dd>
635
635
 
636
636
 
@@ -726,7 +726,7 @@ the change event of the input
726
726
 
727
727
  <dt class="tag-source">Source:</dt>
728
728
  <dd class="tag-source"><ul class="dummy"><li>
729
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line332">line 332</a>
729
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line343">line 343</a>
730
730
  </li></ul></dd>
731
731
 
732
732
 
@@ -821,7 +821,7 @@ the change event of the input
821
821
 
822
822
  <dt class="tag-source">Source:</dt>
823
823
  <dd class="tag-source"><ul class="dummy"><li>
824
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line398">line 398</a>
824
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line409">line 409</a>
825
825
  </li></ul></dd>
826
826
 
827
827
 
@@ -916,7 +916,7 @@ the change event of the input
916
916
 
917
917
  <dt class="tag-source">Source:</dt>
918
918
  <dd class="tag-source"><ul class="dummy"><li>
919
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line122">line 122</a>
919
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line133">line 133</a>
920
920
  </li></ul></dd>
921
921
 
922
922
 
@@ -1004,7 +1004,7 @@ the change event of the input
1004
1004
 
1005
1005
  <dt class="tag-source">Source:</dt>
1006
1006
  <dd class="tag-source"><ul class="dummy"><li>
1007
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line574">line 574</a>
1007
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line585">line 585</a>
1008
1008
  </li></ul></dd>
1009
1009
 
1010
1010
 
@@ -1092,7 +1092,7 @@ the change event of the input
1092
1092
 
1093
1093
  <dt class="tag-source">Source:</dt>
1094
1094
  <dd class="tag-source"><ul class="dummy"><li>
1095
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line590">line 590</a>
1095
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line601">line 601</a>
1096
1096
  </li></ul></dd>
1097
1097
 
1098
1098
 
@@ -1181,7 +1181,7 @@ the keypress event of the input
1181
1181
 
1182
1182
  <dt class="tag-source">Source:</dt>
1183
1183
  <dd class="tag-source"><ul class="dummy"><li>
1184
- <a href="index.js.html">index.js</a>, <a href="index.js.html#line550">line 550</a>
1184
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line561">line 561</a>
1185
1185
  </li></ul></dd>
1186
1186
 
1187
1187
 
@@ -1240,7 +1240,7 @@ the keypress event of the input
1240
1240
  <br class="clear">
1241
1241
 
1242
1242
  <footer>
1243
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu Jul 06 2023 13:53:14 GMT+0000 (GMT)
1243
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu Jul 06 2023 16:38:37 GMT+0000 (GMT)
1244
1244
  </footer>
1245
1245
 
1246
1246
  <script> prettyPrint(); </script>
package/docs/index.html CHANGED
@@ -47,6 +47,118 @@
47
47
 
48
48
 
49
49
 
50
+
51
+
52
+
53
+ <section>
54
+
55
+ <header>
56
+
57
+ <h2>index.js</h2>
58
+
59
+
60
+ </header>
61
+
62
+ <article>
63
+ <div class="container-overview">
64
+
65
+
66
+ <div class="description">INPUT-DURATION</div>
67
+
68
+
69
+
70
+
71
+
72
+ <dl class="details">
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <dt class="tag-author">Author:</dt>
92
+ <dd class="tag-author">
93
+ <ul>
94
+ <li>Stephan Luis</li>
95
+ </ul>
96
+ </dd>
97
+
98
+
99
+
100
+ <dt class="tag-copyright">Copyright:</dt>
101
+ <dd class="tag-copyright"><ul class="dummy"><li>MIT License, Copyright (c) 2022</li></ul></dd>
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <dt class="tag-source">Source:</dt>
110
+ <dd class="tag-source"><ul class="dummy"><li>
111
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line1">line 1</a>
112
+ </li></ul></dd>
113
+
114
+
115
+
116
+
117
+
118
+ <dt class="tag-see">See:</dt>
119
+ <dd class="tag-see">
120
+ <ul>
121
+ <li><a href="https://www.npmjs.com/package/input-duration">NPM input-duration</a></li>
122
+
123
+ <li><a href="https://github.com/StephanLuis/input-duration">GitHub input-duration</a></li>
124
+ </ul>
125
+ </dd>
126
+
127
+
128
+
129
+ </dl>
130
+
131
+
132
+
133
+
134
+ </div>
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ </article>
156
+
157
+ </section>
158
+
159
+
160
+
161
+
50
162
  </div>
51
163
 
52
164
  <nav>
@@ -56,7 +168,7 @@
56
168
  <br class="clear">
57
169
 
58
170
  <footer>
59
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu Jul 06 2023 13:53:14 GMT+0000 (GMT)
171
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu Jul 06 2023 16:38:37 GMT+0000 (GMT)
60
172
  </footer>
61
173
 
62
174
  <script> prettyPrint(); </script>
@@ -27,6 +27,17 @@
27
27
  <section>
28
28
  <article>
29
29
  <pre class="prettyprint source linenums"><code>/**
30
+ * @fileoverview INPUT-DURATION
31
+ * @file INPUT-DURATION
32
+ * @author Stephan Luis
33
+ * @see &lt;a href="https://www.npmjs.com/package/input-duration">NPM input-duration&lt;/a>
34
+ * @see &lt;a href="https://github.com/StephanLuis/input-duration">GitHub input-duration&lt;/a>
35
+ * @copyright MIT License, Copyright (c) 2022
36
+ */
37
+
38
+
39
+
40
+ /**
30
41
  * Class for the Input-Duration webcomponent
31
42
  * @class InputDuration
32
43
  * @extends HTMLElement
@@ -651,7 +662,7 @@ export default customElements.define('input-duration', InputDuration);
651
662
  <br class="clear">
652
663
 
653
664
  <footer>
654
- Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu Jul 06 2023 13:53:14 GMT+0000 (GMT)
665
+ Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu Jul 06 2023 16:38:37 GMT+0000 (GMT)
655
666
  </footer>
656
667
 
657
668
  <script> prettyPrint(); </script>
package/index.js CHANGED
@@ -1,3 +1,14 @@
1
+ /**
2
+ * @fileoverview INPUT-DURATION
3
+ * @file INPUT-DURATION
4
+ * @author Stephan Luis
5
+ * @see <a href="https://www.npmjs.com/package/input-duration">NPM input-duration</a>
6
+ * @see <a href="https://github.com/StephanLuis/input-duration">GitHub input-duration</a>
7
+ * @copyright MIT License, Copyright (c) 2022
8
+ */
9
+
10
+
11
+
1
12
  /**
2
13
  * Class for the Input-Duration webcomponent
3
14
  * @class InputDuration
@@ -130,6 +141,7 @@ class InputDuration extends HTMLElement {
130
141
  this.addNumericInput();
131
142
  this.addClicksToActivate();
132
143
  this.nonNumericBugInHTML();
144
+ this.removeEprop();
133
145
 
134
146
  }
135
147
 
@@ -563,7 +575,21 @@ class InputDuration extends HTMLElement {
563
575
  }));
564
576
  }
565
577
 
578
+ /**
579
+ * Stop event propigation from the timeCase up through the DOM so when keys
580
+ * are being used they don't affect other controls (like volume on plyr)
581
+ * @method
582
+ */
583
+
584
+ removeEprop() {
585
+
586
+ document.querySelector('input-duration').shadowRoot.querySelector('.timeCase')
587
+ .addEventListener('keydown', function (event) { event.stopPropagation();});
588
+
589
+ }
590
+
566
591
 
592
+
567
593
  // formatting and behaviour options
568
594
 
569
595
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "input-duration",
3
- "version": "2.1.0",
3
+ "version": "2.2.1",
4
4
  "author": "Stephan Luis <stephan@learnsense.org>",
5
5
  "description": "This is the 'Input-Duration'! It is a webcomponent that provides an hour, minute, second, and millisecond control for HTML5.",
6
6
  "browser": "indexjs",
Binary file