@ui5/webcomponents 2.26.0 → 2.27.0-rc.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.
Files changed (168) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/Avatar.d.ts +7 -0
  4. package/dist/Avatar.js +18 -5
  5. package/dist/Avatar.js.map +1 -1
  6. package/dist/ComboBoxItemGroup.d.ts +2 -0
  7. package/dist/ComboBoxItemGroup.js +2 -0
  8. package/dist/ComboBoxItemGroup.js.map +1 -1
  9. package/dist/DatePicker.d.ts +14 -0
  10. package/dist/DatePicker.js +14 -0
  11. package/dist/DatePicker.js.map +1 -1
  12. package/dist/ListBoxItemGroupTemplate.js +1 -1
  13. package/dist/ListBoxItemGroupTemplate.js.map +1 -1
  14. package/dist/ListItemBaseTemplate.d.ts +2 -0
  15. package/dist/ListItemBaseTemplate.js +1 -1
  16. package/dist/ListItemBaseTemplate.js.map +1 -1
  17. package/dist/MultiComboBoxItemGroup.d.ts +2 -0
  18. package/dist/MultiComboBoxItemGroup.js +2 -0
  19. package/dist/MultiComboBoxItemGroup.js.map +1 -1
  20. package/dist/NumberInput.d.ts +271 -0
  21. package/dist/NumberInput.js +719 -0
  22. package/dist/NumberInput.js.map +1 -0
  23. package/dist/NumberInputTemplate.d.ts +2 -0
  24. package/dist/NumberInputTemplate.js +18 -0
  25. package/dist/NumberInputTemplate.js.map +1 -0
  26. package/dist/Option.d.ts +10 -0
  27. package/dist/Option.js +6 -0
  28. package/dist/Option.js.map +1 -1
  29. package/dist/OptionGroup.d.ts +34 -0
  30. package/dist/OptionGroup.js +61 -0
  31. package/dist/OptionGroup.js.map +1 -0
  32. package/dist/OptionGroupTemplate.d.ts +2 -0
  33. package/dist/OptionGroupTemplate.js +6 -0
  34. package/dist/OptionGroupTemplate.js.map +1 -0
  35. package/dist/OptionTemplate.js +6 -1
  36. package/dist/OptionTemplate.js.map +1 -1
  37. package/dist/Select.d.ts +19 -2
  38. package/dist/Select.js +79 -28
  39. package/dist/Select.js.map +1 -1
  40. package/dist/SelectPopoverTemplate.js +1 -1
  41. package/dist/SelectPopoverTemplate.js.map +1 -1
  42. package/dist/SelectTemplate.js +2 -1
  43. package/dist/SelectTemplate.js.map +1 -1
  44. package/dist/StepInput.d.ts +14 -127
  45. package/dist/StepInput.js +40 -472
  46. package/dist/StepInput.js.map +1 -1
  47. package/dist/StepInputTemplate.js +4 -15
  48. package/dist/StepInputTemplate.js.map +1 -1
  49. package/dist/SuggestionItemGroup.d.ts +2 -0
  50. package/dist/SuggestionItemGroup.js +2 -0
  51. package/dist/SuggestionItemGroup.js.map +1 -1
  52. package/dist/bundle.esm.js +2 -0
  53. package/dist/bundle.esm.js.map +1 -1
  54. package/dist/css/themes/NumberInput.css +1 -0
  55. package/dist/css/themes/OptionGroup.css +1 -0
  56. package/dist/css/themes/StepInput.css +1 -1
  57. package/dist/css/themes/TimePickerClock.css +1 -1
  58. package/dist/css/themes/TimeSelectionClocks.css +1 -1
  59. package/dist/css/themes/sap_fiori_3/parameters-bundle.css +1 -1
  60. package/dist/css/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  61. package/dist/css/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  62. package/dist/css/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  63. package/dist/css/themes/sap_horizon/parameters-bundle.css +1 -1
  64. package/dist/css/themes/sap_horizon_auto/parameters-bundle.css +30 -22
  65. package/dist/css/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  66. package/dist/css/themes/sap_horizon_hc_auto/parameters-bundle.css +31 -24
  67. package/dist/css/themes/sap_horizon_hcb/parameters-bundle.css +1 -1
  68. package/dist/css/themes/sap_horizon_hcw/parameters-bundle.css +1 -1
  69. package/dist/custom-elements-internal.json +734 -142
  70. package/dist/custom-elements.json +666 -182
  71. package/dist/generated/assets/i18n/messagebundle_de.json +1 -1
  72. package/dist/generated/assets/i18n/messagebundle_pl.json +1 -1
  73. package/dist/generated/assets/i18n/messagebundle_ru.json +1 -1
  74. package/dist/generated/assets/themes/sap_fiori_3/parameters-bundle.css.json +1 -1
  75. package/dist/generated/assets/themes/sap_fiori_3_dark/parameters-bundle.css.json +1 -1
  76. package/dist/generated/assets/themes/sap_fiori_3_hcb/parameters-bundle.css.json +1 -1
  77. package/dist/generated/assets/themes/sap_fiori_3_hcw/parameters-bundle.css.json +1 -1
  78. package/dist/generated/assets/themes/sap_horizon/parameters-bundle.css.json +1 -1
  79. package/dist/generated/assets/themes/sap_horizon_auto/parameters-bundle.css.json +1 -1
  80. package/dist/generated/assets/themes/sap_horizon_dark/parameters-bundle.css.json +1 -1
  81. package/dist/generated/assets/themes/sap_horizon_hc_auto/parameters-bundle.css.json +1 -1
  82. package/dist/generated/assets/themes/sap_horizon_hcb/parameters-bundle.css.json +1 -1
  83. package/dist/generated/assets/themes/sap_horizon_hcw/parameters-bundle.css.json +1 -1
  84. package/dist/generated/i18n/i18n-defaults.d.ts +7 -6
  85. package/dist/generated/i18n/i18n-defaults.js +7 -6
  86. package/dist/generated/i18n/i18n-defaults.js.map +1 -1
  87. package/dist/generated/themes/NumberInput.css.d.ts +2 -0
  88. package/dist/generated/themes/NumberInput.css.js +8 -0
  89. package/dist/generated/themes/NumberInput.css.js.map +1 -0
  90. package/dist/generated/themes/OptionGroup.css.d.ts +2 -0
  91. package/dist/generated/themes/OptionGroup.css.js +8 -0
  92. package/dist/generated/themes/OptionGroup.css.js.map +1 -0
  93. package/dist/generated/themes/StepInput.css.d.ts +1 -1
  94. package/dist/generated/themes/StepInput.css.js +1 -1
  95. package/dist/generated/themes/StepInput.css.js.map +1 -1
  96. package/dist/generated/themes/TimePickerClock.css.d.ts +1 -1
  97. package/dist/generated/themes/TimePickerClock.css.js +1 -1
  98. package/dist/generated/themes/TimePickerClock.css.js.map +1 -1
  99. package/dist/generated/themes/TimeSelectionClocks.css.d.ts +1 -1
  100. package/dist/generated/themes/TimeSelectionClocks.css.js +1 -1
  101. package/dist/generated/themes/TimeSelectionClocks.css.js.map +1 -1
  102. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.d.ts +1 -1
  103. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js +1 -1
  104. package/dist/generated/themes/sap_fiori_3/parameters-bundle.css.js.map +1 -1
  105. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.d.ts +1 -1
  106. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js +1 -1
  107. package/dist/generated/themes/sap_fiori_3_dark/parameters-bundle.css.js.map +1 -1
  108. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.d.ts +1 -1
  109. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js +1 -1
  110. package/dist/generated/themes/sap_fiori_3_hcb/parameters-bundle.css.js.map +1 -1
  111. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.d.ts +1 -1
  112. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js +1 -1
  113. package/dist/generated/themes/sap_fiori_3_hcw/parameters-bundle.css.js.map +1 -1
  114. package/dist/generated/themes/sap_horizon/parameters-bundle.css.d.ts +1 -1
  115. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js +1 -1
  116. package/dist/generated/themes/sap_horizon/parameters-bundle.css.js.map +1 -1
  117. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.d.ts +1 -1
  118. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js +30 -22
  119. package/dist/generated/themes/sap_horizon_auto/parameters-bundle.css.js.map +1 -1
  120. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.d.ts +1 -1
  121. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js +1 -1
  122. package/dist/generated/themes/sap_horizon_dark/parameters-bundle.css.js.map +1 -1
  123. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.d.ts +1 -1
  124. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.js +31 -24
  125. package/dist/generated/themes/sap_horizon_hc_auto/parameters-bundle.css.js.map +1 -1
  126. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.d.ts +1 -1
  127. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js +1 -1
  128. package/dist/generated/themes/sap_horizon_hcb/parameters-bundle.css.js.map +1 -1
  129. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.d.ts +1 -1
  130. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js +1 -1
  131. package/dist/generated/themes/sap_horizon_hcw/parameters-bundle.css.js.map +1 -1
  132. package/dist/vscode.html-custom-data.json +105 -5
  133. package/dist/web-types.json +272 -10
  134. package/package.json +9 -9
  135. package/src/ListBoxItemGroupTemplate.tsx +1 -1
  136. package/src/ListItemBaseTemplate.tsx +4 -0
  137. package/src/NumberInputTemplate.tsx +95 -0
  138. package/src/OptionGroupTemplate.tsx +20 -0
  139. package/src/OptionTemplate.tsx +6 -1
  140. package/src/SelectPopoverTemplate.tsx +1 -1
  141. package/src/SelectTemplate.tsx +6 -0
  142. package/src/StepInputTemplate.tsx +23 -86
  143. package/src/i18n/messagebundle.properties +10 -8
  144. package/src/i18n/messagebundle_de.properties +2 -2
  145. package/src/i18n/messagebundle_pl.properties +1 -1
  146. package/src/i18n/messagebundle_ru.properties +1 -1
  147. package/src/themes/NumberInput.css +321 -0
  148. package/src/themes/OptionGroup.css +28 -0
  149. package/src/themes/StepInput.css +0 -276
  150. package/src/themes/TimePickerClock.css +1 -1
  151. package/src/themes/TimeSelectionClocks.css +1 -1
  152. package/src/themes/base/NumberInput-parameters.css +31 -0
  153. package/src/themes/base/sizes-parameters.css +3 -3
  154. package/src/themes/sap_fiori_3/parameters-bundle.css +1 -1
  155. package/src/themes/sap_fiori_3_dark/parameters-bundle.css +1 -1
  156. package/src/themes/sap_fiori_3_hcb/parameters-bundle.css +1 -1
  157. package/src/themes/sap_fiori_3_hcw/parameters-bundle.css +1 -1
  158. package/src/themes/sap_horizon/NumberInput-parameters.css +26 -0
  159. package/src/themes/sap_horizon/parameters-bundle.css +1 -1
  160. package/src/themes/sap_horizon_dark/NumberInput-parameters.css +26 -0
  161. package/src/themes/sap_horizon_dark/parameters-bundle.css +1 -1
  162. package/src/themes/sap_horizon_hcb/NumberInput-parameters.css +14 -0
  163. package/src/themes/sap_horizon_hcb/parameters-bundle.css +2 -1
  164. package/src/themes/sap_horizon_hcw/NumberInput-parameters.css +14 -0
  165. package/src/themes/sap_horizon_hcw/parameters-bundle.css +2 -1
  166. package/src/themes/base/StepInput-parameters.css +0 -25
  167. package/src/themes/sap_horizon/StepInput-parameters.css +0 -25
  168. package/src/themes/sap_horizon_dark/StepInput-parameters.css +0 -25
