smoothly 0.1.105 → 0.1.106

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 (33) hide show
  1. package/dist/cjs/smoothly-accordion_48.cjs.entry.js +19 -20
  2. package/dist/cjs/smoothly-app-demo.cjs.entry.js +10 -10
  3. package/dist/cjs/smoothly-menu-options.cjs.entry.js +2 -2
  4. package/dist/cjs/smoothly-option.cjs.entry.js +2 -2
  5. package/dist/cjs/smoothly-picker.cjs.entry.js +3 -3
  6. package/dist/cjs/smoothly-select-demo.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-submit.cjs.entry.js +1 -2
  8. package/dist/collection/components/app-demo/index.js +10 -10
  9. package/dist/collection/components/menu-options/index.js +3 -1
  10. package/dist/collection/components/menu-options/style.css +0 -5
  11. package/dist/collection/components/option/index.js +2 -4
  12. package/dist/collection/components/option/style.css +3 -8
  13. package/dist/collection/components/picker/index.js +3 -3
  14. package/dist/collection/components/select-demo/index.js +1 -1
  15. package/dist/collection/components/submit/index.js +1 -2
  16. package/dist/custom-elements/index.js +19 -20
  17. package/dist/esm/smoothly-accordion_48.entry.js +19 -20
  18. package/dist/esm/smoothly-app-demo.entry.js +10 -10
  19. package/dist/esm/smoothly-menu-options.entry.js +2 -2
  20. package/dist/esm/smoothly-option.entry.js +2 -2
  21. package/dist/esm/smoothly-picker.entry.js +3 -3
  22. package/dist/esm/smoothly-select-demo.entry.js +1 -1
  23. package/dist/esm/smoothly-submit.entry.js +1 -2
  24. package/dist/smoothly/p-c43da6c0.entry.js +1 -0
  25. package/dist/smoothly/smoothly-app-demo.entry.js +10 -10
  26. package/dist/smoothly/smoothly-menu-options.entry.js +2 -2
  27. package/dist/smoothly/smoothly-option.entry.js +2 -2
  28. package/dist/smoothly/smoothly-picker.entry.js +3 -3
  29. package/dist/smoothly/smoothly-select-demo.entry.js +1 -1
  30. package/dist/smoothly/smoothly-submit.entry.js +1 -2
  31. package/dist/types/model/OptionType.d.ts +2 -1
  32. package/package.json +1 -1
  33. package/dist/smoothly/p-e14898a9.entry.js +0 -1
@@ -121,16 +121,16 @@ let SmoothlyAppDemo = class {
121
121
  render() {
122
122
  return (index.h(Notice.App, { label: "Smoothly Demo" }, index.h("a", { slot: "nav-start", href: "display" }, "Display"), index.h("a", { slot: "nav-start", href: "https://google.com" }, "External"), index.h("smoothly-room", { path: "" }, index.h("smoothly-input", { type: "text" }, "Default")), index.h("smoothly-room", { path: "input", label: "Input" }, index.h("smoothly-input-demo", null)), index.h("smoothly-room", { path: "dialog", label: "Dialog" }, index.h("smoothly-dialog-demo", null)), index.h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, index.h("smoothly-display-demo", null)), index.h("smoothly-room", { path: "table", label: "Table" }, index.h("smoothly-table-demo", null)), index.h("smoothly-room", { path: "select", label: "Select" }, index.h("smoothly-select-demo", null)), index.h("smoothly-room", { path: "icon", label: "Icon" }, index.h("smoothly-icon-demo", null)), index.h("smoothly-room", { path: "old", label: "Old", to: "select" }), index.h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, index.h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
123
123
  { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
124
- { name: "Cat Stevens", value: "cat", aliases: ["moew"] },
125
- { name: "Noble Pig", value: "pig" },
126
- { name: "Turtle Wax", value: "turtle" },
127
- { name: "Spider Man", value: "spider" },
128
- { name: "Phoenix Order Long Wooord", value: "phoenix" },
129
- { name: "Horse Back", value: "horse" },
130
- { name: "Unicorn Horn", value: "unicorn" },
131
- { name: "Talking Parrot Parrot", value: "parrot" },
132
- { name: "Hidden Dragon", value: "dragon" },
133
- { name: "Scary Kraken", value: "kraken" },
124
+ { name: "Cat Stevens", value: "cat", aliases: ["moew"], right: "🐈" },
125
+ { name: "Noble Pig", value: "pig", right: "🐷" },
126
+ { name: "Turtle Wax", value: "turtle", right: "" },
127
+ { name: "Spider Man", value: "spider", right: "" },
128
+ { name: "Phoenix Order Long Wooord", value: "phoenix", right: "" },
129
+ { name: "Horse Back", value: "horse", right: "" },
130
+ { name: "Unicorn Horn", value: "unicorn", right: "" },
131
+ { name: "Talking Parrot Parrot", value: "parrot", right: "" },
132
+ { name: "Hidden Dragon", value: "dragon", right: "" },
133
+ { name: "Scary Kraken", value: "kraken", right: "" },
134
134
  ] })), index.h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, index.h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
135
135
  }
136
136
  };
