@tft/crispr-forms 13.0.16 → 13.0.17
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/esm2020/lib/field.directive.mjs +8 -5
- package/fesm2015/tft-crispr-forms.mjs +6 -3
- package/fesm2015/tft-crispr-forms.mjs.map +1 -1
- package/fesm2020/tft-crispr-forms.mjs +6 -3
- package/fesm2020/tft-crispr-forms.mjs.map +1 -1
- package/lib/field.directive.d.ts +3 -2
- package/package.json +1 -1
- package/tft-crispr-forms-13.0.17.tgz +0 -0
- package/tft-crispr-forms-13.0.16.tgz +0 -0
|
@@ -1572,9 +1572,10 @@ function isControlOrButtonComponent(component) {
|
|
|
1572
1572
|
}
|
|
1573
1573
|
|
|
1574
1574
|
class CrisprFieldDirective {
|
|
1575
|
-
constructor(container, renderer) {
|
|
1575
|
+
constructor(container, renderer, cdr) {
|
|
1576
1576
|
this.container = container;
|
|
1577
1577
|
this.renderer = renderer;
|
|
1578
|
+
this.cdr = cdr;
|
|
1578
1579
|
}
|
|
1579
1580
|
set value(value) {
|
|
1580
1581
|
this._value = value;
|
|
@@ -1613,17 +1614,19 @@ class CrisprFieldDirective {
|
|
|
1613
1614
|
updateComponentValue(value) {
|
|
1614
1615
|
if (this.component && isControlComponent(this.component)) {
|
|
1615
1616
|
this.component.value = value;
|
|
1617
|
+
// SubGroups won't populate without this
|
|
1618
|
+
this.cdr.detectChanges();
|
|
1616
1619
|
}
|
|
1617
1620
|
}
|
|
1618
1621
|
}
|
|
1619
|
-
CrisprFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: CrisprFieldDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1622
|
+
CrisprFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: CrisprFieldDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1620
1623
|
CrisprFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.1", type: CrisprFieldDirective, selector: "[crisprField]", inputs: { config: "config", group: "group", value: "value" }, ngImport: i0 });
|
|
1621
1624
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.1", ngImport: i0, type: CrisprFieldDirective, decorators: [{
|
|
1622
1625
|
type: Directive,
|
|
1623
1626
|
args: [{
|
|
1624
1627
|
selector: '[crisprField]'
|
|
1625
1628
|
}]
|
|
1626
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.Renderer2 }]; }, propDecorators: { config: [{
|
|
1629
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { config: [{
|
|
1627
1630
|
type: Input
|
|
1628
1631
|
}], group: [{
|
|
1629
1632
|
type: Input
|