@progress/kendo-vue-dateinputs 7.1.0-develop.6 → 7.1.0-develop.7

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/index.d.ts CHANGED
@@ -599,18 +599,15 @@ default: () => DateInputFormatPlaceholder;
599
599
  };
600
600
  rounded: {
601
601
  type: PropType<string>;
602
- default: string;
603
- validator: (value: string) => any;
602
+ validator: (value: string) => boolean;
604
603
  };
605
604
  fillMode: {
606
605
  type: PropType<string>;
607
- default: string;
608
- validator: (value: string) => any;
606
+ validator: (value: string) => boolean;
609
607
  };
610
608
  size: {
611
609
  type: PropType<"small" | "medium" | "large">;
612
- default: string;
613
- validator: (value: string) => any;
610
+ validator: (value: string) => boolean;
614
611
  };
615
612
  tabIndex: PropType<number>;
616
613
  title: PropType<string>;
@@ -733,18 +730,15 @@ default: () => DateInputFormatPlaceholder;
733
730
  };
734
731
  rounded: {
735
732
  type: PropType<string>;
736
- default: string;
737
- validator: (value: string) => any;
733
+ validator: (value: string) => boolean;
738
734
  };
739
735
  fillMode: {
740
736
  type: PropType<string>;
741
- default: string;
742
- validator: (value: string) => any;
737
+ validator: (value: string) => boolean;
743
738
  };
744
739
  size: {
745
740
  type: PropType<"small" | "medium" | "large">;
746
- default: string;
747
- validator: (value: string) => any;
741
+ validator: (value: string) => boolean;
748
742
  };
749
743
  tabIndex: PropType<number>;
750
744
  title: PropType<string>;
@@ -818,10 +812,7 @@ onChangemodel?: (value: Date) => any;
818
812
  "onUpdate:modelValue"?: (value: Date) => any;
819
813
  }>, {
820
814
  required: boolean;
821
- size: "small" | "medium" | "large";
822
- rounded: string;
823
815
  disabled: boolean;
824
- fillMode: string;
825
816
  format: string | object;
826
817
  max: Date;
827
818
  min: Date;
@@ -1157,18 +1148,15 @@ default: () => any;
1157
1148
  };
1158
1149
  rounded: {
1159
1150
  type: PropType<string>;
1160
- default: string;
1161
- validator: (value: string) => any;
1151
+ validator: (value: string) => boolean;
1162
1152
  };
1163
1153
  fillMode: {
1164
1154
  type: PropType<string>;
1165
- default: string;
1166
- validator: (value: string) => any;
1155
+ validator: (value: string) => boolean;
1167
1156
  };
1168
1157
  size: {
1169
1158
  type: PropType<"small" | "medium" | "large">;
1170
- default: string;
1171
- validator: (value: string) => any;
1159
+ validator: (value: string) => boolean;
1172
1160
  };
1173
1161
  focusedDate: PropType<Date>;
1174
1162
  format: {
@@ -1298,18 +1286,15 @@ default: () => any;
1298
1286
  };
1299
1287
  rounded: {
1300
1288
  type: PropType<string>;
1301
- default: string;
1302
- validator: (value: string) => any;
1289
+ validator: (value: string) => boolean;
1303
1290
  };
1304
1291
  fillMode: {
1305
1292
  type: PropType<string>;
1306
- default: string;
1307
- validator: (value: string) => any;
1293
+ validator: (value: string) => boolean;
1308
1294
  };
1309
1295
  size: {
1310
1296
  type: PropType<"small" | "medium" | "large">;
1311
- default: string;
1312
- validator: (value: string) => any;
1297
+ validator: (value: string) => boolean;
1313
1298
  };
1314
1299
  focusedDate: PropType<Date>;
1315
1300
  format: {
@@ -1372,12 +1357,9 @@ onIconclick?: (event: Event) => any;
1372
1357
  }>, {
1373
1358
  title: string;
1374
1359
  tabIndex: number;
1375
- size: "small" | "medium" | "large";
1376
- rounded: string;
1377
1360
  calendar: any;
1378
1361
  popup: any;
1379
1362
  disabled: boolean;
1380
- fillMode: string;
1381
1363
  format: string | object;
1382
1364
  max: Date;
1383
1365
  min: Date;
@@ -1677,18 +1659,15 @@ default: () => Date;
1677
1659
  };
