input-duration 2.0.12 → 2.1.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.
@@ -0,0 +1,1249 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>JSDoc: Class: InputDuration</title>
6
+
7
+ <script src="scripts/prettify/prettify.js"> </script>
8
+ <script src="scripts/prettify/lang-css.js"> </script>
9
+ <!--[if lt IE 9]>
10
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11
+ <![endif]-->
12
+ <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13
+ <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14
+ </head>
15
+
16
+ <body>
17
+
18
+ <div id="main">
19
+
20
+ <h1 class="page-title">Class: InputDuration</h1>
21
+
22
+
23
+
24
+
25
+
26
+
27
+ <section>
28
+
29
+ <header>
30
+
31
+ <h2><span class="attribs"><span class="type-signature"></span></span>InputDuration<span class="signature">()</span><span class="type-signature"></span></h2>
32
+
33
+
34
+ </header>
35
+
36
+ <article>
37
+ <div class="container-overview">
38
+
39
+
40
+
41
+
42
+
43
+
44
+ <h4 class="name" id="InputDuration"><span class="type-signature"></span>new InputDuration<span class="signature">()</span><span class="type-signature"></span></h4>
45
+
46
+
47
+
48
+
49
+
50
+
51
+ <div class="description">
52
+ Class for the Input-Duration webcomponent
53
+ </div>
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+ <dl class="details">
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+ <dt class="tag-source">Source:</dt>
95
+ <dd class="tag-source"><ul class="dummy"><li>
96
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line12">line 12</a>
97
+ </li></ul></dd>
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ </dl>
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ </div>
128
+
129
+
130
+ <h3 class="subsection-title">Extends</h3>
131
+
132
+
133
+
134
+
135
+ <ul>
136
+ <li>HTMLElement</li>
137
+ </ul>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+ <h3 class="subsection-title">Members</h3>
154
+
155
+
156
+
157
+ <h4 class="name" id="value"><span class="type-signature"></span>value<span class="type-signature"></span></h4>
158
+
159
+
160
+
161
+
162
+ <div class="description">
163
+ get the input-duration value, pulls values from each input
164
+ so in js use var x = document.querySelector("#bobPrepop").value;
165
+ </div>
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <dl class="details">
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <dt class="tag-source">Source:</dt>
201
+ <dd class="tag-source"><ul class="dummy"><li>
202
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line41">line 41</a>
203
+ </li></ul></dd>
204
+
205
+
206
+
207
+
208
+
209
+
210
+
211
+ </dl>
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+ <h4 class="name" id="value"><span class="type-signature"></span>value<span class="type-signature"></span></h4>
221
+
222
+
223
+
224
+
225
+ <div class="description">
226
+ set the input-duration value
227
+ so in js use document.querySelector("#bobPrepop").value = "05:05:05.005"
228
+ </div>
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+ <dl class="details">
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ <dt class="tag-source">Source:</dt>
264
+ <dd class="tag-source"><ul class="dummy"><li>
265
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line68">line 68</a>
266
+ </li></ul></dd>
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+ </dl>
275
+
276
+
277
+
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+ <h3 class="subsection-title">Methods</h3>
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+ <h4 class="name" id="add0s"><span class="type-signature"></span>add0s<span class="signature">()</span><span class="type-signature"></span></h4>
294
+
295
+
296
+
297
+
298
+
299
+
300
+ <div class="description">
301
+ eventlistener that adds 0s to preface numbers less than 10 triggered by
302
+ the change event of the input
303
+ </div>
304
+
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+ <dl class="details">
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+
344
+ <dt class="tag-source">Source:</dt>
345
+ <dd class="tag-source"><ul class="dummy"><li>
346
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line520">line 520</a>
347
+ </li></ul></dd>
348
+
349
+
350
+
351
+
352
+
353
+ <dt class="tag-see">See:</dt>
354
+ <dd class="tag-see">
355
+ <ul>
356
+ <li>boot()</li>
357
+ </ul>
358
+ </dd>
359
+
360
+
361
+
362
+ </dl>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+ <h4 class="name" id="addArrowKeyInput"><span class="type-signature"></span>addArrowKeyInput<span class="signature">()</span><span class="type-signature"></span></h4>
390
+
391
+
392
+
393
+
394
+
395
+
396
+ <div class="description">
397
+ eventlistener that adds arrow key input of values (up/down) and place toggling (left/right) triggered by
398
+ the change event of the input
399
+ </div>
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+ <dl class="details">
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+ <dt class="tag-source">Source:</dt>
441
+ <dd class="tag-source"><ul class="dummy"><li>
442
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line155">line 155</a>
443
+ </li></ul></dd>
444
+
445
+
446
+
447
+
448
+
449
+ <dt class="tag-see">See:</dt>
450
+ <dd class="tag-see">
451
+ <ul>
452
+ <li>boot()</li>
453
+ </ul>
454
+ </dd>
455
+
456
+
457
+
458
+ </dl>
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+ <h4 class="name" id="addClicksToActivate"><span class="type-signature"></span>addClicksToActivate<span class="signature">()</span><span class="type-signature"></span></h4>
486
+
487
+
488
+
489
+
490
+
491
+
492
+ <div class="description">
493
+ eventlistener that adds click to activate input of values by the keyboard triggered by
494
+ the click event of the input
495
+ </div>
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+
509
+ <dl class="details">
510
+
511
+
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+
533
+
534
+
535
+
536
+ <dt class="tag-source">Source:</dt>
537
+ <dd class="tag-source"><ul class="dummy"><li>
538
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line548">line 548</a>
539
+ </li></ul></dd>
540
+
541
+
542
+
543
+
544
+
545
+ <dt class="tag-see">See:</dt>
546
+ <dd class="tag-see">
547
+ <ul>
548
+ <li>boot()</li>
549
+ </ul>
550
+ </dd>
551
+
552
+
553
+
554
+ </dl>
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+
564
+
565
+
566
+
567
+
568
+
569
+
570
+
571
+
572
+
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+ <h4 class="name" id="addHTML"><span class="type-signature"></span>addHTML<span class="signature">()</span><span class="type-signature"></span></h4>
582
+
583
+
584
+
585
+
586
+
587
+
588
+ <div class="description">
589
+ updates inputs-duration marked with shadow html and css
590
+ </div>
591
+
592
+
593
+
594
+
595
+
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+
604
+ <dl class="details">
605
+
606
+
607
+
608
+
609
+
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+ <dt class="tag-source">Source:</dt>
632
+ <dd class="tag-source"><ul class="dummy"><li>
633
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line226">line 226</a>
634
+ </li></ul></dd>
635
+
636
+
637
+
638
+
639
+
640
+ <dt class="tag-see">See:</dt>
641
+ <dd class="tag-see">
642
+ <ul>
643
+ <li>boot()</li>
644
+ </ul>
645
+ </dd>
646
+
647
+
648
+
649
+ </dl>
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+ <h4 class="name" id="addNumberLooping"><span class="type-signature"></span>addNumberLooping<span class="signature">()</span><span class="type-signature"></span></h4>
677
+
678
+
679
+
680
+
681
+
682
+
683
+ <div class="description">
684
+ eventlistener that adds number looping for up and down keys triggered by
685
+ the change event of the input
686
+ </div>
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+ <dl class="details">
701
+
702
+
703
+
704
+
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+
719
+
720
+
721
+
722
+
723
+
724
+
725
+
726
+
727
+ <dt class="tag-source">Source:</dt>
728
+ <dd class="tag-source"><ul class="dummy"><li>
729
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line343">line 343</a>
730
+ </li></ul></dd>
731
+
732
+
733
+
734
+
735
+
736
+ <dt class="tag-see">See:</dt>
737
+ <dd class="tag-see">
738
+ <ul>
739
+ <li>boot()</li>
740
+ </ul>
741
+ </dd>
742
+
743
+
744
+
745
+ </dl>
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+ <h4 class="name" id="addNumericInput"><span class="type-signature"></span>addNumericInput<span class="signature">()</span><span class="type-signature"></span></h4>
773
+
774
+
775
+
776
+
777
+
778
+
779
+ <div class="description">
780
+ eventlistener that adds number input for keyed values triggered by the keyup event
781
+ </div>
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+ <dl class="details">
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+ <dt class="tag-source">Source:</dt>
823
+ <dd class="tag-source"><ul class="dummy"><li>
824
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line409">line 409</a>
825
+ </li></ul></dd>
826
+
827
+
828
+
829
+
830
+
831
+ <dt class="tag-see">See:</dt>
832
+ <dd class="tag-see">
833
+ <ul>
834
+ <li>boot()</li>
835
+ </ul>
836
+ </dd>
837
+
838
+
839
+
840
+ </dl>
841
+
842
+
843
+
844
+
845
+
846
+
847
+
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+
857
+
858
+
859
+
860
+
861
+
862
+
863
+
864
+
865
+
866
+
867
+ <h4 class="name" id="boot"><span class="type-signature"></span>boot<span class="signature">()</span><span class="type-signature"></span></h4>
868
+
869
+
870
+
871
+
872
+
873
+
874
+ <div class="description">
875
+ Called from constructor, sets up the html and event listeners
876
+ </div>
877
+
878
+
879
+
880
+
881
+
882
+
883
+
884
+
885
+
886
+
887
+
888
+
889
+
890
+ <dl class="details">
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+
899
+
900
+
901
+
902
+
903
+
904
+
905
+
906
+
907
+
908
+
909
+
910
+
911
+
912
+
913
+
914
+
915
+
916
+
917
+ <dt class="tag-source">Source:</dt>
918
+ <dd class="tag-source"><ul class="dummy"><li>
919
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line133">line 133</a>
920
+ </li></ul></dd>
921
+
922
+
923
+
924
+
925
+
926
+
927
+
928
+ </dl>
929
+
930
+
931
+
932
+
933
+
934
+
935
+
936
+
937
+
938
+
939
+
940
+
941
+
942
+
943
+
944
+
945
+
946
+
947
+
948
+
949
+
950
+
951
+
952
+
953
+
954
+
955
+ <h4 class="name" id="disable"><span class="type-signature"></span>disable<span class="signature">()</span><span class="type-signature"></span></h4>
956
+
957
+
958
+
959
+
960
+
961
+
962
+ <div class="description">
963
+ disables entire control => read-only
964
+ </div>
965
+
966
+
967
+
968
+
969
+
970
+
971
+
972
+
973
+
974
+
975
+
976
+
977
+
978
+ <dl class="details">
979
+
980
+
981
+
982
+
983
+
984
+
985
+
986
+
987
+
988
+
989
+
990
+
991
+
992
+
993
+
994
+
995
+
996
+
997
+
998
+
999
+
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+ <dt class="tag-source">Source:</dt>
1006
+ <dd class="tag-source"><ul class="dummy"><li>
1007
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line585">line 585</a>
1008
+ </li></ul></dd>
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+
1015
+
1016
+ </dl>
1017
+
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+
1028
+
1029
+
1030
+
1031
+
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+ <h4 class="name" id="noHours"><span class="type-signature"></span>noHours<span class="signature">()</span><span class="type-signature"></span></h4>
1044
+
1045
+
1046
+
1047
+
1048
+
1049
+
1050
+ <div class="description">
1051
+ removes the hours, so the display is mm:ss.uuu
1052
+ </div>
1053
+
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ <dl class="details">
1067
+
1068
+
1069
+
1070
+
1071
+
1072
+
1073
+
1074
+
1075
+
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+
1085
+
1086
+
1087
+
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+ <dt class="tag-source">Source:</dt>
1094
+ <dd class="tag-source"><ul class="dummy"><li>
1095
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line601">line 601</a>
1096
+ </li></ul></dd>
1097
+
1098
+
1099
+
1100
+
1101
+
1102
+
1103
+
1104
+ </dl>
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+
1122
+
1123
+
1124
+
1125
+
1126
+
1127
+
1128
+
1129
+
1130
+
1131
+ <h4 class="name" id="nonNumericBugInHTML"><span class="type-signature"></span>nonNumericBugInHTML<span class="signature">()</span><span class="type-signature"></span></h4>
1132
+
1133
+
1134
+
1135
+
1136
+
1137
+
1138
+ <div class="description">
1139
+ eventlistener that adds key filtering to stop letters (or other non-numerics) from being input triggered by
1140
+ the keypress event of the input
1141
+ </div>
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+
1153
+
1154
+
1155
+ <dl class="details">
1156
+
1157
+
1158
+
1159
+
1160
+
1161
+
1162
+
1163
+
1164
+
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+ <dt class="tag-source">Source:</dt>
1183
+ <dd class="tag-source"><ul class="dummy"><li>
1184
+ <a href="index.js.html">index.js</a>, <a href="index.js.html#line561">line 561</a>
1185
+ </li></ul></dd>
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+ <dt class="tag-see">See:</dt>
1192
+ <dd class="tag-see">
1193
+ <ul>
1194
+ <li>boot()</li>
1195
+ </ul>
1196
+ </dd>
1197
+
1198
+
1199
+
1200
+ </dl>
1201
+
1202
+
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+
1215
+
1216
+
1217
+
1218
+
1219
+
1220
+
1221
+
1222
+
1223
+
1224
+
1225
+
1226
+
1227
+ </article>
1228
+
1229
+ </section>
1230
+
1231
+
1232
+
1233
+
1234
+ </div>
1235
+
1236
+ <nav>
1237
+ <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="InputDuration.html">InputDuration</a></li></ul>
1238
+ </nav>
1239
+
1240
+ <br class="clear">
1241
+
1242
+ <footer>
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
+ </footer>
1245
+
1246
+ <script> prettyPrint(); </script>
1247
+ <script src="scripts/linenumber.js"> </script>
1248
+ </body>
1249
+ </html>