@gez/date-time-kit 1.0.3-alpha.3 → 1.0.3-alpha.5

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/dist/index.html CHANGED
@@ -21,9 +21,9 @@
21
21
  // import dataTimeKit from './index.ts';
22
22
  const dataTimeKit = await import('./index.js');
23
23
 
24
- const rand = dataTimeKit.getTimestampByLimitKey('last7Days', 2); // 2021-01-01 00:00:00.000
25
- const d = dataTimeKit.getLimitKeyByTimetamp(rand.startTime, rand.endTime, 2); // 2021-01-01 00:00:00.000
26
- console.log(rand, d);
24
+ const rand = dataTimeKit.getTimestampByLimitKey('last7Days', 2);
25
+ const keyName = dataTimeKit.getLimitKeyByTimetamp(rand.startTime, rand.endTime, 2);
26
+ console.log(rand, keyName);
27
27
  // event
28
28
  dataTimeKit.open({
29
29
  root: document.querySelector('#root'),
package/dist/index.js CHANGED
@@ -53,7 +53,7 @@ var t={757:function(t){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUi
53
53
  <div class="dt-month-select-li">
54
54
  ${s}
55
55
  </div>
56
- `}function T(t,e){let a=t.getAttribute("data-status"),i="start"===a?"startDateShow":"endDateShow";t.querySelector(".dt-month-title").innerHTML=`${e[i].month}/${e[i].year}`,t.className=[...j(e,a),t.classList.contains("dt-month-select-show")?"dt-month-select-show":""].join(" ")}function j(t,e){let a=["dt-month"],i=new Date(t.startDateShow.year,t.startDateShow.month-1),n=new Date(t.endDateShow.year,t.endDateShow.month-1);return i.setMonth(i.getMonth()+1),i.getTime()>=n.getTime()&&a.push("start"===e?"dt-month-hide-right-m":"dt-month-hide-left-m"),(i=new Date(`${t.startDateShow.year}-${t.startDateShow.month}`)).setFullYear(i.getFullYear()+1),i.getTime()>=n.getTime()&&a.push("start"===e?"dt-year-hide-right-y":"dt-year-hide-left-y"),a}function y(t){t.classList.remove("dt-show"),setTimeout(()=>{t.parentElement.removeChild(t)},350)}function N(t,e){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return void 0===a?`${t.toString().padStart(4,"0")}-${e.toString().padStart(2,"0")}`:`${t.toString().padStart(4,"0")}-${e.toString().padStart(2,"0")}-${a.toString().padStart(2,"0")}`}function z(t,e){var a,i,n,d;return`${N(t.year,t.month,t.date)} ${a=e.hour,i=e.minute,n=e.second,d=e.millisecond,`${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}.${d.toString().padStart(3,"0")}`}`}function h(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}:{year:0,month:0,date:0}}function v(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:{hour:0,minute:0,second:0,millisecond:0}}function I(){return-new Date().getTimezoneOffset()/60}function L(t,e){let a=I();return void 0===e&&(e=a),e-=a,new Date(t.getTime()+36e5*e)}function O(t,e){void 0===e&&(e=I());let a=new Date(t.date.year,t.date.month-1,t.date.date,t.time.hour,t.time.minute,t.time.second,t.time.millisecond);return{date:{year:(a=L(a,e)).getFullYear(),month:a.getMonth()+1,date:a.getDate()},time:{hour:a.getHours(),minute:a.getMinutes(),second:a.getSeconds(),millisecond:a.getMilliseconds()}}}function x(t,e){void 0===e&&(e=I());let a=new Date(t);return z({year:(a=L(a,e)).getFullYear(),month:a.getMonth()+1,date:a.getDate()},{hour:a.getHours(),minute:a.getMinutes(),second:a.getSeconds(),millisecond:a.getMilliseconds()})}function w(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start",a=document.createElement("div");return a.classList.add("dt-time-date"),a.setAttribute("data-status",e),a.innerHTML=S(t,e),a.addEventListener("click",e=>{let a=e.target;if(a.classList.contains("dt-data-item")||a.classList.contains("dt-data-rect")||a.classList.contains("dt-data-circle")||a.classList.contains("dt-data-text")){let e=a;for(;!e.classList.contains("dt-data-item");)e=e.parentElement;if(e.classList.contains("dt-data-item-disabled"))return;let i=new Date(a.getAttribute("data-date")),n={year:i.getFullYear(),month:i.getMonth()+1,date:i.getDate()};if(t.startDate.year&&!t.endDate.year){if(new Date(t.startDate.year,t.startDate.month-1,t.startDate.date).getTime()>i.getTime()){t.endDate=t.startDate,t.startDate=n;return}return t.endDate=n}if(t.moveDate.year){t.moveDate={year:0,month:0,date:0};return}return t.moveDate=n,t.startDate=n,void(t.endDate={year:0,month:0,date:0})}}),a.addEventListener("mousemove",e=>{let a=e.target;if(a.classList.contains("dt-data-item")||a.classList.contains("dt-data-rect")||a.classList.contains("dt-data-circle")||a.classList.contains("dt-data-text")){if(a.classList.contains("dt-data-item-disabled"))return;let e=t.moveDate;if(!e.year)return;let i=new Date(a.getAttribute("data-date")),n={year:i.getFullYear(),month:i.getMonth()+1,date:i.getDate()};if(new Date(e.year,e.month-1,e.date).getTime()>i.getTime()){t.endDate=e,t.startDate=n;return}t.startDate=e,t.endDate=n;return}}),a}function S(t,e){let a=null;"start"!==e||t.startDateShow.year||(a=new Date),"start"===e&&t.startDateShow.year&&(a=new Date(t.startDateShow.year,t.startDateShow.month-1,t.startDateShow.date)),"end"!==e||t.endDateShow.year||(t.startDateShow.year?(a=new Date(t.startDateShow.year,t.startDateShow.month-1,t.startDateShow.date)).setMonth(a.getMonth()+1):(a=new Date).setMonth(a.getMonth()+1)),"end"===e&&t.endDateShow.year&&(a=new Date(t.endDateShow.year,t.endDateShow.month-1,t.endDateShow.date));let i="";a||(a=new Date),i=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,a=e.getMonth()+1,i=new Date(e.getFullYear(),a,0).getDate(),n=new Date(e.getFullYear(),a-1,0).getDate(),d=new Date(e.getFullYear(),a-1,1).getDay(),s=new Date,o=N(s.getFullYear(),s.getMonth()+1,s.getDate()),M="";for(let t=n-d;t<n;t++)M+=`
56
+ `}function T(t,e){let a=t.getAttribute("data-status"),i="start"===a?"startDateShow":"endDateShow";t.querySelector(".dt-month-title").innerHTML=`${e[i].month}/${e[i].year}`,t.className=[...j(e,a),t.classList.contains("dt-month-select-show")?"dt-month-select-show":""].join(" ")}function j(t,e){let a=["dt-month"],i=new Date(t.startDateShow.year,t.startDateShow.month-1),n=new Date(t.endDateShow.year,t.endDateShow.month-1);return i.setMonth(i.getMonth()+1),i.getTime()>=n.getTime()&&a.push("start"===e?"dt-month-hide-right-m":"dt-month-hide-left-m"),(i=new Date(`${t.startDateShow.year}-${t.startDateShow.month}`)).setFullYear(i.getFullYear()+1),i.getTime()>=n.getTime()&&a.push("start"===e?"dt-year-hide-right-y":"dt-year-hide-left-y"),a}function y(t){t.classList.remove("dt-show"),setTimeout(()=>{t.parentElement.removeChild(t)},350)}function N(t,e){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return void 0===a?`${t.toString().padStart(4,"0")}-${e.toString().padStart(2,"0")}`:`${t.toString().padStart(4,"0")}-${e.toString().padStart(2,"0")}-${a.toString().padStart(2,"0")}`}function z(t,e){var a,i,n,d;return`${N(t.year,t.month,t.date)} ${a=e.hour,i=e.minute,n=e.second,d=e.millisecond,`${a.toString().padStart(2,"0")}:${i.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}.${d.toString().padStart(3,"0")}`}`}function h(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?{year:t.getFullYear(),month:t.getMonth()+1,date:t.getDate()}:{year:0,month:0,date:0}}function v(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return t?{hour:t.getHours(),minute:t.getMinutes(),second:t.getSeconds(),millisecond:t.getMilliseconds()}:{hour:0,minute:0,second:0,millisecond:0}}function I(){return-new Date().getTimezoneOffset()/60}function L(t,e,a){return a||(a=I()),void 0===e&&(e=a),e-=e,new Date(t.getTime()+36e5*e)}function O(t,e){void 0===e&&(e=I());let a=new Date(t.date.year,t.date.month-1,t.date.date,t.time.hour,t.time.minute,t.time.second,t.time.millisecond);return{date:{year:(a=L(a,e)).getFullYear(),month:a.getMonth()+1,date:a.getDate()},time:{hour:a.getHours(),minute:a.getMinutes(),second:a.getSeconds(),millisecond:a.getMilliseconds()}}}function x(t,e,a){void 0===e&&(e=I()),void 0===a&&(a=I());let i=new Date(t);return z({year:(i=L(i,e,a)).getFullYear(),month:i.getMonth()+1,date:i.getDate()},{hour:i.getHours(),minute:i.getMinutes(),second:i.getSeconds(),millisecond:i.getMilliseconds()})}function w(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"start",a=document.createElement("div");return a.classList.add("dt-time-date"),a.setAttribute("data-status",e),a.innerHTML=S(t,e),a.addEventListener("click",e=>{let a=e.target;if(a.classList.contains("dt-data-item")||a.classList.contains("dt-data-rect")||a.classList.contains("dt-data-circle")||a.classList.contains("dt-data-text")){let e=a;for(;!e.classList.contains("dt-data-item");)e=e.parentElement;if(e.classList.contains("dt-data-item-disabled"))return;let i=new Date(a.getAttribute("data-date")),n={year:i.getFullYear(),month:i.getMonth()+1,date:i.getDate()};if(t.startDate.year&&!t.endDate.year){if(new Date(t.startDate.year,t.startDate.month-1,t.startDate.date).getTime()>i.getTime()){t.endDate=t.startDate,t.startDate=n;return}return t.endDate=n}if(t.moveDate.year){t.moveDate={year:0,month:0,date:0};return}return t.moveDate=n,t.startDate=n,void(t.endDate={year:0,month:0,date:0})}}),a.addEventListener("mousemove",e=>{let a=e.target;if(a.classList.contains("dt-data-item")||a.classList.contains("dt-data-rect")||a.classList.contains("dt-data-circle")||a.classList.contains("dt-data-text")){if(a.classList.contains("dt-data-item-disabled"))return;let e=t.moveDate;if(!e.year)return;let i=new Date(a.getAttribute("data-date")),n={year:i.getFullYear(),month:i.getMonth()+1,date:i.getDate()};if(new Date(e.year,e.month-1,e.date).getTime()>i.getTime()){t.endDate=e,t.startDate=n;return}t.startDate=e,t.endDate=n;return}}),a}function S(t,e){let a=null;"start"!==e||t.startDateShow.year||(a=new Date),"start"===e&&t.startDateShow.year&&(a=new Date(t.startDateShow.year,t.startDateShow.month-1,t.startDateShow.date)),"end"!==e||t.endDateShow.year||(t.startDateShow.year?(a=new Date(t.startDateShow.year,t.startDateShow.month-1,t.startDateShow.date)).setMonth(a.getMonth()+1):(a=new Date).setMonth(a.getMonth()+1)),"end"===e&&t.endDateShow.year&&(a=new Date(t.endDateShow.year,t.endDateShow.month-1,t.endDateShow.date));let i="";a||(a=new Date),i=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,a=e.getMonth()+1,i=new Date(e.getFullYear(),a,0).getDate(),n=new Date(e.getFullYear(),a-1,0).getDate(),d=new Date(e.getFullYear(),a-1,1).getDay(),s=new Date,o=N(s.getFullYear(),s.getMonth()+1,s.getDate()),M="";for(let t=n-d;t<n;t++)M+=`
57
57
  <div class="dt-data-item dt-data-item-disabled">
58
58
  <div class="dt-data-rect dt-data-item-disabled">
59
59
  <div class="dt-data-text dt-data-item-disabled">${t+1}</div>
@@ -140,4 +140,4 @@ var t={757:function(t){t.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTUi
140
140
  <button class="dt-button dt-button-primary">${s[m.lang].box.confirm}</button>
141
141
  </div>
142
142
  </div>
143
- `),o.appendChild(N);let z=document.createElement("div");if(z.classList.add("dt-mask"),document.body.appendChild(z),window.innerWidth>768){let t=o.getBoundingClientRect();N.style.top=`${t.height+5}px`}let h=M(j);N.insertBefore(h,N.querySelector(".dt-content")),g.push({ele:h,component:t});let v=D(j,"start");N.querySelector(".dt-start").appendChild(v),g.push({ele:v,component:e});let I=w(j,"start");N.querySelector(".dt-start").appendChild(I),g.push({ele:I,component:n});let L=D(j,"end");N.querySelector(".dt-end").appendChild(L),g.push({ele:L,component:e});let O=w(j,"end");N.querySelector(".dt-end").appendChild(O),g.push({ele:O,component:n});let x=Y(j);function S(){z.removeEventListener("click",A),N.removeEventListener("click",E)}function A(){S(),y(N),y(z),l("cancel")}function E(t){t.stopPropagation();let e=t.target;e.classList.contains("dt-button-cancel")&&A(),e.classList.contains("dt-button-primary")&&function(){S(),y(N),y(z);let t=`${j.startDate.year}-${j.startDate.month}-${j.startDate.date} ${j.startTime.hour}:${j.startTime.minute}:${j.startTime.second}.${j.startTime.millisecond}`,e=`${j.endDate.year}-${j.endDate.month}-${j.endDate.date} ${j.endTime.hour}:${j.endTime.minute}:${j.endTime.second}.${j.endTime.millisecond}`;a({startTime:t,endTime:e,quick:c(j),startTimeStamp:new Date(t).getTime(),endTimeStamp:new Date(e).getTime(),timeZone:j.timeZone})}()}N.querySelector(".dt-time-box").appendChild(x),g.push({ele:x,component:d}),N.addEventListener("click",E),z.addEventListener("click",A),function(t){t.classList.add("dt-show")}(N)})}async function U(t){return $({root:t.root},function(t){let{maxTime:e,minTime:a,startTime:i,endTime:n}=t;t.timeZone&&(e&&(e=x(e,t.timeZone)),a&&(a=x(a,t.timeZone)),i&&(i=x(i,t.timeZone)),n&&(n=x(n,t.timeZone)));let d=new Date(e||Date.now());d.setFullYear(d.getFullYear()+5*!e);let s=new Date(a||Date.now());s.setFullYear(s.getFullYear()-20*!a);let o=new Date(i||Date.now()),M=new Date(n||Date.now()),l=new Date(i||Date.now()),r=new Date(n||Date.now());o.getUTCFullYear()===M.getUTCFullYear()&&l.getMonth()==M.getMonth()&&r.setMonth(M.getMonth()+1);let c=0;return c=void 0!==t.timeZone?t.timeZone:-new Date().getTimezoneOffset()/60,{startDate:i?h(o):h(),endDate:n?h(M):h(),startTime:i?v(o):v(),endTime:n?v(M):v(),startDateShow:h(l),endDateShow:h(r),moveDate:h(),maxDate:h(s),maxTime:v(s),minDate:h(d),minTime:v(d),lang:t.lang||"enUS",timeZone:c}}(t))}function Q(e,a,i){i||(i=I());let n=new Date(x(e,i)),d=new Date(x(a,i)),s={hour:d.getHours(),minute:d.getMinutes(),second:d.getSeconds(),millisecond:d.getMilliseconds()},o={hour:n.getHours(),minute:n.getMinutes(),second:n.getSeconds(),millisecond:n.getMilliseconds()},M={year:n.getFullYear(),month:n.getMonth()+1,date:n.getDate()},l={year:d.getFullYear(),month:d.getMonth()+1,date:d.getDate()},{QUICK_MAP:r}=t;for(let t in r){var c,m,u,D,g,T,j,y,N,z,h,v,L,O;if(r[t]&&(null===(c=r[t])||void 0===c?void 0:c.endTime.hour)===s.hour&&(null===(m=r[t])||void 0===m?void 0:m.endTime.minute)===s.minute&&(null===(u=r[t])||void 0===u?void 0:u.endTime.second)===s.second&&(null===(D=r[t])||void 0===D?void 0:D.endTime.millisecond)===s.millisecond&&(null===(g=r[t])||void 0===g?void 0:g.startTime.hour)===o.hour&&(null===(T=r[t])||void 0===T?void 0:T.startTime.minute)===o.minute&&(null===(j=r[t])||void 0===j?void 0:j.startTime.second)===o.second&&(null===(y=r[t])||void 0===y?void 0:y.startTime.millisecond)===o.millisecond&&(null===(N=r[t])||void 0===N?void 0:N.startDate.year)===M.year&&(null===(z=r[t])||void 0===z?void 0:z.startDate.month)===M.month&&(null===(h=r[t])||void 0===h?void 0:h.startDate.date)===M.date&&(null===(v=r[t])||void 0===v?void 0:v.endDate.year)===l.year&&(null===(L=r[t])||void 0===L?void 0:L.endDate.month)===l.month&&(null===(O=r[t])||void 0===O?void 0:O.endDate.date)===l.date)return t}return null}function Z(e,a){let i={startTime:"0000-00-00 00:00:00.000",endTime:"0000-00-00 00:00:00.000",startTimeStamp:0,endTimeStamp:0},{QUICK_MAP:n}=t;if(!n[e])return i;a||(a=I());let d=O({date:n[e].startDate,time:n[e].startTime},a),s=O({date:n[e].endDate,time:n[e].endTime},a);return i.startTime=z(d.date,d.time),i.endTime=z(s.date,s.time),i.startTimeStamp=new Date(i.startTime).getTime(),i.endTimeStamp=new Date(i.endTime).getTime(),i}a(611),a(803),a(406),a(276);let F={open:U,getLimitKeyByTimetamp:Q,getTimestampByLimitKey:Z}})();var n=i.ZP,d=i.sM,s=i.rC,o=i.bA;export{n as default,d as getLimitKeyByTimetamp,s as getTimestampByLimitKey,o as open};
143
+ `),o.appendChild(N);let z=document.createElement("div");if(z.classList.add("dt-mask"),document.body.appendChild(z),window.innerWidth>768){let t=o.getBoundingClientRect();N.style.top=`${t.height+5}px`}let h=M(j);N.insertBefore(h,N.querySelector(".dt-content")),g.push({ele:h,component:t});let v=D(j,"start");N.querySelector(".dt-start").appendChild(v),g.push({ele:v,component:e});let I=w(j,"start");N.querySelector(".dt-start").appendChild(I),g.push({ele:I,component:n});let L=D(j,"end");N.querySelector(".dt-end").appendChild(L),g.push({ele:L,component:e});let O=w(j,"end");N.querySelector(".dt-end").appendChild(O),g.push({ele:O,component:n});let x=Y(j);function S(){z.removeEventListener("click",A),N.removeEventListener("click",E)}function A(){S(),y(N),y(z),l("cancel")}function E(t){t.stopPropagation();let e=t.target;e.classList.contains("dt-button-cancel")&&A(),e.classList.contains("dt-button-primary")&&function(){S(),y(N),y(z);let t=`${j.startDate.year}-${j.startDate.month}-${j.startDate.date} ${j.startTime.hour}:${j.startTime.minute}:${j.startTime.second}.${j.startTime.millisecond}`,e=`${j.endDate.year}-${j.endDate.month}-${j.endDate.date} ${j.endTime.hour}:${j.endTime.minute}:${j.endTime.second}.${j.endTime.millisecond}`;a({startTime:t,endTime:e,quick:c(j),startTimeStamp:new Date(t).getTime(),endTimeStamp:new Date(e).getTime(),timeZone:j.timeZone})}()}N.querySelector(".dt-time-box").appendChild(x),g.push({ele:x,component:d}),N.addEventListener("click",E),z.addEventListener("click",A),function(t){t.classList.add("dt-show")}(N)})}async function U(t){return $({root:t.root},function(t){let{maxTime:e,minTime:a,startTime:i,endTime:n}=t;t.timeZone&&(I(),e&&(e=x(e,t.timeZone)),a&&(a=x(a,t.timeZone)),i&&(i=x(i,t.timeZone)),n&&(n=x(n,t.timeZone)));let d=new Date(e||Date.now());d.setFullYear(d.getFullYear()+5*!e);let s=new Date(a||Date.now());s.setFullYear(s.getFullYear()-20*!a);let o=new Date(i||Date.now()),M=new Date(n||Date.now()),l=new Date(i||Date.now()),r=new Date(n||Date.now());o.getUTCFullYear()===M.getUTCFullYear()&&l.getMonth()==M.getMonth()&&r.setMonth(M.getMonth()+1);let c=0;return c=void 0!==t.timeZone?t.timeZone:-new Date().getTimezoneOffset()/60,{startDate:i?h(o):h(),endDate:n?h(M):h(),startTime:i?v(o):v(),endTime:n?v(M):v(),startDateShow:h(l),endDateShow:h(r),moveDate:h(),maxDate:h(s),maxTime:v(s),minDate:h(d),minTime:v(d),lang:t.lang||"enUS",timeZone:c}}(t))}function Q(e,a,i){let n=I();i||(i=n);let d=new Date(x(e,i,n)),s=new Date(x(a,i,n)),o={hour:s.getHours(),minute:s.getMinutes(),second:s.getSeconds(),millisecond:s.getMilliseconds()},M={hour:d.getHours(),minute:d.getMinutes(),second:d.getSeconds(),millisecond:d.getMilliseconds()},l={year:d.getFullYear(),month:d.getMonth()+1,date:d.getDate()},r={year:s.getFullYear(),month:s.getMonth()+1,date:s.getDate()},{QUICK_MAP:c}=t;for(let t in c){var m,u,D,g,T,j,y,N,z,h,v,L,O,w;if(c[t]&&(null===(m=c[t])||void 0===m?void 0:m.endTime.hour)===o.hour&&(null===(u=c[t])||void 0===u?void 0:u.endTime.minute)===o.minute&&(null===(D=c[t])||void 0===D?void 0:D.endTime.second)===o.second&&(null===(g=c[t])||void 0===g?void 0:g.endTime.millisecond)===o.millisecond&&(null===(T=c[t])||void 0===T?void 0:T.startTime.hour)===M.hour&&(null===(j=c[t])||void 0===j?void 0:j.startTime.minute)===M.minute&&(null===(y=c[t])||void 0===y?void 0:y.startTime.second)===M.second&&(null===(N=c[t])||void 0===N?void 0:N.startTime.millisecond)===M.millisecond&&(null===(z=c[t])||void 0===z?void 0:z.startDate.year)===l.year&&(null===(h=c[t])||void 0===h?void 0:h.startDate.month)===l.month&&(null===(v=c[t])||void 0===v?void 0:v.startDate.date)===l.date&&(null===(L=c[t])||void 0===L?void 0:L.endDate.year)===r.year&&(null===(O=c[t])||void 0===O?void 0:O.endDate.month)===r.month&&(null===(w=c[t])||void 0===w?void 0:w.endDate.date)===r.date)return t}return null}function Z(e,a){let i={startTime:"0000-00-00 00:00:00.000",endTime:"0000-00-00 00:00:00.000",startTimeStamp:0,endTimeStamp:0},{QUICK_MAP:n}=t;if(!n[e])return i;a||(a=I());let d=O({date:n[e].startDate,time:n[e].startTime},a),s=O({date:n[e].endDate,time:n[e].endTime},a);return i.startTime=z(d.date,d.time),i.endTime=z(s.date,s.time),i.startTimeStamp=new Date(i.startTime).getTime(),i.endTimeStamp=new Date(i.endTime).getTime(),i}a(611),a(803),a(406),a(276);let F={open:U,getLimitKeyByTimetamp:Q,getTimestampByLimitKey:Z}})();var n=i.ZP,d=i.sM,s=i.rC,o=i.bA;export{n as default,d as getLimitKeyByTimetamp,s as getTimestampByLimitKey,o as open};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gez/date-time-kit",
3
- "version": "1.0.3-alpha.3",
3
+ "version": "1.0.3-alpha.5",
4
4
  "description": "A JavaScript library for handling date and time operations efficiently.",
5
5
  "type": "module",
6
6
  "types": "type.d.ts",