@progress/kendo-react-scheduler 5.3.1-dev.202205140840 → 5.4.0-dev.202205200719

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.
@@ -286,10 +286,8 @@ export var Scheduler = React.forwardRef(function (props, ref) {
286
286
  React.createElement(Navigation, null,
287
287
  React.createElement(ButtonGroup, { className: "k-scheduler-navigation" },
288
288
  React.createElement(Button, { role: "button", tabIndex: -1, title: todayText, "aria-label": todayText, onClick: handleTodayClick }, todayText),
289
- React.createElement(Button, { role: "button", tabIndex: -1, className: "k-button-icon", title: previousText, "aria-label": previousText, onClick: handlePrevClick },
290
- React.createElement("span", { className: "k-icon k-i-arrow-60-left" })),
291
- React.createElement(Button, { role: "button", tabIndex: -1, className: "k-button-icon", title: nextText, "aria-label": nextText, onClick: handleNextClick },
292
- React.createElement("span", { className: "k-icon k-i-arrow-60-right" })))),
289
+ React.createElement(Button, { role: "button", tabIndex: -1, icon: 'arrow-60-left', title: previousText, "aria-label": previousText, onClick: handlePrevClick }),
290
+ React.createElement(Button, { role: "button", tabIndex: -1, icon: 'arrow-60-right', title: nextText, "aria-label": nextText, onClick: handleNextClick }))),
293
291
  React.createElement(NavigationDatePicker, { value: date, onChange: handleDatePickerChange }),
294
292
  React.createElement(ToolbarSpacer, null),
