input-duration 2.2.1 → 2.2.2
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/docs/InputDuration.html +103 -14
- package/docs/index.html +1 -1
- package/docs/index.js.html +19 -2
- package/index.js +6 -1
- package/package.json +1 -1
- package/docs/chrono.js.html +0 -742
- package/docs/global.html +0 -253
- package/docs/global.html#ChronlyHMS +0 -224
- package/docs/module-ChronlyHMS%20Module-ChronlyHMS.html +0 -1745
- package/docs/module-ChronlyHMS%20Module.html +0 -145
package/docs/InputDuration.html
CHANGED
|
@@ -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#
|
|
96
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line14">line 14</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#
|
|
202
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line43">line 43</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#
|
|
265
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line70">line 70</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#
|
|
346
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line523">line 523</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#
|
|
442
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line158">line 158</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#
|
|
538
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line551">line 551</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#
|
|
633
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line229">line 229</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#
|
|
729
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line346">line 346</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#
|
|
824
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line412">line 412</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#
|
|
919
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line135">line 135</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#
|
|
1007
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line602">line 602</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#
|
|
1095
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line618">line 618</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#
|
|
1184
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line564">line 564</a>
|
|
1185
1185
|
</li></ul></dd>
|
|
1186
1186
|
|
|
1187
1187
|
|
|
@@ -1218,6 +1218,95 @@ the keypress event of the input
|
|
|
1218
1218
|
|
|
1219
1219
|
|
|
1220
1220
|
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
|
|
1227
|
+
<h4 class="name" id="removeEprop"><span class="type-signature"></span>removeEprop<span class="signature">()</span><span class="type-signature"></span></h4>
|
|
1228
|
+
|
|
1229
|
+
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
<div class="description">
|
|
1235
|
+
Stop event propigation from the timeCase up through the DOM so when keys
|
|
1236
|
+
are being used they don't affect other controls (like volume on plyr)
|
|
1237
|
+
</div>
|
|
1238
|
+
|
|
1239
|
+
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1248
|
+
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
<dl class="details">
|
|
1252
|
+
|
|
1253
|
+
|
|
1254
|
+
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
|
|
1259
|
+
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
|
|
1263
|
+
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
|
|
1278
|
+
<dt class="tag-source">Source:</dt>
|
|
1279
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
1280
|
+
<a href="index.js.html">index.js</a>, <a href="index.js.html#line586">line 586</a>
|
|
1281
|
+
</li></ul></dd>
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
|
|
1289
|
+
</dl>
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
|
|
1298
|
+
|
|
1299
|
+
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
|
|
1304
|
+
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
|
|
1309
|
+
|
|
1221
1310
|
|
|
1222
1311
|
|
|
1223
1312
|
|
|
@@ -1240,7 +1329,7 @@ the keypress event of the input
|
|
|
1240
1329
|
<br class="clear">
|
|
1241
1330
|
|
|
1242
1331
|
<footer>
|
|
1243
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on
|
|
1332
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Fri Sep 29 2023 11:02:59 GMT+0000 (GMT)
|
|
1244
1333
|
</footer>
|
|
1245
1334
|
|
|
1246
1335
|
<script> prettyPrint(); </script>
|
package/docs/index.html
CHANGED
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
<br class="clear">
|
|
169
169
|
|
|
170
170
|
<footer>
|
|
171
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on
|
|
171
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Fri Sep 29 2023 11:02:59 GMT+0000 (GMT)
|
|
172
172
|
</footer>
|
|
173
173
|
|
|
174
174
|
<script> prettyPrint(); </script>
|
package/docs/index.js.html
CHANGED
|
@@ -27,6 +27,8 @@
|
|
|
27
27
|
<section>
|
|
28
28
|
<article>
|
|
29
29
|
<pre class="prettyprint source linenums"><code>/**
|
|
30
|
+
* This is jsdoc 'auto' documentation see https://jsdoc.app/
|
|
31
|
+
*
|
|
30
32
|
* @fileoverview INPUT-DURATION
|
|
31
33
|
* @file INPUT-DURATION
|
|
32
34
|
* @author Stephan Luis
|
|
@@ -169,6 +171,7 @@ class InputDuration extends HTMLElement {
|
|
|
169
171
|
this.addNumericInput();
|
|
170
172
|
this.addClicksToActivate();
|
|
171
173
|
this.nonNumericBugInHTML();
|
|
174
|
+
this.removeEprop();
|
|
172
175
|
|
|
173
176
|
}
|
|
174
177
|
|
|
@@ -260,7 +263,7 @@ class InputDuration extends HTMLElement {
|
|
|
260
263
|
var template = document.createElement('template');
|
|
261
264
|
|
|
262
265
|
template.innerHTML = `
|
|
263
|
-
<input
|
|
266
|
+
<input type="number" class="sH D2 ts_digit" name="startHours" data-tp="1" min="-1" max="100" value="00" >
|
|
264
267
|
<span class="bds-h">:</span>
|
|
265
268
|
<input type="number" class="sM D2 ts_digit" name="startMinutes" data-tp="2" min="-1" max="60" value="00">
|
|
266
269
|
<span class="bds-m">:</span>
|
|
@@ -602,7 +605,21 @@ class InputDuration extends HTMLElement {
|
|
|
602
605
|
}));
|
|
603
606
|
}
|
|
604
607
|
|
|
608
|
+
/**
|
|
609
|
+
* Stop event propigation from the timeCase up through the DOM so when keys
|
|
610
|
+
* are being used they don't affect other controls (like volume on plyr)
|
|
611
|
+
* @method
|
|
612
|
+
*/
|
|
613
|
+
|
|
614
|
+
removeEprop() {
|
|
615
|
+
|
|
616
|
+
document.querySelector('input-duration').shadowRoot.querySelector('.timeCase')
|
|
617
|
+
.addEventListener('keydown', function (event) { event.stopPropagation();});
|
|
605
618
|
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
|
|
622
|
+
|
|
606
623
|
// formatting and behaviour options
|
|
607
624
|
|
|
608
625
|
/**
|
|
@@ -662,7 +679,7 @@ export default customElements.define('input-duration', InputDuration);
|
|
|
662
679
|
<br class="clear">
|
|
663
680
|
|
|
664
681
|
<footer>
|
|
665
|
-
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on
|
|
682
|
+
Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Fri Sep 29 2023 11:02:59 GMT+0000 (GMT)
|
|
666
683
|
</footer>
|
|
667
684
|
|
|
668
685
|
<script> prettyPrint(); </script>
|
package/index.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* This is jsdoc 'auto' documentation see https://jsdoc.app/
|
|
3
|
+
* npm install -g jsdoc
|
|
4
|
+
* jsdoc index.js -d ./docs/
|
|
5
|
+
*
|
|
6
|
+
*
|
|
2
7
|
* @fileoverview INPUT-DURATION
|
|
3
8
|
* @file INPUT-DURATION
|
|
4
9
|
* @author Stephan Luis
|
|
@@ -233,7 +238,7 @@ class InputDuration extends HTMLElement {
|
|
|
233
238
|
var template = document.createElement('template');
|
|
234
239
|
|
|
235
240
|
template.innerHTML = `
|
|
236
|
-
<input
|
|
241
|
+
<input type="number" class="sH D2 ts_digit" name="startHours" data-tp="1" min="-1" max="100" value="00" >
|
|
237
242
|
<span class="bds-h">:</span>
|
|
238
243
|
<input type="number" class="sM D2 ts_digit" name="startMinutes" data-tp="2" min="-1" max="60" value="00">
|
|
239
244
|
<span class="bds-m">:</span>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "input-duration",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
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",
|