@@ -40018,7 +40018,7 @@ let Item = class {
40018
40018
  };
40019
40019
  Item.style = styleCss$n;
40020
40020
 
40021
- const styleCss$m = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}div:last-child:not(:empty){padding:0.5em 1em;font-style:italic}:host:first-child{margin:10em}";
40021
+ const styleCss$m = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}:host:first-child{margin:10em}";
40022
40022
 
40023
40023
  let SmoothlyMenuOptions = class {
40024
40024
  constructor(hostRef) {
@@ -40110,7 +40110,7 @@ let SmoothlyMenuOptions = class {
40110
40110
  }
40111
40111
  }
40112
40112
  render() {
40113
- return (index.h(index.Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index$1) => (index.h("smoothly-option", { style: this.optionStyle, ref: el => index$1 == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index$1 }, option.description)))) : (index.h("div", null, this.emptyMenuLabel))));
40113
+ return (index.h(index.Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index$1) => (index.h("smoothly-option", { style: this.optionStyle, ref: el => index$1 == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index$1 }, option.left ? index.h("div", { slot: "left" }, option.left) : undefined, option.right ? index.h("div", { slot: "right" }, option.right) : undefined)))) : (index.h("div", null, this.emptyMenuLabel))));
40114
40114
  }
40115
40115
  get element() { return index.getElement(this); }
40116
40116
  static get watchers() { return {
@@ -40201,7 +40201,7 @@ let Notifier = class {
40201
40201
  };
40202
40202
  Notifier.style = styleCss$k;
40203
40203
 
40204
- const styleCss$j = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host div:last-child :host div:first-child{color:rgba(var(--smoothly-primary-color), 0.8);font-style:italic}:host([divider]){margin-bottom:0.5em}:host>div[slot=right]{margin-right:100%;color:rgba(var(--smoothly-primary-color), 0.8)}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
40204
+ const styleCss$j = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host([divider]){margin-bottom:0.5em}::slotted([slot=right]){font-style:italic;white-space:nowrap}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
40205
40205
 
40206
40206
  let SmoothlyOption = class {
40207
40207
  constructor(hostRef) {
@@ -40221,7 +40221,7 @@ let SmoothlyOption = class {
40221
40221
  throw `smoothly-option ${this.element.innerHTML} lacks value-property and can therefore not be selected`;
40222
40222
  }
40223
40223
  render() {
40224
- return (index.h(index.Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, index.h("div", null, index.h("slot", { name: "left" })), index.h("div", { class: "middle" }, this.name), index.h("div", null, index.h("slot", { name: "right" }))));
40224
+ return (index.h(index.Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, index.h("slot", { name: "left" }), index.h("div", { class: "middle" }, this.name), index.h("slot", { name: "right" })));
40225
40225
  }
40226
40226
  get element() { return index.getElement(this); }
40227
40227
  };
@@ -40339,7 +40339,7 @@ let SmoothlyPicker = class {
40339
40339
  this.filterOptions();
40340
40340
  }
40341
40341
  getCheckHtml(checked) {
40342
- return checked ? (index.h("smoothly-icon", { slot: "left", name: "checkbox", size: "small" })) : (index.h("smoothly-icon", { slot: "left", name: "square-outline", size: "small" }));
40342
+ return checked ? (index.h("smoothly-icon", { name: "checkbox", size: "small" })) : (index.h("smoothly-icon", { name: "square-outline", size: "small" }));
40343
40343
  }
40344
40344
  render() {
40345
40345
  var _a, _b, _c, _d;
@@ -40348,13 +40348,13 @@ let SmoothlyPicker = class {
40348
40348
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
40349
40349
  };
40350
40350
  (_b = this.options) === null || _b === void 0 ? void 0 : _b.forEach(o => {
40351
- o.description = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
40351
+ o.left = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
40352
40352
  });
40353
40353
  const options = [
40354
40354
  {
40355
40355
  value: "select-none",
40356
40356
  name: this.selectNoneName,
40357
- description: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
40357
+ left: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
40358
40358
  divider: true,
40359
40359
  },
40360
40360
  ...((_d = this.options) !== null && _d !== void 0 ? _d : []),
@@ -40529,7 +40529,7 @@ let SmoothlySelectDemo = class {
40529
40529
  ] }),
40530
40530
  index.h("br", null),
40531
40531
  index.h("smoothly-picker", { label: "Single select", multiple: false, "max-menu-height": "200px", options: [
40532
- { name: "Dog", value: "dog", aliases: ["WOFF"], description: "Woof 🐶" },
40532
+ { name: "Dog", value: "dog", aliases: ["WOFF"], right: "Woof 🐶" },
40533
40533
  { name: "Cat", value: "cat", aliases: ["moew"] },
40534
40534
  { name: "Pig", value: "pig" },
40535
40535
  { name: "Turtle", value: "turtle" },
@@ -40707,8 +40707,7 @@ let SmoothlySubmit = class {
40707
40707
  result[element.name] = element.value;
40708
40708
  }
40709
40709
  }
40710
- const innerEvent = this.submitEvent.emit(result);
40711
- console.log("smoothly-submit", innerEvent);
40710
+ this.submitEvent.emit(result);
40712
40711
  this.processing = false;
40713
40712
  }
40714
40713
  }
@@ -12,16 +12,16 @@ let SmoothlyAppDemo = class {
12
12
  render() {
13
13
  return (index.h(App.App, { label: "Smoothly Demo" }, index.h("a", { slot: "nav-start", href: "display" }, "Display"), index.h("a", { slot: "nav-start", href: "https://google.com" }, "External"), index.h("smoothly-room", { path: "" }, index.h("smoothly-input", { type: "text" }, "Default")), index.h("smoothly-room", { path: "input", label: "Input" }, index.h("smoothly-input-demo", null)), index.h("smoothly-room", { path: "dialog", label: "Dialog" }, index.h("smoothly-dialog-demo", null)), index.h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, index.h("smoothly-display-demo", null)), index.h("smoothly-room", { path: "table", label: "Table" }, index.h("smoothly-table-demo", null)), index.h("smoothly-room", { path: "select", label: "Select" }, index.h("smoothly-select-demo", null)), index.h("smoothly-room", { path: "icon", label: "Icon" }, index.h("smoothly-icon-demo", null)), index.h("smoothly-room", { path: "old", label: "Old", to: "select" }), index.h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, index.h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
14
14
  { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
15
- { name: "Cat Stevens", value: "cat", aliases: ["moew"] },
16
- { name: "Noble Pig", value: "pig" },
17
- { name: "Turtle Wax", value: "turtle" },
18
- { name: "Spider Man", value: "spider" },
19
- { name: "Phoenix Order Long Wooord", value: "phoenix" },
20
- { name: "Horse Back", value: "horse" },
21
- { name: "Unicorn Horn", value: "unicorn" },
22
- { name: "Talking Parrot Parrot", value: "parrot" },
23
- { name: "Hidden Dragon", value: "dragon" },
24
- { name: "Scary Kraken", value: "kraken" },
15
+ { name: "Cat Stevens", value: "cat", aliases: ["moew"], right: "🐈" },
16
+ { name: "Noble Pig", value: "pig", right: "🐷" },
17
+ { name: "Turtle Wax", value: "turtle", right: "" },
18
+ { name: "Spider Man", value: "spider", right: "" },
19
+ { name: "Phoenix Order Long Wooord", value: "phoenix", right: "" },
20
+ { name: "Horse Back", value: "horse", right: "" },
21
+ { name: "Unicorn Horn", value: "unicorn", right: "" },
22
+ { name: "Talking Parrot Parrot", value: "parrot", right: "" },
23
+ { name: "Hidden Dragon", value: "dragon", right: "" },
24
+ { name: "Scary Kraken", value: "kraken", right: "" },
25
25
  ] })), index.h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, index.h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
26
26
  }
27
27
  };
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-138c41c2.js');
6
6
 
7
- const styleCss = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}div:last-child:not(:empty){padding:0.5em 1em;font-style:italic}:host:first-child{margin:10em}";
7
+ const styleCss = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}:host:first-child{margin:10em}";
8
8
 
