You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the #3107 we decided to introduce a new component ColorPalettePopover and to remove most of the ColorPalette API (more/recentColors features). With this change the ColorPalette basically supports only the colors slot (as the sap.m.ColorPalette control does).
BREAKING_CHANGE: The showMoreColors property is removed, ColorPalettePopover component will be introduced in future and provide this functionality
BREAKING_CHANGE: The showRecentColors property is removed, ColorPalettePopover component will be introduced in future and provide this functionality
BREAKING_CHANGE: The value property has been removed.
Copy file name to clipboardExpand all lines: packages/main/src/ColorPalette.js
+21-16
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ const metadata = {
32
32
/**
33
33
* Defines whether the user can see the last used colors in the bottom of the component
34
34
* @type {boolean}
35
-
* @public
35
+
* @private
36
36
* @since 1.0.0-rc.15
37
37
*/
38
38
showRecentColors: {
@@ -43,20 +43,19 @@ const metadata = {
43
43
* Defines whether the user can choose a custom color from a color picker
44
44
* <b>Note:</b> In order to use this property you need to import the following module: <code>"@ui5/webcomponents/dist/features/ColorPaletteMoreColors.js"</code>
45
45
* @type {boolean}
46
-
* @public
46
+
* @private
47
47
* @since 1.0.0-rc.15
48
48
*/
49
49
showMoreColors: {
50
50
type: Boolean,
51
51
},
52
52
53
53
/**
54
-
*
55
-
* The selected color.
54
+
* Defines the selected color.
56
55
* @type {CSSColor}
57
-
* @public
56
+
* @private
58
57
*/
59
-
value: {
58
+
_selectedColor: {
60
59
type: CSSColor,
61
60
},
62
61
},
@@ -97,12 +96,11 @@ const metadata = {
97
96
*
98
97
* <h3 class="comment-api-title">Overview</h3>
99
98
* The ColorPalette provides the users with a range of predefined colors. The colors are fixed and do not change with the theme.
100
-
* You can set them by using the ColorPaletteItem items as slots.
101
99
*
102
100
* <h3>Usage</h3>
103
-
* The Colorpalette is intended for users that needs to select a color from a predefined set of colors.
104
-
* To allow users select any color from a color picker, enable the <code>show-more-colors</code> property.
105
-
* And, to display the most recent color selection, enable the <code>show-recent-colors</code> property.
101
+
*
102
+
* The Colorpalette is meant for users that needs to select a color from a predefined set.
103
+
* To define the colors, use the <code>ui5-color-palette-item</code> component inside the default slot of the <code>ui5-color-palette</code>.
106
104
*
107
105
* <h3>ES6 Module Import</h3>
108
106
*
@@ -189,17 +187,17 @@ class ColorPalette extends UI5Element {
0 commit comments