@luftborn/custom-elements 2.1.2 → 2.2.0

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.
Files changed (25) hide show
  1. package/demo/index.html +22 -0
  2. package/demo/index.js +344 -61
  3. package/demo/index.min.js +343 -60
  4. package/demo/index.min.js.map +1 -1
  5. package/dist/elements/Elements.d.ts +3 -1
  6. package/dist/elements/Elements.js +5 -1
  7. package/dist/elements/Elements.js.map +1 -1
  8. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.d.ts +14 -0
  9. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js +83 -0
  10. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js.map +1 -0
  11. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.d.ts +14 -0
  12. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js +83 -0
  13. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js.map +1 -0
  14. package/dist/framework/Validation/Validators/SECompanyRegistration.d.ts +9 -0
  15. package/dist/framework/Validation/Validators/SECompanyRegistration.js +38 -0
  16. package/dist/framework/Validation/Validators/SECompanyRegistration.js.map +1 -0
  17. package/dist/framework/Validation/Validators/SEPersonalNumber.d.ts +6 -0
  18. package/dist/framework/Validation/Validators/SEPersonalNumber.js +71 -0
  19. package/dist/framework/Validation/Validators/SEPersonalNumber.js.map +1 -0
  20. package/package.json +1 -1
  21. package/src/elements/Elements.ts +5 -1
  22. package/src/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.ts +73 -0
  23. package/src/elements/SEPersonalNumberElement/SEPersonalNumberElement.ts +73 -0
  24. package/src/framework/Validation/Validators/SECompanyRegistration.ts +40 -0
  25. package/src/framework/Validation/Validators/SEPersonalNumber.ts +80 -0
package/demo/index.min.js CHANGED
@@ -11,7 +11,7 @@ document.onreadystatechange = function () {
11
11
  }
12
12
  };
13
13
 
