@rxap/form-system 16.1.0-dev.2 → 16.1.0-dev.4
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/CHANGELOG.md +10 -0
- package/README.md +1 -1
- package/esm2022/lib/control-data-source.mjs +4 -4
- package/esm2022/lib/directives/array/for-form-array-items.directive.mjs +4 -4
- package/esm2022/lib/directives/array/form-array-add-item-button.directive.mjs +4 -4
- package/esm2022/lib/directives/array/form-array-item-button.mjs +4 -4
- package/esm2022/lib/directives/array/form-array-item-remove-button.directive.mjs +4 -4
- package/esm2022/lib/directives/array/form-array-item-restore-button.directive.mjs +4 -4
- package/esm2022/lib/directives/array/form-array-removable.directive.mjs +4 -4
- package/esm2022/lib/directives/control-hide-show.directive.mjs +4 -4
- package/esm2022/lib/directives/form-directives.module.mjs +5 -5
- package/esm2022/lib/directives/input-select-options.directive.mjs +4 -4
- package/esm2022/lib/directives/options-from-method.directive.mjs +4 -4
- package/esm2022/lib/directives/options-from-remote-method.directive.mjs +4 -4
- package/esm2022/lib/form-system-control.directive.mjs +4 -4
- package/esm2022/lib/mixins/extract-control.mixin.mjs +1 -5
- package/esm2022/lib/submit-context-form-adapter.factory.mjs +4 -4
- package/esm2022/lib/validators/is-equal-to.mjs +4 -4
- package/esm2022/lib/validators/is-selectable-value.directive.mjs +4 -4
- package/fesm2022/rxap-form-system.mjs +50 -53
- package/fesm2022/rxap-form-system.mjs.map +1 -1
- package/lib/mixins/extract-control.mixin.d.ts +2 -2
- package/package.json +12 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { forwardRef, Directive, Input, isDevMode, INJECTOR, Injector, Inject, SkipSelf, Optional, HostBinding, HostListener, Renderer2, ElementRef, Self, TemplateRef, ViewContainerRef, ChangeDetectorRef, NgModule, inject, InjectionToken, Injectable, ComponentFactoryResolver } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/forms';
|
|
4
|
-
import { NG_VALIDATORS,
|
|
4
|
+
import { NG_VALIDATORS, UntypedFormGroup, UntypedFormArray, ControlContainer, NgControl } from '@angular/forms';
|
|
5
5
|
import { __decorate, __metadata } from 'tslib';
|
|
6
6
|
import * as i1 from '@rxap/data-source';
|
|
7
7
|
import { PipeDataSource, DataSourceLoader, BaseDataSource, RXAP_DATA_SOURCE_METADATA } from '@rxap/data-source';
|
|
@@ -46,8 +46,8 @@ class IsEqualToDirective {
|
|
|
46
46
|
registerOnValidatorChange(fn) {
|
|
47
47
|
this._onChange = fn;
|
|
48
48
|
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
50
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsEqualToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
50
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IsEqualToDirective, isStandalone: true, selector: "[rxapIsEqualTo]", inputs: { equalTo: ["rxapIsEqualTo", "equalTo"] }, providers: [
|
|
51
51
|
{
|
|
52
52
|
provide: NG_VALIDATORS,
|
|
53
53
|
multi: true,
|
|
@@ -55,7 +55,7 @@ class IsEqualToDirective {
|
|
|
55
55
|
},
|
|
56
56
|
], ngImport: i0 }); }
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsEqualToDirective, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: '[rxapIsEqualTo]',
|
|
@@ -101,9 +101,6 @@ class ExtractControlMixin {
|
|
|
101
101
|
if (!ngControl) {
|
|
102
102
|
throw new Error('The ngControl is not defined!');
|
|
103
103
|
}
|
|
104
|
-
if (!(ngControl instanceof NgControl)) {
|
|
105
|
-
throw new Error('The AbstractControlDirective is not a NgControl!');
|
|
106
|
-
}
|
|
107
104
|
this.ngControl = ngControl;
|
|
108
105
|
const control = this.ngControl.control;
|
|
109
106
|
if (!(control instanceof RxapFormControl)) {
|
|
@@ -229,8 +226,8 @@ let IsSelectableValueDirective = class IsSelectableValueDirective {
|
|
|
229
226
|
}
|
|
230
227
|
return null;
|
|
231
228
|
}
|
|
232
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
233
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
229
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsSelectableValueDirective, deps: [{ token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
230
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: IsSelectableValueDirective, isStandalone: true, selector: "[rxapIsSelectableValue]", inputs: { viewer: "viewer" }, providers: [
|
|
234
231
|
{
|
|
235
232
|
provide: NG_VALIDATORS,
|
|
236
233
|
multi: true,
|
|
@@ -243,7 +240,7 @@ IsSelectableValueDirective = IsSelectableValueDirective_1 = __decorate([
|
|
|
243
240
|
__metadata("design:paramtypes", [DataSourceLoader,
|
|
244
241
|
Injector])
|
|
245
242
|
], IsSelectableValueDirective);
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
243
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IsSelectableValueDirective, decorators: [{
|
|
247
244
|
type: Directive,
|
|
248
245
|
args: [{
|
|
249
246
|
selector: '[rxapIsSelectableValue]',
|
|
@@ -426,10 +423,10 @@ class ForFormArrayItemsDirective {
|
|
|
426
423
|
}
|
|
427
424
|
this.cdr.detectChanges();
|
|
428
425
|
}
|
|
429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
430
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ForFormArrayItemsDirective, deps: [{ token: i1$1.ControlContainer, skipSelf: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
427
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ForFormArrayItemsDirective, isStandalone: true, selector: "[rxapForFormArrayItem]", ngImport: i0 }); }
|
|
431
428
|
}
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ForFormArrayItemsDirective, decorators: [{
|
|
433
430
|
type: Directive,
|
|
434
431
|
args: [{
|
|
435
432
|
selector: '[rxapForFormArrayItem]',
|
|
@@ -466,10 +463,10 @@ class FormArrayAddItemButtonDirective {
|
|
|
466
463
|
onClick() {
|
|
467
464
|
this.formArray.insertAt();
|
|
468
465
|
}
|
|
469
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
470
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
466
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayAddItemButtonDirective, deps: [{ token: i1$1.ControlContainer, optional: true, skipSelf: true }, { token: i2.MatButton, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
467
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormArrayAddItemButtonDirective, isStandalone: true, selector: "[rxapFormArrayItemAddButton]", host: { listeners: { "click": "onClick()" }, properties: { "type": "this.type", "disabled": "this.disabled" } }, ngImport: i0 }); }
|
|
471
468
|
}
|
|
472
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
469
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayAddItemButtonDirective, decorators: [{
|
|
473
470
|
type: Directive,
|
|
474
471
|
args: [{
|
|
475
472
|
selector: '[rxapFormArrayItemAddButton]',
|
|
@@ -539,10 +536,10 @@ class FormArrayItemButton {
|
|
|
539
536
|
this._controlDisabledSubscription?.unsubscribe();
|
|
540
537
|
this._deletedControlValueSubscription?.unsubscribe();
|
|
541
538
|
}
|
|
542
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
543
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
539
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayItemButton, deps: [{ token: i1$1.ControlContainer, skipSelf: true }, { token: i2.MatButton, optional: true }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
540
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormArrayItemButton, host: { properties: { "type": "this.type", "disabled": "this.disabled" } }, ngImport: i0 }); }
|
|
544
541
|
}
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayItemButton, decorators: [{
|
|
546
543
|
type: Directive
|
|
547
544
|
}], ctorParameters: function () { return [{ type: i1$1.ControlContainer, decorators: [{
|
|
548
545
|
type: SkipSelf
|
|
@@ -569,10 +566,10 @@ class FormArrayItemRemoveButtonDirective extends FormArrayItemButton {
|
|
|
569
566
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
570
567
|
}
|
|
571
568
|
}
|
|
572
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
573
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
569
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayItemRemoveButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
570
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormArrayItemRemoveButtonDirective, isStandalone: true, selector: "button[rxapFormArrayItemRemoveButton]", host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
574
571
|
}
|
|
575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayItemRemoveButtonDirective, decorators: [{
|
|
576
573
|
type: Directive,
|
|
577
574
|
args: [{
|
|
578
575
|
selector: 'button[rxapFormArrayItemRemoveButton]',
|
|
@@ -596,10 +593,10 @@ class FormArrayItemRestoreButtonDirective extends FormArrayItemButton {
|
|
|
596
593
|
this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');
|
|
597
594
|
}
|
|
598
595
|
}
|
|
599
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
600
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
596
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayItemRestoreButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
597
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormArrayItemRestoreButtonDirective, isStandalone: true, selector: "button[rxapFormArrayItemRestoreButton]", host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
601
598
|
}
|
|
602
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayItemRestoreButtonDirective, decorators: [{
|
|
603
600
|
type: Directive,
|
|
604
601
|
args: [{
|
|
605
602
|
selector: 'button[rxapFormArrayItemRestoreButton]',
|
|
@@ -653,10 +650,10 @@ class FormArrayRemovableDirective {
|
|
|
653
650
|
ngOnDestroy() {
|
|
654
651
|
this._deletedControlValueSubscription?.unsubscribe();
|
|
655
652
|
}
|
|
656
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
657
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
653
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayRemovableDirective, deps: [{ token: i1$1.ControlContainer, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
654
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormArrayRemovableDirective, isStandalone: true, selector: "[rxapFormArrayRemovable]", ngImport: i0 }); }
|
|
658
655
|
}
|
|
659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormArrayRemovableDirective, decorators: [{
|
|
660
657
|
type: Directive,
|
|
661
658
|
args: [{
|
|
662
659
|
selector: '[rxapFormArrayRemovable]',
|
|
@@ -788,15 +785,15 @@ let ControlHideShowDirective = class ControlHideShowDirective {
|
|
|
788
785
|
reset() {
|
|
789
786
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
790
787
|
}
|
|
791
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
792
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ControlHideShowDirective, deps: [{ token: Renderer2 }, { token: ElementRef }, { token: ControlContainer, optional: true }, { token: NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
789
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: ControlHideShowDirective, isStandalone: true, selector: "[rxapControlHideShow]", inputs: { controlId: ["rxapControlHideShow", "controlId"] }, ngImport: i0 }); }
|
|
793
790
|
};
|
|
794
791
|
ControlHideShowDirective = __decorate([
|
|
795
792
|
Mixin(ExtractControlFromParentMixin, ExtractFormDefinitionMixin),
|
|
796
793
|
__metadata("design:paramtypes", [Renderer2,
|
|
797
794
|
ElementRef, Object, Object])
|
|
798
795
|
], ControlHideShowDirective);
|
|
799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
796
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ControlHideShowDirective, decorators: [{
|
|
800
797
|
type: Directive,
|
|
801
798
|
args: [{
|
|
802
799
|
selector: '[rxapControlHideShow]',
|
|
@@ -937,8 +934,8 @@ let InputSelectOptionsDirective = class InputSelectOptionsDirective {
|
|
|
937
934
|
}
|
|
938
935
|
this.cdr.detectChanges();
|
|
939
936
|
}
|
|
940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
941
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
937
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputSelectOptionsDirective, deps: [{ token: TemplateRef }, { token: DataSourceLoader }, { token: ViewContainerRef }, { token: INJECTOR }, { token: ChangeDetectorRef }, { token: NgControl, optional: true }, { token: MAT_FORM_FIELD, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
938
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: InputSelectOptionsDirective, isStandalone: true, selector: "[rxapInputSelectOptions]", inputs: { viewer: ["rxapInputSelectOptionsViewer", "viewer"], metadata: ["rxapInputSelectOptionsMetadata", "metadata"], matAutocomplete: ["rxapInputSelectOptionsMatAutocomplete", "matAutocomplete"] }, ngImport: i0 }); }
|
|
942
939
|
};
|
|
943
940
|
InputSelectOptionsDirective = __decorate([
|
|
944
941
|
Mixin(ExtractOptionsDataSourceMixin),
|
|
@@ -948,7 +945,7 @@ InputSelectOptionsDirective = __decorate([
|
|
|
948
945
|
Injector,
|
|
949
946
|
ChangeDetectorRef, Object, Object])
|
|
950
947
|
], InputSelectOptionsDirective);
|
|
951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InputSelectOptionsDirective, decorators: [{
|
|
952
949
|
type: Directive,
|
|
953
950
|
args: [{
|
|
954
951
|
selector: '[rxapInputSelectOptions]',
|
|
@@ -991,13 +988,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImpor
|
|
|
991
988
|
}] } });
|
|
992
989
|
|
|
993
990
|
class FormSystemDirectivesModule {
|
|
994
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
995
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
991
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormSystemDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
992
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormSystemDirectivesModule, imports: [InputSelectOptionsDirective,
|
|
996
993
|
ControlHideShowDirective], exports: [InputSelectOptionsDirective,
|
|
997
994
|
ControlHideShowDirective] }); }
|
|
998
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
995
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormSystemDirectivesModule }); }
|
|
999
996
|
}
|
|
1000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
997
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormSystemDirectivesModule, decorators: [{
|
|
1001
998
|
type: NgModule,
|
|
1002
999
|
args: [{
|
|
1003
1000
|
exports: [
|
|
@@ -1067,13 +1064,13 @@ let OptionsFromMethodDirective = class OptionsFromMethodDirective {
|
|
|
1067
1064
|
this.options = options.slice();
|
|
1068
1065
|
this.renderTemplate();
|
|
1069
1066
|
}
|
|
1070
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1071
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
1067
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OptionsFromMethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1068
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: OptionsFromMethodDirective, isStandalone: true, selector: "[rxapOptionsFromMethod]", inputs: { parameters: ["rxapOptionsFromMethodParameters", "parameters"], resetOnChange: ["rxapOptionsFromMethodResetOnChange", "resetOnChange"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1072
1069
|
};
|
|
1073
1070
|
OptionsFromMethodDirective = __decorate([
|
|
1074
1071
|
Mixin(ExtractOptionsMethodMixin)
|
|
1075
1072
|
], OptionsFromMethodDirective);
|
|
1076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1073
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OptionsFromMethodDirective, decorators: [{
|
|
1077
1074
|
type: Directive,
|
|
1078
1075
|
args: [{
|
|
1079
1076
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1160,8 +1157,8 @@ let OptionsFromRemoteMethodDirective = class OptionsFromRemoteMethodDirective {
|
|
|
1160
1157
|
}
|
|
1161
1158
|
this.cdr.detectChanges();
|
|
1162
1159
|
}
|
|
1163
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1164
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
1160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OptionsFromRemoteMethodDirective, deps: [{ token: NgControl }, { token: TemplateRef }, { token: RemoteMethodLoader }, { token: ViewContainerRef }, { token: INJECTOR }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1161
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: OptionsFromRemoteMethodDirective, isStandalone: true, selector: "[rxapOptionsFromRemoteMethod]", inputs: { parameters: ["rxapOptionsFromRemoteMethodParameters", "parameters"], resetOnChange: ["rxapOptionsFromRemoteMethodResetOnChange", "resetOnChange"], withoutParameters: ["rxapOptionsFromRemoteMethodWithoutParameters", "withoutParameters"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1165
1162
|
};
|
|
1166
1163
|
OptionsFromRemoteMethodDirective = __decorate([
|
|
1167
1164
|
Mixin(ExtractFormDefinitionMixin, ExtractRemoteMethodsMixin),
|
|
@@ -1172,7 +1169,7 @@ OptionsFromRemoteMethodDirective = __decorate([
|
|
|
1172
1169
|
Injector,
|
|
1173
1170
|
ChangeDetectorRef])
|
|
1174
1171
|
], OptionsFromRemoteMethodDirective);
|
|
1175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OptionsFromRemoteMethodDirective, decorators: [{
|
|
1176
1173
|
type: Directive,
|
|
1177
1174
|
args: [{
|
|
1178
1175
|
selector: '[rxapOptionsFromRemoteMethod]',
|
|
@@ -1254,10 +1251,10 @@ class ControlDataSource extends BaseDataSource {
|
|
|
1254
1251
|
}
|
|
1255
1252
|
this._data$ = this.control.valueChanges.pipe(startWith$1(this.control.value), distinctUntilChanged$1((a, b) => equals(a, b)), shareReplay(1));
|
|
1256
1253
|
}
|
|
1257
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1258
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ControlDataSource, deps: [{ token: RXAP_FORM_CONTROL_SOURCE }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1255
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ControlDataSource }); }
|
|
1259
1256
|
}
|
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ControlDataSource, decorators: [{
|
|
1261
1258
|
type: Injectable
|
|
1262
1259
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1263
1260
|
type: Inject,
|
|
@@ -1372,8 +1369,8 @@ let FormSystemControlDirective = class FormSystemControlDirective {
|
|
|
1372
1369
|
}
|
|
1373
1370
|
return map.get(this.controlId);
|
|
1374
1371
|
}
|
|
1375
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1376
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.
|
|
1372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormSystemControlDirective, deps: [{ token: ControlContainer }, { token: ComponentFactoryResolver }, { token: ViewContainerRef }, { token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1373
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: FormSystemControlDirective, isStandalone: true, selector: "[rxapFormSystemControl]", inputs: { controlId: "controlId" }, ngImport: i0 }); }
|
|
1377
1374
|
};
|
|
1378
1375
|
FormSystemControlDirective = __decorate([
|
|
1379
1376
|
Mixin(ExtractDataSourcesMixin),
|
|
@@ -1383,7 +1380,7 @@ FormSystemControlDirective = __decorate([
|
|
|
1383
1380
|
DataSourceLoader,
|
|
1384
1381
|
Injector])
|
|
1385
1382
|
], FormSystemControlDirective);
|
|
1386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1383
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormSystemControlDirective, decorators: [{
|
|
1387
1384
|
type: Directive,
|
|
1388
1385
|
args: [{
|
|
1389
1386
|
selector: '[rxapFormSystemControl]',
|
|
@@ -1421,10 +1418,10 @@ class SubmitContextFormAdapter extends ProxyRemoteMethod {
|
|
|
1421
1418
|
requestBody: value,
|
|
1422
1419
|
};
|
|
1423
1420
|
}
|
|
1424
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
1425
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
1421
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmitContextFormAdapter, deps: [{ token: SUBMIT_CONTEXT_FORM_ADAPTER_METHOD }, { token: RXAP_FORM_CONTEXT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1422
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmitContextFormAdapter }); }
|
|
1426
1423
|
}
|
|
1427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
1424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SubmitContextFormAdapter, decorators: [{
|
|
1428
1425
|
type: Injectable
|
|
1429
1426
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
1430
1427
|
type: Inject,
|