@@ -1,94 +1,31 @@
1
1
  import type StepInput from "./StepInput.js";
2
- import Icon from "./Icon.js";
3
- import Input from "./Input.js";
4
-
5
- import less from "@ui5/webcomponents-icons/dist/less.js";
6
- import add from "@ui5/webcomponents-icons/dist/add.js";
2
+ import NumberInput from "./NumberInput.js";
7
3
 
8
4
  export default function StepInputTemplate(this: StepInput) {
9
5
  return (
10
- <div
11
- id={`${this._id}`}
12
- class="ui5-step-input-root"
13
- onKeyDown={this._onkeydown}
14
- onFocusIn={this._onfocusin}
15
- onFocusOut={this._onfocusout}
16
- onWheel={this._onMouseWheel}
6
+ <NumberInput
7
+ _showStepButtons={true}
8
+ _externalAriaLabel={this._associatedLabelText}
9
+ value={this.value}
10
+ min={this.min}
11
+ max={this.max}
12
+ step={this.step}
13
+ valueState={this.valueState}
14
+ required={this.required}
15
+ disabled={this.disabled}
16
+ readonly={this.readonly}
17
+ placeholder={this.placeholder}
18
+ valuePrecision={this.valuePrecision}
19
+ accessibleName={this.accessibleName}
20
+ accessibleNameRef={this.accessibleNameRef}
21
+ onChange={this._onNumberInputChange}
22
+ onInput={this._onNumberInputInput}
23
+ onValueStateChange={this._onNumberInputValueStateChange}
24
+ onui5-_request-submit={this._onRequestSubmit}
17
25
  >
18
- {/* Decrement Icon */}
19
- {!this.readonly &&
20
- <div
21
- class="ui5-step-icon ui5-step-dec"
22
- title={this.decIconTitle}
23
- >
24
- <Icon
25
- id={`${this._id}-dec`}
26
- name={less}
27
- tabindex={-1}
28
- accessibleName={this.decIconTitle}
29
- onClick={this._decValue}
30
- onFocusOut={this._onButtonFocusOut}
31
- onMouseDown={this._decSpin}
32
- onMouseUp={this._resetSpin}
33
- onMouseOut={this._resetSpinOut}
34
- class={{
35
- "inputIcon": true,
36
- "ui5-step-input-icon--clickable": this._decIconClickable,
37
- }}
38
- showTooltip={true}
39
- />
40
- </div>
41
- }
42
-
43
- {/* INPUT */}
44
- <Input
45
- id={`${this._id}-inner`}
46
- data-sap-focus-ref
47
- class="ui5-step-input-input"
48
- placeholder={this.placeholder}
49
- type={this.type}
50
- value={this._displayValue}
51
- disabled={this.disabled}
52
- required={this.required}
53
- readonly={this.readonly}
54
- onui5-_request-submit={this._onInputRequestSubmit}
55
- valueState={this.valueState}
56
- _inputAccInfo={this.accInfo}
57
- _nativeInputAttributes={this.inputAttributes}
58
- onChange={this._onInputChange}
59
- onFocusOut={this._onInputFocusOut}
60
- onFocusIn={this._onInputFocusIn}
61
- onInput={this._onInput}
62
- >
63
- {this.valueStateMessage.length > 0 &&
64
- <slot name="valueStateMessage" slot="valueStateMessage"></slot>
65
- }
66
- </Input>
67
-
68
- {/* Increment Icon */}
69
- {!this.readonly &&
70
- <div
71
- class="ui5-step-icon ui5-step-inc"
72
- title={this.incIconTitle}
73
- >
74
- <Icon
75
- id={`${this._id}-inc`}
76
- class={{
77
- "inputIcon": true,
78
- "ui5-step-input-icon--clickable": this._incIconClickable,
79
- }}
80
- name={add}
81
- tabindex={-1}
82
- accessibleName={this.incIconTitle}
83
- onClick={this._incValue}
84
- onFocusOut={this._onButtonFocusOut}
85
- onMouseDown={this._incSpin}
86
- onMouseUp={this._resetSpin}
87
- onMouseOut={this._resetSpinOut}
88
- showTooltip={true}
89
- />
90
- </div>
26
+ {this.valueStateMessage.length > 0 &&
27
+ <slot name="valueStateMessage" slot="valueStateMessage"></slot>
91
28
  }
92
- </div>
29
+ </NumberInput>
93
30
  );
94
31
  }
@@ -321,6 +321,9 @@ SELECT_ROLE_DESCRIPTION=Listbox
321
321
  #XTXT: MultiComboBox and ComboBox icon accessible name
322
322
  SELECT_OPTIONS=Select Options
323
323
 
324
+ #XTXT: Announced by screen reader when Select with grouped options is opened; {0} is the option count, {1} is the group count
325
+ SELECT_OPTIONS_IN_GROUPS={0} results are available in {1} groups
326
+
324
327
  #XACT: ARIA announcement prefix for Select dialog accessible name on mobile (without trailing space)
325
328
  SELECT_POPOVER_ACCESSIBLE_NAME_PREFIX=Select:
326
329
 
@@ -793,18 +796,17 @@ SLIDER_TOOLTIP_INPUT_DESCRIPTION = Press F2 to enter a value
793
796
  #XACT: ARIA label for slider tooltip input
794
797
  SLIDER_TOOLTIP_INPUT_LABEL = Current Value
795
798
 
796
- #XTOL: tooltip for decrease button of the StepInput
797
- STEPINPUT_DEC_ICON_TITLE=Decrease
798
-
799
- #XTOL: tooltip for increase button of the StepInput
800
- STEPINPUT_INC_ICON_TITLE=Increase
799
+ #XTOL: tooltip for decrease button of the NumberInput
800
+ NUMBERINPUT_DEC_ICON_TITLE=Decrease
801
801
 
802
- STEPINPUT_PATTER_MISSMATCH=This format is not supported. Fill in a number with {0} decimal places.
802
+ #XTOL: tooltip for increase button of the NumberInput
803
+ NUMBERINPUT_INC_ICON_TITLE=Increase
803
804
 
804
- STEPINPUT_RANGEOVERFLOW=Fill in a number that is lower than the set max. value of {0}.
805
+ NUMBERINPUT_PATTERN_MISSMATCH=This format is not supported. Fill in a number with {0} decimal places.
805
806
 
806
- STEPINPUT_RANGEUNDERFLOW=Fill in a number that is higher than the set min. value of {0}.
807
+ NUMBERINPUT_RANGEOVERFLOW=Fill in a number that is lower than the set max. value of {0}.
807
808
 
809
+ NUMBERINPUT_RANGEUNDERFLOW=Fill in a number that is higher than the set min. value of {0}.
808
810
  #XACT: Aria information for the Split Button
809
811
  SPLIT_BUTTON_DESCRIPTION=Split Button
810
812
 
@@ -222,11 +222,11 @@ SELECT_ROLE_DESCRIPTION=Listenfeld
222
222
 
223
223
  SELECT_OPTIONS=Auswahloptionen
224
224
 
225
- SELECT_POPOVER_ACCESSIBLE_NAME_PREFIX=Auswählen:
225
+ SELECT_POPOVER_ACCESSIBLE_NAME_PREFIX=Markieren:
226
226
 
227
227
  SELECT_LISTBOX_LABEL=Alle Elemente
228
228
 
229
- SHOW_SELECTED_BUTTON=Nur ausgewählte Elemente einblenden
229
+ SHOW_SELECTED_BUTTON=Nur markierte Elemente einblenden
230
230
 
231
231
  INPUT_SUGGESTIONS=Es sind Vorschläge verfügbar
232
232
 
@@ -222,7 +222,7 @@ SELECT_ROLE_DESCRIPTION=Pole listy
222
222
 
223
223
  SELECT_OPTIONS=Wybierz opcje
224
224
 
225
- SELECT_POPOVER_ACCESSIBLE_NAME_PREFIX=Wybierz:
225
+ SELECT_POPOVER_ACCESSIBLE_NAME_PREFIX=Wybór:
226
226
 
227
227
  SELECT_LISTBOX_LABEL=Wszystkie pozycje
228
228
 
@@ -643,7 +643,7 @@ TABLE_MORE_DESCRIPTION=Нажмите Enter или пробел, чтобы за
643
643
  TABLE_ROW_ACTIONS=Действия со строкой
644
644
  TABLE_ROW_SINGLE_ACTION=Доступно действий со строкой: 1
645
645
  TABLE_ROW_MULTIPLE_ACTIONS=Доступно действий со строкой: {0}
646
- TABLE_ROW_OVERFLOW_BUTTON=Другие операции
646
+ TABLE_ROW_OVERFLOW_BUTTON=Другие действия
647
647
  TABLE_NAVIGATION=Навигация
648
648
  TABLE_GENERATED_BY_AI=Сгенерировано с помощью ИИ
649
649
  TABLE_SELECT_ALL_ROWS=Выбрать все строки
@@ -0,0 +1,321 @@
1
+ @import "./FormComponents.css";
2
+ @import "./InvisibleTextStyles.css";
3
+ @import "./InputIcon.css";
4
+ @import "./InputSharedStyles.css";
5
+
6
+ :host(:not([hidden])) {
7
+ display: inline-block;
8
+ line-height: normal;
9
+ letter-spacing: normal;
10
+ word-spacing: normal;
11
+ }
12
+
13
+ :host([disabled]) {
14
+ opacity: var(--_ui5_input_disabled_opacity);
15
+ cursor: default;
16
+ pointer-events: none;
17
+ background-color: var(--_ui5-input_disabled_background);
18
+ border-color: var(--_ui5_input_disabled_border_color);
19
+ }
20
+
21
+ :host {
22
+ color: var(--sapField_TextColor);
23
+ background-color: var(--sapField_Background);
24
+ border: var(--_ui5_number_input_border_style);
25
+ border-radius: var(--sapField_BorderCornerRadius);
26
+ box-sizing: border-box;
27
+ height: var(--_ui5_input_height);
28
+ position: relative;
29
+ isolation: isolate;
30
+ overflow: hidden;
31
+ margin: var(--_ui5_input_margin_top_bottom) 0;
32
+ min-width: var(--_ui5_number_input_min_width);
33
+ text-align: right;
34
+ user-select: none;
35
+ -moz-user-select: none;
36
+ -webkit-user-select: none;
37
+ -ms-user-select: none;
38
+ }
39
+
40
+ [ui5-input] {
41
+ --ui5_input_focus_pseudo_element_content: none;
42
+ }
43
+
44
+ :host .ui5-number-input-input {
45
+ text-align: inherit;
46
+ height: inherit;
47
+ }
48
+
49
+ :host(:not([value-state]):not([readonly]):not([disabled])){
50
+ box-shadow: none;
51
+ }
52
+
53
+ :host([value-state="Information"]:not([readonly]):not([disabled])) {
54
+ border-width: var(--_ui5_input_information_border_width);
55
+ }
56
+
57
+ :host([readonly]:not([disabled])) {
58
+ border-width: var(--sapElement_BorderWidth);
59
+ }
60
+
61
+ :host([value-state="Negative"]:not([readonly]):not([disabled])),
62
+ :host([value-state="Critical"]:not([readonly]):not([disabled])),
63
+ :host([value-state="Information"]:not([readonly]):not([disabled])) {
64
+ border-style: var(--_ui5_number_input_error_warning_information_border_style);
65
+ }
66
+
67
+ :host(:not([value-state]):not([readonly]):not([disabled]):hover),
68
+ :host([value-state="None"]:not([readonly]):not([disabled]):hover) {
69
+ background-color: var(--_ui5_number_input_border_color_hover);
70
+ border: var(--_ui5_number_input_border_hover);
71
+ }
72
+ :host(:not([value-state]):not([readonly]):not([disabled]):not([focused]):hover),
73
+ :host([value-state="None"]:not([readonly]):not([disabled]):not([focused]):hover) {
74
+ background-color: var(--sapField_Hover_Background);
75
+ border: var(--_ui5_number_input_border_style_hover);
76
+ box-shadow: var(--sapField_Hover_Shadow);
77
+ }
78
+
79
+ :host([value-state="Positive"]:not([readonly]):not([disabled]):not([focused]):hover) {
80
+ box-shadow: var(--sapField_Hover_SuccessShadow);
81
+ }
82
+
83
+ :host([value-state="Information"]:not([readonly]):not([disabled]):not([focused]):hover) {
84
+ box-shadow: var(--sapField_Hover_InformationShadow);
85
+ }
86
+
87
+ :host([value-state="Critical"]:not([readonly]):not([disabled]):not([focused]):hover) {
88
+ box-shadow: var(--sapField_Hover_WarningShadow);
89
+ }
90
+
91
+ :host([value-state="Negative"]:not([readonly]):not([disabled]):not([focused]):hover) {
92
+ box-shadow: var(--sapField_Hover_InvalidShadow);
93
+ }
94
+
95
+ :host([value-state="Positive"]:not([readonly]):not([disabled]):hover),
96
+ :host([value-state="Negative"]:not([readonly]):not([disabled]):hover),
97
+ :host([value-state="Information"]:not([readonly]):not([disabled]):hover),
98
+ :host([value-state="Critical"]:not([readonly]):not([disabled]):hover) {
99
+ background-color: var(--_ui5_number_input_button_state_hover_background_color);
100
+ }
101
+
102
+ :host(:not([value-state]):not([readonly]):not([disabled])[focused]),
103
+ :host([value-state="None"]:not([readonly]):not([disabled])[focused]),
104
+ :host([value-state="Positive"]:not([readonly]):not([disabled])[focused]),
105
+ :host([value-state="Information"]:not([readonly]):not([disabled])[focused]),
106
+ :host([value-state="Critical"]:not([readonly]):not([disabled])[focused]){
107
+ background-color: var(--sapField_Focus_Background);
108
+ }
109
+
110
+ :host([value-state="Negative"]:not([readonly]):not([disabled])[focused]) {
111
+ background-color: var(--_ui5_number_input_error_focused_background);
112
+ }
113
+
114
+ :host([value-state="Negative"]:not([readonly]):not([disabled]):hover),
115
+ :host([value-state="Negative"]:not([readonly]):not([disabled])[focused]:hover) {
116
+ background-color: var(--_ui5_number_input_error_hover_background);
117
+ }
118
+
119
+ :host([value-state="Positive"]:not([readonly]):not([disabled]))::after,
120
+ :host([value-state="Negative"]:not([readonly]):not([disabled]))::after,
121
+ :host([value-state="None"]:not([readonly]):not([disabled]))::after,
122
+ :host([value-state="Information"]:not([readonly]):not([disabled]))::after,
123
+ :host([value-state="Critical"]:not([readonly]):not([disabled]))::after {
124
+ position: absolute;
125
+ content: "";
126
+ top: -1px;
127
+ right: -1px;
128
+ bottom: -1px;
129
+ left: -1px;
130
+ outline: none;
131
+ pointer-events: none;
132
+ border-radius: var(--sapField_BorderCornerRadius);
133
+ border-style: var(--_ui5_number_input_after_border_style);
134
+ z-index: 0;
135
+ border-width: 0px;
136
+ }
137
+
138
+ :host([value-state="Information"]:not([readonly]):not([disabled]))::after {
139
+ border-color: var(--sapField_InformationColor);
140
+ border-width: var(--_ui5_input_information_border_width);
141
+ }
142
+
143
+ :host([value-state="Critical"]:not([readonly]):not([disabled]))::after {
144
+ border-color: var(--sapField_WarningColor);
145
+ border-width: 2px;
146
+ }
147
+
148
+ :host([value-state="Positive"]:not([readonly]):not([disabled]))::after {
149
+ border-color: var(--sapField_SuccessColor);
150
+ border-width: 1px;
151
+ }
152
+
153
+ :host([value-state="Negative"]:not([readonly]):not([disabled]))::after {
154
+ border-color: var(--sapField_InvalidColor);
155
+ border-width: var(--_ui5_input_information_border_width);
156
+ }
157
+
158
+ :host([value-state])::after {
159
+ border-width: var(--_ui5_input_state_border_width);
160
+ }
161
+ :host([value-state="Negative"]:not([readonly]):not([disabled])) .ui5-number-input-input {
162
+ background-color: var(--_ui5_number_input_error_background_color);
163
+ }
164
+
165
+ :host([value-state]:not([value-state="None"]) .ui5-number-input-input[focused]) {
166
+ outline: none;
167
+ }
168
+
169
+ :host .ui5-number-input-input {
170
+ width: 100%;
171
+ color: inherit;
172
+ background-color: inherit;
173
+ border: var(--_ui5_number_input_input_border);
174
+ box-sizing: border-box;
175
+ vertical-align: top;
176
+ margin-top: var(--_ui5_number_input_input_margin_top);
177
+ min-width: var(--_ui5_number_input_min_width);
178
+ position: relative;
179
+ outline: none;
180
+ line-height: inherit;
181
+ letter-spacing: inherit;
182
+ word-spacing: inherit;
183
+ }
184
+
185
+ :host .ui5-number-input-root.ui5-number-input-root--with-buttons .ui5-number-input-input {
186
+ padding-inline-start: var(--_ui5_number_input_padding_with_step_buttons);
187
+ padding-inline-end: var(--_ui5_number_input_padding_with_step_buttons);
188
+ }
189
+
190
+ :host .ui5-number-input-input[readonly] {
191
+ padding: 0;
192
+ }
193
+
194
+ :host .ui5-number-input-input:hover,
195
+ :host .ui5-number-input-input[focused]{
196
+ box-shadow: none;
197
+ }
198
+
199
+ :host .ui5-number-input-root {
200
+ line-height: inherit;
201
+ letter-spacing: inherit;
202
+ word-spacing: inherit;
203
+ height: inherit;
204
+ }
205
+
206
+ :host .ui5-number-input-input::part(input) {
207
+ white-space: nowrap;
208
+ }
209
+
210
+ :host .ui5-number-input-input[text-align=left]::part(input) {
211
+ text-align: left;
212
+ }
213
+
214
+ :host .ui5-number-input-input[text-align=center]::part(input) {
215
+ text-align: center;
216
+ }
217
+
218
+ :host .ui5-number-input-input[text-align=right]::part(input) {
219
+ text-align: right;
220
+ }
221
+
222
+ ::slotted([slot="valueStateMessage"]) {
223
+ text-align: left;
224
+ }
225
+
226
+ :host .ui5-step-icon {
227
+ position: absolute;
228
+ display: var(--_ui5_number_input_button_display);
229
+ height: 2rem;
230
+ height: 100%;
231
+ background-color: var(--_ui5_number_input_button_background_color);
232
+ z-index: 0;
233
+ }
234
+
235
+ :host .ui5-step-icon[focused] {
236
+ border: none;
237
+ outline: none;
238
+ }
239
+
240
+ :host .ui5-step-icon.ui5-step-dec {
241
+ left: var(--_ui5_number_input_button_left);
242
+ z-index: 1;
243
+ }
244
+
245
+ :host .ui5-step-icon.ui5-step-inc {
246
+ right: var(--_ui5_number_input_button_right);
247
+ }
248
+
249
+ :host .ui5-step-icon *:not(.ui5-number-input-icon--clickable),
250
+ :host .ui5-step-icon *:not(.ui5-number-input-icon--clickable):active,
251
+ :host .ui5-step-icon *:not(.ui5-number-input-icon--clickable):hover {
252
+ opacity: 0.5;
253
+ background-color: transparent;
254
+ color: var(--sapContent_IconColor);
255
+ }
256
+
257
+ :host .ui5-step-icon :not(.ui5-number-input-icon--clickable) *:hover,
258
+ :host .ui5-step-icon :not(.ui5-number-input-icon--clickable) *:active {
259
+ background-color: var(--sapField_Background);
260
+ color: var(--sapContent_IconColor);
261
+ }
262
+
263
+ :host .ui5-number-input-input[focused]::after {
264
+ position: absolute;
265
+ content: "";
266
+ border: var(--_ui5_number_input_input_border_focused_after);
267
+ top: var(--_ui5_number_input_input_border_top_bottom_focused_after);
268
+ right: 0px;
269
+ bottom: var(--_ui5_number_input_input_border_bottom_focused_after);
270
+ border-radius: var(--_ui5_number_input_input_border_radius_focused_after);
271
+ left: 0px;
272
+ outline: none;
273
+ pointer-events: none;
274
+ z-index: 1;
275
+ }
276
+
277
+ :host([readonly]) .ui5-number-input-input[focused]::after{
278
+ top: var(--_ui5_input_readonly_focus_offset);
279
+ bottom: var(--_ui5_input_readonly_focus_offset);
280
+ left: var(--_ui5_input_readonly_focus_offset);
281
+ right: var(--_ui5_input_readonly_focus_offset);
282
+ border-radius: var(--_ui5_input_readonly_focus_border_radius);
283
+ border-color: var(--sapContent_FocusColor);
284
+ }
285
+
286
+ :host .ui5-number-input-input[focused] {
287
+ outline: none;
288
+ }
289
+
290
+ :host([value-state="Information"]:not([readonly]):not([disabled])) .ui5-number-input-input[focused]::after {
291
+ border-color: var(--_ui5_number_input_input_information_border_color_focused_after);
292
+ top: var(--_ui5_number_input_input_border_top_information_focused_after);
293
+ bottom: var(--_ui5_number_input_input_border_bottom_information_focused_after);
294
+ }
295
+
296
+ :host([value-state="Critical"]:not([readonly]):not([disabled])) .ui5-number-input-input[focused]::after {
297
+ border-color: var(--_ui5_number_input_input_warning_border_color_focused_after);
298
+ }
299
+
300
+ :host([value-state="Positive"]:not([readonly]):not([disabled])) .ui5-number-input-input[focused]::after {
301
+ border-color: var(--_ui5_number_input_input_success_border_color_focused_after);
302
+ }
303
+
304
+ :host([value-state="Negative"]:not([readonly]):not([disabled])) .ui5-number-input-input[focused]::after {
305
+ border-color: var(--_ui5_number_input_input_error_border_color_focused_after);
306
+ }
307
+
308
+ /* Disable spin buttons in Chrome, Safari, Edge, Opera */
309
+ :host .ui5-number-input-input::-webkit-outer-spin-button,
310
+ :host .ui5-number-input-input::-webkit-inner-spin-button {
311
+ -webkit-appearance: none;
312
+ margin: 0;
313
+ }
314
+
315
+ :host([disabled]) .ui5-step-icon {
316
+ background-color: var(--_ui5_number_input_disabled_button_background);
317
+ }
318
+
319
+ :host([disabled]) .ui5-step-icon [ui5-icon] {
320
+ color: var(--sapField_ReadOnly_BorderColor);
321
+ }
@@ -0,0 +1,28 @@
1
+ :host {
2
+ display: block;
3
+ }
4
+
5
+ .ui5-option-group-root {
6
+ width: 100%;
7
+ box-sizing: border-box;
8
+ padding: 0;
9
+ margin: 0;
10
+ }
11
+
12
+ .ui5-option-group-header {
13
+ display: flex;
14
+ align-items: flex-end;
15
+ padding: 1.25rem 1rem 0.5rem;
16
+ box-sizing: border-box;
17
+ border-bottom: 1px solid var(--sapList_GroupHeaderBorderColor);
18
+ background: var(--sapList_GroupHeaderBackground);
19
+ color: var(--sapList_TableGroupHeaderTextColor);
20
+ font-family: var(--sapFontHeaderFamily);
21
+ font-size: var(--sapFontHeader6Size);
22
+ font-weight: bold;
23
+ overflow: hidden;
24
+ text-overflow: ellipsis;
25
+ white-space: nowrap;
26
+ pointer-events: none;
27
+ user-select: none;
28
+ }