@luftborn/custom-elements 2.13.10 → 2.15.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 (139) hide show
  1. package/demo/index.html +269 -259
  2. package/demo/index.js +455 -125
  3. package/demo/index.min.js +454 -124
  4. package/demo/index.min.js.map +1 -1
  5. package/dist/elements/Address/AddressElement.js +3 -2
  6. package/dist/elements/Address/AddressElement.js.map +1 -1
  7. package/dist/elements/BankField/BankFieldElement.js +3 -2
  8. package/dist/elements/BankField/BankFieldElement.js.map +1 -1
  9. package/dist/elements/CPRElement/CPRElement.js +3 -2
  10. package/dist/elements/CPRElement/CPRElement.js.map +1 -1
  11. package/dist/elements/CVRElement/CVRElement.js +3 -2
  12. package/dist/elements/CVRElement/CVRElement.js.map +1 -1
  13. package/dist/elements/CheckBoxElement/CheckBoxElement.js +4 -2
  14. package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +1 -1
  15. package/dist/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.js +3 -2
  16. package/dist/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.js.map +1 -1
  17. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +3 -2
  18. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +1 -1
  19. package/dist/elements/DateField/DateFieldElement.js +3 -2
  20. package/dist/elements/DateField/DateFieldElement.js.map +1 -1
  21. package/dist/elements/DropDownList/DropDownListElement.js +3 -2
  22. package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
  23. package/dist/elements/Elements.d.ts +2 -1
  24. package/dist/elements/Elements.js +3 -1
  25. package/dist/elements/Elements.js.map +1 -1
  26. package/dist/elements/EmailField/EmailFieldElement.js +3 -2
  27. package/dist/elements/EmailField/EmailFieldElement.js.map +1 -1
  28. package/dist/elements/FileField/FileFieldElement.js +3 -2
  29. package/dist/elements/FileField/FileFieldElement.js.map +1 -1
  30. package/dist/elements/IdentificationElement/IdentificationElement.js +3 -2
  31. package/dist/elements/IdentificationElement/IdentificationElement.js.map +1 -1
  32. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +3 -2
  33. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -1
  34. package/dist/elements/NumericField/NumericFieldElement.js +3 -2
  35. package/dist/elements/NumericField/NumericFieldElement.js.map +1 -1
  36. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +4 -2
  37. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
  38. package/dist/elements/ResidentIdentification/ResidentIdentificationElement.d.ts +22 -0
  39. package/dist/elements/ResidentIdentification/ResidentIdentificationElement.js +145 -0
  40. package/dist/elements/ResidentIdentification/ResidentIdentificationElement.js.map +1 -0
  41. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js +3 -2
  42. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js.map +1 -1
  43. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js +3 -2
  44. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js.map +1 -1
  45. package/dist/elements/TextAreaElement/TextAreaElement.js +3 -2
  46. package/dist/elements/TextAreaElement/TextAreaElement.js.map +1 -1
  47. package/dist/elements/TextField/TextFieldElement.js +3 -2
  48. package/dist/elements/TextField/TextFieldElement.js.map +1 -1
  49. package/dist/elements/TypeAhead/TypeAheadElement.js +3 -2
  50. package/dist/elements/TypeAhead/TypeAheadElement.js.map +1 -1
  51. package/dist/framework/CustomInputElement.d.ts +1 -0
  52. package/dist/framework/CustomInputElement.js +17 -0
  53. package/dist/framework/CustomInputElement.js.map +1 -1
  54. package/dist/framework/Language/Languages/CzechDictionary.js +7 -1
  55. package/dist/framework/Language/Languages/CzechDictionary.js.map +1 -1
  56. package/dist/framework/Language/Languages/DanishDictionary.js +7 -1
  57. package/dist/framework/Language/Languages/DanishDictionary.js.map +1 -1
  58. package/dist/framework/Language/Languages/DutchDictionary.js +7 -1
  59. package/dist/framework/Language/Languages/DutchDictionary.js.map +1 -1
  60. package/dist/framework/Language/Languages/EnglishDictionary.js +7 -1
  61. package/dist/framework/Language/Languages/EnglishDictionary.js.map +1 -1
  62. package/dist/framework/Language/Languages/EstonianDictionary.js +7 -1
  63. package/dist/framework/Language/Languages/EstonianDictionary.js.map +1 -1
  64. package/dist/framework/Language/Languages/FinnishDictionary.js +7 -1
  65. package/dist/framework/Language/Languages/FinnishDictionary.js.map +1 -1
  66. package/dist/framework/Language/Languages/FrenchDictionary.js +7 -1
  67. package/dist/framework/Language/Languages/FrenchDictionary.js.map +1 -1
  68. package/dist/framework/Language/Languages/GermanDictionary.js +7 -1
  69. package/dist/framework/Language/Languages/GermanDictionary.js.map +1 -1
  70. package/dist/framework/Language/Languages/GreekDictionary.js +7 -1
  71. package/dist/framework/Language/Languages/GreekDictionary.js.map +1 -1
  72. package/dist/framework/Language/Languages/HungarianDictionary.js +7 -1
  73. package/dist/framework/Language/Languages/HungarianDictionary.js.map +1 -1
  74. package/dist/framework/Language/Languages/IcelandicDictionary.js +7 -1
  75. package/dist/framework/Language/Languages/IcelandicDictionary.js.map +1 -1
  76. package/dist/framework/Language/Languages/ItalianDictionary.js +7 -1
  77. package/dist/framework/Language/Languages/ItalianDictionary.js.map +1 -1
  78. package/dist/framework/Language/Languages/LatvianDictionary.js +7 -1
  79. package/dist/framework/Language/Languages/LatvianDictionary.js.map +1 -1
  80. package/dist/framework/Language/Languages/LituanianDictionary.js +7 -1
  81. package/dist/framework/Language/Languages/LituanianDictionary.js.map +1 -1
  82. package/dist/framework/Language/Languages/NorwegianDictionary.js +7 -1
  83. package/dist/framework/Language/Languages/NorwegianDictionary.js.map +1 -1
  84. package/dist/framework/Language/Languages/PolishDictionary.js +7 -1
  85. package/dist/framework/Language/Languages/PolishDictionary.js.map +1 -1
  86. package/dist/framework/Language/Languages/PortugueseDictionary.js +7 -1
  87. package/dist/framework/Language/Languages/PortugueseDictionary.js.map +1 -1
  88. package/dist/framework/Language/Languages/SpanishDictionary.js +7 -1
  89. package/dist/framework/Language/Languages/SpanishDictionary.js.map +1 -1
  90. package/dist/framework/Language/Languages/SwedishDictionary.js +7 -1
  91. package/dist/framework/Language/Languages/SwedishDictionary.js.map +1 -1
  92. package/dist/framework/Validation/Validators/ResidentIdentification.d.ts +5 -0
  93. package/dist/framework/Validation/Validators/ResidentIdentification.js +28 -0
  94. package/dist/framework/Validation/Validators/ResidentIdentification.js.map +1 -0
  95. package/package.json +1 -1
  96. package/src/elements/Address/AddressElement.ts +37 -18
  97. package/src/elements/BankField/BankFieldElement.ts +34 -16
  98. package/src/elements/CPRElement/CPRElement.ts +28 -10
  99. package/src/elements/CVRElement/CVRElement.ts +28 -10
  100. package/src/elements/CheckBoxElement/CheckBoxElement.ts +22 -3
  101. package/src/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.ts +25 -7
  102. package/src/elements/CustomRegularExpression/CustomRegularExpressionElement.ts +28 -10
  103. package/src/elements/DateField/DateFieldElement.ts +28 -10
  104. package/src/elements/DropDownList/DropDownListElement.ts +42 -24
  105. package/src/elements/Elements.ts +2 -0
  106. package/src/elements/EmailField/EmailFieldElement.ts +28 -10
  107. package/src/elements/FileField/FileFieldElement.ts +28 -10
  108. package/src/elements/IdentificationElement/IdentificationElement.ts +32 -14
  109. package/src/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.ts +36 -19
  110. package/src/elements/NumericField/NumericFieldElement.ts +28 -10
  111. package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +46 -27
  112. package/src/elements/ResidentIdentification/ResidentIdentificationElement.ts +155 -0
  113. package/src/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.ts +24 -5
  114. package/src/elements/SEPersonalNumberElement/SEPersonalNumberElement.ts +24 -5
  115. package/src/elements/TextAreaElement/TextAreaElement.ts +28 -10
  116. package/src/elements/TextField/TextFieldElement.ts +30 -11
  117. package/src/elements/TypeAhead/TypeAheadElement.ts +27 -9
  118. package/src/framework/CustomInputElement.ts +18 -0
  119. package/src/framework/Language/Languages/CzechDictionary.ts +7 -1
  120. package/src/framework/Language/Languages/DanishDictionary.ts +8 -1
  121. package/src/framework/Language/Languages/DutchDictionary.ts +7 -1
  122. package/src/framework/Language/Languages/EnglishDictionary.ts +7 -1
  123. package/src/framework/Language/Languages/EstonianDictionary.ts +7 -1
  124. package/src/framework/Language/Languages/FinnishDictionary.ts +7 -1
  125. package/src/framework/Language/Languages/FrenchDictionary.ts +7 -1
  126. package/src/framework/Language/Languages/GermanDictionary.ts +7 -1
  127. package/src/framework/Language/Languages/GreekDictionary.ts +7 -1
  128. package/src/framework/Language/Languages/HungarianDictionary.ts +7 -1
  129. package/src/framework/Language/Languages/IcelandicDictionary.ts +7 -1
  130. package/src/framework/Language/Languages/ItalianDictionary.ts +7 -1
  131. package/src/framework/Language/Languages/LatvianDictionary.ts +7 -1
  132. package/src/framework/Language/Languages/LituanianDictionary.ts +7 -1
  133. package/src/framework/Language/Languages/NorwegianDictionary.ts +7 -1
  134. package/src/framework/Language/Languages/PolishDictionary.ts +7 -1
  135. package/src/framework/Language/Languages/PortugueseDictionary.ts +7 -1
  136. package/src/framework/Language/Languages/SpanishDictionary.ts +7 -1
  137. package/src/framework/Language/Languages/SwedishDictionary.ts +7 -1
  138. package/src/framework/Validation/Validators/ResidentIdentification.ts +28 -0
  139. package/src/elements/Address/html.html +0 -0
package/demo/index.min.js CHANGED
@@ -11,7 +11,7 @@ document.onreadystatechange = function () {
11
11
  }
12
12
  };
13
13
 
