@ui5/webcomponents 0.31.24 → 0.31.25
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 +12 -0
- package/dist/Input.js +4 -0
- package/dist/MultiComboBox.js +4 -0
- package/dist/TableRow.js +1 -1
- package/dist/generated/templates/InputPopoverTemplate.lit.js +1 -1
- package/dist/generated/templates/MultiComboBoxPopoverTemplate.lit.js +1 -1
- package/package.json +8 -8
- package/src/Input.js +4 -0
- package/src/InputPopover.hbs +1 -1
- package/src/MultiComboBox.js +4 -0
- package/src/MultiComboBoxPopover.hbs +1 -1
- package/src/TableRow.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.31.25](https://github.com/SAP/ui5-webcomponents/compare/v0.31.24...v0.31.25) (2021-11-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui5-input, ui5-multi-combobox:** value state popup now aligned properly in RTL mode ([#4310](https://github.com/SAP/ui5-webcomponents/issues/4310)) ([#4382](https://github.com/SAP/ui5-webcomponents/issues/4382)) ([a855dcc](https://github.com/SAP/ui5-webcomponents/commit/a855dcc))
|
|
12
|
+
* **ui5-table-row:** Prevent space when target is tr ([f891e9d](https://github.com/SAP/ui5-webcomponents/commit/f891e9d))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
6
18
|
## [0.31.24](https://github.com/SAP/ui5-webcomponents/compare/v0.31.23...v0.31.24) (2021-11-23)
|
|
7
19
|
|
|
8
20
|
|
package/dist/Input.js
CHANGED
|
@@ -1275,6 +1275,10 @@ class Input extends UI5Element {
|
|
|
1275
1275
|
return this.placeholder;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
1279
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1278
1282
|
/**
|
|
1279
1283
|
* Returns the caret position inside the native input
|
|
1280
1284
|
* @protected
|
package/dist/MultiComboBox.js
CHANGED
|
@@ -852,6 +852,10 @@ class MultiComboBox extends UI5Element {
|
|
|
852
852
|
return (this._isFocusInside || this.open) && !this.readonly;
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
856
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
857
|
+
}
|
|
858
|
+
|
|
855
859
|
get classes() {
|
|
856
860
|
return {
|
|
857
861
|
popoverValueState: {
|
package/dist/TableRow.js
CHANGED
|
@@ -19,7 +19,7 @@ const block13 = (item, index, context) => { return html`<ui5-li-groupheader data
|
|
|
19
19
|
const block14 = (item, index, context) => { return html`<ui5-li-suggestion-item image="${ifDefined(item.image)}" icon="${ifDefined(item.icon)}" info="${ifDefined(item.info)}" type="${ifDefined(item.type)}" info-state="${ifDefined(item.infoState)}" @ui5-_item-press="${ifDefined(item.fnOnSuggestionItemPress)}" data-ui5-key="${ifDefined(item.key)}">${unsafeHTML(item.text)}${ item.description ? block15(item, index, context) : undefined }</ui5-li-suggestion-item>`; };
|
|
20
20
|
const block15 = (item, index, context) => { return html`<span slot="richDescription">${unsafeHTML(item.description)}</span>`; };
|
|
21
21
|
const block16 = (context) => { return html`<div slot="footer" class="ui5-responsive-popover-footer"><ui5-button design="Transparent" @click="${context._closeRespPopover}">OK</ui5-button></div>`; };
|
|
22
|
-
const block17 = (context) => { return html`<ui5-popover skip-registry-update _disable-initial-focus prevent-focus-restore no-padding no-arrow class="ui5-valuestatemessage-popover" placement-type="Bottom" horizontal-align="
|
|
22
|
+
const block17 = (context) => { return html`<ui5-popover skip-registry-update _disable-initial-focus prevent-focus-restore no-padding no-arrow class="ui5-valuestatemessage-popover" placement-type="Bottom" horizontal-align="${ifDefined(context._valueStatePopoverHorizontalAlign)}"><div slot="header" class="${classMap(context.classes.popoverValueState)}" style="${styleMap(context.styles.popoverHeader)}">${ context.shouldDisplayDefaultValueStateMessage ? block18(context) : block19(context) }</div></ui5-popover>`; };
|
|
23
23
|
const block18 = (context) => { return html`${ifDefined(context.valueStateText)}`; };
|
|
24
24
|
const block19 = (context) => { return html`${ repeat(context.valueStateMessageText, (item, index) => item._id || index, (item, index) => block20(item, index, context)) }`; };
|
|
25
25
|
const block20 = (item, index, context) => { return html`${ifDefined(item)}`; };
|
|
@@ -15,7 +15,7 @@ const block9 = (context) => { return html`${ repeat(context.valueStateMessageTex
|
|
|
15
15
|
const block10 = (item, index, context) => { return html`${ifDefined(item)}`; };
|
|
16
16
|
const block11 = (item, index, context) => { return html`<ui5-li type="${ifDefined(context._listItemsType)}" info=${ifDefined(item.additionalText)} ?selected=${item.selected} data-ui5-token-id="${ifDefined(item._id)}" data-ui5-stable="${ifDefined(item.stableDomRef)}">${ifDefined(item.text)}</ui5-li>`; };
|
|
17
17
|
const block12 = (context) => { return html`<div slot="footer" class="ui5-responsive-popover-footer"><ui5-button design="Transparent" @click="${context.togglePopover}">${ifDefined(context._dialogOkButton)}</ui5-button></div>`; };
|
|
18
|
-
const block13 = (context) => { return html`<ui5-popover skip-registry-update _disable-initial-focus prevent-focus-restore no-padding no-arrow class="ui5-valuestatemessage-popover" placement-type="Bottom" horizontal-align="
|
|
18
|
+
const block13 = (context) => { return html`<ui5-popover skip-registry-update _disable-initial-focus prevent-focus-restore no-padding no-arrow class="ui5-valuestatemessage-popover" placement-type="Bottom" horizontal-align="${ifDefined(context._valueStatePopoverHorizontalAlign)}"><div slot="header" class="${classMap(context.classes.popoverValueState)}" style="${styleMap(context.styles.popoverHeader)}">${ context.shouldDisplayDefaultValueStateMessage ? block14(context) : block15(context) }</div></ui5-popover>`; };
|
|
19
19
|
const block14 = (context) => { return html`${ifDefined(context.valueStateText)}`; };
|
|
20
20
|
const block15 = (context) => { return html`${ repeat(context.valueStateMessageText, (item, index) => item._id || index, (item, index) => block16(item, index, context)) }`; };
|
|
21
21
|
const block16 = (item, index, context) => { return html`${ifDefined(item)}`; };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ui5/webcomponents",
|
|
3
|
-
"version": "0.31.
|
|
3
|
+
"version": "0.31.25",
|
|
4
4
|
"description": "UI5 Web Components: webcomponents.main",
|
|
5
5
|
"ui5": {
|
|
6
6
|
"webComponentsPackage": true
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"directory": "packages/main"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@ui5/webcomponents-base": "0.31.
|
|
34
|
-
"@ui5/webcomponents-icons": "0.31.
|
|
35
|
-
"@ui5/webcomponents-ie11": "0.31.
|
|
36
|
-
"@ui5/webcomponents-localization": "0.31.
|
|
37
|
-
"@ui5/webcomponents-theme-base": "0.31.
|
|
33
|
+
"@ui5/webcomponents-base": "0.31.25",
|
|
34
|
+
"@ui5/webcomponents-icons": "0.31.25",
|
|
35
|
+
"@ui5/webcomponents-ie11": "0.31.25",
|
|
36
|
+
"@ui5/webcomponents-localization": "0.31.25",
|
|
37
|
+
"@ui5/webcomponents-theme-base": "0.31.25"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@ui5/webcomponents-tools": "0.31.
|
|
41
|
-
"chromedriver": "
|
|
40
|
+
"@ui5/webcomponents-tools": "0.31.25",
|
|
41
|
+
"chromedriver": "96.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/src/Input.js
CHANGED
|
@@ -1275,6 +1275,10 @@ class Input extends UI5Element {
|
|
|
1275
1275
|
return this.placeholder;
|
|
1276
1276
|
}
|
|
1277
1277
|
|
|
1278
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
1279
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
1280
|
+
}
|
|
1281
|
+
|
|
1278
1282
|
/**
|
|
1279
1283
|
* Returns the caret position inside the native input
|
|
1280
1284
|
* @protected
|
package/src/InputPopover.hbs
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
no-arrow
|
|
72
72
|
class="ui5-valuestatemessage-popover"
|
|
73
73
|
placement-type="Bottom"
|
|
74
|
-
horizontal-align="
|
|
74
|
+
horizontal-align="{{_valueStatePopoverHorizontalAlign}}"
|
|
75
75
|
>
|
|
76
76
|
<div slot="header" class="{{classes.popoverValueState}}" style="{{styles.popoverHeader}}">
|
|
77
77
|
{{> valueStateMessage}}
|
package/src/MultiComboBox.js
CHANGED
|
@@ -852,6 +852,10 @@ class MultiComboBox extends UI5Element {
|
|
|
852
852
|
return (this._isFocusInside || this.open) && !this.readonly;
|
|
853
853
|
}
|
|
854
854
|
|
|
855
|
+
get _valueStatePopoverHorizontalAlign() {
|
|
856
|
+
return this.effectiveDir !== "rtl" ? "Left" : "Right";
|
|
857
|
+
}
|
|
858
|
+
|
|
855
859
|
get classes() {
|
|
856
860
|
return {
|
|
857
861
|
popoverValueState: {
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
no-arrow
|
|
99
99
|
class="ui5-valuestatemessage-popover"
|
|
100
100
|
placement-type="Bottom"
|
|
101
|
-
horizontal-align="
|
|
101
|
+
horizontal-align="{{_valueStatePopoverHorizontalAlign}}"
|
|
102
102
|
>
|
|
103
103
|
<div slot="header" class="{{classes.popoverValueState}}" style="{{styles.popoverHeader}}">
|
|
104
104
|
{{> valueStateMessage}}
|
package/src/TableRow.js
CHANGED