@progress/kendo-react-chart-wizard 8.2.0-develop.38

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/DeleteCell.js ADDED
@@ -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 i=require("react"),d=require("@progress/kendo-react-buttons"),m=require("@progress/kendo-svg-icons");function f(e){const n=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(n,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const o=f(i),r=o.createContext({onRemove:e=>{},count:0}),b=e=>{const{ariaColumnIndex:n,dataItem:t,selectionChange:c,columnIndex:g,columnsCount:C,rowType:v,expanded:I,dataIndex:p,isSelected:x,render:S,...a}=e,{onRemove:l,count:s}=o.useContext(r),u=()=>{l.call(void 0,e.dataItem.id)};return o.createElement("td",{...a},o.createElement(d.Button,{type:"button",onClick:u,icon:"trash",svgIcon:m.trashIcon,fillMode:"flat",disabled:s<2}))};exports.DeleteCell=b;exports.RemoveSeriesContext=r;
package/DeleteCell.mjs ADDED
@@ -0,0 +1,47 @@
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 * as e from "react";
10
+ import { Button as r } from "@progress/kendo-react-buttons";
11
+ import { trashIcon as l } from "@progress/kendo-svg-icons";
12
+ const s = e.createContext({
13
+ onRemove: (t) => {
14
+ },
15
+ count: 0
16
+ }), D = (t) => {
17
+ const {
18
+ ariaColumnIndex: d,
19
+ dataItem: m,
20
+ selectionChange: i,
21
+ columnIndex: u,
22
+ columnsCount: x,
23
+ rowType: C,
24
+ expanded: I,
25
+ dataIndex: f,
26
+ isSelected: p,
27
+ render: v,
28
+ ...o
29
+ } = t, { onRemove: n, count: a } = e.useContext(s), c = () => {
30
+ n.call(void 0, t.dataItem.id);
31
+ };
32
+ return /* @__PURE__ */ e.createElement("td", { ...o }, /* @__PURE__ */ e.createElement(
33
+ r,
34
+ {
35
+ type: "button",
36
+ onClick: c,
37
+ icon: "trash",
38
+ svgIcon: l,
39
+ fillMode: "flat",
40
+ disabled: a < 2
41
+ }
42
+ ));
43
+ };
44
+ export {
45
+ D as DeleteCell,
46
+ s as RemoveSeriesContext
47
+ };
package/LICENSE.md ADDED
@@ -0,0 +1,11 @@
1
+ # KendoReact
2
+
3
+ This package is part of the [KendoReact](http://www.telerik.com/kendo-react-ui) suite.
4
+
5
+ ## License
6
+
7
+ This is commercial software. To use it, you need to agree to the [**End User License Agreement for Progress KendoReact**](https://www.telerik.com/purchase/license-agreement/progress-kendoreact). If you do not own a commercial license, this file shall be governed by the trial license terms.
8
+
9
+ All available KendoReact commercial licenses may be obtained at the [KendoReact website](https://www.telerik.com/kendo-react-ui/pricing).
10
+
11
+ *Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
package/NOTICE.txt ADDED
@@ -0,0 +1,110 @@
1
+ Progress KendoReact 2024
2
+
3
+ Copyright © 2018-2024 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
4
+
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
+
7
+ -------------------------------------------------------------------------
8
+ SUMMARY OF COMPONENTS:
9
+
10
+ VendorName | ComponentName | VersionName | LicenseType
11
+
12
+ Axios | Axios | 0.18.1 - Open Source | MIT-style License
13
+ DefinitelyTyped.org | @types/prosemirror-commands | 1.0.4 - Open Source | MIT-style License
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
26
+ Facebook, Inc. | react-transition-group | 2.2.0 - Open Source | BSD-style License
27
+ Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
28
+ Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
29
+ Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
30
+ ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
31
+ ProseMirror | prosemirror-commands | 1.0.7 - Open Source | MIT-style License
32
+ ProseMirror | prosemirror-gapcursor | 1.0.2 - Open Source | MIT-style License
33
+ ProseMirror | prosemirror-history | 1.0.2 - Open Source | MIT-style License
34
+ ProseMirror | prosemirror-keymap | 1.0.1 - Open Source | MIT-style License
35
+ ProseMirror | prosemirror-model | 1.6.1 - Open Source | MIT-style License
36
+ ProseMirror | prosemirror-schema-list | 1.0.1 - Open Source | MIT-style License
37
+ ProseMirror | prosemirror-state | 1.2.2 - Open Source | MIT-style License
38
+ ProseMirror | prosemirror-tables | 0.7.10 - Open Source | MIT-style License
39
+ ProseMirror | prosemirror-transform | 1.1.3 - Open Source | MIT-style License
40
+ ProseMirror | prosemirror-view | 1.5.2 - Open Source | MIT-style License
41
+ -------------------------------------------------------------------------
42
+
43
+ 1. Special Notices Regarding Open-Source Third-Party Components incorporated into the Product:
44
+
45
+ (1) BSD-Style Licenses:
46
+
47
+ (a) Progress KendoReact 2024 incorporates React-Transition-Group v2.2.0. Such technology is subject to the following terms and conditions:
48
+ BSD 3-Clause License
49
+ Copyright (c) 2018, React Community
50
+ Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
51
+ All rights reserved.
52
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
53
+ * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
54
+ * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
55
+ * 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
+ 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
+
58
+ (2) MIT-Style Licenses:
59
+
60
+ (a) Progress KendoReact 2024 incorporates @types/prosemirror-commands v1*, @types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, @types/prosemirror-history v1*, @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*, @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*, @types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are subject to the following terms and conditions:
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:
68
+ MIT License
69
+ 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:
73
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
74
+ 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
+
76
+ (c) Progress KendoReact 2024 incorporates Axios v0.18.1. Such technology is subject to the following terms and conditions:
77
+ Copyright (c) 2014-present Matt Zabriskie
78
+ 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
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
80
+ 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
+
82
+ (d) Progress KendoReact 2024 incorporates pako-esm v1.0.0. Such technology is subject to the following terms and conditions:
83
+ Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
84
+ Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
85
+ 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
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
87
+ 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
+
89
+ (e) Progress KendoReact 2024 incorporates jszip-esm v1.0.0. Such technology is subject to the following terms and conditions:
90
+ 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, António Afonso
92
+ 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
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
94
+ 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
+
96
+ (f) Progress KendoReact 2024 incorporates prosemirror-commands v1*, prosemirror-gapcursor v1*, prosemirror-history v1*, prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*, prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.9*, prosemirror-transform v1*, and prosemirror-view v1*. Such technologies are subject to the following terms and conditions:
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:
99
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
100
+ 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
+
102
+ 2. Special Notices Regarding Commercially Licensed Third-Party Components incorporated into the Product: NONE
103
+
104
+ 3. Special Notices Regarding Progress Products incorporated into the Product:
105
+
106
+ (a) Progress KendoReact 2024 incorporates Kendo UI Licensing CLI v1.1 from Progress Software Corporation. See NOTICE.txt text file within product for third-party license information.
107
+
108
+ 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
+
110
+ Updated 4.Jan.2024
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ <a href="https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard&utm_content=banner" target="_blank">
2
+ <img src="https://www.telerik.com/kendo-react-ui/components/npm-banner.svg" alt="KendoReact NPM Banner">
3
+ </a>
4
+
5
+ # KendoReact ChartWizard Library for React
6
+
7
+ > **Important**
8
+ >
9
+ > - This package is а part of [KendoReact](https://www.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)&mdash;a commercial UI library.
10
+ > - You will need to install a license key when adding the package to your project. For more information, please refer to the [KendoReact My License page](https://www.telerik.com/kendo-react-ui/components/my-license/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard).
11
+ > - To receive a license key, you need to either [purchase a license](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard) or register for a [free trial](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard). Doing so indicates that you [accept the KendoReact License Agreement](https://www.telerik.com/purchase/license-agreement/progress-kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard).
12
+ > - The 30-day free trial gives you access to all the KendoReact components and their full functionality. Additionally, for the period of your license, you get access to our legendary technical support provided directly by the KendoReact dev team!
13
+ >
14
+ > [Start using KendoReact](https://www.telerik.com/try/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard) and speed up your development process!
15
+
16
+ What's in this package (ToC):
17
+
18
+ - [React ChartWizard component](#react-chart-wizard-component)
19
+ - [Support Options](#support-options)
20
+ - [Resources](#resources)
21
+
22
+ ## React ChartWizard Component
23
+
24
+ The React Chart Wizard library, part of KendoReact, lets you create a chart using data from a Grid, another data-bound component, or an external source. The Chart Wizard has a simple interface that allows you to set up the chart type, series, category axis, value axis, legend, area, title, and data source.
25
+
26
+ ### Key Features
27
+
28
+ The Chart Wizard is a powerful tool that allows you to create a chart with a few clicks. The wizard is designed to be easy to use and intuitive, so you can create and save charts quickly and easily.
29
+
30
+ Among the features which the KendoReact Chart Wizard component delivers are:
31
+
32
+ * **Data Binding** – The Chart Wizard can be bound to data collections and comes with built-in integrations with the Grid component.
33
+ * **Export Options** – The Chart Wizard allows the user to save the charts they created in PDF, PNG and SVG formats.
34
+ * **Globalization** – By using the available globalization options in KendoReact, you can translate the Chart Wizard messages by adapting them to specific culture locales.
35
+ * **Theme support** – The KendoReact Chart Wizard, as well as all 100+ components in the KendoReact suite, are styled in four polished themes (Bootstrap, Material, Fluent and Default) and can be further customized to match your specific design guidelines.
36
+
37
+ ## Support Options
38
+
39
+ For any issues you might encounter while working with the KendoReact ChartWizard, use any of the available support channels:
40
+
41
+ - Industry-leading technical support&mdash;KendoReact paid license holders and users with an active (free) trial license can take advantage of our outstanding customer support. To submit a ticket, use [the dedicated KendoReact support system](https://www.telerik.com/account/support-tickets?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard).
42
+ - Product forums&mdash;The [KendoReact forums](https://www.telerik.com/forums/kendo-ui-react?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard) are part of the free support you can get from the community and from the KendoReact team.
43
+ - Feedback portal&mdash;The [KendoReact feedback portal](https://feedback.telerik.com/kendo-react-ui?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard) is where you can request and vote for new features to be added.
44
+
45
+ ## Resources
46
+
47
+ - [Getting Started with KendoReact](https://www.telerik.com/kendo-react-ui/components/getting-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
48
+ - [Getting Started with the KendoReact ChartWizard](https://www.telerik.com/kendo-react-ui/components/chart-wizard/get-started/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
49
+ - [API Reference of the KendoReact ChartWizard](https://www.telerik.com/kendo-react-ui/components/chart-wizard/api/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
50
+ - [KendoReact Roadmap](https://www.telerik.com/support/whats-new/kendo-react-ui/roadmap?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
51
+ - [Blogs](https://www.telerik.com/blogs/tag/kendoreact?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
52
+ - [Demos, documentation, and component reference](https://www.telerik.com/kendo-react-ui/components/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
53
+ - [KendoReact pricing and licensing](https://www.telerik.com/kendo-react-ui/pricing?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
54
+ - [Changelog](https://www.telerik.com/kendo-react-ui/components/changelogs/ui-for-react/?utm_medium=referral&utm_source=npm&utm_campaign=kendo-ui-react-trial-npm-chart-wizard)
55
+
56
+ High-level component overview pages
57
+
58
+ - [React ChartWizard Component](https://www.telerik.com/kendo-react-ui/chart-wizard)
59
+
60
+ _Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved._
61
+
62
+ _Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries._
package/SeriesGrid.js ADDED
@@ -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 a=require("react"),k=require("@progress/kendo-react-buttons"),b=require("@progress/kendo-react-common"),u=require("@progress/kendo-react-grid"),y=require("@progress/kendo-react-intl"),I=require("@progress/kendo-svg-icons"),D=require("./DeleteCell.js"),v=require("./messages.js"),x=a.createContext({reorder:()=>{},dragStart:()=>{}}),R=e=>{const o=a.useContext(x);return a.createElement("td",{onDragOver:d=>{o.reorder.call(void 0,e.dataItem),d.preventDefault(),d.dataTransfer.dropEffect="copy"},"aria-colindex":e.ariaColumnIndex,className:e.className,colSpan:e.colSpan,id:e.id},a.createElement("span",{className:"k-icon k-i-reorder",draggable:!0,style:{cursor:"move"},onDragStart:d=>{o.dragStart.call(void 0,e.dataItem),d.dataTransfer.setData("dragging","")}},a.createElement(b.SvgIcon,{icon:I.reorderIcon})))},m="inEdit",q=e=>{const o=e.originalProps.dataItem,d=e.originalProps.field,g=o[e.editField||""],f=d&&d===g?{ref:i=>{const l=i&&i.querySelector("input"),s=(l&&l.ownerDocument||document).activeElement;!l||!s||l===s||!s.contains(l)||(l.type==="checkbox"?l.focus():l.select())},onKeyDown:i=>{i.target.matches("input")&&(i.key==="Enter"||i.key==="Escape")&&(i.stopPropagation(),e.exitEdit())},onBlur:i=>{i.target.matches("input")&&e.exitEdit()}}:{onClick:()=>{e.enterEdit(o,d)}},C={...e.td.props,...f};return a.cloneElement(e.td,C,e.td.props.children)},w=e=>{const[o,d]=a.useState(null),g=t=>{if(o===t)return;const n=e.data.slice(),c=n.findIndex(E=>E===o),r=n.findIndex(E=>E===t);n.splice(c,1),n.splice(r,0,o||n[0]),e.onChange.call(void 0,n)},f=t=>{d(t)},C=()=>{const t=e.initialData.find(n=>!e.data.find(c=>c.id===n.id));t&&e.onChange.call(void 0,[...e.data,t])},i=(t,n)=>{const c=e.data.map(r=>({...r,[m]:r.id===t.id?n:void 0}));e.onChange.call(void 0,c)},l=()=>{const t=e.data.map(n=>({...n,[m]:void 0}));e.onChange.call(void 0,t)},h=t=>{const n=t.field||"",c=e.data.map(r=>r.id===t.dataItem.id?{...r,[n]:t.value}:r);e.onChange.call(void 0,c)},s=t=>{const n=e.data.filter(c=>c.id!==t);e.onChange.call(void 0,n)},S=(t,n)=>a.createElement(q,{originalProps:n,td:t,enterEdit:i,exitEdit:l,editField:m});return a.createElement(D.RemoveSeriesContext.Provider,{value:{onRemove:s,count:e.data.length}},a.createElement(x.Provider,{value:{reorder:g,dragStart:f}},a.createElement(u.Grid,{className:"k-series-grid",style:{width:"100%"},size:"medium",data:e.data,dataItemKey:"id",cellRender:S,onItemChange:h,scrollable:"none",editField:m,headerCellRender:()=>null,headerClassName:"k-hidden"},a.createElement(u.GridToolbar,null,a.createElement(k.Button,{type:"button",className:"k-toolbar-button",fillMode:"flat",onClick:C,disabled:e.data.length===e.initialData.length,svgIcon:I.plusIcon},y.useLocalization().toLanguageString(v.chartWizardDataConfigurationSeriesAdd,v.messages[v.chartWizardDataConfigurationSeriesAdd]))),a.createElement(u.GridColumn,{title:"",width:"40px",cell:R,editable:!1}),a.createElement(u.GridColumn,{field:"name",title:"Name"}),a.createElement(u.GridColumn,{field:"",width:"40px",cell:D.DeleteCell,editable:!1}))))};exports.SeriesGrid=w;
package/SeriesGrid.mjs ADDED
@@ -0,0 +1,140 @@
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 n from "react";
10
+ import { Button as I } from "@progress/kendo-react-buttons";
11
+ import { SvgIcon as S } from "@progress/kendo-react-common";
12
+ import { Grid as b, GridToolbar as k, GridColumn as C } from "@progress/kendo-react-grid";
13
+ import { useLocalization as y } from "@progress/kendo-react-intl";
14
+ import { plusIcon as w, reorderIcon as R } from "@progress/kendo-svg-icons";
15
+ import { RemoveSeriesContext as N, DeleteCell as P } from "./DeleteCell.mjs";
16
+ import { chartWizardDataConfigurationSeriesAdd as v, messages as F } from "./messages.mjs";
17
+ const x = n.createContext({
18
+ reorder: () => {
19
+ },
20
+ dragStart: () => {
21
+ }
22
+ }), T = (e) => {
23
+ const o = n.useContext(x);
24
+ return /* @__PURE__ */ n.createElement(
25
+ "td",
26
+ {
27
+ onDragOver: (d) => {
28
+ o.reorder.call(void 0, e.dataItem), d.preventDefault(), d.dataTransfer.dropEffect = "copy";
29
+ },
30
+ "aria-colindex": e.ariaColumnIndex,
31
+ className: e.className,
32
+ colSpan: e.colSpan,
33
+ id: e.id
34
+ },
35
+ /* @__PURE__ */ n.createElement(
36
+ "span",
37
+ {
38
+ className: "k-icon k-i-reorder",
39
+ draggable: !0,
40
+ style: { cursor: "move" },
41
+ onDragStart: (d) => {
42
+ o.dragStart.call(void 0, e.dataItem), d.dataTransfer.setData("dragging", "");
43
+ }
44
+ },
45
+ /* @__PURE__ */ n.createElement(S, { icon: R })
46
+ )
47
+ );
48
+ }, s = "inEdit", A = (e) => {
49
+ const o = e.originalProps.dataItem, d = e.originalProps.field, u = o[e.editField || ""], f = d && d === u ? {
50
+ ref: (i) => {
51
+ const l = i && i.querySelector("input"), m = (l && l.ownerDocument || document).activeElement;
52
+ !l || !m || l === m || !m.contains(l) || (l.type === "checkbox" ? l.focus() : l.select());
53
+ },
54
+ onKeyDown: (i) => {
55
+ i.target.matches("input") && (i.key === "Enter" || i.key === "Escape") && (i.stopPropagation(), e.exitEdit());
56
+ },
57
+ onBlur: (i) => {
58
+ i.target.matches("input") && e.exitEdit();
59
+ }
60
+ } : {
61
+ onClick: () => {
62
+ e.enterEdit(o, d);
63
+ }
64
+ }, g = { ...e.td.props, ...f };
65
+ return n.cloneElement(
66
+ e.td,
67
+ g,
68
+ e.td.props.children
69
+ );
70
+ }, M = (e) => {
71
+ const [o, d] = n.useState(null), u = (t) => {
72
+ if (o === t)
73
+ return;
74
+ const a = e.data.slice(), r = a.findIndex((E) => E === o), c = a.findIndex((E) => E === t);
75
+ a.splice(r, 1), a.splice(c, 0, o || a[0]), e.onChange.call(void 0, a);
76
+ }, f = (t) => {
77
+ d(t);
78
+ }, g = () => {
79
+ const t = e.initialData.find((a) => !e.data.find((r) => r.id === a.id));
80
+ t && e.onChange.call(void 0, [...e.data, t]);
81
+ }, i = (t, a) => {
82
+ const r = e.data.map((c) => ({
83
+ ...c,
84
+ [s]: c.id === t.id ? a : void 0
85
+ }));
86
+ e.onChange.call(void 0, r);
87
+ }, l = () => {
88
+ const t = e.data.map((a) => ({ ...a, [s]: void 0 }));
89
+ e.onChange.call(void 0, t);
90
+ }, h = (t) => {
91
+ const a = t.field || "", r = e.data.map((c) => c.id === t.dataItem.id ? { ...c, [a]: t.value } : c);
92
+ e.onChange.call(void 0, r);
93
+ }, m = (t) => {
94
+ const a = e.data.filter((r) => r.id !== t);
95
+ e.onChange.call(void 0, a);
96
+ }, D = (t, a) => /* @__PURE__ */ n.createElement(
97
+ A,
98
+ {
99
+ originalProps: a,
100
+ td: t,
101
+ enterEdit: i,
102
+ exitEdit: l,
103
+ editField: s
104
+ }
105
+ );
106
+ return /* @__PURE__ */ n.createElement(N.Provider, { value: { onRemove: m, count: e.data.length } }, /* @__PURE__ */ n.createElement(x.Provider, { value: { reorder: u, dragStart: f } }, /* @__PURE__ */ n.createElement(
107
+ b,
108
+ {
109
+ className: "k-series-grid",
110
+ style: { width: "100%" },
111
+ size: "medium",
112
+ data: e.data,
113
+ dataItemKey: "id",
114
+ cellRender: D,
115
+ onItemChange: h,
116
+ scrollable: "none",
117
+ editField: s,
118
+ headerCellRender: () => null,
119
+ headerClassName: "k-hidden"
120
+ },
121
+ /* @__PURE__ */ n.createElement(k, null, /* @__PURE__ */ n.createElement(
122
+ I,
123
+ {
124
+ type: "button",
125
+ className: "k-toolbar-button",
126
+ fillMode: "flat",
127
+ onClick: g,
128
+ disabled: e.data.length === e.initialData.length,
129
+ svgIcon: w
130
+ },
131
+ y().toLanguageString(v, F[v])
132
+ )),
133
+ /* @__PURE__ */ n.createElement(C, { title: "", width: "40px", cell: T, editable: !1 }),
134
+ /* @__PURE__ */ n.createElement(C, { field: "name", title: "Name" }),
135
+ /* @__PURE__ */ n.createElement(C, { field: "", width: "40px", cell: P, editable: !1 })
136
+ )));
137
+ };
138
+ export {
139
+ M as SeriesGrid
140
+ };
@@ -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"});var _=(t=>(t[t.seriesType=0]="seriesType",t[t.stacked=1]="stacked",t[t.categoryAxisX=2]="categoryAxisX",t[t.valueAxisY=3]="valueAxisY",t[t.seriesChange=4]="seriesChange",t[t.areaMarginLeft=5]="areaMarginLeft",t[t.areaMarginRight=6]="areaMarginRight",t[t.areaMarginTop=7]="areaMarginTop",t[t.areaMarginBottom=8]="areaMarginBottom",t[t.areaBackground=9]="areaBackground",t[t.titleText=10]="titleText",t[t.titleFontName=11]="titleFontName",t[t.titleFontSize=12]="titleFontSize",t[t.titleColor=13]="titleColor",t[t.subtitleText=14]="subtitleText",t[t.subtitleFontName=15]="subtitleFontName",t[t.subtitleFontSize=16]="subtitleFontSize",t[t.subtitleColor=17]="subtitleColor",t[t.seriesColor=18]="seriesColor",t[t.seriesLabel=19]="seriesLabel",t[t.legendVisible=20]="legendVisible",t[t.legendFontName=21]="legendFontName",t[t.legendFontSize=22]="legendFontSize",t[t.legendColor=23]="legendColor",t[t.legendPosition=24]="legendPosition",t[t.categoryAxisTitleText=25]="categoryAxisTitleText",t[t.categoryAxisTitleFontName=26]="categoryAxisTitleFontName",t[t.categoryAxisTitleFontSize=27]="categoryAxisTitleFontSize",t[t.categoryAxisTitleColor=28]="categoryAxisTitleColor",t[t.categoryAxisLabelsFontName=29]="categoryAxisLabelsFontName",t[t.categoryAxisLabelsFontSize=30]="categoryAxisLabelsFontSize",t[t.categoryAxisLabelsColor=31]="categoryAxisLabelsColor",t[t.categoryAxisLabelsRotation=32]="categoryAxisLabelsRotation",t[t.categoryAxisReverseOrder=33]="categoryAxisReverseOrder",t[t.valueAxisTitleText=34]="valueAxisTitleText",t[t.valueAxisTitleFontName=35]="valueAxisTitleFontName",t[t.valueAxisTitleFontSize=36]="valueAxisTitleFontSize",t[t.valueAxisTitleColor=37]="valueAxisTitleColor",t[t.valueAxisLabelsFormat=38]="valueAxisLabelsFormat",t[t.valueAxisLabelsFontName=39]="valueAxisLabelsFontName",t[t.valueAxisLabelsFontSize=40]="valueAxisLabelsFontSize",t[t.valueAxisLabelsColor=41]="valueAxisLabelsColor",t[t.valueAxisLabelsRotation=42]="valueAxisLabelsRotation",t))(_||{});const d=[{text:"16",value:"16px"},{text:"20",value:"20px"},{text:"24",value:"24px"},{text:"48",value:"48px"},{text:"60",value:"60px"},{text:"96",value:"96px"}],v=[{text:"Arial",value:"Arial, Helvetica, sans-serif",style:{fontFamily:"Arial, Helvetica, sans-serif"}},{text:"Courier New",value:"'Courier New', Courier, monospace",style:{fontFamily:"'Courier New', Courier, monospace"}},{text:"Georgia",value:"Georgia, serif",style:{fontFamily:"Georgia, serif"}},{text:"Impact",value:"Impact, Charcoal, sans-serif",style:{fontFamily:"Impact, Charcoal, sans-serif"}},{text:"Lucida Console",value:"'Lucida Console', Monaco, monospace",style:{fontFamily:"'Lucida Console', Monaco, monospace"}},{text:"Tahoma",value:"Tahoma, Geneva, sans-serif",style:{fontFamily:"Tahoma, Geneva, sans-serif"}},{text:"Times New Roman",value:"'Times New Roman', Times,serif",style:{fontFamily:"'Times New Roman', Times,serif"}},{text:"Trebuchet MS",value:"'Trebuchet MS', Helvetica, sans-serif",style:{fontFamily:"'Trebuchet MS', Helvetica, sans-serif"}},{text:"Verdana",value:"Verdana, Geneva, sans-serif",style:{fontFamily:"Verdana, Geneva, sans-serif"}}],ne="column",ue="bar",T="line",W="pie",ee="scatter",ce=[ne,ue,T,ee],ge={type:T,width:0},S=t=>t&&ce.includes(t),L=["string","date","number"],N=["number"],te={bar:[{axisType:"category",types:L},{axisType:"value",types:N}],column:[{axisType:"category",types:L},{axisType:"value",types:N}],line:[{axisType:"category",types:L},{axisType:"value",types:N}],pie:[{axisType:"category",types:L},{axisType:"value",types:N,count:1}],scatter:[{axisType:"category",types:L},{axisType:"value",types:N}]},ae=(t,l)=>`${l||""} ${t||""}`.trim(),R=t=>{const l=(t||"").indexOf(" "),a=t==null?void 0:t.substring(0,l),e=t==null?void 0:t.substring(l+1);return{size:a,name:e}},h=(t,l,a)=>{const{size:e}=R(a);return t?ae(t,e||l):""},C=(t,l,a)=>{const{name:e}=R(a);return t?ae(e||l,t):""},re=(t,l)=>{const a=[],e=t[0].slice();l.types.forEach(n=>{e.forEach((c,o)=>{typeof c.value===n&&a.push(o)})});const g=a.findIndex(n=>{const c=t.map(o=>o[n].value);return new Set(c).size===c.length});return Math.max(g,0)},le=(t,l)=>{const a=[],e=t[0].slice();return l.forEach(g=>{g.types.forEach(n=>{e.forEach((c,o)=>{typeof c.value===n&&a.push(o)})})}),a},se=()=>structuredClone({columns:[],data:[],series:[],initialSeries:[],categoryAxis:[],valueAxis:[{labels:{visible:!0}}],area:{margin:{left:void 0,right:void 0,top:void 0,bottom:void 0}},stack:!1}),ie=(t,l,a)=>{const e=se();e.seriesType=l,e.data=t;const g=te[l];if(!g)return e;const n=t[0].slice();e.columns=t[0].map(s=>String(s.field));const c=g.find(s=>s.axisType==="category");let o=-1;c&&(o=a!=null&&a.categoryAxis?e.columns.indexOf(a==null?void 0:a.categoryAxis):re(t,c));const m=g.filter(s=>s.axisType==="value");let u=le(t,m);u.includes(o)&&(u=u.filter(s=>s!==o));const b=[];u.forEach(s=>{const x=n[s],y=[];t.forEach(F=>{y.push(F[s].value)}),b.push({name:x.field,type:l,data:y,stack:!1,labels:{visible:!1},...l===ee?ge:{}})});const f=o>-1?t.map(s=>String(s[o].value)):[];return b.length&&(e.series=b.map((s,x)=>({...s,id:x})),e.initialSeries=structuredClone(e.series)),f.length&&(e.categoryAxis=[{categories:f,labels:{visible:!0,rotation:"auto"}}],e.categoryField=e.columns[o]),e.legend={visible:!0},e.title={text:void 0},e.subtitle={text:void 0},e},M=(t,l,a)=>{const e=se();e.seriesType=l,e.data=t;const g=te[l];if(!g)return e;const n=t[0].map(s=>s.field),c=g.find(s=>s.axisType==="category");let o=-1;c&&(o=a!=null&&a.categoryAxis?n.indexOf(a==null?void 0:a.categoryAxis):re(t,c));const m=g.filter(s=>s.axisType==="value");let u=[];a!=null&&a.valueAxis?u=[n.indexOf(a.valueAxis)]:u=le(t,m),u.includes(o)&&u.length>1&&(u=u.filter(s=>s!==o)),typeof m[0].count=="number"&&(u=u.slice(0,m[0].count));const b=o>-1?t.map(s=>String(s[o].value)):[],f=[];return t.forEach(s=>{const x={};u.forEach(y=>{const F=s[y];x[F.field]=F.value,x[s[o].field]=s[o].value}),f.push(x)}),e.columns=n,e.categoryAxis=[{categories:b,title:{text:""}}],e.series=[{id:0,data:f,type:l,name:n[o],labels:{visible:!0},categoryField:n[o],field:n[u[0]]}],e.categoryField=n[o],e.valueField=n[u[0]],e.initialSeries=structuredClone(e.series),e},Z=t=>t!=null,xe=(t,l,a)=>{const e=A(t,(a==null?void 0:a.seriesType)||l);return typeof(a==null?void 0:a.stack)!="undefined"?oe(e,1,a.stack):e},A=(t,l)=>(S(l)?ie:M)(t,l),z=(t,l)=>{if(l.legend=t.legend,l.area=t.area,l.title=t.title,l.subtitle=t.subtitle,l.series.length===t.series.length)for(let a=0;a<l.series.length;a++)l.series[a].color=t.series[a].color,l.series[a].labels=t.series[a].labels;return t.series.every(a=>{var e;return(e=a.labels)==null?void 0:e.visible})&&S(l.seriesType)&&S(t.seriesType)&&l.series.forEach(a=>{a.labels=a.labels||{},a.labels.visible=!0}),l},oe=(t,l,a)=>{var g,n,c,o,m,u,b,f,s,x,y,F,I,k,E,D,V,G,O,B,H,p,P,w,X,Y,$,j,q,J,K,Q,U;const e={...t};switch(l){case 0:return A(e.data,a);case 1:return e.series=e.series.map(r=>({...r,stack:a})),e;case 2:{if(e.seriesType&&S(e.seriesType)){const r=ie(e.data,e.seriesType,{categoryAxis:a});return z(e,r)}else if(e.seriesType===W){const r=M(e.data,e.seriesType,{categoryAxis:a});return z(e,r)}return e}case 3:{if(e.seriesType===W){const r=M(e.data,e.seriesType,{categoryAxis:e.categoryField,valueAxis:a});return z(e,r)}return e}case 4:return e.series=a,e;case 5:return e.area={...e.area,margin:{...((g=e.area)==null?void 0:g.margin)||{},left:a}},e;case 6:return e.area={...e.area,margin:{...((n=e.area)==null?void 0:n.margin)||{},right:a}},e;case 7:return e.area={...e.area,margin:{...((c=e.area)==null?void 0:c.margin)||{},top:a}},e;case 8:return e.area={...e.area,margin:{...((o=e.area)==null?void 0:o.margin)||{},bottom:a}},e;case 9:return e.area={...e.area,background:a},e;case 10:return e.title={...e.title,text:a},e;case 11:return e.title={...e.title,font:h(a,d[0].value,(m=e.title)==null?void 0:m.font)},e;case 12:return e.title={...e.title,font:C(a,v[0].value,(u=e.title)==null?void 0:u.font)},e;case 13:return e.title={...e.title,color:a},e;case 14:return e.subtitle={...e.subtitle,text:a},e;case 15:return e.subtitle={...e.subtitle,font:h(a,d[0].value,(b=e.subtitle)==null?void 0:b.font)},e;case 16:return e.subtitle={...e.subtitle,font:C(a,v[0].value,(f=e.subtitle)==null?void 0:f.font)},e;case 17:return e.subtitle={...e.subtitle,color:a},e;case 18:return e.series=e.series.map(r=>({...r,color:a.seriesName===r.name?a.color:r.color})),e;case 19:return e.series=e.series.map(r=>a.all||a.seriesName===r.name?{...r,labels:{visible:a.visible}}:r),e;case 20:return e.legend={...e.legend,visible:a},e;case 21:return e.legend={...e.legend,labels:{...(s=e.legend)==null?void 0:s.labels,font:h(a,d[0].value,(y=(x=e.legend)==null?void 0:x.labels)==null?void 0:y.font)}},e;case 22:return e.legend={...e.legend,labels:{...(F=e.legend)==null?void 0:F.labels,font:C(a,v[0].value,(k=(I=e.legend)==null?void 0:I.labels)==null?void 0:k.font)}},e;case 23:return e.legend={...e.legend,labels:{...(E=e.legend)==null?void 0:E.labels,color:a}},e;case 24:return e.legend={...e.legend,position:a},e;case 25:return e.categoryAxis=(D=e.categoryAxis)==null?void 0:D.map(r=>({...r,title:{...r.title,text:a}})),e;case 26:return e.categoryAxis=(V=e.categoryAxis)==null?void 0:V.map(r=>{var i;return{...r,title:{...r.title,font:h(a,d[0].value,(i=r.title)==null?void 0:i.font)}}}),e;case 27:return e.categoryAxis=(G=e.categoryAxis)==null?void 0:G.map(r=>{var i;return{...r,title:{...r.title,font:C(a,v[0].value,(i=r.title)==null?void 0:i.font)}}}),e;case 28:return e.categoryAxis=(O=e.categoryAxis)==null?void 0:O.map(r=>({...r,title:{...r.title,color:a}})),e;case 29:return e.categoryAxis=(B=e.categoryAxis)==null?void 0:B.map(r=>{var i;return{...r,labels:{...r.labels,font:h(a,d[0].value,(i=r.labels)==null?void 0:i.font)}}}),e;case 30:return e.categoryAxis=(H=e.categoryAxis)==null?void 0:H.map(r=>{var i;return{...r,labels:{...r.labels,font:C(a,v[0].value,(i=r.labels)==null?void 0:i.font)}}}),e;case 31:return e.categoryAxis=(p=e.categoryAxis)==null?void 0:p.map(r=>({...r,labels:{...r.labels,color:a}})),e;case 32:{const r=Z(a)?a:"auto";return e.categoryAxis=(P=e.categoryAxis)==null?void 0:P.map(i=>({...i,labels:{...i.labels,rotation:r}})),e}case 33:return e.categoryAxis=(w=e.categoryAxis)==null?void 0:w.map(r=>({...r,reverse:a})),e;case 34:return!e.valueAxis||e.valueAxis.length===0?e.valueAxis=[{title:{text:a}}]:e.valueAxis=(X=e.valueAxis)==null?void 0:X.map(r=>({...r,title:{...r.title,text:a}})),e;case 35:return e.valueAxis=(Y=e.valueAxis)==null?void 0:Y.map(r=>{var i;return{...r,title:{...r.title,font:h(a,d[0].value,(i=r.title)==null?void 0:i.font)}}}),e;case 36:return e.valueAxis=($=e.valueAxis)==null?void 0:$.map(r=>{var i;return{...r,title:{...r.title,font:C(a,v[0].value,(i=r.title)==null?void 0:i.font)}}}),e;case 37:return e.valueAxis=(j=e.valueAxis)==null?void 0:j.map(r=>({...r,title:{...r.title,color:a}})),e;case 38:return e.valueAxis=(q=e.valueAxis)==null?void 0:q.map(r=>({...r,labels:{...r.labels,format:a}})),e;case 39:return e.valueAxis=(J=e.valueAxis)==null?void 0:J.map(r=>{var i;return{...r,labels:{...r.labels,font:h(a,d[0].value,(i=r.labels)==null?void 0:i.font)}}}),e;case 40:return e.valueAxis=(K=e.valueAxis)==null?void 0:K.map(r=>{var i;return{...r,labels:{...r.labels,font:C(a,v[0].value,(i=r.labels)==null?void 0:i.font)}}}),e;case 41:return e.valueAxis=(Q=e.valueAxis)==null?void 0:Q.map(r=>({...r,labels:{...r.labels,color:a}})),e;case 42:{const r=Z(a)?a:"auto";return e.valueAxis=(U=e.valueAxis)==null?void 0:U.map(i=>({...i,labels:{...i.labels,rotation:r}})),e}default:return e}};exports.ActionTypes=_;exports.createInitialState=xe;exports.createState=A;exports.fontNames=v;exports.fontSizes=d;exports.isCategorical=S;exports.mergeStates=z;exports.parseFont=R;exports.updateState=oe;