@inglorious/ui 7.6.1 → 7.7.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inglorious/ui",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
4
4
|
"description": "A design system for Inglorious Web with render-function components and customizable themes",
|
|
5
5
|
"author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,6 +33,10 @@ export default {
|
|
|
33
33
|
isLoading: { control: "boolean", description: "Show loading state." },
|
|
34
34
|
searchTerm: { control: "text", description: "Current search filter." },
|
|
35
35
|
placeholder: { control: "text", description: "Placeholder text." },
|
|
36
|
+
searchPlaceholder: {
|
|
37
|
+
control: "text",
|
|
38
|
+
description: "Placeholder of the search box in the panel.",
|
|
39
|
+
},
|
|
36
40
|
noOptionsMessage: { control: "text", description: "No results message." },
|
|
37
41
|
loadingMessage: { control: "text", description: "Loading message." },
|
|
38
42
|
isFullWidth: {
|
|
@@ -291,12 +291,17 @@ export const Combobox = {
|
|
|
291
291
|
* @returns {TemplateResult}
|
|
292
292
|
*/
|
|
293
293
|
renderSearchInput(props) {
|
|
294
|
-
const {
|
|
294
|
+
const {
|
|
295
|
+
searchTerm,
|
|
296
|
+
searchPlaceholder = "Search...",
|
|
297
|
+
isOpen,
|
|
298
|
+
onSearchChange,
|
|
299
|
+
} = props
|
|
295
300
|
|
|
296
301
|
return html`<input
|
|
297
302
|
class="iw-combobox-dropdown-search"
|
|
298
303
|
type="text"
|
|
299
|
-
placeholder
|
|
304
|
+
placeholder=${searchPlaceholder}
|
|
300
305
|
.value=${searchTerm ?? ""}
|
|
301
306
|
@input=${(event) => onSearchChange?.(event.target.value)}
|
|
302
307
|
@keydown=${(event) => handleKeyDown(props, event)}
|
|
@@ -29,4 +29,11 @@
|
|
|
29
29
|
|
|
30
30
|
.iw-bottom-navigation-label {
|
|
31
31
|
font-size: var(--iw-font-size-sm);
|
|
32
|
+
/* One line, like its neighbours: a label too long for its tab is cut short
|
|
33
|
+
rather than wrapping, which in languages that break between any two
|
|
34
|
+
characters (Japanese, Chinese) splits a word and makes the bar taller. */
|
|
35
|
+
max-width: 100%;
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
white-space: nowrap;
|
|
32
39
|
}
|