9
9
  let SmoothlyMenuOptions = class {
10
10
  constructor(hostRef) {
@@ -96,7 +96,7 @@ let SmoothlyMenuOptions = class {
96
96
  }
97
97
  }
98
98
  render() {
99
- return (index.h(index.Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index$1) => (index.h("smoothly-option", { style: this.optionStyle, ref: el => index$1 == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index$1 }, option.description)))) : (index.h("div", null, this.emptyMenuLabel))));
99
+ return (index.h(index.Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index$1) => (index.h("smoothly-option", { style: this.optionStyle, ref: el => index$1 == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index$1 }, option.left ? index.h("div", { slot: "left" }, option.left) : undefined, option.right ? index.h("div", { slot: "right" }, option.right) : undefined)))) : (index.h("div", null, this.emptyMenuLabel))));
100
100
  }
101
101
  get element() { return index.getElement(this); }
102
102
  static get watchers() { return {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-138c41c2.js');
6
6
 
7
- const styleCss = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host div:last-child :host div:first-child{color:rgba(var(--smoothly-primary-color), 0.8);font-style:italic}:host([divider]){margin-bottom:0.5em}:host>div[slot=right]{margin-right:100%;color:rgba(var(--smoothly-primary-color), 0.8)}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
7
+ const styleCss = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host([divider]){margin-bottom:0.5em}::slotted([slot=right]){font-style:italic;white-space:nowrap}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
8
8
 
9
9
  let SmoothlyOption = class {
10
10
  constructor(hostRef) {
@@ -24,7 +24,7 @@ let SmoothlyOption = class {
24
24
  throw `smoothly-option ${this.element.innerHTML} lacks value-property and can therefore not be selected`;
25
25
  }
26
26
  render() {
27
- return (index.h(index.Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, index.h("div", null, index.h("slot", { name: "left" })), index.h("div", { class: "middle" }, this.name), index.h("div", null, index.h("slot", { name: "right" }))));
27
+ return (index.h(index.Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, index.h("slot", { name: "left" }), index.h("div", { class: "middle" }, this.name), index.h("slot", { name: "right" })));
28
28
  }
29
29
  get element() { return index.getElement(this); }
30
30
  };
@@ -116,7 +116,7 @@ let SmoothlyPicker = class {
116
116
  this.filterOptions();
117
117
  }
118
118
  getCheckHtml(checked) {
119
- return checked ? (index.h("smoothly-icon", { slot: "left", name: "checkbox", size: "small" })) : (index.h("smoothly-icon", { slot: "left", name: "square-outline", size: "small" }));
119
+ return checked ? (index.h("smoothly-icon", { name: "checkbox", size: "small" })) : (index.h("smoothly-icon", { name: "square-outline", size: "small" }));
120
120
  }
121
121
  render() {
122
122
  var _a, _b, _c, _d;
@@ -125,13 +125,13 @@ let SmoothlyPicker = class {
125
125
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
126
126
  };
127
127
  (_b = this.options) === null || _b === void 0 ? void 0 : _b.forEach(o => {
128
- o.description = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
128
+ o.left = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
129
129
  });
130
130
  const options = [
131
131
  {
132
132
  value: "select-none",
133
133
  name: this.selectNoneName,
134
- description: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
134
+ left: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
135
135
  divider: true,
136
136
  },
137
137
  ...((_d = this.options) !== null && _d !== void 0 ? _d : []),
@@ -65,7 +65,7 @@ let SmoothlySelectDemo = class {
65
65
  ] }),
66
66
  index.h("br", null),
67
67
  index.h("smoothly-picker", { label: "Single select", multiple: false, "max-menu-height": "200px", options: [
68
- { name: "Dog", value: "dog", aliases: ["WOFF"], description: "Woof 🐶" },
68
+ { name: "Dog", value: "dog", aliases: ["WOFF"], right: "Woof 🐶" },
69
69
  { name: "Cat", value: "cat", aliases: ["moew"] },
70
70
  { name: "Pig", value: "pig" },
71
71
  { name: "Turtle", value: "turtle" },
@@ -35,8 +35,7 @@ let SmoothlySubmit = class {
35
35
  result[element.name] = element.value;
36
36
  }
37
37
  }
38
- const innerEvent = this.submitEvent.emit(result);
39
- console.log("smoothly-submit", innerEvent);
38
+ this.submitEvent.emit(result);
40
39
  this.processing = false;
41
40
  }
42
41
  }
@@ -23,16 +23,16 @@ export class SmoothlyAppDemo {
23
23
  h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } },
24
24
  h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
25
25
  { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
26
- { name: "Cat Stevens", value: "cat", aliases: ["moew"] },
27
- { name: "Noble Pig", value: "pig" },
28
- { name: "Turtle Wax", value: "turtle" },
29
- { name: "Spider Man", value: "spider" },
30
- { name: "Phoenix Order Long Wooord", value: "phoenix" },
31
- { name: "Horse Back", value: "horse" },
32
- { name: "Unicorn Horn", value: "unicorn" },
33
- { name: "Talking Parrot Parrot", value: "parrot" },
34
- { name: "Hidden Dragon", value: "dragon" },
35
- { name: "Scary Kraken", value: "kraken" },
26
+ { name: "Cat Stevens", value: "cat", aliases: ["moew"], right: "🐈" },
27
+ { name: "Noble Pig", value: "pig", right: "🐷" },
28
+ { name: "Turtle Wax", value: "turtle", right: "" },
29
+ { name: "Spider Man", value: "spider", right: "" },
30
+ { name: "Phoenix Order Long Wooord", value: "phoenix", right: "" },
31
+ { name: "Horse Back", value: "horse", right: "" },
32
+ { name: "Unicorn Horn", value: "unicorn", right: "" },
33
+ { name: "Talking Parrot Parrot", value: "parrot", right: "" },
34
+ { name: "Hidden Dragon", value: "dragon", right: "" },
35
+ { name: "Scary Kraken", value: "kraken", right: "" },
36
36
  ] })),
