@progress/kendo-react-dateinputs 9.4.0-develop.9 → 9.4.1-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.
- package/NOTICE.txt +40 -51
- package/calendar/components/CalendarNavigationItem.js +1 -1
- package/calendar/components/CalendarNavigationItem.mjs +24 -16
- package/dateinput/DateInput.js +1 -1
- package/dateinput/DateInput.mjs +69 -67
- package/datepicker/DatePicker.js +1 -1
- package/datepicker/DatePicker.mjs +207 -199
- package/dist/cdn/js/kendo-react-dateinputs.js +1 -1
- package/package-metadata.js +1 -1
- package/package-metadata.mjs +2 -2
- package/package.json +9 -9
package/NOTICE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Progress KendoReact
|
|
1
|
+
Progress KendoReact 9
|
|
2
2
|
|
|
3
|
-
Copyright © 2018-
|
|
3
|
+
Copyright © 2018-2025 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
|
|
4
4
|
|
|
5
5
|
Portions of the Product include certain open source and commercial third-party components listed below (“Third-Party Components”). The authors of the Third-Party Components require Progress Software Corporation (“PSC”) to include the following notices and additional licensing terms as a condition of PSC’s use of such Third-Party Components. You acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-Party Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party Components. Notwithstanding anything to the contrary, to the extent that any of the terms and conditions of the Product Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for these technologies, such terms and conditions are offered by Progress alone and not by any other party.
|
|
6
6
|
|
|
@@ -9,42 +9,41 @@ SUMMARY OF COMPONENTS:
|
|
|
9
9
|
|
|
10
10
|
VendorName | ComponentName | VersionName | LicenseType
|
|
11
11
|
|
|
12
|
-
Axios | Axios |
|
|
13
|
-
|
|
14
|
-
DefinitelyTyped.org | @types/prosemirror-dropcursor | 1.0.1 - Open Source | MIT-style License
|
|
15
|
-
DefinitelyTyped.org | @types/prosemirror-gapcursor | 1.0.2 - Open Source | MIT-style License
|
|
16
|
-
DefinitelyTyped.org | @types/prosemirror-history | 1.0.2 - Open Source | MIT-style License
|
|
17
|
-
DefinitelyTyped.org | @types/prosemirror-inputrules | 1.0.2 - Open Source | MIT-style License
|
|
18
|
-
DefinitelyTyped.org | @types/prosemirror-keymap | 1.0.2 - Open Source | MIT-style License
|
|
19
|
-
DefinitelyTyped.org | @types/prosemirror-model | 1.11.2 - Open Source | MIT-style License
|
|
20
|
-
DefinitelyTyped.org | @types/prosemirror-schema-list | 1.0.2 - Open Source | MIT-style License
|
|
21
|
-
DefinitelyTyped.org | @types/prosemirror-state | 1.2.4 - Open Source | MIT-style License
|
|
22
|
-
DefinitelyTyped.org | @types/prosemirror-tables | 0.9.1 - Open Source | MIT-style License
|
|
23
|
-
DefinitelyTyped.org | @types/prosemirror-transform | 1.2.9 - Open Source | MIT-style License
|
|
24
|
-
DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style License
|
|
25
|
-
Facebook, Inc. | prop-types | 15.6.0 - Open Source | MIT-style License
|
|
12
|
+
Axios | Axios | 1.7.9 - Open Source | MIT-style License
|
|
13
|
+
Facebook, Inc. | prop-types | 15.8.1 - Open Source | MIT-style License
|
|
26
14
|
Facebook, Inc. | react-transition-group | 2.2.0 - Open Source | BSD-style License
|
|
15
|
+
Mozilla Foundation | pdf.js | 2.6.347 - Open Source | Apache Software License Version 2.0
|
|
27
16
|
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
28
17
|
Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
|
|
29
18
|
Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
|
|
30
|
-
ProseMirror | prosemiror-inputrules | 1.0
|
|
31
|
-
ProseMirror | prosemirror-commands | 1.
|
|
32
|
-
ProseMirror | prosemirror-
|
|
33
|
-
ProseMirror | prosemirror-
|
|
34
|
-
ProseMirror | prosemirror-
|
|
35
|
-
ProseMirror | prosemirror-
|
|
36
|
-
ProseMirror | prosemirror-
|
|
37
|
-
ProseMirror | prosemirror-
|
|
38
|
-
ProseMirror | prosemirror-
|
|
39
|
-
ProseMirror | prosemirror-
|
|
40
|
-
ProseMirror | prosemirror-
|
|
19
|
+
ProseMirror | prosemiror-inputrules | 1.4.0 - Open Source | MIT-style License
|
|
20
|
+
ProseMirror | prosemirror-commands | 1.6.2 - Open Source | MIT-style License
|
|
21
|
+
ProseMirror | prosemirror-dropcursor | 1.8.1 - Open Source | MIT-style License
|
|
22
|
+
ProseMirror | prosemirror-gapcursor | 1.3.2 - Open Source | MIT-style License
|
|
23
|
+
ProseMirror | prosemirror-history | 1.4.1 - Open Source | MIT-style License
|
|
24
|
+
ProseMirror | prosemirror-keymap | 1.2.2 - Open Source | MIT-style License
|
|
25
|
+
ProseMirror | prosemirror-model | 1.23.0 - Open Source | MIT-style License
|
|
26
|
+
ProseMirror | prosemirror-schema-list | 1.4.1 - Open Source | MIT-style License
|
|
27
|
+
ProseMirror | prosemirror-state | 1.4.3 - Open Source | MIT-style License
|
|
28
|
+
ProseMirror | prosemirror-tables | 1.6.1 - Open Source | MIT-style License
|
|
29
|
+
ProseMirror | prosemirror-transform | 1.10.2 - Open Source | MIT-style License
|
|
30
|
+
ProseMirror | prosemirror-view | 1.35.0 - Open Source | MIT-style License
|
|
41
31
|
-------------------------------------------------------------------------
|
|
42
32
|
|
|
43
33
|
1. Special Notices Regarding Open-Source Third-Party Components incorporated into the Product:
|
|
44
34
|
|
|
45
|
-
(1)
|
|
35
|
+
(1) The Apache Software License, Version 2.0:
|
|
46
36
|
|
|
47
|
-
|
|
37
|
+
Progress Telerik Document Processing 2025 incorporates pdf.js v2.6.347.
|
|
38
|
+
Such technology is subject to the following terms and conditions:
|
|
39
|
+
Apache License, Version 2.0, January 2004 http://www.apache.org/licenses/
|
|
40
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
41
|
+
1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, anoriginal work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
42
|
+
-------------------------------------------------------------------------
|
|
43
|
+
|
|
44
|
+
(2) BSD-Style Licenses:
|
|
45
|
+
|
|
46
|
+
(a) Progress KendoReact 9 incorporates React-Transition-Group v2.2.0. Such technology is subject to the following terms and conditions:
|
|
48
47
|
BSD 3-Clause License
|
|
49
48
|
Copyright (c) 2018, React Community
|
|
50
49
|
Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
|
|
@@ -55,56 +54,46 @@ Redistribution and use in source and binary forms, with or without modification,
|
|
|
55
54
|
* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
56
55
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
57
56
|
|
|
58
|
-
(
|
|
57
|
+
(3) MIT-Style Licenses:
|
|
59
58
|
|
|
60
|
-
(a) Progress KendoReact
|
|
61
|
-
This project is licensed under the MIT license.
|
|
62
|
-
Copyrights are respective of each contributor listed at the beginning of each definition file.
|
|
63
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
64
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
65
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
66
|
-
|
|
67
|
-
(b) Progress KendoReact 2024 incorporates prop-types v15*. Such technology is subject to the following terms and conditions:
|
|
59
|
+
(a) Progress KendoReact 9 incorporates prop-types v15.8.1. Such technology is subject to the following terms and conditions:
|
|
68
60
|
MIT License
|
|
69
61
|
Copyright (c) 2013-present, Facebook, Inc.
|
|
70
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
71
|
-
of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
|
|
72
|
-
furnished to do so, subject to the following conditions:
|
|
62
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
73
63
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
74
64
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
65
|
|
|
76
|
-
(
|
|
66
|
+
(b) Progress KendoReact 9 incorporates Axios v1.7.9. Such technology is subject to the following terms and conditions:
|
|
77
67
|
Copyright (c) 2014-present Matt Zabriskie
|
|
78
68
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
79
69
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
80
70
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
81
71
|
|
|
82
|
-
(
|
|
72
|
+
(c) Progress KendoReact 9 incorporates pako-esm v1.0.0. Such technology is subject to the following terms and conditions:
|
|
83
73
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
84
74
|
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
85
75
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
86
76
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
87
77
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
88
78
|
|
|
89
|
-
(
|
|
79
|
+
(d) Progress KendoReact 9 incorporates jszip-esm v1.0.0. Such technology is subject to the following terms and conditions:
|
|
90
80
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
91
|
-
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger,
|
|
81
|
+
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, Ant�nio Afonso
|
|
92
82
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
93
83
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
94
84
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
95
85
|
|
|
96
|
-
(
|
|
97
|
-
Copyright (C) 2015-2017 by Marijn Haverbeke <marijnh@gmail.com> and others
|
|
98
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
86
|
+
(e) Progress KendoReact 9 prosemiror-inputrules v1.4.0, prosemirror-commands v1.6.2, prosemirror-dropcursor v1.8.1, prosemirror-gapcursor v1.3.2, prosemirror-history v1.4.1, prosemirror-keymap v1.2.2, prosemirror-model v1.23.0, prosemirror-schema-list v1.4.1, prosemirror-state v1.4.3, prosemirror-tables v1.6.1, prosemirror-transform v1.10.2, and prosemirror-view v1.35.0. Such technologies are subject to the following terms and conditions:
|
|
87
|
+
Copyright (C) 2015-2017 by Marijn Haverbeke <marijnh@gmail.com> and others. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
99
88
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
100
89
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
101
90
|
|
|
102
|
-
2. Special Notices Regarding Commercially Licensed Third-Party Components incorporated into the Product:
|
|
91
|
+
2. Special Notices Regarding Commercially Licensed Third-Party Components incorporated into the Product: NONE
|
|
103
92
|
|
|
104
93
|
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
105
94
|
|
|
106
|
-
(a) Progress KendoReact
|
|
95
|
+
(a) Progress KendoReact 9 incorporates Kendo UI Licensing CLI v1.1 from Progress Software Corporation. See NOTICE.txt text file within product for third-party license information.
|
|
107
96
|
|
|
108
97
|
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or other documentation that accompanies updates received in connection with support of the Product.
|
|
109
98
|
|
|
110
|
-
Updated 4.
|
|
99
|
+
Updated 4.Feb.2025
|
|
@@ -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 m=require("react"),n=require("@progress/kendo-react-common");function
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("react"),n=require("@progress/kendo-react-common");function g(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const i=g(m),f=e=>{const{className:a,isRangeStart:t,value:c,text:C,view:b,...o}=e,l=n.useUnstyled(),r=l&&l.uCalendar,u=d=>{var s;(s=e.onClick)==null||s.call(e,c,d)};return i.createElement("li",{...o,onClick:u,className:n.classNames(n.uCalendar.li({c:r}),a)},i.createElement("span",{className:n.classNames(n.uCalendar.navigationMarker({c:r,isRangeStart:t}))},e.children))};exports.CalendarNavigationItem=f;
|
|
@@ -6,25 +6,33 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
import * as l from "react";
|
|
9
|
-
import { useUnstyled as
|
|
10
|
-
const
|
|
11
|
-
const {
|
|
12
|
-
|
|
13
|
-
n
|
|
9
|
+
import { useUnstyled as u, classNames as c, uCalendar as s } from "@progress/kendo-react-common";
|
|
10
|
+
const g = (e) => {
|
|
11
|
+
const { className: i, isRangeStart: m, value: r, text: N, view: k, ...o } = e, a = u(), t = a && a.uCalendar, d = (C) => {
|
|
12
|
+
var n;
|
|
13
|
+
(n = e.onClick) == null || n.call(e, r, C);
|
|
14
14
|
};
|
|
15
|
-
return /* @__PURE__ */ l.createElement(
|
|
16
|
-
"
|
|
15
|
+
return /* @__PURE__ */ l.createElement(
|
|
16
|
+
"li",
|
|
17
17
|
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
isRangeStart: i
|
|
22
|
-
})
|
|
23
|
-
)
|
|
18
|
+
...o,
|
|
19
|
+
onClick: d,
|
|
20
|
+
className: c(s.li({ c: t }), i)
|
|
24
21
|
},
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
/* @__PURE__ */ l.createElement(
|
|
23
|
+
"span",
|
|
24
|
+
{
|
|
25
|
+
className: c(
|
|
26
|
+
s.navigationMarker({
|
|
27
|
+
c: t,
|
|
28
|
+
isRangeStart: m
|
|
29
|
+
})
|
|
30
|
+
)
|
|
31
|
+
},
|
|
32
|
+
e.children
|
|
33
|
+
)
|
|
34
|
+
);
|
|
27
35
|
};
|
|
28
36
|
export {
|
|
29
|
-
|
|
37
|
+
g as CalendarNavigationItem
|
|
30
38
|
};
|
package/dateinput/DateInput.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 strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("react"),e=require("prop-types"),I=require("@progress/kendo-date-math"),$=require("@progress/kendo-react-buttons"),G=require("@progress/kendo-svg-icons"),Z=require("@progress/kendo-react-intl"),
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Ve=require("react"),e=require("prop-types"),I=require("@progress/kendo-date-math"),$=require("@progress/kendo-react-buttons"),G=require("@progress/kendo-svg-icons"),Z=require("@progress/kendo-react-intl"),u=require("@progress/kendo-react-common"),pe=require("@progress/kendo-react-labels"),Le=require("@progress/kendo-dateinputs-common"),q=require("./utils.js"),Ne=require("../package-metadata.js"),i=require("../utils.js"),c=require("../messages/index.js"),Ae=require("../timepicker/utils.js"),_e=require("../common/ClearButton.js"),Be=require("./dateInputIntl.js");function je(t){const b=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const m in t)if(m!=="default"){const O=Object.getOwnPropertyDescriptor(t,m);Object.defineProperty(b,m,O.get?O:{enumerable:!0,get:()=>t[m]})}}return b.default=t,Object.freeze(b)}const a=je(Ve),Fe="Please enter a valid value!",p=a.forwardRef((t,b)=>{var J;u.validatePackage(Ne.packageMetadata);const m=u.useId(t.id),O=Z.useInternationalization(),E=Z.useLocalization(),Q=u.useUnstyled(),L=u.usePropsContext(V,t).unstyled||Q,{format:P=r.format,size:ee=r.size,rounded:te=r.rounded,fillMode:ne=r.fillMode,formatPlaceholder:ae=r.formatPlaceholder,spinners:re=r.spinners,disabled:C=r.disabled,min:le=r.min,max:ue=r.max,minTime:ie=r.minTime,maxTime:oe=r.maxTime,validityStyles:se=r.validityStyles,validationMessage:N=r.validationMessage,placeholder:y=r.placeholder,enableMouseWheel:ce=r.enableMouseWheel,autoCorrectParts:de=r.autoCorrectParts,autoSwitchParts:fe=r.autoSwitchParts,allowCaretMode:me=r.allowCaretMode,twoDigitYearMax:ge=r.twoDigitYearMax,ariaHasPopup:ve=r.ariaHasPopup,autoFocus:be=r.autoFocus}=u.usePropsContext(V,t),g=()=>w.current!==void 0?w.current:o.current&&o.current.value,A=()=>{const n=o.current&&o.current.currentText||"",l=g();return y!=null&&!Pe.focused&&!l?y:n},_=()=>t.required!==void 0?t.required:!1,R=()=>{const n=g()||t.value,l=le,X=ue,Te=q.isInRange(n,l,X)&&Ae.isInTimeRange(n,ie,oe),Se=N!==void 0,ke=(!_()||n!=null)&&Te,qe=t.valid!==void 0?t.valid:ke;return{customError:Se,rangeOverflow:n&&X.getTime()<n.getTime()||!1,rangeUnderflow:n&&n.getTime()<l.getTime()||!1,valid:qe,valueMissing:n===null}},ye=()=>{s.current&&s.current.focus()},B=()=>new Be.DateInputIntl(O),x=()=>{const n=g();return{format:P,steps:t.steps,formatPlaceholder:ae,placeholder:y,selectPreviousSegmentOnBackspace:!0,value:t.value||n,intlService:B(),autoFill:t.autoFill!==void 0?t.autoFill:!1,enableMouseWheel:ce,autoCorrectParts:de,autoSwitchParts:fe,autoSwitchKeys:t.autoSwitchKeys||[],twoDigitYearMax:ge,allowCaretMode:me}},he=n=>{d.current&&d.current.classList.add("k-focus"),U({focused:!0})},De=n=>{d.current&&d.current.classList.remove("k-focus"),U({focused:!1})},Ie=(n,l)=>typeof n!=typeof l?!0:typeof n=="string"&&typeof l=="string"?n!==l:typeof n=="object"&&typeof l=="object"?JSON.stringify(n)!==JSON.stringify(l):!1,Oe=n=>typeof n=="string"?n:{inputFormat:n,displayFormat:n},j=n=>{w.current=g(),Re(),v.current=n,w.current=void 0},F=n=>{t.onChange&&t.onChange(n)},H=n=>{u.getActiveElement(document)===s.current&&n.preventDefault()},Ee=()=>new Le.DateInput(s.current,{...x(),format:Oe(x().format),events:{focus:he,blur:De,valueChange:j,click:F}}),z=()=>{s.current&&s.current.setCustomValidity&&s.current.setCustomValidity(R().valid?"":N||r.validationMessage)},Ce=n=>{!s.current||!o.current||j(n)},xe=n=>{n.preventDefault();const l=u.getActiveElement(document);s.current&&l!==s.current&&s.current.focus({preventScroll:!0})},f=n=>{const l=g();v.current&&t.onChange&&!I.isEqual(v.current.oldValue,l)&&t.onChange.call(void 0,{syntheticEvent:n,nativeEvent:v.current.event,value:v.current.value,target:M.current}),v.current=null},Me=n=>{var l;(l=o.current)==null||l.modifyDateSegmentValue(1),f(n)},we=n=>{var l;(l=o.current)==null||l.modifyDateSegmentValue(-1),f(n)},M=a.useRef(null),s=a.useRef(null),d=a.useRef(null);a.useImperativeHandle(M,()=>({props:t,get options(){return x()},get text(){return A()},get element(){return s.current},get name(){return t.name},get value(){return g()},get validity(){return R()},focus:ye,updateOnPaste:Ce})),a.useImperativeHandle(b,()=>M.current);const o=a.useRef(null),T=a.useRef(null),S=a.useRef(!1),w=a.useRef(null),v=a.useRef(null),h=a.useRef(t),[Pe,U]=a.useState({focused:!1}),[,Re]=a.useReducer(n=>n+1,0);a.useLayoutEffect(()=>{S.current||(o.current=Ee(),T.current=o.current.dateObject,S.current=!0)},[]),a.useEffect(()=>(z(),S.current||d.current&&d.current.addEventListener("wheel",H,{passive:!1}),()=>{d.current&&d.current.removeEventListener("wheel",H)}),[]),a.useEffect(()=>{z(),o.current&&((Ie(h.current.format,P)||h.current.readonly!==t.readonly||h.current.steps!==t.steps||B().locale!==o.current.options.intlService.locale)&&o.current.setOptions(x(),!0),h.current.value!==t.value&&(T.current.getValue()!==null||t.value!==null)&&T.current.setValue(t.value),t.ariaExpanded!==void 0&&t.ariaExpanded&&(o.current.options.placeholder=null),t.ariaExpanded!==void 0&&!t.ariaExpanded&&(o.current.options.placeholder=y),o.current.refreshElementValue(),h.current={format:P,readonly:t.readonly,ariaExpanded:t.ariaExpanded,steps:t.steps,value:t.value})});const W=t.id||m+"-accessibility-id",D=L&&L.uDateInput,K=A(),k=!se||R().valid;a.useImperativeHandle(t._ref,()=>M.current);const Y=a.createElement("span",{ref:n=>d.current=n,style:t.label?void 0:{width:t.width},dir:t.dir,className:u.classNames(u.uDateInput.wrapper({c:D,size:ee,fillMode:ne,rounded:te,disabled:C,required:_(),invalid:!k}),t.className)},a.createElement("input",{ref:n=>s.current=n,role:t.ariaRole||"textbox",readOnly:t.readonly,tabIndex:t.tabIndex||0,disabled:C,title:t.title!==void 0?t.title:K,type:"text",spellCheck:!1,autoComplete:"off",autoCorrect:"off",autoFocus:be,className:u.classNames(u.uDateInput.inputInner({c:D})),id:W,value:K,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy,"aria-haspopup":ve,"aria-disabled":C,"aria-expanded":t.ariaExpanded,"aria-controls":t.ariaControls,"aria-required":t.required,"aria-invalid":!k,onKeyDown:f,onChange:f,onWheel:f,onInput:f,onClick:f,name:t.name,...t.inputAttributes}),t.children,t.clearButton&&t.value&&a.createElement(_e,{onClick:F,key:"clearbutton"}),re&&a.createElement("span",{className:u.classNames(u.uDateInput.inputSpinner({c:D})),onMouseDown:xe},a.createElement($.Button,{tabIndex:-1,type:"button",rounded:null,className:u.classNames(u.uDateInput.spinnerIncrease({c:D})),icon:"caret-alt-up",svgIcon:G.caretAltUpIcon,"aria-label":E.toLanguageString(c.increaseValue,c.messages[c.increaseValue]),title:E.toLanguageString(c.increaseValue,c.messages[c.increaseValue]),onClick:Me}),a.createElement($.Button,{tabIndex:-1,type:"button",rounded:null,className:u.classNames(u.uDateInput.spinnerDecrease({c:D})),icon:"caret-alt-down",svgIcon:G.caretAltDownIcon,"aria-label":E.toLanguageString(c.decreaseValue,c.messages[c.decreaseValue]),title:E.toLanguageString(c.decreaseValue,c.messages[c.decreaseValue]),onClick:we})));return t.label?a.createElement(pe.FloatingLabel,{label:t.label,editorId:W,editorValue:(J=s.current)==null?void 0:J.value,editorValid:k,editorDisabled:C,children:Y,style:{width:t.width}}):Y});p.propTypes={value:e.instanceOf(Date),format:e.oneOfType([i.nullable(e.string),e.shape({skeleton:e.string,pattern:e.string,date:e.oneOf(["short","medium","long","full"]),time:e.oneOf(["short","medium","long","full"]),datetime:e.oneOf(["short","medium","long","full"]),era:e.oneOf(["narrow","short","long"]),year:e.oneOf(["numeric","2-digit"]),month:e.oneOf(["numeric","2-digit","narrow","short","long"]),day:e.oneOf(["numeric","2-digit"]),weekday:e.oneOf(["narrow","short","long"]),hour:e.oneOf(["numeric","2-digit"]),hour12:e.bool,minute:e.oneOf(["numeric","2-digit"]),second:e.oneOf(["numeric","2-digit"]),timeZoneName:e.oneOf(["short","long"])})]),formatPlaceholder:e.oneOfType([i.nullable(e.oneOf(["wide","narrow","short","formatPattern"])),e.shape({year:i.nullable(e.string),month:i.nullable(e.string),day:i.nullable(e.string),hour:i.nullable(e.string),minute:i.nullable(e.string),second:i.nullable(e.string)})]),width:e.oneOfType([e.string,e.number]),tabIndex:e.number,title:e.string,steps:e.shape({year:i.nullable(e.number),month:i.nullable(e.number),day:i.nullable(e.number),hour:i.nullable(e.number),minute:i.nullable(e.number),second:i.nullable(e.number)}),min:e.instanceOf(Date),max:e.instanceOf(Date),disabled:e.bool,spinners:e.bool,name:e.string,dir:e.string,label:e.string,id:e.string,ariaLabelledBy:e.string,ariaDescribedBy:e.string,ariaLabel:e.string,ariaRole:e.string,ariaHasPopup:e.oneOfType([e.bool,e.oneOf(["grid","dialog"])]),ariaExpanded:e.oneOfType([e.bool]),onChange:e.func,validationMessage:e.string,required:e.bool,valid:e.bool,size:e.oneOf([null,"small","medium","large"]),rounded:e.oneOf([null,"small","medium","large","full"]),fillMode:e.oneOf([null,"solid","flat","outline"]),autoFocus:e.bool,inputAttributes:e.object};const r={format:q.DEFAULT_FORMAT,size:"medium",rounded:"medium",fillMode:"solid",formatPlaceholder:q.DEFAULT_FORMAT_PLACEHOLDER,spinners:!1,disabled:!1,max:I.cloneDate(i.MAX_DATE),min:I.cloneDate(i.MIN_DATE),minTime:I.cloneDate(i.MIN_TIME),maxTime:I.cloneDate(i.MAX_TIME),validityStyles:!0,validationMessage:Fe,placeholder:null,enableMouseWheel:!0,autoCorrectParts:!0,autoSwitchParts:!0,allowCaretMode:!1,twoDigitYearMax:68,ariaHasPopup:"grid",autoFocus:!1},V=u.createPropsContext();p.displayName="KendoReactDateInput";exports.DateInput=p;exports.DateInputPropsContext=V;exports.dateInputDefaultProps=r;
|
package/dateinput/DateInput.mjs
CHANGED
|
@@ -9,23 +9,23 @@ import * as a from "react";
|
|
|
9
9
|
import e from "prop-types";
|
|
10
10
|
import { cloneDate as x, isEqual as Ve } from "@progress/kendo-date-math";
|
|
11
11
|
import { Button as Y } from "@progress/kendo-react-buttons";
|
|
12
|
-
import { caretAltUpIcon as
|
|
13
|
-
import { useInternationalization as
|
|
14
|
-
import { validatePackage as
|
|
12
|
+
import { caretAltUpIcon as Ne, caretAltDownIcon as _e } from "@progress/kendo-svg-icons";
|
|
13
|
+
import { useInternationalization as Fe, useLocalization as He } from "@progress/kendo-react-intl";
|
|
14
|
+
import { validatePackage as Be, useId as qe, useUnstyled as ze, usePropsContext as J, classNames as y, uDateInput as b, createPropsContext as Ue, getActiveElement as X } from "@progress/kendo-react-common";
|
|
15
15
|
import { FloatingLabel as We } from "@progress/kendo-react-labels";
|
|
16
16
|
import { DateInput as je } from "@progress/kendo-dateinputs-common";
|
|
17
17
|
import { DEFAULT_FORMAT as Ke, DEFAULT_FORMAT_PLACEHOLDER as Ye, isInRange as Je } from "./utils.mjs";
|
|
18
18
|
import { packageMetadata as Xe } from "../package-metadata.mjs";
|
|
19
|
-
import { nullable as
|
|
20
|
-
import { increaseValue as C, messages as
|
|
19
|
+
import { nullable as u, MAX_DATE as Ge, MIN_DATE as Ze, MIN_TIME as $e, MAX_TIME as Qe } from "../utils.mjs";
|
|
20
|
+
import { increaseValue as C, messages as w, decreaseValue as M } from "../messages/index.mjs";
|
|
21
21
|
import { isInTimeRange as et } from "../timepicker/utils.mjs";
|
|
22
22
|
import tt from "../common/ClearButton.mjs";
|
|
23
23
|
import { DateInputIntl as nt } from "./dateInputIntl.mjs";
|
|
24
24
|
const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
25
25
|
var j;
|
|
26
|
-
|
|
27
|
-
const Q =
|
|
28
|
-
format:
|
|
26
|
+
Be(Xe);
|
|
27
|
+
const Q = qe(t.id), ee = Fe(), h = He(), te = ze(), p = J(G, t).unstyled || te, {
|
|
28
|
+
format: T = r.format,
|
|
29
29
|
size: ne = r.size,
|
|
30
30
|
rounded: ae = r.rounded,
|
|
31
31
|
fillMode: re = r.fillMode,
|
|
@@ -49,7 +49,7 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
49
49
|
} = J(G, t), d = () => D.current !== void 0 ? D.current : l.current && l.current.value, A = () => {
|
|
50
50
|
const n = l.current && l.current.currentText || "", i = d();
|
|
51
51
|
return f != null && !Pe.focused && !i ? f : n;
|
|
52
|
-
}, V = () => t.required !== void 0 ? t.required : !1,
|
|
52
|
+
}, V = () => t.required !== void 0 ? t.required : !1, R = () => {
|
|
53
53
|
const n = d() || t.value, i = oe, K = ue, ke = Je(n, i, K) && et(n, se, ce), pe = L !== void 0, Le = (!V() || n != null) && ke, Ae = t.valid !== void 0 ? t.valid : Le;
|
|
54
54
|
return {
|
|
55
55
|
customError: pe,
|
|
@@ -60,16 +60,16 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
60
60
|
};
|
|
61
61
|
}, Ee = () => {
|
|
62
62
|
o.current && o.current.focus();
|
|
63
|
-
},
|
|
63
|
+
}, N = () => new nt(ee), I = () => {
|
|
64
64
|
const n = d();
|
|
65
65
|
return {
|
|
66
|
-
format:
|
|
66
|
+
format: T,
|
|
67
67
|
steps: t.steps,
|
|
68
68
|
formatPlaceholder: ie,
|
|
69
69
|
placeholder: f,
|
|
70
70
|
selectPreviousSegmentOnBackspace: !0,
|
|
71
71
|
value: t.value || n,
|
|
72
|
-
intlService:
|
|
72
|
+
intlService: N(),
|
|
73
73
|
autoFill: t.autoFill !== void 0 ? t.autoFill : !1,
|
|
74
74
|
enableMouseWheel: me,
|
|
75
75
|
autoCorrectParts: fe,
|
|
@@ -79,17 +79,17 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
79
79
|
allowCaretMode: ve
|
|
80
80
|
};
|
|
81
81
|
}, Ie = (n) => {
|
|
82
|
-
|
|
82
|
+
s.current && s.current.classList.add("k-focus"), q({ focused: !0 });
|
|
83
83
|
}, Oe = (n) => {
|
|
84
|
-
|
|
84
|
+
s.current && s.current.classList.remove("k-focus"), q({ focused: !1 });
|
|
85
85
|
}, De = (n, i) => typeof n != typeof i ? !0 : typeof n == "string" && typeof i == "string" ? n !== i : typeof n == "object" && typeof i == "object" ? JSON.stringify(n) !== JSON.stringify(i) : !1, xe = (n) => typeof n == "string" ? n : {
|
|
86
86
|
inputFormat: n,
|
|
87
87
|
displayFormat: n
|
|
88
|
-
}, N = (n) => {
|
|
89
|
-
D.current = d(), Se(), m.current = n, D.current = void 0;
|
|
90
88
|
}, _ = (n) => {
|
|
91
|
-
|
|
89
|
+
D.current = d(), Se(), m.current = n, D.current = void 0;
|
|
92
90
|
}, F = (n) => {
|
|
91
|
+
t.onChange && t.onChange(n);
|
|
92
|
+
}, H = (n) => {
|
|
93
93
|
X(document) === o.current && n.preventDefault();
|
|
94
94
|
}, Ce = () => new je(o.current, {
|
|
95
95
|
...I(),
|
|
@@ -97,20 +97,20 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
97
97
|
events: {
|
|
98
98
|
focus: Ie,
|
|
99
99
|
blur: Oe,
|
|
100
|
-
valueChange:
|
|
101
|
-
click:
|
|
100
|
+
valueChange: _,
|
|
101
|
+
click: F
|
|
102
102
|
}
|
|
103
|
-
}),
|
|
103
|
+
}), B = () => {
|
|
104
104
|
o.current && o.current.setCustomValidity && o.current.setCustomValidity(
|
|
105
|
-
|
|
105
|
+
R().valid ? "" : L || r.validationMessage
|
|
106
106
|
);
|
|
107
|
-
}, Re = (n) => {
|
|
108
|
-
!o.current || !l.current || N(n);
|
|
109
107
|
}, we = (n) => {
|
|
108
|
+
!o.current || !l.current || _(n);
|
|
109
|
+
}, Me = (n) => {
|
|
110
110
|
n.preventDefault();
|
|
111
111
|
const i = X(document);
|
|
112
112
|
o.current && i !== o.current && o.current.focus({ preventScroll: !0 });
|
|
113
|
-
},
|
|
113
|
+
}, c = (n) => {
|
|
114
114
|
const i = d();
|
|
115
115
|
m.current && t.onChange && !Ve(m.current.oldValue, i) && t.onChange.call(void 0, {
|
|
116
116
|
syntheticEvent: n,
|
|
@@ -118,13 +118,13 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
118
118
|
value: m.current.value,
|
|
119
119
|
target: O.current
|
|
120
120
|
}), m.current = null;
|
|
121
|
-
}, Me = (n) => {
|
|
122
|
-
var i;
|
|
123
|
-
(i = l.current) == null || i.modifyDateSegmentValue(1), s(n);
|
|
124
121
|
}, Te = (n) => {
|
|
125
122
|
var i;
|
|
126
|
-
(i = l.current) == null || i.modifyDateSegmentValue(
|
|
127
|
-
},
|
|
123
|
+
(i = l.current) == null || i.modifyDateSegmentValue(1), c(n);
|
|
124
|
+
}, Re = (n) => {
|
|
125
|
+
var i;
|
|
126
|
+
(i = l.current) == null || i.modifyDateSegmentValue(-1), c(n);
|
|
127
|
+
}, O = a.useRef(null), o = a.useRef(null), s = a.useRef(null);
|
|
128
128
|
a.useImperativeHandle(
|
|
129
129
|
O,
|
|
130
130
|
() => ({
|
|
@@ -145,33 +145,33 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
145
145
|
return d();
|
|
146
146
|
},
|
|
147
147
|
get validity() {
|
|
148
|
-
return
|
|
148
|
+
return R();
|
|
149
149
|
},
|
|
150
150
|
// hidden methods
|
|
151
151
|
focus: Ee,
|
|
152
|
-
updateOnPaste:
|
|
152
|
+
updateOnPaste: we
|
|
153
153
|
})
|
|
154
154
|
), a.useImperativeHandle($, () => O.current);
|
|
155
|
-
const l = a.useRef(null), P = a.useRef(null), S = a.useRef(!1), D = a.useRef(null), m = a.useRef(null), g = a.useRef(t), [Pe,
|
|
155
|
+
const l = a.useRef(null), P = a.useRef(null), S = a.useRef(!1), D = a.useRef(null), m = a.useRef(null), g = a.useRef(t), [Pe, q] = a.useState({ focused: !1 }), [, Se] = a.useReducer((n) => n + 1, 0);
|
|
156
156
|
a.useLayoutEffect(() => {
|
|
157
157
|
S.current || (l.current = Ce(), P.current = l.current.dateObject, S.current = !0);
|
|
158
|
-
}, []), a.useEffect(() => (
|
|
159
|
-
|
|
158
|
+
}, []), a.useEffect(() => (B(), S.current || s.current && s.current.addEventListener("wheel", H, { passive: !1 }), () => {
|
|
159
|
+
s.current && s.current.removeEventListener("wheel", H);
|
|
160
160
|
}), []), a.useEffect(() => {
|
|
161
|
-
|
|
162
|
-
format:
|
|
161
|
+
B(), l.current && ((De(g.current.format, T) || g.current.readonly !== t.readonly || g.current.steps !== t.steps || N().locale !== l.current.options.intlService.locale) && l.current.setOptions(I(), !0), g.current.value !== t.value && (P.current.getValue() !== null || t.value !== null) && P.current.setValue(t.value), t.ariaExpanded !== void 0 && t.ariaExpanded && (l.current.options.placeholder = null), t.ariaExpanded !== void 0 && !t.ariaExpanded && (l.current.options.placeholder = f), l.current.refreshElementValue(), g.current = {
|
|
162
|
+
format: T,
|
|
163
163
|
readonly: t.readonly,
|
|
164
164
|
ariaExpanded: t.ariaExpanded,
|
|
165
165
|
steps: t.steps,
|
|
166
166
|
value: t.value
|
|
167
167
|
});
|
|
168
168
|
});
|
|
169
|
-
const z = t.id || Q + "-accessibility-id", v = p && p.uDateInput, U = A(), k = !de ||
|
|
169
|
+
const z = t.id || Q + "-accessibility-id", v = p && p.uDateInput, U = A(), k = !de || R().valid;
|
|
170
170
|
a.useImperativeHandle(t._ref, () => O.current);
|
|
171
171
|
const W = /* @__PURE__ */ a.createElement(
|
|
172
172
|
"span",
|
|
173
173
|
{
|
|
174
|
-
ref: (n) =>
|
|
174
|
+
ref: (n) => s.current = n,
|
|
175
175
|
style: t.label ? void 0 : { width: t.width },
|
|
176
176
|
dir: t.dir,
|
|
177
177
|
className: y(
|
|
@@ -213,18 +213,18 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
213
213
|
"aria-controls": t.ariaControls,
|
|
214
214
|
"aria-required": t.required,
|
|
215
215
|
"aria-invalid": !k,
|
|
216
|
-
onKeyDown:
|
|
217
|
-
onChange:
|
|
218
|
-
onWheel:
|
|
219
|
-
onInput:
|
|
220
|
-
onClick:
|
|
216
|
+
onKeyDown: c,
|
|
217
|
+
onChange: c,
|
|
218
|
+
onWheel: c,
|
|
219
|
+
onInput: c,
|
|
220
|
+
onClick: c,
|
|
221
221
|
name: t.name,
|
|
222
222
|
...t.inputAttributes
|
|
223
223
|
}
|
|
224
224
|
),
|
|
225
225
|
t.children,
|
|
226
|
-
t.clearButton && t.value && /* @__PURE__ */ a.createElement(tt, { onClick:
|
|
227
|
-
le && /* @__PURE__ */ a.createElement("span", { className: y(b.inputSpinner({ c: v })), onMouseDown:
|
|
226
|
+
t.clearButton && t.value && /* @__PURE__ */ a.createElement(tt, { onClick: F, key: "clearbutton" }),
|
|
227
|
+
le && /* @__PURE__ */ a.createElement("span", { className: y(b.inputSpinner({ c: v })), onMouseDown: Me }, /* @__PURE__ */ a.createElement(
|
|
228
228
|
Y,
|
|
229
229
|
{
|
|
230
230
|
tabIndex: -1,
|
|
@@ -232,10 +232,10 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
232
232
|
rounded: null,
|
|
233
233
|
className: y(b.spinnerIncrease({ c: v })),
|
|
234
234
|
icon: "caret-alt-up",
|
|
235
|
-
svgIcon:
|
|
236
|
-
"aria-label": h.toLanguageString(C,
|
|
237
|
-
title: h.toLanguageString(C,
|
|
238
|
-
onClick:
|
|
235
|
+
svgIcon: Ne,
|
|
236
|
+
"aria-label": h.toLanguageString(C, w[C]),
|
|
237
|
+
title: h.toLanguageString(C, w[C]),
|
|
238
|
+
onClick: Te
|
|
239
239
|
}
|
|
240
240
|
), /* @__PURE__ */ a.createElement(
|
|
241
241
|
Y,
|
|
@@ -245,10 +245,10 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
245
245
|
rounded: null,
|
|
246
246
|
className: y(b.spinnerDecrease({ c: v })),
|
|
247
247
|
icon: "caret-alt-down",
|
|
248
|
-
svgIcon:
|
|
249
|
-
"aria-label": h.toLanguageString(
|
|
250
|
-
title: h.toLanguageString(
|
|
251
|
-
onClick:
|
|
248
|
+
svgIcon: _e,
|
|
249
|
+
"aria-label": h.toLanguageString(M, w[M]),
|
|
250
|
+
title: h.toLanguageString(M, w[M]),
|
|
251
|
+
onClick: Re
|
|
252
252
|
}
|
|
253
253
|
))
|
|
254
254
|
);
|
|
@@ -268,7 +268,7 @@ const at = "Please enter a valid value!", Z = a.forwardRef((t, $) => {
|
|
|
268
268
|
Z.propTypes = {
|
|
269
269
|
value: e.instanceOf(Date),
|
|
270
270
|
format: e.oneOfType([
|
|
271
|
-
|
|
271
|
+
u(e.string),
|
|
272
272
|
e.shape({
|
|
273
273
|
skeleton: e.string,
|
|
274
274
|
pattern: e.string,
|
|
@@ -288,26 +288,28 @@ Z.propTypes = {
|
|
|
288
288
|
})
|
|
289
289
|
]),
|
|
290
290
|
formatPlaceholder: e.oneOfType([
|
|
291
|
-
|
|
291
|
+
u(
|
|
292
|
+
e.oneOf(["wide", "narrow", "short", "formatPattern"])
|
|
293
|
+
),
|
|
292
294
|
e.shape({
|
|
293
|
-
year: e.string
|
|
294
|
-
month: e.string
|
|
295
|
-
day: e.string
|
|
296
|
-
hour: e.string
|
|
297
|
-
minute: e.string
|
|
298
|
-
second: e.string
|
|
295
|
+
year: u(e.string),
|
|
296
|
+
month: u(e.string),
|
|
297
|
+
day: u(e.string),
|
|
298
|
+
hour: u(e.string),
|
|
299
|
+
minute: u(e.string),
|
|
300
|
+
second: u(e.string)
|
|
299
301
|
})
|
|
300
302
|
]),
|
|
301
303
|
width: e.oneOfType([e.string, e.number]),
|
|
302
304
|
tabIndex: e.number,
|
|
303
305
|
title: e.string,
|
|
304
306
|
steps: e.shape({
|
|
305
|
-
year:
|
|
306
|
-
month:
|
|
307
|
-
day:
|
|
308
|
-
hour:
|
|
309
|
-
minute:
|
|
310
|
-
second:
|
|
307
|
+
year: u(e.number),
|
|
308
|
+
month: u(e.number),
|
|
309
|
+
day: u(e.number),
|
|
310
|
+
hour: u(e.number),
|
|
311
|
+
minute: u(e.number),
|
|
312
|
+
second: u(e.number)
|
|
311
313
|
}),
|
|
312
314
|
min: e.instanceOf(Date),
|
|
313
315
|
max: e.instanceOf(Date),
|