@covalent/dynamic-forms 10.4.0-beta.3 → 11.0.0-beta.1

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, Injectable, Optional, SkipSelf, Directive, Input, Type, ViewChild, HostBinding, ChangeDetectionStrategy, ContentChildren, NgModule } from '@angular/core';
2
+ import { Component, Injectable, Optional, SkipSelf, Directive, Input, Type, HostBinding, ViewChild, ChangeDetectionStrategy, ContentChildren, NgModule } from '@angular/core';
3
3
  import * as i2 from '@angular/forms';
4
4
  import { ReactiveFormsModule, UntypedFormControl, Validators, NG_VALUE_ACCESSOR } from '@angular/forms';
5
5
  import * as i1 from '@angular/common';
@@ -293,9 +293,8 @@ function TdDynamicSelectComponent_mat_option_5_Template(rf, ctx) { if (rf & 1) {
293
293
  i0.ɵɵtext(1);
294
294
  i0.ɵɵelementEnd();
295
295
  } if (rf & 2) {
296
- let tmp_2_0;
297
296
  const selection_r1 = ctx.$implicit;
298
- i0.ɵɵproperty("value", (tmp_2_0 = selection_r1.value) !== null && tmp_2_0 !== undefined ? tmp_2_0 : selection_r1);
297
+ i0.ɵɵproperty("value", selection_r1.value ?? selection_r1);
299
298
  i0.ɵɵadvance();
300
299
  i0.ɵɵtextInterpolate1(" ", selection_r1.label || selection_r1, " ");
301
300
  } }
@@ -762,10 +761,9 @@ const _c0 = ["*"];
762
761
  function TdDynamicFormsComponent_ng_template_2_td_dynamic_element_1_Template(rf, ctx) { if (rf & 1) {
763
762
  i0.ɵɵelement(0, "td-dynamic-element", 6, 0);
764
763
  } if (rf & 2) {
765
- let tmp_11_0;
766
764
  const element_r1 = i0.ɵɵnextContext().$implicit;
767
765
  const ctx_r1 = i0.ɵɵnextContext();
768
- i0.ɵɵproperty("formControlName", element_r1.name)("dynamicControl", ctx_r1.dynamicForm.controls[element_r1.name])("id", element_r1.name)("name", element_r1.name)("label", element_r1.label || element_r1.name)("hint", element_r1.hint)("type", element_r1.type)("required", (tmp_11_0 = element_r1.required) !== null && tmp_11_0 !== undefined ? tmp_11_0 : false)("min", element_r1.min)("max", element_r1.max)("minLength", element_r1.minLength)("maxLength", element_r1.maxLength)("selections", element_r1.selections)("multiple", element_r1.multiple)("customConfig", element_r1.customConfig)("errorMessageTemplate", ctx_r1.getErrorTemplateRef(element_r1.name))("placeholder", element_r1.placeholder);
766
+ i0.ɵɵproperty("formControlName", element_r1.name)("dynamicControl", ctx_r1.dynamicForm.controls[element_r1.name])("id", element_r1.name)("name", element_r1.name)("label", element_r1.label || element_r1.name)("hint", element_r1.hint)("type", element_r1.type)("required", element_r1.required ?? false)("min", element_r1.min)("max", element_r1.max)("minLength", element_r1.minLength)("maxLength", element_r1.maxLength)("selections", element_r1.selections)("multiple", element_r1.multiple)("customConfig", element_r1.customConfig)("errorMessageTemplate", ctx_r1.getErrorTemplateRef(element_r1.name))("placeholder", element_r1.placeholder);
769
767
  } }
770
768
  function TdDynamicFormsComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
771
769
  i0.ɵɵelementStart(0, "div", 4);