@limetech/lime-elements 35.1.0-next.10 → 35.1.0-next.13

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.
@@ -1,6 +1,11 @@
1
1
  /**
2
2
  * @prop --dropdown-z-index: z-index of the dropdown menu.
3
3
  */
4
- div.container {
4
+ :host(limel-date-picker) {
5
5
  position: relative;
6
+ }
7
+
8
+ limel-input-field[disabled],
9
+ limel-input-field[readonly] {
10
+ pointer-events: none;
6
11
  }
@@ -110,14 +110,14 @@ export class DatePicker {
110
110
  inputProps.trailingIcon = 'clear_symbol';
111
111
  }
112
112
  if (this.useNative) {
113
- return (h("div", { class: "container" },
114
- h("limel-input-field", { disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, type: this.nativeType, onChange: this.nativeChangeHandler })));
113
+ return (h("limel-input-field", { disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, type: this.nativeType, onChange: this.nativeChangeHandler }));
115
114
  }
116
115
  const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
117
- return (h("div", { class: "container" },
116
+ return [
118
117
  h("limel-input-field", Object.assign({ disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, onFocus: this.showCalendar, onBlur: this.hideCalendar, onClick: this.onInputClick, onChange: this.handleInputElementChange, ref: (el) => (this.textField = el) }, inputProps)),
119
118
  h("limel-portal", { containerId: this.portalId, visible: this.showPortal, containerStyle: { 'z-index': dropdownZIndex } },
120
- h("limel-flatpickr-adapter", { format: this.internalFormat, language: this.language, type: this.type, value: this.value, ref: (el) => (this.datePickerCalendar = el), isOpen: this.showPortal, onChange: this.handleCalendarChange }))));
119
+ h("limel-flatpickr-adapter", { format: this.internalFormat, language: this.language, type: this.type, value: this.value, ref: (el) => (this.datePickerCalendar = el), isOpen: this.showPortal, onChange: this.handleCalendarChange })),
120
+ ];
121
121
  }
122
122
  onValueChange(newValue, oldValue) {
123
123
  if (newValue !== oldValue && newValue !== this.formattedValue) {
@@ -41,6 +41,9 @@ export function findTitle(data, fieldSchema, formSchema) {
41
41
  if (!firstEntry) {
42
42
  return null;
43
43
  }
44
+ if (!subSchema.properties) {
45
+ return null;
46
+ }
44
47
  const [key, value] = firstEntry;
45
48
  return findTitle(value, subSchema.properties[key], formSchema);
46
49
  }
@@ -124,7 +124,7 @@ export class ListRenderer {
124
124
  return;
125
125
  }
126
126
  return (h("limel-menu", { class: "mdc-deprecated-list-item__meta", items: actions, openDirection: "left" },
127
- h("limel-icon", { slot: "trigger", name: "menu_2", size: "small" })));
127
+ h("limel-icon-button", { class: "action-menu-trigger", slot: "trigger", icon: "menu_2" })));
128
128
  };
129
129
  this.renderVariantListItem = (config, item, index) => {
130
130
  let itemTemplate;
@@ -4052,6 +4052,10 @@ a.mdc-list-item {
4052
4052
  transition-timing-function: ease;
4053
4053
  }
4054
4054
 
4055
+ .action-menu-trigger {
4056
+ transform: scale(0.9);
4057
+ }
4058
+
4055
4059
  /*
4056
4060
  * This file is imported into every component!
4057
4061
  *
@@ -4058,6 +4058,10 @@ a.mdc-list-item {
4058
4058
  transition-timing-function: ease;
4059
4059
  }
4060
4060
 
4061
+ .action-menu-trigger {
4062
+ transform: scale(0.9);
4063
+ }
4064
+
4061
4065
  /*
4062
4066
  * This file is imported into every component!
4063
4067
  *
@@ -10,7 +10,7 @@ import './component-5b4ac85a.js';
10
10
  import './ponyfill-30263d5e.js';
11
11
  import './component-19eb6e2b.js';
12
12
 
13
- const datePickerCss = "div.container{position:relative}";
13
+ const datePickerCss = ":host(limel-date-picker){position:relative}limel-input-field[disabled],limel-input-field[readonly]{pointer-events:none}";
14
14
 
15
15
  // tslint:disable:no-duplicate-string
16
16
  const nativeTypeForConsumerType = {
@@ -108,10 +108,13 @@ const DatePicker = class {
108
108
  inputProps.trailingIcon = 'clear_symbol';
109
109
  }
110
110
  if (this.useNative) {
111
- return (h("div", { class: "container" }, h("limel-input-field", { disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, type: this.nativeType, onChange: this.nativeChangeHandler })));
111
+ return (h("limel-input-field", { disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, type: this.nativeType, onChange: this.nativeChangeHandler }));
112
112
  }
113
113
  const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
114
- return (h("div", { class: "container" }, h("limel-input-field", Object.assign({ disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, onFocus: this.showCalendar, onBlur: this.hideCalendar, onClick: this.onInputClick, onChange: this.handleInputElementChange, ref: (el) => (this.textField = el) }, inputProps)), h("limel-portal", { containerId: this.portalId, visible: this.showPortal, containerStyle: { 'z-index': dropdownZIndex } }, h("limel-flatpickr-adapter", { format: this.internalFormat, language: this.language, type: this.type, value: this.value, ref: (el) => (this.datePickerCalendar = el), isOpen: this.showPortal, onChange: this.handleCalendarChange }))));
114
+ return [
115
+ h("limel-input-field", Object.assign({ disabled: this.disabled, readonly: this.readonly, invalid: this.invalid, label: this.label, helperText: this.helperText, required: this.required, value: this.formattedValue, onFocus: this.showCalendar, onBlur: this.hideCalendar, onClick: this.onInputClick, onChange: this.handleInputElementChange, ref: (el) => (this.textField = el) }, inputProps)),
116
+ h("limel-portal", { containerId: this.portalId, visible: this.showPortal, containerStyle: { 'z-index': dropdownZIndex } }, h("limel-flatpickr-adapter", { format: this.internalFormat, language: this.language, type: this.type, value: this.value, ref: (el) => (this.datePickerCalendar = el), isOpen: this.showPortal, onChange: this.handleCalendarChange })),
117
+ ];
115
118
  }
116
119
  onValueChange(newValue, oldValue) {
117
120
  if (newValue !== oldValue && newValue !== this.formattedValue) {
@@ -23745,6 +23745,9 @@ function findTitle(data, fieldSchema, formSchema) {
23745
23745
  if (!firstEntry) {
23746
23746
  return null;
23747
23747
  }
23748
+ if (!subSchema.properties) {
23749
+ return null;
23750
+ }
23748
23751
  const [key, value] = firstEntry;
23749
23752
  return findTitle(value, subSchema.properties[key], formSchema);
23750
23753
  }