@progress/kendo-react-dateinputs 9.0.0-develop.4 → 9.0.0-develop.6
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/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +252 -323
- package/dateinput/dateInputIntl.js +8 -0
- package/dateinput/dateInputIntl.mjs +20 -0
- package/dateinput/utils.js +1 -1
- package/dateinput/utils.mjs +4 -27
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/hooks/usePickerFloatingLabel.js +1 -1
- package/hooks/usePickerFloatingLabel.mjs +6 -5
- package/index.d.mts +72 -35
- package/index.d.ts +72 -35
- package/package-metadata.mjs +1 -1
- package/package.json +8 -7
- package/dateinput/models/kendo-date.js +0 -8
- package/dateinput/models/kendo-date.mjs +0 -234
- package/dateinput/models/mask.js +0 -8
- package/dateinput/models/mask.mjs +0 -16
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@progress/kendo-intl");class s{constructor(t){this.service=t,this.cldr={},this.localeId=t.locale,this.format=t.format,this.toString=t.toString,this.formatDate=t.formatDate,this.parseDate=t.parseDate,this.parseNumber=t.parseNumber,this.formatNumber=t.formatNumber,this.splitDateFormat=t.splitDateFormat,this.numberSymbols=t.numberSymbols,this.firstDay=t.firstDay,this.dateFieldName=t.dateFieldName,this.dateFormatNames=(e,o)=>this.service.dateFormatNames(o),this.weekendRange=e=>{};const a=l.localeInfo(this.localeId);this.cldr[a.name]=a}}exports.DateInputIntl=s;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { localeInfo as l } from "@progress/kendo-intl";
|
|
10
|
+
class r {
|
|
11
|
+
constructor(t) {
|
|
12
|
+
this.service = t, this.cldr = {}, this.localeId = t.locale, this.format = t.format, this.toString = t.toString, this.formatDate = t.formatDate, this.parseDate = t.parseDate, this.parseNumber = t.parseNumber, this.formatNumber = t.formatNumber, this.splitDateFormat = t.splitDateFormat, this.numberSymbols = t.numberSymbols, this.firstDay = t.firstDay, this.dateFieldName = t.dateFieldName, this.dateFormatNames = (o, s) => this.service.dateFormatNames(s), this.weekendRange = (o) => {
|
|
13
|
+
};
|
|
14
|
+
const a = l(this.localeId);
|
|
15
|
+
this.cldr[a.name] = a;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
r as DateInputIntl
|
|
20
|
+
};
|
package/dateinput/utils.js
CHANGED
|
@@ -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 client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n="d",s="wide",t=(e,A,T)=>e===null||!(A&&A>e||T&&T<e);exports.DEFAULT_FORMAT=n;exports.DEFAULT_FORMAT_PLACEHOLDER=s;exports.isInRange=t;
|
package/dateinput/utils.mjs
CHANGED
|
@@ -6,32 +6,9 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
const
|
|
10
|
-
const l = e[f + e.length - g.length], p = e.substring(0, f + e.length - g.length), h = g.substring(0, f), b = [];
|
|
11
|
-
if (p === h && f > 0)
|
|
12
|
-
return b.push([n[f - 1], h[f - 1]]), b;
|
|
13
|
-
if (p.indexOf(h) === 0 && (h.length === 0 || n[h.length - 1] !== n[h.length])) {
|
|
14
|
-
let s = "";
|
|
15
|
-
h.length === 1 && b.push([n[0], h[0]]);
|
|
16
|
-
for (let u = h.length; u < p.length; u++)
|
|
17
|
-
n[u] !== s && n[u] !== "_" && (s = n[u], b.push([s, ""]));
|
|
18
|
-
return b;
|
|
19
|
-
}
|
|
20
|
-
if (h.indexOf(p) === 0 || n[f - 1] === "_") {
|
|
21
|
-
let s = n[0];
|
|
22
|
-
for (let u = Math.max(0, p.length - 1); u < n.length; u++)
|
|
23
|
-
if (n[u] !== "_") {
|
|
24
|
-
s = n[u];
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
return [[s, h[f - 1]]];
|
|
28
|
-
}
|
|
29
|
-
return h[h.length - 1] === " " || h[h.length - 1] === l ? [[n[f - 1], "_"]] : [[n[f - 1], h[f - 1]]];
|
|
30
|
-
}, M = (e, n) => (e[n.pattern[0]] = n.type, e), x = (e, n, g) => e === null || !(n && n > e || g && g < e);
|
|
9
|
+
const o = "d", E = "wide", F = (s, A, n) => s === null || !(A && A > s || n && n < s);
|
|
31
10
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
_ as defaultFormatPlaceholder,
|
|
36
|
-
x as isInRange
|
|
11
|
+
o as DEFAULT_FORMAT,
|
|
12
|
+
E as DEFAULT_FORMAT_PLACEHOLDER,
|
|
13
|
+
F as isInRange
|
|
37
14
|
};
|