@progress/kendo-vue-dateinputs 10.2.0-develop.9 → 11.0.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1793274432,version:"10.2.0-develop.9",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={name:"@progress/kendo-vue-dateinputs",productName:"Kendo UI for Vue",productCode:"KENDOUIVUE",productCodes:["KENDOUIVUE"],publishDate: 1794299471,version:"11.0.0-develop.1",licensingDocsUrl:"https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"};exports.packageMetadata=e;
@@ -10,8 +10,8 @@ const e = {
10
10
  productName: "Kendo UI for Vue",
11
11
  productCode: "KENDOUIVUE",
12
12
  productCodes: ["KENDOUIVUE"],
13
- publishDate: 1793274432,
14
- version: "10.2.0-develop.9",
13
+ publishDate: 1794299471,
14
+ version: "11.0.0-develop.1",
15
15
  licensingDocsUrl: "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
16
16
  };
17
17
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-vue-dateinputs",
3
- "version": "10.2.0-develop.9",
3
+ "version": "11.0.0-develop.1",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -25,13 +25,13 @@
25
25
  "sideEffects": false,
26
26
  "peerDependencies": {
27
27
  "@progress/kendo-date-math": "^1.4.0",
28
- "@progress/kendo-licensing": "^1.12.0",
29
- "@progress/kendo-vue-buttons": "10.2.0-develop.9",
30
- "@progress/kendo-vue-common": "10.2.0-develop.9",
31
- "@progress/kendo-vue-intl": "10.2.0-develop.9",
32
- "@progress/kendo-vue-labels": "10.2.0-develop.9",
33
- "@progress/kendo-vue-layout": "10.2.0-develop.9",
34
- "@progress/kendo-vue-popup": "10.2.0-develop.9",
28
+ "@progress/kendo-licensing": "^1.13.0",
29
+ "@progress/kendo-vue-buttons": "11.0.0-develop.1",
30
+ "@progress/kendo-vue-common": "11.0.0-develop.1",
31
+ "@progress/kendo-vue-intl": "11.0.0-develop.1",
32
+ "@progress/kendo-vue-labels": "11.0.0-develop.1",
33
+ "@progress/kendo-vue-layout": "11.0.0-develop.1",
34
+ "@progress/kendo-vue-popup": "11.0.0-develop.1",
35
35
  "@progress/kendo-svg-icons": "^4.9.0 || ^5.0.0",
36
36
  "vue": "^3.0.2"
37
37
  },
