@limetech/lime-elements 35.0.0-next.29 → 35.0.0-next.31

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.
@@ -573,7 +573,7 @@ let InputField = class {
573
573
  this.renderPortal = (content = null) => {
574
574
  const dropdownZIndex = getComputedStyle(this.limelInputField).getPropertyValue('--dropdown-z-index');
575
575
  return (index.h("limel-portal", { visible: this.showCompletions, containerId: this.portalId, inheritParentWidth: true, containerStyle: { 'z-index': dropdownZIndex } }, index.h("limel-menu-surface", { open: this.showCompletions, allowClicksElement: this.limelInputField, style: {
576
- '--menu-surface-width': '100%',
576
+ '--mdc-menu-min-width': '100%',
577
577
  'max-height': 'inherit',
578
578
  display: 'flex',
579
579
  }, onDismiss: this.handleCloseMenu }, content)));
@@ -111,10 +111,7 @@ class ListRenderer {
111
111
  index.h("div", { class: "mdc-deprecated-list-item__secondary-text" }, item.secondaryText)));
112
112
  };
113
113
  this.isSimpleItem = (item) => {
114
- if ('secondaryText' in item) {
115
- return false;
116
- }
117
- return true;
114
+ return !('secondaryText' in item);
118
115
  };
119
116
  /**
120
117
  * Render an icon for a list item
@@ -702,10 +702,7 @@ class MenuListRenderer {
702
702
  if ('commandText' in item) {
703
703
  return false;
704
704
  }
705
- if ('secondaryText' in item) {
706
- return false;
707
- }
708
- return true;
705
+ return !('secondaryText' in item);
709
706
  };
710
707
  /**
711
708
  * Render an icon for a list item
@@ -405,10 +405,7 @@ let Picker = class {
405
405
  if (this.isFull()) {
406
406
  return false;
407
407
  }
408
- if (!this.chipSetEditMode) {
409
- return false;
410
- }
411
- return true;
408
+ return !!this.chipSetEditMode;
412
409
  }
413
410
  getDropdownContent() {
414
411
  if (!this.shouldShowDropDownContent()) {
@@ -12,6 +12,13 @@ import { createRandomString } from '../../util/random-string';
12
12
  * See the example _Nested `close` events_.
13
13
  * :::
14
14
  *
15
+ * :::important
16
+ * Are you developing for
17
+ * [Lime CRM](https://www.lime-technologies.com/en/lime-crm/)? Please note that
18
+ * you should use the [DialogService](https://lundalogik.github.io/lime-web-components/versions/latest/#/api/dialog-service)
19
+ * from Lime Web Components to open dialogs in Lime CRM.
20
+ * :::
21
+ *
15
22
  * @exampleComponent limel-example-dialog
16
23
  * @exampleComponent limel-example-dialog-nested-close-events
17
24
  * @exampleComponent limel-example-dialog-heading
@@ -372,7 +372,7 @@ export class InputField {
372
372
  const dropdownZIndex = getComputedStyle(this.limelInputField).getPropertyValue('--dropdown-z-index');
373
373
  return (h("limel-portal", { visible: this.showCompletions, containerId: this.portalId, inheritParentWidth: true, containerStyle: { 'z-index': dropdownZIndex } },
374
374
  h("limel-menu-surface", { open: this.showCompletions, allowClicksElement: this.limelInputField, style: {
375
- '--menu-surface-width': '100%',
375
+ '--mdc-menu-min-width': '100%',
376
376
  'max-height': 'inherit',
377
377
  display: 'flex',
378
378
  }, onDismiss: this.handleCloseMenu }, content)));
@@ -88,10 +88,7 @@ export class ListRenderer {
88
88
  h("div", { class: "mdc-deprecated-list-item__secondary-text" }, item.secondaryText)));
89
89
  };
90
90
  this.isSimpleItem = (item) => {
91
- if ('secondaryText' in item) {
92
- return false;
93
- }
94
- return true;
91
+ return !('secondaryText' in item);
95
92
  };
96
93
  /**
97
94
  * Render an icon for a list item
@@ -86,10 +86,7 @@ export class MenuListRenderer {
86
86
  if ('commandText' in item) {
87
87
  return false;
88
88
  }
89
- if ('secondaryText' in item) {
90
- return false;
91
- }
92
- return true;
89
+ return !('secondaryText' in item);
93
90
  };
94
91
  /**
95
92
  * Render an icon for a list item
@@ -6,12 +6,13 @@ import { createRandomString } from '../../util/random-string';
6
6
  const SEARCH_DEBOUNCE = 500;
7
7
  const CHIP_SET_TAG_NAME = 'limel-chip-set';
8
8
  /**
9
- * @exampleComponent limel-example-picker
9
+ * @exampleComponent limel-example-picker-single
10
10
  * @exampleComponent limel-example-picker-multiple
11
11
  * @exampleComponent limel-example-picker-icons
12
12
  * @exampleComponent limel-example-picker-empty-suggestions
13
13
  * @exampleComponent limel-example-picker-leading-icon
14
14
  * @exampleComponent limel-example-picker-static-actions
15
+ * @exampleComponent limel-example-picker-composite
15
16
  */
16
17
  export class Picker {
17
18
  constructor() {
@@ -186,10 +187,7 @@ export class Picker {
186
187
  if (this.isFull()) {
187
188
  return false;
188
189
  }
189
- if (!this.chipSetEditMode) {
190
- return false;
191
- }
192
- return true;
190
+ return !!this.chipSetEditMode;
193
191
  }
194
192
  getDropdownContent() {
195
193
  if (!this.shouldShowDropDownContent()) {