mat-date 1.7.57 → 1.7.69

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.
@@ -1,3 +1,4 @@
1
+ import { Temporal } from '@js-temporal/polyfill';
1
2
  interface IStrOptions {
2
3
  localeMatcher?: "best fit" | "lookup" | undefined;
3
4
  weekday?: "long" | "short" | "narrow" | undefined;
@@ -15,17 +16,22 @@ interface IStrOptions {
15
16
  }
16
17
  export declare class MDateUtil {
17
18
  private val;
18
- private static glCode;
19
19
  private code;
20
+ private _zone;
20
21
  private dyfrmt;
21
22
  get localCode(): string;
23
+ get zone(): string;
24
+ private init;
25
+ toString(): string;
22
26
  static new(): MDateUtil;
23
27
  static setCode(code: string): typeof MDateUtil;
28
+ static setZone(zone: string): typeof MDateUtil;
24
29
  static seperator(): string;
25
30
  cpy(): MDateUtil;
26
31
  setCode(code: string): this;
32
+ setZone(zone: string): this;
27
33
  seperator(): string;
28
- zone(): string;
34
+ timezone(): string;
29
35
  zones(code?: string): string[];
30
36
  region(code?: string): string;
31
37
  year(): number;
@@ -60,16 +66,15 @@ export declare class MDateUtil {
60
66
  setDateInputValue(value: string): this;
61
67
  setVal(value: MDateUtil | Date | number | string): MDateUtil;
62
68
  toIsoDate(): string;
69
+ toIsoDateZone(): string;
63
70
  toTime(): number;
64
- toDate(): Date;
71
+ toDate(): Temporal.ZonedDateTime;
65
72
  toDateMounthInput(): string;
66
73
  toDateInput(): string;
67
74
  toTimeInput(byS?: boolean): string;
68
75
  toDateTimeInput(byS?: boolean): string;
69
76
  strDate(): string;
70
- strDateLocal(options: IStrOptions): string;
71
77
  strTime(): string;
72
- strTimeLocale(options: IStrOptions): string;
73
78
  strHHmm(): string;
74
79
  str(): string;
75
80
  strLocal(options: IStrOptions): string;
@@ -113,7 +118,6 @@ export declare class MDateUtil {
113
118
  static diffHours(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
114
119
  static diffMins(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
115
120
  static diffSecs(before: MDateUtil | Date | number | string, after: MDateUtil | Date | number | string, abs?: boolean): number;
116
- static s1(m1: MDateUtil | Date | number | string, m2: MDateUtil | Date | number | string, t1: MDateUtil | Date | number | string, t2: MDateUtil | Date | number | string): boolean;
117
121
  static divideTime(value: string): {
118
122
  h: number;
119
123
  m: number;
package/dist/DateUtil.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const a0_0x293aa6={};a0_0x293aa6['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x293aa6),exports['MDateUtil']=void 0x0;const a0_0x4986cd=(_0x245584,_0x5576c4=0x2)=>_0x245584['toString']()['padStart'](_0x5576c4,'0');function a0_0x57bbf0(_0x125aa3,_0x246f18){try{return _0x125aa3();}catch(_0xc17a11){if(_0x246f18)return _0x246f18;throw new Error('UNKNOWN');}}function a0_0x23a3f3(_0x3e3abd){try{if(_0x3e3abd instanceof Date)return _0x3e3abd['getTime']();if(typeof _0x3e3abd==='number')return _0x3e3abd;if(typeof _0x3e3abd==='string')return new Date(_0x3e3abd)['getTime']();if(_0x3e3abd instanceof a0_0x596399)return _0x3e3abd['toTime']();if(_0x3e3abd['idkey']==='mdateutil')return _0x3e3abd['toTime']();return 0x0;}catch(_0x21be4f){throw new Error('ERROR');}}function a0_0x2ed3e3(_0x5ec5c3){function _0x107827(_0x531a40){const _0x231fe4={};return _0x231fe4['weekday']=_0x531a40,a0_0x57bbf0(()=>new Intl['DateTimeFormat'](_0x5ec5c3['localCode'],_0x231fe4)['format'](a0_0x23a3f3(_0x5ec5c3)),'');}function _0x3bc1d1(){return _0x107827('long');}function _0x36aeb5(){return _0x107827('short');}function _0x250ac0(){return _0x107827('narrow');}const _0x2f5e62={};return _0x2f5e62['ln']=_0x3bc1d1,_0x2f5e62['sh']=_0x36aeb5,_0x2f5e62['nr']=_0x250ac0,_0x2f5e62;}function a0_0x5febf6(_0x26abdb,_0x532f3d,_0x32c66c,_0x3d1c69){const _0x1e776a=a0_0x23a3f3(_0x26abdb),_0x47ec64=a0_0x23a3f3(_0x532f3d),_0xdf2d4=a0_0x23a3f3(_0x32c66c),_0x4ab43b=a0_0x23a3f3(_0x3d1c69);return _0xdf2d4<=_0x1e776a&&_0x4ab43b>=_0x1e776a&&_0x4ab43b<=_0x47ec64||_0xdf2d4>=_0x1e776a&&_0xdf2d4<=_0x47ec64&&_0x4ab43b>=_0x47ec64||_0xdf2d4>=_0x1e776a&&_0xdf2d4<=_0x47ec64&&_0x4ab43b<=_0x47ec64||_0xdf2d4<=_0x1e776a&&_0x4ab43b>=_0x47ec64;}function a0_0x23c807(_0xd20671){let _0xd1d18c=undefined,_0x30f713=undefined,_0x3d3805=undefined,_0x3f3f29=undefined;try{const _0x5eb48c=(_0xd20671||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0xd1d18c=_0x5eb48c['length']>=0x1?Number(_0x5eb48c[0x0]):undefined,_0x30f713=_0x5eb48c['length']>=0x2?Number(_0x5eb48c[0x1]):undefined,_0x3d3805=_0x5eb48c['length']>=0x3?Number(_0x5eb48c[0x2]):undefined;}catch(_0x148429){}try{let _0x20f592=_0xd20671||'',_0x49fbac=/\.\d{3}/g,_0x34a08a=_0x20f592['match'](_0x49fbac)[0x0]['split']('.')['filter'](_0x3269bd=>Boolean(_0x3269bd));_0x3f3f29=_0x34a08a['length']>=0x1?Number(_0x34a08a[0x0]):undefined;}catch(_0x156a4c){}const _0x4bca04={};return _0x4bca04['h']=_0xd1d18c,_0x4bca04['m']=_0x30f713,_0x4bca04['s']=_0x3d3805,_0x4bca04['ms']=_0x3f3f29,_0x4bca04;}class a0_0x596399{['val']=new Date();static ['glCode']=undefined;['code']=undefined;['dyfrmt']=a0_0x2ed3e3(this);get['localCode'](){return this['code'];}static['new'](){return new a0_0x596399()['setCode'](a0_0x596399['glCode']);}static['setCode'](_0xf18a7f){return a0_0x596399['glCode']=_0xf18a7f,this;}static['seperator'](){return a0_0x57bbf0(()=>new Date()['toLocaleDateString'](a0_0x596399['glCode'])['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x57bbf0(()=>a0_0x596399['new']()['setTime'](this['toTime']()));}['setCode'](_0x113e79){return this['code']=_0x113e79,this;}['seperator'](){return a0_0x57bbf0(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['zone'](){return a0_0x57bbf0(()=>{return Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x31326e=this['code']){return a0_0x57bbf0(()=>{return new Intl['Locale'](_0x31326e)?.['timeZones']||[];},null);}['region'](_0x3b1621=this['code']){return a0_0x57bbf0(()=>{return new Intl['Locale'](_0x3b1621)['region'];},null);}['year'](){return this['val']['getFullYear']();}['month'](){return this['val']['getMonth']()+0x1;}['monthUtc'](){return this['val']['getMonth']();}['day'](){return this['val']['getDate']();}['hours'](){return this['val']['getHours']();}['min'](){return this['val']['getMinutes']();}['sec'](){return this['val']['getSeconds']();}['msec'](){return this['val']['getMilliseconds']();}['dayOfWeek'](){const _0x238dce=this['val']['getDay']();return _0x238dce?_0x238dce:0x7;}['dayOfWeekUtc'](){return this['val']['getDay']();}['setYear'](_0x188e1d){return this['val']['setFullYear'](_0x188e1d),this;}['setMonth'](_0xf68df8){return this['val']['setMonth'](_0xf68df8-0x1),this;}['setMonthUtc'](_0x16dd41){return this['val']['setMonth'](_0x16dd41),this;}['setDay'](_0x1c159c){return this['val']['setDate'](_0x1c159c),this;}['setHour'](_0x1551e3){return this['val']['setHours'](_0x1551e3),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x20f6c2){return this['val']['setMinutes'](_0x20f6c2),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x346852){return this['val']['setSeconds'](_0x346852),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0xa174e5){return this['val']['setMilliseconds'](_0xa174e5),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0x36b1d4){return this['val']=new Date(_0x36b1d4),this;}['setTime'](_0x3c7f2c){return this['val']=new Date(_0x3c7f2c),this;}['setDate'](_0x5abdd9){return this['val']=new Date(_0x5abdd9),this;}['setDateInputValue'](_0x546667){return this['val']=new Date(_0x546667?.['replace']('T','\x20')),this;}['setVal'](_0x5ee64b){return a0_0x57bbf0(()=>{return a0_0x596399['new']()['setTime'](a0_0x23a3f3(_0x5ee64b));});}['toIsoDate'](){return this['val']['toISOString']();}['toTime'](){return this['val']['getTime']();}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x4986cd(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x4986cd(this['month']())+'-'+a0_0x4986cd(this['day']());}['toTimeInput'](_0x11277d=!![]){const _0x30e827=[];return _0x30e827['push'](a0_0x4986cd(this['hours']())),_0x30e827['push'](a0_0x4986cd(this['min']())),_0x11277d&&_0x30e827['push'](a0_0x4986cd(this['sec']())),_0x30e827['join'](':');}['toDateTimeInput'](_0x44e02d=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x44e02d);}['strDate'](){const _0x2216ae={};return _0x2216ae['month']='2-digit',_0x2216ae['day']='2-digit',_0x2216ae['year']='numeric',this['val']['toLocaleDateString'](this['code'],_0x2216ae);}['strDateLocal'](_0x1e7a71){return this['val']['toLocaleDateString'](this['code'],_0x1e7a71);}['strTime'](){return a0_0x4986cd(this['hours']())+':'+a0_0x4986cd(this['min']())+':'+a0_0x4986cd(this['sec']());}['strTimeLocale'](_0x3fea8e){return this['val']['toLocaleTimeString'](this['code'],_0x3fea8e);}['strHHmm'](){return a0_0x4986cd(this['hours']())+':'+a0_0x4986cd(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x1d88f4){return this['val']['toLocaleString'](this['code'],_0x1d88f4);}['strYears'](){return this['val']['getFullYear']()['toString']();}['strMounth'](){return a0_0x4986cd(this['month'](),0x2);}['strDay'](){return a0_0x4986cd(this['day'](),0x2);}['strHour'](){return a0_0x4986cd(this['hours'](),0x2);}['strMin'](){return a0_0x4986cd(this['min'](),0x2);}['strSec'](){return a0_0x4986cd(this['sec'](),0x2);}['strMsec'](){return a0_0x4986cd(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x3373fe){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x3373fe*0x18)),this;}['addHours'](_0x2ee0ac){return this['val']=new Date(this['val']['setHours'](this['val']['getHours']()+_0x2ee0ac)),this;}['addMins'](_0x5f2fc0){return this['val']=new Date(this['val']['setMinutes'](this['val']['getMinutes']()+_0x5f2fc0)),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setDate'](this['val'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x501d05){return a0_0x57bbf0(()=>{return this['cpy']()['toTime']()===a0_0x23a3f3(_0x501d05);});}['gt'](_0x42e881){return a0_0x57bbf0(()=>{return this['cpy']()['toTime']()>a0_0x23a3f3(_0x42e881);});}['gte'](_0x1338f7){return a0_0x57bbf0(()=>{return this['cpy']()['toTime']()>=a0_0x23a3f3(_0x1338f7);});}['lt'](_0x4e9d1b){return a0_0x57bbf0(()=>{return this['cpy']()['toTime']()<a0_0x23a3f3(_0x4e9d1b);});}['lte'](_0xfbab6a){return a0_0x57bbf0(()=>{return this['cpy']()['toTime']()<=a0_0x23a3f3(_0xfbab6a);});}['btw'](_0x52fed3,_0x3382d9){return a0_0x57bbf0(()=>{const _0x59e9a1=a0_0x23a3f3(_0x52fed3),_0x22cb04=a0_0x23a3f3(_0x3382d9),_0x2da795=this['cpy']()['toTime']();return _0x59e9a1<_0x2da795&&_0x2da795<_0x22cb04;});}['btweq'](_0x585891,_0x4cac62){return a0_0x57bbf0(()=>{const _0x38d501=a0_0x23a3f3(_0x585891),_0x5c1c2b=a0_0x23a3f3(_0x4cac62),_0x33d3cf=this['cpy']()['toTime']();return _0x38d501<=_0x33d3cf&&_0x33d3cf<=_0x5c1c2b;});}['btwEqStart'](_0x25c9cf,_0x2d4128){return a0_0x57bbf0(()=>{const _0x1f19f3=a0_0x23a3f3(_0x25c9cf),_0x2f6656=a0_0x23a3f3(_0x2d4128),_0x5929e9=this['cpy']()['toTime']();return _0x1f19f3<=_0x5929e9&&_0x5929e9<_0x2f6656;});}['btwEqEnd'](_0x24f58e,_0x560fcd){return a0_0x57bbf0(()=>{const _0x2a6dc9=a0_0x23a3f3(_0x24f58e),_0x401d04=a0_0x23a3f3(_0x560fcd),_0x3b315c=this['cpy']()['toTime']();return _0x2a6dc9<_0x3b315c&&_0x3b315c<=_0x401d04;});}static['diffDays'](_0x5981e0,_0x349532,_0x4c073){return a0_0x57bbf0(()=>{const _0x5c660a=a0_0x23a3f3(_0x5981e0),_0x481adb=a0_0x23a3f3(_0x349532);return _0x4c073?Math['abs'](_0x5c660a-_0x481adb)/0x36ee80/0x18:(_0x5c660a-_0x481adb)/0x36ee80/0x18;});}static['diffHours'](_0x2d020e,_0x45e1c4,_0x252d0f){return a0_0x57bbf0(()=>{const _0x928a09=a0_0x23a3f3(_0x2d020e),_0x5286c0=a0_0x23a3f3(_0x45e1c4);return _0x252d0f?Math['abs'](_0x928a09-_0x5286c0)/0x36ee80:(_0x928a09-_0x5286c0)/0x36ee80;});}static['diffMins'](_0x4fd28c,_0x46f195,_0x1a6b98){return a0_0x57bbf0(()=>{const _0x1cf393=a0_0x23a3f3(_0x4fd28c),_0x3388e3=a0_0x23a3f3(_0x46f195);return _0x1a6b98?Math['abs'](_0x1cf393-_0x3388e3)/0x3e8/0x3c:(_0x1cf393-_0x3388e3)/0x3e8/0x3c;});}static['diffSecs'](_0x2f907e,_0xa882eb,_0x330a0b){return a0_0x57bbf0(()=>{const _0x1d2b9b=a0_0x23a3f3(_0x2f907e),_0x5683fa=a0_0x23a3f3(_0xa882eb);return _0x330a0b?Math['abs'](_0x1d2b9b-_0x5683fa)/0x3e8:(_0x1d2b9b-_0x5683fa)/0x3e8;});}static['s1'](_0x29c900,_0x580d8e,_0x54d8a4,_0x4adf1b){return a0_0x57bbf0(()=>a0_0x5febf6(_0x29c900,_0x580d8e,_0x54d8a4,_0x4adf1b));}static['divideTime'](_0x2a6b04){return a0_0x57bbf0(()=>a0_0x23c807(_0x2a6b04));}}exports['MDateUtil']=a0_0x596399;const a0_0x5f2fdc={};a0_0x5f2fdc['value']='mdateutil',a0_0x5f2fdc['writable']=![],a0_0x5f2fdc['enumerable']=!![],a0_0x5f2fdc['configurable']=![],Object['defineProperty'](a0_0x596399['prototype'],'idkey',a0_0x5f2fdc);
1
+ 'use strict';const a0_0x407c83={};a0_0x407c83['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x407c83),exports['MDateUtil']=void 0x0;const a0_0x69cd62=require('@js-temporal/polyfill'),a0_0x2542f4=(_0x13cd39,_0x268d22=0x2)=>_0x13cd39['toString']()['padStart'](_0x268d22,'0');function a0_0x372f6c(_0x37c38e,_0x3cb697){try{return _0x37c38e();}catch(_0x750153){if(_0x3cb697)return _0x3cb697;throw new Error('UNKNOWN');}}function a0_0x226aea(_0x4a955c,_0x421a9e){try{if(_0x4a955c instanceof Date)return a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](_0x4a955c['getTime']())['toZonedDateTimeISO'](_0x421a9e)['epochMilliseconds'];if(typeof _0x4a955c==='number')return _0x4a955c;if(typeof _0x4a955c==='string')return a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](new Date(_0x4a955c)['getTime']())['toZonedDateTimeISO'](_0x421a9e)['epochMilliseconds'];if(_0x4a955c instanceof a0_0x10db09)return _0x4a955c['toTime']();if(_0x4a955c['idkey']==='mdateutil')return _0x4a955c['toTime']();return 0x0;}catch(_0x6e2ee2){throw new Error('ERROR');}}function a0_0x15480f(_0x21bbc6){function _0x3b9dc0(_0x4ffea0){const _0x4882a8={};return _0x4882a8['weekday']=_0x4ffea0,a0_0x372f6c(()=>new Intl['DateTimeFormat'](_0x21bbc6['localCode'],_0x4882a8)['format'](a0_0x226aea(_0x21bbc6,_0x21bbc6['zone'])),'');}function _0x22dc9a(){return _0x3b9dc0('long');}function _0x364995(){return _0x3b9dc0('short');}function _0x4fd53b(){return _0x3b9dc0('narrow');}const _0x5db86c={};return _0x5db86c['ln']=_0x22dc9a,_0x5db86c['sh']=_0x364995,_0x5db86c['nr']=_0x4fd53b,_0x5db86c;}function a0_0x1de3eb(_0x1b0b6b){let _0x586b20=undefined,_0x38759c=undefined,_0x19e31c=undefined,_0x13dc1e=undefined;try{const _0x3cf48b=(_0x1b0b6b||'')['match'](/\w{2}:\w{2}(:\w{2})?\b/g)[0x0]['split'](':');_0x586b20=_0x3cf48b['length']>=0x1?Number(_0x3cf48b[0x0]):undefined,_0x38759c=_0x3cf48b['length']>=0x2?Number(_0x3cf48b[0x1]):undefined,_0x19e31c=_0x3cf48b['length']>=0x3?Number(_0x3cf48b[0x2]):undefined;}catch(_0x43961a){}try{let _0x2a1ae9=_0x1b0b6b||'',_0x44f713=/\.\d{3}/g,_0x425a14=_0x2a1ae9['match'](_0x44f713)[0x0]['split']('.')['filter'](_0x868624=>Boolean(_0x868624));_0x13dc1e=_0x425a14['length']>=0x1?Number(_0x425a14[0x0]):undefined;}catch(_0xcd5e5d){}const _0x3e9bfc={};return _0x3e9bfc['h']=_0x586b20,_0x3e9bfc['m']=_0x38759c,_0x3e9bfc['s']=_0x19e31c,_0x3e9bfc['ms']=_0x13dc1e,_0x3e9bfc;}let a0_0x54fe91=Intl['NumberFormat']()['resolvedOptions']()['locale'],a0_0x352b20=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];class a0_0x10db09{['val'];['code']=Intl['NumberFormat']()['resolvedOptions']()['locale'];['_zone']=Intl['DateTimeFormat']()['resolvedOptions']()['timeZone'];['dyfrmt']=a0_0x15480f(this);get['localCode'](){return this['code'];}get['zone'](){return this['_zone'];}['init'](){return this['val']=a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](new Date()['getTime']())['toZonedDateTimeISO'](this['zone']),this['dyfrmt']=a0_0x15480f(this),this;}['toString'](){return'TEST';}static['new'](){return new a0_0x10db09()['setCode'](a0_0x54fe91)['setZone'](a0_0x352b20)['init']();}static['setCode'](_0x2f5fd7){return a0_0x54fe91=_0x2f5fd7,this;}static['setZone'](_0x4e04e4){return a0_0x352b20=_0x4e04e4,this;}static['seperator'](){return a0_0x372f6c(()=>new Date()['toLocaleDateString'](a0_0x54fe91)['replace'](/\d/g,'')['split']('')[0x0]);}['cpy'](){return a0_0x372f6c(()=>a0_0x10db09['new']()['setTime'](this['toTime']()));}['setCode'](_0x18cca0){return this['code']=_0x18cca0,this;}['setZone'](_0x186677){return this['_zone']=_0x186677,this;}['seperator'](){return a0_0x372f6c(()=>new Date()['toLocaleDateString'](this['code'])['replace'](/\d/g,'')['split']('')[0x0]);}['timezone'](){return a0_0x372f6c(()=>{return this['zone']||Intl['DateTimeFormat']()?.['resolvedOptions']()?.['timeZone'];},null);}['zones'](_0x2aca47=this['code']){return a0_0x372f6c(()=>{return new Intl['Locale'](_0x2aca47)?.['timeZones']||[];},null);}['region'](_0x1c60fa=this['code']){return a0_0x372f6c(()=>{return new Intl['Locale'](_0x1c60fa)['region'];},null);}['year'](){return this['val']['year'];}['month'](){return this['val']['month'];}['monthUtc'](){return this['val']['month']-0x1;}['day'](){return this['val']['day'];}['hours'](){return this['val']['hour'];}['min'](){return this['val']['minute'];}['sec'](){return this['val']['second'];}['msec'](){return this['val']['millisecond'];}['dayOfWeek'](){const _0x342da4=this['val']['dayOfWeek'];return _0x342da4?_0x342da4:0x7;}['dayOfWeekUtc'](){return this['val']['dayOfWeek']-0x1;}['setYear'](_0x36ab31){const _0x17c8d5={};return _0x17c8d5['year']=_0x36ab31,this['val']['with'](_0x17c8d5),this;}['setMonth'](_0x99a270){const _0xcd4855={};return _0xcd4855['month']=_0x99a270,this['val']['with'](_0xcd4855),this;}['setMonthUtc'](_0xb3018){const _0x47ea20={};return _0x47ea20['month']=_0xb3018+0x1,this['val']['with'](_0x47ea20),this;}['setDay'](_0x1df945){const _0x17322e={};return _0x17322e['day']=_0x1df945,this['val']['with'](_0x17322e),this;}['setHour'](_0x5634d6){const _0x4f8f25={};return _0x4f8f25['hour']=_0x5634d6,this['val']['with'](_0x4f8f25),this;}['startOfHours'](){return this['setMin'](0x0),this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfHours'](){return this['setMin'](0x3b),this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setMin'](_0x3c142d){const _0x404f85={};return _0x404f85['minute']=_0x3c142d,this['val']['with'](_0x404f85),this;}['startOfMin'](){return this['setSeconds'](0x0),this['setMilliseconds'](0x0),this;}['endOfMin'](){return this['setSeconds'](0x3b),this['setMilliseconds'](0x3e7),this;}['setSeconds'](_0x1a9bbd){const _0x19640f={};return _0x19640f['second']=_0x1a9bbd,this['val']['with'](_0x19640f),this;}['startOfSeconds'](){return this['setMilliseconds'](0x0),this;}['endOfSeconds'](){return this['setMilliseconds'](0x3e7),this;}['setMilliseconds'](_0x4b419b){const _0x500b1a={};return _0x500b1a['millisecond']=_0x4b419b,this['val']['with'](_0x500b1a),this;}['startOfMilliseconds'](){return this['setMilliseconds'](0x0),this;}['endOfMilliseconds'](){return this['setMilliseconds'](0x3e7),this;}['setIsoDate'](_0xe6c3b5){return this['val']=a0_0x69cd62['Temporal']['Instant']['from'](_0xe6c3b5)['toZonedDateTimeISO'](this['zone']),this;}['setTime'](_0x1d02fe){return this['val']=a0_0x69cd62['Temporal']['Instant']['fromEpochMilliseconds'](_0x1d02fe)['toZonedDateTimeISO'](this['zone']),this;}['setDate'](_0x406803){return this['setIsoDate'](_0x406803?.['toISOString']()),this;}['setDateInputValue'](_0x275729){return this['val']=a0_0x69cd62['Temporal']['Instant']['from'](new Date(_0x275729?.['replace']('T','\x20'))['toISOString']())['toZonedDateTimeISO'](this['zone']),this;}['setVal'](_0x468c67){return a0_0x372f6c(()=>{return a0_0x10db09['new']()['setTime'](a0_0x226aea(_0x468c67,this['zone']));});}['toIsoDate'](){return this['val']['toString']()['substring'](0x0,0x17)+'Z';}['toIsoDateZone'](){return this['val']['toString']()['substring'](0x0,0x1d)+'Z';}['toTime'](){return this['val']['epochMilliseconds'];}['toDate'](){return this['val'];}['toDateMounthInput'](){return this['year']()+'-'+a0_0x2542f4(this['month']());}['toDateInput'](){return this['year']()+'-'+a0_0x2542f4(this['month']())+'-'+a0_0x2542f4(this['day']());}['toTimeInput'](_0x45bdc4=!![]){const _0xd02bb7=[];return _0xd02bb7['push'](a0_0x2542f4(this['hours']())),_0xd02bb7['push'](a0_0x2542f4(this['min']())),_0x45bdc4&&_0xd02bb7['push'](a0_0x2542f4(this['sec']())),_0xd02bb7['join'](':');}['toDateTimeInput'](_0x16e3b4=!![]){return this['toDateInput']()+'T'+this['toTimeInput'](_0x16e3b4);}['strDate'](){const _0x46c74f={};return _0x46c74f['month']='2-digit',_0x46c74f['day']='2-digit',_0x46c74f['year']='numeric',this['val']['toLocaleString'](this['code'],_0x46c74f);}['strTime'](){return a0_0x2542f4(this['hours']())+':'+a0_0x2542f4(this['min']())+':'+a0_0x2542f4(this['sec']());}['strHHmm'](){return a0_0x2542f4(this['hours']())+':'+a0_0x2542f4(this['min']());}['str'](){return this['strDate']()+'\x20'+this['strTime']();}['strLocal'](_0x285350){return this['val']['toLocaleString'](this['code'],_0x285350);}['strYears'](){return this['val']['year']['toString']();}['strMounth'](){return a0_0x2542f4(this['month'](),0x2);}['strDay'](){return a0_0x2542f4(this['day'](),0x2);}['strHour'](){return a0_0x2542f4(this['hours'](),0x2);}['strMin'](){return a0_0x2542f4(this['min'](),0x2);}['strSec'](){return a0_0x2542f4(this['sec'](),0x2);}['strMsec'](){return a0_0x2542f4(this['msec'](),0x2);}['strDayStr'](){return{'ln':()=>this['dyfrmt']['ln'](),'sh':()=>this['dyfrmt']['sh'](),'nr':()=>this['dyfrmt']['nr']()};}['addDay'](_0x5f4c30){const _0x21125f={};return _0x21125f['days']=_0x5f4c30,this['val']['add'](_0x21125f),this;}['addHours'](_0x254192){const _0x3d04c7={};return _0x3d04c7['hours']=_0x254192,this['val']['add'](_0x3d04c7),this;}['addMins'](_0x1b28bb){const _0x2e922b={};return _0x2e922b['minutes']=_0x1b28bb,this['val']['add'](_0x2e922b),this;}['startOfDay'](){return this['setHour'](0x0),this['startOfHours'](),this;}['cpyByStartOfDay'](){return this['cpy']()['startOfDay']();}['endOfDay'](){return this['setHour'](0x17),this['endOfHours'](),this;}['cpyByEndOfDay'](){return this['cpy']()['endOfDay']();}['startOfWeek'](){return this['addDay'](-this['dayOfWeek']()+0x1);}['cpyStartOfWeek'](){return this['cpy']()['addDay'](-this['dayOfWeek']()+0x1);}['endOfWeek'](){return this['startOfWeek']()['addDay'](0x6);}['cpyEndOfWeek'](){return this['cpyStartOfWeek']()['addDay'](0x6);}['startOfMonth'](){return this['setDay'](0x1),this['startOfDay'](),this;}['cpyByStartOfMonth'](){return this['cpy']()['startOfMonth']();}['endOfMonth'](){return this['setTime'](this['val']['epochMilliseconds'])['startOfMonth']()['setMonth'](this['month']()+0x1)['startOfMonth']()['addDay'](-0x1)['endOfDay'](),this;}['cpyByEndOfMonth'](){return this['cpy']()['endOfMonth']();}['eq'](_0x16728e){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()===a0_0x226aea(_0x16728e,this['zone']);});}['gt'](_0x8a670f){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()>a0_0x226aea(_0x8a670f,this['zone']);});}['gte'](_0x1f979d){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()>=a0_0x226aea(_0x1f979d,this['zone']);});}['lt'](_0x344c6a){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()<a0_0x226aea(_0x344c6a,this['zone']);});}['lte'](_0x4859ed){return a0_0x372f6c(()=>{return this['cpy']()['toTime']()<=a0_0x226aea(_0x4859ed,this['zone']);});}['btw'](_0x1fb715,_0x44f16f){return a0_0x372f6c(()=>{const _0x1f44bf=a0_0x226aea(_0x1fb715,this['zone']),_0x1a17d8=a0_0x226aea(_0x44f16f,this['zone']),_0x3cc8e0=this['cpy']()['toTime']();return _0x1f44bf<_0x3cc8e0&&_0x3cc8e0<_0x1a17d8;});}['btweq'](_0x5b4e3e,_0x4b0f07){return a0_0x372f6c(()=>{const _0x4e2899=a0_0x226aea(_0x5b4e3e,this['zone']),_0x382c41=a0_0x226aea(_0x4b0f07,this['zone']),_0x3607fc=this['cpy']()['toTime']();return _0x4e2899<=_0x3607fc&&_0x3607fc<=_0x382c41;});}['btwEqStart'](_0xe49e3f,_0x2baf55){return a0_0x372f6c(()=>{const _0x4822d4=a0_0x226aea(_0xe49e3f,this['zone']),_0x3e8379=a0_0x226aea(_0x2baf55,this['zone']),_0x4ba888=this['cpy']()['toTime']();return _0x4822d4<=_0x4ba888&&_0x4ba888<_0x3e8379;});}['btwEqEnd'](_0x2b2535,_0x1364b6){return a0_0x372f6c(()=>{const _0x57879b=a0_0x226aea(_0x2b2535,this['zone']),_0x1ccc78=a0_0x226aea(_0x1364b6,this['zone']),_0x3d5697=this['cpy']()['toTime']();return _0x57879b<_0x3d5697&&_0x3d5697<=_0x1ccc78;});}static['diffDays'](_0x560c8e,_0x1da3e1,_0x8d13b9){return a0_0x372f6c(()=>{const _0x15397f=a0_0x226aea(_0x560c8e,a0_0x352b20),_0x165e87=a0_0x226aea(_0x1da3e1,a0_0x352b20);return _0x8d13b9?Math['abs'](_0x15397f-_0x165e87)/0x36ee80/0x18:(_0x15397f-_0x165e87)/0x36ee80/0x18;});}static['diffHours'](_0x41028d,_0x58c30c,_0x357a0b){return a0_0x372f6c(()=>{const _0x4bb9ae=a0_0x226aea(_0x41028d,a0_0x352b20),_0x5bab15=a0_0x226aea(_0x58c30c,a0_0x352b20);return _0x357a0b?Math['abs'](_0x4bb9ae-_0x5bab15)/0x36ee80:(_0x4bb9ae-_0x5bab15)/0x36ee80;});}static['diffMins'](_0x3c4f64,_0x1e5bc2,_0xb5ed2b){return a0_0x372f6c(()=>{const _0x133d65=a0_0x226aea(_0x3c4f64,a0_0x352b20),_0x25474d=a0_0x226aea(_0x1e5bc2,a0_0x352b20);return _0xb5ed2b?Math['abs'](_0x133d65-_0x25474d)/0x3e8/0x3c:(_0x133d65-_0x25474d)/0x3e8/0x3c;});}static['diffSecs'](_0x36e712,_0xaeec21,_0x29a0ee){return a0_0x372f6c(()=>{const _0x5127b3=a0_0x226aea(_0x36e712,a0_0x352b20),_0x1c57cb=a0_0x226aea(_0xaeec21,a0_0x352b20);return _0x29a0ee?Math['abs'](_0x5127b3-_0x1c57cb)/0x3e8:(_0x5127b3-_0x1c57cb)/0x3e8;});}static['divideTime'](_0x54fe08){return a0_0x372f6c(()=>a0_0x1de3eb(_0x54fe08));}}exports['MDateUtil']=a0_0x10db09;const a0_0x34bdd4={};a0_0x34bdd4['value']='mdateutil',a0_0x34bdd4['writable']=![],a0_0x34bdd4['enumerable']=!![],a0_0x34bdd4['configurable']=![],Object['defineProperty'](a0_0x10db09['prototype'],'idkey',a0_0x34bdd4);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var a0_0x1bff0e=this&&this['__createBinding']||(Object['create']?function(_0x1c9820,_0xdddfc3,_0x495c65,_0x3188b1){if(_0x3188b1===undefined)_0x3188b1=_0x495c65;var _0x4736cc=Object['getOwnPropertyDescriptor'](_0xdddfc3,_0x495c65);if(!_0x4736cc||('get'in _0x4736cc?!_0xdddfc3['__esModule']:_0x4736cc['writable']||_0x4736cc['configurable'])){var _0x42fe29={};_0x42fe29['enumerable']=!![],_0x42fe29['get']=function(){return _0xdddfc3[_0x495c65];},_0x4736cc=_0x42fe29;}Object['defineProperty'](_0x1c9820,_0x3188b1,_0x4736cc);}:function(_0x59855d,_0x39371e,_0x2831ab,_0x2f1ae2){if(_0x2f1ae2===undefined)_0x2f1ae2=_0x2831ab;_0x59855d[_0x2f1ae2]=_0x39371e[_0x2831ab];}),a0_0x5ae73b=this&&this['__exportStar']||function(_0xf87aec,_0x35cb4e){for(var _0x3d5a8b in _0xf87aec)if(_0x3d5a8b!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x35cb4e,_0x3d5a8b))a0_0x1bff0e(_0x35cb4e,_0xf87aec,_0x3d5a8b);},a0_0x557af6={};a0_0x557af6['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x557af6),a0_0x5ae73b(require('./DateUtil'),exports);
1
+ 'use strict';var a0_0x378c6f=this&&this['__createBinding']||(Object['create']?function(_0x2b5160,_0x36795a,_0x145f76,_0x24dd64){if(_0x24dd64===undefined)_0x24dd64=_0x145f76;var _0x43c867=Object['getOwnPropertyDescriptor'](_0x36795a,_0x145f76);if(!_0x43c867||('get'in _0x43c867?!_0x36795a['__esModule']:_0x43c867['writable']||_0x43c867['configurable'])){var _0x4c6114={};_0x4c6114['enumerable']=!![],_0x4c6114['get']=function(){return _0x36795a[_0x145f76];},_0x43c867=_0x4c6114;}Object['defineProperty'](_0x2b5160,_0x24dd64,_0x43c867);}:function(_0x485d80,_0x22a6ed,_0x292f2e,_0x18c9bb){if(_0x18c9bb===undefined)_0x18c9bb=_0x292f2e;_0x485d80[_0x18c9bb]=_0x22a6ed[_0x292f2e];}),a0_0x5de85c=this&&this['__exportStar']||function(_0x5aedef,_0x2b1c7a){for(var _0x2265d0 in _0x5aedef)if(_0x2265d0!=='default'&&!Object['prototype']['hasOwnProperty']['call'](_0x2b1c7a,_0x2265d0))a0_0x378c6f(_0x2b1c7a,_0x5aedef,_0x2265d0);},a0_0x2c4795={};a0_0x2c4795['value']=!![],Object['defineProperty'](exports,'__esModule',a0_0x2c4795),a0_0x5de85c(require('./DateUtil'),exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mat-date",
3
- "version": "1.7.57",
3
+ "version": "1.7.69",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -26,6 +26,7 @@
26
26
  "README.md"
27
27
  ],
28
28
  "dependencies": {
29
+ "@js-temporal/polyfill": "^0.5.1",
29
30
  "tslib": "^2.5.0"
30
31
  },
31
32
  "devDependencies": {