1678
1660
  rounded: {
1679
1661
  type: PropType<string>;
1680
- default: string;
1681
- validator: (value: string) => any;
1662
+ validator: (value: string) => boolean;
1682
1663
  };
1683
1664
  fillMode: {
1684
1665
  type: PropType<string>;
1685
- default: string;
1686
- validator: (value: string) => any;
1666
+ validator: (value: string) => boolean;
1687
1667
  };
1688
1668
  size: {
1689
1669
  type: PropType<"small" | "medium" | "large">;
1690
- default: string;
1691
- validator: (value: string) => any;
1670
+ validator: (value: string) => boolean;
1692
1671
  };
1693
1672
  popupSettings: {
1694
1673
  type: PropType<DateRangePickerPopupSettings_2>;
@@ -1806,18 +1785,15 @@ default: () => Date;
1806
1785
  };
1807
1786
  rounded: {
1808
1787
  type: PropType<string>;
1809
- default: string;
1810
- validator: (value: string) => any;
1788
+ validator: (value: string) => boolean;
1811
1789
  };
1812
1790
  fillMode: {
1813
1791
  type: PropType<string>;
1814
- default: string;
1815
- validator: (value: string) => any;
1792
+ validator: (value: string) => boolean;
1816
1793
  };
1817
1794
  size: {
1818
1795
  type: PropType<"small" | "medium" | "large">;
1819
- default: string;
1820
- validator: (value: string) => any;
1796
+ validator: (value: string) => boolean;
1821
1797
  };
1822
1798
  popupSettings: {
1823
1799
  type: PropType<DateRangePickerPopupSettings_2>;
@@ -1849,10 +1825,7 @@ onChangemodel?: (value: any) => any;
1849
1825
  "onUpdate:modelValue"?: (value: any) => any;
1850
1826
  }>, {
1851
1827
  value: SelectionRange;
1852
- size: "small" | "medium" | "large";
1853
- rounded: string;
1854
1828
  disabled: boolean;
1855
- fillMode: string;
1856
1829
  format: string | object;
1857
1830
  max: Date;
1858
1831
  min: Date;
@@ -2173,18 +2146,15 @@ default: () => DateInputFormatPlaceholder;
2173
2146
  };
2174
2147
  rounded: {
2175
2148
  type: PropType<string>;
2176
- default: string;
2177
- validator: (value: string) => any;
2149
+ validator: (value: string) => boolean;
2178
2150
  };
2179
2151
  fillMode: {
2180
2152
  type: PropType<string>;
2181
- default: string;
2182
- validator: (value: string) => any;
2153
+ validator: (value: string) => boolean;
2183
2154
  };
2184
2155
  size: {
2185
2156
  type: PropType<"small" | "medium" | "large">;
2186
- default: string;
2187
- validator: (value: string) => any;
2157
+ validator: (value: string) => boolean;
2188
2158
  };
2189
2159
  id: PropType<string>;
2190
2160
  ariaLabelledBy: PropType<string>;
@@ -2332,18 +2302,15 @@ default: () => DateInputFormatPlaceholder;
2332
2302
  };
2333
2303
  rounded: {
2334
2304
  type: PropType<string>;
2335
- default: string;
2336
- validator: (value: string) => any;
2305
+ validator: (value: string) => boolean;
2337
2306
  };
2338
2307
  fillMode: {
2339
2308
  type: PropType<string>;
2340
- default: string;
2341
- validator: (value: string) => any;
2309
+ validator: (value: string) => boolean;
2342
2310
  };
2343
2311
  size: {
2344
2312
  type: PropType<"small" | "medium" | "large">;
2345
- default: string;
2346
- validator: (value: string) => any;
2313
+ validator: (value: string) => boolean;
2347
2314
  };
2348
2315
  id: PropType<string>;
2349
2316
  ariaLabelledBy: PropType<string>;
@@ -2426,12 +2393,9 @@ onIconclick?: (event: Event) => any;
2426
2393
  required: boolean;
2427
2394
  title: string;
2428
2395
  tabIndex: number;
2429
- size: "small" | "medium" | "large";
2430
- rounded: string;
2431
2396
  calendar: any;
2432
2397
  popup: any;
2433
2398
  disabled: boolean;
2434
- fillMode: string;
2435
2399
  weekNumber: boolean;
2436
2400
  format: string | object;
2437
2401
  max: Date;
@@ -2836,18 +2800,15 @@ default: () => DateInputFormatPlaceholder;
2836
2800
  };