@@ -49,10 +49,39 @@
49
49
  "@progress": {
50
50
  "friendlyName": "Dateinputs",
51
51
  "framework": "Kendo UI for Vue",
52
+ "migrations": {
53
+ "options": {
54
+ "parser": "tsx",
55
+ "pattern": "*.{js,jsx,ts,tsx,vue,json,css,scss,sass,less}"
56
+ },
57
+ "codemods": {
58
+ "8": [
59
+ {
60
+ "description": "Removes literal null values of the size, rounded and fillMode props of the DateInput, DatePicker, DateRangePicker, DateTimePicker and TimePicker, whose default values were removed.",
61
+ "file": "codemods/v8/dateinputs-appearance-null-props",
62
+ "prompt": false
63
+ },
64
+ {
65
+ "description": "Flags files affected by the removed default size, rounded and fillMode values of the DateInput, DatePicker, DateRangePicker, DateTimePicker and TimePicker and the classes they produced.",
66
+ "file": "codemods/v8/dateinputs-default-appearance-rendering-changes",
67
+ "prompt": false,
68
+ "instructionsOnly": true
69
+ }
70
+ ],
71
+ "9": [
72
+ {
73
+ "description": "Flags files affected by the new DateTimePicker Date/Time switcher markup, the new DateInput spinner icons and the conditional aria-controls.",
74
+ "file": "codemods/v9/dateinputs-rendering-changes",
75
+ "prompt": false,
76
+ "instructionsOnly": true
77
+ }
78
+ ]
79
+ }
80
+ },
52
81
  "package": {
53
82
  "productName": "Kendo UI for Vue",
54
83
  "productCode": "KENDOUIVUE",
55
- "publishDate": 1793274432,
84
+ "publishDate": 1794299471,
56
85
  "licensingDocsUrl": "https://www.telerik.com/kendo-vue-ui/my-license/?utm_medium=product&utm_source=kendovue&utm_campaign=kendo-ui-vue-purchase-license-keys-warning"
57
86
  }
58
87
  },
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),U=require("@progress/kendo-vue-labels"),H=require("@progress/kendo-vue-popup"),k=require("@progress/kendo-date-math"),t=require("@progress/kendo-vue-common"),G=require("@progress/kendo-vue-intl"),X=require("@progress/kendo-vue-buttons"),s=require("../messages/main.js"),J=require("../dateinput/DateInput.js"),Q=require("./TimeSelector.js"),u=require("../utils.js"),S=require("./utils.js"),W=require("../dateinput/utils.js"),Y=require("@progress/kendo-svg-icons");function v(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Z=n.defineComponent({name:"KendoTimePicker",emits:{changemodel:e=>!0,"update:modelValue":e=>!0,iconclick:e=>!0,change:e=>!0,focus:e=>!0,blur:e=>!0,keydown:e=>!0,open:e=>!0,close:e=>!0},model:{event:"changemodel"},props:{cancelButton:{type:Boolean,default:!0},nowButton:{type:Boolean,default:void 0},defaultShow:{type:Boolean,default:!1},modelValue:{type:Date,default:void 0},defaultValue:{type:Date,default:function(){return null}},dateInput:{type:[String,Object,Function],default:function(){}},popup:{type:[String,Object,Function],default:function(){}},disabled:{type:Boolean,default:!1},format:{type:[String,Object],default:function(){return"t"}},formatPlaceholder:{type:[String,Object],default:function(){return W.defaultFormatPlaceholder}},rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,validator:function(e){return["none","small","medium","large"].includes(e)}},id:String,ariaLabelledBy:String,ariaDescribedBy:String,min:{type:Date,default:function(){return u.MIN_TIME}},max:{type:Date,default:function(){return u.MAX_TIME}},name:String,label:String,placeholder:String,popupSettings:{type:Object,default:function(){return{}}},show:{type:Boolean,default:void 0},tabIndex:{type:Number,default:0},steps:{type:Object,default:function(){return{}}},smoothScroll:{type:Boolean,default:!0},title:{type:String,default:function(){return""}},value:{type:Date,default:function(){}},width:[Number,String],validationMessage:String,required:{type:Boolean,default:!1},validityStyles:{type:Boolean,default:!0},validate:Boolean,valid:{type:Boolean,default:void 0},inputAttributes:Object},created(){this._anchor=t.guid(),this._popupId="popup"+t.guid(),this._element=null,this._wrapper=null,this._dateInput=null,this._timeSelector=null,this.shouldFocusDateInput=!1,this.currentValue=this.$props.defaultValue,this.currentShow=this.$props.defaultShow},inject:{kendoLocalizationService:{default:null}},data(){return{currentValue:null,currentShow:!1,valueDuringOnChange:void 0,showDuringOnChange:void 0,isFocused:!1}},computed:{timeSelector(){return this._timeSelector},computedValue(){const e=this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.$props.value!==void 0?this.$props.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.$data.currentValue;return e!==null?k.cloneDate(e):null},computedShow(){return this.showDuringOnChange!==void 0?this.showDuringOnChange:this.$props.show!==void 0?this.$props.show:this.currentShow}},watch:{show:function(e,i){this._oldShow=i},currentShow:function(e,i){this._oldShow=i}},mounted(){this.computedShow&&this.$forceUpdate(),this._dateInput=this.dateInputRef,this._timeSelector=this.$refs.timeSelector,this._wrapper=this.kendoAnchorRef,this._dateInput&&this._dateInput.element()&&this._dateInput.element().setAttribute("aria-haspopup","dialog")},updated(){this._dateInput=this.dateInputRef,this._timeSelector=this.$refs.timeSelector,this._wrapper=this.kendoAnchorRef,this._timeSelector&&this.computedShow&&!this._oldShow?this._timeSelector.focusActiveList():this._dateInput&&this._dateInput.element()&&!this.computedShow&&this.shouldFocusDateInput&&this._dateInput.element().focus({preventScroll:!0}),this.shouldFocusDateInput=!1},setup(){const e=n.ref(null),i=n.inject("kendoLocalizationService",{});return{kendoAnchorRef:e,kendoLocalizationService:i}},render(){const e=t.getDefaultSlots(this),{disabled:i,tabIndex:o,title:h,id:a,placeholder:c,format:l,formatPlaceholder:V,smoothScroll:$,width:w,name:_,steps:I,cancelButton:D,nowButton:T,validationMessage:B,required:C,validityStyles:M,ariaLabelledBy:ee,ariaDescribedBy:te,size:p,rounded:m,fillMode:y,inputAttributes:F}=this.$props,{popupClass:O,appendTo:R,animate:q}=this.$props.popupSettings,f=!this.$props.validityStyles||this.validity().valid;t.classNames("k-picker-wrap",{"k-invalid":!f,"k-disabled":i,"k-focus":this.isFocused});const z=t.classNames("k-group k-reset",O),b=G.provideLocalizationService(this),j=b.toLanguageString(s.toggleClock,s.messages[s.toggleClock]),x=b.toLanguageString(s.toggleTimeSelector,s.messages[s.toggleTimeSelector]),A=this.$props.dateInput?t.templateRendering.call(this,this.$props.dateInput,t.getListeners.call(this)):void 0,N=n.createVNode(J.DateInput,{ref:g=>{this.dateInputRef=g},placeholder:c,disabled:i,format:l,formatPlaceholder:V,id:a,size:null,rounded:null,fillMode:null,max:this.normalizeTime(this.$props.max),min:this.normalizeTime(this.$props.min),name:_,onChange:this.handleInputValueChange,required:C,steps:I,tabIndex:this.computedShow?-1:o,title:h,valid:this.validity().valid,validationMessage:B,validityStyles:M,value:this.computedValue&&this.normalizeTime(this.computedValue),ariaHasPopup:"grid",ariaExpanded:this.computedShow,ariaRole:"combobox",ariaControls:this._popupId,inputAttributes:F},v(e)?e:{default:()=>[e]}),r=n.createVNode(Q.TimeSelector,{ref:"timeSelector",cancelButton:D,disabled:i,nowButton:T,format:l,min:this.$props.min,max:this.$props.max,steps:I,smoothScroll:$,value:this.computedValue,onChange:this.handleValueChange,onReject:this.handleValueReject,onFocus:this.timeFocus,onBlur:this.timeBlur,onKeydown:this.handleKeyDown},null),P=t.getTemplate.call(this,{h:n.h,template:A,defaultRendering:N,additionalListeners:{change:this.handleInputValueChange}}),L=this.$props.popup?t.templateRendering.call(this,this.$props.popup,t.getListeners.call(this)):void 0,K=n.createVNode(H.Popup,{show:this.computedShow,anchor:this._anchor,class:z,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},appendTo:R,animate:q},v(r)?r:{default:()=>[r]}),E=t.getTemplate.call(this,{h:n.h,template:L,defaultRendering:K,defaultSlots:r}),d=n.createVNode("div",{class:t.classNames("k-input","k-timepicker",{[`k-input-${t.kendoThemeMaps.sizeMap[p]||p}`]:p,[`k-input-${y}`]:y,[`k-rounded-${t.kendoThemeMaps.roundedMap[m]||m}`]:m,"k-invalid":!f,"k-required":this.required,"k-disabled":this.$props.disabled,"k-focus":this.isFocused}),onKeydown:this.handleKeyDown,style:{width:w},onFocusin:this.handleFocus,onFocusout:this.handleBlur,ref:g=>{this.kendoAnchorRef=g}},[P,n.createVNode(X.Button,{type:"button",tabIndex:-1,icon:"clock",svgIcon:Y.clockIcon,onMousedown:this.handleIconMouseDown,onClick:this.handleIconClick,title:x,rounded:null,disabled:i,class:"k-input-button","aria-controls":this._popupId,"aria-label":j},null),E]);return this.$props.label?n.createVNode(U.FloatingLabel,{label:this.$props.label,editorId:a,editorValid:f,editorValue:this.getDateInputText(),editorPlaceholder:this.$props.placeholder,editorDisabled:this.$props.disabled,style:{width:w}},v(d)?d:{default:()=>[d]}):d},methods:{validity(){const e=this.computedValue&&this.normalizeTime(this.computedValue),i=this.normalizeTime(this.$props.min),o=this.normalizeTime(this.$props.max),h=S.isInRange(e,i,o),a=this.$props.validationMessage!==void 0,c=(!this.$props.required||this.computedValue!==null)&&h,l=this.$props.valid!==void 0?this.$props.valid:c;return{customError:a,rangeOverflow:S.isBiggerThanMax(e,o),rangeUnderflow:S.isSmallerThanMin(e,i),valid:l,valueMissing:this.computedValue===null}},getDateInputText(){return this.computedValue?!0:this._dateInput?this._dateInput._element.value:""},focus(){this._dateInput&&this._dateInput.focus()},normalizeTime(e){return u.setTime(u.MIDNIGHT_DATE,e)},setShow(e){this.computedShow!==e&&(this.currentShow=e,this.$emit(e?"open":"close",{component:this}))},mergeTime(e){return this.computedValue&&e?u.setTime(this.computedValue,e):e},handleInputValueChange(e){const i=this.mergeTime(e.value);this.handleValueChange({...e,value:i})},handleValueChange(e){this.currentValue=k.cloneDate(e.value),this.valueDuringOnChange=e.value,this.showDuringOnChange=!1,this.shouldFocusDateInput=!0,this.$emit("changemodel",this.computedValue),this.$emit("update:modelValue",this.computedValue),this.$emit("change",{event:e.event,value:this.computedValue,show:this.computedShow,component:this,target:{name:this.$props.name,value:this.computedValue,valueAsDate:this.computedValue}}),this.valueDuringOnChange=void 0,this.showDuringOnChange=void 0,this.setShow(!1)},handleFocus(e){this._oldShow=this.computedShow,this.isFocused=!0,this.$emit("focus",{event:e})},handleBlur(e){this.createBlurTimeout(),this.$emit("blur",{event:e})},timeBlur(e){this.$emit("blur",{event:e}),clearTimeout(this._blurTimeout),this.createBlurTimeout()},timeFocus(){clearTimeout(this._blurTimeout)},createBlurTimeout(){this._blurTimeout=setTimeout(()=>{this.isFocused=!1;const e=document.activeElement&&document.activeElement.closest(`#${this._popupId}`);this._dateInput&&t.canUseDOM&&document.activeElement!==this._dateInput.element()&&!e&&this.setShow(!1)},200)},handleValueReject(e){this.setShow(!1)},handleIconClick(e){this.$props.disabled||(this.shouldFocusDateInput=!0,this.setShow(!this.computedShow),this.$emit("iconclick",e))},handleIconMouseDown(e){e.preventDefault()},handleKeyDown(e){const{altKey:i,keyCode:o}=e;if(o===t.Keys.tab&&this._dateInput&&e.target!==this._dateInput._element){e.preventDefault(),this.shouldFocusDateInput=!0,this.setShow(!1);return}if(o===t.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}i&&(o===t.Keys.up||o===t.Keys.down)&&(e.preventDefault(),e.stopPropagation(),this.shouldFocusDateInput=o===t.Keys.up,this.setShow(o===t.Keys.down)),this.$emit("keydown",e)}}});exports.TimePicker=Z;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),U=require("@progress/kendo-vue-labels"),H=require("@progress/kendo-vue-popup"),$=require("@progress/kendo-date-math"),t=require("@progress/kendo-vue-common"),G=require("@progress/kendo-vue-intl"),X=require("@progress/kendo-vue-buttons"),s=require("../messages/main.js"),J=require("../dateinput/DateInput.js"),Q=require("./TimeSelector.js"),a=require("../utils.js"),S=require("./utils.js"),W=require("../dateinput/utils.js"),Y=require("@progress/kendo-svg-icons");function v(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!n.isVNode(e)}const Z=n.defineComponent({name:"KendoTimePicker",emits:{changemodel:e=>!0,"update:modelValue":e=>!0,iconclick:e=>!0,change:e=>!0,focus:e=>!0,blur:e=>!0,keydown:e=>!0,open:e=>!0,close:e=>!0},model:{event:"changemodel"},props:{cancelButton:{type:Boolean,default:!0},nowButton:{type:Boolean,default:void 0},defaultShow:{type:Boolean,default:!1},modelValue:{type:Date,default:void 0},defaultValue:{type:Date,default:function(){return null}},dateInput:{type:[String,Object,Function],default:function(){}},popup:{type:[String,Object,Function],default:function(){}},disabled:{type:Boolean,default:!1},format:{type:[String,Object],default:function(){return"t"}},formatPlaceholder:{type:[String,Object],default:function(){return W.defaultFormatPlaceholder}},rounded:{type:String,validator:function(e){return["none","small","medium","large","full"].includes(e)}},fillMode:{type:String,validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,validator:function(e){return["none","small","medium","large"].includes(e)}},id:String,ariaLabelledBy:String,ariaDescribedBy:String,min:{type:Date,default:function(){return a.MIN_TIME}},max:{type:Date,default:function(){return a.MAX_TIME}},name:String,label:String,placeholder:String,popupSettings:{type:Object,default:function(){return{}}},show:{type:Boolean,default:void 0},tabIndex:{type:Number,default:0},steps:{type:Object,default:function(){return{}}},smoothScroll:{type:Boolean,default:!0},title:{type:String,default:function(){return""}},value:{type:Date,default:function(){}},width:[Number,String],validationMessage:String,required:{type:Boolean,default:!1},validityStyles:{type:Boolean,default:!0},validate:Boolean,valid:{type:Boolean,default:void 0},inputAttributes:Object},created(){this._anchor=t.guid(),this._popupId="popup"+t.guid(),this._element=null,this._wrapper=null,this._dateInput=null,this._timeSelector=null,this.shouldFocusDateInput=!1,this.currentValue=this.$props.defaultValue,this.currentShow=this.$props.defaultShow},inject:{kendoLocalizationService:{default:null}},data(){return{currentValue:null,currentShow:!1,valueDuringOnChange:void 0,showDuringOnChange:void 0,isFocused:!1}},computed:{timeSelector(){return this._timeSelector},computedValue(){const e=this.valueDuringOnChange!==void 0?this.valueDuringOnChange:this.$props.value!==void 0?this.$props.value:this.$props.modelValue!==void 0?this.$props.modelValue:this.$data.currentValue;return e!==null?$.cloneDate(e):null},computedShow(){return this.showDuringOnChange!==void 0?this.showDuringOnChange:this.$props.show!==void 0?this.$props.show:this.currentShow}},watch:{show:function(e,i){this._oldShow=i},currentShow:function(e,i){this._oldShow=i}},mounted(){this.computedShow&&this.$forceUpdate(),this._dateInput=this.dateInputRef,this._timeSelector=this.$refs.timeSelector,this._wrapper=this.kendoAnchorRef,this._dateInput&&this._dateInput.element()&&this._dateInput.element().setAttribute("aria-haspopup","dialog")},updated(){this._dateInput=this.dateInputRef,this._timeSelector=this.$refs.timeSelector,this._wrapper=this.kendoAnchorRef,this._timeSelector&&this.computedShow&&!this._oldShow?this._timeSelector.focusActiveList():this._dateInput&&this._dateInput.element()&&!this.computedShow&&this.shouldFocusDateInput&&this._dateInput.element().focus({preventScroll:!0}),this.shouldFocusDateInput=!1},setup(){const e=n.ref(null),i=n.inject("kendoLocalizationService",{});return{kendoAnchorRef:e,kendoLocalizationService:i}},render(){const e=t.getDefaultSlots(this),{disabled:i,tabIndex:o,title:h,id:u,placeholder:c,format:l,formatPlaceholder:k,smoothScroll:V,width:w,name:_,steps:I,cancelButton:D,nowButton:T,validationMessage:B,required:C,validityStyles:M,ariaLabelledBy:ee,ariaDescribedBy:te,size:p,rounded:m,fillMode:y,inputAttributes:F}=this.$props,{popupClass:O,appendTo:R,animate:q}=this.$props.popupSettings,f=!this.$props.validityStyles||this.validity().valid;t.classNames("k-picker-wrap",{"k-invalid":!f,"k-disabled":i,"k-focus":this.isFocused});const z=t.classNames("k-group k-reset",O),b=G.provideLocalizationService(this),j=b.toLanguageString(s.toggleClock,s.messages[s.toggleClock]),x=b.toLanguageString(s.toggleTimeSelector,s.messages[s.toggleTimeSelector]),A=this.$props.dateInput?t.templateRendering.call(this,this.$props.dateInput,t.getListeners.call(this)):void 0,L=n.createVNode(J.DateInput,{ref:g=>{this.dateInputRef=g},placeholder:c,disabled:i,format:l,formatPlaceholder:k,id:u,size:null,rounded:null,fillMode:null,ariaLabel:this.$attrs["aria-label"],max:this.normalizeTime(this.$props.max),min:this.normalizeTime(this.$props.min),name:_,onChange:this.handleInputValueChange,required:C,steps:I,tabIndex:this.computedShow?-1:o,title:h,valid:this.validity().valid,validationMessage:B,validityStyles:M,value:this.computedValue&&this.normalizeTime(this.computedValue),ariaHasPopup:"grid",ariaExpanded:this.computedShow,ariaRole:"combobox",ariaControls:this._popupId,inputAttributes:F},v(e)?e:{default:()=>[e]}),r=n.createVNode(Q.TimeSelector,{ref:"timeSelector",cancelButton:D,disabled:i,nowButton:T,format:l,min:this.$props.min,max:this.$props.max,steps:I,smoothScroll:V,value:this.computedValue,onChange:this.handleValueChange,onReject:this.handleValueReject,onFocus:this.timeFocus,onBlur:this.timeBlur,onKeydown:this.handleKeyDown},null),N=t.getTemplate.call(this,{h:n.h,template:A,defaultRendering:L,additionalListeners:{change:this.handleInputValueChange}}),P=this.$props.popup?t.templateRendering.call(this,this.$props.popup,t.getListeners.call(this)):void 0,K=n.createVNode(H.Popup,{show:this.computedShow,anchor:this._anchor,class:z,id:this._popupId,anchorAlign:{horizontal:"left",vertical:"bottom"},popupAlign:{horizontal:"left",vertical:"top"},appendTo:R,animate:q},v(r)?r:{default:()=>[r]}),E=t.getTemplate.call(this,{h:n.h,template:P,defaultRendering:K,defaultSlots:r}),d=n.createVNode("div",{class:t.classNames("k-input","k-timepicker",{[`k-input-${t.kendoThemeMaps.sizeMap[p]||p}`]:p,[`k-input-${y}`]:y,[`k-rounded-${t.kendoThemeMaps.roundedMap[m]||m}`]:m,"k-invalid":!f,"k-required":this.required,"k-disabled":this.$props.disabled,"k-focus":this.isFocused}),onKeydown:this.handleKeyDown,style:{width:w},onFocusin:this.handleFocus,onFocusout:this.handleBlur,ref:g=>{this.kendoAnchorRef=g}},[N,n.createVNode(X.Button,{type:"button",tabIndex:-1,icon:"clock",svgIcon:Y.clockIcon,onMousedown:this.handleIconMouseDown,onClick:this.handleIconClick,title:x,rounded:null,disabled:i,class:"k-input-button","aria-controls":this._popupId,"aria-label":j},null),E]);return this.$props.label?n.createVNode(U.FloatingLabel,{label:this.$props.label,editorId:u,editorValid:f,editorValue:this.getDateInputText(),editorPlaceholder:this.$props.placeholder,editorDisabled:this.$props.disabled,style:{width:w}},v(d)?d:{default:()=>[d]}):d},methods:{validity(){const e=this.computedValue&&this.normalizeTime(this.computedValue),i=this.normalizeTime(this.$props.min),o=this.normalizeTime(this.$props.max),h=S.isInRange(e,i,o),u=this.$props.validationMessage!==void 0,c=(!this.$props.required||this.computedValue!==null)&&h,l=this.$props.valid!==void 0?this.$props.valid:c;return{customError:u,rangeOverflow:S.isBiggerThanMax(e,o),rangeUnderflow:S.isSmallerThanMin(e,i),valid:l,valueMissing:this.computedValue===null}},getDateInputText(){return this.computedValue?!0:this._dateInput?this._dateInput._element.value:""},focus(){this._dateInput&&this._dateInput.focus()},normalizeTime(e){return a.setTime(a.MIDNIGHT_DATE,e)},setShow(e){this.computedShow!==e&&(this.currentShow=e,this.$emit(e?"open":"close",{component:this}))},mergeTime(e){return this.computedValue&&e?a.setTime(this.computedValue,e):e},handleInputValueChange(e){const i=this.mergeTime(e.value);this.handleValueChange({...e,value:i})},handleValueChange(e){this.currentValue=$.cloneDate(e.value),this.valueDuringOnChange=e.value,this.showDuringOnChange=!1,this.shouldFocusDateInput=!0,this.$emit("changemodel",this.computedValue),this.$emit("update:modelValue",this.computedValue),this.$emit("change",{event:e.event,value:this.computedValue,show:this.computedShow,component:this,target:{name:this.$props.name,value:this.computedValue,valueAsDate:this.computedValue}}),this.valueDuringOnChange=void 0,this.showDuringOnChange=void 0,this.setShow(!1)},handleFocus(e){this._oldShow=this.computedShow,this.isFocused=!0,this.$emit("focus",{event:e})},handleBlur(e){this.createBlurTimeout(),this.$emit("blur",{event:e})},timeBlur(e){this.$emit("blur",{event:e}),clearTimeout(this._blurTimeout),this.createBlurTimeout()},timeFocus(){clearTimeout(this._blurTimeout)},createBlurTimeout(){this._blurTimeout=setTimeout(()=>{this.isFocused=!1;const e=document.activeElement&&document.activeElement.closest(`#${this._popupId}`);this._dateInput&&t.canUseDOM&&document.activeElement!==this._dateInput.element()&&!e&&this.setShow(!1)},200)},handleValueReject(e){this.setShow(!1)},handleIconClick(e){this.$props.disabled||(this.shouldFocusDateInput=!0,this.setShow(!this.computedShow),this.$emit("iconclick",e))},handleIconMouseDown(e){e.preventDefault()},handleKeyDown(e){const{altKey:i,keyCode:o}=e;if(o===t.Keys.tab&&this._dateInput&&e.target!==this._dateInput._element){e.preventDefault(),this.shouldFocusDateInput=!0,this.setShow(!1);return}if(o===t.Keys.esc){this.shouldFocusDateInput=!0,this.setShow(!1);return}i&&(o===t.Keys.up||o===t.Keys.down)&&(e.preventDefault(),e.stopPropagation(),this.shouldFocusDateInput=o===t.Keys.up,this.setShow(o===t.Keys.down)),this.$emit("keydown",e)}}});exports.TimePicker=Z;
@@ -5,13 +5,13 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as Z, createVNode as n, h as y, ref as ee, inject as te, isVNode as ie } from "vue";
8
+ import { defineComponent as Z, createVNode as n, h as b, ref as ee, inject as te, isVNode as ie } from "vue";
9
9
  import { FloatingLabel as ne } from "@progress/kendo-vue-labels";