14
- },{"./../src/index":78}],2:[function(require,module,exports){
14
+ },{"./../src/index":80}],2:[function(require,module,exports){
15
15
  /**
16
16
  @license @nocompile
17
17
  Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
@@ -3454,7 +3454,7 @@ var CustomForm = /** @class */ (function () {
3454
3454
  }());
3455
3455
  exports.CustomForm = CustomForm;
3456
3456
 
3457
- },{"./elements/Elements":24,"./elements/FileField/FileFieldElement":26,"./framework/Utilities/ArrayUtil":62,"./framework/Utilities/MakeRequest":65}],11:[function(require,module,exports){
3457
+ },{"./elements/Elements":24,"./elements/FileField/FileFieldElement":26,"./framework/Utilities/ArrayUtil":63,"./framework/Utilities/MakeRequest":66}],11:[function(require,module,exports){
3458
3458
  "use strict";
3459
3459
  var __extends = (this && this.__extends) || (function () {
3460
3460
  var extendStatics = function (d, b) {
@@ -3523,6 +3523,7 @@ var AddressElement = /** @class */ (function (_super) {
3523
3523
  });
3524
3524
  AddressElement.prototype.connectedCallback = function () {
3525
3525
  _super.prototype.connectedCallback.call(this);
3526
+ _super.prototype.addLabel.call(this, this.address);
3526
3527
  };
3527
3528
  AddressElement.prototype.componentDidMount = function () {
3528
3529
  var _this = this;
@@ -3655,8 +3656,8 @@ var AddressElement = /** @class */ (function (_super) {
3655
3656
  AddressElement = __decorate([
3656
3657
  (0, custom_element_decorator_1.default)({
3657
3658
  selector: 'address-element',
3658
- template: "\n\t\t\t<div class=\"address-wrapper\">\n\t\t\t\t<input class='address-part' id='address' type=\"text\" placeholder='Address'/>\n\t\t\t\t<input class='address-part' id='zip' type=\"text\" placeholder='Zip'/>\n\t\t\t\t<input class='address-part' id='city' type=\"text\" placeholder='City'/>\n\t\t\t\t<input class='address-part' id='country' type=\"text\" placeholder='Country'/>\n\t\t\t</div>",
3659
- style: ".address-wrapper{\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t\tinput.address-part{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.125rem;\n\t\t\t\tresize: none;\n\t\t\t\twidth:33% !important;\n\t\t\t}\n\t\t",
3659
+ template: "\n\t\t\t<div class=\"field-label\">\n\t\t\t</div>\n\t\t\t<div class=\"field-input\">\n\t\t\t\t<div class=\"address-wrapper\">\n\t\t\t\t\t<input class='address-part' id='address' type=\"text\" placeholder='Address'/>\n\t\t\t\t\t<input class='address-part' id='zip' type=\"text\" placeholder='Zip'/>\n\t\t\t\t\t<input class='address-part' id='city' type=\"text\" placeholder='City'/>\n\t\t\t\t\t<input class='address-part' id='country' type=\"text\" placeholder='Country'/>\n\t\t\t\t</div>\n\t\t\t</div>",
3660
+ style: "\n\t\t.address-wrapper{\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: nowrap;\n\t\t}\n\t\tinput.address-part{\n\t\t\tbox-sizing: border-box;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t\twidth:33% !important;\n\t\t}\n\t\tinput.address-part::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
3660
3661
  templatePath: './html.html',
3661
3662
  useShadow: true,
3662
3663
  })
@@ -3665,7 +3666,7 @@ var AddressElement = /** @class */ (function (_super) {
3665
3666
  }(CustomInputElement_1.CustomInputElement));
3666
3667
  exports.AddressElement = AddressElement;
3667
3668
 
3668
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Language/Translator":60,"../../framework/Polyfills/getAttributeNamesPolyfill":61,"../../framework/Utilities/debouncer":68,"../../framework/custom-element.decorator":77}],12:[function(require,module,exports){
3669
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Language/Translator":61,"../../framework/Polyfills/getAttributeNamesPolyfill":62,"../../framework/Utilities/debouncer":69,"../../framework/custom-element.decorator":79}],12:[function(require,module,exports){
3669
3670
  "use strict";
3670
3671
  var __extends = (this && this.__extends) || (function () {
3671
3672
  var extendStatics = function (d, b) {
@@ -3730,6 +3731,7 @@ var BankFieldElement = /** @class */ (function (_super) {
3730
3731
  });
3731
3732
  BankFieldElement.prototype.connectedCallback = function () {
3732
3733
  _super.prototype.connectedCallback.call(this);
3734
+ _super.prototype.addLabel.call(this, this.regNumber);
3733
3735
  };
3734
3736
  BankFieldElement.prototype.componentDidMount = function () {
3735
3737
  var _this = this;
@@ -3788,8 +3790,8 @@ var BankFieldElement = /** @class */ (function (_super) {
3788
3790
  BankFieldElement = __decorate([
3789
3791
  (0, custom_element_decorator_1.default)({
3790
3792
  selector: 'bank-element',
3791
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='reg-number-field' placeholder='Bank Account Registration Number'/>\n\t\t\t\t<input type=\"text\" id='account-field' placeholder='Bank Account'/>\n\t\t\t</div>",
3792
- 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: 0.125rem;\n resize: none;\n }\n ",
3793
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='reg-number-field' placeholder='Bank Account Registration Number'/>\n\t\t\t\t<input type=\"text\" id='account-field' placeholder='Bank Account'/>\n\t\t\t</div>\n\t\t</div>",
3794
+ style: "\n\t\t:host{\n\t\t\twidth:100%;\n\t\t}\n\t\t.wrapper{\n\t\t\tdisplay:flex;\n\t\t}\n\t\tinput{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
3793
3795
  useShadow: true,
3794
3796
  })
3795
3797
  ], BankFieldElement);
@@ -3797,7 +3799,7 @@ var BankFieldElement = /** @class */ (function (_super) {
3797
3799
  }(CustomInputElement_1.CustomInputElement));
3798
3800
  exports.BankFieldElement = BankFieldElement;
3799
3801
 
3800
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Language/Translator":60,"../../framework/Validation/Validators/BankAccount":69,"../../framework/Validation/Validators/BankAccountRegistrationNumber":70,"../../framework/custom-element.decorator":77}],13:[function(require,module,exports){
3802
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Language/Translator":61,"../../framework/Validation/Validators/BankAccount":70,"../../framework/Validation/Validators/BankAccountRegistrationNumber":71,"../../framework/custom-element.decorator":79}],13:[function(require,module,exports){
3801
3803
  "use strict";
3802
3804
  var __extends = (this && this.__extends) || (function () {
3803
3805
  var extendStatics = function (d, b) {
@@ -3852,6 +3854,7 @@ var CPRElement = /** @class */ (function (_super) {
3852
3854
  });
3853
3855
  CPRElement.prototype.connectedCallback = function () {
3854
3856
  _super.prototype.connectedCallback.call(this);
3857
+ _super.prototype.addLabel.call(this, this.text);
3855
3858
  };
3856
3859
  CPRElement.prototype.initChildInputs = function () {
3857
3860
  this.text = _super.prototype.getChildInput.call(this, '#cpr-field');
@@ -3878,8 +3881,8 @@ var CPRElement = /** @class */ (function (_super) {
3878
3881
  CPRElement = __decorate([
3879
3882
  (0, custom_element_decorator_1.default)({
3880
3883
  selector: 'cpr-element',
3881
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='cpr-field' placeholder='DDMMYY-SSSS'/>\n\t\t\t</div>",
3882
- 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: 0.125rem;\n resize: none;\n }\n ",
3884
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='cpr-field' placeholder='DDMMYY-SSSS'/>\n\t\t\t</div>\n\t\t</div>",
3885
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
3883
3886
  useShadow: true,
3884
3887
  })
3885
3888
  ], CPRElement);
@@ -3887,7 +3890,7 @@ var CPRElement = /** @class */ (function (_super) {
3887
3890
  }(CustomInputElement_1.CustomInputElement));
3888
3891
  exports.CPRElement = CPRElement;
3889
3892
 
3890
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/CPR":73,"../../framework/custom-element.decorator":77}],14:[function(require,module,exports){
3893
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Validation/Validators/CPR":74,"../../framework/custom-element.decorator":79}],14:[function(require,module,exports){
3891
3894
  "use strict";
3892
3895
  var __extends = (this && this.__extends) || (function () {
3893
3896
  var extendStatics = function (d, b) {
@@ -3942,6 +3945,7 @@ var CVRElement = /** @class */ (function (_super) {
3942
3945
  });
3943
3946
  CVRElement.prototype.connectedCallback = function () {
3944
3947
  _super.prototype.connectedCallback.call(this);
3948
+ _super.prototype.addLabel.call(this, this.text);
3945
3949
  };
3946
3950
  CVRElement.prototype.initChildInputs = function () {
3947
3951
  this.text = _super.prototype.getChildInput.call(this, '#cvr-field');
@@ -3968,8 +3972,8 @@ var CVRElement = /** @class */ (function (_super) {
3968
3972
  CVRElement = __decorate([
3969
3973
  (0, custom_element_decorator_1.default)({
3970
3974
  selector: 'cvr-element',
3971
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='cvr-field' placeholder='SSSSSSSS'/>\n\t\t\t</div>",
3972
- 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: 0.125rem;\n resize: none;\n }\n ",
3975
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='cvr-field' placeholder='SSSSSSSS'/>\n\t\t\t</div>\n\t\t</div>",
3976
+ style: "\n\t :host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\t\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
3973
3977
  useShadow: true,
3974
3978
  })
3975
3979
  ], CVRElement);
@@ -3977,7 +3981,7 @@ var CVRElement = /** @class */ (function (_super) {
3977
3981
  }(CustomInputElement_1.CustomInputElement));
3978
3982
  exports.CVRElement = CVRElement;
3979
3983
 
3980
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/CVR":74,"../../framework/custom-element.decorator":77}],15:[function(require,module,exports){
3984
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Validation/Validators/CVR":75,"../../framework/custom-element.decorator":79}],15:[function(require,module,exports){
3981
3985
  "use strict";
3982
3986
  var __extends = (this && this.__extends) || (function () {
3983
3987
  var extendStatics = function (d, b) {
@@ -4037,6 +4041,8 @@ var CheckBoxElement = /** @class */ (function (_super) {
4037
4041
  });
4038
4042
  CheckBoxElement.prototype.connectedCallback = function () {
4039
4043
  _super.prototype.connectedCallback.call(this);
4044
+ var firstCheckbox = _super.prototype.getChildElement.call(this, 'input[type="checkbox"]');
4045
+ _super.prototype.addLabel.call(this, firstCheckbox);
4040
4046
  };
4041
4047
  CheckBoxElement.prototype.initChildInputs = function () {
4042
4048
  var _this = this;
@@ -4080,8 +4086,8 @@ var CheckBoxElement = /** @class */ (function (_super) {
4080
4086
  CheckBoxElement = __decorate([
4081
4087
  (0, custom_element_decorator_1.default)({
4082
4088
  selector: 'checkbox-element',
4083
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
4084
- style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.checkbox {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.checkbox:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput[type='checkbox']{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.125rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\tfieldset {\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t",
4089
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>\n\t\t</div>",
4090
+ style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.checkbox {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.checkbox:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput[type='checkbox']{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: .1rem solid #27282D;\n\t\t\t\tborder-radius: .25rem;\n\t\t\t\tmargin: 0.125rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\tinput[type='checkbox']::placeholder {\n\t\t\t\tcolor: rgb(117, 117, 117);\n\t\t\t}\n\t\t\tfieldset {\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t\t.field-label {\n\t\t\t\tcolor: #27282d;\n\t\t\t\tfont-size: .75rem;\n\t\t\t\tfont-weight: 600;\n\t\t\t\tword-wrap: break-word;\n\t\t\t}\n\t\t\t.field-input {\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmin-height: 1.438rem;\n\t\t\t}\n\t\t",
4085
4091
  useShadow: true,
4086
4092
  })
4087
4093
  ], CheckBoxElement);
@@ -4089,7 +4095,7 @@ var CheckBoxElement = /** @class */ (function (_super) {
4089
4095
  }(CustomInputElement_1.CustomInputElement));
4090
4096
  exports.CheckBoxElement = CheckBoxElement;
4091
4097
 
4092
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/StringUtil":66,"../../framework/custom-element.decorator":77}],16:[function(require,module,exports){
4098
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Utilities/StringUtil":67,"../../framework/custom-element.decorator":79}],16:[function(require,module,exports){
4093
4099
  "use strict";
4094
4100
  Object.defineProperty(exports, "__esModule", { value: true });
4095
4101
  var CustomDatepickerStyles_1 = require("./CustomDatepickerStyles");
@@ -4970,6 +4976,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
4970
4976
  });
4971
4977
  CustomFormatDateFieldElement.prototype.connectedCallback = function () {
4972
4978
  _super.prototype.connectedCallback.call(this);
4979
+ this.addLabel(this.date);
4973
4980
  };
4974
4981
  CustomFormatDateFieldElement.prototype.initChildInputs = function () {
4975
4982
  var _a;
@@ -5035,8 +5042,8 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
5035
5042
  CustomFormatDateFieldElement = __decorate([
5036
5043
  (0, custom_element_decorator_1.default)({
5037
5044
  selector: 'custom-format-date-element',
5038
- template: "\n\t\t<div class=\"wrapper\">\n\t\t\t<input type=\"text\" id=\"date-field\">\n\t\t\t<button id=\"picker-trigger\" aria-label=\"Open date picker\">\n\t\t\t\t<svg class=\"svg-picker\" data-toggle viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2\" y=\"4\" width=\"20\" height=\"18\" rx=\"1\" fill=\"#000\"/><rect x=\"4\" y=\"8\" width=\"16\" height=\"12\" fill=\"white\"/><path d=\"M4 10H20\" stroke=\"#000\" stroke-width=\"1\"/><circle cx=\"16\" cy=\"14\" r=\"2\" fill=\"#F44336\"/><rect x=\"6\" y=\"2\" width=\"3\" height=\"4\" rx=\".5\" fill=\"#000\"/><rect x=\"15\" y=\"2\" width=\"3\" height=\"4\" rx=\".5\" fill=\"#000\"/></svg>\n\t\t\t</button>\n\t\t</div>",
5039
- style: "\n\t\t:host{\n\t\t\twidth:100%;\n\t\t}\n\t\t* {\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.wrapper{\n\t\t\tdisplay:flex;\n\t\t\tposition: relative;\n\t\t}\n\t\tinput{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: none;\n\t\t\tbackground-color: #f1f4ff;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\t#date-field::after {\n\t\t\tcontent: url('path/to/datepicker-icon.png'); /* Path to your datepicker icon */\n\t\t\tcursor: pointer;\n\t\t\tright: 0.625rem;\n\t\t}\n\t\t.svg-picker {\n\t\t\twidth: 0.938rem;\n\t\t\theight: 0.938rem;\n\t\t}\n\t\t#picker-trigger {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: transparent;\n\t\t\tborder: none;\n\t\t\twidth: 1.5rem;\n\t\t\theight: 1.5rem;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: flex-end;\n\t\t\tposition:absolute;\n\t\t\tright: 0.125rem;\n\t\t\ttop: 15%;\n\t\t\tpadding: 0;\n\t\t}\n\t",
5045
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id=\"date-field\">\n\t\t\t\t<button id=\"picker-trigger\" aria-label=\"Open date picker\">\n\t\t\t\t\t<svg class=\"svg-picker\" data-toggle viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><rect x=\"2\" y=\"4\" width=\"20\" height=\"18\" rx=\"1\" fill=\"#000\"/><rect x=\"4\" y=\"8\" width=\"16\" height=\"12\" fill=\"white\"/><path d=\"M4 10H20\" stroke=\"#000\" stroke-width=\"1\"/><circle cx=\"16\" cy=\"14\" r=\"2\" fill=\"#F44336\"/><rect x=\"6\" y=\"2\" width=\"3\" height=\"4\" rx=\".5\" fill=\"#000\"/><rect x=\"15\" y=\"2\" width=\"3\" height=\"4\" rx=\".5\" fill=\"#000\"/></svg>\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t</div>",
5046
+ style: "\n\t\t:host{\n\t\t\twidth:100%;\n\t\t}\n\t\t* {\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.wrapper{\n\t\t\tdisplay:flex;\n\t\t\tposition: relative;\n\t\t}\n\t\tinput{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t#date-field::after {\n\t\t\tcontent: url('path/to/datepicker-icon.png'); /* Path to your datepicker icon */\n\t\t\tcursor: pointer;\n\t\t\tright: 0.625rem;\n\t\t}\n\t\t.svg-picker {\n\t\t\twidth: 0.938rem;\n\t\t\theight: 0.938rem;\n\t\t}\n\t\t#picker-trigger {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: transparent;\n\t\t\tborder: none;\n\t\t\twidth: 1.5rem;\n\t\t\theight: 1.5rem;\n\t\t\tdisplay: flex;\n\t\t\tjustify-content: flex-end;\n\t\t\tposition:absolute;\n\t\t\tright: 0.125rem;\n\t\t\ttop: 15%;\n\t\t\tpadding: 0;\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5040
5047
  useShadow: true,
5041
5048
  })
5042
5049
  ], CustomFormatDateFieldElement);
@@ -5044,7 +5051,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
5044
5051
  }(CustomInputElement_1.CustomInputElement));
5045
5052
  exports.CustomFormatDateFieldElement = CustomFormatDateFieldElement;
5046
5053
 
5047
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77,"./CustomDatepicker/CustomDatepicker":16,"./CustomDatepicker/CustomDatepickerUtils":18}],21:[function(require,module,exports){
5054
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79,"./CustomDatepicker/CustomDatepicker":16,"./CustomDatepicker/CustomDatepickerUtils":18}],21:[function(require,module,exports){
5048
5055
  "use strict";
5049
5056
  var __extends = (this && this.__extends) || (function () {
5050
5057
  var extendStatics = function (d, b) {
@@ -5102,6 +5109,7 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
5102
5109
  });
5103
5110
  CustomRegularExpressionElement.prototype.connectedCallback = function () {
5104
5111
  _super.prototype.connectedCallback.call(this);
5112
+ _super.prototype.addLabel.call(this, this.text);
5105
5113
  };
5106
5114
  CustomRegularExpressionElement.prototype.initChildInputs = function () {
5107
5115
  this.text = _super.prototype.getChildInput.call(this, '#regex-field');
@@ -5131,8 +5139,8 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
5131
5139
  CustomRegularExpressionElement = __decorate([
5132
5140
  (0, custom_element_decorator_1.default)({
5133
5141
  selector: 'regex-element',
5134
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='regex-field'/>\n\t\t\t</div>",
5135
- 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: 0.125rem;\n resize: none;\n }\n ",
5142
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='regex-field'/>\n\t\t\t</div>\n\t\t</div>",
5143
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5136
5144
  useShadow: true,
5137
5145
  })
5138
5146
  ], CustomRegularExpressionElement);
@@ -5140,7 +5148,7 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
5140
5148
  }(CustomInputElement_1.CustomInputElement));
5141
5149
  exports.CustomRegularExpressionElement = CustomRegularExpressionElement;
5142
5150
 
5143
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],22:[function(require,module,exports){
5151
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79}],22:[function(require,module,exports){
5144
5152
  "use strict";
5145
5153
  var __extends = (this && this.__extends) || (function () {
5146
5154
  var extendStatics = function (d, b) {
@@ -5192,6 +5200,7 @@ var DateFieldElement = /** @class */ (function (_super) {
5192
5200
  });
5193
5201
  DateFieldElement.prototype.connectedCallback = function () {
5194
5202
  _super.prototype.connectedCallback.call(this);
5203
+ _super.prototype.addLabel.call(this, this.date);
5195
5204
  };
5196
5205
  DateFieldElement.prototype.initChildInputs = function () {
5197
5206
  this.date = _super.prototype.getChildInput.call(this, '#date-field');
@@ -5224,8 +5233,8 @@ var DateFieldElement = /** @class */ (function (_super) {
5224
5233
  DateFieldElement = __decorate([
5225
5234
  (0, custom_element_decorator_1.default)({
5226
5235
  selector: 'date-element',
5227
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"date\" id='date-field'/>\n\t\t\t</div>",
5228
- 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: 0.125rem;\n resize: none;\n }\n ",
5236
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"date\" id='date-field'/>\n\t\t\t</div>\n\t\t</div>",
5237
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5229
5238
  useShadow: true,
5230
5239
  })
5231
5240
  ], DateFieldElement);
@@ -5233,7 +5242,7 @@ var DateFieldElement = /** @class */ (function (_super) {
5233
5242
  }(CustomInputElement_1.CustomInputElement));
5234
5243
  exports.DateFieldElement = DateFieldElement;
5235
5244
 
5236
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],23:[function(require,module,exports){
5245
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79}],23:[function(require,module,exports){
5237
5246
  "use strict";
5238
5247
  var __extends = (this && this.__extends) || (function () {
5239
5248
  var extendStatics = function (d, b) {
@@ -5293,6 +5302,7 @@ var DropDownListElement = /** @class */ (function (_super) {
5293
5302
  });
5294
5303
  DropDownListElement.prototype.connectedCallback = function () {
5295
5304
  _super.prototype.connectedCallback.call(this);
5305
+ _super.prototype.addLabel.call(this, this.select);
5296
5306
  };
5297
5307
  DropDownListElement.prototype.initChildInputs = function () {
5298
5308
  this.select = this.shadowRoot.querySelector('select');
@@ -5334,8 +5344,8 @@ var DropDownListElement = /** @class */ (function (_super) {
5334
5344
  DropDownListElement = __decorate([
5335
5345
  (0, custom_element_decorator_1.default)({
5336
5346
  selector: 'drop-down-element',
5337
- template: "\n\t\t\t<div class=\"wrapper\">\n <select id='select-list'>\n\t\t\t <option selected disabled>-</option>\n </select>\n\t\t\t</div>",
5338
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n justify-content: center;\n }\n .radio-button {\n width: auto;\n margin: auto 0.188rem;\n display: flex;\n flex-grow: 0.1;\n justify-content: space-around;\n }\n select{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 0.125rem;\n resize: none;\n }\n ",
5347
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n <select id='select-list'>\n\t\t\t <option selected disabled>-</option>\n </select>\n\t\t\t</div>\n\t\t</div>",
5348
+ style: "\n\t\t:host{\n\t\t\twidth:100%;\n\t\t}\n\t\t.wrapper{\n\t\t\tdisplay:flex;\n\t\t\tjustify-content: center;\n\t\t}\n\t\t.radio-button {\n\t\t\twidth: auto;\n\t\t\tmargin: auto 0.188rem;\n\t\t\tdisplay: flex;\n\t\t\tflex-grow: 0.1;\n\t\t\tjustify-content: space-around;\n\t\t}\n\t\tselect{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\tselect::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5339
5349
  useShadow: true,
5340
5350
  })
5341
5351
  ], DropDownListElement);
@@ -5343,10 +5353,10 @@ var DropDownListElement = /** @class */ (function (_super) {
5343
5353
  }(CustomInputElement_1.CustomInputElement));
5344
5354
  exports.DropDownListElement = DropDownListElement;
5345
5355
 
5346
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/StringUtil":66,"../../framework/custom-element.decorator":77}],24:[function(require,module,exports){
5356
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Utilities/StringUtil":67,"../../framework/custom-element.decorator":79}],24:[function(require,module,exports){
5347
5357
  "use strict";
5348
5358
  Object.defineProperty(exports, "__esModule", { value: true });
5349
- exports.SECompanyRegistrationElement = exports.SEPersonalNumberElement = exports.TypeAheadElement = exports.BankFieldElement = exports.IdentificationElement = exports.CVRElement = exports.CPRElement = exports.IntPhoneFieldElement = exports.CustomFormatDateFieldElement = exports.DateFieldElement = exports.CustomRegularExpressionElement = exports.NumericFieldElement = exports.FileFieldElement = exports.DropDownListElement = exports.TextAreaElement = exports.RadioButtonGroupElement = exports.CheckBoxElement = exports.EmailFieldElement = exports.TextFieldElement = exports.AddressElement = void 0;
5359
+ exports.ResidentIdentificationElement = exports.SECompanyRegistrationElement = exports.SEPersonalNumberElement = exports.TypeAheadElement = exports.BankFieldElement = exports.IdentificationElement = exports.CVRElement = exports.CPRElement = exports.IntPhoneFieldElement = exports.CustomFormatDateFieldElement = exports.DateFieldElement = exports.CustomRegularExpressionElement = exports.NumericFieldElement = exports.FileFieldElement = exports.DropDownListElement = exports.TextAreaElement = exports.RadioButtonGroupElement = exports.CheckBoxElement = exports.EmailFieldElement = exports.TextFieldElement = exports.AddressElement = void 0;
5350
5360
  var AddressElement_1 = require("./Address/AddressElement");
5351
5361
  Object.defineProperty(exports, "AddressElement", { enumerable: true, get: function () { return AddressElement_1.AddressElement; } });
5352
5362
  var TextFieldElement_1 = require("./TextField/TextFieldElement");
@@ -5387,8 +5397,10 @@ var SECompanyRegistrationElement_1 = require("./SECompanyRegistrationElement/SEC
5387
5397
  Object.defineProperty(exports, "SECompanyRegistrationElement", { enumerable: true, get: function () { return SECompanyRegistrationElement_1.SECompanyRegistrationElement; } });
5388
5398
  var CustomFormatDateFieldElement_1 = require("./CustomFormatDateFieldElement/CustomFormatDateFieldElement");
5389
5399
  Object.defineProperty(exports, "CustomFormatDateFieldElement", { enumerable: true, get: function () { return CustomFormatDateFieldElement_1.CustomFormatDateFieldElement; } });
5400
+ var ResidentIdentificationElement_1 = require("./ResidentIdentification/ResidentIdentificationElement");
5401
+ Object.defineProperty(exports, "ResidentIdentificationElement", { enumerable: true, get: function () { return ResidentIdentificationElement_1.ResidentIdentificationElement; } });
5390
5402
 
5391
- },{"./Address/AddressElement":11,"./BankField/BankFieldElement":12,"./CPRElement/CPRElement":13,"./CVRElement/CVRElement":14,"./CheckBoxElement/CheckBoxElement":15,"./CustomFormatDateFieldElement/CustomFormatDateFieldElement":20,"./CustomRegularExpression/CustomRegularExpressionElement":21,"./DateField/DateFieldElement":22,"./DropDownList/DropDownListElement":23,"./EmailField/EmailFieldElement":25,"./FileField/FileFieldElement":26,"./IdentificationElement/IdentificationElement":27,"./InternationaPhoneNumber/InternationaPhoneNumberElement":30,"./NumericField/NumericFieldElement":31,"./RadioButtonGroup/RadioButtonGroupElement":32,"./SECompanyRegistrationElement/SECompanyRegistrationElement":33,"./SEPersonalNumberElement/SEPersonalNumberElement":34,"./TextAreaElement/TextAreaElement":35,"./TextField/TextFieldElement":36,"./TypeAhead/TypeAheadElement":37}],25:[function(require,module,exports){
5403
+ },{"./Address/AddressElement":11,"./BankField/BankFieldElement":12,"./CPRElement/CPRElement":13,"./CVRElement/CVRElement":14,"./CheckBoxElement/CheckBoxElement":15,"./CustomFormatDateFieldElement/CustomFormatDateFieldElement":20,"./CustomRegularExpression/CustomRegularExpressionElement":21,"./DateField/DateFieldElement":22,"./DropDownList/DropDownListElement":23,"./EmailField/EmailFieldElement":25,"./FileField/FileFieldElement":26,"./IdentificationElement/IdentificationElement":27,"./InternationaPhoneNumber/InternationaPhoneNumberElement":30,"./NumericField/NumericFieldElement":31,"./RadioButtonGroup/RadioButtonGroupElement":32,"./ResidentIdentification/ResidentIdentificationElement":33,"./SECompanyRegistrationElement/SECompanyRegistrationElement":34,"./SEPersonalNumberElement/SEPersonalNumberElement":35,"./TextAreaElement/TextAreaElement":36,"./TextField/TextFieldElement":37,"./TypeAhead/TypeAheadElement":38}],25:[function(require,module,exports){
5392
5404
  "use strict";
5393
5405
  var __extends = (this && this.__extends) || (function () {
5394
5406
  var extendStatics = function (d, b) {
@@ -5444,6 +5456,7 @@ var EmailFieldElement = /** @class */ (function (_super) {
5444
5456
  EmailFieldElement.prototype.connectedCallback = function () {
5445
5457
  this.initChildInputs();
5446
5458
  _super.prototype.connectedCallback.call(this);
5459
+ _super.prototype.addLabel.call(this, this.email);
5447
5460
  };
5448
5461
  EmailFieldElement.prototype.initChildInputs = function () {
5449
5462
  this.email = _super.prototype.getChildInput.call(this, '#email-field');
@@ -5473,8 +5486,8 @@ var EmailFieldElement = /** @class */ (function (_super) {
5473
5486
  EmailFieldElement = __decorate([
5474
5487
  (0, custom_element_decorator_1.default)({
5475
5488
  selector: 'email-element',
5476
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='email-field'/>\n\t\t\t</div>",
5477
- 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: 0.125rem;\n resize: none;\n }\n ",
5489
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='email-field'/>\n\t\t\t</div>\n\t\t</div>",
5490
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5478
5491
  useShadow: true,
5479
5492
  })
5480
5493
  ], EmailFieldElement);
@@ -5482,7 +5495,7 @@ var EmailFieldElement = /** @class */ (function (_super) {
5482
5495
  }(CustomInputElement_1.CustomInputElement));
5483
5496
  exports.EmailFieldElement = EmailFieldElement;
5484
5497
 
5485
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],26:[function(require,module,exports){
5498
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79}],26:[function(require,module,exports){
5486
5499
  "use strict";
5487
5500
  var __extends = (this && this.__extends) || (function () {
5488
5501
  var extendStatics = function (d, b) {
@@ -5575,6 +5588,7 @@ var FileFieldElement = /** @class */ (function (_super) {
5575
5588
  FileFieldElement.prototype.connectedCallback = function () {
5576
5589
  this.initChildInputs();
5577
5590
  _super.prototype.connectedCallback.call(this);
5591
+ _super.prototype.addLabel.call(this, this.file);
5578
5592
  };
5579
5593
  FileFieldElement.prototype.componentDidMount = function () {
5580
5594
  var _this = this;
@@ -5805,8 +5819,8 @@ var FileFieldElement = /** @class */ (function (_super) {
5805
5819
  FileFieldElement = __decorate([
5806
5820
  (0, custom_element_decorator_1.default)({
5807
5821
  selector: 'file-element',
5808
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"file\" id='file-field' accept=\"image/*,application/pdf\"/>\n\t\t\t</div>",
5809
- 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: 0.125rem;\n resize: none;\n }\n ",
5822
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"file\" id='file-field' accept=\"image/*,application/pdf\"/>\n\t\t\t</div>\n\t\t</div>",
5823
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n input::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n .field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5810
5824
  useShadow: true,
5811
5825
  })
5812
5826
  ], FileFieldElement);
@@ -5814,7 +5828,7 @@ var FileFieldElement = /** @class */ (function (_super) {
5814
5828
  }(CustomInputElement_1.CustomInputElement));
5815
5829
  exports.FileFieldElement = FileFieldElement;
5816
5830
 
5817
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Polyfills/getAttributeNamesPolyfill":61,"../../framework/custom-element.decorator":77,"exif-js":5}],27:[function(require,module,exports){
5831
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Polyfills/getAttributeNamesPolyfill":62,"../../framework/custom-element.decorator":79,"exif-js":5}],27:[function(require,module,exports){
5818
5832
  "use strict";
5819
5833
  var __extends = (this && this.__extends) || (function () {
5820
5834
  var extendStatics = function (d, b) {
@@ -5877,6 +5891,7 @@ var IdentificationElement = /** @class */ (function (_super) {
5877
5891
  });
5878
5892
  IdentificationElement.prototype.connectedCallback = function () {
5879
5893
  _super.prototype.connectedCallback.call(this);
5894
+ _super.prototype.addLabel.call(this, this.text);
5880
5895
  };
5881
5896
  IdentificationElement.prototype.initChildInputs = function () {
5882
5897
  this.text = _super.prototype.getChildInput.call(this, '#id-field');
@@ -5904,8 +5919,8 @@ var IdentificationElement = /** @class */ (function (_super) {
5904
5919
  IdentificationElement = __decorate([
5905
5920
  (0, custom_element_decorator_1.default)({
5906
5921
  selector: 'id-element',
5907
- template: "\n\t\t\t<div class=\"wrapper\">\n <select id='id-type'>\n <option value='cvr'>Danish CVR</option>\n <option value='cpr'>Danish CPR</option>\n <option value='swe'>Sweden Bank Id</option>\n <option value='nor'>Norway Bank Id</option>\n </select>\n\t\t\t\t<input type=\"text\" id='id-field' placeholder=''/>\n\t\t\t</div>",
5908
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input, select{\n box-sizing: border-box;\n border: none;\n background-color: #f1f4ff;\n margin: 0.125rem;\n resize: none;\n }\n input{\n width: 75% !important;\n }\n select{\n width: 25% !important;\n }\n ",
5922
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n <select id='id-type'>\n <option value='cvr'>Danish CVR</option>\n <option value='cpr'>Danish CPR</option>\n <option value='swe'>Sweden Bank Id</option>\n <option value='nor'>Norway Bank Id</option>\n </select>\n\t\t\t\t<input type=\"text\" id='id-field' placeholder=''/>\n\t\t\t</div>\n\t\t</div>",
5923
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \tinput, select{\n box-sizing: border-box;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n \tinput{\n width: 75% !important;\n \t}\n \tselect{\n width: 25% !important;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
5909
5924
  useShadow: true,
5910
5925
  })
5911
5926
  ], IdentificationElement);
@@ -5913,7 +5928,7 @@ var IdentificationElement = /** @class */ (function (_super) {
5913
5928
  }(CustomInputElement_1.CustomInputElement));
5914
5929
  exports.IdentificationElement = IdentificationElement;
5915
5930
 
5916
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/BankIdNorway":71,"../../framework/Validation/Validators/BankIdSweden":72,"../../framework/Validation/Validators/CPR":73,"../../framework/Validation/Validators/CVR":74,"../../framework/custom-element.decorator":77}],28:[function(require,module,exports){
5931
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Validation/Validators/BankIdNorway":72,"../../framework/Validation/Validators/BankIdSweden":73,"../../framework/Validation/Validators/CPR":74,"../../framework/Validation/Validators/CVR":75,"../../framework/custom-element.decorator":79}],28:[function(require,module,exports){
5917
5932
  "use strict";
5918
5933
  Object.defineProperty(exports, "__esModule", { value: true });
5919
5934
  function GetFlagsUrl() {
@@ -5989,6 +6004,7 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
5989
6004
  IntPhoneFieldElement.prototype.connectedCallback = function () {
5990
6005
  this.setIntlTelInput();
5991
6006
  _super.prototype.connectedCallback.call(this);
6007
+ _super.prototype.addLabel.call(this, this.phone);
5992
6008
  };
5993
6009
  IntPhoneFieldElement.prototype.initChildInputs = function () {
5994
6010
  this.phone.addEventListener('change', this.change.bind(this));
@@ -6055,8 +6071,8 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
6055
6071
  IntPhoneFieldElement = __decorate([
6056
6072
  (0, custom_element_decorator_1.default)({
6057
6073
  selector: 'int-phone-element',
6058
- template: "\n <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.0/css/intlTelInput.css\" >\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"tel\" id=\"phone-field\" />\n\t\t\t</div>",
6059
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n .iti {\n width: 100% !important;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 0.125rem;\n resize: none;\n }\n\n @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n\t.iti__flag {\n\t background-image: url('https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.0/img/flags@2x.png'), url(" + (0, Flags2x_1.default)() + ");\n\t}\n }\n ",
6074
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n <link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.0/css/intlTelInput.css\" >\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"tel\" id=\"phone-field\" />\n\t\t\t</div>\n\t\t</div>",
6075
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \t.iti {\n \twidth: 100% !important;\n \t}\n \tinput{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t\t@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {\n\t\t\t.iti__flag {\n\t\t\tbackground-image: url('https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/16.0.0/img/flags@2x.png'), url(" + (0, Flags2x_1.default)() + ");\n\t\t\t}\n\t\t}\n\t",
6060
6076
  useShadow: true,
6061
6077
  })
6062
6078
  ], IntPhoneFieldElement);
@@ -6064,7 +6080,7 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
6064
6080
  }(CustomInputElement_1.CustomInputElement));
6065
6081
  exports.IntPhoneFieldElement = IntPhoneFieldElement;
6066
6082
 
6067
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/MakeRequest":65,"../../framework/custom-element.decorator":77,"./Flags":28,"./Flags2x":29,"intl-tel-input":7}],31:[function(require,module,exports){
6083
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Utilities/MakeRequest":66,"../../framework/custom-element.decorator":79,"./Flags":28,"./Flags2x":29,"intl-tel-input":7}],31:[function(require,module,exports){
6068
6084
  "use strict";
6069
6085
  var __extends = (this && this.__extends) || (function () {
6070
6086
  var extendStatics = function (d, b) {
@@ -6119,6 +6135,7 @@ var NumericFieldElement = /** @class */ (function (_super) {
6119
6135
  });
6120
6136
  NumericFieldElement.prototype.connectedCallback = function () {
6121
6137
  _super.prototype.connectedCallback.call(this);
6138
+ _super.prototype.addLabel.call(this, this.number);
6122
6139
  };
6123
6140
  NumericFieldElement.prototype.initChildInputs = function () {
6124
6141
  this.number = _super.prototype.getChildInput.call(this, '#numeric-field');
@@ -6157,8 +6174,8 @@ var NumericFieldElement = /** @class */ (function (_super) {
6157
6174
  NumericFieldElement = __decorate([
6158
6175
  (0, custom_element_decorator_1.default)({
6159
6176
  selector: 'numeric-element',
6160
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"number\" id=\"numeric-field\" step=\"any\" />\n\t\t\t</div>",
6161
- 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: 0.125rem;\n resize: none;\n }\n ",
6177
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"number\" id=\"numeric-field\" step=\"any\" />\n\t\t\t</div>\n\t\t</div>",
6178
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n\t\tinput{\n box-sizing: border-box;\n width: 100% !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6162
6179
  useShadow: true,
6163
6180
  })
6164
6181
  ], NumericFieldElement);
@@ -6166,7 +6183,7 @@ var NumericFieldElement = /** @class */ (function (_super) {
6166
6183
  }(CustomInputElement_1.CustomInputElement));
6167
6184
  exports.NumericFieldElement = NumericFieldElement;
6168
6185
 
6169
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],32:[function(require,module,exports){
6186
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79}],32:[function(require,module,exports){
6170
6187
  "use strict";
6171
6188
  var __extends = (this && this.__extends) || (function () {
6172
6189
  var extendStatics = function (d, b) {
@@ -6229,6 +6246,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6229
6246
  });
6230
6247
  RadioButtonGroupElement.prototype.connectedCallback = function () {
6231
6248
  _super.prototype.connectedCallback.call(this);
6249
+ var firstRadioButton = _super.prototype.getChildElement.call(this, 'input[type="radio"]');
6250
+ _super.prototype.addLabel.call(this, firstRadioButton);
6232
6251
  };
6233
6252
  RadioButtonGroupElement.prototype.initChildInputs = function () {
6234
6253
  var _this = this;
@@ -6268,8 +6287,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6268
6287
  RadioButtonGroupElement = __decorate([
6269
6288
  (0, custom_element_decorator_1.default)({
6270
6289
  selector: 'radio-group-element',
6271
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
6272
- style: "\n\t\t\t:host{\n\t\t\t\twidth:100%;\n\t\t\t}\n\t\t\t.radio-button {\n\t\t\t\twidth: auto;\n\t\t\t\tmargin: auto 0.188rem;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 0.813rem;\n\t\t\t\tmargin-top: 0.25rem;\n\t\t\t}\n\t\t\t.radio-button:first-of-type {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\tinput{\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\twidth: auto !important;\n\t\t\t\tborder: none;\n\t\t\t\tbackground-color: #f1f4ff;\n\t\t\t\tmargin: 0.2rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\tfieldset {\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 0;\n\t\t\t}\n\t\t",
6290
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>\n\t\t</div>",
6291
+ style: "\n\t\t:host{\n\t\t\twidth:100%;\n\t\t}\n\t\t.radio-button {\n\t\t\twidth: auto;\n\t\t\tmargin: auto 0.188rem;\n\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\tfont-size: 0.813rem;\n\t\t\tmargin-top: 0.25rem;\n\t\t}\n\t\t.radio-button:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t\tinput{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: auto !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.2rem;\n\t\t\tresize: none;\n\t\t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\tfieldset {\n\t\t\tborder: none;\n\t\t\tpadding: 0;\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6273
6292
  useShadow: true,
6274
6293
  })
6275
6294
  ], RadioButtonGroupElement);
@@ -6277,7 +6296,153 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6277
6296
  }(CustomInputElement_1.CustomInputElement));
6278
6297
  exports.RadioButtonGroupElement = RadioButtonGroupElement;
6279
6298
 
6280
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/StringUtil":66,"../../framework/custom-element.decorator":77}],33:[function(require,module,exports){
6299
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Utilities/StringUtil":67,"../../framework/custom-element.decorator":79}],33:[function(require,module,exports){
6300
+ "use strict";
6301
+ var __extends = (this && this.__extends) || (function () {
6302
+ var extendStatics = function (d, b) {
6303
+ extendStatics = Object.setPrototypeOf ||
6304
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6305
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6306
+ return extendStatics(d, b);
6307
+ };
6308
+ return function (d, b) {
6309
+ if (typeof b !== "function" && b !== null)
6310
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
6311
+ extendStatics(d, b);
6312
+ function __() { this.constructor = d; }
6313
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
6314
+ };
6315
+ })();
6316
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
6317
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6318
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
6319
+ 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;
6320
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6321
+ };
6322
+ Object.defineProperty(exports, "__esModule", { value: true });
6323
+ exports.ResidentIdentificationElement = void 0;
6324
+ var custom_element_decorator_1 = require("../../framework/custom-element.decorator");
6325
+ var CustomInputElement_1 = require("../../framework/CustomInputElement");
6326
+ var CustomEvents_1 = require("../../framework/CustomEvents");
6327
+ var Translator_1 = require("../../framework/Language/Translator");
6328
+ var getAttributeNamesPolyfill_1 = require("../../framework/Polyfills/getAttributeNamesPolyfill");
6329
+ var ResidentIdentification_1 = require("../../framework/Validation/Validators/ResidentIdentification");
6330
+ var ResidentIdentificationElement = /** @class */ (function (_super) {
6331
+ __extends(ResidentIdentificationElement, _super);
6332
+ function ResidentIdentificationElement() {
6333
+ var _this = _super.call(this) || this;
6334
+ _this.validator = new ResidentIdentification_1.default();
6335
+ (0, getAttributeNamesPolyfill_1.default)();
6336
+ return _this;
6337
+ }
6338
+ Object.defineProperty(ResidentIdentificationElement.prototype, "value", {
6339
+ get: function () {
6340
+ var company = this.company.value || '';
6341
+ var property = this.property.value ? "-" + this.property.value : '';
6342
+ var tenancy = this.tenancy.value ? "-" + this.tenancy.value : '';
6343
+ var tenant = this.tenant.value ? "-" + this.tenant.value : '';
6344
+ return "" + company + property + tenancy + tenant;
6345
+ },
6346
+ set: function (value) {
6347
+ var values = value.split(',');
6348
+ this.company.value = values[0];
6349
+ this.property.value = values[1];
6350
+ this.tenancy.value = values[2];
6351
+ this.tenant.value = values[3];
6352
+ },
6353
+ enumerable: false,
6354
+ configurable: true
6355
+ });
6356
+ Object.defineProperty(ResidentIdentificationElement.prototype, "valid", {
6357
+ get: function () {
6358
+ return this.validator.isSatisfiedBy(this.value, !this.required);
6359
+ },
6360
+ enumerable: false,
6361
+ configurable: true
6362
+ });
6363
+ ResidentIdentificationElement.prototype.connectedCallback = function () {
6364
+ _super.prototype.connectedCallback.call(this);
6365
+ _super.prototype.addLabel.call(this, this.company);
6366
+ };
6367
+ ResidentIdentificationElement.prototype.componentDidMount = function () {
6368
+ var _this = this;
6369
+ this.initChildInputs();
6370
+ this.getAttributeNames().forEach(function (attributeName) {
6371
+ var attributeValue = _this.getAttribute(attributeName);
6372
+ _this.attributeChanged(attributeName, null, attributeValue);
6373
+ });
6374
+ };
6375
+ ResidentIdentificationElement.prototype.initChildInputs = function () {
6376
+ this.company = _super.prototype.getChildInput.call(this, '#company');
6377
+ this.property = _super.prototype.getChildInput.call(this, '#property');
6378
+ this.tenancy = _super.prototype.getChildInput.call(this, '#tenancy');
6379
+ this.tenant = _super.prototype.getChildInput.call(this, '#tenant');
6380
+ this.company.addEventListener('change', this.change.bind(this));
6381
+ this.property.addEventListener('change', this.change.bind(this));
6382
+ this.tenancy.addEventListener('change', this.change.bind(this));
6383
+ this.tenant.addEventListener('change', this.change.bind(this));
6384
+ if (this.required) {
6385
+ this.company.setAttribute('required', 'required');
6386
+ this.property.setAttribute('required', 'required');
6387
+ this.tenancy.setAttribute('required', 'required');
6388
+ this.tenant.setAttribute('required', 'required');
6389
+ }
6390
+ if (this.label) {
6391
+ var wrapper = this.shadowRoot.querySelector('.field-wrapper');
6392
+ if (wrapper) {
6393
+ wrapper.setAttribute('aria-label', this.label);
6394
+ }
6395
+ }
6396
+ };
6397
+ // events
6398
+ ResidentIdentificationElement.prototype.change = function ($event) {
6399
+ this.touched = true;
6400
+ this.onChange.emit(new CustomEvents_1.CustomElementEventArgs(this.value, 'change'));
6401
+ };
6402
+ ResidentIdentificationElement.prototype.validate = function () {
6403
+ this.valid;
6404
+ this.onValidate.emit(new CustomEvents_1.CustomElementEventArgs(this.value, 'validate'));
6405
+ };
6406
+ ResidentIdentificationElement.prototype.changeLanguage = function (language) {
6407
+ if (!this.company || !this.property || !this.tenancy || !this.tenant) {
6408
+ return;
6409
+ }
6410
+ this.company.placeholder = Translator_1.default.Translate('ResidentIdentificationElement.Company', language);
6411
+ this.property.placeholder = Translator_1.default.Translate('ResidentIdentificationElement.Property', language);
6412
+ this.tenancy.placeholder = Translator_1.default.Translate('ResidentIdentificationElement.Tenancy', language);
6413
+ this.tenant.placeholder = Translator_1.default.Translate('ResidentIdentificationElement.Tenant', language);
6414
+ };
6415
+ Object.defineProperty(ResidentIdentificationElement, "observedAttributes", {
6416
+ get: function () {
6417
+ return ['language'];
6418
+ },
6419
+ enumerable: false,
6420
+ configurable: true
6421
+ });
6422
+ ResidentIdentificationElement.prototype.attributeChangedCallback = function (name, oldVal, newVal) {
6423
+ this.attributeChanged(name, oldVal, newVal);
6424
+ };
6425
+ ResidentIdentificationElement.prototype.attributeChanged = function (name, oldVal, newVal) {
6426
+ switch (name) {
6427
+ case 'language':
6428
+ this.changeLanguage(newVal);
6429
+ break;
6430
+ }
6431
+ };
6432
+ ResidentIdentificationElement = __decorate([
6433
+ (0, custom_element_decorator_1.default)({
6434
+ selector: 'resident-identification-element',
6435
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"field-wrapper\">\n\t\t\t\t<input class='field-part' id='company' type=\"text\" placeholder='Company'/>\n\t\t\t\t<input class='field-part' id='property' type=\"text\" placeholder='Property'/>\n\t\t\t\t<input class='field-part' id='tenancy' type=\"text\" placeholder='Tenancy'/>\n\t\t\t\t<input class='field-part' id='tenant' type=\"text\" placeholder='Tenant'/>\n\t\t\t</div>\n\t\t</div>",
6436
+ style: "\n\t\t.field-wrapper{\n\t\t\tdisplay: flex;\n\t\t\tflex-wrap: nowrap;\n\t\t}\n\t\tinput.field-part{\n\t\t\tbox-sizing: border-box;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t\twidth:33% !important;\n\t\t}\n\t\tinput.field-part::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6437
+ templatePath: './html.html',
6438
+ useShadow: true,
6439
+ })
6440
+ ], ResidentIdentificationElement);
6441
+ return ResidentIdentificationElement;
6442
+ }(CustomInputElement_1.CustomInputElement));
6443
+ exports.ResidentIdentificationElement = ResidentIdentificationElement;
6444
+
6445
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Language/Translator":61,"../../framework/Polyfills/getAttributeNamesPolyfill":62,"../../framework/Validation/Validators/ResidentIdentification":76,"../../framework/custom-element.decorator":79}],34:[function(require,module,exports){
6281
6446
  "use strict";
6282
6447
  var __extends = (this && this.__extends) || (function () {
6283
6448
  var extendStatics = function (d, b) {
@@ -6332,6 +6497,7 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6332
6497
  });
6333
6498
  SECompanyRegistrationElement.prototype.connectedCallback = function () {
6334
6499
  _super.prototype.connectedCallback.call(this);
6500
+ _super.prototype.addLabel.call(this, this.text);
6335
6501
  };
6336
6502
  SECompanyRegistrationElement.prototype.initChildInputs = function () {
6337
6503
  this.text = _super.prototype.getChildInput.call(this, '#se-company-registration-field');
@@ -6358,8 +6524,8 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6358
6524
  SECompanyRegistrationElement = __decorate([
6359
6525
  (0, custom_element_decorator_1.default)({
6360
6526
  selector: 'se-company-registration-element',
6361
- template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-company-registration-field' placeholder='SSSSSSSSSS'/>\n </div>",
6362
- 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: 0.125rem;\n resize: none;\n }",
6527
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='se-company-registration-field' placeholder='SSSSSSSSSS'/>\n\t\t\t</div>\t\n </div>",
6528
+ 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: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n }\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6363
6529
  useShadow: true,
6364
6530
  })
6365
6531
  ], SECompanyRegistrationElement);
@@ -6367,7 +6533,7 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6367
6533
  }(CustomInputElement_1.CustomInputElement));
6368
6534
  exports.SECompanyRegistrationElement = SECompanyRegistrationElement;
6369
6535
 
6370
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/SECompanyRegistration":75,"../../framework/custom-element.decorator":77}],34:[function(require,module,exports){
6536
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Validation/Validators/SECompanyRegistration":77,"../../framework/custom-element.decorator":79}],35:[function(require,module,exports){
6371
6537
  "use strict";
6372
6538
  var __extends = (this && this.__extends) || (function () {
6373
6539
  var extendStatics = function (d, b) {
@@ -6422,6 +6588,7 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6422
6588
  });
6423
6589
  SEPersonalNumberElement.prototype.connectedCallback = function () {
6424
6590
  _super.prototype.connectedCallback.call(this);
6591
+ _super.prototype.addLabel.call(this, this.text);
6425
6592
  };
6426
6593
  SEPersonalNumberElement.prototype.initChildInputs = function () {
6427
6594
  this.text = _super.prototype.getChildInput.call(this, '#se-personal-number-field');
@@ -6448,8 +6615,8 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6448
6615
  SEPersonalNumberElement = __decorate([
6449
6616
  (0, custom_element_decorator_1.default)({
6450
6617
  selector: 'se-personal-number-element',
6451
- template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-personal-number-field' placeholder='(YY)YYMMDD-SSSS'/>\n </div>",
6452
- 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: 0.125rem;\n resize: none;\n }",
6618
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='se-personal-number-field' placeholder='(YY)YYMMDD-SSSS'/>\n\t\t\t</div>\n </div>",
6619
+ 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: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n }\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6453
6620
  useShadow: true,
6454
6621
  })
6455
6622
  ], SEPersonalNumberElement);
@@ -6457,7 +6624,7 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6457
6624
  }(CustomInputElement_1.CustomInputElement));
6458
6625
  exports.SEPersonalNumberElement = SEPersonalNumberElement;
6459
6626
 
6460
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Validation/Validators/SEPersonalNumber":76,"../../framework/custom-element.decorator":77}],35:[function(require,module,exports){
6627
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Validation/Validators/SEPersonalNumber":78,"../../framework/custom-element.decorator":79}],36:[function(require,module,exports){
6461
6628
  "use strict";
6462
6629
  var __extends = (this && this.__extends) || (function () {
6463
6630
  var extendStatics = function (d, b) {
@@ -6509,6 +6676,7 @@ var TextAreaElement = /** @class */ (function (_super) {
6509
6676
  });
6510
6677
  TextAreaElement.prototype.connectedCallback = function () {
6511
6678
  _super.prototype.connectedCallback.call(this);
6679
+ _super.prototype.addLabel.call(this, this.text);
6512
6680
  };
6513
6681
  TextAreaElement.prototype.initChildInputs = function () {
6514
6682
  this.text = _super.prototype.getChildInput.call(this, '#text-area-field');
@@ -6538,8 +6706,8 @@ var TextAreaElement = /** @class */ (function (_super) {
6538
6706
  TextAreaElement = __decorate([
6539
6707
  (0, custom_element_decorator_1.default)({
6540
6708
  selector: 'text-area-element',
6541
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<textarea rows=5 id='text-area-field'></textarea>\n\t\t\t</div>",
6542
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n textarea{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 0.125rem;\n resize: none;\n }\n ",
6709
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<textarea rows=5 id='text-area-field'></textarea>\n\t\t\t</div>\n\t\t</div>",
6710
+ style: "\n \t:host{\n width:100%;\n \t}\n \t.wrapper{\n display:flex;\n \t}\n \ttextarea{\n box-sizing: border-box;\n width: 100% !important;\n border: .1rem solid #27282D;\n border-radius: .25rem;\n margin: 0.125rem;\n resize: none;\n \t}\n\t\ttextarea::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6543
6711
  useShadow: true,
6544
6712
  })
6545
6713
  ], TextAreaElement);
@@ -6547,7 +6715,7 @@ var TextAreaElement = /** @class */ (function (_super) {
6547
6715
  }(CustomInputElement_1.CustomInputElement));
6548
6716
  exports.TextAreaElement = TextAreaElement;
6549
6717
 
6550
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],36:[function(require,module,exports){
6718
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79}],37:[function(require,module,exports){
6551
6719
  "use strict";
6552
6720
  var __extends = (this && this.__extends) || (function () {
6553
6721
  var extendStatics = function (d, b) {
@@ -6599,6 +6767,7 @@ var TextFieldElement = /** @class */ (function (_super) {
6599
6767
  });
6600
6768
  TextFieldElement.prototype.connectedCallback = function () {
6601
6769
  _super.prototype.connectedCallback.call(this);
6770
+ _super.prototype.addLabel.call(this, this.text);
6602
6771
  };
6603
6772
  TextFieldElement.prototype.initChildInputs = function () {
6604
6773
  this.text = _super.prototype.getChildInput.call(this, '#text-field');
@@ -6628,8 +6797,8 @@ var TextFieldElement = /** @class */ (function (_super) {
6628
6797
  TextFieldElement = __decorate([
6629
6798
  (0, custom_element_decorator_1.default)({
6630
6799
  selector: 'text-element',
6631
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='text-field' />\n\t\t\t</div>",
6632
- style: "\n\t:host{\n\t\t\twidth:100%;\n\t}\n\t.wrapper{\n\t\t\tdisplay:flex;\n\t}\n\tinput{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: none;\n\t\t\tbackground-color: #f1f4ff;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t}\n\t\t",
6800
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='text-field' />\n\t\t\t</div>\n\t\t</div>\n\t",
6801
+ style: "\n\t\t:host{\n\t\t\twidth:100%;\n\t\t}\n\t\t.wrapper{\n\t\t\tdisplay:flex;\n\t\t}\n\t\tinput{\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\tinput::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6633
6802
  useShadow: true,
6634
6803
  })
6635
6804
  ], TextFieldElement);
@@ -6637,7 +6806,7 @@ var TextFieldElement = /** @class */ (function (_super) {
6637
6806
  }(CustomInputElement_1.CustomInputElement));
6638
6807
  exports.TextFieldElement = TextFieldElement;
6639
6808
 
6640
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/custom-element.decorator":77}],37:[function(require,module,exports){
6809
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/custom-element.decorator":79}],38:[function(require,module,exports){
6641
6810
  "use strict";
6642
6811
  var __extends = (this && this.__extends) || (function () {
6643
6812
  var extendStatics = function (d, b) {
@@ -6717,6 +6886,7 @@ var TypeAheadElement = /** @class */ (function (_super) {
6717
6886
  });
6718
6887
  TypeAheadElement.prototype.connectedCallback = function () {
6719
6888
  _super.prototype.connectedCallback.call(this);
6889
+ _super.prototype.addLabel.call(this, this.textInputElement);
6720
6890
  };
6721
6891
  TypeAheadElement.prototype.initChildInputs = function () {
6722
6892
  var _this = this;
@@ -6865,8 +7035,8 @@ var TypeAheadElement = /** @class */ (function (_super) {
6865
7035
  TypeAheadElement = __decorate([
6866
7036
  (0, custom_element_decorator_1.default)({
6867
7037
  selector: 'type-ahead-element',
6868
- template: "\n\t\t<div class=\"wrapper\" role=\"combobox\" aria-expanded=\"false\" aria-owns=\"options-list\" aria-haspopup=\"listbox\">\n\t\t\t<input type=\"text\" id=\"text-input\" aria-autocomplete=\"list\" aria-controls=\"options-list\" aria-activedescendant=\"\" role=\"textbox\">\n\t\t\t<div id=\"description\" aria-live=\"polite\"></div>\n\t\t\t<div id=\"options-list\" role=\"listbox\" class=\"options-list\" hidden>\n\t\t\t\t<!-- Options will be dynamically added here -->\n\t\t\t</div>\n\t\t</div>",
6869
- style: "\n\t\t:host {\n\t\t\twidth:100%;\n\t\t}\n\t\t.wrapper {\n\t\t\tposition: relative;\n\t\t\tdisplay:flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t}\n\t\t#text-input {\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: none;\n\t\t\tbackground-color: #f1f4ff;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\t.wrapper #description {\n\t\t\twidth: 100%;\n\t\t\tpadding: 0 0.125rem;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.options-list {\n\t\t\tposition: absolute;\n\t\t\tborder: 0.063rem solid #E8E8E8;\n\t\t\tborder-bottom: none;\n\t\t\tborder-top: none;\n\t\t\tz-index: 3;\n\t\t\ttop: 100%;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tmax-height: 12.5rem;\n\t\t\toverflow-y: auto;\n\t\t}\n\t\t.options-list-item {\n\t\t\tpadding: 0.625rem;\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: #FFFFFF;\n\t\t\tborder-bottom: 0.063rem solid #E8E8E8;\n\t\t}\n\t\t.options-list-item:hover {\n\t\t\tbackground-color: #E8E8E8;\n\t\t}\n\t\t.options-list-item.active {\n\t\t\tbackground-color: #003E64 !important;\n\t\t\tcolor: #FFFFFF;\n\t\t}\n\t\t.options-list-item-title {\n\t\t\tfont-size: 1rem;\n\t\t}\n\t\t.options-list-item-description {\n\t\t\tfont-size: 0.625rem;\n\t\t}\n\t",
7038
+ template: "\n\t\t<div class=\"field-label\">\n\t\t</div>\n\t\t<div class=\"field-input\">\n\t\t\t<div class=\"wrapper\" role=\"combobox\" aria-expanded=\"false\" aria-owns=\"options-list\" aria-haspopup=\"listbox\">\n\t\t\t\t<input type=\"text\" class=\"text-input\" id=\"text-input\" aria-autocomplete=\"list\" aria-controls=\"options-list\" aria-activedescendant=\"\" role=\"textbox\">\n\t\t\t\t<div id=\"description\" aria-live=\"polite\"></div>\n\t\t\t\t<div id=\"options-list\" role=\"listbox\" class=\"options-list\" hidden>\n\t\t\t\t\t<!-- Options will be dynamically added here -->\n\t\t\t\t</div>\n\t\t\t</div>\t\n\t\t</div>",
7039
+ style: "\n\t\t:host {\n\t\t\twidth:100%;\n\t\t}\n\t\t.wrapper {\n\t\t\tposition: relative;\n\t\t\tdisplay:flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t}\n\t\t.text-input {\n\t\t\tbox-sizing: border-box;\n\t\t\twidth: 100% !important;\n\t\t\tborder: .1rem solid #27282D;\n\t\t\tborder-radius: .25rem;\n\t\t\tmargin: 0.125rem;\n\t\t\tresize: none;\n\t\t}\n\t\t.text-input::placeholder {\n\t\t\tcolor: rgb(117, 117, 117);\n\t\t}\n\t\t.wrapper #description {\n\t\t\twidth: 100%;\n\t\t\tpadding: 0 0.125rem;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.options-list {\n\t\t\tposition: absolute;\n\t\t\tborder: 0.063rem solid #E8E8E8;\n\t\t\tborder-bottom: none;\n\t\t\tborder-top: none;\n\t\t\tz-index: 3;\n\t\t\ttop: 100%;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tmax-height: 12.5rem;\n\t\t\toverflow-y: auto;\n\t\t}\n\t\t.options-list-item {\n\t\t\tpadding: 0.625rem;\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: #FFFFFF;\n\t\t\tborder-bottom: 0.063rem solid #E8E8E8;\n\t\t}\n\t\t.options-list-item:hover {\n\t\t\tbackground-color: #E8E8E8;\n\t\t}\n\t\t.options-list-item.active {\n\t\t\tbackground-color: #003E64 !important;\n\t\t\tcolor: #FFFFFF;\n\t\t}\n\t\t.options-list-item-title {\n\t\t\tfont-size: 1rem;\n\t\t}\n\t\t.options-list-item-description {\n\t\t\tfont-size: 0.625rem;\n\t\t}\n\t\t.field-label {\n\t\t\tcolor: #27282d;\n\t\t\tfont-size: .75rem;\n\t\t\tfont-weight: 600;\n\t\t\tword-wrap: break-word;\n\t\t}\n\t\t.field-input {\n\t\t\tfont-size: 0.813rem;\n\t\t\tmin-height: 1.438rem;\n\t\t}\n\t",
6870
7040
  useShadow: true,
6871
7041
  })
6872
7042
  ], TypeAheadElement);
@@ -6874,7 +7044,7 @@ var TypeAheadElement = /** @class */ (function (_super) {
6874
7044
  }(CustomInputElement_1.CustomInputElement));
6875
7045
  exports.TypeAheadElement = TypeAheadElement;
6876
7046
 
6877
- },{"../../framework/CustomEvents":38,"../../framework/CustomInputElement":39,"../../framework/Utilities/DomUtility":64,"../../framework/custom-element.decorator":77}],38:[function(require,module,exports){
7047
+ },{"../../framework/CustomEvents":39,"../../framework/CustomInputElement":40,"../../framework/Utilities/DomUtility":65,"../../framework/custom-element.decorator":79}],39:[function(require,module,exports){
6878
7048
  "use strict";
6879
7049
  Object.defineProperty(exports, "__esModule", { value: true });
6880
7050
  exports.CustomElementEvent = exports.CustomElementEventArgs = void 0;
@@ -6923,7 +7093,7 @@ var CustomElementEvent = /** @class */ (function () {
6923
7093
  }());
6924
7094
  exports.CustomElementEvent = CustomElementEvent;
6925
7095
 
6926
- },{}],39:[function(require,module,exports){
7096
+ },{}],40:[function(require,module,exports){
6927
7097
  "use strict";
6928
7098
  var __extends = (this && this.__extends) || (function () {
6929
7099
  var extendStatics = function (d, b) {
@@ -7178,6 +7348,23 @@ var CustomInputElement = /** @class */ (function (_super) {
7178
7348
  }
7179
7349
  return element.querySelectorAll(selector);
7180
7350
  };
7351
+ CustomInputElement.prototype.addLabel = function (inputField) {
7352
+ if (this.label) {
7353
+ var randomId = Math.random().toString(36).substring(2, 15);
7354
+ inputField.id = "text-field-" + randomId;
7355
+ var newLabel = document.createElement('label');
7356
+ newLabel.setAttribute('for', inputField.id);
7357
+ newLabel.classList.add('field-label');
7358
+ newLabel.textContent = this.label + ": ";
7359
+ var fieldLabel = this.shadowRoot.querySelector('.field-label');
7360
+ if (fieldLabel) {
7361
+ fieldLabel.appendChild(newLabel);
7362
+ }
7363
+ if (this.required) {
7364
+ newLabel.innerHTML += '<span style="color: #e00040">*</span>';
7365
+ }
7366
+ }
7367
+ };
7181
7368
  CustomInputElement.prototype.RegisterDependentOn = function (name, initialValue) {
7182
7369
  if (initialValue === void 0) { initialValue = false; }
7183
7370
  this.dependentOnList[name] = initialValue;
@@ -7193,7 +7380,7 @@ var CustomInputElement = /** @class */ (function (_super) {
7193
7380
  }(HTMLElement));
7194
7381
  exports.CustomInputElement = CustomInputElement;
7195
7382
 
7196
- },{"./CustomEvents":38,"./Utilities/ArrayUtil":62,"./Utilities/DomUtil":63}],40:[function(require,module,exports){
7383
+ },{"./CustomEvents":39,"./Utilities/ArrayUtil":63,"./Utilities/DomUtil":64}],41:[function(require,module,exports){
7197
7384
  "use strict";
7198
7385
  Object.defineProperty(exports, "__esModule", { value: true });
7199
7386
  var BaseDictionary = /** @class */ (function () {
@@ -7215,7 +7402,7 @@ var BaseDictionary = /** @class */ (function () {
7215
7402
  }());
7216
7403
  exports.default = BaseDictionary;
7217
7404
 
7218
- },{}],41:[function(require,module,exports){
7405
+ },{}],42:[function(require,module,exports){
7219
7406
  "use strict";
7220
7407
  var __extends = (this && this.__extends) || (function () {
7221
7408
  var extendStatics = function (d, b) {
@@ -7248,7 +7435,13 @@ var CzechDictionary = /** @class */ (function (_super) {
7248
7435
  BankElement: {
7249
7436
  Account: "Účet",
7250
7437
  RegistrationNumber: "Registrační číslo"
7251
- }
7438
+ },
7439
+ ResidentIdentificationElement: {
7440
+ Company: "Společnost",
7441
+ Property: "Nemovitost",
7442
+ Tenancy: "Pronájem",
7443
+ Tenant: "nájemce"
7444
+ },
7252
7445
  };
7253
7446
  return _this;
7254
7447
  }
@@ -7256,7 +7449,7 @@ var CzechDictionary = /** @class */ (function (_super) {
7256
7449
  }(BaseDictionary_1.default));
7257
7450
  exports.default = CzechDictionary;
7258
7451
 
7259
- },{"./Base/BaseDictionary":40}],42:[function(require,module,exports){
7452
+ },{"./Base/BaseDictionary":41}],43:[function(require,module,exports){
7260
7453
  "use strict";
7261
7454
  var __extends = (this && this.__extends) || (function () {
7262
7455
  var extendStatics = function (d, b) {
@@ -7289,7 +7482,13 @@ var DanishDictionary = /** @class */ (function (_super) {
7289
7482
  BankElement: {
7290
7483
  Account: "Kontonummer",
7291
7484
  RegistrationNumber: "Registreringsnummer"
7292
- }
7485
+ },
7486
+ ResidentIdentificationElement: {
7487
+ Company: "Virksomhed",
7488
+ Property: "Ejendom",
7489
+ Tenancy: "Lejemål",
7490
+ Tenant: "Lejer"
7491
+ },
7293
7492
  };
7294
7493
  return _this;
7295
7494
  }
@@ -7297,7 +7496,7 @@ var DanishDictionary = /** @class */ (function (_super) {
7297
7496
  }(BaseDictionary_1.default));
7298
7497
  exports.default = DanishDictionary;
7299
7498
 
7300
- },{"./Base/BaseDictionary":40}],43:[function(require,module,exports){
7499
+ },{"./Base/BaseDictionary":41}],44:[function(require,module,exports){
7301
7500
  "use strict";
7302
7501
  var __extends = (this && this.__extends) || (function () {
7303
7502
  var extendStatics = function (d, b) {
@@ -7330,7 +7529,13 @@ var DutchDictionary = /** @class */ (function (_super) {
7330
7529
  BankElement: {
7331
7530
  Account: "Bankrekening",
7332
7531
  RegistrationNumber: "Bankrekening Registratienummer"
7333
- }
7532
+ },
7533
+ ResidentIdentificationElement: {
7534
+ Company: "Bedrijf",
7535
+ Property: "Eigendom",
7536
+ Tenancy: "Huurovereenkomst",
7537
+ Tenant: "Huurder"
7538
+ },
7334
7539
  };
7335
7540
  return _this;
7336
7541
  }
@@ -7338,7 +7543,7 @@ var DutchDictionary = /** @class */ (function (_super) {
7338
7543
  }(BaseDictionary_1.default));
7339
7544
  exports.default = DutchDictionary;
7340
7545
 
7341
- },{"./Base/BaseDictionary":40}],44:[function(require,module,exports){
7546
+ },{"./Base/BaseDictionary":41}],45:[function(require,module,exports){
7342
7547
  "use strict";
7343
7548
  var __extends = (this && this.__extends) || (function () {
7344
7549
  var extendStatics = function (d, b) {
@@ -7371,7 +7576,13 @@ var EnglishDictionary = /** @class */ (function (_super) {
7371
7576
  BankElement: {
7372
7577
  Account: "Bank Account",
7373
7578
  RegistrationNumber: "Bank Account Registration Number"
7374
- }
7579
+ },
7580
+ ResidentIdentificationElement: {
7581
+ Company: "Company",
7582
+ Property: "Property",
7583
+ Tenancy: "Tenancy",
7584
+ Tenant: "Tenant"
7585
+ },
7375
7586
  };
7376
7587
  return _this;
7377
7588
  }
@@ -7379,7 +7590,7 @@ var EnglishDictionary = /** @class */ (function (_super) {
7379
7590
  }(BaseDictionary_1.default));
7380
7591
  exports.default = EnglishDictionary;
7381
7592
 
7382
- },{"./Base/BaseDictionary":40}],45:[function(require,module,exports){
7593
+ },{"./Base/BaseDictionary":41}],46:[function(require,module,exports){
7383
7594
  "use strict";
7384
7595
  var __extends = (this && this.__extends) || (function () {
7385
7596
  var extendStatics = function (d, b) {
@@ -7412,7 +7623,13 @@ var EstonianDictionary = /** @class */ (function (_super) {
7412
7623
  BankElement: {
7413
7624
  Account: "Pangakonto",
7414
7625
  RegistrationNumber: "Pangakonto registreerimisnumber"
7415
- }
7626
+ },
7627
+ ResidentIdentificationElement: {
7628
+ Company: "Ettevõte",
7629
+ Property: "Kinnisvara",
7630
+ Tenancy: "Üürileping",
7631
+ Tenant: "Üürnik"
7632
+ },
7416
7633
  };
7417
7634
  return _this;
7418
7635
  }
@@ -7420,7 +7637,7 @@ var EstonianDictionary = /** @class */ (function (_super) {
7420
7637
  }(BaseDictionary_1.default));
7421
7638
  exports.default = EstonianDictionary;
7422
7639
 
7423
- },{"./Base/BaseDictionary":40}],46:[function(require,module,exports){
7640
+ },{"./Base/BaseDictionary":41}],47:[function(require,module,exports){
7424
7641
  "use strict";
7425
7642
  var __extends = (this && this.__extends) || (function () {
7426
7643
  var extendStatics = function (d, b) {
@@ -7453,7 +7670,13 @@ var FinnishDictionary = /** @class */ (function (_super) {
7453
7670
  BankElement: {
7454
7671
  Account: "Pankkitili",
7455
7672
  RegistrationNumber: "Pankkitilin rekisteröintinumero"
7456
- }
7673
+ },
7674
+ ResidentIdentificationElement: {
7675
+ Company: "Yritys",
7676
+ Property: "Kiinteistö",
7677
+ Tenancy: "Vuokrasopimus",
7678
+ Tenant: "Vuokralainen"
7679
+ },
7457
7680
  };
7458
7681
  return _this;
7459
7682
  }
@@ -7461,7 +7684,7 @@ var FinnishDictionary = /** @class */ (function (_super) {
7461
7684
  }(BaseDictionary_1.default));
7462
7685
  exports.default = FinnishDictionary;
7463
7686
 
7464
- },{"./Base/BaseDictionary":40}],47:[function(require,module,exports){
7687
+ },{"./Base/BaseDictionary":41}],48:[function(require,module,exports){
7465
7688
  "use strict";
7466
7689
  var __extends = (this && this.__extends) || (function () {
7467
7690
  var extendStatics = function (d, b) {
@@ -7494,7 +7717,13 @@ var FrenchDictionary = /** @class */ (function (_super) {
7494
7717
  BankElement: {
7495
7718
  Account: "Compte bancaire",
7496
7719
  RegistrationNumber: "Numéro d'enregistrement du compte bancaire"
7497
- }
7720
+ },
7721
+ ResidentIdentificationElement: {
7722
+ Company: "Société",
7723
+ Property: "Propriété",
7724
+ Tenancy: "Bail",
7725
+ Tenant: "Locataire"
7726
+ },
7498
7727
  };
7499
7728
  return _this;
7500
7729
  }
@@ -7502,7 +7731,7 @@ var FrenchDictionary = /** @class */ (function (_super) {
7502
7731
  }(BaseDictionary_1.default));
7503
7732
  exports.default = FrenchDictionary;
7504
7733
 
7505
- },{"./Base/BaseDictionary":40}],48:[function(require,module,exports){
7734
+ },{"./Base/BaseDictionary":41}],49:[function(require,module,exports){
7506
7735
  "use strict";
7507
7736
  var __extends = (this && this.__extends) || (function () {
7508
7737
  var extendStatics = function (d, b) {
@@ -7535,7 +7764,13 @@ var GermanDictionary = /** @class */ (function (_super) {
7535
7764
  BankElement: {
7536
7765
  Account: "Bankkonto",
7537
7766
  RegistrationNumber: "Bankkontoregistrierungsnummer"
7538
- }
7767
+ },
7768
+ ResidentIdentificationElement: {
7769
+ Company: "Unternehmen",
7770
+ Property: "Eigentum",
7771
+ Tenancy: "Mietvertrag",
7772
+ Tenant: "Mieter"
7773
+ },
7539
7774
  };
7540
7775
  return _this;
7541
7776
  }
@@ -7543,7 +7778,7 @@ var GermanDictionary = /** @class */ (function (_super) {
7543
7778
  }(BaseDictionary_1.default));
7544
7779
  exports.default = GermanDictionary;
7545
7780
 
7546
- },{"./Base/BaseDictionary":40}],49:[function(require,module,exports){
7781
+ },{"./Base/BaseDictionary":41}],50:[function(require,module,exports){
7547
7782
  "use strict";
7548
7783
  var __extends = (this && this.__extends) || (function () {
7549
7784
  var extendStatics = function (d, b) {
@@ -7576,7 +7811,13 @@ var GreekDictionary = /** @class */ (function (_super) {
7576
7811
  BankElement: {
7577
7812
  Account: "Τραπεζικός λογαριασμός",
7578
7813
  RegistrationNumber: "Αριθμός εγγραφής τραπεζικού λογαριασμού"
7579
- }
7814
+ },
7815
+ ResidentIdentificationElement: {
7816
+ Company: "Εταιρεία",
7817
+ Property: "Ακίνητο",
7818
+ Tenancy: "Μίσθωση",
7819
+ Tenant: "Ενοικιαστής"
7820
+ },
7580
7821
  };
7581
7822
  return _this;
7582
7823
  }
@@ -7584,7 +7825,7 @@ var GreekDictionary = /** @class */ (function (_super) {
7584
7825
  }(BaseDictionary_1.default));
7585
7826
  exports.default = GreekDictionary;
7586
7827
 
7587
- },{"./Base/BaseDictionary":40}],50:[function(require,module,exports){
7828
+ },{"./Base/BaseDictionary":41}],51:[function(require,module,exports){
7588
7829
  "use strict";
7589
7830
  var __extends = (this && this.__extends) || (function () {
7590
7831
  var extendStatics = function (d, b) {
@@ -7617,7 +7858,13 @@ var HungarianDictionary = /** @class */ (function (_super) {
7617
7858
  BankElement: {
7618
7859
  Account: "Banki számla",
7619
7860
  RegistrationNumber: "Banki számla regisztrációs száma"
7620
- }
7861
+ },
7862
+ ResidentIdentificationElement: {
7863
+ Company: "Cég",
7864
+ Property: "Ingatlan",
7865
+ Tenancy: "Bérlet",
7866
+ Tenant: "Bérlő"
7867
+ },
7621
7868
  };
7622
7869
  return _this;
7623
7870
  }
@@ -7625,7 +7872,7 @@ var HungarianDictionary = /** @class */ (function (_super) {
7625
7872
  }(BaseDictionary_1.default));
7626
7873
  exports.default = HungarianDictionary;
7627
7874
 
7628
- },{"./Base/BaseDictionary":40}],51:[function(require,module,exports){
7875
+ },{"./Base/BaseDictionary":41}],52:[function(require,module,exports){
7629
7876
  "use strict";
7630
7877
  var __extends = (this && this.__extends) || (function () {
7631
7878
  var extendStatics = function (d, b) {
@@ -7658,7 +7905,13 @@ var IcelandicDictionary = /** @class */ (function (_super) {
7658
7905
  BankElement: {
7659
7906
  Account: "Bankareikningur",
7660
7907
  RegistrationNumber: "Númer skráningar á bankareikningi"
7661
- }
7908
+ },
7909
+ ResidentIdentificationElement: {
7910
+ Company: "Fyrirtæki",
7911
+ Property: "Eign",
7912
+ Tenancy: "Leigusamningur",
7913
+ Tenant: "Leigjandi"
7914
+ },
7662
7915
  };
7663
7916
  return _this;
7664
7917
  }
@@ -7666,7 +7919,7 @@ var IcelandicDictionary = /** @class */ (function (_super) {
7666
7919
  }(BaseDictionary_1.default));
7667
7920
  exports.default = IcelandicDictionary;
7668
7921
 
7669
- },{"./Base/BaseDictionary":40}],52:[function(require,module,exports){
7922
+ },{"./Base/BaseDictionary":41}],53:[function(require,module,exports){
7670
7923
  "use strict";
7671
7924
  var __extends = (this && this.__extends) || (function () {
7672
7925
  var extendStatics = function (d, b) {
@@ -7699,7 +7952,13 @@ var ItalianDictionary = /** @class */ (function (_super) {
7699
7952
  BankElement: {
7700
7953
  Account: "conto bancario",
7701
7954
  RegistrationNumber: "Numero di registrazione del conto bancario"
7702
- }
7955
+ },
7956
+ ResidentIdentificationElement: {
7957
+ Company: "Azienda",
7958
+ Property: "Proprietà",
7959
+ Tenancy: "Contratto di locazione",
7960
+ Tenant: "Inquilino"
7961
+ },
7703
7962
  };
7704
7963
  return _this;
7705
7964
  }
@@ -7707,7 +7966,7 @@ var ItalianDictionary = /** @class */ (function (_super) {
7707
7966
  }(BaseDictionary_1.default));
7708
7967
  exports.default = ItalianDictionary;
7709
7968
 
7710
- },{"./Base/BaseDictionary":40}],53:[function(require,module,exports){
7969
+ },{"./Base/BaseDictionary":41}],54:[function(require,module,exports){
7711
7970
  "use strict";
7712
7971
  var __extends = (this && this.__extends) || (function () {
7713
7972
  var extendStatics = function (d, b) {
@@ -7740,7 +7999,13 @@ var LatvianDictionary = /** @class */ (function (_super) {
7740
7999
  BankElement: {
7741
8000
  Account: "Bankas konts",
7742
8001
  RegistrationNumber: "Bankas konta reģistrācijas numurs"
7743
- }
8002
+ },
8003
+ ResidentIdentificationElement: {
8004
+ Company: "Uzņēmums",
8005
+ Property: "Īpašums",
8006
+ Tenancy: "Nomas līgums",
8007
+ Tenant: "Nomnieks"
8008
+ },
7744
8009
  };
7745
8010
  return _this;
7746
8011
  }
@@ -7748,7 +8013,7 @@ var LatvianDictionary = /** @class */ (function (_super) {
7748
8013
  }(BaseDictionary_1.default));
7749
8014
  exports.default = LatvianDictionary;
7750
8015
 
7751
- },{"./Base/BaseDictionary":40}],54:[function(require,module,exports){
8016
+ },{"./Base/BaseDictionary":41}],55:[function(require,module,exports){
7752
8017
  "use strict";
7753
8018
  var __extends = (this && this.__extends) || (function () {
7754
8019
  var extendStatics = function (d, b) {
@@ -7781,7 +8046,13 @@ var LituanianDictionary = /** @class */ (function (_super) {
7781
8046
  BankElement: {
7782
8047
  Account: "Banko sąskaita",
7783
8048
  RegistrationNumber: "Banko sąskaitos registracijos numeris"
7784
- }
8049
+ },
8050
+ ResidentIdentificationElement: {
8051
+ Company: "Įmonė",
8052
+ Property: "Nuosavybė",
8053
+ Tenancy: "Nuomos sutartis",
8054
+ Tenant: "Nuomininkas"
8055
+ },
7785
8056
  };
7786
8057
  return _this;
7787
8058
  }
@@ -7789,7 +8060,7 @@ var LituanianDictionary = /** @class */ (function (_super) {
7789
8060
  }(BaseDictionary_1.default));
7790
8061
  exports.default = LituanianDictionary;
7791
8062
 
7792
- },{"./Base/BaseDictionary":40}],55:[function(require,module,exports){
8063
+ },{"./Base/BaseDictionary":41}],56:[function(require,module,exports){
7793
8064
  "use strict";
7794
8065
  var __extends = (this && this.__extends) || (function () {
7795
8066
  var extendStatics = function (d, b) {
@@ -7822,7 +8093,13 @@ var NorwegianDictionary = /** @class */ (function (_super) {
7822
8093
  BankElement: {
7823
8094
  Account: "Bankkonto",
7824
8095
  RegistrationNumber: "Registreringsnummer for bankkonto"
7825
- }
8096
+ },
8097
+ ResidentIdentificationElement: {
8098
+ Company: "Selskap",
8099
+ Property: "Eiendom",
8100
+ Tenancy: "Leieavtale",
8101
+ Tenant: "Leietaker"
8102
+ },
7826
8103
  };
7827
8104
  return _this;
7828
8105
  }
@@ -7830,7 +8107,7 @@ var NorwegianDictionary = /** @class */ (function (_super) {
7830
8107
  }(BaseDictionary_1.default));
7831
8108
  exports.default = NorwegianDictionary;
7832
8109
 
7833
- },{"./Base/BaseDictionary":40}],56:[function(require,module,exports){
8110
+ },{"./Base/BaseDictionary":41}],57:[function(require,module,exports){
7834
8111
  "use strict";
7835
8112
  var __extends = (this && this.__extends) || (function () {
7836
8113
  var extendStatics = function (d, b) {
@@ -7863,7 +8140,13 @@ var PolishDictionary = /** @class */ (function (_super) {
7863
8140
  BankElement: {
7864
8141
  Account: "Konto bankowe",
7865
8142
  RegistrationNumber: "Numer rejestracyjny konta bankowego"
7866
- }
8143
+ },
8144
+ ResidentIdentificationElement: {
8145
+ Company: "Firma",
8146
+ Property: "Nieruchomość",
8147
+ Tenancy: "Umowa najmu",
8148
+ Tenant: "Najemca"
8149
+ },
7867
8150
  };
7868
8151
  return _this;
7869
8152
  }
@@ -7871,7 +8154,7 @@ var PolishDictionary = /** @class */ (function (_super) {
7871
8154
  }(BaseDictionary_1.default));
7872
8155
  exports.default = PolishDictionary;
7873
8156
 
7874
- },{"./Base/BaseDictionary":40}],57:[function(require,module,exports){
8157
+ },{"./Base/BaseDictionary":41}],58:[function(require,module,exports){
7875
8158
  "use strict";
7876
8159
  var __extends = (this && this.__extends) || (function () {
7877
8160
  var extendStatics = function (d, b) {
@@ -7904,7 +8187,13 @@ var PortugueseDictionary = /** @class */ (function (_super) {
7904
8187
  BankElement: {
7905
8188
  Account: "Conta bancária",
7906
8189
  RegistrationNumber: "Número de registro da conta bancária"
7907
- }
8190
+ },
8191
+ ResidentIdentificationElement: {
8192
+ Company: "Empresa",
8193
+ Property: "Propriedade",
8194
+ Tenancy: "Contrato de locação",
8195
+ Tenant: "Inquilino"
8196
+ },
7908
8197
  };
7909
8198
  return _this;
7910
8199
  }
@@ -7912,7 +8201,7 @@ var PortugueseDictionary = /** @class */ (function (_super) {
7912
8201
  }(BaseDictionary_1.default));
7913
8202
  exports.default = PortugueseDictionary;
7914
8203
 
7915
- },{"./Base/BaseDictionary":40}],58:[function(require,module,exports){
8204
+ },{"./Base/BaseDictionary":41}],59:[function(require,module,exports){
7916
8205
  "use strict";
7917
8206
  var __extends = (this && this.__extends) || (function () {
7918
8207
  var extendStatics = function (d, b) {
@@ -7945,7 +8234,13 @@ var SpanishDictionary = /** @class */ (function (_super) {
7945
8234
  BankElement: {
7946
8235
  Account: "Cuenta bancaria",
7947
8236
  RegistrationNumber: "Número de registro de cuenta bancaria"
7948
- }
8237
+ },
8238
+ ResidentIdentificationElement: {
8239
+ Company: "Empresa",
8240
+ Property: "Propiedad",
8241
+ Tenancy: "Arrendamiento",
8242
+ Tenant: "Inquilino"
8243
+ },
7949
8244
  };
7950
8245
  return _this;
7951
8246
  }
@@ -7953,7 +8248,7 @@ var SpanishDictionary = /** @class */ (function (_super) {
7953
8248
  }(BaseDictionary_1.default));
7954
8249
  exports.default = SpanishDictionary;
7955
8250
 
7956
- },{"./Base/BaseDictionary":40}],59:[function(require,module,exports){
8251
+ },{"./Base/BaseDictionary":41}],60:[function(require,module,exports){
7957
8252
  "use strict";
7958
8253
  var __extends = (this && this.__extends) || (function () {
7959
8254
  var extendStatics = function (d, b) {
@@ -7986,7 +8281,13 @@ var SwedishDictionary = /** @class */ (function (_super) {
7986
8281
  BankElement: {
7987
8282
  Account: "Bankkonto",
7988
8283
  RegistrationNumber: "Bankkontoregistreringsnummer"
7989
- }
8284
+ },
8285
+ ResidentIdentificationElement: {
8286
+ Company: "Företag",
8287
+ Property: "Fastighet",
8288
+ Tenancy: "Hyresavtal",
8289
+ Tenant: "Hyresgäst"
8290
+ },
7990
8291
  };
7991
8292
  return _this;
7992
8293
  }
@@ -7994,7 +8295,7 @@ var SwedishDictionary = /** @class */ (function (_super) {
7994
8295
  }(BaseDictionary_1.default));
7995
8296
  exports.default = SwedishDictionary;
7996
8297
 
7997
- },{"./Base/BaseDictionary":40}],60:[function(require,module,exports){
8298
+ },{"./Base/BaseDictionary":41}],61:[function(require,module,exports){
7998
8299
  "use strict";
7999
8300
  Object.defineProperty(exports, "__esModule", { value: true });
8000
8301
  var DanishDictionary_1 = require("./Languages/DanishDictionary");
@@ -8053,7 +8354,7 @@ var Translator = /** @class */ (function () {
8053
8354
  }());
8054
8355
  exports.default = Translator;
8055
8356
 
8056
- },{"./Languages/CzechDictionary":41,"./Languages/DanishDictionary":42,"./Languages/DutchDictionary":43,"./Languages/EnglishDictionary":44,"./Languages/EstonianDictionary":45,"./Languages/FinnishDictionary":46,"./Languages/FrenchDictionary":47,"./Languages/GermanDictionary":48,"./Languages/GreekDictionary":49,"./Languages/HungarianDictionary":50,"./Languages/IcelandicDictionary":51,"./Languages/ItalianDictionary":52,"./Languages/LatvianDictionary":53,"./Languages/LituanianDictionary":54,"./Languages/NorwegianDictionary":55,"./Languages/PolishDictionary":56,"./Languages/PortugueseDictionary":57,"./Languages/SpanishDictionary":58,"./Languages/SwedishDictionary":59}],61:[function(require,module,exports){
8357
+ },{"./Languages/CzechDictionary":42,"./Languages/DanishDictionary":43,"./Languages/DutchDictionary":44,"./Languages/EnglishDictionary":45,"./Languages/EstonianDictionary":46,"./Languages/FinnishDictionary":47,"./Languages/FrenchDictionary":48,"./Languages/GermanDictionary":49,"./Languages/GreekDictionary":50,"./Languages/HungarianDictionary":51,"./Languages/IcelandicDictionary":52,"./Languages/ItalianDictionary":53,"./Languages/LatvianDictionary":54,"./Languages/LituanianDictionary":55,"./Languages/NorwegianDictionary":56,"./Languages/PolishDictionary":57,"./Languages/PortugueseDictionary":58,"./Languages/SpanishDictionary":59,"./Languages/SwedishDictionary":60}],62:[function(require,module,exports){
8057
8358
  "use strict";
8058
8359
  Object.defineProperty(exports, "__esModule", { value: true });
8059
8360
  function getAttributeNamesPolyfill() {
@@ -8072,7 +8373,7 @@ function getAttributeNamesPolyfill() {
8072
8373
  exports.default = getAttributeNamesPolyfill;
8073
8374
  ;
8074
8375
 
8075
- },{}],62:[function(require,module,exports){
8376
+ },{}],63:[function(require,module,exports){
8076
8377
  "use strict";
8077
8378
  Object.defineProperty(exports, "__esModule", { value: true });
8078
8379
  var ArrayUtil = /** @class */ (function () {
@@ -8110,7 +8411,7 @@ var ArrayUtil = /** @class */ (function () {
8110
8411
  }());
8111
8412
  exports.default = ArrayUtil;
8112
8413
 
8113
- },{}],63:[function(require,module,exports){
8414
+ },{}],64:[function(require,module,exports){
8114
8415
  "use strict";
8115
8416
  Object.defineProperty(exports, "__esModule", { value: true });
8116
8417
  var ViewportUtil_1 = require("./ViewportUtil");
@@ -8213,7 +8514,7 @@ var DomUtil = /** @class */ (function () {
8213
8514
  }());
8214
8515
  exports.default = DomUtil;
8215
8516
 
8216
- },{"./ViewportUtil":67}],64:[function(require,module,exports){
8517
+ },{"./ViewportUtil":68}],65:[function(require,module,exports){
8217
8518
  "use strict";
8218
8519
  Object.defineProperty(exports, "__esModule", { value: true });
8219
8520
  var DomUtility = /** @class */ (function () {
@@ -8227,7 +8528,7 @@ var DomUtility = /** @class */ (function () {
8227
8528
  }());
8228
8529
  exports.default = DomUtility;
8229
8530
 
8230
- },{}],65:[function(require,module,exports){
8531
+ },{}],66:[function(require,module,exports){
8231
8532
  "use strict";
8232
8533
  Object.defineProperty(exports, "__esModule", { value: true });
8233
8534
  var MakeRequest = /** @class */ (function () {
@@ -8277,7 +8578,7 @@ var MakeRequest = /** @class */ (function () {
8277
8578
  }());
8278
8579
  exports.default = MakeRequest;
8279
8580
 
8280
- },{}],66:[function(require,module,exports){
8581
+ },{}],67:[function(require,module,exports){
8281
8582
  "use strict";
8282
8583
  Object.defineProperty(exports, "__esModule", { value: true });
8283
8584
  exports.StringUtil = void 0;
@@ -8295,7 +8596,7 @@ var StringUtil = /** @class */ (function () {
8295
8596
  }());
8296
8597
  exports.StringUtil = StringUtil;
8297
8598
 
8298
- },{}],67:[function(require,module,exports){
8599
+ },{}],68:[function(require,module,exports){
8299
8600
  "use strict";
8300
8601
  Object.defineProperty(exports, "__esModule", { value: true });
8301
8602
  exports.ViewportUtil = void 0;
@@ -8339,7 +8640,7 @@ var ViewportUtil = /** @class */ (function () {
8339
8640
  }());
8340
8641
  exports.ViewportUtil = ViewportUtil;
8341
8642
 
8342
- },{}],68:[function(require,module,exports){
8643
+ },{}],69:[function(require,module,exports){
8343
8644
  "use strict";
8344
8645
  Object.defineProperty(exports, "__esModule", { value: true });
8345
8646
  var debouncer = function (func, wait, immediate) {
@@ -8392,7 +8693,7 @@ var debouncer = function (func, wait, immediate) {
8392
8693
  };
8393
8694
  exports.default = debouncer;
8394
8695
 
8395
- },{}],69:[function(require,module,exports){
8696
+ },{}],70:[function(require,module,exports){
8396
8697
  "use strict";
8397
8698
  Object.defineProperty(exports, "__esModule", { value: true });
8398
8699
  var BankAccountValidator = /** @class */ (function () {
@@ -8406,7 +8707,7 @@ var BankAccountValidator = /** @class */ (function () {
8406
8707
  }());
8407
8708
  exports.default = BankAccountValidator;
8408
8709
 
8409
- },{}],70:[function(require,module,exports){
8710
+ },{}],71:[function(require,module,exports){
8410
8711
  "use strict";
8411
8712
  Object.defineProperty(exports, "__esModule", { value: true });
8412
8713
  var BankAccountRegistrationNumberValidator = /** @class */ (function () {
@@ -8420,7 +8721,7 @@ var BankAccountRegistrationNumberValidator = /** @class */ (function () {
8420
8721
  }());
8421
8722
  exports.default = BankAccountRegistrationNumberValidator;
8422
8723
 
8423
- },{}],71:[function(require,module,exports){
8724
+ },{}],72:[function(require,module,exports){
8424
8725
  "use strict";
8425
8726
  Object.defineProperty(exports, "__esModule", { value: true });
8426
8727
  var BankIdNorwayValidator = /** @class */ (function () {
@@ -8443,7 +8744,7 @@ var BankIdNorwayValidator = /** @class */ (function () {
8443
8744
  }());
8444
8745
  exports.default = BankIdNorwayValidator;
8445
8746
 
8446
- },{}],72:[function(require,module,exports){
8747
+ },{}],73:[function(require,module,exports){
8447
8748
  "use strict";
8448
8749
  Object.defineProperty(exports, "__esModule", { value: true });
8449
8750
  var BankIdSwedenValidator = /** @class */ (function () {
@@ -8466,7 +8767,7 @@ var BankIdSwedenValidator = /** @class */ (function () {
8466
8767
  }());
8467
8768
  exports.default = BankIdSwedenValidator;
8468
8769
 
8469
- },{}],73:[function(require,module,exports){
8770
+ },{}],74:[function(require,module,exports){
8470
8771
  "use strict";
8471
8772
  Object.defineProperty(exports, "__esModule", { value: true });
8472
8773
  var CprValidator = /** @class */ (function () {
@@ -8543,7 +8844,7 @@ var CprValidator = /** @class */ (function () {
8543
8844
  }());
8544
8845
  exports.default = CprValidator;
8545
8846
 
8546
- },{}],74:[function(require,module,exports){
8847
+ },{}],75:[function(require,module,exports){
8547
8848
  "use strict";
8548
8849
  Object.defineProperty(exports, "__esModule", { value: true });
8549
8850
  var CvrValidator = /** @class */ (function () {
@@ -8575,7 +8876,36 @@ var CvrValidator = /** @class */ (function () {
8575
8876
  }());
8576
8877
  exports.default = CvrValidator;
8577
8878
 
8578
- },{}],75:[function(require,module,exports){
8879
+ },{}],76:[function(require,module,exports){
8880
+ "use strict";
8881
+ Object.defineProperty(exports, "__esModule", { value: true });
8882
+ var ResidentIdentificationValidator = /** @class */ (function () {
8883
+ function ResidentIdentificationValidator() {
8884
+ }
8885
+ ResidentIdentificationValidator.prototype.isSatisfiedBy = function (input, allowEmpty) {
8886
+ if (allowEmpty === void 0) { allowEmpty = true; }
8887
+ if (allowEmpty && !input) {
8888
+ return true;
8889
+ }
8890
+ var parts = input.split('-');
8891
+ if (parts.length !== 4) {
8892
+ return false;
8893
+ }
8894
+ var _a = parts.map(function (part) { return part.trim(); }), company = _a[0], property = _a[1], tenancy = _a[2], tenant = _a[3];
8895
+ return (this.validatePart(company, 1, 3) &&
8896
+ this.validatePart(property, 1, 4) &&
8897
+ this.validatePart(tenancy, 1, 6) &&
8898
+ this.validatePart(tenant, 1, 4));
8899
+ };
8900
+ ResidentIdentificationValidator.prototype.validatePart = function (part, min, max) {
8901
+ var number = parseInt(part, 10);
8902
+ return !isNaN(number) && part.length >= min && part.length <= max;
8903
+ };
8904
+ return ResidentIdentificationValidator;
8905
+ }());
8906
+ exports.default = ResidentIdentificationValidator;
8907
+
8908
+ },{}],77:[function(require,module,exports){
8579
8909
  "use strict";
8580
8910
  Object.defineProperty(exports, "__esModule", { value: true });
8581
8911
  var SECompanyRegistrationValidator = /** @class */ (function () {
@@ -8614,7 +8944,7 @@ var SECompanyRegistrationValidator = /** @class */ (function () {
8614
8944
  }());
8615
8945
  exports.default = SECompanyRegistrationValidator;
8616
8946
 
8617
- },{}],76:[function(require,module,exports){
8947
+ },{}],78:[function(require,module,exports){
8618
8948
  "use strict";
8619
8949
  Object.defineProperty(exports, "__esModule", { value: true });
8620
8950
  var SEPersonalNumberValidator = /** @class */ (function () {
@@ -8658,7 +8988,7 @@ var SEPersonalNumberValidator = /** @class */ (function () {
8658
8988
  }());
8659
8989
  exports.default = SEPersonalNumberValidator;
8660
8990
 
8661
- },{}],77:[function(require,module,exports){
8991
+ },{}],79:[function(require,module,exports){
8662
8992
  "use strict";
8663
8993
  Object.defineProperty(exports, "__esModule", { value: true });
8664
8994
  var elementConfig = /** @class */ (function () {
@@ -8711,7 +9041,7 @@ var CustomElement = function (config) {
8711
9041
  };
8712
9042
  exports.default = CustomElement;
8713
9043
 
8714
- },{}],78:[function(require,module,exports){
9044
+ },{}],80:[function(require,module,exports){
8715
9045
  "use strict";
8716
9046
  Object.defineProperty(exports, "__esModule", { value: true });
8717
9047
  exports.CustomInputElement = exports.elements = exports.CustomForm = void 0;
@@ -8727,6 +9057,6 @@ Object.defineProperty(exports, "CustomInputElement", { enumerable: true, get: fu
8727
9057
  var elements = require("./elements/Elements");
8728
9058
  exports.elements = elements;
8729
9059
 
8730
- },{"./custom-form":10,"./elements/Elements":24,"./framework/CustomInputElement":39,"@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js":2,"@webcomponents/webcomponentsjs/webcomponents-bundle":3,"@webcomponents/webcomponentsjs/webcomponents-loader.js":4}]},{},[1])
9060
+ },{"./custom-form":10,"./elements/Elements":24,"./framework/CustomInputElement":40,"@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js":2,"@webcomponents/webcomponentsjs/webcomponents-bundle":3,"@webcomponents/webcomponentsjs/webcomponents-loader.js":4}]},{},[1])
8731
9061
 
8732
9062
  //# sourceMappingURL=index.min.js.map