2837
2801
  rounded: {
2838
2802
  type: PropType<string>;
2839
- default: string;
2840
- validator: (value: string) => any;
2803
+ validator: (value: string) => boolean;
2841
2804
  };
2842
2805
  fillMode: {
2843
2806
  type: PropType<string>;
2844
- default: string;
2845
- validator: (value: string) => any;
2807
+ validator: (value: string) => boolean;
2846
2808
  };
2847
2809
  size: {
2848
2810
  type: PropType<"small" | "medium" | "large">;
2849
- default: string;
2850
- validator: (value: string) => any;
2811
+ validator: (value: string) => boolean;
2851
2812
  };
2852
2813
  id: PropType<string>;
2853
2814
  ariaLabelledBy: PropType<string>;
@@ -2991,18 +2952,15 @@ default: () => DateInputFormatPlaceholder;
2991
2952
  };
2992
2953
  rounded: {
2993
2954
  type: PropType<string>;
2994
- default: string;
2995
- validator: (value: string) => any;
2955
+ validator: (value: string) => boolean;
2996
2956
  };
2997
2957
  fillMode: {
2998
2958
  type: PropType<string>;
2999
- default: string;
3000
- validator: (value: string) => any;
2959
+ validator: (value: string) => boolean;
3001
2960
  };
3002
2961
  size: {
3003
2962
  type: PropType<"small" | "medium" | "large">;
3004
- default: string;
3005
- validator: (value: string) => any;
2963
+ validator: (value: string) => boolean;
3006
2964
  };
3007
2965
  id: PropType<string>;
3008
2966
  ariaLabelledBy: PropType<string>;
@@ -3077,11 +3035,8 @@ required: boolean;
3077
3035
  value: Date;
3078
3036
  title: string;
3079
3037
  tabIndex: number;
3080
- size: "small" | "medium" | "large";
3081
- rounded: string;
3082
3038
  popup: any;
3083
3039
  disabled: boolean;
3084
- fillMode: string;
3085
3040
  format: string | object;
3086
3041
  max: Date;
3087
3042
  min: Date;
@@ -3379,7 +3334,6 @@ default: () => any;
3379
3334
  svgIcon: PropType<SVGIcon>;
3380
3335
  iconSize: {
3381
3336
  type: PropType<string>;
3382
- default: string;
3383
3337
  };