10
10
  import { Popup as oe } from "@progress/kendo-vue-popup";
11
- import { cloneDate as b } from "@progress/kendo-date-math";
12
- import { Keys as o, canUseDOM as se, getDefaultSlots as ae, classNames as f, templateRendering as _, getListeners as $, getTemplate as D, kendoThemeMaps as k, guid as V } from "@progress/kendo-vue-common";
13
- import { provideLocalizationService as ue } from "@progress/kendo-vue-intl";
14
- import { Button as le } from "@progress/kendo-vue-buttons";
11
+ import { cloneDate as y } from "@progress/kendo-date-math";
12
+ import { Keys as o, canUseDOM as ae, getDefaultSlots as se, classNames as f, templateRendering as _, getListeners as $, getTemplate as D, kendoThemeMaps as k, guid as V } from "@progress/kendo-vue-common";
13
+ import { provideLocalizationService as le } from "@progress/kendo-vue-intl";
14
+ import { Button as ue } from "@progress/kendo-vue-buttons";
15
15
  import { toggleClock as T, messages as B, toggleTimeSelector as C } from "../messages/main.mjs";
16
16
  import { DateInput as re } from "../dateinput/DateInput.mjs";
17
17
  import { TimeSelector as de } from "./TimeSelector.mjs";
@@ -198,7 +198,7 @@ const ze = /* @__PURE__ */ Z({
198
198
  },
199
199
  computedValue() {
200
200
  const e = this.valueDuringOnChange !== void 0 ? this.valueDuringOnChange : this.$props.value !== void 0 ? this.$props.value : this.$props.modelValue !== void 0 ? this.$props.modelValue : this.$data.currentValue;
201
- return e !== null ? b(e) : null;
201
+ return e !== null ? y(e) : null;
202
202
  },
203
203
  computedShow() {
204
204
  return this.showDuringOnChange !== void 0 ? this.showDuringOnChange : this.$props.show !== void 0 ? this.$props.show : this.currentShow;
@@ -228,13 +228,13 @@ const ze = /* @__PURE__ */ Z({
228
228
  };
229
229
  },
230
230
  render() {
231
- const e = ae(this), {
231
+ const e = se(this), {
232
232
  disabled: t,
233
233
  tabIndex: i,
234
234
  title: r,
235
- id: s,
235
+ id: a,
236
236
  placeholder: d,
237
- format: a,
237
+ format: s,
238
238
  formatPlaceholder: M,
239
239
  smoothScroll: O,
240
240
  width: S,
@@ -261,18 +261,19 @@ const ze = /* @__PURE__ */ Z({
261
261
  "k-disabled": t,
262
262
  "k-focus": this.isFocused
263
263
  });
264
- const q = f("k-group k-reset", E), I = ue(this), U = I.toLanguageString(T, B[T]), H = I.toLanguageString(C, B[C]), G = this.$props.dateInput ? _.call(this, this.$props.dateInput, $.call(this)) : void 0, X = n(re, {
264
+ const q = f("k-group k-reset", E), I = le(this), U = I.toLanguageString(T, B[T]), H = I.toLanguageString(C, B[C]), G = this.$props.dateInput ? _.call(this, this.$props.dateInput, $.call(this)) : void 0, X = n(re, {
265
265
  ref: (m) => {
266
266
  this.dateInputRef = m;
267
267
  },
268
268
  placeholder: d,
269
269
  disabled: t,
270
- format: a,
270
+ format: s,
271
271
  formatPlaceholder: M,
272
- id: s,
272
+ id: a,
273
273
  size: null,
274
274
  rounded: null,
275
275
  fillMode: null,
276
+ ariaLabel: this.$attrs["aria-label"],
276
277
  max: this.normalizeTime(this.$props.max),
277
278
  min: this.normalizeTime(this.$props.min),
278
279
  name: R,
@@ -292,12 +293,12 @@ const ze = /* @__PURE__ */ Z({
292
293
  inputAttributes: P
293
294
  }, g(e) ? e : {
294
295
  default: () => [e]
295
- }), u = n(de, {
296
+ }), l = n(de, {
296
297
  ref: "timeSelector",
297
298
  cancelButton: z,
298
299
  disabled: t,
299
300
  nowButton: x,
300
- format: a,
301
+ format: s,
301
302
  min: this.$props.min,
302
303
  max: this.$props.max,
303
304
  steps: v,
@@ -309,7 +310,7 @@ const ze = /* @__PURE__ */ Z({
309
310
  onBlur: this.timeBlur,
310
311
  onKeydown: this.handleKeyDown
311
312
  }, null), J = D.call(this, {
312
- h: y,
313
+ h: b,
313
314
  template: G,
314
315
  defaultRendering: X,
315
316
  additionalListeners: {
@@ -330,14 +331,14 @@ const ze = /* @__PURE__ */ Z({
330
331
  },
331
332
  appendTo: K,
332
333
  animate: N
333
- }, g(u) ? u : {
334
- default: () => [u]
334
+ }, g(l) ? l : {
335
+ default: () => [l]
335
336
  }), Y = D.call(this, {
336
- h: y,
337
+ h: b,
337
338
  template: Q,
338
339
  defaultRendering: W,
339
- defaultSlots: u
340
- }), l = n("div", {
340
+ defaultSlots: l
341
+ }), u = n("div", {
341
342
  class: f("k-input", "k-timepicker", {
342
343
  [`k-input-${k.sizeMap[h] || h}`]: h,
343
344
  [`k-input-${w}`]: w,
@@ -356,7 +357,7 @@ const ze = /* @__PURE__ */ Z({
356
357
  ref: (m) => {
357
358
  this.kendoAnchorRef = m;
358
359
  }
359
- }, [J, n(le, {
360
+ }, [J, n(ue, {
360
361
  type: "button",
361
362
  tabIndex: -1,
362
363
  icon: "clock",
@@ -372,7 +373,7 @@ const ze = /* @__PURE__ */ Z({
372
373
  }, null), Y]);
373
374
  return this.$props.label ? n(ne, {
374
375
  label: this.$props.label,
375
- editorId: s,
376
+ editorId: a,
376
377
  editorValid: c,
377
378
  editorValue: this.getDateInputText(),
378
379
  editorPlaceholder: this.$props.placeholder,
@@ -380,18 +381,18 @@ const ze = /* @__PURE__ */ Z({
380
381
  style: {
381
382
  width: S
382
383
  }
383
- }, g(l) ? l : {
384
- default: () => [l]
385
- }) : l;
384
+ }, g(u) ? u : {
385
+ default: () => [u]
386
+ }) : u;
386
387
  },
387
388
  methods: {
388
389
  validity() {
389
- const e = this.computedValue && this.normalizeTime(this.computedValue), t = this.normalizeTime(this.$props.min), i = this.normalizeTime(this.$props.max), r = me(e, t, i), s = this.$props.validationMessage !== void 0, d = (!this.$props.required || this.computedValue !== null) && r, a = this.$props.valid !== void 0 ? this.$props.valid : d;
390
+ const e = this.computedValue && this.normalizeTime(this.computedValue), t = this.normalizeTime(this.$props.min), i = this.normalizeTime(this.$props.max), r = me(e, t, i), a = this.$props.validationMessage !== void 0, d = (!this.$props.required || this.computedValue !== null) && r, s = this.$props.valid !== void 0 ? this.$props.valid : d;
390
391
  return {
391
- customError: s,
392
+ customError: a,
392
393
  rangeOverflow: ge(e, i),
393
394
  rangeUnderflow: fe(e, t),
394
- valid: a,
395
+ valid: s,
395
396
  valueMissing: this.computedValue === null
396
397
  };
397
398
  },
@@ -420,7 +421,7 @@ const ze = /* @__PURE__ */ Z({
420
421
  });
421
422
  },
422
423
  handleValueChange(e) {
423
- this.currentValue = b(e.value), this.valueDuringOnChange = e.value, this.showDuringOnChange = !1, this.shouldFocusDateInput = !0, this.$emit("changemodel", this.computedValue), this.$emit("update:modelValue", this.computedValue), this.$emit("change", {
424
+ this.currentValue = y(e.value), this.valueDuringOnChange = e.value, this.showDuringOnChange = !1, this.shouldFocusDateInput = !0, this.$emit("changemodel", this.computedValue), this.$emit("update:modelValue", this.computedValue), this.$emit("change", {
424
425
  event: e.event,
425
426
  value: this.computedValue,
426
427
  show: this.computedShow,
@@ -454,7 +455,7 @@ const ze = /* @__PURE__ */ Z({
454
455
  this._blurTimeout = setTimeout(() => {
455
456
  this.isFocused = !1;
456
457
  const e = document.activeElement && document.activeElement.closest(`#${this._popupId}`);
457
- this._dateInput && se && document.activeElement !== this._dateInput.element() && !e && this.setShow(!1);
458
+ this._dateInput && ae && document.activeElement !== this._dateInput.element() && !e && this.setShow(!1);
458
459
  }, 200);
459
460
  },
460
461
  handleValueReject(e) {
@@ -5,4 +5,4 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@progress/kendo-vue-intl");const i=require("@progress/kendo-date-math"),a=require("./models/TimePart.js"),o=require("../utils.js"),l=e=>(t,n)=>{const r=i.cloneDate(t);return r[e](n),r},g=[{type:a.TIME_PART.hour,getter:e=>e.getHours()},{type:a.TIME_PART.minute,getter:e=>e.getMinutes()},{type:a.TIME_PART.second,getter:e=>e.getSeconds()},{type:a.TIME_PART.millisecond,getter:e=>e.getMilliseconds()}],m=e=>(t,n)=>e(t),M=e=>(t,n)=>e(n),I=e=>e.reduce((t,n)=>(t[n.type]=n.type,t),{}),p=e=>t=>e[t.type]?M(t.getter):m(t.getter),D=e=>t=>e.map(p(I(t))),H=(e,t,n,r)=>s=>{const u=e(s),T=e(n);return r==="hour"?u-(u-T)%t:s.getTime()<=n.getTime()&&u!==0&&u<=T?Math.ceil(u/t)*t:u-u%t},f=e=>(t,n)=>e.map(r=>{const s=Math.floor(t[r.type]);return s?H(r.getter,s,n,r.type):r.getter}),V=D(g),y=f(g),d=e=>(t,n)=>(t.setHours(...e.map(r=>r(t,n))),t),_=e=>t=>{const n=i.cloneDate(t);return n.setHours(...e.map(r=>r(n))),n},h=l("setHours"),A=l("setMinutes"),E=l("setSeconds"),G=()=>new Date,R=(e,t,n=1)=>{const r=[];for(let s=e;s<t;s=s+n)r.push(s);return r},c=(e,t,n)=>({candidateValue:o.setTime(o.MIDNIGHT_DATE,e),maxValue:i.addDays(o.setTime(o.MIDNIGHT_DATE,n),t.getHours()<n.getHours()?0:1),minValue:o.setTime(o.MIDNIGHT_DATE,t)}),S=(e,t,n)=>{if(!e||!t||!n)return e;const{candidateValue:r,minValue:s,maxValue:u}=c(e,t,n);return r<s?o.setTime(e,t):r>u?o.setTime(e,n):e},N=(e,t,n)=>{if(!e||!t||!n)return!0;const{candidateValue:r,minValue:s,maxValue:u}=c(e,t,n);return s<=r&&r<=u},P=(e,t,n)=>{if(e===null)return!0;const{candidateValue:r,minValue:s,maxValue:u}=c(e,t,n);return s<=r&&r<=u},z=(e,t)=>{if(e===null||t===null)return!1;const n=o.setTime(o.MIDNIGHT_DATE,e),r=o.setTime(o.MIDNIGHT_DATE,t);return n.getTime()<r.getHours()},q=(e,t)=>{if(e===null||t===null)return!1;const n=o.setTime(o.MIDNIGHT_DATE,e);return o.setTime(o.MIDNIGHT_DATE,t).getTime()<n.getHours()};exports.generateGetters=V;exports.generateSnappers=y;exports.getNow=G;exports.isBiggerThanMax=q;exports.isInRange=P;exports.isInTimeRange=N;exports.isSmallerThanMin=z;exports.range=R;exports.setHours=h;exports.setMinutes=A;exports.setSeconds=E;exports.snapTime=_;exports.timeInRange=S;exports.valueMerger=d;
8
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@progress/kendo-vue-intl");const i=require("@progress/kendo-date-math"),a=require("./models/TimePart.js"),o=require("../utils.js"),c=e=>(t,n)=>{const r=i.cloneDate(t);return r[e](n),r},m=[{type:a.TIME_PART.hour,getter:e=>e.getHours()},{type:a.TIME_PART.minute,getter:e=>e.getMinutes()},{type:a.TIME_PART.second,getter:e=>e.getSeconds()},{type:a.TIME_PART.millisecond,getter:e=>e.getMilliseconds()}],g=e=>(t,n)=>e(t),M=e=>(t,n)=>e(n),I=e=>e.reduce((t,n)=>(t[n.type]=n.type,t),{}),p=e=>t=>e[t.type]?M(t.getter):g(t.getter),D=e=>t=>e.map(p(I(t))),V=(e,t,n,r)=>s=>{const u=e(s),T=e(n);return r==="hour"?u-(u-T)%t:s.getTime()<=n.getTime()&&u!==0&&u<=T?Math.ceil(u/t)*t:u-u%t},f=e=>(t,n)=>e.map(r=>{const s=Math.floor(t[r.type]);return s?V(r.getter,s,n,r.type):r.getter}),y=D(m),H=f(m),d=e=>(t,n)=>(t.setHours(...e.map(r=>r(t,n))),t),_=e=>t=>{const n=i.cloneDate(t);return n.setHours(...e.map(r=>r(n))),n},h=c("setHours"),A=c("setMinutes"),E=c("setSeconds"),G=()=>new Date,R=(e,t,n=1)=>{const r=[];for(let s=e;s<t;s=s+n)r.push(s);return r},l=(e,t,n)=>{const r=o.setTime(o.MIDNIGHT_DATE,t),s=o.setTime(o.MIDNIGHT_DATE,n);return{candidateValue:o.setTime(o.MIDNIGHT_DATE,e),maxValue:i.addDays(s,r<s?0:1),minValue:r}},S=(e,t,n)=>{if(!e||!t||!n)return e;const{candidateValue:r,minValue:s,maxValue:u}=l(e,t,n);return r<s?o.setTime(e,t):r>u?o.setTime(e,n):e},N=(e,t,n)=>{if(!e||!t||!n)return!0;const{candidateValue:r,minValue:s,maxValue:u}=l(e,t,n);return s<=r&&r<=u},P=(e,t,n)=>{if(e===null)return!0;const{candidateValue:r,minValue:s,maxValue:u}=l(e,t,n);return s<=r&&r<=u},z=(e,t)=>{if(e===null||t===null)return!1;const n=o.setTime(o.MIDNIGHT_DATE,e),r=o.setTime(o.MIDNIGHT_DATE,t);return n.getTime()<r.getHours()},x=(e,t)=>{if(e===null||t===null)return!1;const n=o.setTime(o.MIDNIGHT_DATE,e);return o.setTime(o.MIDNIGHT_DATE,t).getTime()<n.getHours()};exports.generateGetters=y;exports.generateSnappers=H;exports.getNow=G;exports.isBiggerThanMax=x;exports.isInRange=P;exports.isInTimeRange=N;exports.isSmallerThanMin=z;exports.range=R;exports.setHours=h;exports.setMinutes=A;exports.setSeconds=E;exports.snapTime=_;exports.timeInRange=S;exports.valueMerger=d;
@@ -7,75 +7,78 @@
7
7
  */
8
8
  import "@progress/kendo-vue-intl";
9
9
  import { addDays as f, cloneDate as g } from "@progress/kendo-date-math";
10
- import { TIME_PART as l } from "./models/TimePart.mjs";
11
- import { setTime as u, MIDNIGHT_DATE as c } from "../utils.mjs";
12
- const a = (e) => (t, r) => {
13
- const n = g(t);
14
- return n[e](r), n;
15
- }, p = [
16
- { type: l.hour, getter: (e) => e.getHours() },
17
- { type: l.minute, getter: (e) => e.getMinutes() },
18
- { type: l.second, getter: (e) => e.getSeconds() },
19
- { type: l.millisecond, getter: (e) => e.getMilliseconds() }
20
- ], V = (e) => (t, r) => e(t), T = (e) => (t, r) => e(r), M = (e) => e.reduce((t, r) => (t[r.type] = r.type, t), {}), y = (e) => (t) => e[t.type] ? T(t.getter) : V(t.getter), H = (e) => (t) => e.map(y(M(t))), d = (e, t, r, n) => (s) => {
21
- const o = e(s), m = e(r);
22
- return n === "hour" ? o - (o - m) % t : s.getTime() <= r.getTime() && o !== 0 && o <= m ? Math.ceil(o / t) * t : o - o % t;
23
- }, h = (e) => (t, r) => e.map((n) => {
24
- const s = Math.floor(t[n.type]);
25
- return s ? d(n.getter, s, r, n.type) : n.getter;
26
- }), R = H(p), _ = h(p), x = (e) => (t, r) => (t.setHours(...e.map((n) => n(t, r))), t), G = (e) => (t) => {
10
+ import { TIME_PART as c } from "./models/TimePart.mjs";
11
+ import { setTime as u, MIDNIGHT_DATE as a } from "../utils.mjs";
12
+ const l = (e) => (t, n) => {
27
13
  const r = g(t);
28
- return r.setHours(...e.map((n) => n(r))), r;
29
- }, w = a("setHours"), A = a("setMinutes"), B = a("setSeconds"), E = () => /* @__PURE__ */ new Date(), F = (e, t, r = 1) => {
30
- const n = [];
31
- for (let s = e; s < t; s = s + r)
32
- n.push(s);
33
- return n;
34
- }, i = (e, t, r) => ({
35
- candidateValue: u(c, e),
36
- maxValue: f(u(c, r), t.getHours() < r.getHours() ? 0 : 1),
37
- minValue: u(c, t)
38
- }), N = (e, t, r) => {
39
- if (!e || !t || !r)
14
+ return r[e](n), r;
15
+ }, p = [
16
+ { type: c.hour, getter: (e) => e.getHours() },
17
+ { type: c.minute, getter: (e) => e.getMinutes() },
18
+ { type: c.second, getter: (e) => e.getSeconds() },
19
+ { type: c.millisecond, getter: (e) => e.getMilliseconds() }
20
+ ], V = (e) => (t, n) => e(t), T = (e) => (t, n) => e(n), M = (e) => e.reduce((t, n) => (t[n.type] = n.type, t), {}), y = (e) => (t) => e[t.type] ? T(t.getter) : V(t.getter), d = (e) => (t) => e.map(y(M(t))), h = (e, t, n, r) => (s) => {
21
+ const o = e(s), m = e(n);
22
+ return r === "hour" ? o - (o - m) % t : s.getTime() <= n.getTime() && o !== 0 && o <= m ? Math.ceil(o / t) * t : o - o % t;
23
+ }, H = (e) => (t, n) => e.map((r) => {
24
+ const s = Math.floor(t[r.type]);
25
+ return s ? h(r.getter, s, n, r.type) : r.getter;
26
+ }), S = d(p), R = H(p), _ = (e) => (t, n) => (t.setHours(...e.map((r) => r(t, n))), t), G = (e) => (t) => {
27
+ const n = g(t);
28
+ return n.setHours(...e.map((r) => r(n))), n;
29
+ }, w = l("setHours"), A = l("setMinutes"), B = l("setSeconds"), E = () => /* @__PURE__ */ new Date(), F = (e, t, n = 1) => {
30
+ const r = [];
31
+ for (let s = e; s < t; s = s + n)
32
+ r.push(s);
33
+ return r;
34
+ }, i = (e, t, n) => {
35
+ const r = u(a, t), s = u(a, n);
36
+ return {
37
+ candidateValue: u(a, e),
38
+ maxValue: f(s, r < s ? 0 : 1),
39
+ minValue: r
40
+ };
41
+ }, N = (e, t, n) => {
42
+ if (!e || !t || !n)
40
43
  return e;
41
44
  const {
42
- candidateValue: n,
45
+ candidateValue: r,
43
46
  minValue: s,
44
47
  maxValue: o
45
- } = i(e, t, r);
46
- return n < s ? u(e, t) : n > o ? u(e, r) : e;
47
- }, P = (e, t, r) => {
48
- if (!e || !t || !r)
48
+ } = i(e, t, n);
49
+ return r < s ? u(e, t) : r > o ? u(e, n) : e;
50
+ }, P = (e, t, n) => {
51
+ if (!e || !t || !n)
49
52
  return !0;
50
53
  const {
51
- candidateValue: n,
54
+ candidateValue: r,
52
55
  minValue: s,
53
56
  maxValue: o
54
- } = i(e, t, r);
55
- return s <= n && n <= o;
56
- }, v = (e, t, r) => {
57
+ } = i(e, t, n);
58
+ return s <= r && r <= o;
59
+ }, v = (e, t, n) => {
57
60
  if (e === null)
58
61
  return !0;
59
62
  const {
60
- candidateValue: n,
63
+ candidateValue: r,
61
64
  minValue: s,
62
65
  maxValue: o
63
- } = i(e, t, r);
64
- return s <= n && n <= o;
66
+ } = i(e, t, n);
67
+ return s <= r && r <= o;
65
68
  }, O = (e, t) => {
66
69
  if (e === null || t === null)
67
70
  return !1;
68
- const r = u(c, e), n = u(c, t);
69
- return r.getTime() < n.getHours();
71
+ const n = u(a, e), r = u(a, t);
72
+ return n.getTime() < r.getHours();
70
73
  }, b = (e, t) => {
71
74
  if (e === null || t === null)
72
75
  return !1;
73
- const r = u(c, e);
74
- return u(c, t).getTime() < r.getHours();
76
+ const n = u(a, e);
77
+ return u(a, t).getTime() < n.getHours();
75
78
  };
76
79
  export {
77
- R as generateGetters,
78
- _ as generateSnappers,
80
+ S as generateGetters,
81
+ R as generateSnappers,
79
82
  E as getNow,
80
83
  b as isBiggerThanMax,
81
84
  v as isInRange,
@@ -87,5 +90,5 @@ export {
87
90
  B as setSeconds,
88
91
  G as snapTime,
89
92
  N as timeInRange,
90
- x as valueMerger
93
+ _ as valueMerger
91
94
  };
package/EULA.pdf DELETED
Binary file