37
37
  h("smoothly-trigger", { slot: "header", type: "link", name: "logout" },
38
38
  h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
@@ -88,7 +88,9 @@ export class SmoothlyMenuOptions {
88
88
  }
89
89
  }
90
90
  render() {
91
- return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, ref: el => index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.description)))) : (h("div", null, this.emptyMenuLabel))));
91
+ return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, ref: el => index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index },
92
+ option.left ? h("div", { slot: "left" }, option.left) : undefined,
93
+ option.right ? h("div", { slot: "right" }, option.right) : undefined)))) : (h("div", null, this.emptyMenuLabel))));
92
94
  }
93
95
  static get is() { return "smoothly-menu-options"; }
94
96
  static get encapsulation() { return "shadow"; }
@@ -13,11 +13,6 @@
13
13
  cursor: pointer;
14
14
  }
15
15
 
16
- div:last-child:not(:empty) {
17
- padding: 0.5em 1em;
18
- font-style: italic;
19
- }
20
-
21
16
  :host:first-child {
22
17
  margin: 10em;
23
18
  }
@@ -15,11 +15,9 @@ export class SmoothlyOption {
15
15
  }
16
16
  render() {
17
17
  return (h(Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) },
18
- h("div", null,
19
- h("slot", { name: "left" })),
18
+ h("slot", { name: "left" }),
20
19
  h("div", { class: "middle" }, this.name),
21
- h("div", null,
22
- h("slot", { name: "right" }))));
20
+ h("slot", { name: "right" })));
23
21
  }