3384
3338
  iconClass: {
3385
3339
  type: PropType<string>;
@@ -3394,25 +3348,10 @@ disabled: {
3394
3348
  type: PropType<boolean>;
3395
3349
  default: any;
3396
3350
  };
3397
- size: {
3398
- type: PropType<"small" | "medium" | "large">;
3399
- default: string;
3400
- };
3401
- shape: {
3402
- type: PropType<string>;
3403
- };
3404
- rounded: {
3405
- type: PropType<string>;
3406
- default: string;
3407
- };
3408
- fillMode: {
3409
- type: PropType<string>;
3410
- default: string;
3411
- };
3412
- themeColor: {
3413
- type: PropType<string>;
3414
- default: string;
3415
- };
3351
+ size: PropType<"small" | "medium" | "large">;
3352
+ rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
3353
+ fillMode: PropType<"flat" | "link" | "solid" | "outline">;
3354
+ themeColor: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
3416
3355
  tabIndex: PropType<number>;
3417
3356
  accessKey: PropType<string>;
3418
3357
  id: PropType<string>;
@@ -3473,7 +3412,6 @@ default: () => any;
3473
3412
  svgIcon: PropType<SVGIcon>;
3474
3413
  iconSize: {
3475
3414
  type: PropType<string>;
3476
- default: string;
3477
3415
  };
3478
3416
  iconClass: {
3479
3417
  type: PropType<string>;
@@ -3488,25 +3426,10 @@ disabled: {
3488
3426
  type: PropType<boolean>;
3489
3427
  default: any;
3490
3428
  };
3491
- size: {
3492
- type: PropType<"small" | "medium" | "large">;
3493
- default: string;
3494
- };
3495
- shape: {
3496
- type: PropType<string>;
3497
- };
3498
- rounded: {
3499
- type: PropType<string>;
3500
- default: string;
3501
- };
3502
- fillMode: {
3503
- type: PropType<string>;
3504
- default: string;
3505
- };
3506
- themeColor: {
3507
- type: PropType<string>;
3508
- default: string;
3509
- };
3429
+ size: PropType<"small" | "medium" | "large">;
3430
+ rounded: PropType<"small" | "medium" | "large" | "full" | "none">;
3431
+ fillMode: PropType<"flat" | "link" | "solid" | "outline">;
3432
+ themeColor: PropType<"base" | "primary" | "secondary" | "tertiary" | "info" | "success" | "warning" | "dark" | "light" | "inverse">;
3510
3433
  tabIndex: PropType<number>;
3511
3434
  accessKey: PropType<string>;
3512
3435
  id: PropType<string>;
@@ -3524,14 +3447,9 @@ onMouseup?: (event: MouseEvent) => any;
3524
3447
  onPointerdown?: (event: PointerEvent) => any;
3525
3448
  onPointerup?: (event: PointerEvent) => any;
3526
3449
  }>, {
3527
- themeColor: string;
3528
- size: "small" | "medium" | "large";
3529
3450
  icon: string;
3530
- rounded: string;
3531
3451
  selected: boolean;
3532
3452
  disabled: boolean;
3533
- fillMode: string;
3534
- iconSize: string;
3535
3453
  togglable: boolean;
3536
3454
  iconClass: string;
3537
3455
  imageUrl: string;
@@ -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: 1769676113,version:"7.1.0-develop.6",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: 1770355247,version:"7.1.0-develop.7",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: 1769676113,
14
- version: "7.1.0-develop.6",
13
+ publishDate: 1770355247,
14
+ version: "7.1.0-develop.7",
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": "7.1.0-develop.6",
3
+ "version": "7.1.0-develop.7",
4
4
  "description": "TODO",
5
5
  "author": "Progress",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -20,12 +20,12 @@
20
20
  "peerDependencies": {
21
21
  "@progress/kendo-date-math": "^1.4.0",
22
22
  "@progress/kendo-licensing": "^1.7.2",
23
- "@progress/kendo-vue-buttons": "7.1.0-develop.6",
24
- "@progress/kendo-vue-common": "7.1.0-develop.6",
25
- "@progress/kendo-vue-intl": "7.1.0-develop.6",
26
- "@progress/kendo-vue-labels": "7.1.0-develop.6",
27
- "@progress/kendo-vue-layout": "7.1.0-develop.6",
28
- "@progress/kendo-vue-popup": "7.1.0-develop.6",
23
+ "@progress/kendo-vue-buttons": "7.1.0-develop.7",
24
+ "@progress/kendo-vue-common": "7.1.0-develop.7",
25
+ "@progress/kendo-vue-intl": "7.1.0-develop.7",
26
+ "@progress/kendo-vue-labels": "7.1.0-develop.7",
27
+ "@progress/kendo-vue-layout": "7.1.0-develop.7",
28
+ "@progress/kendo-vue-popup": "7.1.0-develop.7",
29
29
  "@progress/kendo-svg-icons": "^4.4.0",
30
30
  "vue": "^3.0.2"
31
31
  },
@@ -46,7 +46,7 @@
46
46
  "package": {
47
47
  "productName": "Kendo UI for Vue",
48
48
  "productCode": "KENDOUIVUE",
49
- "publishDate": 1769676113,
49
+ "publishDate": 1770355247,
50
50
  "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"
51
51
  }
52
52
  },
@@ -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,default:"medium",validator:function(e){return["small","medium","large","full"].includes(e)}},fillMode:{type:String,default:"solid",validator:function(e){return["solid","flat","outline"].includes(e)}},size:{type:String,default:"medium",validator:function(e){return["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","true")},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,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"),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","true")},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,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;
@@ -89,23 +89,20 @@ const ze = /* @__PURE__ */ Z({
89
89
  },
90
90
  rounded: {
91
91
  type: String,
92
- default: "medium",
93
92
  validator: function(e) {
94
- return ["small", "medium", "large", "full"].includes(e);
93
+ return ["none", "small", "medium", "large", "full"].includes(e);
95
94
  }
96
95
  },
97
96
  fillMode: {
98
97
  type: String,
99
- default: "solid",
100
98
  validator: function(e) {
101
99
  return ["solid", "flat", "outline"].includes(e);
102
100
  }
103
101
  },
104
102
  size: {
105
103
  type: String,
106
- default: "medium",
107
104
  validator: function(e) {
108
- return ["small", "medium", "large"].includes(e);
105
+ return ["none", "small", "medium", "large"].includes(e);
109
106
  }
110
107
  },
111
108
  id: String,