@luftborn/custom-elements 2.14.0 → 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 (73) hide show
  1. package/demo/index.html +269 -259
  2. package/demo/index.js +83 -43
  3. package/demo/index.min.js +82 -42
  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/EmailField/EmailFieldElement.js +3 -2
  24. package/dist/elements/EmailField/EmailFieldElement.js.map +1 -1
  25. package/dist/elements/FileField/FileFieldElement.js +3 -2
  26. package/dist/elements/FileField/FileFieldElement.js.map +1 -1
  27. package/dist/elements/IdentificationElement/IdentificationElement.js +3 -2
  28. package/dist/elements/IdentificationElement/IdentificationElement.js.map +1 -1
  29. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +3 -2
  30. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -1
  31. package/dist/elements/NumericField/NumericFieldElement.js +3 -2
  32. package/dist/elements/NumericField/NumericFieldElement.js.map +1 -1
  33. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +4 -2
  34. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
  35. package/dist/elements/ResidentIdentification/ResidentIdentificationElement.js +3 -2
  36. package/dist/elements/ResidentIdentification/ResidentIdentificationElement.js.map +1 -1
  37. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js +3 -2
  38. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js.map +1 -1
  39. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js +3 -2
  40. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js.map +1 -1
  41. package/dist/elements/TextAreaElement/TextAreaElement.js +3 -2
  42. package/dist/elements/TextAreaElement/TextAreaElement.js.map +1 -1
  43. package/dist/elements/TextField/TextFieldElement.js +3 -2
  44. package/dist/elements/TextField/TextFieldElement.js.map +1 -1
  45. package/dist/elements/TypeAhead/TypeAheadElement.js +3 -2
  46. package/dist/elements/TypeAhead/TypeAheadElement.js.map +1 -1
  47. package/dist/framework/CustomInputElement.d.ts +1 -0
  48. package/dist/framework/CustomInputElement.js +17 -0
  49. package/dist/framework/CustomInputElement.js.map +1 -1
  50. package/package.json +1 -1
  51. package/src/elements/Address/AddressElement.ts +37 -18
  52. package/src/elements/BankField/BankFieldElement.ts +34 -16
  53. package/src/elements/CPRElement/CPRElement.ts +28 -10
  54. package/src/elements/CVRElement/CVRElement.ts +28 -10
  55. package/src/elements/CheckBoxElement/CheckBoxElement.ts +22 -3
  56. package/src/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.ts +25 -7
  57. package/src/elements/CustomRegularExpression/CustomRegularExpressionElement.ts +28 -10
  58. package/src/elements/DateField/DateFieldElement.ts +28 -10
  59. package/src/elements/DropDownList/DropDownListElement.ts +42 -24
  60. package/src/elements/EmailField/EmailFieldElement.ts +28 -10
  61. package/src/elements/FileField/FileFieldElement.ts +28 -10
  62. package/src/elements/IdentificationElement/IdentificationElement.ts +32 -14
  63. package/src/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.ts +36 -19
  64. package/src/elements/NumericField/NumericFieldElement.ts +28 -10
  65. package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +46 -27
  66. package/src/elements/ResidentIdentification/ResidentIdentificationElement.ts +33 -14
  67. package/src/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.ts +24 -5
  68. package/src/elements/SEPersonalNumberElement/SEPersonalNumberElement.ts +24 -5
  69. package/src/elements/TextAreaElement/TextAreaElement.ts +28 -10
  70. package/src/elements/TextField/TextFieldElement.ts +30 -11
  71. package/src/elements/TypeAhead/TypeAheadElement.ts +27 -9
  72. package/src/framework/CustomInputElement.ts +18 -0
  73. package/src/elements/Address/html.html +0 -0
