@progress/kendo-react-gantt 5.10.0-dev.202301092204 → 5.10.0-dev.202301111905
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/dist/cdn/js/kendo-react-gantt.js +1 -1
- package/dist/es/components/GanttTask.js +3 -2
- package/dist/es/components/toolbar/AddButton.js +3 -1
- package/dist/es/components/toolbar/view-selector/ViewSelectorList.js +3 -2
- package/dist/es/package-metadata.js +1 -1
- package/dist/npm/components/GanttTask.js +2 -1
- package/dist/npm/components/toolbar/AddButton.js +3 -1
- package/dist/npm/components/toolbar/view-selector/ViewSelectorList.js +2 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/systemjs/kendo-react-gantt.js +1 -1
- package/package.json +16 -14
|
@@ -12,7 +12,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import { useGanttTaskModelFieldsContext, useGanttDateRangeContext, useGanttTaskEventsContext } from './../context/GanttContext';
|
|
14
14
|
import { isInRange } from '../utils';
|
|
15
|
-
import { classNames, getter, useDraggable } from '@progress/kendo-react-common';
|
|
15
|
+
import { classNames, getter, IconWrap, useDraggable } from '@progress/kendo-react-common';
|
|
16
|
+
import { xIcon } from '@progress/kendo-svg-icons';
|
|
16
17
|
import { useGanttViewDependencyDragContext, useGanttViewTimelineWidthContext } from '../context/GanttViewContext';
|
|
17
18
|
import { useGanttTask } from '../hooks/useGanttTask';
|
|
18
19
|
import { DEPENDENCY_DRAG_HANDLE_FINISH_ATT, DEPENDENCY_DRAG_HANDLE_START_ATT, MILESTONE_OFFSET, TASK_ID_ATT } from '../constants';
|
|
@@ -154,7 +155,7 @@ export var GanttTask = React.forwardRef(function (props, ref) {
|
|
|
154
155
|
React.createElement("div", { className: 'k-task-content' }, taskTitle),
|
|
155
156
|
taskEvents.onTaskRemoveClick ? (React.createElement("span", { className: 'k-task-actions' },
|
|
156
157
|
React.createElement("span", { onClick: onRemoveHandler, className: 'k-link k-task-delete', "aria-label": "Delete" },
|
|
157
|
-
React.createElement(
|
|
158
|
+
React.createElement(IconWrap, { name: "x", icon: xIcon })))) : null)),
|
|
158
159
|
dependencyDrag.isEnabled &&
|
|
159
160
|
React.createElement("div", __assign({ className: 'k-task-dot k-task-start', ref: dependencyStartElementRef, style: dependencyDragStyles }, DEPENDENCY_DRAG_HANDLE_START_ATT)),
|
|
160
161
|
dependencyDrag.isEnabled &&
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { useLocalization } from '@progress/kendo-react-intl';
|
|
3
3
|
import { Button, DropDownButton } from '@progress/kendo-react-buttons';
|
|
4
4
|
import { addAbove, addBelow, addChild, addTask, messages } from '../../messages';
|
|
5
|
+
import { IconWrap } from '@progress/kendo-react-common';
|
|
6
|
+
import { plusIcon } from '@progress/kendo-svg-icons';
|
|
5
7
|
/** @hidden */
|
|
6
8
|
export var AddButton = React.forwardRef(function (props, _) {
|
|
7
9
|
var localizationService = useLocalization();
|
|
@@ -34,7 +36,7 @@ export var AddButton = React.forwardRef(function (props, _) {
|
|
|
34
36
|
}
|
|
35
37
|
}, [props.onClick]);
|
|
36
38
|
var buttonTitle = (React.createElement(React.Fragment, null,
|
|
37
|
-
React.createElement(
|
|
39
|
+
React.createElement(IconWrap, { name: "plus", icon: plusIcon }),
|
|
38
40
|
addTaskMessage));
|
|
39
41
|
return (!props.selectedTask ? (React.createElement(Button, { onClick: handleButtonClick }, buttonTitle)) : (React.createElement(DropDownButton, { className: "k-views-dropdown", onItemClick: handleItemClick, popupSettings: { popupClass: 'k-gantt-toolbar' }, textField: "title", items: [
|
|
40
42
|
{ title: addChildMessage, direction: 'child' },
|
|
@@ -14,7 +14,8 @@ import { useLocalization } from '@progress/kendo-react-intl';
|
|
|
14
14
|
import { DropDownButton, ButtonGroup } from '@progress/kendo-react-buttons';
|
|
15
15
|
import { ViewSelectorItem } from './ViewSelectorItem';
|
|
16
16
|
import { useGanttViewsContext, useGanttActiveViewContext } from '../../../context/GanttContext';
|
|
17
|
-
import {
|
|
17
|
+
import { IconWrap } from '@progress/kendo-react-common';
|
|
18
|
+
import { caretAltDownIcon } from '@progress/kendo-svg-icons';
|
|
18
19
|
/** @hidden */
|
|
19
20
|
export var ViewSelectorList = React.forwardRef(function () {
|
|
20
21
|
var views = useGanttViewsContext();
|
|
@@ -36,6 +37,6 @@ export var ViewSelectorList = React.forwardRef(function () {
|
|
|
36
37
|
typeof activeView.props.title === 'function'
|
|
37
38
|
? activeView.props.title.call(undefined, localizationService)
|
|
38
39
|
: activeView.props.title,
|
|
39
|
-
React.createElement(
|
|
40
|
+
React.createElement(IconWrap, { name: "caret-alt-down", icon: caretAltDownIcon }))) }))));
|
|
40
41
|
});
|
|
41
42
|
ViewSelectorList.displayName = 'KendoReactGanttViewSelectorList';
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-gantt',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1673462807,
|
|
9
9
|
version: '',
|
|
10
10
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
11
11
|
};
|
|
@@ -16,6 +16,7 @@ var React = require("react");
|
|
|
16
16
|
var GanttContext_1 = require("./../context/GanttContext");
|
|
17
17
|
var utils_1 = require("../utils");
|
|
18
18
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
19
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
19
20
|
var GanttViewContext_1 = require("../context/GanttViewContext");
|
|
20
21
|
var useGanttTask_1 = require("../hooks/useGanttTask");
|
|
21
22
|
var constants_1 = require("../constants");
|
|
@@ -157,7 +158,7 @@ exports.GanttTask = React.forwardRef(function (props, ref) {
|
|
|
157
158
|
React.createElement("div", { className: 'k-task-content' }, taskTitle),
|
|
158
159
|
taskEvents.onTaskRemoveClick ? (React.createElement("span", { className: 'k-task-actions' },
|
|
159
160
|
React.createElement("span", { onClick: onRemoveHandler, className: 'k-link k-task-delete', "aria-label": "Delete" },
|
|
160
|
-
React.createElement(
|
|
161
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: "x", icon: kendo_svg_icons_1.xIcon })))) : null)),
|
|
161
162
|
dependencyDrag.isEnabled &&
|
|
162
163
|
React.createElement("div", __assign({ className: 'k-task-dot k-task-start', ref: dependencyStartElementRef, style: dependencyDragStyles }, constants_1.DEPENDENCY_DRAG_HANDLE_START_ATT)),
|
|
163
164
|
dependencyDrag.isEnabled &&
|
|
@@ -5,6 +5,8 @@ var React = require("react");
|
|
|
5
5
|
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
6
6
|
var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
7
7
|
var messages_1 = require("../../messages");
|
|
8
|
+
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
9
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
8
10
|
/** @hidden */
|
|
9
11
|
exports.AddButton = React.forwardRef(function (props, _) {
|
|
10
12
|
var localizationService = (0, kendo_react_intl_1.useLocalization)();
|
|
@@ -37,7 +39,7 @@ exports.AddButton = React.forwardRef(function (props, _) {
|
|
|
37
39
|
}
|
|
38
40
|
}, [props.onClick]);
|
|
39
41
|
var buttonTitle = (React.createElement(React.Fragment, null,
|
|
40
|
-
React.createElement(
|
|
42
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: "plus", icon: kendo_svg_icons_1.plusIcon }),
|
|
41
43
|
addTaskMessage));
|
|
42
44
|
return (!props.selectedTask ? (React.createElement(kendo_react_buttons_1.Button, { onClick: handleButtonClick }, buttonTitle)) : (React.createElement(kendo_react_buttons_1.DropDownButton, { className: "k-views-dropdown", onItemClick: handleItemClick, popupSettings: { popupClass: 'k-gantt-toolbar' }, textField: "title", items: [
|
|
43
45
|
{ title: addChildMessage, direction: 'child' },
|
|
@@ -18,6 +18,7 @@ var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
|
|
|
18
18
|
var ViewSelectorItem_1 = require("./ViewSelectorItem");
|
|
19
19
|
var GanttContext_1 = require("../../../context/GanttContext");
|
|
20
20
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
21
|
+
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
21
22
|
/** @hidden */
|
|
22
23
|
exports.ViewSelectorList = React.forwardRef(function () {
|
|
23
24
|
var views = (0, GanttContext_1.useGanttViewsContext)();
|
|
@@ -39,6 +40,6 @@ exports.ViewSelectorList = React.forwardRef(function () {
|
|
|
39
40
|
typeof activeView.props.title === 'function'
|
|
40
41
|
? activeView.props.title.call(undefined, localizationService)
|
|
41
42
|
: activeView.props.title,
|
|
42
|
-
React.createElement(kendo_react_common_1.
|
|
43
|
+
React.createElement(kendo_react_common_1.IconWrap, { name: "caret-alt-down", icon: kendo_svg_icons_1.caretAltDownIcon }))) }))));
|
|
43
44
|
});
|
|
44
45
|
exports.ViewSelectorList.displayName = 'KendoReactGanttViewSelectorList';
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-gantt',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673462807,
|
|
12
12
|
version: '',
|
|
13
13
|
licensingDocsUrl: 'https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning'
|
|
14
14
|
};
|