@luftborn/custom-elements 2.3.0 → 2.3.2

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/demo/index.min.js CHANGED
@@ -2343,7 +2343,10 @@ var CustomForm = /** @class */ (function () {
2343
2343
  var groupDependsOnField_2 = otherGroup.getAttribute('data-depends-on');
2344
2344
  var dependentValue_1 = otherGroup.getAttribute('data-dependent-value');
2345
2345
  inputElementsInsideGroup.forEach(function (input) {
2346
- if (input.name === groupDependsOnField_2 && (input.value === dependentValue_1 || input.value.indexOf(dependentValue_1) >= 0)) {
2346
+ if (input.name === groupDependsOnField_2
2347
+ && input.value
2348
+ && (input.value === dependentValue_1
2349
+ || input.value.indexOf(dependentValue_1) >= 0)) {
2347
2350
  _this.showGroupAndItsDependencies(otherGroup);
2348
2351
  }
2349
2352
  });
@@ -6234,7 +6237,7 @@ exports.default = SECompanyRegistrationValidator;
6234
6237
  Object.defineProperty(exports, "__esModule", { value: true });
6235
6238
  var SEPersonalNumberValidator = /** @class */ (function () {
6236
6239
  function SEPersonalNumberValidator() {
6237
- this.regex = new RegExp('^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$');
6240
+ this.regex = new RegExp(/^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$/);
6238
6241
  }
6239
6242
  SEPersonalNumberValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
6240
6243
  if (allowEmpty === void 0) { allowEmpty = true; }