@rxap/form-system 16.1.2 → 17.0.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 +8 -0
- package/README.md +1 -1
- package/esm2022/lib/control-data-source.mjs +6 -6
- package/esm2022/lib/directives/array/for-form-array-items.directive.mjs +6 -6
- package/esm2022/lib/directives/array/form-array-add-item-button.directive.mjs +6 -6
- package/esm2022/lib/directives/array/form-array-item-button.mjs +6 -6
- 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 +6 -6
- package/esm2022/lib/directives/control-hide-show.directive.mjs +8 -7
- package/esm2022/lib/directives/form-directives.module.mjs +5 -5
- package/esm2022/lib/directives/input-select-options.directive.mjs +8 -7
- package/esm2022/lib/directives/options-from-method.directive.mjs +6 -5
- package/esm2022/lib/directives/options-from-remote-method.directive.mjs +8 -7
- package/esm2022/lib/form-system-control.directive.mjs +8 -7
- package/esm2022/lib/mixins/apply-use-method.adapters.mjs +1 -1
- package/esm2022/lib/mixins/extract-control-from-parent.mixin.mjs +1 -1
- package/esm2022/lib/mixins/extract-control.mixin.mjs +1 -1
- package/esm2022/lib/mixins/extract-data-sources.mixin.mjs +1 -1
- package/esm2022/lib/mixins/extract-form-definition.mixin.mjs +1 -1
- package/esm2022/lib/mixins/extract-method.mixin.mjs +3 -2
- package/esm2022/lib/mixins/extract-methods.mixin.mjs +1 -1
- package/esm2022/lib/mixins/extract-options-data-source.mixin.mjs +3 -2
- package/esm2022/lib/mixins/extract-options-method.mixin.mjs +3 -2
- package/esm2022/lib/mixins/extract-resolve-method.mixin.mjs +3 -2
- package/esm2022/lib/submit-context-form-adapter.factory.mjs +6 -6
- package/esm2022/lib/validators/is-equal-to.mjs +4 -4
- package/esm2022/lib/validators/is-selectable-value.directive.mjs +10 -11
- package/fesm2022/rxap-form-system.mjs +73 -75
- package/fesm2022/rxap-form-system.mjs.map +1 -1
- package/package.json +38 -38
|
@@ -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: "
|
|
50
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: IsEqualToDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
50
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", 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: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: IsEqualToDirective, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: '[rxapIsEqualTo]',
|
|
@@ -188,9 +188,7 @@ ExtractOptionsDataSourceMixin = __decorate([
|
|
|
188
188
|
Mixin(ExtractControlMixin, ExtractFormDefinitionMixin, ExtractDataSourcesMixin)
|
|
189
189
|
], ExtractOptionsDataSourceMixin);
|
|
190
190
|
|
|
191
|
-
var IsSelectableValueDirective_1;
|
|
192
191
|
let IsSelectableValueDirective = class IsSelectableValueDirective {
|
|
193
|
-
static { IsSelectableValueDirective_1 = this; }
|
|
194
192
|
constructor(dataSourceLoader, injector) {
|
|
195
193
|
this.dataSourceLoader = dataSourceLoader;
|
|
196
194
|
this.injector = injector;
|
|
@@ -226,21 +224,21 @@ let IsSelectableValueDirective = class IsSelectableValueDirective {
|
|
|
226
224
|
}
|
|
227
225
|
return null;
|
|
228
226
|
}
|
|
229
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
230
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: IsSelectableValueDirective, deps: [{ token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
228
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: IsSelectableValueDirective, isStandalone: true, selector: "[rxapIsSelectableValue]", inputs: { viewer: "viewer" }, providers: [
|
|
231
229
|
{
|
|
232
230
|
provide: NG_VALIDATORS,
|
|
233
231
|
multi: true,
|
|
234
|
-
useExisting: forwardRef(() =>
|
|
232
|
+
useExisting: forwardRef(() => IsSelectableValueDirective),
|
|
235
233
|
},
|
|
236
234
|
], ngImport: i0 }); }
|
|
237
235
|
};
|
|
238
|
-
IsSelectableValueDirective =
|
|
236
|
+
IsSelectableValueDirective = __decorate([
|
|
239
237
|
Mixin(ExtractOptionsDataSourceMixin),
|
|
240
238
|
__metadata("design:paramtypes", [DataSourceLoader,
|
|
241
239
|
Injector])
|
|
242
240
|
], IsSelectableValueDirective);
|
|
243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: IsSelectableValueDirective, decorators: [{
|
|
244
242
|
type: Directive,
|
|
245
243
|
args: [{
|
|
246
244
|
selector: '[rxapIsSelectableValue]',
|
|
@@ -253,13 +251,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
253
251
|
],
|
|
254
252
|
standalone: true,
|
|
255
253
|
}]
|
|
256
|
-
}], ctorParameters:
|
|
254
|
+
}], ctorParameters: () => [{ type: i1.DataSourceLoader, decorators: [{
|
|
257
255
|
type: Inject,
|
|
258
256
|
args: [DataSourceLoader]
|
|
259
257
|
}] }, { type: i0.Injector, decorators: [{
|
|
260
258
|
type: Inject,
|
|
261
259
|
args: [INJECTOR]
|
|
262
|
-
}] }]
|
|
260
|
+
}] }], propDecorators: { viewer: [{
|
|
263
261
|
type: Input
|
|
264
262
|
}] } });
|
|
265
263
|
|
|
@@ -423,18 +421,18 @@ class ForFormArrayItemsDirective {
|
|
|
423
421
|
}
|
|
424
422
|
this.cdr.detectChanges();
|
|
425
423
|
}
|
|
426
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
427
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
424
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ForFormArrayItemsDirective, deps: [{ token: i1$1.ControlContainer, skipSelf: true }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
425
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: ForFormArrayItemsDirective, isStandalone: true, selector: "[rxapForFormArrayItem]", ngImport: i0 }); }
|
|
428
426
|
}
|
|
429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ForFormArrayItemsDirective, decorators: [{
|
|
430
428
|
type: Directive,
|
|
431
429
|
args: [{
|
|
432
430
|
selector: '[rxapForFormArrayItem]',
|
|
433
431
|
standalone: true,
|
|
434
432
|
}]
|
|
435
|
-
}], ctorParameters:
|
|
433
|
+
}], ctorParameters: () => [{ type: i1$1.ControlContainer, decorators: [{
|
|
436
434
|
type: SkipSelf
|
|
437
|
-
}] }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }]
|
|
435
|
+
}] }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.ChangeDetectorRef }] });
|
|
438
436
|
|
|
439
437
|
// TODO : move to rxap packages
|
|
440
438
|
class FormArrayAddItemButtonDirective {
|
|
@@ -463,22 +461,22 @@ class FormArrayAddItemButtonDirective {
|
|
|
463
461
|
onClick() {
|
|
464
462
|
this.formArray.insertAt();
|
|
465
463
|
}
|
|
466
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
467
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
464
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayAddItemButtonDirective, deps: [{ token: i1$1.ControlContainer, optional: true, skipSelf: true }, { token: i2.MatButton, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
465
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: FormArrayAddItemButtonDirective, isStandalone: true, selector: "[rxapFormArrayItemAddButton]", host: { listeners: { "click": "onClick()" }, properties: { "type": "this.type", "disabled": "this.disabled" } }, ngImport: i0 }); }
|
|
468
466
|
}
|
|
469
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
467
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayAddItemButtonDirective, decorators: [{
|
|
470
468
|
type: Directive,
|
|
471
469
|
args: [{
|
|
472
470
|
selector: '[rxapFormArrayItemAddButton]',
|
|
473
471
|
standalone: true,
|
|
474
472
|
}]
|
|
475
|
-
}], ctorParameters:
|
|
473
|
+
}], ctorParameters: () => [{ type: i1$1.ControlContainer, decorators: [{
|
|
476
474
|
type: Optional
|
|
477
475
|
}, {
|
|
478
476
|
type: SkipSelf
|
|
479
477
|
}] }, { type: i2.MatButton, decorators: [{
|
|
480
478
|
type: Optional
|
|
481
|
-
}] }]
|
|
479
|
+
}] }], propDecorators: { type: [{
|
|
482
480
|
type: HostBinding,
|
|
483
481
|
args: ['type']
|
|
484
482
|
}], disabled: [{
|
|
@@ -536,16 +534,16 @@ class FormArrayItemButton {
|
|
|
536
534
|
this._controlDisabledSubscription?.unsubscribe();
|
|
537
535
|
this._deletedControlValueSubscription?.unsubscribe();
|
|
538
536
|
}
|
|
539
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
540
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
537
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", 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 }); }
|
|
538
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: FormArrayItemButton, host: { properties: { "type": "this.type", "disabled": "this.disabled" } }, ngImport: i0 }); }
|
|
541
539
|
}
|
|
542
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayItemButton, decorators: [{
|
|
543
541
|
type: Directive
|
|
544
|
-
}], ctorParameters:
|
|
542
|
+
}], ctorParameters: () => [{ type: i1$1.ControlContainer, decorators: [{
|
|
545
543
|
type: SkipSelf
|
|
546
544
|
}] }, { type: i2.MatButton, decorators: [{
|
|
547
545
|
type: Optional
|
|
548
|
-
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }]
|
|
546
|
+
}] }, { type: i0.Renderer2 }, { type: i0.ElementRef }], propDecorators: { type: [{
|
|
549
547
|
type: HostBinding,
|
|
550
548
|
args: ['type']
|
|
551
549
|
}], disabled: [{
|
|
@@ -566,10 +564,10 @@ class FormArrayItemRemoveButtonDirective extends FormArrayItemButton {
|
|
|
566
564
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
567
565
|
}
|
|
568
566
|
}
|
|
569
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
570
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayItemRemoveButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
568
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: FormArrayItemRemoveButtonDirective, isStandalone: true, selector: "button[rxapFormArrayItemRemoveButton]", host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
571
569
|
}
|
|
572
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayItemRemoveButtonDirective, decorators: [{
|
|
573
571
|
type: Directive,
|
|
574
572
|
args: [{
|
|
575
573
|
selector: 'button[rxapFormArrayItemRemoveButton]',
|
|
@@ -593,10 +591,10 @@ class FormArrayItemRestoreButtonDirective extends FormArrayItemButton {
|
|
|
593
591
|
this.renderer.setStyle(this.elementRef.nativeElement, 'display', 'none');
|
|
594
592
|
}
|
|
595
593
|
}
|
|
596
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
597
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
594
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayItemRestoreButtonDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
595
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: FormArrayItemRestoreButtonDirective, isStandalone: true, selector: "button[rxapFormArrayItemRestoreButton]", host: { listeners: { "click": "onClick()" } }, usesInheritance: true, ngImport: i0 }); }
|
|
598
596
|
}
|
|
599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayItemRestoreButtonDirective, decorators: [{
|
|
600
598
|
type: Directive,
|
|
601
599
|
args: [{
|
|
602
600
|
selector: 'button[rxapFormArrayItemRestoreButton]',
|
|
@@ -650,18 +648,18 @@ class FormArrayRemovableDirective {
|
|
|
650
648
|
ngOnDestroy() {
|
|
651
649
|
this._deletedControlValueSubscription?.unsubscribe();
|
|
652
650
|
}
|
|
653
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
654
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayRemovableDirective, deps: [{ token: i1$1.ControlContainer, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
652
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: FormArrayRemovableDirective, isStandalone: true, selector: "[rxapFormArrayRemovable]", ngImport: i0 }); }
|
|
655
653
|
}
|
|
656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
654
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormArrayRemovableDirective, decorators: [{
|
|
657
655
|
type: Directive,
|
|
658
656
|
args: [{
|
|
659
657
|
selector: '[rxapFormArrayRemovable]',
|
|
660
658
|
standalone: true,
|
|
661
659
|
}]
|
|
662
|
-
}], ctorParameters:
|
|
660
|
+
}], ctorParameters: () => [{ type: i1$1.ControlContainer, decorators: [{
|
|
663
661
|
type: Optional
|
|
664
|
-
}] }]
|
|
662
|
+
}] }] });
|
|
665
663
|
|
|
666
664
|
const RXAP_FORM_SYSTEM_SHOW_METADATA = 'rxap/form-system/show-function';
|
|
667
665
|
const RXAP_FORM_SYSTEM_HIDE_METADATA = 'rxap/form-system/hide-function';
|
|
@@ -785,21 +783,21 @@ let ControlHideShowDirective = class ControlHideShowDirective {
|
|
|
785
783
|
reset() {
|
|
786
784
|
this.renderer.removeStyle(this.elementRef.nativeElement, 'display');
|
|
787
785
|
}
|
|
788
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
789
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ControlHideShowDirective, deps: [{ token: Renderer2 }, { token: ElementRef }, { token: ControlContainer, optional: true }, { token: NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
787
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: ControlHideShowDirective, isStandalone: true, selector: "[rxapControlHideShow]", inputs: { controlId: ["rxapControlHideShow", "controlId"] }, ngImport: i0 }); }
|
|
790
788
|
};
|
|
791
789
|
ControlHideShowDirective = __decorate([
|
|
792
790
|
Mixin(ExtractControlFromParentMixin, ExtractFormDefinitionMixin),
|
|
793
791
|
__metadata("design:paramtypes", [Renderer2,
|
|
794
792
|
ElementRef, Object, Object])
|
|
795
793
|
], ControlHideShowDirective);
|
|
796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ControlHideShowDirective, decorators: [{
|
|
797
795
|
type: Directive,
|
|
798
796
|
args: [{
|
|
799
797
|
selector: '[rxapControlHideShow]',
|
|
800
798
|
standalone: true,
|
|
801
799
|
}]
|
|
802
|
-
}], ctorParameters:
|
|
800
|
+
}], ctorParameters: () => [{ type: i0.Renderer2, decorators: [{
|
|
803
801
|
type: Inject,
|
|
804
802
|
args: [Renderer2]
|
|
805
803
|
}] }, { type: i0.ElementRef, decorators: [{
|
|
@@ -817,7 +815,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
817
815
|
}, {
|
|
818
816
|
type: Inject,
|
|
819
817
|
args: [NgControl]
|
|
820
|
-
}] }]
|
|
818
|
+
}] }], propDecorators: { controlId: [{
|
|
821
819
|
type: Input,
|
|
822
820
|
args: ['rxapControlHideShow']
|
|
823
821
|
}] } });
|
|
@@ -934,8 +932,8 @@ let InputSelectOptionsDirective = class InputSelectOptionsDirective {
|
|
|
934
932
|
}
|
|
935
933
|
this.cdr.detectChanges();
|
|
936
934
|
}
|
|
937
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
938
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
935
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", 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 }); }
|
|
936
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: InputSelectOptionsDirective, isStandalone: true, selector: "[rxapInputSelectOptions]", inputs: { viewer: ["rxapInputSelectOptionsViewer", "viewer"], metadata: ["rxapInputSelectOptionsMetadata", "metadata"], matAutocomplete: ["rxapInputSelectOptionsMatAutocomplete", "matAutocomplete"] }, ngImport: i0 }); }
|
|
939
937
|
};
|
|
940
938
|
InputSelectOptionsDirective = __decorate([
|
|
941
939
|
Mixin(ExtractOptionsDataSourceMixin),
|
|
@@ -945,13 +943,13 @@ InputSelectOptionsDirective = __decorate([
|
|
|
945
943
|
Injector,
|
|
946
944
|
ChangeDetectorRef, Object, Object])
|
|
947
945
|
], InputSelectOptionsDirective);
|
|
948
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: InputSelectOptionsDirective, decorators: [{
|
|
949
947
|
type: Directive,
|
|
950
948
|
args: [{
|
|
951
949
|
selector: '[rxapInputSelectOptions]',
|
|
952
950
|
standalone: true,
|
|
953
951
|
}]
|
|
954
|
-
}], ctorParameters:
|
|
952
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
955
953
|
type: Inject,
|
|
956
954
|
args: [TemplateRef]
|
|
957
955
|
}] }, { type: i1.DataSourceLoader, decorators: [{
|
|
@@ -976,7 +974,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
976
974
|
}, {
|
|
977
975
|
type: Inject,
|
|
978
976
|
args: [MAT_FORM_FIELD]
|
|
979
|
-
}] }]
|
|
977
|
+
}] }], propDecorators: { viewer: [{
|
|
980
978
|
type: Input,
|
|
981
979
|
args: ['rxapInputSelectOptionsViewer']
|
|
982
980
|
}], metadata: [{
|
|
@@ -988,13 +986,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
988
986
|
}] } });
|
|
989
987
|
|
|
990
988
|
class FormSystemDirectivesModule {
|
|
991
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
992
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
989
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormSystemDirectivesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
990
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.1.3", ngImport: i0, type: FormSystemDirectivesModule, imports: [InputSelectOptionsDirective,
|
|
993
991
|
ControlHideShowDirective], exports: [InputSelectOptionsDirective,
|
|
994
992
|
ControlHideShowDirective] }); }
|
|
995
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
993
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormSystemDirectivesModule }); }
|
|
996
994
|
}
|
|
997
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
995
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormSystemDirectivesModule, decorators: [{
|
|
998
996
|
type: NgModule,
|
|
999
997
|
args: [{
|
|
1000
998
|
exports: [
|
|
@@ -1064,13 +1062,13 @@ let OptionsFromMethodDirective = class OptionsFromMethodDirective {
|
|
|
1064
1062
|
this.options = options.slice();
|
|
1065
1063
|
this.renderTemplate();
|
|
1066
1064
|
}
|
|
1067
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1068
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: OptionsFromMethodDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1066
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: OptionsFromMethodDirective, isStandalone: true, selector: "[rxapOptionsFromMethod]", inputs: { parameters: ["rxapOptionsFromMethodParameters", "parameters"], resetOnChange: ["rxapOptionsFromMethodResetOnChange", "resetOnChange"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1069
1067
|
};
|
|
1070
1068
|
OptionsFromMethodDirective = __decorate([
|
|
1071
1069
|
Mixin(ExtractOptionsMethodMixin)
|
|
1072
1070
|
], OptionsFromMethodDirective);
|
|
1073
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1071
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: OptionsFromMethodDirective, decorators: [{
|
|
1074
1072
|
type: Directive,
|
|
1075
1073
|
args: [{
|
|
1076
1074
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1157,8 +1155,8 @@ let OptionsFromRemoteMethodDirective = class OptionsFromRemoteMethodDirective {
|
|
|
1157
1155
|
}
|
|
1158
1156
|
this.cdr.detectChanges();
|
|
1159
1157
|
}
|
|
1160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1161
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1158
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: OptionsFromRemoteMethodDirective, deps: [{ token: NgControl }, { token: TemplateRef }, { token: RemoteMethodLoader }, { token: ViewContainerRef }, { token: INJECTOR }, { token: ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1159
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: OptionsFromRemoteMethodDirective, isStandalone: true, selector: "[rxapOptionsFromRemoteMethod]", inputs: { parameters: ["rxapOptionsFromRemoteMethodParameters", "parameters"], resetOnChange: ["rxapOptionsFromRemoteMethodResetOnChange", "resetOnChange"], withoutParameters: ["rxapOptionsFromRemoteMethodWithoutParameters", "withoutParameters"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
1162
1160
|
};
|
|
1163
1161
|
OptionsFromRemoteMethodDirective = __decorate([
|
|
1164
1162
|
Mixin(ExtractFormDefinitionMixin, ExtractRemoteMethodsMixin),
|
|
@@ -1169,13 +1167,13 @@ OptionsFromRemoteMethodDirective = __decorate([
|
|
|
1169
1167
|
Injector,
|
|
1170
1168
|
ChangeDetectorRef])
|
|
1171
1169
|
], OptionsFromRemoteMethodDirective);
|
|
1172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: OptionsFromRemoteMethodDirective, decorators: [{
|
|
1173
1171
|
type: Directive,
|
|
1174
1172
|
args: [{
|
|
1175
1173
|
selector: '[rxapOptionsFromRemoteMethod]',
|
|
1176
1174
|
standalone: true,
|
|
1177
1175
|
}]
|
|
1178
|
-
}], ctorParameters:
|
|
1176
|
+
}], ctorParameters: () => [{ type: i1$1.NgControl, decorators: [{
|
|
1179
1177
|
type: Inject,
|
|
1180
1178
|
args: [NgControl]
|
|
1181
1179
|
}] }, { type: i0.TemplateRef, decorators: [{
|
|
@@ -1193,7 +1191,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1193
1191
|
}] }, { type: i0.ChangeDetectorRef, decorators: [{
|
|
1194
1192
|
type: Inject,
|
|
1195
1193
|
args: [ChangeDetectorRef]
|
|
1196
|
-
}] }]
|
|
1194
|
+
}] }], propDecorators: { parameters: [{
|
|
1197
1195
|
type: Input,
|
|
1198
1196
|
args: ['rxapOptionsFromRemoteMethodParameters']
|
|
1199
1197
|
}], resetOnChange: [{
|
|
@@ -1251,12 +1249,12 @@ class ControlDataSource extends BaseDataSource {
|
|
|
1251
1249
|
}
|
|
1252
1250
|
this._data$ = this.control.valueChanges.pipe(startWith$1(this.control.value), distinctUntilChanged$1((a, b) => equals(a, b)), shareReplay(1));
|
|
1253
1251
|
}
|
|
1254
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1255
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1252
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ControlDataSource, deps: [{ token: RXAP_FORM_CONTROL_SOURCE }, { token: RXAP_DATA_SOURCE_METADATA, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1253
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ControlDataSource }); }
|
|
1256
1254
|
}
|
|
1257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: ControlDataSource, decorators: [{
|
|
1258
1256
|
type: Injectable
|
|
1259
|
-
}], ctorParameters:
|
|
1257
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1260
1258
|
type: Inject,
|
|
1261
1259
|
args: [RXAP_FORM_CONTROL_SOURCE]
|
|
1262
1260
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1264,7 +1262,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1264
1262
|
}, {
|
|
1265
1263
|
type: Inject,
|
|
1266
1264
|
args: [RXAP_DATA_SOURCE_METADATA]
|
|
1267
|
-
}] }]
|
|
1265
|
+
}] }] });
|
|
1268
1266
|
function controlDataSource(control) {
|
|
1269
1267
|
// TODO : remove as any (wait for @rxap/forms update)
|
|
1270
1268
|
return new ControlDataSource(control, { id: control.controlId });
|
|
@@ -1369,8 +1367,8 @@ let FormSystemControlDirective = class FormSystemControlDirective {
|
|
|
1369
1367
|
}
|
|
1370
1368
|
return map.get(this.controlId);
|
|
1371
1369
|
}
|
|
1372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1373
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1370
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormSystemControlDirective, deps: [{ token: ControlContainer }, { token: ComponentFactoryResolver }, { token: ViewContainerRef }, { token: DataSourceLoader }, { token: INJECTOR }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1371
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.3", type: FormSystemControlDirective, isStandalone: true, selector: "[rxapFormSystemControl]", inputs: { controlId: "controlId" }, ngImport: i0 }); }
|
|
1374
1372
|
};
|
|
1375
1373
|
FormSystemControlDirective = __decorate([
|
|
1376
1374
|
Mixin(ExtractDataSourcesMixin),
|
|
@@ -1380,13 +1378,13 @@ FormSystemControlDirective = __decorate([
|
|
|
1380
1378
|
DataSourceLoader,
|
|
1381
1379
|
Injector])
|
|
1382
1380
|
], FormSystemControlDirective);
|
|
1383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: FormSystemControlDirective, decorators: [{
|
|
1384
1382
|
type: Directive,
|
|
1385
1383
|
args: [{
|
|
1386
1384
|
selector: '[rxapFormSystemControl]',
|
|
1387
1385
|
standalone: true,
|
|
1388
1386
|
}]
|
|
1389
|
-
}], ctorParameters:
|
|
1387
|
+
}], ctorParameters: () => [{ type: i1$1.ControlContainer, decorators: [{
|
|
1390
1388
|
type: Inject,
|
|
1391
1389
|
args: [ControlContainer]
|
|
1392
1390
|
}] }, { type: i0.ComponentFactoryResolver, decorators: [{
|
|
@@ -1401,7 +1399,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1401
1399
|
}] }, { type: i0.Injector, decorators: [{
|
|
1402
1400
|
type: Inject,
|
|
1403
1401
|
args: [INJECTOR]
|
|
1404
|
-
}] }]
|
|
1402
|
+
}] }], propDecorators: { controlId: [{
|
|
1405
1403
|
type: Input,
|
|
1406
1404
|
args: [{ required: true }]
|
|
1407
1405
|
}] } });
|
|
@@ -1418,18 +1416,18 @@ class SubmitContextFormAdapter extends ProxyRemoteMethod {
|
|
|
1418
1416
|
requestBody: value,
|
|
1419
1417
|
};
|
|
1420
1418
|
}
|
|
1421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1422
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1419
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: SubmitContextFormAdapter, deps: [{ token: SUBMIT_CONTEXT_FORM_ADAPTER_METHOD }, { token: RXAP_FORM_CONTEXT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1420
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: SubmitContextFormAdapter }); }
|
|
1423
1421
|
}
|
|
1424
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImport: i0, type: SubmitContextFormAdapter, decorators: [{
|
|
1425
1423
|
type: Injectable
|
|
1426
|
-
}], ctorParameters:
|
|
1424
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1427
1425
|
type: Inject,
|
|
1428
1426
|
args: [SUBMIT_CONTEXT_FORM_ADAPTER_METHOD]
|
|
1429
1427
|
}] }, { type: undefined, decorators: [{
|
|
1430
1428
|
type: Inject,
|
|
1431
1429
|
args: [RXAP_FORM_CONTEXT]
|
|
1432
|
-
}] }]
|
|
1430
|
+
}] }] });
|
|
1433
1431
|
function SubmitContextFormAdapterFactory(remoteMethod, context) {
|
|
1434
1432
|
return new SubmitContextFormAdapter(remoteMethod, context);
|
|
1435
1433
|
}
|