@progress/kendo-themes-html 13.2.0-dev.2 → 13.2.0-dev.3
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/cjs/datetime-selector/datetime-selector.spec.js +1 -1
- package/dist/cjs/datetimepicker/datetimepicker.spec.js +1 -1
- package/dist/cjs/datetimepicker/demos/datetimepicker.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-adaptive.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-disabled.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-invalid.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-normal.js +1 -1
- package/dist/cjs/datetimepicker/templates/datetimepicker-popup.js +1 -1
- package/dist/cjs/grid/templates/grid-with-pinned-rows-pin-column.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-crop.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-normal.js +1 -1
- package/dist/cjs/imageeditor/templates/imageeditor-resize.js +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/cjs/scheduler/demos/scheduler.js +1 -1
- package/dist/cjs/scheduler/scheduler-toolbar.spec.js +1 -1
- package/dist/cjs/scheduler/scheduler.spec.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-agenda.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-day.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-agenda.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-day.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-horizontal-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-month.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-timeline.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-vertical-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-week.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-flex-year.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-horizontal-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-month.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-timeline.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-vertical-grouping.js +1 -1
- package/dist/cjs/scheduler/templates/scheduler-week.js +1 -1
- package/dist/cjs/segmented-control/segmented-control.spec.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-disabled.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-icons.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-normal.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-stretched.js +1 -1
- package/dist/cjs/segmented-control/templates/segmented-control-text.js +1 -1
- package/dist/esm/datetime-selector/datetime-selector.spec.mjs +1 -1
- package/dist/esm/datetimepicker/datetimepicker.spec.mjs +1 -1
- package/dist/esm/datetimepicker/demos/datetimepicker.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-adaptive.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-disabled.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-invalid.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-normal.mjs +1 -1
- package/dist/esm/datetimepicker/templates/datetimepicker-popup.mjs +1 -1
- package/dist/esm/grid/templates/grid-with-pinned-rows-pin-column.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-crop.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-normal.mjs +1 -1
- package/dist/esm/imageeditor/templates/imageeditor-resize.mjs +1 -1
- package/dist/esm/index.mjs +8 -8
- package/dist/esm/scheduler/demos/scheduler.mjs +1 -1
- package/dist/esm/scheduler/scheduler-toolbar.spec.mjs +1 -1
- package/dist/esm/scheduler/scheduler.spec.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-agenda.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-day.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-agenda.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-day.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-horizontal-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-month.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-timeline.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-vertical-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-week.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-flex-year.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-horizontal-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-month.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-timeline.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-vertical-grouping.mjs +1 -1
- package/dist/esm/scheduler/templates/scheduler-week.mjs +1 -1
- package/dist/esm/segmented-control/segmented-control.spec.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-disabled.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-icons.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-normal.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-stretched.mjs +1 -1
- package/dist/esm/segmented-control/templates/segmented-control-text.mjs +1 -1
- package/dist/types/segmented-control/segmented-control.spec.d.ts +1 -0
- package/package.json +2 -2
- package/src/action-sheet/tests/action-sheet-date-time-selector.tsx +9 -8
- package/src/datetime-selector/datetime-selector.spec.tsx +8 -9
- package/src/grid/templates/grid-with-pinned-rows-pin-column.tsx +2 -2
- package/src/grid/tests/grid-row-pinning-with-sticky-grouping.tsx +1 -1
- package/src/grid/tests/grid-row-pinning.tsx +8 -8
- package/src/imageeditor/templates/imageeditor-crop.tsx +5 -5
- package/src/scheduler/scheduler-toolbar.spec.tsx +8 -7
- package/src/scheduler/scheduler.spec.tsx +3 -4
- package/src/scheduler/templates/scheduler-agenda.tsx +8 -7
- package/src/scheduler/templates/scheduler-flex-agenda.tsx +8 -7
- package/src/scheduler/templates/scheduler-flex-day.tsx +8 -7
- package/src/scheduler/templates/scheduler-flex-month.tsx +8 -7
- package/src/scheduler/templates/scheduler-flex-timeline.tsx +8 -7
- package/src/scheduler/templates/scheduler-flex-week.tsx +8 -7
- package/src/scheduler/templates/scheduler-flex-year.tsx +7 -6
- package/src/scheduler/templates/scheduler-month.tsx +8 -7
- package/src/scheduler/templates/scheduler-timeline.tsx +8 -7
- package/src/scheduler/templates/scheduler-week.tsx +8 -7
- package/src/scheduler/tests/scheduler-current-time-marker.tsx +15 -14
- package/src/scheduler/tests/scheduler-events.tsx +8 -7
- package/src/scheduler/tests/scheduler-react-timeline-multi.tsx +8 -7
- package/src/segmented-control/segmented-control.spec.tsx +3 -1
- package/src/segmented-control/templates/segmented-control-icons.tsx +3 -3
- package/src/segmented-control/tests/segmented-control-sizes.tsx +3 -15
- package/src/segmented-control/tests/segmented-control-states.tsx +1 -5
- package/src/segmented-control/tests/segmented-control.tsx +20 -30
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerHead, SchedulerBody, SchedulerRow, SchedulerToolbar, SchedulerCell, SchedulerGroup, SchedulerEvent } from '../index';
|
|
4
5
|
|
|
5
6
|
export const SchedulerFlexDay = ({ style, ...props }: any) => (
|
|
@@ -18,13 +19,13 @@ export const SchedulerFlexDay = ({ style, ...props }: any) => (
|
|
|
18
19
|
Monday, June 24, 2024
|
|
19
20
|
</Button>
|
|
20
21
|
<span className="k-spacer"></span>
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
</
|
|
22
|
+
<SegmentedControl thumbStyles={{ width: "15%", left: "2px" }} className="k-scheduler-views">
|
|
23
|
+
<SegmentedControlButton selected>Day</SegmentedControlButton>
|
|
24
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
28
|
+
</SegmentedControl>
|
|
28
29
|
</SchedulerToolbar>
|
|
29
30
|
}
|
|
30
31
|
footer={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerHead, SchedulerBody, SchedulerRow, SchedulerToolbar, SchedulerCell, SchedulerGroup, SchedulerEvent } from '../index';
|
|
4
5
|
|
|
5
6
|
|
|
@@ -19,13 +20,13 @@ export const SchedulerFlexMonth = ({ style, ...props } :any) => (
|
|
|
19
20
|
June 23 2024
|
|
20
21
|
</Button>
|
|
21
22
|
<span className="k-spacer"></span>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
23
|
+
<SegmentedControl thumbStyles={{ width: "19%", left: "34%" }} className="k-scheduler-views">
|
|
24
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton selected>Month</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
children={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerHead, SchedulerBody, SchedulerRow, SchedulerToolbar, SchedulerCell, SchedulerStickyCell, SchedulerGroup } from '../index';
|
|
4
5
|
|
|
5
6
|
|
|
@@ -19,13 +20,13 @@ export const SchedulerFlexTimeline = ({ style, ...props }: any) => (
|
|
|
19
20
|
Friday, June 21, 2024
|
|
20
21
|
</Button>
|
|
21
22
|
<span className="k-spacer"></span>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
23
|
+
<SegmentedControl thumbStyles={{ width: "23%", left: "54%" }} className="k-scheduler-views">
|
|
24
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton selected>Timeline</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
footer={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerHead, SchedulerBody, SchedulerRow, SchedulerToolbar, SchedulerCell, SchedulerGroup } from '../index';
|
|
4
5
|
|
|
5
6
|
|
|
@@ -19,13 +20,13 @@ export const SchedulerFlexWeek = ({ style, ...props }: any) => (
|
|
|
19
20
|
6/23/2022 - 6/29/2022
|
|
20
21
|
</Button>
|
|
21
22
|
<span className="k-spacer"></span>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
23
|
+
<SegmentedControl thumbStyles={{ width: "18%", left: "16%" }} className="k-scheduler-views">
|
|
24
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton selected>Week</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
footer={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Calendar, CalendarTable, CalendarTableRow, CalendarCell } from '../../calendar';
|
|
4
5
|
import { Scheduler, SchedulerBody, SchedulerToolbar } from '../index';
|
|
5
6
|
|
|
@@ -20,12 +21,12 @@ export const SchedulerFlexYear = ({ style, ...props }: any) => (
|
|
|
20
21
|
2021
|
|
21
22
|
</Button>
|
|
22
23
|
<span className="k-spacer"></span>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
24
|
+
<SegmentedControl thumbStyles={{ width: "22%", right: "2px" }} className="k-scheduler-views">
|
|
25
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton selected>Year</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
children={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonGroup } from '../../button-group';
|
|
2
2
|
import { Button } from '../../button';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerBody, SchedulerCell, SchedulerContent, SchedulerHead, SchedulerHeader, SchedulerTable, SchedulerToolbar, SchedulerEvent } from '../index';
|
|
4
5
|
|
|
5
6
|
|
|
@@ -19,13 +20,13 @@ export const SchedulerMonth = ({ style, ...props }: any) => (
|
|
|
19
20
|
Jun, 2024
|
|
20
21
|
</Button>
|
|
21
22
|
<span className="k-spacer"></span>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
23
|
+
<SegmentedControl thumbStyles={{ width: "19%", left: "34%" }} className="k-scheduler-views">
|
|
24
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton selected>Month</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
children={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ButtonGroup } from '../../button-group';
|
|
2
2
|
import { Button } from '../../button';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerBody, SchedulerCell, SchedulerContent, SchedulerHead, SchedulerHeader, SchedulerTable, SchedulerToolbar, SchedulerTimes } from '../index';
|
|
4
5
|
|
|
5
6
|
|
|
@@ -19,13 +20,13 @@ export const SchedulerTimeline = ({ style, ...props }: any) => (
|
|
|
19
20
|
Monday, June 13, 2024
|
|
20
21
|
</Button>
|
|
21
22
|
<span className="k-spacer"></span>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
23
|
+
<SegmentedControl thumbStyles={{ width: "23%", left: "54%" }} className="k-scheduler-views">
|
|
24
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton selected>Timeline</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
footer={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { Scheduler, SchedulerBody, SchedulerCell, SchedulerContent, SchedulerHead, SchedulerHeader, SchedulerTable, SchedulerTimes, SchedulerToolbar, SchedulerEvent } from '../index';
|
|
4
5
|
|
|
5
6
|
|
|
@@ -19,13 +20,13 @@ export const SchedulerWeek = ({ style, ...props }: any) => (
|
|
|
19
20
|
10/04/2022 - 10/10/2022
|
|
20
21
|
</Button>
|
|
21
22
|
<span className="k-spacer"></span>
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
</
|
|
23
|
+
<SegmentedControl thumbStyles={{ width: "18%", left: "16%" }} className="k-scheduler-views">
|
|
24
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton selected>Week</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
29
|
+
</SegmentedControl>
|
|
29
30
|
</SchedulerToolbar>
|
|
30
31
|
}
|
|
31
32
|
footer={
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from "../../button";
|
|
2
2
|
import { ButtonGroup } from "../../button-group";
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from "../../segmented-control";
|
|
3
4
|
import { Toolbar } from "../../toolbar";
|
|
4
5
|
import { SchedulerBody, SchedulerCell, SchedulerContent, SchedulerEvent, SchedulerHead, SchedulerHeader, SchedulerTable, SchedulerTimeline, SchedulerTimes, SchedulerToolbar, SchedulerWeek } from "..";
|
|
5
6
|
import { Icon } from "../../icon";
|
|
@@ -20,13 +21,13 @@ export default () => (
|
|
|
20
21
|
Monday, June 10, 2013 - Friday, June 14, 2013
|
|
21
22
|
</Button>
|
|
22
23
|
<span className="k-spacer"></span>
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
</
|
|
24
|
+
<SegmentedControl thumbStyles={{ width: "18%", left: "16%" }} className="k-scheduler-views">
|
|
25
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton selected>Week</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
28
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
29
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
30
|
+
</SegmentedControl>
|
|
30
31
|
</SchedulerToolbar>
|
|
31
32
|
}
|
|
32
33
|
footer={
|
|
@@ -476,13 +477,13 @@ export default () => (
|
|
|
476
477
|
Monday, February 18, 2019
|
|
477
478
|
</Button>
|
|
478
479
|
<span className="k-spacer"></span>
|
|
479
|
-
<
|
|
480
|
-
<
|
|
481
|
-
<
|
|
482
|
-
<
|
|
483
|
-
<
|
|
484
|
-
<
|
|
485
|
-
</
|
|
480
|
+
<SegmentedControl thumbStyles={{ width: "23%", left: "54%" }} className="k-scheduler-views">
|
|
481
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
482
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
483
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
484
|
+
<SegmentedControlButton selected>Timeline</SegmentedControlButton>
|
|
485
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
486
|
+
</SegmentedControl>
|
|
486
487
|
</SchedulerToolbar>
|
|
487
488
|
</>
|
|
488
489
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Button } from '../../button';
|
|
2
2
|
import { ButtonGroup } from '../../button-group';
|
|
3
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
3
4
|
import { SchedulerBody, SchedulerCell, SchedulerContent, SchedulerEvent, SchedulerHead, SchedulerHeader, SchedulerTable, SchedulerTimes, SchedulerToolbar, SchedulerWeek } from '..';
|
|
4
5
|
import { Icon } from '../../icon';
|
|
5
6
|
|
|
@@ -18,13 +19,13 @@ export default () =>(
|
|
|
18
19
|
Monday, June 10, 2013 - Friday, June 14, 2013
|
|
19
20
|
</Button>
|
|
20
21
|
<span className="k-spacer"></span>
|
|
21
|
-
<
|
|
22
|
-
<
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
</
|
|
22
|
+
<SegmentedControl thumbStyles={{ width: "18%", left: "16%" }} className="k-scheduler-views">
|
|
23
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
24
|
+
<SegmentedControlButton selected>Week</SegmentedControlButton>
|
|
25
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
26
|
+
<SegmentedControlButton>Timeline</SegmentedControlButton>
|
|
27
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
28
|
+
</SegmentedControl>
|
|
28
29
|
</SchedulerToolbar>
|
|
29
30
|
}
|
|
30
31
|
footer={
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { Button } from '../../button';
|
|
3
3
|
import { ButtonGroup } from '../../button-group';
|
|
4
|
+
import { SegmentedControl, SegmentedControlButton } from '../../segmented-control';
|
|
4
5
|
import { SchedulerBody, SchedulerCell, SchedulerEvent, SchedulerFlexTimeline, SchedulerGroup, SchedulerHead, SchedulerRow, SchedulerStickyCell, SchedulerToolbar } from '../';
|
|
5
6
|
|
|
6
7
|
|
|
@@ -27,13 +28,13 @@ export default () =>(
|
|
|
27
28
|
Wednesday, June 24, 2020 - Thursday, June 25, 2020
|
|
28
29
|
</Button>
|
|
29
30
|
<span className="k-spacer"></span>
|
|
30
|
-
<
|
|
31
|
-
<
|
|
32
|
-
<
|
|
33
|
-
<
|
|
34
|
-
<
|
|
35
|
-
<
|
|
36
|
-
</
|
|
31
|
+
<SegmentedControl thumbStyles={{ width: "23%", left: "54%" }} className="k-scheduler-views">
|
|
32
|
+
<SegmentedControlButton>Day</SegmentedControlButton>
|
|
33
|
+
<SegmentedControlButton>Week</SegmentedControlButton>
|
|
34
|
+
<SegmentedControlButton>Month</SegmentedControlButton>
|
|
35
|
+
<SegmentedControlButton selected>Timeline</SegmentedControlButton>
|
|
36
|
+
<SegmentedControlButton>Agenda</SegmentedControlButton>
|
|
37
|
+
</SegmentedControl>
|
|
37
38
|
</SchedulerToolbar>
|
|
38
39
|
</>
|
|
39
40
|
}
|
|
@@ -17,6 +17,7 @@ export type KendoSegmentedControlOptions = {
|
|
|
17
17
|
export type KendoSegmentedControlProps = KendoSegmentedControlOptions & {
|
|
18
18
|
stretched?: boolean;
|
|
19
19
|
children?: React.ReactNode;
|
|
20
|
+
thumbStyles?: React.CSSProperties;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
23
|
export type KendoSegmentedControlState = { [K in (typeof states)[number]]?: boolean };
|
|
@@ -31,6 +32,7 @@ export const SegmentedControl: KendoComponent<KendoSegmentedControlProps & Kendo
|
|
|
31
32
|
size,
|
|
32
33
|
stretched,
|
|
33
34
|
children,
|
|
35
|
+
thumbStyles,
|
|
34
36
|
...other
|
|
35
37
|
} = props;
|
|
36
38
|
|
|
@@ -49,7 +51,7 @@ export const SegmentedControl: KendoComponent<KendoSegmentedControlProps & Kendo
|
|
|
49
51
|
)}
|
|
50
52
|
role="group"
|
|
51
53
|
>
|
|
52
|
-
<div className="k-segmented-control-thumb" aria-hidden="true"
|
|
54
|
+
<div className="k-segmented-control-thumb" aria-hidden="true" style={thumbStyles}/>
|
|
53
55
|
{ children }
|
|
54
56
|
</div>
|
|
55
57
|
);
|
|
@@ -4,9 +4,9 @@ import SegmentedControl from "../segmented-control.spec";
|
|
|
4
4
|
export const SegmentedControlIcons = (props) => (
|
|
5
5
|
<SegmentedControl {...props} children={
|
|
6
6
|
<>
|
|
7
|
-
<SegmentedControlButton icon="search" selected></SegmentedControlButton>
|
|
8
|
-
<SegmentedControlButton icon="sparkles"></SegmentedControlButton>
|
|
9
|
-
<SegmentedControlButton icon="home"></SegmentedControlButton>
|
|
7
|
+
<SegmentedControlButton aria-label="Search" icon="search" selected></SegmentedControlButton>
|
|
8
|
+
<SegmentedControlButton aria-label="Sparkles" icon="sparkles"></SegmentedControlButton>
|
|
9
|
+
<SegmentedControlButton aria-label="Home" icon="home"></SegmentedControlButton>
|
|
10
10
|
</>
|
|
11
11
|
} />
|
|
12
12
|
);
|
|
@@ -12,18 +12,6 @@ const styles = `
|
|
|
12
12
|
align-items: center;
|
|
13
13
|
justify-items: start;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
.k-segmented-control-thumb {
|
|
17
|
-
width: 100px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.segmented-control-icons .k-segmented-control-thumb {
|
|
21
|
-
width: 45px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.segmented-control-text .k-segmented-control-thumb {
|
|
25
|
-
width: 70px;
|
|
26
|
-
}
|
|
27
15
|
`;
|
|
28
16
|
|
|
29
17
|
export default () => (
|
|
@@ -38,9 +26,9 @@ export default () => (
|
|
|
38
26
|
{SegmentedControl.options.size.map((size) => (
|
|
39
27
|
<>
|
|
40
28
|
<span>{`${size}`}</span>
|
|
41
|
-
<SegmentedControlNormal size={size} />
|
|
42
|
-
<SegmentedControlIcons size={size}
|
|
43
|
-
<SegmentedControlText size={size}
|
|
29
|
+
<SegmentedControlNormal size={size} thumbStyles={{ width: "50%" }}/>
|
|
30
|
+
<SegmentedControlIcons size={size} thumbStyles={{ width: "33%" }}/>
|
|
31
|
+
<SegmentedControlText size={size} thumbStyles={{ width: "50%" }}/>
|
|
44
32
|
</>
|
|
45
33
|
))}
|
|
46
34
|
</div>
|
|
@@ -9,10 +9,6 @@ const styles = `
|
|
|
9
9
|
gap: 10px;
|
|
10
10
|
justify-items: start;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
.k-segmented-control-thumb {
|
|
14
|
-
width: 180px;
|
|
15
|
-
}
|
|
16
12
|
`;
|
|
17
13
|
|
|
18
14
|
export default () => (
|
|
@@ -20,7 +16,7 @@ export default () => (
|
|
|
20
16
|
<style>{styles}</style>
|
|
21
17
|
<div id="test-area" className="k-d-grid">
|
|
22
18
|
|
|
23
|
-
<SegmentedControl>
|
|
19
|
+
<SegmentedControl thumbStyles={{ width: "20%" }}>
|
|
24
20
|
{SegmentedControlButton.states.map((state) => (
|
|
25
21
|
<SegmentedControlButton key={state} {...{ [state]: true }}>{state}</SegmentedControlButton>
|
|
26
22
|
))}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SegmentedControlNormal } from
|
|
2
|
-
|
|
1
|
+
import { SegmentedControlNormal } from "../../segmented-control";
|
|
3
2
|
|
|
4
3
|
const styles = `
|
|
5
4
|
#test-area>section {
|
|
@@ -9,35 +8,26 @@ const styles = `
|
|
|
9
8
|
gap: 10px;
|
|
10
9
|
justify-items: start;
|
|
11
10
|
}
|
|
12
|
-
|
|
13
|
-
.k-segmented-control-thumb {
|
|
14
|
-
width: 100px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.full-width .k-segmented-control-thumb {
|
|
18
|
-
width: 300px;
|
|
19
|
-
}
|
|
20
11
|
`;
|
|
21
12
|
|
|
22
13
|
export default () => (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</>
|
|
14
|
+
<>
|
|
15
|
+
<style>{styles}</style>
|
|
16
|
+
<div id="test-area">
|
|
17
|
+
<section>
|
|
18
|
+
<div>Default</div>
|
|
19
|
+
<SegmentedControlNormal thumbStyles={{ width: "50%" }} />
|
|
20
|
+
</section>
|
|
21
|
+
|
|
22
|
+
<section style={{ width: "200px" }}>
|
|
23
|
+
<div>Stretched (small width) - items with equal widths</div>
|
|
24
|
+
<SegmentedControlNormal thumbStyles={{ width: "50%" }} stretched />
|
|
25
|
+
</section>
|
|
26
|
+
|
|
27
|
+
<section>
|
|
28
|
+
<div>Stretched - 100% width - items with equal widths</div>
|
|
29
|
+
<SegmentedControlNormal thumbStyles={{ width: "50%" }} stretched className="full-width" />
|
|
30
|
+
</section>
|
|
31
|
+
</div>
|
|
32
|
+
</>
|
|
43
33
|
);
|