@rxap/form-system 18.1.2 → 18.1.3-dev.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.
- package/CHANGELOG.md +11 -0
- package/esm2022/lib/control-data-source.mjs +3 -3
- package/esm2022/lib/directives/array/for-form-array-items.directive.mjs +3 -3
- package/esm2022/lib/directives/array/form-array-add-item-button.directive.mjs +3 -3
- package/esm2022/lib/directives/array/form-array-item-button.mjs +19 -11
- package/esm2022/lib/directives/array/form-array-item-remove-button.directive.mjs +24 -7
- package/esm2022/lib/directives/array/form-array-item-restore-button.directive.mjs +3 -3
- package/esm2022/lib/directives/array/form-array-removable.directive.mjs +17 -11
- package/esm2022/lib/directives/control-hide-show.directive.mjs +3 -3
- package/esm2022/lib/directives/form-directives.module.mjs +4 -4
- package/esm2022/lib/directives/input-select-options.directive.mjs +3 -3
- package/esm2022/lib/directives/options-from-method.directive.mjs +3 -3
- package/esm2022/lib/directives/options-from-remote-method.directive.mjs +3 -3
- package/esm2022/lib/form-system-control.directive.mjs +3 -3
- package/esm2022/lib/submit-context-form-adapter.factory.mjs +3 -3
- package/esm2022/lib/validators/is-equal-to.mjs +3 -3
- package/esm2022/lib/validators/is-selectable-value.directive.mjs +3 -3
- package/fesm2022/rxap-form-system.mjs +94 -63
- package/fesm2022/rxap-form-system.mjs.map +1 -1
- package/lib/directives/array/form-array-item-button.d.ts +2 -1
- package/lib/directives/array/form-array-item-remove-button.directive.d.ts +8 -1
- package/lib/directives/array/form-array-removable.directive.d.ts +1 -1
- package/package.json +32 -32
|
@@ -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: "18.0
|
|
50
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: IsEqualToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
50
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", 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: "18.0
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: IsEqualToDirective, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: '[rxapIsEqualTo]',
|
|
@@ -224,8 +224,8 @@ let IsSelectableValueDirective = class IsSelectableValueDirective {
|
|
|
224
224
|
}
|
|
225
225
|
return null;
|
|
226
226
|
}
|
|
227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
228
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: IsSelectableValueDirective, deps: [{ token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
228
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: IsSelectableValueDirective, isStandalone: true, selector: "[rxapIsSelectableValue]", inputs: { viewer: "viewer" }, providers: [
|
|
229
229
|
{
|
|
230
230
|
provide: NG_VALIDATORS,
|
|
231
231
|
multi: true,
|
|
@@ -238,7 +238,7 @@ IsSelectableValueDirective = __decorate([
|
|
|
238
238
|
__metadata("design:paramtypes", [DataSourceLoader,
|
|
239
239
|
Injector])
|
|
240
240
|
], IsSelectableValueDirective);
|
|
241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: IsSelectableValueDirective, decorators: [{
|
|
242
242
|
type: Directive,
|
|
243
243
|
args: [{
|
|
244
244
|
selector: '[rxapIsSelectableValue]',
|
|
@@ -435,10 +435,10 @@ class ForFormArrayItemsDirective {
|
|
|
435
435
|
}
|
|
436
436
|
this.cdr.detectChanges();
|
|
437
437
|
}
|
|
438
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
439
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ForFormArrayItemsDirective, deps: [{ token: i1$1.ControlContainer, skipSelf: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
439
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: ForFormArrayItemsDirective, isStandalone: true, selector: "[rxapForFormArrayItem]", ngImport: i0 }); }
|
|
440
440
|
}
|
|
441
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ForFormArrayItemsDirective, decorators: [{
|
|
442
442
|
type: Directive,
|
|
443
443
|
args: [{
|
|
444
444
|
selector: '[rxapForFormArrayItem]',
|
|
@@ -475,10 +475,10 @@ class FormArrayAddItemButtonDirective {
|
|
|
475
475
|
onClick() {
|
|
476
476
|
this.formArray.insertAt();
|
|
477
477
|
}
|
|
478
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
479
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
478
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayAddItemButtonDirective, deps: [{ token: i1$1.ControlContainer, optional: true, skipSelf: true }, { token: i2.MatButton, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
479
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FormArrayAddItemButtonDirective, isStandalone: true, selector: "[rxapFormArrayItemAddButton]", host: { listeners: { "click": "onClick()" }, properties: { "type": "this.type", "disabled": "this.disabled" } }, ngImport: i0 }); }
|
|
480
480
|
}
|
|
481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayAddItemButtonDirective, decorators: [{
|
|
482
482
|
type: Directive,
|
|
483
483
|
args: [{
|
|
484
484
|
selector: '[rxapFormArrayItemAddButton]',
|
|
@@ -517,7 +517,7 @@ class FormArrayItemButton {
|
|
|
517
517
|
return this.deletedControl.value;
|
|
518
518
|
}
|
|
519
519
|
get index() {
|
|
520
|
-
return this.
|
|
520
|
+
return this.formArray.controls.findIndex(control => control === this.formGroup);
|
|
521
521
|
}
|
|
522
522
|
get isDisabled() {
|
|
523
523
|
return !!this.formGroup?.parent?.disabled;
|
|
@@ -525,15 +525,23 @@ class FormArrayItemButton {
|
|
|
525
525
|
ngAfterViewInit() {
|
|
526
526
|
if (this.parent.control instanceof RxapFormGroup) {
|
|
527
527
|
this.formGroup = this.parent.control;
|
|
528
|
-
if (this.formGroup.controls.deleted
|
|
529
|
-
|
|
528
|
+
if (this.formGroup.controls.deleted) {
|
|
529
|
+
if (this.formGroup.controls.deleted instanceof RxapFormControl) {
|
|
530
|
+
this.deletedControl = this.formGroup.controls.deleted;
|
|
531
|
+
}
|
|
532
|
+
else {
|
|
533
|
+
throw new Error(`The parent FormGroup instance does have a 'deleted' control, but it is not a RxapFormControl instance`);
|
|
534
|
+
}
|
|
530
535
|
}
|
|
531
536
|
else {
|
|
532
537
|
this.deletedControl = new RxapFormControl(false, { controlId: 'deleted' });
|
|
533
538
|
this.formGroup.addControl('deleted', this.deletedControl);
|
|
534
539
|
}
|
|
535
|
-
if (
|
|
536
|
-
|
|
540
|
+
if (this.formGroup.parent instanceof RxapFormArray) {
|
|
541
|
+
this.formArray = this.formGroup.parent;
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
throw new Error(`The parent of the FormGroup is not a RxapFormArray instance`);
|
|
537
545
|
}
|
|
538
546
|
}
|
|
539
547
|
else {
|
|
@@ -548,10 +556,10 @@ class FormArrayItemButton {
|
|
|
548
556
|
this._controlDisabledSubscription?.unsubscribe();
|
|
549
557
|
this._deletedControlValueSubscription?.unsubscribe();
|
|
550
558
|
}
|
|
551
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
552
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
559
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", 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 }); }
|
|
560
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FormArrayItemButton, host: { properties: { "type": "this.type", "disabled": "this.disabled" } }, ngImport: i0 }); }
|
|
553
561
|
}
|
|
554
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
562
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayItemButton, decorators: [{
|
|
555
563
|
type: Directive
|
|
556
564
|
}], ctorParameters: () => [{ type: i1$1.ControlContainer, decorators: [{
|
|
557
565
|
type: SkipSelf
|
|
@@ -567,8 +575,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImpor
|
|
|
567
575
|
|
|
568
576
|
// TODO : move to rxap packages
|
|
569
577
|
class FormArrayItemRemoveButtonDirective extends FormArrayItemButton {
|
|
578
|
+
constructor() {
|
|
579
|
+
super(...arguments);
|
|
580
|
+
/**
|
|
581
|
+
* A function that returns if the control should be temporarily deleted.
|
|
582
|
+
* true - in the given form group the deleted control is set to true
|
|
583
|
+
* false - the form group is removed from the (parent) form array
|
|
584
|
+
*/
|
|
585
|
+
this.shouldTemporarilyDeleted = () => false;
|
|
586
|
+
}
|
|
570
587
|
onClick() {
|
|
571
|
-
this.
|
|
588
|
+
const templateDelete = this.shouldTemporarilyDeleted(this.formGroup);
|
|
589
|
+
if (templateDelete) {
|
|
590
|
+
this.deletedControl.setValue(true);
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
this.formArray.removeAt(this.index);
|
|
594
|
+
}
|
|
572
595
|
}
|
|
573
596
|
updateDisplayStyle() {
|
|
574
597
|
if (this.isDeleted) {
|
|
@@ -578,16 +601,18 @@ class FormArrayItemRemoveButtonDirective extends FormArrayItemButton {
|
|
|
578
601
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
579
602
|
}
|
|
580
603
|
}
|
|
581
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
582
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
604
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayItemRemoveButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
605
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FormArrayItemRemoveButtonDirective, isStandalone: true, selector: "button[rxapFormArrayItemRemoveButton]", inputs: { shouldTemporarilyDeleted: "shouldTemporarilyDeleted" }, host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
583
606
|
}
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayItemRemoveButtonDirective, decorators: [{
|
|
585
608
|
type: Directive,
|
|
586
609
|
args: [{
|
|
587
610
|
selector: 'button[rxapFormArrayItemRemoveButton]',
|
|
588
611
|
standalone: true,
|
|
589
612
|
}]
|
|
590
|
-
}], propDecorators: {
|
|
613
|
+
}], propDecorators: { shouldTemporarilyDeleted: [{
|
|
614
|
+
type: Input
|
|
615
|
+
}], onClick: [{
|
|
591
616
|
type: HostListener,
|
|
592
617
|
args: ['click']
|
|
593
618
|
}] } });
|
|
@@ -605,10 +630,10 @@ class FormArrayItemRestoreButtonDirective extends FormArrayItemButton {
|
|
|
605
630
|
this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');
|
|
606
631
|
}
|
|
607
632
|
}
|
|
608
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
609
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
633
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayItemRestoreButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
634
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FormArrayItemRestoreButtonDirective, isStandalone: true, selector: "button[rxapFormArrayItemRestoreButton]", host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
610
635
|
}
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayItemRestoreButtonDirective, decorators: [{
|
|
612
637
|
type: Directive,
|
|
613
638
|
args: [{
|
|
614
639
|
selector: 'button[rxapFormArrayItemRestoreButton]',
|
|
@@ -628,18 +653,24 @@ class FormArrayRemovableDirective {
|
|
|
628
653
|
return this.deletedControl.value;
|
|
629
654
|
}
|
|
630
655
|
get isDisabled() {
|
|
631
|
-
return !!this.
|
|
656
|
+
return !!this.formGroup?.parent?.disabled;
|
|
632
657
|
}
|
|
633
658
|
ngAfterViewInit() {
|
|
634
659
|
if (this.parent.control instanceof RxapFormGroup) {
|
|
635
|
-
this.
|
|
636
|
-
if (this.
|
|
637
|
-
|
|
660
|
+
this.formGroup = this.parent.control;
|
|
661
|
+
if (this.formGroup.controls.deleted) {
|
|
662
|
+
if (this.formGroup.controls.deleted instanceof RxapFormControl) {
|
|
663
|
+
this.deletedControl = this.formGroup.controls.deleted;
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
throw new Error(`The parent FormGroup instance does have a 'deleted' control, but it is not a RxapFormControl instance`);
|
|
667
|
+
}
|
|
638
668
|
}
|
|
639
669
|
else {
|
|
640
|
-
|
|
670
|
+
this.deletedControl = new RxapFormControl(false, { controlId: 'deleted' });
|
|
671
|
+
this.formGroup.addControl('deleted', this.deletedControl);
|
|
641
672
|
}
|
|
642
|
-
if (!(this.
|
|
673
|
+
if (!(this.formGroup.parent instanceof UntypedFormArray)) {
|
|
643
674
|
throw new Error(`The parent of the FormGroup is not a FormArray instance`);
|
|
644
675
|
}
|
|
645
676
|
}
|
|
@@ -647,7 +678,7 @@ class FormArrayRemovableDirective {
|
|
|
647
678
|
throw new Error(`The parent is not a form group instance`);
|
|
648
679
|
}
|
|
649
680
|
this._deletedControlValueSubscription = this.deletedControl.value$.pipe(tap$1((isDeleted) => {
|
|
650
|
-
for (const [name, control] of Object.entries(this.
|
|
681
|
+
for (const [name, control] of Object.entries(this.formGroup.controls)) {
|
|
651
682
|
if (name !== 'deleted') {
|
|
652
683
|
if (isDeleted) {
|
|
653
684
|
control.disable({ onlySelf: true });
|
|
@@ -662,10 +693,10 @@ class FormArrayRemovableDirective {
|
|
|
662
693
|
ngOnDestroy() {
|
|
663
694
|
this._deletedControlValueSubscription?.unsubscribe();
|
|
664
695
|
}
|
|
665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
666
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
696
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayRemovableDirective, deps: [{ token: i1$1.ControlContainer, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
697
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FormArrayRemovableDirective, isStandalone: true, selector: "[rxapFormArrayRemovable]", ngImport: i0 }); }
|
|
667
698
|
}
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormArrayRemovableDirective, decorators: [{
|
|
669
700
|
type: Directive,
|
|
670
701
|
args: [{
|
|
671
702
|
selector: '[rxapFormArrayRemovable]',
|
|
@@ -797,15 +828,15 @@ let ControlHideShowDirective = class ControlHideShowDirective {
|
|
|
797
828
|
reset() {
|
|
798
829
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
799
830
|
}
|
|
800
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
801
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
831
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ControlHideShowDirective, deps: [{ token: Renderer2 }, { token: ElementRef }, { token: ControlContainer, optional: true }, { token: NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
832
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: ControlHideShowDirective, isStandalone: true, selector: "[rxapControlHideShow]", inputs: { controlId: ["rxapControlHideShow", "controlId"] }, ngImport: i0 }); }
|
|
802
833
|
};
|
|
803
834
|
ControlHideShowDirective = __decorate([
|
|
804
835
|
Mixin(ExtractControlFromParentMixin, ExtractFormDefinitionMixin),
|
|
805
836
|
__metadata("design:paramtypes", [Renderer2,
|
|
806
837
|
ElementRef, Object, Object])
|
|
807
838
|
], ControlHideShowDirective);
|
|
808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ControlHideShowDirective, decorators: [{
|
|
809
840
|
type: Directive,
|
|
810
841
|
args: [{
|
|
811
842
|
selector: '[rxapControlHideShow]',
|
|
@@ -946,8 +977,8 @@ let InputSelectOptionsDirective = class InputSelectOptionsDirective {
|
|
|
946
977
|
}
|
|
947
978
|
this.cdr.detectChanges();
|
|
948
979
|
}
|
|
949
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
950
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
980
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", 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 }); }
|
|
981
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: InputSelectOptionsDirective, isStandalone: true, selector: "[rxapInputSelectOptions]", inputs: { viewer: ["rxapInputSelectOptionsViewer", "viewer"], metadata: ["rxapInputSelectOptionsMetadata", "metadata"], matAutocomplete: ["rxapInputSelectOptionsMatAutocomplete", "matAutocomplete"] }, ngImport: i0 }); }
|
|
951
982
|
};
|
|
952
983
|
InputSelectOptionsDirective = __decorate([
|
|
953
984
|
Mixin(ExtractOptionsDataSourceMixin),
|
|
@@ -957,7 +988,7 @@ InputSelectOptionsDirective = __decorate([
|
|
|
957
988
|
Injector,
|
|
958
989
|
ChangeDetectorRef, Object, Object])
|
|
959
990
|
], InputSelectOptionsDirective);
|
|
960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: InputSelectOptionsDirective, decorators: [{
|
|
961
992
|
type: Directive,
|
|
962
993
|
args: [{
|
|
963
994
|
selector: '[rxapInputSelectOptions]',
|
|
@@ -1000,13 +1031,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.6", ngImpor
|
|
|
1000
1031
|
}] } });
|
|
1001
1032
|
|
|
1002
1033
|
class FormSystemDirectivesModule {
|
|
1003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
1004
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0
|
|
1034
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormSystemDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1035
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.0", ngImport: i0, type: FormSystemDirectivesModule, imports: [InputSelectOptionsDirective,
|
|
1005
1036
|
ControlHideShowDirective], exports: [InputSelectOptionsDirective,
|
|
1006
1037
|
ControlHideShowDirective] }); }
|
|
1007
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0
|
|
1038
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormSystemDirectivesModule }); }
|
|
1008
1039
|
}
|
|
1009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
1040
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormSystemDirectivesModule, decorators: [{
|
|
1010
1041
|
type: NgModule,
|
|
1011
1042
|
args: [{
|
|
1012
1043
|
exports: [
|
|
@@ -1076,13 +1107,13 @@ let OptionsFromMethodDirective = class OptionsFromMethodDirective {
|
|
|
1076
1107
|
this.options = options.slice();
|
|
1077
1108
|
this.renderTemplate();
|
|
1078
1109
|
}
|
|
1079
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
1080
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
1110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: OptionsFromMethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1111
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: OptionsFromMethodDirective, isStandalone: true, selector: "[rxapOptionsFromMethod]", inputs: { parameters: ["rxapOptionsFromMethodParameters", "parameters"], resetOnChange: ["rxapOptionsFromMethodResetOnChange", "resetOnChange"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1081
1112
|
};
|
|
1082
1113
|
OptionsFromMethodDirective = __decorate([
|
|
1083
1114
|
Mixin(ExtractOptionsMethodMixin)
|
|
1084
1115
|
], OptionsFromMethodDirective);
|
|
1085
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
1116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: OptionsFromMethodDirective, decorators: [{
|
|
1086
1117
|
type: Directive,
|
|
1087
1118
|
args: [{
|
|
1088
1119
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1169,8 +1200,8 @@ let OptionsFromRemoteMethodDirective = class OptionsFromRemoteMethodDirective {
|
|
|
1169
1200
|
}
|
|
1170
1201
|
this.cdr.detectChanges();
|
|
1171
1202
|
}
|
|
1172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
1173
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
1203
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: OptionsFromRemoteMethodDirective, deps: [{ token: NgControl }, { token: TemplateRef }, { token: RemoteMethodLoader }, { token: ViewContainerRef }, { token: INJECTOR }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1204
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: OptionsFromRemoteMethodDirective, isStandalone: true, selector: "[rxapOptionsFromRemoteMethod]", inputs: { parameters: ["rxapOptionsFromRemoteMethodParameters", "parameters"], resetOnChange: ["rxapOptionsFromRemoteMethodResetOnChange", "resetOnChange"], withoutParameters: ["rxapOptionsFromRemoteMethodWithoutParameters", "withoutParameters"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1174
1205
|
};
|
|
1175
1206
|
OptionsFromRemoteMethodDirective = __decorate([
|
|
1176
1207
|
Mixin(ExtractFormDefinitionMixin, ExtractRemoteMethodsMixin),
|
|
@@ -1181,7 +1212,7 @@ OptionsFromRemoteMethodDirective = __decorate([
|
|
|
1181
1212
|
Injector,
|
|
1182
1213
|
ChangeDetectorRef])
|
|
1183
1214
|
], OptionsFromRemoteMethodDirective);
|
|
1184
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
1215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: OptionsFromRemoteMethodDirective, decorators: [{
|
|
1185
1216
|
type: Directive,
|
|
1186
1217
|
args: [{
|
|
1187
1218
|
selector: '[rxapOptionsFromRemoteMethod]',
|
|
@@ -1263,10 +1294,10 @@ class ControlDataSource extends BaseDataSource {
|
|
|
1263
1294
|
}
|
|
1264
1295
|
this._data$ = this.control.valueChanges.pipe(startWith$1(this.control.value), distinctUntilChanged$1((a, b) => equals(a, b)), shareReplay(1));
|
|
1265
1296
|
}
|
|
1266
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
1267
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0
|
|
1297
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ControlDataSource, deps: [{ token: RXAP_FORM_CONTROL_SOURCE }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1298
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ControlDataSource }); }
|
|
1268
1299
|
}
|
|
1269
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
1300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: ControlDataSource, decorators: [{
|
|
1270
1301
|
type: Injectable
|
|
1271
1302
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1272
1303
|
type: Inject,
|
|
@@ -1381,8 +1412,8 @@ let FormSystemControlDirective = class FormSystemControlDirective {
|
|
|
1381
1412
|
}
|
|
1382
1413
|
return map.get(this.controlId);
|
|
1383
1414
|
}
|
|
1384
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
1385
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.0
|
|
1415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormSystemControlDirective, deps: [{ token: ControlContainer }, { token: ComponentFactoryResolver }, { token: ViewContainerRef }, { token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1416
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.0", type: FormSystemControlDirective, isStandalone: true, selector: "[rxapFormSystemControl]", inputs: { controlId: "controlId" }, ngImport: i0 }); }
|
|
1386
1417
|
};
|
|
1387
1418
|
FormSystemControlDirective = __decorate([
|
|
1388
1419
|
Mixin(ExtractDataSourcesMixin),
|
|
@@ -1392,7 +1423,7 @@ FormSystemControlDirective = __decorate([
|
|
|
1392
1423
|
DataSourceLoader,
|
|
1393
1424
|
Injector])
|
|
1394
1425
|
], FormSystemControlDirective);
|
|
1395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
1426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: FormSystemControlDirective, decorators: [{
|
|
1396
1427
|
type: Directive,
|
|
1397
1428
|
args: [{
|
|
1398
1429
|
selector: '[rxapFormSystemControl]',
|
|
@@ -1430,10 +1461,10 @@ class SubmitContextFormAdapter extends ProxyRemoteMethod {
|
|
|
1430
1461
|
requestBody: value,
|
|
1431
1462
|
};
|
|
1432
1463
|
}
|
|
1433
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0
|
|
1434
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0
|
|
1464
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SubmitContextFormAdapter, deps: [{ token: SUBMIT_CONTEXT_FORM_ADAPTER_METHOD }, { token: RXAP_FORM_CONTEXT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1465
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SubmitContextFormAdapter }); }
|
|
1435
1466
|
}
|
|
1436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0
|
|
1467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: SubmitContextFormAdapter, decorators: [{
|
|
1437
1468
|
type: Injectable
|
|
1438
1469
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1439
1470
|
type: Inject,
|