24
22
  static get is() { return "smoothly-option"; }
25
23
  static get encapsulation() { return "shadow"; }
@@ -20,18 +20,13 @@
20
20
  width: 100%;
21
21
  }
22
22
 
23
- :host div:last-child :host div:first-child {
24
- color: rgba(var(--smoothly-primary-color), 0.8);
25
- font-style: italic;
26
- }
27
-
28
23
  :host([divider]) {
29
24
  margin-bottom: 0.5em;
30
25
  }
31
26
 
32
- :host > div[slot=right] {
33
- margin-right: 100%;
34
- color: rgba(var(--smoothly-primary-color), 0.8);
27
+ ::slotted([slot=right]) {
28
+ font-style: italic;
29
+ white-space: nowrap;
35
30
  }
36
31
 
37
32
  :host([divider])::after {
@@ -107,7 +107,7 @@ export class SmoothlyPicker {
107
107
  this.filterOptions();
108
108
  }
109
109
  getCheckHtml(checked) {
110
- return checked ? (h("smoothly-icon", { slot: "left", name: "checkbox", size: "small" })) : (h("smoothly-icon", { slot: "left", name: "square-outline", size: "small" }));
110
+ return checked ? (h("smoothly-icon", { name: "checkbox", size: "small" })) : (h("smoothly-icon", { name: "square-outline", size: "small" }));
111
111
  }
112
112
  render() {
113
113
  var _a, _b, _c, _d;
@@ -116,13 +116,13 @@ export class SmoothlyPicker {
116
116
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
117
117
  };
118
118
  (_b = this.options) === null || _b === void 0 ? void 0 : _b.forEach(o => {
119
- o.description = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
119
+ o.left = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
120
120
  });
121
121
  const options = [
122
122
  {
123
123
  value: "select-none",
124
124
  name: this.selectNoneName,
125
- description: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
125
+ left: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
126
126
  divider: true,
127
127
  },
128
128
  ...((_d = this.options) !== null && _d !== void 0 ? _d : []),
@@ -78,7 +78,7 @@ export class SmoothlySelectDemo {
78
78
  ] }),
79
79
  h("br", null),
80
80
  h("smoothly-picker", { label: "Single select", multiple: false, "max-menu-height": "200px", options: [
81
- { name: "Dog", value: "dog", aliases: ["WOFF"], description: "Woof 🐶" },
81
+ { name: "Dog", value: "dog", aliases: ["WOFF"], right: "Woof 🐶" },
82
82
  { name: "Cat", value: "cat", aliases: ["moew"] },
83
83
  { name: "Pig", value: "pig" },
84
84
  { name: "Turtle", value: "turtle" },
@@ -26,8 +26,7 @@ export class SmoothlySubmit {
26
26
  result[element.name] = element.value;
27
27
  }
28
28
  }
29
- const innerEvent = this.submitEvent.emit(result);
30
- console.log("smoothly-submit", innerEvent);
29
+ this.submitEvent.emit(result);
31
30
  this.processing = false;
32
31
  }
33
32
  }
@@ -2499,16 +2499,16 @@ let SmoothlyAppDemo$1 = class extends HTMLElement {
2499
2499
  render() {
2500
2500
  return (h(App, { label: "Smoothly Demo" }, h("a", { slot: "nav-start", href: "display" }, "Display"), h("a", { slot: "nav-start", href: "https://google.com" }, "External"), h("smoothly-room", { path: "" }, h("smoothly-input", { type: "text" }, "Default")), h("smoothly-room", { path: "input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-room", { path: "dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-room", { path: "table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-room", { path: "select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-room", { path: "icon", label: "Icon" }, h("smoothly-icon-demo", null)), h("smoothly-room", { path: "old", label: "Old", to: "select" }), h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
2501
2501
  { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
2502
- { name: "Cat Stevens", value: "cat", aliases: ["moew"] },
2503
- { name: "Noble Pig", value: "pig" },
2504
- { name: "Turtle Wax", value: "turtle" },
2505
- { name: "Spider Man", value: "spider" },
2506
- { name: "Phoenix Order Long Wooord", value: "phoenix" },
2507
- { name: "Horse Back", value: "horse" },
2508
- { name: "Unicorn Horn", value: "unicorn" },
2509
- { name: "Talking Parrot Parrot", value: "parrot" },
2510
- { name: "Hidden Dragon", value: "dragon" },
2511
- { name: "Scary Kraken", value: "kraken" },
2502
+ { name: "Cat Stevens", value: "cat", aliases: ["moew"], right: "🐈" },
2503
+ { name: "Noble Pig", value: "pig", right: "🐷" },
2504
+ { name: "Turtle Wax", value: "turtle", right: "" },
2505
+ { name: "Spider Man", value: "spider", right: "" },
2506
+ { name: "Phoenix Order Long Wooord", value: "phoenix", right: "" },
2507
+ { name: "Horse Back", value: "horse", right: "" },
2508
+ { name: "Unicorn Horn", value: "unicorn", right: "" },
2509
+ { name: "Talking Parrot Parrot", value: "parrot", right: "" },
2510
+ { name: "Hidden Dragon", value: "dragon", right: "" },
2511
+ { name: "Scary Kraken", value: "kraken", right: "" },
2512
2512
  ] })), h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
2513
2513
  }
2514
2514
  };
@@ -42992,7 +42992,7 @@ let Item = class extends HTMLElement {
42992
42992
  static get style() { return styleCss$r; }
42993
42993
  };
42994
42994
 
42995
- const styleCss$q = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}div:last-child:not(:empty){padding:0.5em 1em;font-style:italic}:host:first-child{margin:10em}";
42995
+ const styleCss$q = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}:host:first-child{margin:10em}";
42996
42996
 
42997
42997
  let SmoothlyMenuOptions$1 = class extends HTMLElement {
42998
42998
  constructor() {
@@ -43086,7 +43086,7 @@ let SmoothlyMenuOptions$1 = class extends HTMLElement {
43086
43086
  }
43087
43087
  }
43088
43088
  render() {
43089
- return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, ref: el => index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.description)))) : (h("div", null, this.emptyMenuLabel))));
43089
+ return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, ref: el => index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.left ? h("div", { slot: "left" }, option.left) : undefined, option.right ? h("div", { slot: "right" }, option.right) : undefined)))) : (h("div", null, this.emptyMenuLabel))));
43090
43090
  }