295
293
  React.createElement(ViewSelector, null,
@@ -14,12 +14,14 @@ import { useSchedulerViewsContext } from '../../../main';
14
14
  import { useSchedulerActiveViewContext } from '../../../context';
15
15
  import { useLocalization } from '@progress/kendo-react-intl';
16
16
  import { DropDownButton, ButtonGroup } from '@progress/kendo-react-buttons';
17
+ import { useWindow } from '@progress/kendo-react-common';
17
18
  import { ViewSelectorItem } from './ViewSelectorItem';
18
19
  /** @hidden */
19
20
  export var ViewSelectorList = React.forwardRef(function () {
20
21
  var element = React.useRef(null);
21
22
  var _a = React.useState('desktop'), media = _a[0], setMedia = _a[1];
22
23
  var views = useSchedulerViewsContext();
24
+ var getWindow = useWindow(element);
23
25
  var _b = useSchedulerActiveViewContext(), activeViewName = _b[0], setActiveViewName = _b[1];
24
26
  var activeView = views.find(function (v) { return v.props.name === activeViewName; });
25
27
  var localization = useLocalization();
@@ -31,13 +33,13 @@ export var ViewSelectorList = React.forwardRef(function () {
31
33
  setActiveViewName(event.item.name);
32
34
  }, [setActiveViewName]);
33
35
  var calculateMedia = function () {
34
- setMedia(window.matchMedia('(min-width: 1024px)').matches
36
+ setMedia(getWindow().matchMedia('(min-width: 1024px)').matches
35
37
  ? 'desktop'
36
38
  : 'mobile');
37
39
  };
38
40
  React.useEffect(function () {
39
41
  calculateMedia();
40
- var observer = new window.ResizeObserver(calculateMedia);
42
+ var observer = new (getWindow().ResizeObserver)(calculateMedia);
41
43
  observer.observe(element.current);
42
44
  return function () {
43
45
  observer.disconnect();
@@ -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: 1652517246,
8
+ publishDate: 1653030720,
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
  };
@@ -73,7 +73,8 @@ export var getUntil = function (rrule) {
73
73
  export var getMonths = function (intl) {
74
74
  return intl.dateFormatNames({
75
75
  type: 'months',
76
- nameType: 'wide'
76
+ nameType: 'wide',
77
+ standAlone: true
77
78
  }).map(function (month, idx) { return ({
78
79
  text: month,
79
80
  value: idx + 1
@@ -288,10 +288,8 @@ exports.Scheduler = React.forwardRef(function (props, ref) {
288
288
  React.createElement(Navigation, null,
289
289
  React.createElement(kendo_react_buttons_1.ButtonGroup, { className: "k-scheduler-navigation" },
290
290
  React.createElement(kendo_react_buttons_1.Button, { role: "button", tabIndex: -1, title: todayText, "aria-label": todayText, onClick: handleTodayClick }, todayText),
291
- React.createElement(kendo_react_buttons_1.Button, { role: "button", tabIndex: -1, className: "k-button-icon", title: previousText, "aria-label": previousText, onClick: handlePrevClick },
292
- React.createElement("span", { className: "k-icon k-i-arrow-60-left" })),
293
- React.createElement(kendo_react_buttons_1.Button, { role: "button", tabIndex: -1, className: "k-button-icon", title: nextText, "aria-label": nextText, onClick: handleNextClick },
294
- React.createElement("span", { className: "k-icon k-i-arrow-60-right" })))),
291
+ React.createElement(kendo_react_buttons_1.Button, { role: "button", tabIndex: -1, icon: 'arrow-60-left', title: previousText, "aria-label": previousText, onClick: handlePrevClick }),
292
+ React.createElement(kendo_react_buttons_1.Button, { role: "button", tabIndex: -1, icon: 'arrow-60-right', title: nextText, "aria-label": nextText, onClick: handleNextClick }))),
295
293
  React.createElement(NavigationDatePicker_1.NavigationDatePicker, { value: date, onChange: handleDatePickerChange }),
296
294
  React.createElement(kendo_react_buttons_1.ToolbarSpacer, null),
297
295
  React.createElement(ViewSelector, null,
@@ -16,12 +16,14 @@ var main_1 = require("../../../main");
16
16
  var context_1 = require("../../../context");
17
17
  var kendo_react_intl_1 = require("@progress/kendo-react-intl");
18
18
  var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
19
+ var kendo_react_common_1 = require("@progress/kendo-react-common");
19
20
  var ViewSelectorItem_1 = require("./ViewSelectorItem");
20
21
  /** @hidden */
21
22
  exports.ViewSelectorList = React.forwardRef(function () {
22
23
  var element = React.useRef(null);
23
24
  var _a = React.useState('desktop'), media = _a[0], setMedia = _a[1];
24
25
  var views = main_1.useSchedulerViewsContext();
26
+ var getWindow = kendo_react_common_1.useWindow(element);
25
27
  var _b = context_1.useSchedulerActiveViewContext(), activeViewName = _b[0], setActiveViewName = _b[1];
26
28
  var activeView = views.find(function (v) { return v.props.name === activeViewName; });
27
29
  var localization = kendo_react_intl_1.useLocalization();
@@ -33,13 +35,13 @@ exports.ViewSelectorList = React.forwardRef(function () {
33
35
  setActiveViewName(event.item.name);
34
36
  }, [setActiveViewName]);
35
37
  var calculateMedia = function () {
36
- setMedia(window.matchMedia('(min-width: 1024px)').matches
38
+ setMedia(getWindow().matchMedia('(min-width: 1024px)').matches
37
39
  ? 'desktop'
38
40
  : 'mobile');
39
41
  };
40
42
  React.useEffect(function () {
41
43
  calculateMedia();
42
- var observer = new window.ResizeObserver(calculateMedia);
44
+ var observer = new (getWindow().ResizeObserver)(calculateMedia);
43
45
  observer.observe(element.current);
44
46
  return function () {
45
47
  observer.disconnect();
@@ -7,7 +7,7 @@ exports.packageMetadata = {
7
7
  name: '@progress/kendo-react-scheduler',
8
8
  productName: 'KendoReact',
9
9
  productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
10
- publishDate: 1652517246,
10
+ publishDate: 1653030720,
11
11
  version: '',
12
12
  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'
13
13
  };
@@ -75,7 +75,8 @@ exports.getUntil = function (rrule) {
75
75
  exports.getMonths = function (intl) {
76
76
  return intl.dateFormatNames({
77
77
  type: 'months',
78
- nameType: 'wide'
78
+ nameType: 'wide',
79
+ standAlone: true
79
80
  }).map(function (month, idx) { return ({
80
81
  text: month,
81
82
  value: idx + 1