@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.
@@ -14,7 +14,7 @@ require('./component-cf490570.js');
14
14
  require('./ponyfill-98ca4766.js');
15
15
  require('./component-dd795ff0.js');
16
16
 
17
- const datePickerCss = "div.container{position:relative}";
17
+ const datePickerCss = ":host(limel-date-picker){position:relative}limel-input-field[disabled],limel-input-field[readonly]{pointer-events:none}";
18
18
 
19
19
  // tslint:disable:no-duplicate-string
20
20
  const nativeTypeForConsumerType = {
@@ -112,10 +112,13 @@ const DatePicker = class {
112
112
  inputProps.trailingIcon = 'clear_symbol';
113
113
  }
114
114
  if (this.useNative) {
115
- return (index.h("div", { class: "container" }, index.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
+ return (index.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 }));
116
116
  }
117
117
  const dropdownZIndex = getComputedStyle(this.host).getPropertyValue('--dropdown-z-index');
118
- return (index.h("div", { class: "container" }, index.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)), index.h("limel-portal", { containerId: this.portalId, visible: this.showPortal, containerStyle: { 'z-index': dropdownZIndex } }, index.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 }))));
118
+ return [
119
+ index.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)),
120
+ index.h("limel-portal", { containerId: this.portalId, visible: this.showPortal, containerStyle: { 'z-index': dropdownZIndex } }, index.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 })),
121
+ ];
119
122
  }
120
123
  onValueChange(newValue, oldValue) {
121
124
  if (newValue !== oldValue && newValue !== this.formattedValue) {
@@ -23749,6 +23749,9 @@ function findTitle(data, fieldSchema, formSchema) {
23749
23749
  if (!firstEntry) {
23750
23750
  return null;
23751
23751
  }
23752
+ if (!subSchema.properties) {
23753
+ return null;
23754
+ }
23752
23755
  const [key, value] = firstEntry;
23753
23756
  return findTitle(value, subSchema.properties[key], formSchema);
23754
23757
  }