43091
43091
  get element() { return this; }
43092
43092
  static get watchers() { return {
@@ -43179,7 +43179,7 @@ let Notifier = class extends HTMLElement {
43179
43179
  static get style() { return styleCss$o; }
43180
43180
  };
43181
43181
 
43182
- const styleCss$n = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host div:last-child :host div:first-child{color:rgba(var(--smoothly-primary-color), 0.8);font-style:italic}:host([divider]){margin-bottom:0.5em}:host>div[slot=right]{margin-right:100%;color:rgba(var(--smoothly-primary-color), 0.8)}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
43182
+ const styleCss$n = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host([divider]){margin-bottom:0.5em}::slotted([slot=right]){font-style:italic;white-space:nowrap}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
43183
43183
 
43184
43184
  let SmoothlyOption$1 = class extends HTMLElement {
43185
43185
  constructor() {
@@ -43201,7 +43201,7 @@ let SmoothlyOption$1 = class extends HTMLElement {
43201
43201
  throw `smoothly-option ${this.element.innerHTML} lacks value-property and can therefore not be selected`;
43202
43202
  }
43203
43203
  render() {
43204
- return (h(Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, h("div", null, h("slot", { name: "left" })), h("div", { class: "middle" }, this.name), h("div", null, h("slot", { name: "right" }))));
43204
+ return (h(Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, h("slot", { name: "left" }), h("div", { class: "middle" }, this.name), h("slot", { name: "right" })));
43205
43205
  }
43206
43206
  get element() { return this; }
43207
43207
  static get style() { return styleCss$n; }
@@ -43321,7 +43321,7 @@ let SmoothlyPicker$1 = class extends HTMLElement {
43321
43321
  this.filterOptions();
43322
43322
  }
43323
43323
  getCheckHtml(checked) {
43324
- return checked ? (h("smoothly-icon", { slot: "left", name: "checkbox", size: "small" })) : (h("smoothly-icon", { slot: "left", name: "square-outline", size: "small" }));
43324
+ return checked ? (h("smoothly-icon", { name: "checkbox", size: "small" })) : (h("smoothly-icon", { name: "square-outline", size: "small" }));
43325
43325
  }
43326
43326
  render() {
43327
43327
  var _a, _b, _c, _d;
@@ -43330,13 +43330,13 @@ let SmoothlyPicker$1 = class extends HTMLElement {
43330
43330
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
43331
43331
  };
43332
43332
  (_b = this.options) === null || _b === void 0 ? void 0 : _b.forEach(o => {
43333
- o.description = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
43333
+ o.left = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
43334
43334
  });
43335
43335
  const options = [
43336
43336
  {
43337
43337
  value: "select-none",
43338
43338
  name: this.selectNoneName,
43339
- description: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
43339
+ left: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
43340
43340
  divider: true,
43341
43341
  },
43342
43342
  ...((_d = this.options) !== null && _d !== void 0 ? _d : []),
@@ -43628,7 +43628,7 @@ let SmoothlySelectDemo$1 = class extends HTMLElement {
43628
43628
  ] }),
43629
43629
  h("br", null),
43630
43630
  h("smoothly-picker", { label: "Single select", multiple: false, "max-menu-height": "200px", options: [
43631
- { name: "Dog", value: "dog", aliases: ["WOFF"], description: "Woof 🐶" },
43631
+ { name: "Dog", value: "dog", aliases: ["WOFF"], right: "Woof 🐶" },
43632
43632
  { name: "Cat", value: "cat", aliases: ["moew"] },
43633
43633
  { name: "Pig", value: "pig" },
43634
43634
  { name: "Turtle", value: "turtle" },
@@ -43809,8 +43809,7 @@ let SmoothlySubmit$1 = class extends HTMLElement {
43809
43809
  result[element.name] = element.value;
43810
43810
  }
43811
43811
  }
43812
- const innerEvent = this.submitEvent.emit(result);
43813
- console.log("smoothly-submit", innerEvent);
43812
+ this.submitEvent.emit(result);
43814
43813
  this.processing = false;
43815
43814
  }
43816
43815
  }
@@ -117,16 +117,16 @@ let SmoothlyAppDemo = class {
117
117
  render() {
118
118
  return (h(App, { label: "Smoothly Demo" }, h("a", { slot: "nav-start", href: "display" }, "Display"), h("a", { slot: "nav-start", href: "https://google.com" }, "External"), h("smoothly-room", { path: "" }, h("smoothly-input", { type: "text" }, "Default")), h("smoothly-room", { path: "input", label: "Input" }, h("smoothly-input-demo", null)), h("smoothly-room", { path: "dialog", label: "Dialog" }, h("smoothly-dialog-demo", null)), h("smoothly-room", { path: "display", label: "Display", icon: "eye-outline" }, h("smoothly-display-demo", null)), h("smoothly-room", { path: "table", label: "Table" }, h("smoothly-table-demo", null)), h("smoothly-room", { path: "select", label: "Select" }, h("smoothly-select-demo", null)), h("smoothly-room", { path: "icon", label: "Icon" }, h("smoothly-icon-demo", null)), h("smoothly-room", { path: "old", label: "Old", to: "select" }), h("span", { slot: "header", style: { width: "100%", maxWidth: "500px" } }, h("smoothly-picker", { label: "All Animals Selected", style: { minWidth: "100px" }, labelSetting: "hide", "empty-menu-label": "Sorry, we're out of options.", "max-height": "58px", multiple: true, "select-none-name": "Select All", options: [
119
119
  { name: "Big Dog", value: "dog", aliases: ["WOFF"] },
120
- { name: "Cat Stevens", value: "cat", aliases: ["moew"] },
121
- { name: "Noble Pig", value: "pig" },
122
- { name: "Turtle Wax", value: "turtle" },
123
- { name: "Spider Man", value: "spider" },
124
- { name: "Phoenix Order Long Wooord", value: "phoenix" },
125
- { name: "Horse Back", value: "horse" },
126
- { name: "Unicorn Horn", value: "unicorn" },
127
- { name: "Talking Parrot Parrot", value: "parrot" },
128
- { name: "Hidden Dragon", value: "dragon" },
129
- { name: "Scary Kraken", value: "kraken" },
120
+ { name: "Cat Stevens", value: "cat", aliases: ["moew"], right: "🐈" },
121
+ { name: "Noble Pig", value: "pig", right: "🐷" },
122
+ { name: "Turtle Wax", value: "turtle", right: "" },
123
+ { name: "Spider Man", value: "spider", right: "" },
124
+ { name: "Phoenix Order Long Wooord", value: "phoenix", right: "" },
125
+ { name: "Horse Back", value: "horse", right: "" },
126
+ { name: "Unicorn Horn", value: "unicorn", right: "" },
127
+ { name: "Talking Parrot Parrot", value: "parrot", right: "" },
128
+ { name: "Hidden Dragon", value: "dragon", right: "" },
129
+ { name: "Scary Kraken", value: "kraken", right: "" },
130
130
  ] })), h("smoothly-trigger", { slot: "header", type: "link", name: "logout" }, h("smoothly-icon", { toolTip: "Log out", name: "log-out", size: "medium" }))));
131
131
  }
132
132
  };
@@ -40014,7 +40014,7 @@ let Item = class {
40014
40014
  };
40015
40015
  Item.style = styleCss$n;
40016
40016
 
40017
- const styleCss$m = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}div:last-child:not(:empty){padding:0.5em 1em;font-style:italic}:host:first-child{margin:10em}";
40017
+ const styleCss$m = ":host{max-height:300px;width:85%;max-height:var(--max-menu-height);box-sizing:border-box;background-color:rgb(var(--smoothly-default-color));border-radius:0.25em;color:rgb(var(--smoothly-primary-color));stroke:rgb(var(--smoothly-primary-color));fill:rgb(var(--smoothly-primary-color));box-shadow:0px 2px 24px rgba(64, 60, 57, 0.08), inset 0px 0px 1px rgba(64, 60, 57, 0.4);overflow-y:auto;cursor:pointer}:host:first-child{margin:10em}";
40018
40018
 
40019
40019
  let SmoothlyMenuOptions = class {
40020
40020
  constructor(hostRef) {
@@ -40106,7 +40106,7 @@ let SmoothlyMenuOptions = class {
40106
40106
  }
40107
40107
  }
40108
40108
  render() {
40109
- return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, ref: el => index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.description)))) : (h("div", null, this.emptyMenuLabel))));
40109
+ return (h(Host, { style: { "--max-menu-height": this.maxMenuHeight } }, this.filteredOptions.length > 0 ? (this.filteredOptions.map((option, index) => (h("smoothly-option", { style: this.optionStyle, ref: el => index == 0 && (this.firstOptionsElement = el !== null && el !== void 0 ? el : this.firstOptionsElement), value: option.value, name: option.name, divider: option.divider, "data-highlight": this.highlightIndex == index }, option.left ? h("div", { slot: "left" }, option.left) : undefined, option.right ? h("div", { slot: "right" }, option.right) : undefined)))) : (h("div", null, this.emptyMenuLabel))));
40110
40110
  }