package/demo/index.min.js CHANGED
@@ -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
  })
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -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);
@@ -5446,6 +5456,7 @@ var EmailFieldElement = /** @class */ (function (_super) {
5446
5456
  EmailFieldElement.prototype.connectedCallback = function () {
5447
5457
  this.initChildInputs();
5448
5458
  _super.prototype.connectedCallback.call(this);
5459
+ _super.prototype.addLabel.call(this, this.email);
5449
5460
  };
5450
5461
  EmailFieldElement.prototype.initChildInputs = function () {
5451
5462
  this.email = _super.prototype.getChildInput.call(this, '#email-field');
@@ -5475,8 +5486,8 @@ var EmailFieldElement = /** @class */ (function (_super) {
5475
5486
  EmailFieldElement = __decorate([
5476
5487
  (0, custom_element_decorator_1.default)({
5477
5488
  selector: 'email-element',
5478
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='email-field'/>\n\t\t\t</div>",
5479
- 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",
5480
5491
  useShadow: true,
5481
5492
  })
5482
5493
  ], EmailFieldElement);
@@ -5577,6 +5588,7 @@ var FileFieldElement = /** @class */ (function (_super) {
5577
5588
  FileFieldElement.prototype.connectedCallback = function () {
5578
5589
  this.initChildInputs();
5579
5590
  _super.prototype.connectedCallback.call(this);
5591
+ _super.prototype.addLabel.call(this, this.file);
5580
5592
  };
5581
5593
  FileFieldElement.prototype.componentDidMount = function () {
5582
5594
  var _this = this;
@@ -5807,8 +5819,8 @@ var FileFieldElement = /** @class */ (function (_super) {
5807
5819
  FileFieldElement = __decorate([
5808
5820
  (0, custom_element_decorator_1.default)({
5809
5821
  selector: 'file-element',
5810
- 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>",
5811
- 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",
5812
5824
  useShadow: true,
5813
5825
  })
5814
5826
  ], FileFieldElement);
@@ -5879,6 +5891,7 @@ var IdentificationElement = /** @class */ (function (_super) {
5879
5891
  });
5880
5892
  IdentificationElement.prototype.connectedCallback = function () {
5881
5893
  _super.prototype.connectedCallback.call(this);
5894
+ _super.prototype.addLabel.call(this, this.text);
5882
5895
  };
5883
5896
  IdentificationElement.prototype.initChildInputs = function () {
5884
5897
  this.text = _super.prototype.getChildInput.call(this, '#id-field');
@@ -5906,8 +5919,8 @@ var IdentificationElement = /** @class */ (function (_super) {
5906
5919
  IdentificationElement = __decorate([
5907
5920
  (0, custom_element_decorator_1.default)({
5908
5921
  selector: 'id-element',
5909
- 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>",
5910
- 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",
5911
5924
  useShadow: true,
5912
5925
  })
5913
5926
  ], IdentificationElement);
@@ -5991,6 +6004,7 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
5991
6004
  IntPhoneFieldElement.prototype.connectedCallback = function () {
5992
6005
  this.setIntlTelInput();
5993
6006
  _super.prototype.connectedCallback.call(this);
6007
+ _super.prototype.addLabel.call(this, this.phone);
5994
6008
  };
5995
6009
  IntPhoneFieldElement.prototype.initChildInputs = function () {
5996
6010
  this.phone.addEventListener('change', this.change.bind(this));
@@ -6057,8 +6071,8 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
6057
6071
  IntPhoneFieldElement = __decorate([
6058
6072
  (0, custom_element_decorator_1.default)({
6059
6073
  selector: 'int-phone-element',
6060
- 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>",
6061
- 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",
6062
6076
  useShadow: true,
6063
6077
  })
6064
6078
  ], IntPhoneFieldElement);
@@ -6121,6 +6135,7 @@ var NumericFieldElement = /** @class */ (function (_super) {
6121
6135
  });
6122
6136
  NumericFieldElement.prototype.connectedCallback = function () {
6123
6137
  _super.prototype.connectedCallback.call(this);
6138
+ _super.prototype.addLabel.call(this, this.number);
6124
6139
  };
6125
6140
  NumericFieldElement.prototype.initChildInputs = function () {
6126
6141
  this.number = _super.prototype.getChildInput.call(this, '#numeric-field');
@@ -6159,8 +6174,8 @@ var NumericFieldElement = /** @class */ (function (_super) {
6159
6174
  NumericFieldElement = __decorate([
6160
6175
  (0, custom_element_decorator_1.default)({
6161
6176
  selector: 'numeric-element',
6162
- 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>",
6163
- 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",
6164
6179
  useShadow: true,
6165
6180
  })
6166
6181
  ], NumericFieldElement);
@@ -6231,6 +6246,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6231
6246
  });
6232
6247
  RadioButtonGroupElement.prototype.connectedCallback = function () {
6233
6248
  _super.prototype.connectedCallback.call(this);
6249
+ var firstRadioButton = _super.prototype.getChildElement.call(this, 'input[type="radio"]');
6250
+ _super.prototype.addLabel.call(this, firstRadioButton);
6234
6251
  };
6235
6252
  RadioButtonGroupElement.prototype.initChildInputs = function () {
6236
6253
  var _this = this;
@@ -6270,8 +6287,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6270
6287
  RadioButtonGroupElement = __decorate([
6271
6288
  (0, custom_element_decorator_1.default)({
6272
6289
  selector: 'radio-group-element',
6273
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
6274
- 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",
6275
6292
  useShadow: true,
6276
6293
  })
6277
6294
  ], RadioButtonGroupElement);
@@ -6345,6 +6362,7 @@ var ResidentIdentificationElement = /** @class */ (function (_super) {
6345
6362
  });
6346
6363
  ResidentIdentificationElement.prototype.connectedCallback = function () {
6347
6364
  _super.prototype.connectedCallback.call(this);
6365
+ _super.prototype.addLabel.call(this, this.company);
6348
6366
  };
6349
6367
  ResidentIdentificationElement.prototype.componentDidMount = function () {
6350
6368
  var _this = this;
@@ -6414,8 +6432,8 @@ var ResidentIdentificationElement = /** @class */ (function (_super) {
6414
6432
  ResidentIdentificationElement = __decorate([
6415
6433
  (0, custom_element_decorator_1.default)({
6416
6434
  selector: 'resident-identification-element',
6417
- template: "\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>",
6418
- style: ".field-wrapper{\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t\tinput.field-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",
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",
6419
6437
  templatePath: './html.html',
6420
6438
  useShadow: true,
6421
6439
  })
@@ -6479,6 +6497,7 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6479
6497
  });
6480
6498
  SECompanyRegistrationElement.prototype.connectedCallback = function () {
6481
6499
  _super.prototype.connectedCallback.call(this);
6500
+ _super.prototype.addLabel.call(this, this.text);
6482
6501
  };
6483
6502
  SECompanyRegistrationElement.prototype.initChildInputs = function () {
6484
6503
  this.text = _super.prototype.getChildInput.call(this, '#se-company-registration-field');
@@ -6505,8 +6524,8 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6505
6524
  SECompanyRegistrationElement = __decorate([
6506
6525
  (0, custom_element_decorator_1.default)({
6507
6526
  selector: 'se-company-registration-element',
6508
- template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-company-registration-field' placeholder='SSSSSSSSSS'/>\n </div>",
6509
- 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",
6510
6529
  useShadow: true,
6511
6530
  })
6512
6531
  ], SECompanyRegistrationElement);
@@ -6569,6 +6588,7 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6569
6588
  });
6570
6589
  SEPersonalNumberElement.prototype.connectedCallback = function () {
6571
6590
  _super.prototype.connectedCallback.call(this);
6591
+ _super.prototype.addLabel.call(this, this.text);
6572
6592
  };
6573
6593
  SEPersonalNumberElement.prototype.initChildInputs = function () {
6574
6594
  this.text = _super.prototype.getChildInput.call(this, '#se-personal-number-field');
@@ -6595,8 +6615,8 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6595
6615
  SEPersonalNumberElement = __decorate([
6596
6616
  (0, custom_element_decorator_1.default)({
6597
6617
  selector: 'se-personal-number-element',
6598
- template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-personal-number-field' placeholder='(YY)YYMMDD-SSSS'/>\n </div>",
6599
- 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",
6600
6620
  useShadow: true,
6601
6621
  })
6602
6622
  ], SEPersonalNumberElement);
@@ -6656,6 +6676,7 @@ var TextAreaElement = /** @class */ (function (_super) {
6656
6676
  });
6657
6677
  TextAreaElement.prototype.connectedCallback = function () {
6658
6678
  _super.prototype.connectedCallback.call(this);
6679
+ _super.prototype.addLabel.call(this, this.text);
6659
6680
  };
6660
6681
  TextAreaElement.prototype.initChildInputs = function () {
6661
6682
  this.text = _super.prototype.getChildInput.call(this, '#text-area-field');
@@ -6685,8 +6706,8 @@ var TextAreaElement = /** @class */ (function (_super) {
6685
6706
  TextAreaElement = __decorate([
6686
6707
  (0, custom_element_decorator_1.default)({
6687
6708
  selector: 'text-area-element',
6688
- 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>",
6689
- 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",
6690
6711
  useShadow: true,
6691
6712
  })
6692
6713
  ], TextAreaElement);
@@ -6746,6 +6767,7 @@ var TextFieldElement = /** @class */ (function (_super) {
6746
6767
  });
6747
6768
  TextFieldElement.prototype.connectedCallback = function () {
6748
6769
  _super.prototype.connectedCallback.call(this);
6770
+ _super.prototype.addLabel.call(this, this.text);
6749
6771
  };
6750
6772
  TextFieldElement.prototype.initChildInputs = function () {
6751
6773
  this.text = _super.prototype.getChildInput.call(this, '#text-field');
@@ -6775,8 +6797,8 @@ var TextFieldElement = /** @class */ (function (_super) {
6775
6797
  TextFieldElement = __decorate([
6776
6798
  (0, custom_element_decorator_1.default)({
6777
6799
  selector: 'text-element',
6778
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='text-field' />\n\t\t\t</div>",
6779
- 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",
6780
6802
  useShadow: true,
6781
6803
  })
6782
6804
  ], TextFieldElement);
@@ -6864,6 +6886,7 @@ var TypeAheadElement = /** @class */ (function (_super) {
6864
6886
  });
6865
6887
  TypeAheadElement.prototype.connectedCallback = function () {
6866
6888
  _super.prototype.connectedCallback.call(this);
6889
+ _super.prototype.addLabel.call(this, this.textInputElement);
6867
6890
  };
6868
6891
  TypeAheadElement.prototype.initChildInputs = function () {
6869
6892
  var _this = this;
@@ -7012,8 +7035,8 @@ var TypeAheadElement = /** @class */ (function (_super) {
7012
7035
  TypeAheadElement = __decorate([
7013
7036
  (0, custom_element_decorator_1.default)({
7014
7037
  selector: 'type-ahead-element',
7015
- 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>",
7016
- 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",
7017
7040
  useShadow: true,
7018
7041
  })
7019
7042
  ], TypeAheadElement);
@@ -7325,6 +7348,23 @@ var CustomInputElement = /** @class */ (function (_super) {
7325
7348
  }
7326
7349
  return element.querySelectorAll(selector);
7327
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
+ };
7328
7368
  CustomInputElement.prototype.RegisterDependentOn = function (name, initialValue) {
7329
7369
  if (initialValue === void 0) { initialValue = false; }
7330
7370
  this.dependentOnList[name] = initialValue;