@simpleangularcontrols/sac-common 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.
@@ -655,7 +655,7 @@
655
655
  /**
656
656
  * defines that error messages are displayed under the controls
657
657
  */
658
- this.inlineError = true;
658
+ this.inlineError = null;
659
659
  /**
660
660
  * defines that the labels are displayed as adaptive labels
661
661
  */
@@ -693,7 +693,7 @@
693
693
  * Returns whether the inline error messages for the form are active.
694
694
  */
695
695
  get: function () {
696
- return this.inlineError !== false;
696
+ return this.inlineError;
697
697
  },
698
698
  enumerable: false,
699
699
  configurable: true
@@ -775,6 +775,16 @@
775
775
  enumerable: false,
776
776
  configurable: true
777
777
  });
778
+ Object.defineProperty(SacDefaultConfigurationService.prototype, "InlineErrorEnabled", {
779
+ /**
780
+ * @inheritdoc
781
+ */
782
+ get: function () {
783
+ return true;
784
+ },
785
+ enumerable: false,
786
+ configurable: true
787
+ });
778
788
  Object.defineProperty(SacDefaultConfigurationService.prototype, "LabelSizeLg", {
779
789
  /**
780
790
  * @inheritdoc
@@ -2530,11 +2540,12 @@
2530
2540
  return obj;
2531
2541
  }
2532
2542
 
2543
+ // #region Functions
2533
2544
  /**
2534
2545
  * create a guid with crypto library if availabe and a fallback to Math.Random implementation
2535
2546
  */
2536
2547
  function createGuid() {
2537
- if (typeof crypto !== undefined) {
2548
+ if (typeof crypto !== undefined && crypto['randomUUID'] !== undefined) {
2538
2549
  // return guid without hyphen
2539
2550
  return crypto['randomUUID']().replace(/\-/gi, '');
2540
2551
  }
@@ -2544,7 +2555,8 @@
2544
2555
  return v.toString(16);
2545
2556
  });
2546
2557
  }
2547
- }
2558
+ }
2559
+ // #endregion Functions
2548
2560
 
2549
2561
  /**
2550
2562
  * Abstract Klasse für SacBaseModelControl. Implements ControlValueAccessor, Validator, OnInit
@@ -2748,13 +2760,18 @@
2748
2760
  * Returns whether the inline error messages are active for this control.
2749
2761
  */
2750
2762
  get: function () {
2751
- var _a, _b;
2752
- if (((_a = this.formlayout) === null || _a === void 0 ? void 0 : _a.IsInlineErrorEnabled) === null ||
2753
- ((_b = this.formlayout) === null || _b === void 0 ? void 0 : _b.IsInlineErrorEnabled) === undefined) {
2763
+ var _a;
2764
+ if (this._inlineerrorenabled !== null) {
2754
2765
  return this._inlineerrorenabled;
2755
2766
  }
2756
- return (this.formlayout.IsInlineErrorEnabled !== false &&
2757
- this._inlineerrorenabled !== false);
2767
+ if (this.formlayout !== null &&
2768
+ this.formlayout.IsInlineErrorEnabled !== null) {
2769
+ return (_a = this.formlayout) === null || _a === void 0 ? void 0 : _a.IsInlineErrorEnabled;
2770
+ }
2771
+ if (this.configurationService.InlineErrorEnabled !== null) {
2772
+ return this.configurationService.InlineErrorEnabled;
2773
+ }
2774
+ return true;
2758
2775
  },
2759
2776
  enumerable: false,
2760
2777
  configurable: true