@ui5/webcomponents 2.29.0-rc.0 → 2.29.0
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/CHANGELOG.md +56 -0
- package/README.md +12 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/Carousel.d.ts +4 -1
- package/dist/Carousel.js +9 -2
- package/dist/Carousel.js.map +1 -1
- package/dist/CarouselTemplate.js +5 -5
- package/dist/CarouselTemplate.js.map +1 -1
- package/dist/ComboBox.js +1 -2
- package/dist/ComboBox.js.map +1 -1
- package/dist/ComboBoxItem.js +1 -1
- package/dist/ComboBoxItem.js.map +1 -1
- package/dist/ComboBoxItemTemplate.js +6 -1
- package/dist/ComboBoxItemTemplate.js.map +1 -1
- package/dist/ComboBoxPopoverTemplate.js +2 -3
- package/dist/ComboBoxPopoverTemplate.js.map +1 -1
- package/dist/DateTimePicker.d.ts +20 -0
- package/dist/DateTimePicker.js +40 -1
- package/dist/DateTimePicker.js.map +1 -1
- package/dist/DateTimePickerTemplate.js +27 -13
- package/dist/DateTimePickerTemplate.js.map +1 -1
- package/dist/Input.js +1 -3
- package/dist/Input.js.map +1 -1
- package/dist/ListItemTemplate.js +1 -1
- package/dist/ListItemTemplate.js.map +1 -1
- package/dist/Popup.js +3 -0
- package/dist/Popup.js.map +1 -1
- package/dist/SuggestionItem.js +1 -1
- package/dist/SuggestionItem.js.map +1 -1
- package/dist/SuggestionItemTemplate.js +6 -1
- package/dist/SuggestionItemTemplate.js.map +1 -1
- package/dist/TabContainer.d.ts +1 -1
- package/dist/Table.d.ts +2 -0
- package/dist/Table.js +2 -0
- package/dist/Table.js.map +1 -1
- package/dist/TableDragAndDrop.d.ts +3 -0
- package/dist/TableDragAndDrop.js +44 -1
- package/dist/TableDragAndDrop.js.map +1 -1
- package/dist/TableHeaderCell.d.ts +33 -0
- package/dist/TableHeaderCell.js +79 -2
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableNavigation.js +4 -2
- package/dist/TableNavigation.js.map +1 -1
- package/dist/TableRow.d.ts +1 -0
- package/dist/TableRow.js +17 -10
- package/dist/TableRow.js.map +1 -1
- package/dist/TableUtils.d.ts +2 -1
- package/dist/TableUtils.js +8 -1
- package/dist/TableUtils.js.map +1 -1
- package/dist/TimePicker.d.ts +17 -22
- package/dist/TimePicker.js +57 -70
- package/dist/TimePicker.js.map +1 -1
- package/dist/TimePickerPopoverTemplate.js +8 -5
- package/dist/TimePickerPopoverTemplate.js.map +1 -1
- package/dist/TimeSelectionInputs.d.ts +5 -0
- package/dist/TimeSelectionInputs.js +15 -1
- package/dist/TimeSelectionInputs.js.map +1 -1
- package/dist/TimeSelectionInputsTemplate.js +12 -3
- package/dist/TimeSelectionInputsTemplate.js.map +1 -1
- package/dist/Tree.js +2 -1
- package/dist/Tree.js.map +1 -1
- package/dist/css/themes/CalendarHeader.css +1 -1
- package/dist/css/themes/DateTimePickerPopover.css +1 -1
- package/dist/css/themes/ListItem.css +1 -1
- package/dist/css/themes/OptionBase.css +1 -1
- package/dist/css/themes/TabInStrip.css +1 -1
- package/dist/css/themes/TableHeaderCell.css +1 -1
- package/dist/css/themes/TimePickerPopover.css +1 -1
- package/dist/css/themes/TimeSelectionInputs.css +1 -1
- package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_auto/parameters-bundle.css +1 -1
- package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
- package/dist/custom-elements-internal.json +142 -104
- package/dist/custom-elements.json +136 -104
- package/dist/features/InputSuggestions.d.ts +0 -1
- package/dist/features/InputSuggestions.js +0 -4
- package/dist/features/InputSuggestions.js.map +1 -1
- package/dist/generated/assets/i18n/messagebundle_en.json +1 -1
- package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_auto/parameters-bundle.css.json +1 -1
- package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
- package/dist/generated/i18n/i18n-defaults.d.ts +11 -1
- package/dist/generated/i18n/i18n-defaults.js +11 -1
- package/dist/generated/i18n/i18n-defaults.js.map +1 -1
- package/dist/generated/themes/CalendarHeader.css.d.ts +1 -1
- package/dist/generated/themes/CalendarHeader.css.js +1 -1
- package/dist/generated/themes/CalendarHeader.css.js.map +1 -1
- package/dist/generated/themes/DateTimePickerPopover.css.d.ts +1 -1
- package/dist/generated/themes/DateTimePickerPopover.css.js +1 -1
- package/dist/generated/themes/DateTimePickerPopover.css.js.map +1 -1
- package/dist/generated/themes/ListItem.css.d.ts +1 -1
- package/dist/generated/themes/ListItem.css.js +1 -1
- package/dist/generated/themes/ListItem.css.js.map +1 -1
- package/dist/generated/themes/OptionBase.css.d.ts +1 -1
- package/dist/generated/themes/OptionBase.css.js +1 -1
- package/dist/generated/themes/OptionBase.css.js.map +1 -1
- package/dist/generated/themes/TabInStrip.css.d.ts +1 -1
- package/dist/generated/themes/TabInStrip.css.js +1 -1
- package/dist/generated/themes/TabInStrip.css.js.map +1 -1
- package/dist/generated/themes/TableHeaderCell.css.d.ts +1 -1
- package/dist/generated/themes/TableHeaderCell.css.js +1 -1
- package/dist/generated/themes/TableHeaderCell.css.js.map +1 -1
- package/dist/generated/themes/TimePickerPopover.css.d.ts +1 -1
- package/dist/generated/themes/TimePickerPopover.css.js +1 -1
- package/dist/generated/themes/TimePickerPopover.css.js.map +1 -1
- package/dist/generated/themes/TimeSelectionInputs.css.d.ts +1 -1
- package/dist/generated/themes/TimeSelectionInputs.css.js +1 -1
- package/dist/generated/themes/TimeSelectionInputs.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js.map +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
- package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
- package/dist/vscode.html-custom-data.json +8 -3
- package/dist/web-types.json +30 -6
- package/llms.txt +180 -0
- package/package.json +13 -10
- package/src/CarouselTemplate.tsx +3 -4
- package/src/ComboBoxItemTemplate.tsx +9 -2
- package/src/ComboBoxPopoverTemplate.tsx +2 -3
- package/src/DateTimePickerTemplate.tsx +53 -22
- package/src/ListItemTemplate.tsx +1 -1
- package/src/SuggestionItemTemplate.tsx +8 -1
- package/src/TimePickerPopoverTemplate.tsx +52 -67
- package/src/TimeSelectionInputsTemplate.tsx +48 -28
- package/src/i18n/messagebundle.properties +30 -0
- package/src/i18n/messagebundle_en.properties +10 -0
- package/src/themes/CalendarHeader.css +0 -1
- package/src/themes/DateTimePickerPopover.css +11 -6
- package/src/themes/ListItem.css +2 -1
- package/src/themes/OptionBase.css +17 -2
- package/src/themes/TableHeaderCell.css +14 -0
- package/src/themes/TimePickerPopover.css +8 -7
- package/src/themes/TimeSelectionInputs.css +45 -1
- package/src/themes/sap_horizon/CalendarHeader-parameters.css +0 -1
- package/src/themes/sap_horizon_dark/CalendarHeader-parameters.css +0 -1
package/src/ListItemTemplate.tsx
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import ListItemBaseTemplate from "./ListItemBaseTemplate.js";
|
|
2
2
|
import type SuggestionItem from "./SuggestionItem.js";
|
|
3
|
+
import highlightText from "@ui5/webcomponents-base/dist/util/highlightText.js";
|
|
3
4
|
|
|
4
5
|
export default function SuggestionItemTemplate(this: SuggestionItem) {
|
|
5
6
|
return [ListItemBaseTemplate.call(this, { listItemContent }, { role: "option" })];
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
function listItemContent(this: SuggestionItem) {
|
|
10
|
+
const text = this.text ?? "";
|
|
11
|
+
const highlightedMarkup = this.markupText ? highlightText(text, this.markupText) : undefined;
|
|
12
|
+
|
|
9
13
|
return <div part="content" id="content" class="ui5-li-content">
|
|
10
14
|
<div class="ui5-li-text-wrapper">
|
|
11
|
-
|
|
15
|
+
{highlightedMarkup
|
|
16
|
+
? <span part="title" className="ui5-li-title" dangerouslySetInnerHTML={{ __html: highlightedMarkup }}></span>
|
|
17
|
+
: <span part="title" className="ui5-li-title">{text}</span>
|
|
18
|
+
}
|
|
12
19
|
{this.additionalText &&
|
|
13
20
|
<span part="additional-text" class="ui5-li-additional-text">{this.additionalText}</span>
|
|
14
21
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type TimePicker from "./TimePicker.js";
|
|
2
|
+
import Bar from "./Bar.js";
|
|
2
3
|
import Button from "./Button.js";
|
|
3
|
-
import Popover from "./Popover.js";
|
|
4
4
|
import Icon from "./Icon.js";
|
|
5
5
|
import ResponsivePopover from "./ResponsivePopover.js";
|
|
6
6
|
import TimeSelectionClocks from "./TimeSelectionClocks.js";
|
|
@@ -10,89 +10,74 @@ import error from "@ui5/webcomponents-icons/dist/error.js";
|
|
|
10
10
|
import alert from "@ui5/webcomponents-icons/dist/alert.js";
|
|
11
11
|
import sysEnter2 from "@ui5/webcomponents-icons/dist/sys-enter-2.js";
|
|
12
12
|
import information from "@ui5/webcomponents-icons/dist/information.js";
|
|
13
|
+
import keyboardAndMouse from "@ui5/webcomponents-icons/dist/keyboard-and-mouse.js";
|
|
14
|
+
import timeEntryRequest from "@ui5/webcomponents-icons/dist/time-entry-request.js";
|
|
13
15
|
|
|
14
16
|
export default function TimePickerPopoverTemplate(this: TimePicker) {
|
|
15
17
|
return (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
{ !!this.showHeader && defaultHeader.call(this) }
|
|
18
|
+
<ResponsivePopover
|
|
19
|
+
id={`${this._id}-responsive-popover`}
|
|
20
|
+
class="ui5-time-picker-popover ui5-popover-with-value-state-header-phone"
|
|
21
|
+
placement="Bottom"
|
|
22
|
+
horizontalAlign="Start"
|
|
23
|
+
opener={this}
|
|
24
|
+
open={this.open}
|
|
25
|
+
allowTargetOverlap={true}
|
|
26
|
+
_hideHeader={this._shouldHideHeader}
|
|
27
|
+
hideArrow={true}
|
|
28
|
+
preventInitialFocus={this._preventPickerInitialFocus}
|
|
29
|
+
accessibleName={this.pickerAccessibleName}
|
|
30
|
+
onClose={this.onResponsivePopoverAfterClose}
|
|
31
|
+
onBeforeOpen={this.onResponsivePopoverBeforeOpen}
|
|
32
|
+
onOpen={this.onResponsivePopoverAfterOpen}
|
|
33
|
+
onWheel={this._handleWheel}
|
|
34
|
+
onKeyDown={this._onkeydown}
|
|
35
|
+
>
|
|
36
|
+
{ !!this.showHeader && defaultHeader.call(this) }
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
{ this.shouldDisplayValueStateMessageInResponsivePopover && valueStateTextHeader.call(this) }
|
|
38
39
|
|
|
39
|
-
|
|
40
|
+
{ this._useInputs
|
|
41
|
+
? <TimeSelectionInputs
|
|
42
|
+
id={`${this._id}-time-sel`}
|
|
43
|
+
class="ui5-tp-mode-inputs"
|
|
44
|
+
value={this._timeSelectionValue}
|
|
45
|
+
formatPattern={this._formatPattern}
|
|
46
|
+
_showLabels={true}
|
|
47
|
+
onChange={this.onTimeSelectionChange}
|
|
48
|
+
/>
|
|
49
|
+
: <TimeSelectionClocks
|
|
40
50
|
id={`${this._id}-time-sel`}
|
|
41
51
|
value={this._timeSelectionValue}
|
|
42
52
|
formatPattern={this._formatPattern}
|
|
43
53
|
onChange={this.onTimeSelectionChange}
|
|
44
54
|
onClosePicker={this.submitPickers}
|
|
45
55
|
/>
|
|
46
|
-
|
|
47
|
-
<div slot="footer" class="ui5-time-picker-footer">
|
|
48
|
-
<Button id="submit" design="Emphasized" onClick={this.submitPickers}>{this.submitButtonLabel}</Button>
|
|
49
|
-
<Button id="close" design="Transparent" onClick={this._togglePicker}>{this.cancelButtonLabel}</Button>
|
|
50
|
-
</div>
|
|
51
|
-
</ResponsivePopover>
|
|
52
|
-
|
|
53
|
-
{this._isMobileDevice &&
|
|
54
|
-
<Popover
|
|
55
|
-
id={`${this._id}-popover`}
|
|
56
|
-
class="ui5-time-picker-inputs-popover"
|
|
57
|
-
placement="Bottom"
|
|
58
|
-
horizontalAlign="Start"
|
|
59
|
-
allow-target-overlap
|
|
60
|
-
_hide-header
|
|
61
|
-
hide-arrow
|
|
62
|
-
onOpen={this.onInputsPopoverAfterOpen}
|
|
63
|
-
onClose={this.onInputsPopoverAfterClose}
|
|
64
|
-
onWheel={this._handleWheel}
|
|
65
|
-
onKeyDown={this._onkeydown}
|
|
66
|
-
>
|
|
67
|
-
{ this.hasValueStateText && valueStateTextHeader.call(this) }
|
|
68
|
-
|
|
69
|
-
<div class="popover-content">
|
|
70
|
-
<TimeSelectionInputs
|
|
71
|
-
id={`${this._id}-time-sel-inputs`}
|
|
72
|
-
value={this._timeSelectionValue}
|
|
73
|
-
formatPattern={this._formatPattern}
|
|
74
|
-
onChange={this.onTimeSelectionChange}
|
|
75
|
-
onCloseInputs={this.submitInputsPopover}
|
|
76
|
-
/>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
<div slot="footer" class="ui5-time-picker-footer">
|
|
80
|
-
<Button id="submitInputs" design="Emphasized" onClick={this.submitInputsPopover}>{this.submitButtonLabel}</Button>
|
|
81
|
-
<Button id="closeInputs" design="Transparent" onClick={this.closeInputsPopover}>{this.cancelButtonLabel}</Button>
|
|
82
|
-
</div>
|
|
83
|
-
</Popover>
|
|
84
56
|
}
|
|
85
|
-
|
|
57
|
+
|
|
58
|
+
<div slot="footer" class="ui5-time-picker-footer">
|
|
59
|
+
<Button id="submit" design="Emphasized" onClick={this.submitPickers}>{this.submitButtonLabel}</Button>
|
|
60
|
+
<Button id="close" design="Transparent" onClick={this._togglePicker}>{this.cancelButtonLabel}</Button>
|
|
61
|
+
</div>
|
|
62
|
+
</ResponsivePopover>
|
|
86
63
|
);
|
|
87
64
|
}
|
|
88
65
|
|
|
89
66
|
function defaultHeader(this: TimePicker) {
|
|
90
67
|
return (
|
|
91
|
-
<
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
68
|
+
<Bar slot="header" design="Header">
|
|
69
|
+
<span class="ui5-tp-header-title" slot="startContent">{this._headerTitleText}</span>
|
|
70
|
+
<Button
|
|
71
|
+
id={`${this._id}-mode-toggle`}
|
|
72
|
+
slot="endContent"
|
|
73
|
+
design="Transparent"
|
|
74
|
+
icon={this._useInputs ? timeEntryRequest : keyboardAndMouse}
|
|
75
|
+
tooltip={this._pickerModeToggleLabel}
|
|
76
|
+
accessibleName={this._pickerModeToggleAccessibleName}
|
|
77
|
+
accessibleDescription={this._pickerModeToggleAccessibleDesc}
|
|
78
|
+
onClick={this._togglePickerMode}
|
|
79
|
+
/>
|
|
80
|
+
</Bar>
|
|
96
81
|
);
|
|
97
82
|
}
|
|
98
83
|
|
|
@@ -1,49 +1,69 @@
|
|
|
1
1
|
import type TimeSelectionInputs from "./TimeSelectionInputs.js";
|
|
2
2
|
import Input from "./Input.js";
|
|
3
|
+
import Label from "./Label.js";
|
|
3
4
|
import SegmentedButton from "./SegmentedButton.js";
|
|
4
5
|
import SegmentedButtonItem from "./SegmentedButtonItem.js";
|
|
5
6
|
|
|
6
7
|
export default function TimeSelectionInputsTemplate(this: TimeSelectionInputs) {
|
|
8
|
+
const shortLabels: Record<string, string> = {
|
|
9
|
+
hours: this.hoursShortLabel,
|
|
10
|
+
minutes: this.minutesShortLabel,
|
|
11
|
+
seconds: this.secondsShortLabel,
|
|
12
|
+
};
|
|
13
|
+
|
|
7
14
|
return (
|
|
8
15
|
<div
|
|
9
|
-
class="ui5-time-selection-inputs"
|
|
16
|
+
class={{ "ui5-time-selection-inputs": true, "ui5-time-selection-inputs--labeled": this._showLabels }}
|
|
10
17
|
onKeyDown={this._onkeydown}
|
|
11
18
|
>
|
|
12
|
-
|
|
13
|
-
{this._entities.map(entity => (
|
|
14
|
-
|
|
19
|
+
{this._entities.map((entity, index) => (
|
|
15
20
|
<>
|
|
16
|
-
{
|
|
17
|
-
|
|
21
|
+
{ !this._showLabels && entity.hasSeparator &&
|
|
22
|
+
<span class="ui5-time-selection-separator">:</span>
|
|
23
|
+
}
|
|
24
|
+
{ this._showLabels && index > 0 &&
|
|
25
|
+
<span class="ui5-time-selection-separator">:</span>
|
|
18
26
|
}
|
|
19
27
|
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
28
|
+
<div class={{ "ui5-time-selection-input-cell": this._showLabels }}>
|
|
29
|
+
{ this._showLabels &&
|
|
30
|
+
<Label class="ui5-time-selection-input-label">
|
|
31
|
+
{shortLabels[entity.entity ?? ""] ?? entity.label}
|
|
32
|
+
</Label>
|
|
33
|
+
}
|
|
34
|
+
<Input
|
|
35
|
+
id={`${this._id}_input_${entity.entity}`}
|
|
36
|
+
class="ui5-time-selection-numeric-input"
|
|
37
|
+
type={this._numberType}
|
|
38
|
+
maxlength={2}
|
|
39
|
+
autocomplete="off"
|
|
40
|
+
pattern="[0-9]*"
|
|
41
|
+
inputmode="numeric"
|
|
42
|
+
value={entity.stringValue}
|
|
43
|
+
accessibleName={entity.label}
|
|
44
|
+
_nativeInputAttributes={entity.attributes}
|
|
45
|
+
data-sap-focus-ref={index === 0}
|
|
46
|
+
onFocusIn={this._onfocusin}
|
|
47
|
+
onFocusOut={this._onfocusout}
|
|
48
|
+
onInput={this._oninput}
|
|
49
|
+
/>
|
|
50
|
+
</div>
|
|
35
51
|
</>
|
|
36
52
|
))}
|
|
37
53
|
|
|
38
54
|
{this._periods.length > 0 &&
|
|
39
55
|
<>
|
|
40
|
-
<span class="ui5-time-selection-separator"></span>
|
|
41
|
-
<
|
|
42
|
-
{this.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
56
|
+
{ !this._showLabels && <span class="ui5-time-selection-separator"></span> }
|
|
57
|
+
<div class={{ "ui5-time-selection-input-cell": this._showLabels, "ui5-time-selection-ampm-cell": this._showLabels }}>
|
|
58
|
+
{ this._showLabels && <Label class="ui5-time-selection-input-label"> </Label> }
|
|
59
|
+
<SegmentedButton id={`${this._id}_AmPm`} onClick={this._periodChange}>
|
|
60
|
+
{this._periods.map(period =>
|
|
61
|
+
<SegmentedButtonItem selected={period.selected}>{period.label}</SegmentedButtonItem>
|
|
62
|
+
)}
|
|
63
|
+
</SegmentedButton>
|
|
64
|
+
</div>
|
|
46
65
|
</>
|
|
47
66
|
}
|
|
48
|
-
</div>
|
|
67
|
+
</div>
|
|
68
|
+
);
|
|
49
69
|
}
|
|
@@ -627,6 +627,36 @@ TIMEPICKER_INPUTS_ENTER_MINUTES=Please enter minutes
|
|
|
627
627
|
#XACT: Time Picker Inputs tooltip/aria-label for Seconds input
|
|
628
628
|
TIMEPICKER_INPUTS_ENTER_SECONDS=Please enter seconds
|
|
629
629
|
|
|
630
|
+
#XLBL: Short label for Hours field in time picker input mode
|
|
631
|
+
TIMEPICKER_HOURS_LABEL_SHORT=Hours:
|
|
632
|
+
|
|
633
|
+
#XLBL: Short label for Minutes field in time picker input mode
|
|
634
|
+
TIMEPICKER_MINUTES_LABEL_SHORT=Min:
|
|
635
|
+
|
|
636
|
+
#XLBL: Short label for Seconds field in time picker input mode
|
|
637
|
+
TIMEPICKER_SECONDS_LABEL_SHORT=Sec:
|
|
638
|
+
|
|
639
|
+
#XACT: Time Picker toggle button to switch to keyboard input mode
|
|
640
|
+
TIMEPICKER_SWITCH_TO_KEYBOARD=Switch to keyboard input
|
|
641
|
+
|
|
642
|
+
#XACT: Time Picker toggle button to switch to clock view
|
|
643
|
+
TIMEPICKER_SWITCH_TO_CLOCK=Switch to clock view
|
|
644
|
+
|
|
645
|
+
#XBUT: Accessible name for the Time Picker toggle view button (phone only)
|
|
646
|
+
TIMEPICKER_TOGGLE_INPUT_VIEW_LABEL=Input view
|
|
647
|
+
|
|
648
|
+
#XMSG: Accessible description for the mode-toggle button when in clock view — prompts user to switch to input view
|
|
649
|
+
TIMEPICKER_TOGGLE_DESC_CLOCK_VIEW=Screen reader users should switch to Input view to enter a time.
|
|
650
|
+
|
|
651
|
+
#XMSG: Accessible description for the mode-toggle button when already in inputs view
|
|
652
|
+
TIMEPICKER_TOGGLE_DESC_INPUTS_VIEW=Screen reader users can use this view to enter a time.
|
|
653
|
+
|
|
654
|
+
#XMSG: Assertive announcement when switching to keyboard input view
|
|
655
|
+
TIMEPICKER_ANNOUNCE_KEYBOARD=Time input view displayed
|
|
656
|
+
|
|
657
|
+
#XMSG: Assertive announcement when switching back to clock view
|
|
658
|
+
TIMEPICKER_ANNOUNCE_CLOCK=Clock view
|
|
659
|
+
|
|
630
660
|
#XACT: Time Picker 'Open Picker' icon title
|
|
631
661
|
TIMEPICKER_OPEN_ICON_TITLE=Open Picker
|
|
632
662
|
|
|
@@ -418,6 +418,16 @@ TIMEPICKER_INPUTS_ENTER_MINUTES=Please enter minutes
|
|
|
418
418
|
|
|
419
419
|
TIMEPICKER_INPUTS_ENTER_SECONDS=Please enter seconds
|
|
420
420
|
|
|
421
|
+
TIMEPICKER_TOGGLE_INPUT_VIEW_LABEL=Input view
|
|
422
|
+
|
|
423
|
+
TIMEPICKER_TOGGLE_DESC_CLOCK_VIEW=Screen reader users should switch to Input view to enter a time.
|
|
424
|
+
|
|
425
|
+
TIMEPICKER_TOGGLE_DESC_INPUTS_VIEW=Screen reader users can use this view to enter a time.
|
|
426
|
+
|
|
427
|
+
TIMEPICKER_ANNOUNCE_KEYBOARD=Time input view displayed
|
|
428
|
+
|
|
429
|
+
TIMEPICKER_ANNOUNCE_CLOCK=Clock view
|
|
430
|
+
|
|
421
431
|
TIMEPICKER_OPEN_ICON_TITLE=Open Picker
|
|
422
432
|
|
|
423
433
|
TIMEPICKER_OPEN_ICON_TITLE_OPENED=Close Picker
|
|
@@ -46,7 +46,6 @@
|
|
|
46
46
|
.ui5-calheader-arrowbtn:hover {
|
|
47
47
|
background-color: var(--sapButton_Lite_Hover_Background);
|
|
48
48
|
color: var(--sapButton_Lite_Hover_TextColor);
|
|
49
|
-
box-shadow: var(--_ui5_calendar_header_arrow_button_box_shadow);
|
|
50
49
|
border-color: var(--sapButton_Lite_Hover_BorderColor);
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -38,12 +38,17 @@
|
|
|
38
38
|
display: none;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
.ui5-dt-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
.ui5-dt-header-title {
|
|
42
|
+
font-family: var(--sapFontHeaderFamily);
|
|
43
|
+
font-size: var(--sapFontHeader5Size);
|
|
44
|
+
color: var(--sapPageHeader_TextColor);
|
|
45
|
+
overflow: hidden;
|
|
46
|
+
text-overflow: ellipsis;
|
|
47
|
+
white-space: nowrap;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.ui5-dt-mode-inputs {
|
|
51
|
+
padding: 1rem;
|
|
47
52
|
}
|
|
48
53
|
|
|
49
54
|
.ui5-dt-picker-separator {
|
package/src/themes/ListItem.css
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
+
:host(:not([hidden])) {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
1
5
|
:host {
|
|
2
|
-
height:
|
|
6
|
+
height: auto;
|
|
7
|
+
min-height: var(--_ui5_list_item_dropdown_base_height);
|
|
3
8
|
--_ui5_list_item_title_size: var(--sapFontSize);
|
|
4
9
|
}
|
|
5
10
|
|
|
11
|
+
:host .ui5-li-root {
|
|
12
|
+
height: auto;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:host .ui5-li-content {
|
|
16
|
+
padding-block: 0.375rem;
|
|
17
|
+
overflow: visible;
|
|
18
|
+
white-space: normal;
|
|
19
|
+
}
|
|
20
|
+
|
|
6
21
|
:host(:active[actionable]:not([data-moving])),
|
|
7
22
|
:host(:active[actionable][selected]:not([data-moving])) {
|
|
8
23
|
background-color: var(--sapList_Active_Background);
|
|
9
24
|
border-bottom-color: var(--sapList_Active_Background);
|
|
10
|
-
}
|
|
25
|
+
}
|
|
@@ -12,6 +12,20 @@
|
|
|
12
12
|
padding: 0;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
:host([interactive]) {
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (hover: hover) {
|
|
20
|
+
:host([interactive]:hover) {
|
|
21
|
+
background: var(--sapList_Hover_Background);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([interactive][_active]) {
|
|
26
|
+
background: var(--sapList_Active_Background);
|
|
27
|
+
}
|
|
28
|
+
|
|
15
29
|
[ui5-icon] {
|
|
16
30
|
margin-inline-start: 0.375rem;
|
|
17
31
|
width: 1rem;
|
|
@@ -2,11 +2,17 @@
|
|
|
2
2
|
width: 20rem;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
.ui5-
|
|
6
|
-
justify-content: flex-start;
|
|
5
|
+
.ui5-tp-header-title {
|
|
7
6
|
font-family: var(--sapFontHeaderFamily);
|
|
8
7
|
font-size: var(--sapFontHeader5Size);
|
|
9
8
|
color: var(--sapPageHeader_TextColor);
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
text-overflow: ellipsis;
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.ui5-tp-mode-inputs {
|
|
15
|
+
padding: 1rem;
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
.ui5-time-picker-footer {
|
|
@@ -23,9 +29,4 @@
|
|
|
23
29
|
|
|
24
30
|
.ui5-time-picker-popover::part(content) {
|
|
25
31
|
padding: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ui5-time-picker-inputs-popover::part(header) {
|
|
29
|
-
padding: 0;
|
|
30
|
-
width: 100%;
|
|
31
32
|
}
|
|
@@ -10,6 +10,33 @@
|
|
|
10
10
|
align-items: center;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/* Labeled layout for keyboard input mode on mobile */
|
|
14
|
+
.ui5-time-selection-inputs--labeled {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
width: 100%;
|
|
17
|
+
flex-wrap: wrap;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
align-items: flex-end;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ui5-time-selection-input-cell {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
align-items: stretch;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/* In labeled mode all cells same width so separators are equidistant */
|
|
30
|
+
.ui5-time-selection-inputs--labeled .ui5-time-selection-input-cell {
|
|
31
|
+
width: 2.875rem;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ui5-time-selection-input-label {
|
|
36
|
+
display: block;
|
|
37
|
+
margin-bottom: 0.25rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
13
40
|
.ui5-time-selection-separator {
|
|
14
41
|
display: inline-block;
|
|
15
42
|
min-width: 0.5rem;
|
|
@@ -18,8 +45,25 @@
|
|
|
18
45
|
font-family: var(--sapFontFamily);
|
|
19
46
|
font-size: var(--sapFontSize);
|
|
20
47
|
color: var(--sapTextColor);
|
|
48
|
+
line-height: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* In labeled mode align separator to center of input */
|
|
52
|
+
.ui5-time-selection-inputs--labeled .ui5-time-selection-separator {
|
|
53
|
+
height: var(--_ui5_input_height, 2.25rem);
|
|
54
|
+
line-height: var(--_ui5_input_height, 2.25rem);
|
|
55
|
+
padding-bottom: 0.25rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* AM/PM always on its own row in labeled mode */
|
|
59
|
+
.ui5-time-selection-inputs--labeled .ui5-time-selection-ampm-cell {
|
|
60
|
+
flex-basis: 100%;
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
align-items: center;
|
|
64
|
+
margin-top: 0.5rem;
|
|
21
65
|
}
|
|
22
66
|
|
|
23
67
|
.ui5-hidden-text {
|
|
24
68
|
display: none;
|
|
25
|
-
}
|
|
69
|
+
}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
--_ui5_calendar_header_middle_button_focus_after_top_offset: 0.125rem;
|
|
7
7
|
--_ui5_calendar_header_middle_button_focus_after_left_offset: 0.125rem;
|
|
8
8
|
--_ui5_calendar_header_arrow_button_border_radius: 0.5rem;
|
|
9
|
-
--_ui5_calendar_header_arrow_button_box_shadow: 0 0 0.125rem 0 rgb(85 107 130 / 72%);
|
|
10
9
|
--_ui5_calendar_header_middle_button_focus_border_radius: 0.5rem;
|
|
11
10
|
--_ui5_calendar_header_middle_button_focus_border: none;
|
|
12
11
|
--_ui5_calendar_header_middle_button_focus_after_border: none;
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
--_ui5_calendar_header_middle_button_focus_after_top_offset: 0.125rem;
|
|
7
7
|
--_ui5_calendar_header_middle_button_focus_after_left_offset: 0.125rem;
|
|
8
8
|
--_ui5_calendar_header_arrow_button_border_radius: 0.5rem;
|
|
9
|
-
--_ui5_calendar_header_arrow_button_box_shadow: 0 0 0.125rem 0 rgb(85 107 130 / 72%);
|
|
10
9
|
--_ui5_calendar_header_middle_button_focus_border_radius: 0.5rem;
|
|
11
10
|
--_ui5_calendar_header_middle_button_focus_border: none;
|
|
12
11
|
--_ui5_calendar_header_middle_button_focus_after_border: none;
|