14
- },{"./../src/index":68}],2:[function(require,module,exports){
14
+ },{"./../src/index":72}],2:[function(require,module,exports){
15
15
  /**
16
16
  @license @nocompile
17
17
  Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
@@ -2364,7 +2364,7 @@ var CustomForm = /** @class */ (function () {
2364
2364
  }());
2365
2365
  exports.CustomForm = CustomForm;
2366
2366
 
2367
- },{"./elements/FileField/FileFieldElement":20,"./framework/Utilities/ArrayUtil":54,"./framework/Utilities/MakeRequest":57}],10:[function(require,module,exports){
2367
+ },{"./elements/FileField/FileFieldElement":20,"./framework/Utilities/ArrayUtil":56,"./framework/Utilities/MakeRequest":59}],10:[function(require,module,exports){
2368
2368
  "use strict";
2369
2369
  var __extends = (this && this.__extends) || (function () {
2370
2370
  var extendStatics = function (d, b) {
@@ -2572,7 +2572,7 @@ var AddressElement = /** @class */ (function (_super) {
2572
2572
  }(CustomInputElement_1.CustomInputElement));
2573
2573
  exports.AddressElement = AddressElement;
2574
2574
 
2575
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Language/Translator":52,"../../framework/Polyfills/getAttributeNamesPolyfill":53,"../../framework/Utilities/debouncer":60,"../../framework/custom-element.decorator":67}],11:[function(require,module,exports){
2575
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Language/Translator":54,"../../framework/Polyfills/getAttributeNamesPolyfill":55,"../../framework/Utilities/debouncer":62,"../../framework/custom-element.decorator":71}],11:[function(require,module,exports){
2576
2576
  "use strict";
2577
2577
  var __extends = (this && this.__extends) || (function () {
2578
2578
  var extendStatics = function (d, b) {
@@ -2701,7 +2701,7 @@ var BankFieldElement = /** @class */ (function (_super) {
2701
2701
  }(CustomInputElement_1.CustomInputElement));
2702
2702
  exports.BankFieldElement = BankFieldElement;
2703
2703
 
2704
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Language/Translator":52,"../../framework/Validation/Validators/BankAccount":61,"../../framework/Validation/Validators/BankAccountRegistrationNumber":62,"../../framework/custom-element.decorator":67}],12:[function(require,module,exports){
2704
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Language/Translator":54,"../../framework/Validation/Validators/BankAccount":63,"../../framework/Validation/Validators/BankAccountRegistrationNumber":64,"../../framework/custom-element.decorator":71}],12:[function(require,module,exports){
2705
2705
  "use strict";
2706
2706
  var __extends = (this && this.__extends) || (function () {
2707
2707
  var extendStatics = function (d, b) {
@@ -2785,7 +2785,7 @@ var CPRElement = /** @class */ (function (_super) {
2785
2785
  }(CustomInputElement_1.CustomInputElement));
2786
2786
  exports.CPRElement = CPRElement;
2787
2787
 
2788
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Validation/Validators/CPR":65,"../../framework/custom-element.decorator":67}],13:[function(require,module,exports){
2788
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Validation/Validators/CPR":67,"../../framework/custom-element.decorator":71}],13:[function(require,module,exports){
2789
2789
  "use strict";
2790
2790
  var __extends = (this && this.__extends) || (function () {
2791
2791
  var extendStatics = function (d, b) {
@@ -2869,7 +2869,7 @@ var CVRElement = /** @class */ (function (_super) {
2869
2869
  }(CustomInputElement_1.CustomInputElement));
2870
2870
  exports.CVRElement = CVRElement;
2871
2871
 
2872
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Validation/Validators/CVR":66,"../../framework/custom-element.decorator":67}],14:[function(require,module,exports){
2872
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Validation/Validators/CVR":68,"../../framework/custom-element.decorator":71}],14:[function(require,module,exports){
2873
2873
  "use strict";
2874
2874
  var __extends = (this && this.__extends) || (function () {
2875
2875
  var extendStatics = function (d, b) {
@@ -2967,7 +2967,7 @@ var CheckBoxElement = /** @class */ (function (_super) {
2967
2967
  }(CustomInputElement_1.CustomInputElement));
2968
2968
  exports.CheckBoxElement = CheckBoxElement;
2969
2969
 
2970
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Utilities/StringUtil":58,"../../framework/custom-element.decorator":67}],15:[function(require,module,exports){
2970
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Utilities/StringUtil":60,"../../framework/custom-element.decorator":71}],15:[function(require,module,exports){
2971
2971
  "use strict";
2972
2972
  var __extends = (this && this.__extends) || (function () {
2973
2973
  var extendStatics = function (d, b) {
@@ -3051,7 +3051,7 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
3051
3051
  }(CustomInputElement_1.CustomInputElement));
3052
3052
  exports.CustomRegularExpressionElement = CustomRegularExpressionElement;
3053
3053
 
3054
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/custom-element.decorator":67}],16:[function(require,module,exports){
3054
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/custom-element.decorator":71}],16:[function(require,module,exports){
3055
3055
  "use strict";
3056
3056
  var __extends = (this && this.__extends) || (function () {
3057
3057
  var extendStatics = function (d, b) {
@@ -3138,7 +3138,7 @@ var DateFieldElement = /** @class */ (function (_super) {
3138
3138
  }(CustomInputElement_1.CustomInputElement));
3139
3139
  exports.DateFieldElement = DateFieldElement;
3140
3140
 
3141
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/custom-element.decorator":67}],17:[function(require,module,exports){
3141
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/custom-element.decorator":71}],17:[function(require,module,exports){
3142
3142
  "use strict";
3143
3143
  var __extends = (this && this.__extends) || (function () {
3144
3144
  var extendStatics = function (d, b) {
@@ -3233,10 +3233,10 @@ var DropDownListElement = /** @class */ (function (_super) {
3233
3233
  }(CustomInputElement_1.CustomInputElement));
3234
3234
  exports.DropDownListElement = DropDownListElement;
3235
3235
 
3236
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Utilities/StringUtil":58,"../../framework/custom-element.decorator":67}],18:[function(require,module,exports){
3236
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Utilities/StringUtil":60,"../../framework/custom-element.decorator":71}],18:[function(require,module,exports){
3237
3237
  "use strict";
3238
3238
  Object.defineProperty(exports, "__esModule", { value: true });
3239
- exports.TypeAheadElement = exports.BankFieldElement = exports.IdentificationElement = exports.CVRElement = exports.CPRElement = exports.IntPhoneFieldElement = exports.DateFieldElement = exports.CustomRegularExpressionElement = exports.NumericFieldElement = exports.FileFieldElement = exports.DropDownListElement = exports.TextAreaElement = exports.RadioButtonGroupElement = exports.CheckBoxElement = exports.EmailFieldElement = exports.TextFieldElement = exports.AddressElement = void 0;
3239
+ exports.SECompanyRegistrationElement = exports.SEPersonalNumberElement = exports.TypeAheadElement = exports.BankFieldElement = exports.IdentificationElement = exports.CVRElement = exports.CPRElement = exports.IntPhoneFieldElement = exports.DateFieldElement = exports.CustomRegularExpressionElement = exports.NumericFieldElement = exports.FileFieldElement = exports.DropDownListElement = exports.TextAreaElement = exports.RadioButtonGroupElement = exports.CheckBoxElement = exports.EmailFieldElement = exports.TextFieldElement = exports.AddressElement = void 0;
3240
3240
  var AddressElement_1 = require("./Address/AddressElement");
3241
3241
  Object.defineProperty(exports, "AddressElement", { enumerable: true, get: function () { return AddressElement_1.AddressElement; } });
3242
3242
  var TextFieldElement_1 = require("./TextField/TextFieldElement");
@@ -3271,8 +3271,12 @@ var BankFieldElement_1 = require("./BankField/BankFieldElement");
3271
3271
  Object.defineProperty(exports, "BankFieldElement", { enumerable: true, get: function () { return BankFieldElement_1.BankFieldElement; } });
3272
3272
  var TypeAheadElement_1 = require("./TypeAhead/TypeAheadElement");
3273
3273
  Object.defineProperty(exports, "TypeAheadElement", { enumerable: true, get: function () { return TypeAheadElement_1.TypeAheadElement; } });
3274
+ var SEPersonalNumberElement_1 = require("./SEPersonalNumberElement/SEPersonalNumberElement");
3275
+ Object.defineProperty(exports, "SEPersonalNumberElement", { enumerable: true, get: function () { return SEPersonalNumberElement_1.SEPersonalNumberElement; } });
3276
+ var SECompanyRegistrationElement_1 = require("./SECompanyRegistrationElement/SECompanyRegistrationElement");
3277
+ Object.defineProperty(exports, "SECompanyRegistrationElement", { enumerable: true, get: function () { return SECompanyRegistrationElement_1.SECompanyRegistrationElement; } });
3274
3278
 
3275
- },{"./Address/AddressElement":10,"./BankField/BankFieldElement":11,"./CPRElement/CPRElement":12,"./CVRElement/CVRElement":13,"./CheckBoxElement/CheckBoxElement":14,"./CustomRegularExpression/CustomRegularExpressionElement":15,"./DateField/DateFieldElement":16,"./DropDownList/DropDownListElement":17,"./EmailField/EmailFieldElement":19,"./FileField/FileFieldElement":20,"./IdentificationElement/IdentificationElement":21,"./InternationaPhoneNumber/InternationaPhoneNumberElement":24,"./NumericField/NumericFieldElement":25,"./RadioButtonGroup/RadioButtonGroupElement":26,"./TextAreaElement/TextAreaElement":27,"./TextField/TextFieldElement":28,"./TypeAhead/TypeAheadElement":29}],19:[function(require,module,exports){
3279
+ },{"./Address/AddressElement":10,"./BankField/BankFieldElement":11,"./CPRElement/CPRElement":12,"./CVRElement/CVRElement":13,"./CheckBoxElement/CheckBoxElement":14,"./CustomRegularExpression/CustomRegularExpressionElement":15,"./DateField/DateFieldElement":16,"./DropDownList/DropDownListElement":17,"./EmailField/EmailFieldElement":19,"./FileField/FileFieldElement":20,"./IdentificationElement/IdentificationElement":21,"./InternationaPhoneNumber/InternationaPhoneNumberElement":24,"./NumericField/NumericFieldElement":25,"./RadioButtonGroup/RadioButtonGroupElement":26,"./SECompanyRegistrationElement/SECompanyRegistrationElement":27,"./SEPersonalNumberElement/SEPersonalNumberElement":28,"./TextAreaElement/TextAreaElement":29,"./TextField/TextFieldElement":30,"./TypeAhead/TypeAheadElement":31}],19:[function(require,module,exports){
3276
3280
  "use strict";
3277
3281
  var __extends = (this && this.__extends) || (function () {
3278
3282
  var extendStatics = function (d, b) {
@@ -3357,7 +3361,7 @@ var EmailFieldElement = /** @class */ (function (_super) {
3357
3361
  }(CustomInputElement_1.CustomInputElement));
3358
3362
  exports.EmailFieldElement = EmailFieldElement;
3359
3363
 
3360
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/custom-element.decorator":67}],20:[function(require,module,exports){
3364
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/custom-element.decorator":71}],20:[function(require,module,exports){
3361
3365
  "use strict";
3362
3366
  var __extends = (this && this.__extends) || (function () {
3363
3367
  var extendStatics = function (d, b) {
@@ -3462,7 +3466,7 @@ var FileFieldElement = /** @class */ (function (_super) {
3462
3466
  }(CustomInputElement_1.CustomInputElement));
3463
3467
  exports.FileFieldElement = FileFieldElement;
3464
3468
 
3465
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Polyfills/getAttributeNamesPolyfill":53,"../../framework/custom-element.decorator":67}],21:[function(require,module,exports){
3469
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Polyfills/getAttributeNamesPolyfill":55,"../../framework/custom-element.decorator":71}],21:[function(require,module,exports){
3466
3470
  "use strict";
3467
3471
  var __extends = (this && this.__extends) || (function () {
3468
3472
  var extendStatics = function (d, b) {
@@ -3558,7 +3562,7 @@ var IdentificationElement = /** @class */ (function (_super) {
3558
3562
  }(CustomInputElement_1.CustomInputElement));
3559
3563
  exports.IdentificationElement = IdentificationElement;
3560
3564
 
3561
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Validation/Validators/BankIdNorway":63,"../../framework/Validation/Validators/BankIdSweden":64,"../../framework/Validation/Validators/CPR":65,"../../framework/Validation/Validators/CVR":66,"../../framework/custom-element.decorator":67}],22:[function(require,module,exports){
3565
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Validation/Validators/BankIdNorway":65,"../../framework/Validation/Validators/BankIdSweden":66,"../../framework/Validation/Validators/CPR":67,"../../framework/Validation/Validators/CVR":68,"../../framework/custom-element.decorator":71}],22:[function(require,module,exports){
3562
3566
  "use strict";
3563
3567
  Object.defineProperty(exports, "__esModule", { value: true });
3564
3568
  function GetFlagsUrl() {
@@ -3699,7 +3703,7 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
3699
3703
  }(CustomInputElement_1.CustomInputElement));
3700
3704
  exports.IntPhoneFieldElement = IntPhoneFieldElement;
3701
3705
 
3702
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Utilities/MakeRequest":57,"../../framework/custom-element.decorator":67,"./Flags":22,"./Flags2x":23,"intl-tel-input":6}],25:[function(require,module,exports){
3706
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Utilities/MakeRequest":59,"../../framework/custom-element.decorator":71,"./Flags":22,"./Flags2x":23,"intl-tel-input":6}],25:[function(require,module,exports){
3703
3707
  "use strict";
3704
3708
  var __extends = (this && this.__extends) || (function () {
3705
3709
  var extendStatics = function (d, b) {
@@ -3792,7 +3796,7 @@ var NumericFieldElement = /** @class */ (function (_super) {
3792
3796
  }(CustomInputElement_1.CustomInputElement));
3793
3797
  exports.NumericFieldElement = NumericFieldElement;
3794
3798
 
3795
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/custom-element.decorator":67}],26:[function(require,module,exports){
3799
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/custom-element.decorator":71}],26:[function(require,module,exports){
3796
3800
  "use strict";
3797
3801
  var __extends = (this && this.__extends) || (function () {
3798
3802
  var extendStatics = function (d, b) {
@@ -3893,7 +3897,175 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
3893
3897
  }(CustomInputElement_1.CustomInputElement));
3894
3898
  exports.RadioButtonGroupElement = RadioButtonGroupElement;
3895
3899
 
3896
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Utilities/StringUtil":58,"../../framework/custom-element.decorator":67}],27:[function(require,module,exports){
3900
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Utilities/StringUtil":60,"../../framework/custom-element.decorator":71}],27:[function(require,module,exports){
3901
+ "use strict";
3902
+ var __extends = (this && this.__extends) || (function () {
3903
+ var extendStatics = function (d, b) {
3904
+ extendStatics = Object.setPrototypeOf ||
3905
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3906
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3907
+ return extendStatics(d, b);
3908
+ };
3909
+ return function (d, b) {
3910
+ if (typeof b !== "function" && b !== null)
3911
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3912
+ extendStatics(d, b);
3913
+ function __() { this.constructor = d; }
3914
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3915
+ };
3916
+ })();
3917
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3918
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3919
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
3920
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
3921
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
3922
+ };
3923
+ Object.defineProperty(exports, "__esModule", { value: true });
3924
+ exports.SECompanyRegistrationElement = void 0;
3925
+ var custom_element_decorator_1 = require("../../framework/custom-element.decorator");
3926
+ var CustomInputElement_1 = require("../../framework/CustomInputElement");
3927
+ var CustomEvents_1 = require("../../framework/CustomEvents");
3928
+ var SECompanyRegistration_1 = require("../../framework/Validation/Validators/SECompanyRegistration");
3929
+ var SECompanyRegistrationElement = /** @class */ (function (_super) {
3930
+ __extends(SECompanyRegistrationElement, _super);
3931
+ function SECompanyRegistrationElement() {
3932
+ var _this = _super.call(this) || this;
3933
+ _this.validator = new SECompanyRegistration_1.default();
3934
+ return _this;
3935
+ }
3936
+ Object.defineProperty(SECompanyRegistrationElement.prototype, "value", {
3937
+ get: function () {
3938
+ return "" + this.text.value;
3939
+ },
3940
+ set: function (value) {
3941
+ this.text.value = value;
3942
+ },
3943
+ enumerable: false,
3944
+ configurable: true
3945
+ });
3946
+ Object.defineProperty(SECompanyRegistrationElement.prototype, "valid", {
3947
+ get: function () {
3948
+ return this.validator.isSatisfiedBy(this.value, !this.required);
3949
+ },
3950
+ enumerable: false,
3951
+ configurable: true
3952
+ });
3953
+ SECompanyRegistrationElement.prototype.connectedCallback = function () {
3954
+ _super.prototype.connectedCallback.call(this);
3955
+ };
3956
+ SECompanyRegistrationElement.prototype.initChildInputs = function () {
3957
+ this.text = _super.prototype.getChildInput.call(this, '#se-company-registration-field');
3958
+ this.text.addEventListener('change', this.change.bind(this));
3959
+ if (this.required) {
3960
+ this.text.setAttribute('required', '');
3961
+ }
3962
+ };
3963
+ // events
3964
+ SECompanyRegistrationElement.prototype.change = function ($event) {
3965
+ this.touched = true;
3966
+ this.onChange.emit(new CustomEvents_1.CustomElementEventArgs(this.value, 'change'));
3967
+ };
3968
+ SECompanyRegistrationElement.prototype.validate = function () {
3969
+ this.valid;
3970
+ this.onValidate.emit(new CustomEvents_1.CustomElementEventArgs(this.value, 'validate'));
3971
+ };
3972
+ SECompanyRegistrationElement = __decorate([
3973
+ (0, custom_element_decorator_1.default)({
3974
+ selector: 'se-company-registration-element',
3975
+ template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-company-registration-field' placeholder='SSSSSSSSSS'/>\n </div>",
3976
+ style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }",
3977
+ useShadow: true,
3978
+ })
3979
+ ], SECompanyRegistrationElement);
3980
+ return SECompanyRegistrationElement;
3981
+ }(CustomInputElement_1.CustomInputElement));
3982
+ exports.SECompanyRegistrationElement = SECompanyRegistrationElement;
3983
+
3984
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Validation/Validators/SECompanyRegistration":69,"../../framework/custom-element.decorator":71}],28:[function(require,module,exports){
3985
+ "use strict";
3986
+ var __extends = (this && this.__extends) || (function () {
3987
+ var extendStatics = function (d, b) {
3988
+ extendStatics = Object.setPrototypeOf ||
3989
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3990
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
3991
+ return extendStatics(d, b);
3992
+ };
3993
+ return function (d, b) {
3994
+ if (typeof b !== "function" && b !== null)
3995
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
3996
+ extendStatics(d, b);
3997
+ function __() { this.constructor = d; }
3998
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3999
+ };
4000
+ })();
4001
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
4002
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4003
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4004
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
4005
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
4006
+ };
4007
+ Object.defineProperty(exports, "__esModule", { value: true });
4008
+ exports.SEPersonalNumberElement = void 0;
4009
+ var custom_element_decorator_1 = require("../../framework/custom-element.decorator");
4010
+ var CustomInputElement_1 = require("../../framework/CustomInputElement");
4011
+ var CustomEvents_1 = require("../../framework/CustomEvents");
4012
+ var SEPersonalNumber_1 = require("../../framework/Validation/Validators/SEPersonalNumber");
4013
+ var SEPersonalNumberElement = /** @class */ (function (_super) {
4014
+ __extends(SEPersonalNumberElement, _super);
4015
+ function SEPersonalNumberElement() {
4016
+ var _this = _super.call(this) || this;
4017
+ _this.validator = new SEPersonalNumber_1.default();
4018
+ return _this;
4019
+ }
4020
+ Object.defineProperty(SEPersonalNumberElement.prototype, "value", {
4021
+ get: function () {
4022
+ return "" + this.text.value;
4023
+ },
4024
+ set: function (value) {
4025
+ this.text.value = value;
4026
+ },
4027
+ enumerable: false,
4028
+ configurable: true
4029
+ });
4030
+ Object.defineProperty(SEPersonalNumberElement.prototype, "valid", {
4031
+ get: function () {
4032
+ return this.validator.isSatisfiedBy(this.value, !this.required);
4033
+ },
4034
+ enumerable: false,
4035
+ configurable: true
4036
+ });
4037
+ SEPersonalNumberElement.prototype.connectedCallback = function () {
4038
+ _super.prototype.connectedCallback.call(this);
4039
+ };
4040
+ SEPersonalNumberElement.prototype.initChildInputs = function () {
4041
+ this.text = _super.prototype.getChildInput.call(this, '#se-personal-number-field');
4042
+ this.text.addEventListener('change', this.change.bind(this));
4043
+ if (this.required) {
4044
+ this.text.setAttribute('required', '');
4045
+ }
4046
+ };
4047
+ // events
4048
+ SEPersonalNumberElement.prototype.change = function ($event) {
4049
+ this.touched = true;
4050
+ this.onChange.emit(new CustomEvents_1.CustomElementEventArgs(this.value, 'change'));
4051
+ };
4052
+ SEPersonalNumberElement.prototype.validate = function () {
4053
+ this.valid;
4054
+ this.onValidate.emit(new CustomEvents_1.CustomElementEventArgs(this.value, 'validate'));
4055
+ };
4056
+ SEPersonalNumberElement = __decorate([
4057
+ (0, custom_element_decorator_1.default)({
4058
+ selector: 'se-personal-number-element',
4059
+ template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-personal-number-field' placeholder='(YY)YYMMDD-SSSS'/>\n </div>",
4060
+ style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }",
4061
+ useShadow: true,
4062
+ })
4063
+ ], SEPersonalNumberElement);
4064
+ return SEPersonalNumberElement;
4065
+ }(CustomInputElement_1.CustomInputElement));
4066
+ exports.SEPersonalNumberElement = SEPersonalNumberElement;
4067
+
4068
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Validation/Validators/SEPersonalNumber":70,"../../framework/custom-element.decorator":71}],29:[function(require,module,exports){
3897
4069
  "use strict";
3898
4070
  var __extends = (this && this.__extends) || (function () {
3899
4071
  var extendStatics = function (d, b) {
@@ -3974,7 +4146,7 @@ var TextAreaElement = /** @class */ (function (_super) {
3974
4146
  }(CustomInputElement_1.CustomInputElement));
3975
4147
  exports.TextAreaElement = TextAreaElement;
3976
4148
 
3977
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/custom-element.decorator":67}],28:[function(require,module,exports){
4149
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/custom-element.decorator":71}],30:[function(require,module,exports){
3978
4150
  "use strict";
3979
4151
  var __extends = (this && this.__extends) || (function () {
3980
4152
  var extendStatics = function (d, b) {
@@ -4055,7 +4227,7 @@ var TextFieldElement = /** @class */ (function (_super) {
4055
4227
  }(CustomInputElement_1.CustomInputElement));
4056
4228
  exports.TextFieldElement = TextFieldElement;
4057
4229
 
4058
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/custom-element.decorator":67}],29:[function(require,module,exports){
4230
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/custom-element.decorator":71}],31:[function(require,module,exports){
4059
4231
  "use strict";
4060
4232
  var __extends = (this && this.__extends) || (function () {
4061
4233
  var extendStatics = function (d, b) {
@@ -4266,7 +4438,7 @@ var TypeAheadElement = /** @class */ (function (_super) {
4266
4438
  }(CustomInputElement_1.CustomInputElement));
4267
4439
  exports.TypeAheadElement = TypeAheadElement;
4268
4440
 
4269
- },{"../../framework/CustomEvents":30,"../../framework/CustomInputElement":31,"../../framework/Utilities/DomUtility":56,"../../framework/custom-element.decorator":67}],30:[function(require,module,exports){
4441
+ },{"../../framework/CustomEvents":32,"../../framework/CustomInputElement":33,"../../framework/Utilities/DomUtility":58,"../../framework/custom-element.decorator":71}],32:[function(require,module,exports){
4270
4442
  "use strict";
4271
4443
  Object.defineProperty(exports, "__esModule", { value: true });
4272
4444
  exports.CustomElementEvent = exports.CustomElementEventArgs = void 0;
@@ -4315,7 +4487,7 @@ var CustomElementEvent = /** @class */ (function () {
4315
4487
  }());
4316
4488
  exports.CustomElementEvent = CustomElementEvent;
4317
4489
 
4318
- },{}],31:[function(require,module,exports){
4490
+ },{}],33:[function(require,module,exports){
4319
4491
  "use strict";
4320
4492
  var __extends = (this && this.__extends) || (function () {
4321
4493
  var extendStatics = function (d, b) {
@@ -4575,7 +4747,7 @@ var CustomInputElement = /** @class */ (function (_super) {
4575
4747
  }(HTMLElement));
4576
4748
  exports.CustomInputElement = CustomInputElement;
4577
4749
 
4578
- },{"./CustomEvents":30,"./Utilities/ArrayUtil":54,"./Utilities/DomUtil":55}],32:[function(require,module,exports){
4750
+ },{"./CustomEvents":32,"./Utilities/ArrayUtil":56,"./Utilities/DomUtil":57}],34:[function(require,module,exports){
4579
4751
  "use strict";
4580
4752
  Object.defineProperty(exports, "__esModule", { value: true });
4581
4753
  var BaseDictionary = /** @class */ (function () {
@@ -4597,7 +4769,7 @@ var BaseDictionary = /** @class */ (function () {
4597
4769
  }());
4598
4770
  exports.default = BaseDictionary;
4599
4771
 
4600
- },{}],33:[function(require,module,exports){
4772
+ },{}],35:[function(require,module,exports){
4601
4773
  "use strict";
4602
4774
  var __extends = (this && this.__extends) || (function () {
4603
4775
  var extendStatics = function (d, b) {
@@ -4638,7 +4810,7 @@ var CzechDictionary = /** @class */ (function (_super) {
4638
4810
  }(BaseDictionary_1.default));
4639
4811
  exports.default = CzechDictionary;
4640
4812
 
4641
- },{"./Base/BaseDictionary":32}],34:[function(require,module,exports){
4813
+ },{"./Base/BaseDictionary":34}],36:[function(require,module,exports){
4642
4814
  "use strict";
4643
4815
  var __extends = (this && this.__extends) || (function () {
4644
4816
  var extendStatics = function (d, b) {
@@ -4679,7 +4851,7 @@ var DanishDictionary = /** @class */ (function (_super) {
4679
4851
  }(BaseDictionary_1.default));
4680
4852
  exports.default = DanishDictionary;
4681
4853
 
4682
- },{"./Base/BaseDictionary":32}],35:[function(require,module,exports){
4854
+ },{"./Base/BaseDictionary":34}],37:[function(require,module,exports){
4683
4855
  "use strict";
4684
4856
  var __extends = (this && this.__extends) || (function () {
4685
4857
  var extendStatics = function (d, b) {
@@ -4720,7 +4892,7 @@ var DutchDictionary = /** @class */ (function (_super) {
4720
4892
  }(BaseDictionary_1.default));
4721
4893
  exports.default = DutchDictionary;
4722
4894
 
4723
- },{"./Base/BaseDictionary":32}],36:[function(require,module,exports){
4895
+ },{"./Base/BaseDictionary":34}],38:[function(require,module,exports){
4724
4896
  "use strict";
4725
4897
  var __extends = (this && this.__extends) || (function () {
4726
4898
  var extendStatics = function (d, b) {
@@ -4761,7 +4933,7 @@ var EnglishDictionary = /** @class */ (function (_super) {
4761
4933
  }(BaseDictionary_1.default));
4762
4934
  exports.default = EnglishDictionary;
4763
4935
 
4764
- },{"./Base/BaseDictionary":32}],37:[function(require,module,exports){
4936
+ },{"./Base/BaseDictionary":34}],39:[function(require,module,exports){
4765
4937
  "use strict";
4766
4938
  var __extends = (this && this.__extends) || (function () {
4767
4939
  var extendStatics = function (d, b) {
@@ -4802,7 +4974,7 @@ var EstonianDictionary = /** @class */ (function (_super) {
4802
4974
  }(BaseDictionary_1.default));
4803
4975
  exports.default = EstonianDictionary;
4804
4976
 
4805
- },{"./Base/BaseDictionary":32}],38:[function(require,module,exports){
4977
+ },{"./Base/BaseDictionary":34}],40:[function(require,module,exports){
4806
4978
  "use strict";
4807
4979
  var __extends = (this && this.__extends) || (function () {
4808
4980
  var extendStatics = function (d, b) {
@@ -4843,7 +5015,7 @@ var FinnishDictionary = /** @class */ (function (_super) {
4843
5015
  }(BaseDictionary_1.default));
4844
5016
  exports.default = FinnishDictionary;
4845
5017
 
4846
- },{"./Base/BaseDictionary":32}],39:[function(require,module,exports){
5018
+ },{"./Base/BaseDictionary":34}],41:[function(require,module,exports){
4847
5019
  "use strict";
4848
5020
  var __extends = (this && this.__extends) || (function () {
4849
5021
  var extendStatics = function (d, b) {
@@ -4884,7 +5056,7 @@ var FrenchDictionary = /** @class */ (function (_super) {
4884
5056
  }(BaseDictionary_1.default));
4885
5057
  exports.default = FrenchDictionary;
4886
5058
 
4887
- },{"./Base/BaseDictionary":32}],40:[function(require,module,exports){
5059
+ },{"./Base/BaseDictionary":34}],42:[function(require,module,exports){
4888
5060
  "use strict";
4889
5061
  var __extends = (this && this.__extends) || (function () {
4890
5062
  var extendStatics = function (d, b) {
@@ -4925,7 +5097,7 @@ var GermanDictionary = /** @class */ (function (_super) {
4925
5097
  }(BaseDictionary_1.default));
4926
5098
  exports.default = GermanDictionary;
4927
5099
 
4928
- },{"./Base/BaseDictionary":32}],41:[function(require,module,exports){
5100
+ },{"./Base/BaseDictionary":34}],43:[function(require,module,exports){
4929
5101
  "use strict";
4930
5102
  var __extends = (this && this.__extends) || (function () {
4931
5103
  var extendStatics = function (d, b) {
@@ -4966,7 +5138,7 @@ var GreekDictionary = /** @class */ (function (_super) {
4966
5138
  }(BaseDictionary_1.default));
4967
5139
  exports.default = GreekDictionary;
4968
5140
 
4969
- },{"./Base/BaseDictionary":32}],42:[function(require,module,exports){
5141
+ },{"./Base/BaseDictionary":34}],44:[function(require,module,exports){
4970
5142
  "use strict";
4971
5143
  var __extends = (this && this.__extends) || (function () {
4972
5144
  var extendStatics = function (d, b) {
@@ -5007,7 +5179,7 @@ var HungarianDictionary = /** @class */ (function (_super) {
5007
5179
  }(BaseDictionary_1.default));
5008
5180
  exports.default = HungarianDictionary;
5009
5181
 
5010
- },{"./Base/BaseDictionary":32}],43:[function(require,module,exports){
5182
+ },{"./Base/BaseDictionary":34}],45:[function(require,module,exports){
5011
5183
  "use strict";
5012
5184
  var __extends = (this && this.__extends) || (function () {
5013
5185
  var extendStatics = function (d, b) {
@@ -5048,7 +5220,7 @@ var IcelandicDictionary = /** @class */ (function (_super) {
5048
5220
  }(BaseDictionary_1.default));
5049
5221
  exports.default = IcelandicDictionary;
5050
5222
 
5051
- },{"./Base/BaseDictionary":32}],44:[function(require,module,exports){
5223
+ },{"./Base/BaseDictionary":34}],46:[function(require,module,exports){
5052
5224
  "use strict";
5053
5225
  var __extends = (this && this.__extends) || (function () {
5054
5226
  var extendStatics = function (d, b) {
@@ -5089,7 +5261,7 @@ var ItalianDictionary = /** @class */ (function (_super) {
5089
5261
  }(BaseDictionary_1.default));
5090
5262
  exports.default = ItalianDictionary;
5091
5263
 
5092
- },{"./Base/BaseDictionary":32}],45:[function(require,module,exports){
5264
+ },{"./Base/BaseDictionary":34}],47:[function(require,module,exports){
5093
5265
  "use strict";
5094
5266
  var __extends = (this && this.__extends) || (function () {
5095
5267
  var extendStatics = function (d, b) {
@@ -5130,7 +5302,7 @@ var LatvianDictionary = /** @class */ (function (_super) {
5130
5302
  }(BaseDictionary_1.default));
5131
5303
  exports.default = LatvianDictionary;
5132
5304
 
5133
- },{"./Base/BaseDictionary":32}],46:[function(require,module,exports){
5305
+ },{"./Base/BaseDictionary":34}],48:[function(require,module,exports){
5134
5306
  "use strict";
5135
5307
  var __extends = (this && this.__extends) || (function () {
5136
5308
  var extendStatics = function (d, b) {
@@ -5171,7 +5343,7 @@ var LituanianDictionary = /** @class */ (function (_super) {
5171
5343
  }(BaseDictionary_1.default));
5172
5344
  exports.default = LituanianDictionary;
5173
5345
 
5174
- },{"./Base/BaseDictionary":32}],47:[function(require,module,exports){
5346
+ },{"./Base/BaseDictionary":34}],49:[function(require,module,exports){
5175
5347
  "use strict";
5176
5348
  var __extends = (this && this.__extends) || (function () {
5177
5349
  var extendStatics = function (d, b) {
@@ -5212,7 +5384,7 @@ var NorwegianDictionary = /** @class */ (function (_super) {
5212
5384
  }(BaseDictionary_1.default));
5213
5385
  exports.default = NorwegianDictionary;
5214
5386
 
5215
- },{"./Base/BaseDictionary":32}],48:[function(require,module,exports){
5387
+ },{"./Base/BaseDictionary":34}],50:[function(require,module,exports){
5216
5388
  "use strict";
5217
5389
  var __extends = (this && this.__extends) || (function () {
5218
5390
  var extendStatics = function (d, b) {
@@ -5253,7 +5425,7 @@ var PolishDictionary = /** @class */ (function (_super) {
5253
5425
  }(BaseDictionary_1.default));
5254
5426
  exports.default = PolishDictionary;
5255
5427
 
5256
- },{"./Base/BaseDictionary":32}],49:[function(require,module,exports){
5428
+ },{"./Base/BaseDictionary":34}],51:[function(require,module,exports){
5257
5429
  "use strict";
5258
5430
  var __extends = (this && this.__extends) || (function () {
5259
5431
  var extendStatics = function (d, b) {
@@ -5294,7 +5466,7 @@ var PortugueseDictionary = /** @class */ (function (_super) {
5294
5466
  }(BaseDictionary_1.default));
5295
5467
  exports.default = PortugueseDictionary;
5296
5468
 
5297
- },{"./Base/BaseDictionary":32}],50:[function(require,module,exports){
5469
+ },{"./Base/BaseDictionary":34}],52:[function(require,module,exports){
5298
5470
  "use strict";
5299
5471
  var __extends = (this && this.__extends) || (function () {
5300
5472
  var extendStatics = function (d, b) {
@@ -5335,7 +5507,7 @@ var SpanishDictionary = /** @class */ (function (_super) {
5335
5507
  }(BaseDictionary_1.default));
5336
5508
  exports.default = SpanishDictionary;
5337
5509
 
5338
- },{"./Base/BaseDictionary":32}],51:[function(require,module,exports){
5510
+ },{"./Base/BaseDictionary":34}],53:[function(require,module,exports){
5339
5511
  "use strict";
5340
5512
  var __extends = (this && this.__extends) || (function () {
5341
5513
  var extendStatics = function (d, b) {
@@ -5376,7 +5548,7 @@ var SwedishDictionary = /** @class */ (function (_super) {
5376
5548
  }(BaseDictionary_1.default));
5377
5549
  exports.default = SwedishDictionary;
5378
5550
 
5379
- },{"./Base/BaseDictionary":32}],52:[function(require,module,exports){
5551
+ },{"./Base/BaseDictionary":34}],54:[function(require,module,exports){
5380
5552
  "use strict";
5381
5553
  Object.defineProperty(exports, "__esModule", { value: true });
5382
5554
  var DanishDictionary_1 = require("./Languages/DanishDictionary");
@@ -5493,7 +5665,7 @@ var Translator = /** @class */ (function () {
5493
5665
  }());
5494
5666
  exports.default = Translator;
5495
5667
 
5496
- },{"./Languages/CzechDictionary":33,"./Languages/DanishDictionary":34,"./Languages/DutchDictionary":35,"./Languages/EnglishDictionary":36,"./Languages/EstonianDictionary":37,"./Languages/FinnishDictionary":38,"./Languages/FrenchDictionary":39,"./Languages/GermanDictionary":40,"./Languages/GreekDictionary":41,"./Languages/HungarianDictionary":42,"./Languages/IcelandicDictionary":43,"./Languages/ItalianDictionary":44,"./Languages/LatvianDictionary":45,"./Languages/LituanianDictionary":46,"./Languages/NorwegianDictionary":47,"./Languages/PolishDictionary":48,"./Languages/PortugueseDictionary":49,"./Languages/SpanishDictionary":50,"./Languages/SwedishDictionary":51}],53:[function(require,module,exports){
5668
+ },{"./Languages/CzechDictionary":35,"./Languages/DanishDictionary":36,"./Languages/DutchDictionary":37,"./Languages/EnglishDictionary":38,"./Languages/EstonianDictionary":39,"./Languages/FinnishDictionary":40,"./Languages/FrenchDictionary":41,"./Languages/GermanDictionary":42,"./Languages/GreekDictionary":43,"./Languages/HungarianDictionary":44,"./Languages/IcelandicDictionary":45,"./Languages/ItalianDictionary":46,"./Languages/LatvianDictionary":47,"./Languages/LituanianDictionary":48,"./Languages/NorwegianDictionary":49,"./Languages/PolishDictionary":50,"./Languages/PortugueseDictionary":51,"./Languages/SpanishDictionary":52,"./Languages/SwedishDictionary":53}],55:[function(require,module,exports){
5497
5669
  "use strict";
5498
5670
  Object.defineProperty(exports, "__esModule", { value: true });
5499
5671
  function getAttributeNamesPolyfill() {
@@ -5512,7 +5684,7 @@ function getAttributeNamesPolyfill() {
5512
5684
  exports.default = getAttributeNamesPolyfill;
5513
5685
  ;
5514
5686
 
5515
- },{}],54:[function(require,module,exports){
5687
+ },{}],56:[function(require,module,exports){
5516
5688
  "use strict";
5517
5689
  Object.defineProperty(exports, "__esModule", { value: true });
5518
5690
  var ArrayUtil = /** @class */ (function () {
@@ -5550,7 +5722,7 @@ var ArrayUtil = /** @class */ (function () {
5550
5722
  }());
5551
5723
  exports.default = ArrayUtil;
5552
5724
 
5553
- },{}],55:[function(require,module,exports){
5725
+ },{}],57:[function(require,module,exports){
5554
5726
  "use strict";
5555
5727
  Object.defineProperty(exports, "__esModule", { value: true });
5556
5728
  var ViewportUtil_1 = require("./ViewportUtil");
@@ -5653,7 +5825,7 @@ var DomUtil = /** @class */ (function () {
5653
5825
  }());
5654
5826
  exports.default = DomUtil;
5655
5827
 
5656
- },{"./ViewportUtil":59}],56:[function(require,module,exports){
5828
+ },{"./ViewportUtil":61}],58:[function(require,module,exports){
5657
5829
  "use strict";
5658
5830
  Object.defineProperty(exports, "__esModule", { value: true });
5659
5831
  var DomUtility = /** @class */ (function () {
@@ -5667,7 +5839,7 @@ var DomUtility = /** @class */ (function () {
5667
5839
  }());
5668
5840
  exports.default = DomUtility;
5669
5841
 
5670
- },{}],57:[function(require,module,exports){
5842
+ },{}],59:[function(require,module,exports){
5671
5843
  "use strict";
5672
5844
  Object.defineProperty(exports, "__esModule", { value: true });
5673
5845
  var MakeRequest = /** @class */ (function () {
@@ -5717,7 +5889,7 @@ var MakeRequest = /** @class */ (function () {
5717
5889
  }());
5718
5890
  exports.default = MakeRequest;
5719
5891
 
5720
- },{}],58:[function(require,module,exports){
5892
+ },{}],60:[function(require,module,exports){
5721
5893
  "use strict";
5722
5894
  Object.defineProperty(exports, "__esModule", { value: true });
5723
5895
  exports.StringUtil = void 0;
@@ -5735,7 +5907,7 @@ var StringUtil = /** @class */ (function () {
5735
5907
  }());
5736
5908
  exports.StringUtil = StringUtil;
5737
5909
 
5738
- },{}],59:[function(require,module,exports){
5910
+ },{}],61:[function(require,module,exports){
5739
5911
  "use strict";
5740
5912
  Object.defineProperty(exports, "__esModule", { value: true });
5741
5913
  exports.ViewportUtil = void 0;
@@ -5779,7 +5951,7 @@ var ViewportUtil = /** @class */ (function () {
5779
5951
  }());
5780
5952
  exports.ViewportUtil = ViewportUtil;
5781
5953
 
5782
- },{}],60:[function(require,module,exports){
5954
+ },{}],62:[function(require,module,exports){
5783
5955
  "use strict";
5784
5956
  Object.defineProperty(exports, "__esModule", { value: true });
5785
5957
  var debouncer = function (func, wait, immediate) {
@@ -5832,7 +6004,7 @@ var debouncer = function (func, wait, immediate) {
5832
6004
  };
5833
6005
  exports.default = debouncer;
5834
6006
 
5835
- },{}],61:[function(require,module,exports){
6007
+ },{}],63:[function(require,module,exports){
5836
6008
  "use strict";
5837
6009
  Object.defineProperty(exports, "__esModule", { value: true });
5838
6010
  var BankAccountValidator = /** @class */ (function () {
@@ -5846,7 +6018,7 @@ var BankAccountValidator = /** @class */ (function () {
5846
6018
  }());
5847
6019
  exports.default = BankAccountValidator;
5848
6020
 
5849
- },{}],62:[function(require,module,exports){
6021
+ },{}],64:[function(require,module,exports){
5850
6022
  "use strict";
5851
6023
  Object.defineProperty(exports, "__esModule", { value: true });
5852
6024
  var BankAccountRegistrationNumberValidator = /** @class */ (function () {
@@ -5860,7 +6032,7 @@ var BankAccountRegistrationNumberValidator = /** @class */ (function () {
5860
6032
  }());
5861
6033
  exports.default = BankAccountRegistrationNumberValidator;
5862
6034
 
5863
- },{}],63:[function(require,module,exports){
6035
+ },{}],65:[function(require,module,exports){
5864
6036
  "use strict";
5865
6037
  Object.defineProperty(exports, "__esModule", { value: true });
5866
6038
  var BankIdNorwayValidator = /** @class */ (function () {
@@ -5883,7 +6055,7 @@ var BankIdNorwayValidator = /** @class */ (function () {
5883
6055
  }());
5884
6056
  exports.default = BankIdNorwayValidator;
5885
6057
 
5886
- },{}],64:[function(require,module,exports){
6058
+ },{}],66:[function(require,module,exports){
5887
6059
  "use strict";
5888
6060
  Object.defineProperty(exports, "__esModule", { value: true });
5889
6061
  var BankIdSwedenValidator = /** @class */ (function () {
@@ -5906,7 +6078,7 @@ var BankIdSwedenValidator = /** @class */ (function () {
5906
6078
  }());
5907
6079
  exports.default = BankIdSwedenValidator;
5908
6080
 
5909
- },{}],65:[function(require,module,exports){
6081
+ },{}],67:[function(require,module,exports){
5910
6082
  "use strict";
5911
6083
  Object.defineProperty(exports, "__esModule", { value: true });
5912
6084
  var CprValidator = /** @class */ (function () {
@@ -5983,7 +6155,7 @@ var CprValidator = /** @class */ (function () {
5983
6155
  }());
5984
6156
  exports.default = CprValidator;
5985
6157
 
5986
- },{}],66:[function(require,module,exports){
6158
+ },{}],68:[function(require,module,exports){
5987
6159
  "use strict";
5988
6160
  Object.defineProperty(exports, "__esModule", { value: true });
5989
6161
  var CvrValidator = /** @class */ (function () {
@@ -6015,7 +6187,118 @@ var CvrValidator = /** @class */ (function () {
6015
6187
  }());
6016
6188
  exports.default = CvrValidator;
6017
6189
 
6018
- },{}],67:[function(require,module,exports){
6190
+ },{}],69:[function(require,module,exports){
6191
+ "use strict";
6192
+ Object.defineProperty(exports, "__esModule", { value: true });
6193
+ var SECompanyRegistrationValidator = /** @class */ (function () {
6194
+ function SECompanyRegistrationValidator() {
6195
+ this.ORG_NR_SE_LUHN_WEIGHTS = [2, 1, 2, 1, 2, 1, 2, 1, 2, 1];
6196
+ this.sum = function (a, b) { return a + b; };
6197
+ }
6198
+ SECompanyRegistrationValidator.prototype.weighted = function (coefficients) {
6199
+ return function (value, index) { return value * coefficients[index]; };
6200
+ };
6201
+ SECompanyRegistrationValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
6202
+ if (allowEmpty && !input) {
6203
+ return true;
6204
+ }
6205
+ return this.orgNrSe(input);
6206
+ };
6207
+ SECompanyRegistrationValidator.prototype.orgNrSe = function (value) {
6208
+ return this.checkLuhnModulus10(value, this.ORG_NR_SE_LUHN_WEIGHTS);
6209
+ };
6210
+ SECompanyRegistrationValidator.prototype.checkLuhnModulus10 = function (testValue, luhnWeights) {
6211
+ var length = luhnWeights.length;
6212
+ var testValue$ = testValue.replace("-", "");
6213
+ if (testValue$.length !== length) {
6214
+ return false;
6215
+ }
6216
+ if (Number.isNaN(parseInt(testValue$, 10))) {
6217
+ return false;
6218
+ }
6219
+ var digits = testValue$.split("").map(Number);
6220
+ var luhnF = function (n) { return (n < length ? n : n - (length - 1)); };
6221
+ var luhnSum = luhnWeights.map(this.weighted(digits)).map(luhnF).reduce(this.sum);
6222
+ var controlSum = length - (+luhnSum % length);
6223
+ return controlSum % 10 === 0;
6224
+ };
6225
+ return SECompanyRegistrationValidator;
6226
+ }());
6227
+ exports.default = SECompanyRegistrationValidator;
6228
+
6229
+ },{}],70:[function(require,module,exports){
6230
+ "use strict";
6231
+ Object.defineProperty(exports, "__esModule", { value: true });
6232
+ var SEPersonalNumberValidator = /** @class */ (function () {
6233
+ function SEPersonalNumberValidator() {
6234
+ this.regex = new RegExp('^(\d{2}){0,1}(\d{2})(\d{2})(\d{2})([\+\-]?)((?!000)\d{3})(\d)$');
6235
+ }
6236
+ SEPersonalNumberValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
6237
+ if (allowEmpty === void 0) { allowEmpty = true; }
6238
+ if (allowEmpty && !input) {
6239
+ return true;
6240
+ }
6241
+ var matches = this.regex.exec(input);
6242
+ if (!matches || matches.length < 7) {
6243
+ return false;
6244
+ }
6245
+ var groups = matches;
6246
+ var decade = groups[2];
6247
+ var century;
6248
+ if (groups[1]) {
6249
+ century = groups[1];
6250
+ }
6251
+ else {
6252
+ var born = new Date().getFullYear() - parseInt(decade, 10);
6253
+ if (groups[5] && groups[5] === '+') {
6254
+ born -= 100;
6255
+ }
6256
+ century = born.toString().substring(0, 2);
6257
+ }
6258
+ // Create date time object.
6259
+ var day = parseInt(groups[4], 10);
6260
+ var isCoordinationNumber = day > 60;
6261
+ day = isCoordinationNumber ? day - 60 : day;
6262
+ var realDay = day;
6263
+ var year = decade;
6264
+ var fullYear = century + decade;
6265
+ var month = groups[3];
6266
+ var numbers = groups[6] + groups[7];
6267
+ var controlNumber = groups[7];
6268
+ // Try parse date-time to make sure it's actually a real date.
6269
+ if (!Date.parse(fullYear + "-" + month + "-" + realDay)) {
6270
+ return false;
6271
+ }
6272
+ if (this.luhn("" + year + month + day + groups[6]) !== parseInt(controlNumber, 10)) {
6273
+ return false;
6274
+ }
6275
+ return true;
6276
+ };
6277
+ SEPersonalNumberValidator.prototype.luhn = function (value) {
6278
+ // Luhm algorithm doubles every other number in the value.
6279
+ // To get the correct checksum digit we aught to append a 0 on the sequence.
6280
+ // If the result becomes a two digit number, subtract 9 from the value.
6281
+ // If the total sum is not a 0, the last checksum value should be subtracted from 10.
6282
+ // The resulting value is the check value that we use as control number.
6283
+ // The value passed is a string, so we aught to get the actual integer value from each char (i.e., subtract '0' which is 48).
6284
+ var t = value.split('').map(function (d) { return parseInt(d, 10); });
6285
+ var sum = 0;
6286
+ var temp;
6287
+ for (var i = 0; i < t.length; i++) {
6288
+ temp = t[i];
6289
+ temp *= 2 - (i % 2);
6290
+ if (temp > 9) {
6291
+ temp -= 9;
6292
+ }
6293
+ sum += temp;
6294
+ }
6295
+ return Math.ceil(sum / 10.0) * 10 - sum;
6296
+ };
6297
+ return SEPersonalNumberValidator;
6298
+ }());
6299
+ exports.default = SEPersonalNumberValidator;
6300
+
6301
+ },{}],71:[function(require,module,exports){
6019
6302
  "use strict";
6020
6303
  Object.defineProperty(exports, "__esModule", { value: true });
6021
6304
  var elementConfig = /** @class */ (function () {
@@ -6068,7 +6351,7 @@ var CustomElement = function (config) {
6068
6351
  };
6069
6352
  exports.default = CustomElement;
6070
6353
 
6071
- },{}],68:[function(require,module,exports){
6354
+ },{}],72:[function(require,module,exports){
6072
6355
  "use strict";
6073
6356
  Object.defineProperty(exports, "__esModule", { value: true });
6074
6357
  exports.CustomInputElement = exports.elements = exports.CustomForm = void 0;
@@ -6084,6 +6367,6 @@ Object.defineProperty(exports, "CustomInputElement", { enumerable: true, get: fu
6084
6367
  var elements = require("./elements/Elements");
6085
6368
  exports.elements = elements;
6086
6369
 
6087
- },{"./custom-form":9,"./elements/Elements":18,"./framework/CustomInputElement":31,"@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js":2,"@webcomponents/webcomponentsjs/webcomponents-bundle":3,"@webcomponents/webcomponentsjs/webcomponents-loader.js":4}]},{},[1])
6370
+ },{"./custom-form":9,"./elements/Elements":18,"./framework/CustomInputElement":33,"@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js":2,"@webcomponents/webcomponentsjs/webcomponents-bundle":3,"@webcomponents/webcomponentsjs/webcomponents-loader.js":4}]},{},[1])
6088
6371
 
6089
6372
  //# sourceMappingURL=index.min.js.map