@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.
- package/dist/cjs/limel-form.cjs.entry.js +8893 -7605
- package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
- package/dist/cjs/limel-list_3.cjs.entry.js +1 -4
- package/dist/cjs/limel-menu-list.cjs.entry.js +1 -4
- package/dist/cjs/limel-picker.cjs.entry.js +1 -4
- package/dist/collection/components/dialog/dialog.js +7 -0
- package/dist/collection/components/input-field/input-field.js +1 -1
- package/dist/collection/components/list/list-renderer.js +1 -4
- package/dist/collection/components/menu-list/menu-list-renderer.js +1 -4
- package/dist/collection/components/picker/picker.js +3 -5
- package/dist/esm/limel-form.entry.js +8896 -7608
- package/dist/esm/limel-input-field.entry.js +1 -1
- package/dist/esm/limel-list_3.entry.js +1 -4
- package/dist/esm/limel-menu-list.entry.js +1 -4
- package/dist/esm/limel-picker.entry.js +1 -4
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-1fef7a86.entry.js +16 -0
- package/dist/lime-elements/{p-87564750.entry.js → p-e320ba6a.entry.js} +1 -1
- package/dist/types/components/dialog/dialog.d.ts +7 -0
- package/dist/types/components/picker/picker.d.ts +2 -1
- package/package.json +7 -7
- package/dist/lime-elements/p-8487c3c9.entry.js +0 -16
|
@@ -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-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
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
|
|
@@ -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
|
-
|
|
190
|
-
return false;
|
|
191
|
-
}
|
|
192
|
-
return true;
|
|
190
|
+
return !!this.chipSetEditMode;
|
|
193
191
|
}
|
|
194
192
|
getDropdownContent() {
|
|
195
193
|
if (!this.shouldShowDropDownContent()) {
|