40111
40111
  get element() { return getElement(this); }
40112
40112
  static get watchers() { return {
@@ -40197,7 +40197,7 @@ let Notifier = class {
40197
40197
  };
40198
40198
  Notifier.style = styleCss$k;
40199
40199
 
40200
- const styleCss$j = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host div:last-child :host div:first-child{color:rgba(var(--smoothly-primary-color), 0.8);font-style:italic}:host([divider]){margin-bottom:0.5em}:host>div[slot=right]{margin-right:100%;color:rgba(var(--smoothly-primary-color), 0.8)}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
40200
+ const styleCss$j = ":host{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;padding:0.7em 1em;margin-left:1px;margin-right:1px;background-color:transparent;position:relative}:host([data-highlight]){background-color:rgb(var(--smoothly-default-shade))}:host>div.middle{padding-left:0.5em;flex-shrink:1;width:100%}:host([divider]){margin-bottom:0.5em}::slotted([slot=right]){font-style:italic;white-space:nowrap}:host([divider])::after{position:absolute;height:1px;width:100%;left:0;bottom:-0.25em;content:\"\";background-color:rgba(var(--smoothly-dark-color))}";
40201
40201
 
40202
40202
  let SmoothlyOption = class {
40203
40203
  constructor(hostRef) {
@@ -40217,7 +40217,7 @@ let SmoothlyOption = class {
40217
40217
  throw `smoothly-option ${this.element.innerHTML} lacks value-property and can therefore not be selected`;
40218
40218
  }
40219
40219
  render() {
40220
- return (h(Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, h("div", null, h("slot", { name: "left" })), h("div", { class: "middle" }, this.name), h("div", null, h("slot", { name: "right" }))));
40220
+ return (h(Host, { onMouseDown: (e) => this.onSelect(e), onMouseOver: (e) => this.onHover(e) }, h("slot", { name: "left" }), h("div", { class: "middle" }, this.name), h("slot", { name: "right" })));
40221
40221
  }
40222
40222
  get element() { return getElement(this); }
40223
40223
  };
@@ -40335,7 +40335,7 @@ let SmoothlyPicker = class {
40335
40335
  this.filterOptions();
40336
40336
  }
40337
40337
  getCheckHtml(checked) {
40338
- return checked ? (h("smoothly-icon", { slot: "left", name: "checkbox", size: "small" })) : (h("smoothly-icon", { slot: "left", name: "square-outline", size: "small" }));
40338
+ return checked ? (h("smoothly-icon", { name: "checkbox", size: "small" })) : (h("smoothly-icon", { name: "square-outline", size: "small" }));
40339
40339
  }
40340
40340
  render() {
40341
40341
  var _a, _b, _c, _d;
@@ -40344,13 +40344,13 @@ let SmoothlyPicker = class {
40344
40344
  "--label-display": this.labelSetting == "hide" ? "none" : "absolute",
40345
40345
  };
40346
40346
  (_b = this.options) === null || _b === void 0 ? void 0 : _b.forEach(o => {
40347
- o.description = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
40347
+ o.left = this.getCheckHtml(this.selections.map(s => s.value).includes(o.value));
40348
40348
  });
40349
40349
  const options = [
40350
40350
  {
40351
40351
  value: "select-none",
40352
40352
  name: this.selectNoneName,
40353
- description: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
40353
+ left: this.getCheckHtml(this.selections.length == ((_c = this.options) === null || _c === void 0 ? void 0 : _c.length)),
40354
40354
  divider: true,
40355
40355
  },
40356
40356
  ...((_d = this.options) !== null && _d !== void 0 ? _d : []),
@@ -40525,7 +40525,7 @@ let SmoothlySelectDemo = class {
40525
40525
  ] }),
40526
40526
  h("br", null),
40527
40527
  h("smoothly-picker", { label: "Single select", multiple: false, "max-menu-height": "200px", options: [
40528
- { name: "Dog", value: "dog", aliases: ["WOFF"], description: "Woof 🐶" },
40528
+ { name: "Dog", value: "dog", aliases: ["WOFF"], right: "Woof 🐶" },
40529
40529
  { name: "Cat", value: "cat", aliases: ["moew"] },
40530
40530
  { name: "Pig", value: "pig" },
40531
40531
  { name: "Turtle", value: "turtle" },
@@ -40703,8 +40703,7 @@ let SmoothlySubmit = class {
40703
40703
  result[element.name] = element.value;
40704
40704
  }
40705
40705
  }
40706
- const innerEvent = this.submitEvent.emit(result);
40707
- console.log("smoothly-submit", innerEvent);
40706
+ this.submitEvent.emit(result);
40708
40707
  this.processing = false;
40709
40708
  }
40710
40709
  }