diff --git a/.babelrc b/.babelrc
new file mode 100644
index 0000000..526ddfd
--- /dev/null
+++ b/.babelrc
@@ -0,0 +1,3 @@
+{
+ "presets": ["@babel/preset-env"]
+}
diff --git a/.editorconfig b/.editorconfig
index e717f5e..9aac58c 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -2,8 +2,8 @@
root = true
[*]
-indent_style = space
-indent_size = 2
+indent_style = tab
+indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
diff --git a/.eslintrc b/.eslintrc
index 3b82de0..319fbc4 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -1,29 +1,37 @@
{
- "env": {
- "browser": true,
- "node": true
- },
- "globals": {
- "DocumentFragment": true
- },
- "rules": {
- "indent": [2, 2],
- "valid-jsdoc": 0,
- "brace-style": [1, "stroustrup"],
- "no-constant-condition": 1,
- "no-underscore-dangle": 0,
- "no-use-before-define": 1,
- "func-names": 0,
- "semi": [2, "always"],
- "no-new": 0,
- "new-parens": 2,
- "no-ternary": 0,
- "new-cap": 0,
- "no-unused-vars": [1, {"vars": "local", "args": "none"}],
- "quotes": [2, "single"],
- "one-var": 0,
- "space-infix-ops": 0,
- "strict": 0,
- "camelcase": [2, {"properties": "never"}]
- }
+ "env": {
+ "browser": true,
+ "node": true,
+ "es6": true
+ },
+ "extends": ["plugin:prettier/recommended"],
+ "parserOptions": {
+ "ecmaFeatures": {
+ "modules": true
+ },
+ "sourceType": "module"
+ },
+ "globals": {
+ "DocumentFragment": true
+ },
+ "rules": {
+ "indent": [1, "tab"],
+ "valid-jsdoc": 0,
+ "brace-style": [1, "1tbs"],
+ "no-constant-condition": 1,
+ "no-underscore-dangle": 0,
+ "no-use-before-define": 1,
+ "func-names": 0,
+ "semi": [1, "never"],
+ "no-new": 0,
+ "new-parens": 1,
+ "no-ternary": 0,
+ "new-cap": 0,
+ "no-unused-vars": [1, { "vars": "local", "args": "none" }],
+ "quotes": [1, "single"],
+ "one-var": 0,
+ "space-infix-ops": 0,
+ "strict": 0,
+ "camelcase": 0
+ }
}
diff --git a/.gitignore b/.gitignore
index 6f83170..8a4bf85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,5 +4,5 @@ build
tmp
.grunt
.DS_Store
-file-loader.pug
+auto-imports.pug
docs/scripts/time-input-polyfill.*
diff --git a/.prettierrc b/.prettierrc
new file mode 100644
index 0000000..697bd8e
--- /dev/null
+++ b/.prettierrc
@@ -0,0 +1,7 @@
+{
+ "singleQuote": true,
+ "trailingComma": "es5",
+ "useTabs": true,
+ "tabWidth": 4,
+ "semi": false
+}
diff --git a/README.md b/README.md
index 0ec7fd4..94808dc 100644
--- a/README.md
+++ b/README.md
@@ -4,18 +4,18 @@
An accessible polyfill for `` elements.
-- ✔️ Modeled after the Chrome 78 and Firefox 70 desktop implementations.
-- ✔️ Fully keyboard and screen reader accessible.
-- ✔️ Submits the same values to servers as real time inputs (24 hour time).
-- ✔️ Only downloads the full polyfill code in the browsers that need it.
-- ✔️ Zero dependencies.
+- ✔️ Modeled after the Chrome 78 and Firefox 70 desktop implementations.
+- ✔️ Fully keyboard and screen reader accessible.
+- ✔️ Submits the same values to servers as real time inputs (24 hour time).
+- ✔️ Only downloads the full polyfill code in the browsers that need it.
+- ✔️ Zero dependencies.
Demo available here: https://dan503.github.io/time-input-polyfill/
If the recommended version in this documentation is out of sync with the npm version, this is because npm only allows readme edits to be committed through full releases. To prevent needless cache invalidation, I'll only update the recommended version number when there are actual changes to the polyfill code. The current recommended version is If the recommended version in this documentation is out of sync with the npm version, this is because npm only allows readme edits to be committed through full releases. To prevent needless cache invalidation, I'll only update the recommended version number when there are actual changes to the polyfill code. The current recommended version is The recommended version is
+ 1.0.9
or higher.The recommended version is
-1.0.10
or higher.1.0.9
. As long as you are using a version that is equal to or higher than that, you are using the latest version of the polyfill.1.0.10
. As long as you are using a version that is equal to or higher than that, you are using the latest version of the polyfill.
")+"
";v=v.replace(/\$label/g,e.polyfill.label),v=v.replace(/\$segmentName/g,c),v=v.replace(/\$segmentValue/g,i),v=v.replace(/\$fullValue/g,l),e.polyfill.$a11y.innerHTML=v},1)}},{"../getters/get_current_segment":14,"../getters/get_values":17}],3:[function(e,t,r){t.exports=function(e){return e<=12?0===e?12:e:e-12}},{}],4:[function(e,t,r){t.exports=function(e){return isNaN(e)?e:parseInt(e)}},{}],5:[function(e,t,r){var n=e("./convert_number"),s=e("./convert_hours_to_12hr_time"),a=e("./leading_zero");t.exports=function(e){if(""===e)return"--:-- --";var t=/([0-9]{2})\:([0-9]{2})/,r=t.exec(e),o=n(r[1]),i=r[2],c=s(o),u=o>=12,_=u?"PM":"AM";return[a(c),":",i," ",_].join("")}},{"./convert_hours_to_12hr_time":3,"./convert_number":4,"./leading_zero":7}],6:[function(e,t,r){var n=e("./leading_zero");t.exports=function(e){if(/-/.test(e))return"";var t,r=e.indexOf("PM")>-1,s=/^([0-9]{2})/.exec(e),a=s?parseInt(s[1]):"";t=12===a?r?12:0:r?a+12:a;var o=24===t?0:t,i=/^[0-9]{2}:([0-9]{2}) (AM|PM)/;return e.replace(i,n(o)+":$1")}},{"./leading_zero":7}],7:[function(e,t,r){t.exports=function(e){if(isNaN(e))return e;var t=parseInt(e);return t<10?"0"+t:e}},{}],8:[function(e,t,r){function n(e){e.polyfill.autoSwap&&(d(e,24),setTimeout(function(){d(e,12)},1))}var s=e("../helpers/values"),a=e("../selectors/select_segment"),o=e("../selectors/next_segment"),i=e("../selectors/prev_segment"),c=e("../selectors/select_cursor_segment"),u=e("../getters/get_current_segment"),_=e("../setters/reset"),l=e("../setters/manual_number_entry"),v=e("../setters/clear_segment"),f=e("../setters/increment_current_segment"),g=e("../setters/decrement_current_segment"),m=e("../setters/set_mode"),d=e("../setters/switch_times"),p=e("../events/handle_tab"),h=e("../static-values/all_number_keys"),b=e("../static-values/named_keys"),x=e("../accessibility/update_a11y");t.exports=function(e){var t="",r=!1;document.addEventListener("keydown",function(e){r=e.shiftKey}),document.addEventListener("keyup",function(e){r=e.shiftKey}),e.form&&e.form.addEventListener("submit",function(){n(e)});var d=!1;e.addEventListener("mousedown",function(){d=!0}),e.addEventListener("mouseup",function(){setTimeout(function(){""===e.value&&_(e)},1)}),e.addEventListener("click",function(t){c(e)}),e.addEventListener("blur",function(){var r=e.dataset.value;r!==t&&(t=r),d=!1}),e.addEventListener("focus",function(t){if(!d){t.preventDefault();var n=r?"mode":"hrs";a(e,n)}x(e,["initial","select"])}),e.addEventListener("keydown",function(t){var r=13===t.which;if(r)return!0;var n=h.indexOf(t.which)>-1,a=s(b).indexOf(t.which)>-1,c=[b.ArrowDown,b.ArrowRight,b.ArrowUp,b.ArrowLeft].indexOf(t.which)>-1,d=[b.a,b.p].indexOf(t.which)>-1,x=[b.Delete,b.Backspace].indexOf(t.which)>-1;if((!a||c||n||d||x)&&t.preventDefault(),n&&l(e,t.which),x){var y=u(e);v(e,y)}switch(t.which){case b.ArrowRight:o(e);break;case b.ArrowLeft:i(e);break;case b.ArrowUp:f(e);break;case b.ArrowDown:g(e);break;case b.Escape:_(e);break;case b.a:m(e,"AM");break;case b.p:m(e,"PM");break;case b.Tab:p(e,t)}})}},{"../accessibility/update_a11y":2,"../events/handle_tab":10,"../getters/get_current_segment":14,"../helpers/values":19,"../selectors/next_segment":20,"../selectors/prev_segment":21,"../selectors/select_cursor_segment":22,"../selectors/select_segment":23,"../setters/clear_segment":26,"../setters/decrement_current_segment":28,"../setters/increment_current_segment":30,"../setters/manual_number_entry":31,"../setters/reset":33,"../setters/set_mode":35,"../setters/switch_times":39,"../static-values/all_number_keys":42,"../static-values/named_keys":43}],9:[function(e,t,r){t.exports=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}},{}],10:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("../selectors/prev_segment"),a=e("../selectors/next_segment");t.exports=function(e,t){var r=n(e),o=t.shiftKey&&"hrs"===r,i=!t.shiftKey&&"mode"===r;o||i||(t.preventDefault(),t.shiftKey?s(e):a(e))}},{"../getters/get_current_segment":14,"../selectors/next_segment":20,"../selectors/prev_segment":21}],11:[function(e,t,r){var n=e("./trigger_event");t.exports=function(e){n(e,"input"),n(e,"change")}},{"./trigger_event":12}],12:[function(e,t,r){function n(e){return!/--/.test(e.value)}var s=e("./create_event"),a=s("input"),o=s("change");t.exports=function(e,t){var r={input:a,change:o}[t];n(e)&&e.dispatchEvent(r)}},{"./create_event":9}],13:[function(e,t,r){t.exports=function(e,t){for(var r=e,n=[];r;){n.push(r);var s=r.msMatchesSelector?r.msMatchesSelector(t):r.matches(t);if(s)return n;r=r.parentElement}return n}},{}],14:[function(e,t,r){var n=e("../static-values/ranges"),s=e("./get_selected_range");t.exports=function(e){var t=s(e);for(var r in n){var a=n[r],o=a.start<=t.start,i=a.end>=t.end;if(o&&i)return r}return"hrs"}},{"../static-values/ranges":44,"./get_selected_range":16}],15:[function(e,t,r){function n(e){var t=e.getAttribute("aria-labelledby");if(t){var r=document.getElementById(t);if(r)return r.textContent}return!1}function s(e){var t=e.getAttribute("aria-label");return!!t&&t}function a(e){if(e.id){var t=document.querySelector('label[for="'+e.id+'"]');if(t)return t.textContent}return!1}function o(e){var t=c(e,"label"),r=t[t.length-1];return"LABEL"==r.nodeName&&r.textContent}function i(e){var t=e.getAttribute("title");return!!t&&t}var c=e("./get_ancestors");t.exports=function(e){var t=n(e)||s(e)||a(e)||o(e)||i(e);if(t)return t;throw console.error("Label text for input not found.",e),new Error("Cannot polyfill time input due to a missing label.")}},{"./get_ancestors":13}],16:[function(e,t,r){t.exports=function(e){return{start:e.selectionStart,end:e.selectionEnd}}},{}],17:[function(e,t,r){var n=e("../converters/convert_number");t.exports=function(e,t){var r=t?t:e.value,s=/([0-9-]{1,2})\:([0-9-]{1,2})\s?(AM|PM|\-\-)?/,a=s.exec(r);return{hrs:n(a[1]),min:n(a[2]),mode:a[3]}}},{"../converters/convert_number":4}],18:[function(e,t,r){function n(){o=[]}function s(e){o.push(e)}function a(){return o}var o=[];t.exports={items:a,clear:n,add:s}},{}],19:[function(e,t,r){t.exports=function(e){var t=[];for(var r in e)t.push(e[r]);return t}},{}],20:[function(e,t,r){var n=e("./traverse");t.exports=function(e){n(e,"next")}},{"./traverse":24}],21:[function(e,t,r){var n=e("./traverse");t.exports=function(e){n(e,"prev")}},{"./traverse":24}],22:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("./select_segment");t.exports=function(e){var t=n(e);s(e,t)}},{"../getters/get_current_segment":14,"./select_segment":23}],23:[function(e,t,r){t.exports=function(e,t){function r(){var r="mode"===t?"text":"tel";e.setAttribute("type",r)}function n(t,r){return function(){e.setSelectionRange(t,r)}}r();var s={hrs:n(0,2),min:n(3,5),mode:n(6,8)};s[t](e)}},{}],24:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("../selectors/select_segment"),a=e("../helpers/manual_entry_log"),o=e("../static-values/segments"),i=e("../accessibility/update_a11y");t.exports=function(e,t){var r=n(e),c="next"===t?1:-1,u=o.indexOf(r)+c,_={next:o[u]||"mode",prev:u<0?"hrs":o[u]}[t];s(e,_),a.clear(),i(e,["select"])}},{"../accessibility/update_a11y":2,"../getters/get_current_segment":14,"../helpers/manual_entry_log":18,"../selectors/select_segment":23,"../static-values/segments":45}],25:[function(e,t,r){var n=e("../setters/set_data_attribute"),s=e("../events/trigger_both_events");t.exports=function(e){e.value="--:-- --",n(e,""),s(e)}},{"../events/trigger_both_events":11,"../setters/set_data_attribute":34}],26:[function(e,t,r){var n=e("./set_segment"),s=e("../accessibility/update_a11y");t.exports=function(e,t){n(e,t,"--"),s(e,["update"])}},{"../accessibility/update_a11y":2,"./set_segment":36}],27:[function(e,t,r){var n=e("./switch_mode"),s=e("./nudge_time_segment"),a=e("../accessibility/update_a11y");t.exports=function(e,t){"mode"===t?n(e,"PM"):s(e,t,"down"),a(e,["update"])}},{"../accessibility/update_a11y":2,"./nudge_time_segment":32,"./switch_mode":38}],28:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("../setters/decrement");t.exports=function(e){var t=n(e);s(e,t)}},{"../getters/get_current_segment":14,"../setters/decrement":27}],29:[function(e,t,r){var n=e("./switch_mode"),s=e("./nudge_time_segment"),a=e("../accessibility/update_a11y");t.exports=function(e,t){"mode"===t?n(e,"AM"):s(e,t,"up"),a(e,["update"])}},{"../accessibility/update_a11y":2,"./nudge_time_segment":32,"./switch_mode":38}],30:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("../setters/increment");t.exports=function(e){var t=n(e);s(e,t)}},{"../getters/get_current_segment":14,"../setters/increment":29}],31:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("./set_segment"),a=e("../selectors/next_segment"),o=e("../helpers/manual_entry_log"),i=e("../static-values/sorted_number_keys");t.exports=function(e,t){var r=i[t],c=n(e);if("mode"!==c){var u=o.items().length,_={hrs:[1,2],min:[5,9]},l=_[c][u];u<2&&o.add(r);var v=parseInt(_[c].join("")),f=parseInt(o.items().join(""));v>=f&&s(e,c,f);var g=r>l||2===o.items().length;g&&a(e)}}},{"../getters/get_current_segment":14,"../helpers/manual_entry_log":18,"../selectors/next_segment":20,"../static-values/sorted_number_keys":46,"./set_segment":36}],32:[function(e,t,r){var n=e("../getters/get_values"),s=e("../converters/convert_hours_to_12hr_time"),a=e("../converters/leading_zero"),o=e("./set_segment");t.exports=function(e,t,r){var i,c=n(e),u="up"===r?1:-1;if("--"===c[t]){var _=new Date;i={hrs:s(_.getHours()),min:_.getMinutes()}}else{var l={up:c.min<59?c.min+u:0,down:0===c.min?59:c.min+u};i={hrs:s(c.hrs+u),min:l[r]}}o(e,t,a(i[t]))}},{"../converters/convert_hours_to_12hr_time":3,"../converters/leading_zero":7,"../getters/get_values":17,"./set_segment":36}],33:[function(e,t,r){var n=e("./apply_default"),s=e("../selectors/select_segment");t.exports=function(e){n(e),s(e,"hrs")}},{"../selectors/select_segment":23,"./apply_default":25}],34:[function(e,t,r){var n=e("../converters/convert_to_24hr_time");t.exports=function(e,t){var r=t.indexOf("-")>-1?"":t,s=n(r);e.setAttribute("data-value",s)}},{"../converters/convert_to_24hr_time":6}],35:[function(e,t,r){var n=e("../getters/get_current_segment"),s=e("./set_segment");t.exports=function(e,t){var r=n(e);"mode"===r&&s(e,r,t)}},{"../getters/get_current_segment":14,"./set_segment":36}],36:[function(e,t,r){var n=e("../getters/get_values"),s=e("../converters/leading_zero"),a=e("../selectors/select_segment"),o=e("./set_data_attribute"),i=e("../events/trigger_both_events");t.exports=function(e,t,r){var c=n(e);c[t]=r;var u=[s(c.hrs),":",s(c.min)," ",c.mode].join("");e.value=u,a(e,t),o(e,u),i(e)}},{"../converters/leading_zero":7,"../events/trigger_both_events":11,"../getters/get_values":17,"../selectors/select_segment":23,"./set_data_attribute":34}],37:[function(e,t,r){var n=e("../converters/convert_to_12hr_time"),s=e("../setters/set_data_attribute");t.exports=function(e,t){var r=n(t);e.value=r,s(e,t)}},{"../converters/convert_to_12hr_time":5,"../setters/set_data_attribute":34}],38:[function(e,t,r){var n=e("../getters/get_values"),s=e("./set_segment");t.exports=function(e,t){t=t||"AM";var r=n(e).mode,a={"--":t,AM:"PM",PM:"AM"}[r];s(e,"mode",a)}},{"../getters/get_values":17,"./set_segment":36}],39:[function(e,t,r){var n=e("./switch_to_data_value"),s=e("./set_time");t.exports=function(e,t){var r=/\s/.test(e.value);12!=t&&24!=t&&(t=r?24:12);var a={12:function(){r||s(e,e.dataset.value)},24:function(){r&&n(e)}};a[t]()}},{"./set_time":37,"./switch_to_data_value":40}],40:[function(e,t,r){t.exports=function(e){var t=e.dataset.value;e.value=t}},{}],41:[function(e,t,r){var n=e("../setters/set_time");t.exports=function(e){return n(e,e.value),e}},{"../setters/set_time":37}],42:[function(e,t,r){var n=[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105];t.exports=n},{}],43:[function(e,t,r){var n={ArrowDown:40,ArrowRight:39,ArrowUp:38,ArrowLeft:37,Backspace:8,Delete:46,Tab:9,Shift:16,Escape:27,a:65,p:80};t.exports=n},{}],44:[function(e,t,r){var n={hrs:{start:0,end:2},min:{start:3,end:5},mode:{start:6,end:8}};t.exports=n},{}],45:[function(e,t,r){var n=e("./ranges"),s=Object.keys(n);t.exports=s},{"./ranges":44}],46:[function(e,t,r){var n=e("./all_number_keys"),s={};n.forEach(function(e,t){var r=t>9?t-10:t;s[e]=r}),t.exports=s},{"./all_number_keys":42}],47:[function(e,t,r){function n(e){e.setAttribute("autocomplete","off"),e.setAttribute("aria-hidden",!0),v||(s=l(),v=!0);var t=_(e);e.polyfill={$a11y:s,label:t,autoSwap:!0,update:function(){o(e)},swap:function(t){u(e,t)}},""===e.value||/--/.test(e.value)?(a(e),i(e,"")):(o(e),i(e,e.value)),c(e)}var s,a=e("./core/setters/apply_default"),o=e("./core/setters/update_time"),i=e("./core/setters/set_data_attribute"),c=e("./core/events/bind_events"),u=e("./core/setters/switch_times"),_=e("./core/getters/get_label"),l=e("./core/accessibility/create_a11y_block"),v=!1;window&&(window.TimePolyfill=n),t&&(t.exports=n)},{"./core/accessibility/create_a11y_block":1,"./core/events/bind_events":8,"./core/getters/get_label":15,"./core/setters/apply_default":25,"./core/setters/set_data_attribute":34,"./core/setters/switch_times":39,"./core/setters/update_time":41}]},{},[47]); +var TimePolyfill_bundle=function(){"use strict";function e(e){if(isNaN(e))return e;var t=parseInt(e);return t<10?"0"+t:e}function t(t,n){var r=function(t){if(/-/.test(t))return"";var n,r=t.indexOf("PM")>-1,i=/^([0-9]{2})/.exec(t),a=i?parseInt(i[1]):"",u=24===(n=12===a?r?12:0:r?a+12:a)?0:n;return t.replace(/^[0-9]{2}:([0-9]{2}) (AM|PM)/,e(u)+":$1")}(n.indexOf("-")>-1?"":n);t.setAttribute("data-value",r)}function n(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}var r=n("input"),i=n("change");function a(e,t){var n={input:r,change:i}[t];(function(e){return!/--/.test(e.value)})(e)&&e.dispatchEvent(n)}function u(e){a(e,"input"),a(e,"change")}function o(e){e.value="--:-- --",t(e,""),u(e)}function c(e){return isNaN(e)?e:parseInt(e)}function f(e){return e<=12?0===e?12:e:e-12}function s(n,r){var i=function(t){if(""===t)return"--:-- --";var n=/([0-9]{2})\:([0-9]{2})/.exec(t),r=c(n[1]),i=n[2],a=r>=12?"PM":"AM";return[e(f(r)),":",i," ",a].join("")}(r);n.value=i,t(n,r)}function l(e){return s(e,e.value),e}function d(e,t){var n;function r(t,n){return function(){e.setSelectionRange(t,n)}}n="mode"===t?"text":"tel",e.setAttribute("type",n),{hrs:r(0,2),min:r(3,5),mode:r(6,8)}[t](e)}var v={hrs:{start:0,end:2},min:{start:3,end:5},mode:{start:6,end:8}};function p(e){var t=function(e){return{start:e.selectionStart,end:e.selectionEnd}}(e);for(var n in v){var r=v[n],i=r.start<=t.start,a=r.end>=t.end;if(i&&a)return n}return"hrs"}var m=[];var h={items:function(){return m},clear:function(){m=[]},add:function(e){m.push(e)}},w=Object.keys(v);function b(e,t){var n=t||e.value,r=/([0-9-]{1,2})\:([0-9-]{1,2})\s?(AM|PM|\-\-)?/.exec(n);return{hrs:c(r[1]),min:c(r[2]),mode:r[3]}}function A(e,t){setTimeout((function(){var n=p(e),r=b(e)[n],i="--"==r?"blank":r,a={hrs:"Hours",min:"Minutes",mode:"AM/PM"}[n],u={initial:"$label grouping $fullValue.",select:"$segmentName spin button $segmentValue.",update:"$segmentValue."},o=t.map((function(e){return u[e]?u[e]:e})),c=e.value.replace(/--/g,"blank"),f=""+o.join("
")+"
";f=(f=(f=(f=f.replace(/\$label/g,e.polyfill.label)).replace(/\$segmentName/g,a)).replace(/\$segmentValue/g,i)).replace(/\$fullValue/g,c),e.polyfill.$a11y.innerHTML=f}),1)}function g(e,t){var n=p(e),r="next"===t?1:-1,i=w.indexOf(n)+r;d(e,{next:w[i]||"mode",prev:i<0?"hrs":w[i]}[t]),h.clear(),A(e,["select"])}function y(e){g(e,"next")}function M(e){g(e,"prev")}function E(e){o(e),d(e,"hrs")}function x(n,r,i){var a=b(n);a[r]=i;var o=[e(a.hrs),":",e(a.min)," ",a.mode].join("");n.value=o,d(n,r),t(n,o),u(n)}var k=[48,49,50,51,52,53,54,55,56,57,96,97,98,99,100,101,102,103,104,105],L={};function $(e,t){x(e,"mode",{"--":t=t||"AM",AM:"PM",PM:"AM"}[b(e).mode])}function P(t,n,r){var i,a=b(t),u="up"===r?1:-1;if("--"===a[n]){var o=new Date;i={hrs:f(o.getHours()),min:o.getMinutes()}}else{var c={up:a.min<59?a.min+u:0,down:0===a.min?59:a.min+u};i={hrs:f(a.hrs+u),min:c[r]}}x(t,n,e(i[n]))}function D(e){!function(e,t){"mode"===t?$(e,"AM"):P(e,t,"up"),A(e,["update"])}(e,p(e))}function O(e){!function(e,t){"mode"===t?$(e,"PM"):P(e,t,"down"),A(e,["update"])}(e,p(e))}function S(e,t){var n=p(e);"mode"===n&&x(e,n,t)}k.forEach((function(e,t){var n=t>9?t-10:t;L[e]=n}));function T(e,t){var n=/\s/.test(e.value);12!=t&&24!=t&&(t=n?24:12),{12:function(){n||s(e,e.dataset.value)},24:function(){n&&function(e){var t=e.dataset.value;e.value=t}(e)}}[t]()}var N={ArrowDown:40,ArrowRight:39,ArrowUp:38,ArrowLeft:37,Backspace:8,Delete:46,Tab:9,Shift:16,Escape:27,a:65,p:80};function j(e){var t=!1;document.addEventListener("keydown",(function(e){t=e.shiftKey})),document.addEventListener("keyup",(function(e){t=e.shiftKey})),e.form&&e.form.addEventListener("submit",(function(){!function(e){e.polyfill.autoSwap&&(T(e,24),setTimeout((function(){T(e,12)}),1))}(e)}));var n=!1;e.addEventListener("mousedown",(function(){n=!0})),e.addEventListener("mouseup",(function(){setTimeout((function(){""===e.value&&E(e)}),1)})),e.addEventListener("click",(function(t){!function(e){d(e,p(e))}(e)})),e.addEventListener("blur",(function(){n=!1})),e.addEventListener("focus",(function(r){n||(r.preventDefault(),d(e,t?"mode":"hrs"));A(e,["initial","select"])})),e.addEventListener("keydown",(function(t){if(13===t.which)return!0;var n=k.indexOf(t.which)>-1,r=function(e){var t=[];for(var n in e)t.push(e[n]);return t}(N).indexOf(t.which)>-1,i=[N.ArrowDown,N.ArrowRight,N.ArrowUp,N.ArrowLeft].indexOf(t.which)>-1,a=[N.a,N.p].indexOf(t.which)>-1,u=[N.Delete,N.Backspace].indexOf(t.which)>-1;if((!r||i||n||a||u)&&t.preventDefault(),n&&function(e,t){var n=L[t],r=p(e);if("mode"!==r){var i=h.items().length,a={hrs:[1,2],min:[5,9]},u=a[r][i];i<2&&h.add(n);var o=parseInt(a[r].join("")),c=parseInt(h.items().join(""));o>=c&&x(e,r,c),(n>u||2===h.items().length)&&y(e)}}(e,t.which),u){var o=p(e);!function(e,t){x(e,t,"--"),A(e,["update"])}(e,o)}switch(t.which){case N.ArrowRight:y(e);break;case N.ArrowLeft:M(e);break;case N.ArrowUp:D(e);break;case N.ArrowDown:O(e);break;case N.Escape:E(e);break;case N.a:S(e,"AM");break;case N.p:S(e,"PM");break;case N.Tab:!function(e,t){var n=p(e),r=t.shiftKey&&"hrs"===n,i=!t.shiftKey&&"mode"===n;r||i||(t.preventDefault(),t.shiftKey?M(e):y(e))}(e,t)}}))}function C(e){var t=function(e){var t=e.getAttribute("aria-labelledby");if(t){var n=document.getElementById(t);if(n)return n.textContent}return!1}(e)||function(e){var t=e.getAttribute("aria-label");return t||!1}(e)||function(e){if(e.id){var t=document.querySelector('label[for="'+e.id+'"]');if(t)return t.textContent}return!1}(e)||function(e){var t=function(e,t){for(var n=e,r=[];n;){if(r.push(n),n.msMatchesSelector?n.msMatchesSelector(t):n.matches(t))return r;n=n.parentElement}return r}(e,"label"),n=t[t.length-1];return"LABEL"==n.nodeName&&n.textContent}(e)||function(e){var t=e.getAttribute("title");return t||!1}(e);if(t)return t;throw console.error("Label text for input not found.",e),new Error("Cannot polyfill time input due to a missing label.")}var I,K=!1;function V(e,n){var r;e.setAttribute("autocomplete","off"),e.setAttribute("aria-hidden",!0),K||((r=document.createElement("div")).setAttribute("aria-live","assertive"),r.setAttribute("style","position: absolute; opacity: 0; height: 0; width: 0; overflow: hidden; pointer-events: none;"),r.classList.add("time-input-polyfill-accessibility-block"),document.querySelector("body").appendChild(r),I=r,K=!0);var i=n?n.textContent:C(e);e.polyfill={$a11y:I,label:i,autoSwap:!0,update:function(){l(e)},swap:function(t){T(e,t)}},""===e.value||/--/.test(e.value)?(o(e),t(e,"")):(l(e),t(e,e.value)),j(e)}return window&&(window.TimePolyfill=V),V}(); //# sourceMappingURL=time-input-polyfill.min.js.map diff --git a/dist/time-input-polyfill.min.js.map b/dist/time-input-polyfill.min.js.map index e4f3344..38d89e8 100644 --- a/dist/time-input-polyfill.min.js.map +++ b/dist/time-input-polyfill.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["node_modules/browser-pack/_prelude.js","core/accessibility/create_a11y_block.js","index.js","core/accessibility/update_a11y.js","core/converters/convert_hours_to_12hr_time.js","core/converters/convert_number.js","core/converters/convert_to_12hr_time.js","core/converters/convert_to_24hr_time.js","core/converters/leading_zero.js","core/events/bind_events.js","core/events/create_event.js","core/events/handle_tab.js","core/events/trigger_both_events.js","core/events/trigger_event.js","core/getters/get_ancestors.js","core/getters/get_current_segment.js","core/getters/get_label.js","core/getters/get_selected_range.js","core/getters/get_values.js","core/helpers/manual_entry_log.js","core/helpers/values.js","core/selectors/next_segment.js","core/selectors/prev_segment.js","core/selectors/select_cursor_segment.js","core/selectors/select_segment.js","core/selectors/traverse.js","core/setters/apply_default.js","core/setters/clear_segment.js","core/setters/decrement.js","core/setters/decrement_current_segment.js","core/setters/increment.js","core/setters/increment_current_segment.js","core/setters/manual_number_entry.js","core/setters/nudge_time_segment.js","core/setters/reset.js","core/setters/set_data_attribute.js","core/setters/set_mode.js","core/setters/set_segment.js","core/setters/set_time.js","core/setters/switch_mode.js","core/setters/switch_times.js","core/setters/switch_to_data_value.js","core/setters/update_time.js","core/static-values/all_number_keys.js","core/static-values/named_keys.js","core/static-values/ranges.js","core/static-values/segments.js","core/static-values/sorted_number_keys.js"],"names":["r","e","n","t","o","i","f","c","require","u","a","Error","code","p","exports","call","length","1","module","$block","document","createElement","setAttribute","classList","add","querySelector","appendChild","2","get_current_segment","get_values","$input","announcementArray","setTimeout","current_segment","values","value","finalValue","segmentName","hrs","min","mode","announcements","initial","select","update","textArray","map","providedString","fullValue","replace","html","join","polyfill","label","$a11y","innerHTML","../getters/get_current_segment","../getters/get_values","3","hours","4","number","isNaN","parseInt","5","convert_number","convert_hours_to_12hr_time","leading_zero","timeString_24hr","twentyFour_regex","result","exec","hrs_24","hrs_12","isPM","./convert_hours_to_12hr_time","./convert_number","./leading_zero","6","timeString_12hr","test","newHrs","indexOf","timeResult","finalHrs","timeRegEx","7","purified","8","auto_swap","autoSwap","switch_times","select_segment","next_segment","prev_segment","select_cursor_segment","reset","manual_number_entry","clear_segment","increment_current_segment","decrement_current_segment","set_mode","handle_tab","all_number_keys","named_keys","update_a11y","prev_value","shiftKey","addEventListener","form","focused_via_click","current_value","dataset","preventDefault","segment","is_enter_key","which","is_number_key","is_named_key","is_arrow_key","ArrowDown","ArrowRight","ArrowUp","ArrowLeft","is_mode_key","is_delete_key","Delete","Backspace","Escape","Tab","../accessibility/update_a11y","../events/handle_tab","../helpers/values","../selectors/next_segment","../selectors/prev_segment","../selectors/select_cursor_segment","../selectors/select_segment","../setters/clear_segment","../setters/decrement_current_segment","../setters/increment_current_segment","../setters/manual_number_entry","../setters/reset","../setters/set_mode","../setters/switch_times","../static-values/all_number_keys","../static-values/named_keys","9","eventName","event","createEvent","initEvent","10","backwards_and_first","forwards_and_last","11","trigger_event","./trigger_event","12","can_trigger_change","create_event","inputEvent","changeEvent","input","change","dispatchEvent","./create_event","13","selectorString","$elem","ancestors","push","matchesSelector","msMatchesSelector","matches","parentElement","14","ranges","get_selected_range","selection","range","aboveMin","start","belowMax","end","../static-values/ranges","./get_selected_range","15","aria_labelledby","ariaLabelByID","getAttribute","$ariaLabelBy","getElementById","textContent","aria_label","ariaLabel","for_attribute","id","$forLabel","label_wrapper_element","get_ancestors","$parentLabel","nodeName","title_attribute","titleLabel","labelText","console","error","./get_ancestors","16","selectionStart","selectionEnd","17","timeString","regEx","../converters/convert_number","18","clear","manual_entry_log","entry","items","19","obj","key_values","key","20","traverse","./traverse","21","22","./select_segment","23","set_input_type","type","setSelectionRange","actions","24","segments","direction","modifier","next_segment_index","next","prev","../helpers/manual_entry_log","../static-values/segments","25","set_data_attribute","trigger_both_events","../events/trigger_both_events","../setters/set_data_attribute","26","set_segment","./set_segment","27","switch_mode","nudge_time_segment","./nudge_time_segment","./switch_mode","28","decrement","../setters/decrement","29","30","increment","../setters/increment","31","sorted_number_keys","key_value","entry_count","upper_limits","limit","full_limit","full_entry","at_limit","../static-values/sorted_number_keys","32","time","current_values","current_time","Date","getHours","getMinutes","minutes","up","down","../converters/convert_hours_to_12hr_time","../converters/leading_zero","33","apply_default","./apply_default","34","convert_to_24hr_time","filteredString","time24hr","../converters/convert_to_24hr_time","35","36","newInputVal","./set_data_attribute","37","convert_to_12hr_time","time_string_24hr","twelveHr","../converters/convert_to_12hr_time","38","default_mode","current_mode","new_mode","--","AM","PM","39","switch_to_data_value","set_time","format","is12hr","./set_time","./switch_to_data_value","40","replacementVal","41","../setters/set_time","42","43","Shift","44","45","Object","keys","./ranges","46","forEach","index","number_val","./all_number_keys","47","TimePolyfill","accessibility_block_created","create_a11y_block","get_label","update_time","swap","forcedFormat","bind_events","window","./core/accessibility/create_a11y_block","./core/events/bind_events","./core/getters/get_label","./core/setters/apply_default","./core/setters/set_data_attribute","./core/setters/switch_times","./core/setters/update_time"],"mappings":";;;;;;;;CAAA,WAAA,QAAAA,GAAAC,EAAAC,EAAAC,GAAA,QAAAC,GAAAC,EAAAC,GAAA,IAAAJ,EAAAG,GAAA,CAAA,IAAAJ,EAAAI,GAAA,CAAA,GAAAE,GAAA,kBAAAC,UAAAA,OAAA,KAAAF,GAAAC,EAAA,MAAAA,GAAAF,GAAA,EAAA,IAAAI,EAAA,MAAAA,GAAAJ,GAAA,EAAA,IAAAK,GAAA,GAAAC,OAAA,uBAAAN,EAAA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AA4G,GACA,GAAAC,GAAAD,EAAA,EAAAA,EAAA,GAAAA,CACAlE,GAAA1C,GAAA6G,IAGA1T,EAAAJ,QAAA2P,I7Co0BGoE,oBAAoB,KAAKC,IAAI,SAAStU,EAAQU,EAAOJ,GAj0BxD,QAAAiU,GAAAjT,GACAA,EAAAR,aAAA,eAAA,OAGAQ,EAAAR,aAAA,eAAA,GAEA0T,IACA1R,EAAA2R,IACAD,GAAA,EAGA,IAAA3R,GAAA6R,EAAApT,EAEAA,GAAAsB,UACAE,MAAAA,EACAD,MAAAA,EACAqC,UAAA,EACA9C,OAAA,WACAuS,EAAArT,IAEAsT,KAAA,SAAAC,GACA1P,EAAA7D,EAAAuT,KAIA,KAAAvT,EAAAK,OAAA,KAAA6C,KAAAlD,EAAAK,QACA4P,EAAAjQ,GACAuN,EAAAvN,EAAA,MAEAqT,EAAArT,GACAuN,EAAAvN,EAAAA,EAAAK,QAGAmT,EAAAxT,GA7CA,GAUAwB,GAVAyO,EAAAvR,EAAA,gCACA2U,EAAA3U,EAAA,8BACA6O,EAAA7O,EAAA,qCACA8U,EAAA9U,EAAA,6BACAmF,EAAAnF,EAAA,+BACA0U,EAAA1U,EAAA,4BAEAyU,EAAAzU,EAAA,0CAEAwU,GAAA,CAuCAO,UAAAA,OAAAR,aAAAA,GACA7T,IAAAA,EAAAJ,QAAAiU,KAg1BGS,yCAAyC,EAAEC,4BAA4B,EAAEC,2BAA2B,GAAGC,+BAA+B,GAAGC,oCAAoC,GAAGC,8BAA8B,GAAGC,6BAA6B,UAAU","file":"time-input-polyfill.min.js","sourcesContent":["(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c=\"function\"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error(\"Cannot find module '\"+i+\"'\");throw a.code=\"MODULE_NOT_FOUND\",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u=\"function\"==typeof require&&require,i=0;i') + '
'\r\n html = html.replace(/\\$label/g, $input.polyfill.label)\r\n html = html.replace(/\\$segmentName/g, segmentName)\r\n html = html.replace(/\\$segmentValue/g, finalValue)\r\n html = html.replace(/\\$fullValue/g, fullValue)\r\n\r\n $input.polyfill.$a11y.innerHTML = html\r\n }, 1)\r\n}\r\n","module.exports = function convert_hours_to_12hr_time(hours) {\r\n return hours <= 12 ? (hours === 0 ? 12 : hours) : hours - 12\r\n}\r\n","module.exports = function convert_number(number) {\r\n return isNaN(number) ? number : parseInt(number)\r\n}\r\n","var convert_number = require('./convert_number')\r\nvar convert_hours_to_12hr_time = require('./convert_hours_to_12hr_time')\r\nvar leading_zero = require('./leading_zero')\r\n\r\nmodule.exports = function convert_to_12hr_time(timeString_24hr) {\r\n if (timeString_24hr === '') return '--:-- --'\r\n var twentyFour_regex = /([0-9]{2})\\:([0-9]{2})/\r\n var result = twentyFour_regex.exec(timeString_24hr)\r\n var hrs_24 = convert_number(result[1])\r\n var min = result[2]\r\n var hrs_12 = convert_hours_to_12hr_time(hrs_24)\r\n var isPM = hrs_24 >= 12\r\n var mode = isPM ? 'PM' : 'AM'\r\n return [leading_zero(hrs_12), ':', min, ' ', mode].join('')\r\n}\r\n","var leading_zero = require('./leading_zero')\r\n\r\nmodule.exports = function convert_to_24hr_time(timeString_12hr) {\r\n if (/-/.test(timeString_12hr)) return ''\r\n var isPM = timeString_12hr.indexOf('PM') > -1\r\n var timeResult = /^([0-9]{2})/.exec(timeString_12hr)\r\n var hrs = timeResult ? parseInt(timeResult[1]) : ''\r\n var newHrs\r\n if (hrs === 12) {\r\n newHrs = isPM ? 12 : 0\r\n } else {\r\n newHrs = isPM ? hrs + 12 : hrs\r\n }\r\n var finalHrs = newHrs === 24 ? 0 : newHrs\r\n var timeRegEx = /^[0-9]{2}:([0-9]{2}) (AM|PM)/\r\n return timeString_12hr.replace(timeRegEx, leading_zero(finalHrs) + ':$1')\r\n}\r\n","module.exports = function leading_zero(number) {\r\n if (isNaN(number)) return number\r\n var purified = parseInt(number)\r\n return purified < 10 ? '0' + purified : number\r\n}\r\n","var values = require('../helpers/values')\r\n\r\nvar select_segment = require('../selectors/select_segment')\r\n\r\nvar next_segment = require('../selectors/next_segment')\r\nvar prev_segment = require('../selectors/prev_segment')\r\nvar select_cursor_segment = require('../selectors/select_cursor_segment')\r\n\r\nvar get_current_segment = require('../getters/get_current_segment')\r\n\r\nvar reset = require('../setters/reset')\r\nvar manual_number_entry = require('../setters/manual_number_entry')\r\nvar clear_segment = require('../setters/clear_segment')\r\nvar increment_current_segment = require('../setters/increment_current_segment')\r\nvar decrement_current_segment = require('../setters/decrement_current_segment')\r\nvar set_mode = require('../setters/set_mode')\r\nvar switch_times = require('../setters/switch_times')\r\n\r\nvar handle_tab = require('../events/handle_tab')\r\n\r\nvar all_number_keys = require('../static-values/all_number_keys')\r\nvar named_keys = require('../static-values/named_keys')\r\n\r\nvar update_a11y = require('../accessibility/update_a11y')\r\n\r\nmodule.exports = function bind_events($input) {\r\n var prev_value = ''\r\n\r\n var shiftKey = false\r\n\r\n document.addEventListener('keydown', function(e) {\r\n shiftKey = e.shiftKey\r\n })\r\n document.addEventListener('keyup', function(e) {\r\n shiftKey = e.shiftKey\r\n })\r\n\r\n if ($input.form) {\r\n $input.form.addEventListener('submit', function() {\r\n auto_swap($input)\r\n })\r\n }\r\n\r\n var focused_via_click = false\r\n\r\n $input.addEventListener('mousedown', function() {\r\n focused_via_click = true\r\n })\r\n\r\n // Turns the IE clear button into a reset button\r\n $input.addEventListener('mouseup', function() {\r\n setTimeout(function() {\r\n if ($input.value === '') reset($input)\r\n }, 1)\r\n })\r\n\r\n $input.addEventListener('click', function(e) {\r\n select_cursor_segment($input)\r\n })\r\n\r\n $input.addEventListener('blur', function() {\r\n var current_value = $input.dataset.value\r\n if (current_value !== prev_value) {\r\n prev_value = current_value\r\n }\r\n focused_via_click = false\r\n })\r\n\r\n $input.addEventListener('focus', function(e) {\r\n if (!focused_via_click) {\r\n e.preventDefault()\r\n var segment = shiftKey ? 'mode' : 'hrs'\r\n select_segment($input, segment)\r\n }\r\n update_a11y($input, ['initial', 'select'])\r\n })\r\n\r\n $input.addEventListener('keydown', function(e) {\r\n var is_enter_key = e.which === 13\r\n if (is_enter_key) return true\r\n\r\n var is_number_key = all_number_keys.indexOf(e.which) > -1\r\n var is_named_key = values(named_keys).indexOf(e.which) > -1\r\n var is_arrow_key =\r\n [\r\n named_keys.ArrowDown,\r\n named_keys.ArrowRight,\r\n named_keys.ArrowUp,\r\n named_keys.ArrowLeft,\r\n ].indexOf(e.which) > -1\r\n var is_mode_key = [named_keys.a, named_keys.p].indexOf(e.which) > -1\r\n var is_delete_key =\r\n [named_keys.Delete, named_keys.Backspace].indexOf(e.which) > -1\r\n\r\n if (\r\n !is_named_key ||\r\n is_arrow_key ||\r\n is_number_key ||\r\n is_mode_key ||\r\n is_delete_key\r\n ) {\r\n e.preventDefault()\r\n }\r\n\r\n if (is_number_key) {\r\n manual_number_entry($input, e.which)\r\n }\r\n\r\n if (is_delete_key) {\r\n var segment = get_current_segment($input)\r\n clear_segment($input, segment)\r\n }\r\n\r\n switch (e.which) {\r\n case named_keys.ArrowRight:\r\n next_segment($input)\r\n break\r\n case named_keys.ArrowLeft:\r\n prev_segment($input)\r\n break\r\n case named_keys.ArrowUp:\r\n increment_current_segment($input)\r\n break\r\n case named_keys.ArrowDown:\r\n decrement_current_segment($input)\r\n break\r\n case named_keys.Escape:\r\n reset($input)\r\n break\r\n case named_keys.a:\r\n set_mode($input, 'AM')\r\n break\r\n case named_keys.p:\r\n set_mode($input, 'PM')\r\n break\r\n case named_keys.Tab:\r\n handle_tab($input, e)\r\n break\r\n }\r\n })\r\n}\r\n\r\nfunction auto_swap($input) {\r\n if ($input.polyfill.autoSwap) {\r\n switch_times($input, 24)\r\n setTimeout(function() {\r\n switch_times($input, 12)\r\n }, 1)\r\n }\r\n}\r\n","module.exports = function create_event(eventName) {\r\n var event = document.createEvent('Event')\r\n event.initEvent(eventName, true, true)\r\n return event\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar prev_segment = require('../selectors/prev_segment')\r\nvar next_segment = require('../selectors/next_segment')\r\n\r\nmodule.exports = function handle_tab($input, e) {\r\n var current_segment = get_current_segment($input)\r\n var backwards_and_first = e.shiftKey && current_segment === 'hrs'\r\n var forwards_and_last = !e.shiftKey && current_segment === 'mode'\r\n\r\n if (!backwards_and_first && !forwards_and_last) {\r\n e.preventDefault()\r\n if (e.shiftKey) {\r\n prev_segment($input)\r\n } else {\r\n next_segment($input)\r\n }\r\n }\r\n}\r\n","var trigger_event = require('./trigger_event')\r\n\r\n// It seems that oninput and onchange are treated the same way by browsers :/\r\nmodule.exports = function trigger_both_events($input) {\r\n // the event only ever fires if there is a full valid value available\r\n trigger_event($input, 'input')\r\n trigger_event($input, 'change')\r\n}\r\n","var create_event = require('./create_event')\r\n\r\nvar inputEvent = create_event('input')\r\nvar changeEvent = create_event('change')\r\n\r\nmodule.exports = function trigger_event($input, eventName) {\r\n var event = {\r\n input: inputEvent,\r\n change: changeEvent,\r\n }[eventName]\r\n\r\n if (can_trigger_change($input)) {\r\n $input.dispatchEvent(event)\r\n }\r\n}\r\n\r\n// Browsers only send out input and change events if the time element has a full valid value\r\nfunction can_trigger_change($input) {\r\n return !/--/.test($input.value)\r\n}\r\n","// selector is optional, it allows for an early exit\r\nmodule.exports = function($input, selectorString) {\r\n var $elem = $input\r\n\r\n // https://stackoverflow.com/a/8729274/1611058\r\n var ancestors = []\r\n while ($elem) {\r\n ancestors.push($elem)\r\n var matchesSelector = $elem.msMatchesSelector\r\n ? $elem.msMatchesSelector(selectorString)\r\n : $elem.matches(selectorString)\r\n if (matchesSelector) {\r\n return ancestors\r\n }\r\n $elem = $elem.parentElement\r\n }\r\n\r\n return ancestors\r\n}\r\n","var ranges = require('../static-values/ranges')\r\nvar get_selected_range = require('./get_selected_range')\r\n\r\nmodule.exports = function get_current_segment($input) {\r\n var selection = get_selected_range($input)\r\n for (var segment in ranges) {\r\n var range = ranges[segment]\r\n var aboveMin = range.start <= selection.start\r\n var belowMax = range.end >= selection.end\r\n if (aboveMin && belowMax) {\r\n return segment\r\n }\r\n }\r\n return 'hrs'\r\n}\r\n","var get_ancestors = require('./get_ancestors')\r\n\r\nmodule.exports = function get_label($input) {\r\n var labelText =\r\n aria_labelledby($input) ||\r\n aria_label($input) ||\r\n for_attribute($input) ||\r\n label_wrapper_element($input) ||\r\n title_attribute($input)\r\n\r\n if (labelText) return labelText\r\n\r\n console.error('Label text for input not found.', $input)\r\n throw new Error('Cannot polyfill time input due to a missing label.')\r\n}\r\n\r\nfunction aria_labelledby($input) {\r\n var ariaLabelByID = $input.getAttribute('aria-labelledby')\r\n if (ariaLabelByID) {\r\n var $ariaLabelBy = document.getElementById(ariaLabelByID)\r\n if ($ariaLabelBy) return $ariaLabelBy.textContent\r\n }\r\n return false\r\n}\r\n\r\nfunction aria_label($input) {\r\n var ariaLabel = $input.getAttribute('aria-label')\r\n if (ariaLabel) return ariaLabel\r\n return false\r\n}\r\n\r\nfunction for_attribute($input) {\r\n if ($input.id) {\r\n var $forLabel = document.querySelector('label[for=\"' + $input.id + '\"]')\r\n if ($forLabel) return $forLabel.textContent\r\n }\r\n return false\r\n}\r\n\r\nfunction label_wrapper_element($input) {\r\n var ancestors = get_ancestors($input, 'label')\r\n var $parentLabel = ancestors[ancestors.length - 1]\r\n if ($parentLabel.nodeName == 'LABEL') return $parentLabel.textContent\r\n return false\r\n}\r\n\r\nfunction title_attribute($input) {\r\n var titleLabel = $input.getAttribute('title')\r\n if (titleLabel) return titleLabel\r\n return false\r\n}\r\n","module.exports = function get_selected_range($input) {\r\n return { start: $input.selectionStart, end: $input.selectionEnd }\r\n}\r\n","var convert_number = require('../converters/convert_number')\r\n\r\nmodule.exports = function get_values($input, timeString) {\r\n var value = timeString ? timeString : $input.value\r\n var regEx = /([0-9-]{1,2})\\:([0-9-]{1,2})\\s?(AM|PM|\\-\\-)?/\r\n var result = regEx.exec(value)\r\n\r\n return {\r\n hrs: convert_number(result[1]),\r\n min: convert_number(result[2]),\r\n mode: result[3],\r\n }\r\n}\r\n","var manual_entry_log = []\r\n\r\nfunction clear() {\r\n manual_entry_log = []\r\n}\r\n\r\nfunction add(entry) {\r\n manual_entry_log.push(entry)\r\n}\r\n\r\nfunction items() {\r\n return manual_entry_log\r\n}\r\n\r\nmodule.exports = {\r\n items: items,\r\n clear: clear,\r\n add: add,\r\n}\r\n","// IE11 doesn't support Object.values()\r\nmodule.exports = function values(obj) {\r\n var key_values = []\r\n for (var key in obj) {\r\n key_values.push(obj[key])\r\n }\r\n return key_values\r\n}\r\n","var traverse = require('./traverse')\r\n\r\nmodule.exports = function next_segment($input) {\r\n traverse($input, 'next')\r\n}\r\n","var traverse = require('./traverse')\r\n\r\nmodule.exports = function prev_segment($input) {\r\n traverse($input, 'prev')\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar select_segment = require('./select_segment')\r\n\r\nmodule.exports = function select_cursor_segment($input) {\r\n var current_segment = get_current_segment($input)\r\n select_segment($input, current_segment)\r\n}\r\n","module.exports = function select_segment($input, segment) {\r\n set_input_type()\r\n\r\n var actions = {\r\n hrs: select(0, 2),\r\n min: select(3, 5),\r\n mode: select(6, 8),\r\n }\r\n\r\n actions[segment]($input)\r\n\r\n function set_input_type() {\r\n var type = segment === 'mode' ? 'text' : 'tel'\r\n $input.setAttribute('type', type)\r\n }\r\n\r\n function select(start, end) {\r\n return function() {\r\n $input.setSelectionRange(start, end)\r\n }\r\n }\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar select_segment = require('../selectors/select_segment')\r\n\r\nvar manual_entry_log = require('../helpers/manual_entry_log')\r\nvar segments = require('../static-values/segments')\r\n\r\nvar update_a11y = require('../accessibility/update_a11y')\r\n\r\nmodule.exports = function traverse($input, direction) {\r\n var segment = get_current_segment($input)\r\n\r\n var modifier = direction === 'next' ? 1 : -1\r\n var next_segment_index = segments.indexOf(segment) + modifier\r\n\r\n var next_segment = {\r\n next: segments[next_segment_index] || 'mode',\r\n prev: next_segment_index < 0 ? 'hrs' : segments[next_segment_index],\r\n }[direction]\r\n\r\n select_segment($input, next_segment)\r\n manual_entry_log.clear()\r\n update_a11y($input, ['select'])\r\n}\r\n","// I need to keep this separate from reset so that\r\n// I can reset without attracting focus\r\n\r\nvar set_data_attribute = require('../setters/set_data_attribute')\r\nvar trigger_both_events = require('../events/trigger_both_events')\r\n\r\nmodule.exports = function apply_default($input) {\r\n $input.value = '--:-- --'\r\n set_data_attribute($input, '')\r\n trigger_both_events($input)\r\n}\r\n","var set_segment = require('./set_segment')\r\nvar update_a11y = require('../accessibility/update_a11y')\r\n\r\nmodule.exports = function clear_segment($input, segment) {\r\n set_segment($input, segment, '--')\r\n update_a11y($input, ['update'])\r\n}\r\n","var switch_mode = require('./switch_mode')\r\nvar nudge_time_segment = require('./nudge_time_segment')\r\nvar update_a11y = require('../accessibility/update_a11y')\r\n\r\nmodule.exports = function decrement($input, segment) {\r\n if (segment === 'mode') {\r\n switch_mode($input, 'PM')\r\n } else {\r\n nudge_time_segment($input, segment, 'down')\r\n }\r\n update_a11y($input, ['update'])\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar decrement = require('../setters/decrement')\r\n\r\nmodule.exports = function decrement_current_segment($input) {\r\n var current_segment = get_current_segment($input)\r\n decrement($input, current_segment)\r\n}\r\n","var switch_mode = require('./switch_mode')\r\nvar nudge_time_segment = require('./nudge_time_segment')\r\nvar update_a11y = require('../accessibility/update_a11y')\r\n\r\nmodule.exports = function increment($input, segment) {\r\n if (segment === 'mode') {\r\n switch_mode($input, 'AM')\r\n } else {\r\n nudge_time_segment($input, segment, 'up')\r\n }\r\n update_a11y($input, ['update'])\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar increment = require('../setters/increment')\r\n\r\nmodule.exports = function increment_current_segment($input) {\r\n var current_segment = get_current_segment($input)\r\n increment($input, current_segment)\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar set_segment = require('./set_segment')\r\nvar next_segment = require('../selectors/next_segment')\r\n\r\nvar manual_entry_log = require('../helpers/manual_entry_log')\r\nvar sorted_number_keys = require('../static-values/sorted_number_keys')\r\n\r\nmodule.exports = function manual_number_entry($input, key) {\r\n var key_value = sorted_number_keys[key]\r\n var segment = get_current_segment($input)\r\n\r\n if (segment !== 'mode') {\r\n var entry_count = manual_entry_log.items().length\r\n\r\n var upper_limits = {\r\n hrs: [1, 2],\r\n min: [5, 9],\r\n }\r\n var limit = upper_limits[segment][entry_count]\r\n\r\n if (entry_count < 2) {\r\n manual_entry_log.add(key_value)\r\n }\r\n\r\n var full_limit = parseInt(upper_limits[segment].join(''))\r\n var full_entry = parseInt(manual_entry_log.items().join(''))\r\n\r\n if (full_limit >= full_entry) {\r\n set_segment($input, segment, full_entry)\r\n }\r\n\r\n var at_limit = key_value > limit || manual_entry_log.items().length === 2\r\n\r\n if (at_limit) {\r\n next_segment($input)\r\n }\r\n }\r\n}\r\n","var get_values = require('../getters/get_values')\r\nvar convert_hours_to_12hr_time = require('../converters/convert_hours_to_12hr_time')\r\nvar leading_zero = require('../converters/leading_zero')\r\nvar set_segment = require('./set_segment')\r\n\r\nmodule.exports = function nudge_time_segment($input, segment, direction) {\r\n var current_values = get_values($input)\r\n var time\r\n\r\n var modifier = direction === 'up' ? 1 : -1\r\n\r\n if (current_values[segment] === '--') {\r\n var current_time = new Date()\r\n time = {\r\n hrs: convert_hours_to_12hr_time(current_time.getHours()),\r\n min: current_time.getMinutes(),\r\n }\r\n } else {\r\n var minutes = {\r\n up: current_values.min < 59 ? current_values.min + modifier : 0,\r\n down: current_values.min === 0 ? 59 : current_values.min + modifier,\r\n }\r\n time = {\r\n hrs: convert_hours_to_12hr_time(current_values.hrs + modifier),\r\n min: minutes[direction],\r\n }\r\n }\r\n\r\n set_segment($input, segment, leading_zero(time[segment]))\r\n}\r\n","var apply_default = require('./apply_default')\r\nvar select_segment = require('../selectors/select_segment')\r\n\r\nmodule.exports = function reset($input) {\r\n apply_default($input)\r\n select_segment($input, 'hrs')\r\n}\r\n","var convert_to_24hr_time = require('../converters/convert_to_24hr_time')\r\n\r\nmodule.exports = function set_data_attribute($input, timeString_12hr) {\r\n var filteredString = timeString_12hr.indexOf('-') > -1 ? '' : timeString_12hr\r\n var time24hr = convert_to_24hr_time(filteredString)\r\n $input.setAttribute('data-value', time24hr)\r\n}\r\n","var get_current_segment = require('../getters/get_current_segment')\r\nvar set_segment = require('./set_segment')\r\n\r\nmodule.exports = function set_mode($input, type) {\r\n var segment = get_current_segment($input)\r\n if (segment === 'mode') {\r\n set_segment($input, segment, type)\r\n }\r\n}\r\n","var get_values = require('../getters/get_values')\r\nvar leading_zero = require('../converters/leading_zero')\r\nvar select_segment = require('../selectors/select_segment')\r\nvar set_data_attribute = require('./set_data_attribute')\r\nvar trigger_both_events = require('../events/trigger_both_events')\r\n\r\nmodule.exports = function set_segment($input, segment, value) {\r\n var values = get_values($input)\r\n values[segment] = value\r\n var newInputVal = [\r\n leading_zero(values.hrs),\r\n ':',\r\n leading_zero(values.min),\r\n ' ',\r\n values.mode,\r\n ].join('')\r\n $input.value = newInputVal\r\n select_segment($input, segment)\r\n set_data_attribute($input, newInputVal)\r\n trigger_both_events($input)\r\n}\r\n","var convert_to_12hr_time = require('../converters/convert_to_12hr_time')\r\nvar set_data_attribute = require('../setters/set_data_attribute')\r\n\r\nmodule.exports = function set_time($input, time_string_24hr) {\r\n var twelveHr = convert_to_12hr_time(time_string_24hr)\r\n $input.value = twelveHr\r\n set_data_attribute($input, time_string_24hr)\r\n}\r\n","var get_values = require('../getters/get_values')\r\nvar set_segment = require('./set_segment')\r\n\r\nmodule.exports = function switch_mode($input, default_mode) {\r\n default_mode = default_mode || 'AM'\r\n var current_mode = get_values($input).mode\r\n var new_mode = {\r\n '--': default_mode,\r\n AM: 'PM',\r\n PM: 'AM',\r\n }[current_mode]\r\n set_segment($input, 'mode', new_mode)\r\n}\r\n","var switch_to_data_value = require('./switch_to_data_value')\r\nvar set_time = require('./set_time')\r\n\r\nmodule.exports = function switch_times($input, format) {\r\n var is12hr = /\\s/.test($input.value)\r\n\r\n if (format != 12 && format != 24) {\r\n format = is12hr ? 24 : 12\r\n }\r\n\r\n var actions = {\r\n 12: function() {\r\n if (!is12hr) {\r\n set_time($input, $input.dataset.value)\r\n }\r\n },\r\n 24: function() {\r\n if (is12hr) {\r\n switch_to_data_value($input)\r\n }\r\n },\r\n }\r\n actions[format]()\r\n}\r\n","module.exports = function($input) {\r\n var replacementVal = $input.dataset.value\r\n $input.value = replacementVal\r\n}\r\n","var set_time = require('../setters/set_time')\r\n\r\nmodule.exports = function update_time($input) {\r\n set_time($input, $input.value)\r\n return $input\r\n}\r\n","var all_number_keys = [\r\n // 0, 1, 2, 3, 4, 5, 6, 7, 8, 9\r\n 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,\r\n 96, 97, 98, 99,100,101,102,103,104,105\r\n];\r\n\r\nmodule.exports = all_number_keys;\r\n","var named_keys = {\r\n ArrowDown: 40,\r\n ArrowRight: 39,\r\n ArrowUp: 38,\r\n ArrowLeft: 37,\r\n Backspace: 8,\r\n Delete: 46,\r\n Tab: 9,\r\n Shift: 16,\r\n Escape: 27,\r\n a: 65,\r\n p: 80,\r\n}\r\n\r\nmodule.exports = named_keys\r\n","var ranges = {\r\n hrs: { start: 0, end: 2 },\r\n min: { start: 3, end: 5 },\r\n mode: { start: 6, end: 8 },\r\n}\r\n\r\nmodule.exports = ranges\r\n","var ranges = require('./ranges')\r\n\r\nvar segments = Object.keys(ranges)\r\n\r\nmodule.exports = segments\r\n","var all_number_keys = require('./all_number_keys')\r\n\r\nvar sorted_number_keys = {}\r\n// sorted_number_keys = { 48: 0, 49: 1, 96: 0, 97: 1, ... };\r\nall_number_keys.forEach(function(key, index) {\r\n var number_val = index > 9 ? index - 10 : index\r\n sorted_number_keys[key] = number_val\r\n})\r\n\r\nmodule.exports = sorted_number_keys\r\n"],"sourceRoot":"/source/"} \ No newline at end of file +{"version":3,"sources":["main.js"],"names":["TimePolyfill_bundle","leading_zero","number","isNaN","purified","parseInt","set_data_attribute","$input","timeString_12hr","time24hr","test","newHrs","isPM","indexOf","timeResult","exec","hrs","finalHrs","replace","convert_to_24hr_time","setAttribute","create_event","eventName","event","document","createEvent","initEvent","inputEvent","changeEvent","trigger_event","input","change","value","can_trigger_change","dispatchEvent","trigger_both_events","apply_default","convert_number","convert_hours_to_12hr_time","hours","set_time","time_string_24hr","twelveHr","timeString_24hr","result","hrs_24","min","mode","join","convert_to_12hr_time","update_time","select_segment","segment","type","select","start","end","setSelectionRange","ranges","get_current_segment","selection","selectionStart","selectionEnd","get_selected_range","range","aboveMin","belowMax","manual_entry_log","manual_entry_log$1","items","clear","add","entry","push","segments","Object","keys","get_values","timeString","update_a11y","announcementArray","setTimeout","current_segment","finalValue","segmentName","announcements","initial","update","textArray","map","providedString","fullValue","html","polyfill","label","$a11y","innerHTML","traverse","direction","modifier","next_segment_index","next","prev","next_segment","prev_segment","reset","set_segment","values","newInputVal","all_number_keys","sorted_number_keys","switch_mode","default_mode","--","AM","PM","nudge_time_segment","time","current_values","current_time","Date","getHours","getMinutes","minutes","up","down","increment_current_segment","increment","decrement_current_segment","decrement","set_mode","forEach","key","index","number_val","switch_times","format","is12hr","12","dataset","24","replacementVal","switch_to_data_value","named_keys","ArrowDown","ArrowRight","ArrowUp","ArrowLeft","Backspace","Delete","Tab","Shift","Escape","a","p","bind_events","shiftKey","addEventListener","e","form","autoSwap","auto_swap","focused_via_click","select_cursor_segment","preventDefault","which","is_number_key","is_named_key","obj","key_values","is_arrow_key","is_mode_key","is_delete_key","key_value","entry_count","length","upper_limits","limit","full_limit","full_entry","manual_number_entry","clear_segment","backwards_and_first","forwards_and_last","handle_tab","get_label","labelText","ariaLabelByID","getAttribute","$ariaLabelBy","getElementById","textContent","aria_labelledby","ariaLabel","aria_label","id","$forLabel","querySelector","for_attribute","ancestors","selectorString","$elem","msMatchesSelector","matches","parentElement","get_ancestors","$parentLabel","nodeName","label_wrapper_element","titleLabel","title_attribute","console","error","Error","accessibility_block_created","TimePolyfill","$label","$block","createElement","classList","appendChild","swap","forcedFormat","window"],"mappings":";;;;;;;;AAAA,IAAIA,oBAAuB,WAC3B,aAEA,SAASC,EAAaC,GACpB,GAAIC,MAAMD,GAAS,OAAOA,EAC1B,IAAIE,EAAWC,SAASH,GACxB,OAAOE,EAAW,GAAK,IAAMA,EAAWF,EAqB1C,SAASI,EAAmBC,EAAQC,GAClC,IACIC,EApBN,SAA8BD,GAC5B,GAAI,IAAIE,KAAKF,GAAkB,MAAO,GACtC,IAGIG,EAHAC,EAAOJ,EAAgBK,QAAQ,OAAS,EACxCC,EAAa,cAAcC,KAAKP,GAChCQ,EAAMF,EAAaT,SAASS,EAAW,IAAM,GAS7CG,EAAsB,MALxBN,EADU,KAARK,EACOJ,EAAO,GAAK,EAEZA,EAAOI,EAAM,GAAKA,GAGE,EAAIL,EAEnC,OAAOH,EAAgBU,QADP,+BAC0BjB,EAAagB,GAAY,OAKpDE,CADMX,EAAgBK,QAAQ,MAAQ,EAAI,GAAKL,GAE9DD,EAAOa,aAAa,aAAcX,GAGpC,SAASY,EAAaC,GACpB,IAAIC,EAAQC,SAASC,YAAY,SAEjC,OADAF,EAAMG,UAAUJ,GAAW,GAAM,GAC1BC,EAGT,IAAII,EAAaN,EAAa,SAC1BO,EAAcP,EAAa,UAC/B,SAASQ,EAActB,EAAQe,GAC7B,IAAIC,EAAQ,CACVO,MAAOH,EACPI,OAAQH,GACRN,IAOJ,SAA4Bf,GAC1B,OAAQ,KAAKG,KAAKH,EAAOyB,QANrBC,CAAmB1B,IACrBA,EAAO2B,cAAcX,GAQzB,SAASY,EAAoB5B,GAE3BsB,EAActB,EAAQ,SACtBsB,EAActB,EAAQ,UAKxB,SAAS6B,EAAc7B,GACrBA,EAAOyB,MAAQ,WACf1B,EAAmBC,EAAQ,IAC3B4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IACG,EA1CoHC,CAAgB3M,GAC3I,GAAImL,EAAW,OAAOA,EAEtB,MADAyB,QAAQC,MAAM,kCAAmC7M,GAC3C,IAAI8M,MAAM,sDAmDlB,IACItH,EADAuH,GAA8B,EAGlC,SAASC,EAAahN,EAAQiN,GAZ9B,IACMC,EAYJlN,EAAOa,aAAa,eAAgB,OAEpCb,EAAOa,aAAa,eAAe,GAE9BkM,KAhBDG,EAASjM,SAASkM,cAAc,QAC7BtM,aAAa,YAAa,aACjCqM,EAAOrM,aAAa,QAAS,gGAC7BqM,EAAOE,UAAUpJ,IAAI,2CACrB/C,SAAS6K,cAAc,QAAQuB,YAAYH,GAazC1H,EAZK0H,EAaLH,GAA8B,GAGhC,IAAIxH,EAAQ0H,EAASA,EAAOzB,YAAcN,EAAUlL,GACpDA,EAAOsF,SAAW,CAChBE,MAAOA,EACPD,MAAOA,EACPkE,UAAU,EACVzE,OAAQ,WACNrC,EAAY3C,IAEdsN,KAAM,SAAcC,GAClBvF,EAAahI,EAAQuN,KAIJ,KAAjBvN,EAAOyB,OAAgB,KAAKtB,KAAKH,EAAOyB,QAC1CI,EAAc7B,GACdD,EAAmBC,EAAQ,MAE3B2C,EAAY3C,GACZD,EAAmBC,EAAQA,EAAOyB,QAGpC2H,EAAYpJ,GAOd,OAJIwN,SACFA,OAAOR,aAAeA,GAGjBA,EAvqBmB","file":"time-input-polyfill.min.js","sourcesContent":[]} \ No newline at end of file diff --git a/docs/images/clock.svg b/docs/images/clock.svg index fa02978..003fad4 100644 --- a/docs/images/clock.svg +++ b/docs/images/clock.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/favicon/android-chrome-192x192.png b/docs/images/favicon/android-chrome-192x192.png index 97a33ad..b293ca8 100644 Binary files a/docs/images/favicon/android-chrome-192x192.png and b/docs/images/favicon/android-chrome-192x192.png differ diff --git a/docs/images/favicon/android-chrome-512x512.png b/docs/images/favicon/android-chrome-512x512.png index 49f6998..a3e59f1 100644 Binary files a/docs/images/favicon/android-chrome-512x512.png and b/docs/images/favicon/android-chrome-512x512.png differ diff --git a/docs/images/favicon/apple-touch-icon.png b/docs/images/favicon/apple-touch-icon.png index f48b9e7..bf2d058 100644 Binary files a/docs/images/favicon/apple-touch-icon.png and b/docs/images/favicon/apple-touch-icon.png differ diff --git a/docs/images/favicon/favicon-16x16.png b/docs/images/favicon/favicon-16x16.png index c9ebabc..3d99399 100644 Binary files a/docs/images/favicon/favicon-16x16.png and b/docs/images/favicon/favicon-16x16.png differ diff --git a/docs/images/favicon/mstile-144x144.png b/docs/images/favicon/mstile-144x144.png index 93a215a..8d19e5d 100644 Binary files a/docs/images/favicon/mstile-144x144.png and b/docs/images/favicon/mstile-144x144.png differ diff --git a/docs/images/favicon/mstile-150x150.png b/docs/images/favicon/mstile-150x150.png index febb47f..5335765 100644 Binary files a/docs/images/favicon/mstile-150x150.png and b/docs/images/favicon/mstile-150x150.png differ diff --git a/docs/images/favicon/mstile-310x150.png b/docs/images/favicon/mstile-310x150.png index 84c30c3..0e8500a 100644 Binary files a/docs/images/favicon/mstile-310x150.png and b/docs/images/favicon/mstile-310x150.png differ diff --git a/docs/images/favicon/mstile-310x310.png b/docs/images/favicon/mstile-310x310.png index af195f1..7837182 100644 Binary files a/docs/images/favicon/mstile-310x310.png and b/docs/images/favicon/mstile-310x310.png differ diff --git a/docs/images/favicon/mstile-70x70.png b/docs/images/favicon/mstile-70x70.png index bf5856f..dd88dbf 100644 Binary files a/docs/images/favicon/mstile-70x70.png and b/docs/images/favicon/mstile-70x70.png differ diff --git a/docs/images/favicon/safari-pinned-tab.svg b/docs/images/favicon/safari-pinned-tab.svg index 67f56a2..ee0428b 100644 --- a/docs/images/favicon/safari-pinned-tab.svg +++ b/docs/images/favicon/safari-pinned-tab.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/docs/images/og-image.jpg b/docs/images/og-image.jpg index 24e7841..e9d7667 100644 Binary files a/docs/images/og-image.jpg and b/docs/images/og-image.jpg differ diff --git a/docs/images/yeogurt-swirl.png b/docs/images/yeogurt-swirl.png index e7f5e7d..7fdcadd 100644 Binary files a/docs/images/yeogurt-swirl.png and b/docs/images/yeogurt-swirl.png differ diff --git a/docs/index.html b/docs/index.html index d043f7b..d8b1ca2 100644 --- a/docs/index.html +++ b/docs/index.html @@ -27,7 +27,7 @@ - + +