@simpleangularcontrols/sac-bootstrap3 10.0.0-rc.2 → 10.0.0-rc.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.
@@ -2421,74 +2421,60 @@
2421
2421
  },] }
2422
2422
  ];
2423
2423
 
2424
+ // #region Classes
2424
2425
  /**
2425
- * Factory Methode für SacForm
2426
- * @param form NgFormular
2427
- */
2428
- function SACFORM_FACTORY(form) {
2429
- return form;
2430
- }
2431
- /**
2432
- * Factory Methode für NgForm
2433
- * @param form NgForm
2434
- */
2435
- function NGFORM_FACTORY(form) {
2436
- return form;
2437
- }
2438
- /**
2439
- * Directive zum erben eines NgForm/NgFormular einer übergeordneten Komponente
2440
- *
2441
- * @example Implementation in Markup
2442
- *
2443
- * <div sacInheritForm>
2444
- * </div>
2445
- *
2446
- * @example Model an Sub-Komponente übergeben
2447
- *
2448
- * <div sacInheritForm>
2449
- * <div>SubForm</div>
2450
- * <div>
2451
- * <ngInput [(ngModel)]="mymodel.fieldarea2" name="subformField3" label="field 3" [isrequired]="true"></ngInput>
2452
- * </div>
2453
- * </div>
2454
- *
2455
- *
2456
- * (at)Component({
2457
- * selector: 'sacInheritForm',
2458
- * templateUrl: './subform.component.html'
2459
- * })
2460
- * export class SubFormComponent implements DoCheck {
2461
- *
2462
- * (at)Input() mymodel;
2463
- * (at)Output() mymodelChange = new EventEmitter();
2464
- *
2465
- * ngDoCheck() {
2466
- * this.mymodelChange.next(this.mymodel);
2467
- * }
2468
- *}
2469
- *
2426
+ * Directive to inherit an NgForm/NgForm from a parent component
2470
2427
  */
2471
- var SacInheritFormDirective = /** @class */ (function () {
2472
- function SacInheritFormDirective() {
2428
+ var SacInheritFormDirective = /** @class */ (function (_super) {
2429
+ __extends(SacInheritFormDirective, _super);
2430
+ // #region Constructors
2431
+ /**
2432
+ * Construtor
2433
+ * @param injector: injector to receive the NgForm instance
2434
+ */
2435
+ function SacInheritFormDirective(injector) {
2436
+ return _super.call(this, injector.get(forms.NgForm)) || this;
2473
2437
  }
2474
2438
  return SacInheritFormDirective;
2475
- }());
2439
+ }(sacCommon.SacFormCommon));
2476
2440
  SacInheritFormDirective.decorators = [
2477
2441
  { type: core.Directive, args: [{
2478
2442
  selector: '[sacInheritForm]',
2443
+ exportAs: 'sacinheritform',
2479
2444
  providers: [
2480
2445
  {
2481
2446
  provide: SacFormDirective,
2482
2447
  useFactory: SACFORM_FACTORY,
2483
- deps: [[new core.SkipSelf(), SacFormDirective]]
2484
- }, {
2448
+ deps: [[new core.SkipSelf(), SacFormDirective]],
2449
+ },
2450
+ {
2485
2451
  provide: forms.ControlContainer,
2486
2452
  useFactory: NGFORM_FACTORY,
2487
- deps: [forms.NgForm]
2488
- }
2489
- ]
2453
+ deps: [forms.NgForm],
2454
+ },
2455
+ ],
2490
2456
  },] }
2491
- ];
2457
+ ];
2458
+ SacInheritFormDirective.ctorParameters = function () { return [
2459
+ { type: core.Injector }
2460
+ ]; };
2461
+ // #endregion Classes
2462
+ // #region Functions
2463
+ /**
2464
+ * Factory Methode für NgForm
2465
+ * @param form NgForm
2466
+ */
2467
+ function NGFORM_FACTORY(form) {
2468
+ return form;
2469
+ }
2470
+ /**
2471
+ * Factory Methode für SacForm
2472
+ * @param form NgFormular
2473
+ */
2474
+ function SACFORM_FACTORY(form) {
2475
+ return form;
2476
+ }
2477
+ // #endregion Functions
2492
2478
 
2493
2479
  var SACBootstrap3FormModule = /** @class */ (function () {
2494
2480
  function SACBootstrap3FormModule() {