@progress/kendo-react-scheduler 5.19.0-dev.202309201348 → 5.19.0-dev.202309211422
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-scheduler.js +1 -1
- package/dist/es/Scheduler.js +2 -1
- package/dist/es/items/SchedulerItem.js +1 -1
- package/dist/es/package-metadata.js +1 -1
- package/dist/es/slots/SchedulerSlot.js +1 -5
- package/dist/npm/Scheduler.js +2 -1
- package/dist/npm/items/SchedulerItem.js +1 -1
- package/dist/npm/package-metadata.js +1 -1
- package/dist/npm/slots/SchedulerSlot.js +1 -5
- package/dist/systemjs/kendo-react-scheduler.js +1 -1
- package/package.json +12 -12
package/dist/es/Scheduler.js
CHANGED
|
@@ -41,6 +41,7 @@ import { packageMetadata } from './package-metadata';
|
|
|
41
41
|
import { caretAltLeftIcon, caretAltRightIcon, clockIcon } from '@progress/kendo-svg-icons';
|
|
42
42
|
var DEFAULT_DATE_FORMAT = '{0:D}';
|
|
43
43
|
var DEFAULT_SHORT_DATE_FORMAT = '{0:d}';
|
|
44
|
+
var DEFAULT_SCHEDULER_ROLE = 'application';
|
|
44
45
|
/**
|
|
45
46
|
* Specifies the available [DataAction]({% slug api_scheduler_data_action %}) types.
|
|
46
47
|
*/
|
|
@@ -290,7 +291,7 @@ export var Scheduler = React.forwardRef(function (props, ref) {
|
|
|
290
291
|
data: [data, handleDataAction] },
|
|
291
292
|
React.createElement("div", { ref: element, id: props.id, style: style, className: className, tabIndex: props.tabIndex,
|
|
292
293
|
// Aria
|
|
293
|
-
dir: dir, role: props.role, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledby, "aria-activedescendant": (eventSelection && eventSelection.props.id) || undefined,
|
|
294
|
+
dir: dir, role: props.role || DEFAULT_SCHEDULER_ROLE, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledby, "aria-activedescendant": (eventSelection && eventSelection.props.id) || undefined,
|
|
294
295
|
// Handlers
|
|
295
296
|
onFocus: handleFocus, onBlur: handleBlur },
|
|
296
297
|
React.createElement(Header, null,
|
|
@@ -294,7 +294,7 @@ export var SchedulerItem = React.forwardRef(function (props, ref) {
|
|
|
294
294
|
});
|
|
295
295
|
return (React.createElement("div", { ref: element, id: props.id, style: style, tabIndex: tabIndex, className: className,
|
|
296
296
|
// Aria
|
|
297
|
-
role: 'button', "aria-label": eventLabel,
|
|
297
|
+
role: 'button', "aria-label": eventLabel,
|
|
298
298
|
// Focus
|
|
299
299
|
onFocus: handleFocus, onBlur: handleBlur,
|
|
300
300
|
// Mouse
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-scheduler',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1695305093,
|
|
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
|
};
|
|
@@ -11,8 +11,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import * as React from 'react';
|
|
13
13
|
import { classNames } from '@progress/kendo-react-common';
|
|
14
|
-
import { formatEventTime } from '../utils';
|
|
15
|
-
import { useInternationalization } from '@progress/kendo-react-intl';
|
|
16
14
|
import { useSchedulerSlot } from '../hooks/useSchedulerSlot';
|
|
17
15
|
/**
|
|
18
16
|
* Represents the default `slot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
@@ -26,7 +24,6 @@ export var SchedulerSlot = React.forwardRef(function (props, ref) {
|
|
|
26
24
|
// Keyboard
|
|
27
25
|
onKeyDown = props.onKeyDown, onKeyPress = props.onKeyPress, onKeyUp = props.onKeyUp;
|
|
28
26
|
var _a = useSchedulerSlot(props, ref), slot = _a.slot, element = _a.element;
|
|
29
|
-
var intl = useInternationalization();
|
|
30
27
|
var tabIndex = props.tabIndex !== undefined
|
|
31
28
|
? props.tabIndex === null
|
|
32
29
|
? undefined
|
|
@@ -39,7 +36,6 @@ export var SchedulerSlot = React.forwardRef(function (props, ref) {
|
|
|
39
36
|
'k-selected': props.selected
|
|
40
37
|
}); }, [props.className, props.selected, props.isWorkHour, props.isWorkDay]);
|
|
41
38
|
var style = React.useMemo(function () { return (__assign({ userSelect: 'none' }, props.style)); }, [props.style]);
|
|
42
|
-
var slotLabel = React.useMemo(function () { return "".concat(formatEventTime(intl, props.zonedStart, props.zonedEnd, props.isAllDay || false)); }, [intl, props.isAllDay, props.zonedEnd, props.zonedStart]);
|
|
43
39
|
// Handlers
|
|
44
40
|
// Focus Handlers
|
|
45
41
|
var handleFocus = React.useCallback(function (syntheticEvent) {
|
|
@@ -143,7 +139,7 @@ export var SchedulerSlot = React.forwardRef(function (props, ref) {
|
|
|
143
139
|
target: slot.current
|
|
144
140
|
});
|
|
145
141
|
}, [onKeyUp, slot]);
|
|
146
|
-
return (React.createElement("div", { ref: element, id: props.id, style: style, className: className, tabIndex: tabIndex, "aria-
|
|
142
|
+
return (React.createElement("div", { ref: element, id: props.id, style: style, className: className, tabIndex: tabIndex, "aria-selected": props.selected || undefined,
|
|
147
143
|
// Focus
|
|
148
144
|
onFocus: handleFocus, onBlur: handleBlur,
|
|
149
145
|
// Mouse
|
package/dist/npm/Scheduler.js
CHANGED
|
@@ -44,6 +44,7 @@ var package_metadata_1 = require("./package-metadata");
|
|
|
44
44
|
var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
|
|
45
45
|
var DEFAULT_DATE_FORMAT = '{0:D}';
|
|
46
46
|
var DEFAULT_SHORT_DATE_FORMAT = '{0:d}';
|
|
47
|
+
var DEFAULT_SCHEDULER_ROLE = 'application';
|
|
47
48
|
/**
|
|
48
49
|
* Specifies the available [DataAction]({% slug api_scheduler_data_action %}) types.
|
|
49
50
|
*/
|
|
@@ -293,7 +294,7 @@ exports.Scheduler = React.forwardRef(function (props, ref) {
|
|
|
293
294
|
data: [data, handleDataAction] },
|
|
294
295
|
React.createElement("div", { ref: element, id: props.id, style: style, className: className, tabIndex: props.tabIndex,
|
|
295
296
|
// Aria
|
|
296
|
-
dir: dir, role: props.role, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledby, "aria-activedescendant": (eventSelection && eventSelection.props.id) || undefined,
|
|
297
|
+
dir: dir, role: props.role || DEFAULT_SCHEDULER_ROLE, "aria-label": props.ariaLabel, "aria-labelledby": props.ariaLabelledby, "aria-activedescendant": (eventSelection && eventSelection.props.id) || undefined,
|
|
297
298
|
// Handlers
|
|
298
299
|
onFocus: handleFocus, onBlur: handleBlur },
|
|
299
300
|
React.createElement(Header, null,
|
|
@@ -297,7 +297,7 @@ exports.SchedulerItem = React.forwardRef(function (props, ref) {
|
|
|
297
297
|
});
|
|
298
298
|
return (React.createElement("div", { ref: element, id: props.id, style: style, tabIndex: tabIndex, className: className,
|
|
299
299
|
// Aria
|
|
300
|
-
role: 'button', "aria-label": eventLabel,
|
|
300
|
+
role: 'button', "aria-label": eventLabel,
|
|
301
301
|
// Focus
|
|
302
302
|
onFocus: handleFocus, onBlur: handleBlur,
|
|
303
303
|
// Mouse
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-scheduler',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1695305093,
|
|
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
|
};
|
|
@@ -14,8 +14,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.SchedulerSlot = void 0;
|
|
15
15
|
var React = require("react");
|
|
16
16
|
var kendo_react_common_1 = require("@progress/kendo-react-common");
|
|
17
|
-
var utils_1 = require("../utils");
|
|
18
|
-
var kendo_react_intl_1 = require("@progress/kendo-react-intl");
|
|
19
17
|
var useSchedulerSlot_1 = require("../hooks/useSchedulerSlot");
|
|
20
18
|
/**
|
|
21
19
|
* Represents the default `slot` component rendered by the [KendoReact Scheduler component]({% slug overview_scheduler %}).
|
|
@@ -29,7 +27,6 @@ exports.SchedulerSlot = React.forwardRef(function (props, ref) {
|
|
|
29
27
|
// Keyboard
|
|
30
28
|
onKeyDown = props.onKeyDown, onKeyPress = props.onKeyPress, onKeyUp = props.onKeyUp;
|
|
31
29
|
var _a = (0, useSchedulerSlot_1.useSchedulerSlot)(props, ref), slot = _a.slot, element = _a.element;
|
|
32
|
-
var intl = (0, kendo_react_intl_1.useInternationalization)();
|
|
33
30
|
var tabIndex = props.tabIndex !== undefined
|
|
34
31
|
? props.tabIndex === null
|
|
35
32
|
? undefined
|
|
@@ -42,7 +39,6 @@ exports.SchedulerSlot = React.forwardRef(function (props, ref) {
|
|
|
42
39
|
'k-selected': props.selected
|
|
43
40
|
}); }, [props.className, props.selected, props.isWorkHour, props.isWorkDay]);
|
|
44
41
|
var style = React.useMemo(function () { return (__assign({ userSelect: 'none' }, props.style)); }, [props.style]);
|
|
45
|
-
var slotLabel = React.useMemo(function () { return "".concat((0, utils_1.formatEventTime)(intl, props.zonedStart, props.zonedEnd, props.isAllDay || false)); }, [intl, props.isAllDay, props.zonedEnd, props.zonedStart]);
|
|
46
42
|
// Handlers
|
|
47
43
|
// Focus Handlers
|
|
48
44
|
var handleFocus = React.useCallback(function (syntheticEvent) {
|
|
@@ -146,7 +142,7 @@ exports.SchedulerSlot = React.forwardRef(function (props, ref) {
|
|
|
146
142
|
target: slot.current
|
|
147
143
|
});
|
|
148
144
|
}, [onKeyUp, slot]);
|
|
149
|
-
return (React.createElement("div", { ref: element, id: props.id, style: style, className: className, tabIndex: tabIndex, "aria-
|
|
145
|
+
return (React.createElement("div", { ref: element, id: props.id, style: style, className: className, tabIndex: tabIndex, "aria-selected": props.selected || undefined,
|
|
150
146
|
// Focus
|
|
151
147
|
onFocus: handleFocus, onBlur: handleBlur,
|
|
152
148
|
// Mouse
|