@simpleangularcontrols/sac-common 10.0.0-rc.25 → 10.0.0-rc.26
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 +68 -8
- 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/input/inputpassword.d.ts +20 -0
- package/esm2015/controls/input/inputpassword.js +33 -1
- package/esm2015/interfaces/ISacIconService.js +1 -1
- package/esm2015/services/sac-icon.service.js +20 -8
- package/fesm2015/simpleangularcontrols-sac-common.js +51 -7
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacIconService.d.ts +8 -0
- package/package.json +1 -1
- package/services/sac-icon.service.d.ts +20 -4
- package/simpleangularcontrols-sac-common-10.0.0-rc.26.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/simpleangularcontrols-sac-common-10.0.0-rc.25.tgz +0 -0
|
@@ -1233,7 +1233,13 @@
|
|
|
1233
1233
|
{ type: i1.HttpClient }
|
|
1234
1234
|
]; };
|
|
1235
1235
|
|
|
1236
|
-
// #region
|
|
1236
|
+
// #region Variables
|
|
1237
|
+
/**
|
|
1238
|
+
* injection token for component icon service
|
|
1239
|
+
*/
|
|
1240
|
+
var SACICON_SERVICE = new i0.InjectionToken('SacIconService');
|
|
1241
|
+
// #endregion Variables
|
|
1242
|
+
// #region Exported Classes
|
|
1237
1243
|
/**
|
|
1238
1244
|
* abstract class for icon providing in components
|
|
1239
1245
|
*/
|
|
@@ -1415,6 +1421,26 @@
|
|
|
1415
1421
|
enumerable: false,
|
|
1416
1422
|
configurable: true
|
|
1417
1423
|
});
|
|
1424
|
+
Object.defineProperty(SacDefaultIconService.prototype, "InputPasswordEyeHiddenIcon", {
|
|
1425
|
+
/**
|
|
1426
|
+
* @inheritdoc
|
|
1427
|
+
*/
|
|
1428
|
+
get: function () {
|
|
1429
|
+
return 'fa fa-eye-slash';
|
|
1430
|
+
},
|
|
1431
|
+
enumerable: false,
|
|
1432
|
+
configurable: true
|
|
1433
|
+
});
|
|
1434
|
+
Object.defineProperty(SacDefaultIconService.prototype, "InputPasswordEyeVisibleIcon", {
|
|
1435
|
+
/**
|
|
1436
|
+
* @inheritdoc
|
|
1437
|
+
*/
|
|
1438
|
+
get: function () {
|
|
1439
|
+
return 'fa fa-eye';
|
|
1440
|
+
},
|
|
1441
|
+
enumerable: false,
|
|
1442
|
+
configurable: true
|
|
1443
|
+
});
|
|
1418
1444
|
Object.defineProperty(SacDefaultIconService.prototype, "InputSearchButtonIcon", {
|
|
1419
1445
|
/**
|
|
1420
1446
|
* @inheritdoc
|
|
@@ -1531,12 +1557,6 @@
|
|
|
1531
1557
|
SacDefaultIconService.decorators = [
|
|
1532
1558
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1533
1559
|
];
|
|
1534
|
-
// #endregion Classes
|
|
1535
|
-
// #region Variables
|
|
1536
|
-
/**
|
|
1537
|
-
* injection token for component icon service
|
|
1538
|
-
*/
|
|
1539
|
-
var SACICON_SERVICE = new i0.InjectionToken('SacIconService');
|
|
1540
1560
|
|
|
1541
1561
|
/**
|
|
1542
1562
|
* Enum für Icon Types in Componenten
|
|
@@ -5714,6 +5734,14 @@
|
|
|
5714
5734
|
* Checks the minimum length of the password
|
|
5715
5735
|
*/
|
|
5716
5736
|
_this.mintextlength = 5;
|
|
5737
|
+
/**
|
|
5738
|
+
* Password Eye Button is enabled
|
|
5739
|
+
*/
|
|
5740
|
+
_this.passwordeye = false;
|
|
5741
|
+
/**
|
|
5742
|
+
* Password Eye is visible
|
|
5743
|
+
*/
|
|
5744
|
+
_this.passwordeyevisible = false;
|
|
5717
5745
|
/**
|
|
5718
5746
|
* Resource key for validation message MinTextLength for control
|
|
5719
5747
|
*/
|
|
@@ -5725,8 +5753,39 @@
|
|
|
5725
5753
|
return _this;
|
|
5726
5754
|
// #endregion Public Methods
|
|
5727
5755
|
}
|
|
5728
|
-
|
|
5756
|
+
Object.defineProperty(SacInputPasswordCommon.prototype, "PasswordEyeHiddenIcon", {
|
|
5757
|
+
// #endregion Properties
|
|
5758
|
+
// #region Public Getters And Setters
|
|
5759
|
+
/**
|
|
5760
|
+
*Icon used by InputPassword to hide the password in the input field
|
|
5761
|
+
*/
|
|
5762
|
+
get: function () {
|
|
5763
|
+
return this.iconService.InputPasswordEyeVisibleIcon;
|
|
5764
|
+
},
|
|
5765
|
+
enumerable: false,
|
|
5766
|
+
configurable: true
|
|
5767
|
+
});
|
|
5768
|
+
Object.defineProperty(SacInputPasswordCommon.prototype, "PasswordEyeVisibleIcon", {
|
|
5769
|
+
/**
|
|
5770
|
+
* Icon used by InputPassword to display the password in plain text during input
|
|
5771
|
+
*/
|
|
5772
|
+
get: function () {
|
|
5773
|
+
return this.iconService.InputPasswordEyeHiddenIcon;
|
|
5774
|
+
},
|
|
5775
|
+
enumerable: false,
|
|
5776
|
+
configurable: true
|
|
5777
|
+
});
|
|
5778
|
+
// #endregion Public Getters And Setters
|
|
5729
5779
|
// #region Public Methods
|
|
5780
|
+
/**
|
|
5781
|
+
* Toggle Password Eye Visible Property
|
|
5782
|
+
*/
|
|
5783
|
+
SacInputPasswordCommon.prototype.onTogglePasswordEye = function () {
|
|
5784
|
+
if (this.disabled || !this.passwordeye) {
|
|
5785
|
+
return;
|
|
5786
|
+
}
|
|
5787
|
+
this.passwordeyevisible = !this.passwordeyevisible;
|
|
5788
|
+
};
|
|
5730
5789
|
/**
|
|
5731
5790
|
* Methode validiert, ob der Wert den gegebenen Kriteriten entspricht
|
|
5732
5791
|
*/
|
|
@@ -5744,6 +5803,7 @@
|
|
|
5744
5803
|
];
|
|
5745
5804
|
SacInputPasswordCommon.propDecorators = {
|
|
5746
5805
|
mintextlength: [{ type: i0.Input }],
|
|
5806
|
+
passwordeye: [{ type: i0.Input }],
|
|
5747
5807
|
validationmessagemintextlength: [{ type: i0.Input }],
|
|
5748
5808
|
validationmessagesummarymintextlength: [{ type: i0.Input }]
|
|
5749
5809
|
};
|