@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.
- package/bundles/simpleangularcontrols-sac-common.umd.js +26 -9
- package/bundles/simpleangularcontrols-sac-common.umd.js.map +1 -1
- package/bundles/simpleangularcontrols-sac-common.umd.min.js +1 -1
- package/bundles/simpleangularcontrols-sac-common.umd.min.js.map +1 -1
- package/controls/layout/formlayout.d.ts +1 -1
- package/esm2015/common/basemodelcontrol.js +11 -6
- package/esm2015/controls/layout/formlayout.js +3 -3
- package/esm2015/interfaces/ISacConfigurationService.js +1 -1
- package/esm2015/services/sac-configuration.service.js +7 -1
- package/esm2015/utilities/guid.js +4 -2
- package/fesm2015/simpleangularcontrols-sac-common.js +22 -9
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +4 -0
- package/package.json +2 -2
- package/services/sac-configuration.service.d.ts +8 -0
- package/simpleangularcontrols-sac-common-10.0.0-rc.4.tgz +0 -0
- package/simpleangularcontrols-sac-common-10.0.0-rc.2.tgz +0 -0
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
/**
|
|
656
656
|
* defines that error messages are displayed under the controls
|
|
657
657
|
*/
|
|
658
|
-
this.inlineError =
|
|
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
|
|
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
|
|
2752
|
-
if (
|
|
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
|
-
|
|
2757
|
-
this.
|
|
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
|