@luftborn/custom-elements 2.12.9 → 2.13.1

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 (76) hide show
  1. package/assets/style.css +10 -10
  2. package/demo/index.js +85 -100
  3. package/demo/index.min.js +84 -99
  4. package/demo/index.min.js.map +1 -1
  5. package/dist/elements/Address/AddressElement.js +3 -3
  6. package/dist/elements/Address/AddressElement.js.map +1 -1
  7. package/dist/elements/BankField/BankFieldElement.js +3 -3
  8. package/dist/elements/BankField/BankFieldElement.js.map +1 -1
  9. package/dist/elements/CPRElement/CPRElement.js +3 -3
  10. package/dist/elements/CPRElement/CPRElement.js.map +1 -1
  11. package/dist/elements/CVRElement/CVRElement.js +3 -3
  12. package/dist/elements/CVRElement/CVRElement.js.map +1 -1
  13. package/dist/elements/CheckBoxElement/CheckBoxElement.js +8 -7
  14. package/dist/elements/CheckBoxElement/CheckBoxElement.js.map +1 -1
  15. package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepicker.js +13 -13
  16. package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepicker.js.map +1 -1
  17. package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.d.ts +1 -1
  18. package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.js +1 -1
  19. package/dist/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.js.map +1 -1
  20. package/dist/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.js +3 -3
  21. package/dist/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.js.map +1 -1
  22. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js +3 -3
  23. package/dist/elements/CustomRegularExpression/CustomRegularExpressionElement.js.map +1 -1
  24. package/dist/elements/DateField/DateFieldElement.js +3 -3
  25. package/dist/elements/DateField/DateFieldElement.js.map +1 -1
  26. package/dist/elements/DropDownList/DropDownListElement.js +3 -3
  27. package/dist/elements/DropDownList/DropDownListElement.js.map +1 -1
  28. package/dist/elements/EmailField/EmailFieldElement.js +3 -3
  29. package/dist/elements/EmailField/EmailFieldElement.js.map +1 -1
  30. package/dist/elements/FileField/FileFieldElement.js +3 -3
  31. package/dist/elements/FileField/FileFieldElement.js.map +1 -1
  32. package/dist/elements/IdentificationElement/IdentificationElement.js +3 -3
  33. package/dist/elements/IdentificationElement/IdentificationElement.js.map +1 -1
  34. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js +3 -3
  35. package/dist/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.js.map +1 -1
  36. package/dist/elements/NumericField/NumericFieldElement.js +3 -3
  37. package/dist/elements/NumericField/NumericFieldElement.js.map +1 -1
  38. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js +7 -7
  39. package/dist/elements/RadioButtonGroup/RadioButtonGroupElement.js.map +1 -1
  40. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js +3 -3
  41. package/dist/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.js.map +1 -1
  42. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js +3 -3
  43. package/dist/elements/SEPersonalNumberElement/SEPersonalNumberElement.js.map +1 -1
  44. package/dist/elements/TextAreaElement/TextAreaElement.js +3 -3
  45. package/dist/elements/TextAreaElement/TextAreaElement.js.map +1 -1
  46. package/dist/elements/TextField/TextFieldElement.js +3 -3
  47. package/dist/elements/TextField/TextFieldElement.js.map +1 -1
  48. package/dist/elements/TypeAhead/TypeAheadElement.js +3 -3
  49. package/dist/elements/TypeAhead/TypeAheadElement.js.map +1 -1
  50. package/dist/framework/CustomInputElement.d.ts +1 -2
  51. package/dist/framework/CustomInputElement.js +1 -17
  52. package/dist/framework/CustomInputElement.js.map +1 -1
  53. package/package.json +1 -1
  54. package/src/elements/Address/AddressElement.ts +3 -3
  55. package/src/elements/BankField/BankFieldElement.ts +3 -3
  56. package/src/elements/CPRElement/CPRElement.ts +3 -3
  57. package/src/elements/CVRElement/CVRElement.ts +3 -3
  58. package/src/elements/CheckBoxElement/CheckBoxElement.ts +30 -8
  59. package/src/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepicker.ts +13 -13
  60. package/src/elements/CustomFormatDateFieldElement/CustomDatepicker/CustomDatepickerStyles.ts +16 -16
  61. package/src/elements/CustomFormatDateFieldElement/CustomFormatDateFieldElement.ts +7 -7
  62. package/src/elements/CustomRegularExpression/CustomRegularExpressionElement.ts +3 -3
  63. package/src/elements/DateField/DateFieldElement.ts +3 -3
  64. package/src/elements/DropDownList/DropDownListElement.ts +4 -4
  65. package/src/elements/EmailField/EmailFieldElement.ts +3 -3
  66. package/src/elements/FileField/FileFieldElement.ts +3 -3
  67. package/src/elements/IdentificationElement/IdentificationElement.ts +3 -3
  68. package/src/elements/InternationaPhoneNumber/InternationaPhoneNumberElement.ts +3 -3
  69. package/src/elements/NumericField/NumericFieldElement.ts +3 -3
  70. package/src/elements/RadioButtonGroup/RadioButtonGroupElement.ts +29 -8
  71. package/src/elements/SECompanyRegistrationElement/SECompanyRegistrationElement.ts +3 -3
  72. package/src/elements/SEPersonalNumberElement/SEPersonalNumberElement.ts +3 -3
  73. package/src/elements/TextAreaElement/TextAreaElement.ts +3 -3
  74. package/src/elements/TextField/TextFieldElement.ts +3 -3
  75. package/src/elements/TypeAhead/TypeAheadElement.ts +10 -10
  76. package/src/framework/CustomInputElement.ts +2 -18
package/demo/index.min.js CHANGED
@@ -3543,8 +3543,8 @@ var AddressElement = /** @class */ (function (_super) {
3543
3543
  this.country.setAttribute('required', '');
3544
3544
  this.zip.setAttribute('required', '');
3545
3545
  }
3546
- if (this.labelId) {
3547
- this.address.setAttribute('aria-labelledby', this.labelId);
3546
+ if (this.label) {
3547
+ this.address.setAttribute('aria-label', this.label);
3548
3548
  }
3549
3549
  };
3550
3550
  // events
@@ -3649,7 +3649,7 @@ var AddressElement = /** @class */ (function (_super) {
3649
3649
  (0, custom_element_decorator_1.default)({
3650
3650
  selector: 'address-element',
3651
3651
  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>",
3652
- 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: 2px;\n\t\t\t\tresize: none;\n\t\t\t\twidth:33% !important;\n\t\t\t}\n\t\t",
3652
+ 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",
3653
3653
  templatePath: './html.html',
3654
3654
  useShadow: true,
3655
3655
  })
@@ -3748,8 +3748,8 @@ var BankFieldElement = /** @class */ (function (_super) {
3748
3748
  this.account.setAttribute('required', '');
3749
3749
  this.regNumber.setAttribute('required', '');
3750
3750
  }
3751
- if (this.labelId) {
3752
- this.regNumber.setAttribute('aria-labelledby', this.labelId);
3751
+ if (this.label) {
3752
+ this.regNumber.setAttribute('aria-label', this.label);
3753
3753
  }
3754
3754
  };
3755
3755
  // events
@@ -3782,7 +3782,7 @@ var BankFieldElement = /** @class */ (function (_super) {
3782
3782
  (0, custom_element_decorator_1.default)({
3783
3783
  selector: 'bank-element',
3784
3784
  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>",
3785
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
3785
+ 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 ",
3786
3786
  useShadow: true,
3787
3787
  })
3788
3788
  ], BankFieldElement);
@@ -3855,8 +3855,8 @@ var CPRElement = /** @class */ (function (_super) {
3855
3855
  if (this.initialValue) {
3856
3856
  this.value = this.initialValue;
3857
3857
  }
3858
- if (this.labelId) {
3859
- this.text.setAttribute('aria-labelledby', this.labelId);
3858
+ if (this.label) {
3859
+ this.text.setAttribute('aria-label', this.label);
3860
3860
  }
3861
3861
  };
3862
3862
  // events
@@ -3872,7 +3872,7 @@ var CPRElement = /** @class */ (function (_super) {
3872
3872
  (0, custom_element_decorator_1.default)({
3873
3873
  selector: 'cpr-element',
3874
3874
  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>",
3875
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
3875
+ 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 ",
3876
3876
  useShadow: true,
3877
3877
  })
3878
3878
  ], CPRElement);
@@ -3945,8 +3945,8 @@ var CVRElement = /** @class */ (function (_super) {
3945
3945
  if (this.initialValue) {
3946
3946
  this.value = this.initialValue;
3947
3947
  }
3948
- if (this.labelId) {
3949
- this.text.setAttribute('aria-labelledby', this.labelId);
3948
+ if (this.label) {
3949
+ this.text.setAttribute('aria-label', this.label);
3950
3950
  }
3951
3951
  };
3952
3952
  // events
@@ -3962,7 +3962,7 @@ var CVRElement = /** @class */ (function (_super) {
3962
3962
  (0, custom_element_decorator_1.default)({
3963
3963
  selector: 'cvr-element',
3964
3964
  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>",
3965
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
3965
+ 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 ",
3966
3966
  useShadow: true,
3967
3967
  })
3968
3968
  ], CVRElement);
@@ -4038,16 +4038,17 @@ var CheckBoxElement = /** @class */ (function (_super) {
4038
4038
  this.checkbox.forEach(function (c) {
4039
4039
  return c.addEventListener('change', _this.change.bind(_this));
4040
4040
  });
4041
- if (this.labelId) {
4042
- this.checkbox[0].setAttribute('aria-labelledby', this.labelId);
4043
- }
4044
4041
  };
4045
4042
  CheckBoxElement.prototype.addCheckBoxes = function () {
4046
4043
  var _this = this;
4047
4044
  var wrapper = _super.prototype.getChildElement.call(this, '.wrapper');
4048
- wrapper.innerHTML = "";
4045
+ var fieldset = wrapper.querySelector('fieldset');
4046
+ if (this.label) {
4047
+ // fieldset.setAttribute('aria-label', this.label);
4048
+ fieldset.insertAdjacentHTML('beforeend', "<legend class=\"sr-only\">" + this.label + "</legend>");
4049
+ }
4049
4050
  this.options.forEach(function (element, index) {
4050
- wrapper.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.checkboxTemplate, _this.name, element, _this.name + "-" + index));
4051
+ fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.checkboxTemplate, _this.name, element, _this.name + "-" + index));
4051
4052
  });
4052
4053
  };
4053
4054
  // events
@@ -4062,8 +4063,8 @@ var CheckBoxElement = /** @class */ (function (_super) {
4062
4063
  CheckBoxElement = __decorate([
4063
4064
  (0, custom_element_decorator_1.default)({
4064
4065
  selector: 'checkbox-element',
4065
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
4066
- 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 3px;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 13px;\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: 2px;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t",
4066
+ template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<fieldset></fieldset>\n\t\t\t</div>",
4067
+ 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\t.sr-only:not(:focus):not(:active) {\n\t\t\t\tclip: rect(0 0 0 0); \n\t\t\t\tclip-path: inset(50%);\n\t\t\t\theight: 0.063rem;\n\t\t\t\toverflow: hidden;\n\t\t\t\tposition: absolute;\n\t\t\t\twhite-space: nowrap; \n\t\t\t\twidth: 0.063rem;\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",
4067
4068
  useShadow: true,
4068
4069
  })
4069
4070
  ], CheckBoxElement);
@@ -4257,9 +4258,9 @@ var CustomDatepicker = /** @class */ (function () {
4257
4258
  var _this = this;
4258
4259
  var tempCurrentYear = this.currentYear;
4259
4260
  this.selectMonthYear.style.display = 'none';
4260
- this.selectMonthYear.style.height = '200px';
4261
+ this.selectMonthYear.style.height = '12.5rem';
4261
4262
  if ((0, CustomDatepickerUtils_1.isMobileDevice)()) {
4262
- this.selectMonthYear.style.height = '300px';
4263
+ this.selectMonthYear.style.height = '18.75rem';
4263
4264
  }
4264
4265
  this.selectMonthYear.innerHTML = '';
4265
4266
  var monthsContainer = document.createElement('div');
@@ -4369,33 +4370,33 @@ var CustomDatepicker = /** @class */ (function () {
4369
4370
  this.datepicker.style.position = 'fixed';
4370
4371
  var datepickerHeight = 250;
4371
4372
  if ((0, CustomDatepickerUtils_1.isMobileDevice)()) {
4372
- this.datepicker.style.height = '400px';
4373
+ this.datepicker.style.height = '25rem';
4373
4374
  this.datepicker.style.top = '50%';
4374
4375
  this.datepicker.style.left = '50%';
4375
4376
  this.datepicker.style.transform = 'translate(-50%, -50%)';
4376
4377
  this.datepicker.style.width = '90%';
4377
- this.datepicker.style.maxWidth = '300px';
4378
- this.datepicker.style.fontSize = '16px';
4379
- this.datepicker.style.padding = '30px';
4380
- this.header.style.marginBottom = '20px';
4378
+ this.datepicker.style.maxWidth = '18.75rem';
4379
+ this.datepicker.style.fontSize = '1rem';
4380
+ this.datepicker.style.padding = '1.875rem';
4381
+ this.header.style.marginBottom = '1.25rem';
4381
4382
  var weekdaysSpans = this.weekdays.querySelectorAll('span');
4382
4383
  var daysSpans = this.days.querySelectorAll('span');
4383
- weekdaysSpans.forEach(function (span) { return span.style.marginBottom = '10px'; });
4384
- daysSpans.forEach(function (span) { return span.style.marginBottom = '10px'; });
4384
+ weekdaysSpans.forEach(function (span) { return span.style.marginBottom = '0.625rem'; });
4385
+ daysSpans.forEach(function (span) { return span.style.marginBottom = '0.625rem'; });
4385
4386
  }
4386
4387
  else {
4387
- this.datepicker.style.height = datepickerHeight + 'px';
4388
+ this.datepicker.style.height = datepickerHeight / 16.0 + 'rem';
4388
4389
  var dateInputRect = this.input.getBoundingClientRect();
4389
4390
  datepickerHeight += 20;
4390
4391
  if (window.innerHeight - dateInputRect.bottom < datepickerHeight) {
4391
4392
  this.datepicker.style.top = 'auto';
4392
- this.datepicker.style.bottom = window.innerHeight - dateInputRect.top + 'px';
4393
+ this.datepicker.style.bottom = (window.innerHeight - dateInputRect.top) / 16.0 + 'rem';
4393
4394
  }
4394
4395
  else {
4395
4396
  this.datepicker.style.bottom = 'auto';
4396
- this.datepicker.style.top = dateInputRect.bottom + 'px';
4397
+ this.datepicker.style.top = dateInputRect.bottom / 16.0 + 'rem';
4397
4398
  }
4398
- this.datepicker.style.left = dateInputRect.left + 'px';
4399
+ this.datepicker.style.left = dateInputRect.left / 16.0 + 'rem';
4399
4400
  }
4400
4401
  };
4401
4402
  CustomDatepicker.prototype.setDateForToday = function () {
@@ -4467,7 +4468,7 @@ exports.default = CustomDatepicker;
4467
4468
  "use strict";
4468
4469
  Object.defineProperty(exports, "__esModule", { value: true });
4469
4470
  exports.CustomDatepickerStyles = void 0;
4470
- exports.CustomDatepickerStyles = "\n .custom-datepicker {\n position: fixed;\n background-color: #fff;\n display: none;\n width: 200px;\n border: 1px solid #ccc;\n border-radius: 5px;\n padding: 10px;\n margin: 0 auto;\n box-shadow: 0 0 10px 0 #ccc;\n font: 12px Arial, sans-serif;\n }\n\n .custom-datepicker .custom-datepicer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 10px;\n }\n .custom-datepicker .weekdays {\n display: flex;\n justify-content: space-between;\n }\n .custom-datepicker .weekdays span {\n width: 14.28%;\n text-align: center;\n padding: 5px 0;\n }\n .custom-datepicker .days {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .days span {\n width: 14.28%;\n text-align: center;\n padding: 5px 0;\n }\n .custom-datepicker .days span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .days span.today {\n border: 1px solid #000;\n }\n .custom-datepicker .days span.selected-day {\n background-color: #0075ff;\n color: #fff;\n }\n .custom-datepicker .prev-month, .next-month {\n cursor: pointer;\n }\n .custom-datepicker .month-year {\n font-weight: bold;\n }\n .custom-datepicker .month-year:hover {\n cursor: pointer;\n }\n .custom-datepicker .select-month-year {\n display: none;\n width: 100%;\n overflow-y: auto;\n }\n .custom-datepicker .select-month-year .year {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 1px solid #3f3d3d;\n padding: 5px 0;\n cursor: pointer;\n }\n .custom-datepicker .select-month-year .year .months {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .select-month-year .year .months span {\n width: 25%;\n text-align: center;\n padding: 10px 0;\n background-color: #fff;\n }\n .custom-datepicker .select-month-year .year .months span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .actions {\n display: flex;\n justify-content: space-between;\n margin-top: 10px;\n }\n .custom-datepicker .actions input {\n color: #0075ff;\n border: none;\n background-color: transparent;\n padding: 5px;\n border: 1px solid transparent;\n }\n .custom-datepicker .actions input:hover {\n background-color: #B2d5ff;\n border-color: #000;\n }\n";
4471
+ exports.CustomDatepickerStyles = "\n .custom-datepicker {\n position: fixed;\n background-color: #fff;\n display: none;\n width: 12.5rem;\n border: 0.063rem solid #ccc;\n border-radius: 0.313rem;\n padding: 0.625rem;\n margin: 0 auto;\n box-shadow: 0 0 0.625rem 0 #ccc;\n font: 0.75rem Arial, sans-serif;\n }\n\n .custom-datepicker .custom-datepicer-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 0.625rem;\n }\n .custom-datepicker .weekdays {\n display: flex;\n justify-content: space-between;\n }\n .custom-datepicker .weekdays span {\n width: 14.28%;\n text-align: center;\n padding: 0.313rem 0;\n }\n .custom-datepicker .days {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .days span {\n width: 14.28%;\n text-align: center;\n padding: 0.313rem 0;\n }\n .custom-datepicker .days span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .days span.today {\n border: 0.063rem solid #000;\n }\n .custom-datepicker .days span.selected-day {\n background-color: #0075ff;\n color: #fff;\n }\n .custom-datepicker .prev-month, .next-month {\n cursor: pointer;\n }\n .custom-datepicker .month-year {\n font-weight: bold;\n }\n .custom-datepicker .month-year:hover {\n cursor: pointer;\n }\n .custom-datepicker .select-month-year {\n display: none;\n width: 100%;\n overflow-y: auto;\n }\n .custom-datepicker .select-month-year .year {\n text-align: center;\n background-color: #f0f0f0;\n border-bottom: 0.063rem solid #3f3d3d;\n padding: 0.313rem 0;\n cursor: pointer;\n }\n .custom-datepicker .select-month-year .year .months {\n display: flex;\n flex-wrap: wrap;\n }\n .custom-datepicker .select-month-year .year .months span {\n width: 25%;\n text-align: center;\n padding: 0.625rem 0;\n background-color: #fff;\n }\n .custom-datepicker .select-month-year .year .months span:hover {\n background-color: #B2d5ff;\n cursor: pointer;\n }\n .custom-datepicker .actions {\n display: flex;\n justify-content: space-between;\n margin-top: 0.625rem;\n }\n .custom-datepicker .actions input {\n color: #0075ff;\n border: none;\n background-color: transparent;\n padding: 0.313rem;\n border: 0.063rem solid transparent;\n }\n .custom-datepicker .actions input:hover {\n background-color: #B2d5ff;\n border-color: #000;\n }\n";
4471
4472
 
4472
4473
  },{}],18:[function(require,module,exports){
4473
4474
  "use strict";
@@ -4977,8 +4978,8 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
4977
4978
  if (!this.justPreview) {
4978
4979
  this.initCustomPicker();
4979
4980
  }
4980
- if (this.labelId) {
4981
- this.date.setAttribute('aria-labelledby', this.labelId);
4981
+ if (this.label) {
4982
+ this.date.setAttribute('aria-label', this.label);
4982
4983
  }
4983
4984
  };
4984
4985
  // events
@@ -5017,7 +5018,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
5017
5018
  (0, custom_element_decorator_1.default)({
5018
5019
  selector: 'custom-format-date-element',
5019
5020
  template: "\n\t\t<div class=\"wrapper\">\n\t\t\t<input type=\"text\" id=\"date-field\" />\n\t\t\t<svg id=\"picker-trigger\" 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</div>",
5020
- 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: 2px;\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: 10px;\n\t\t}\n\t\t#picker-trigger {\n\t\t\tcursor: pointer;\n\t\t\twidth: 15px;\n\t\t\theight: 15px;\n\t\t\tposition:absolute;\n\t\t\tright: 2px;\n\t\t\ttop: 15%;\n\t\t}\n\t",
5021
+ 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#picker-trigger {\n\t\t\tcursor: pointer;\n\t\t\twidth: 0.938rem;\n\t\t\theight: 0.938rem;\n\t\t\tposition:absolute;\n\t\t\tright: 0.125rem;\n\t\t\ttop: 15%;\n\t\t}\n\t",
5021
5022
  useShadow: true,
5022
5023
  })
5023
5024
  ], CustomFormatDateFieldElement);
@@ -5096,8 +5097,8 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
5096
5097
  if (this.placeholder) {
5097
5098
  this.text.setAttribute('placeholder', this.placeholder);
5098
5099
  }
5099
- if (this.labelId) {
5100
- this.text.setAttribute('aria-labelledby', this.labelId);
5100
+ if (this.label) {
5101
+ this.text.setAttribute('aria-label', this.label);
5101
5102
  }
5102
5103
  };
5103
5104
  // events
@@ -5113,7 +5114,7 @@ var CustomRegularExpressionElement = /** @class */ (function (_super) {
5113
5114
  (0, custom_element_decorator_1.default)({
5114
5115
  selector: 'regex-element',
5115
5116
  template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='regex-field'/>\n\t\t\t</div>",
5116
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
5117
+ 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 ",
5117
5118
  useShadow: true,
5118
5119
  })
5119
5120
  ], CustomRegularExpressionElement);
@@ -5189,8 +5190,8 @@ var DateFieldElement = /** @class */ (function (_super) {
5189
5190
  if (this.initialValue) {
5190
5191
  this.value = this.initialValue;
5191
5192
  }
5192
- if (this.labelId) {
5193
- this.date.setAttribute('aria-labelledby', this.labelId);
5193
+ if (this.label) {
5194
+ this.date.setAttribute('aria-label', this.label);
5194
5195
  }
5195
5196
  };
5196
5197
  // events
@@ -5206,7 +5207,7 @@ var DateFieldElement = /** @class */ (function (_super) {
5206
5207
  (0, custom_element_decorator_1.default)({
5207
5208
  selector: 'date-element',
5208
5209
  template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"date\" id='date-field'/>\n\t\t\t</div>",
5209
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
5210
+ 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 ",
5210
5211
  useShadow: true,
5211
5212
  })
5212
5213
  ], DateFieldElement);
@@ -5288,8 +5289,8 @@ var DropDownListElement = /** @class */ (function (_super) {
5288
5289
  this.value = this.initialValue;
5289
5290
  }
5290
5291
  this.select.addEventListener('change', this.change.bind(this));
5291
- if (this.labelId) {
5292
- this.select.setAttribute('aria-labelledby', this.labelId);
5292
+ if (this.label) {
5293
+ this.select.setAttribute('aria-label', this.label);
5293
5294
  }
5294
5295
  };
5295
5296
  DropDownListElement.prototype.addOptions = function () {
@@ -5316,7 +5317,7 @@ var DropDownListElement = /** @class */ (function (_super) {
5316
5317
  (0, custom_element_decorator_1.default)({
5317
5318
  selector: 'drop-down-element',
5318
5319
  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>",
5319
- 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 3px;\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: 2px;\n resize: none;\n }\n ",
5320
+ 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 ",
5320
5321
  useShadow: true,
5321
5322
  })
5322
5323
  ], DropDownListElement);
@@ -5438,8 +5439,8 @@ var EmailFieldElement = /** @class */ (function (_super) {
5438
5439
  if (this.initialValue) {
5439
5440
  this.value = this.initialValue;
5440
5441
  }
5441
- if (this.labelId) {
5442
- this.email.setAttribute('aria-labelledby', this.labelId);
5442
+ if (this.label) {
5443
+ this.email.setAttribute('aria-label', this.label);
5443
5444
  }
5444
5445
  };
5445
5446
  // events
@@ -5455,7 +5456,7 @@ var EmailFieldElement = /** @class */ (function (_super) {
5455
5456
  (0, custom_element_decorator_1.default)({
5456
5457
  selector: 'email-element',
5457
5458
  template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='email-field'/>\n\t\t\t</div>",
5458
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
5459
+ 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 ",
5459
5460
  useShadow: true,
5460
5461
  })
5461
5462
  ], EmailFieldElement);
@@ -5574,8 +5575,8 @@ var FileFieldElement = /** @class */ (function (_super) {
5574
5575
  if (this.multi) {
5575
5576
  this.file.setAttribute('multiple', '');
5576
5577
  }
5577
- if (this.labelId) {
5578
- this.file.setAttribute('aria-labelledby', this.labelId);
5578
+ if (this.label) {
5579
+ this.file.setAttribute('aria-label', this.label);
5579
5580
  }
5580
5581
  };
5581
5582
  // events
@@ -5787,7 +5788,7 @@ var FileFieldElement = /** @class */ (function (_super) {
5787
5788
  (0, custom_element_decorator_1.default)({
5788
5789
  selector: 'file-element',
5789
5790
  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>",
5790
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
5791
+ 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 ",
5791
5792
  useShadow: true,
5792
5793
  })
5793
5794
  ], FileFieldElement);
@@ -5868,8 +5869,8 @@ var IdentificationElement = /** @class */ (function (_super) {
5868
5869
  this.text.setAttribute('required', '');
5869
5870
  }
5870
5871
  this.type = this.typeSelector.value;
5871
- if (this.labelId) {
5872
- this.text.setAttribute('aria-labelledby', this.labelId);
5872
+ if (this.label) {
5873
+ this.text.setAttribute('aria-label', this.label);
5873
5874
  }
5874
5875
  };
5875
5876
  // events
@@ -5886,7 +5887,7 @@ var IdentificationElement = /** @class */ (function (_super) {
5886
5887
  (0, custom_element_decorator_1.default)({
5887
5888
  selector: 'id-element',
5888
5889
  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>",
5889
- 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: 2px;\n resize: none;\n }\n input{\n width: 75% !important;\n }\n select{\n width: 25% !important;\n }\n ",
5890
+ 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 ",
5890
5891
  useShadow: true,
5891
5892
  })
5892
5893
  ], IdentificationElement);
@@ -5980,8 +5981,8 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
5980
5981
  this.phone.setAttribute('placeholder', this.placeholder);
5981
5982
  this.intlTelInput.options.autoPlaceholder = 'off';
5982
5983
  }
5983
- if (this.labelId) {
5984
- this.phone.setAttribute('aria-labelledby', this.labelId);
5984
+ if (this.label) {
5985
+ this.phone.setAttribute('aria-label', this.label);
5985
5986
  }
5986
5987
  };
5987
5988
  IntPhoneFieldElement.prototype.setIntlTelInput = function () {
@@ -6037,7 +6038,7 @@ var IntPhoneFieldElement = /** @class */ (function (_super) {
6037
6038
  (0, custom_element_decorator_1.default)({
6038
6039
  selector: 'int-phone-element',
6039
6040
  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>",
6040
- 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: 2px;\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 ",
6041
+ 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 ",
6041
6042
  useShadow: true,
6042
6043
  })
6043
6044
  ], IntPhoneFieldElement);
@@ -6122,8 +6123,8 @@ var NumericFieldElement = /** @class */ (function (_super) {
6122
6123
  if (this.initialValue) {
6123
6124
  this.value = this.initialValue;
6124
6125
  }
6125
- if (this.labelId) {
6126
- this.number.setAttribute('aria-labelledby', this.labelId);
6126
+ if (this.label) {
6127
+ this.number.setAttribute('aria-label', this.label);
6127
6128
  }
6128
6129
  };
6129
6130
  // events
@@ -6139,7 +6140,7 @@ var NumericFieldElement = /** @class */ (function (_super) {
6139
6140
  (0, custom_element_decorator_1.default)({
6140
6141
  selector: 'numeric-element',
6141
6142
  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>",
6142
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }\n ",
6143
+ 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 ",
6143
6144
  useShadow: true,
6144
6145
  })
6145
6146
  ], NumericFieldElement);
@@ -6221,16 +6222,16 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6221
6222
  if (this.initialValue) {
6222
6223
  this.value = this.initialValue;
6223
6224
  }
6224
- if (this.labelId) {
6225
- this.radioButton[0].setAttribute('aria-labelledby', this.labelId);
6226
- }
6227
6225
  };
6228
6226
  RadioButtonGroupElement.prototype.addRadioButtons = function () {
6229
6227
  var _this = this;
6230
6228
  var wrapper = _super.prototype.getChildElement.call(this, '.wrapper');
6231
- wrapper.innerHTML = "";
6229
+ var fieldset = wrapper.querySelector('fieldset');
6230
+ if (this.label) {
6231
+ fieldset.insertAdjacentHTML('beforeend', "<legend class=\"sr-only\">" + this.label + "</legend>");
6232
+ }
6232
6233
  this.options.forEach(function (element, index) {
6233
- wrapper.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.radioButtonTemplate, _this.name, element, _this.name + "-" + index, "" + (_this.required ? 'required' : '')));
6234
+ fieldset.insertAdjacentHTML('beforeend', StringUtil_1.StringUtil.StringFormat(_this.radioButtonTemplate, _this.name, element, _this.name + "-" + index, "" + (_this.required ? 'required' : '')));
6234
6235
  });
6235
6236
  };
6236
6237
  // events
@@ -6245,8 +6246,8 @@ var RadioButtonGroupElement = /** @class */ (function (_super) {
6245
6246
  RadioButtonGroupElement = __decorate([
6246
6247
  (0, custom_element_decorator_1.default)({
6247
6248
  selector: 'radio-group-element',
6248
- template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t</div>",
6249
- 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 3px;\n\t\t\t\tcolor: rgba(72, 72, 72, 0.75);\n\t\t\t\tfont-size: 13px;\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: 2px;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t",
6249
+ template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<fieldset></fieldset>\n\t\t\t</div>",
6250
+ 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.125rem;\n\t\t\t\tresize: none;\n\t\t\t}\n\t\t\t.sr-only:not(:focus):not(:active) {\n\t\t\t\tclip: rect(0 0 0 0); \n\t\t\t\tclip-path: inset(50%);\n\t\t\t\theight: 0.063rem;\n\t\t\t\toverflow: hidden;\n\t\t\t\tposition: absolute;\n\t\t\t\twhite-space: nowrap; \n\t\t\t\twidth: 0.063rem;\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",
6250
6251
  useShadow: true,
6251
6252
  })
6252
6253
  ], RadioButtonGroupElement);
@@ -6319,8 +6320,8 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6319
6320
  if (this.initialValue) {
6320
6321
  this.value = this.initialValue;
6321
6322
  }
6322
- if (this.labelId) {
6323
- this.text.setAttribute('aria-labelledby', this.labelId);
6323
+ if (this.label) {
6324
+ this.text.setAttribute('aria-label', this.label);
6324
6325
  }
6325
6326
  };
6326
6327
  // events
@@ -6336,7 +6337,7 @@ var SECompanyRegistrationElement = /** @class */ (function (_super) {
6336
6337
  (0, custom_element_decorator_1.default)({
6337
6338
  selector: 'se-company-registration-element',
6338
6339
  template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-company-registration-field' placeholder='SSSSSSSSSS'/>\n </div>",
6339
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }",
6340
+ 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 }",
6340
6341
  useShadow: true,
6341
6342
  })
6342
6343
  ], SECompanyRegistrationElement);
@@ -6409,8 +6410,8 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6409
6410
  if (this.initialValue) {
6410
6411
  this.value = this.initialValue;
6411
6412
  }
6412
- if (this.labelId) {
6413
- this.text.setAttribute('aria-labelledby', this.labelId);
6413
+ if (this.label) {
6414
+ this.text.setAttribute('aria-label', this.label);
6414
6415
  }
6415
6416
  };
6416
6417
  // events
@@ -6426,7 +6427,7 @@ var SEPersonalNumberElement = /** @class */ (function (_super) {
6426
6427
  (0, custom_element_decorator_1.default)({
6427
6428
  selector: 'se-personal-number-element',
6428
6429
  template: "\n <div class=\"wrapper\">\n <input type=\"text\" id='se-personal-number-field' placeholder='(YY)YYMMDD-SSSS'/>\n </div>",
6429
- style: "\n :host{\n width:100%;\n }\n .wrapper{\n display:flex;\n }\n input{\n box-sizing: border-box;\n width: 100% !important;\n border: none;\n background-color: #f1f4ff;\n margin: 2px;\n resize: none;\n }",
6430
+ 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 }",
6430
6431
  useShadow: true,
6431
6432
  })
6432
6433
  ], SEPersonalNumberElement);
@@ -6499,8 +6500,8 @@ var TextAreaElement = /** @class */ (function (_super) {
6499
6500
  if (this.initialValue) {
6500
6501
  this.value = this.initialValue;
6501
6502
  }
6502
- if (this.labelId) {
6503
- this.text.setAttribute('aria-labelledby', this.labelId);
6503
+ if (this.label) {
6504
+ this.text.setAttribute('aria-label', this.label);
6504
6505
  }
6505
6506
  };
6506
6507
  // events
@@ -6516,7 +6517,7 @@ var TextAreaElement = /** @class */ (function (_super) {
6516
6517
  (0, custom_element_decorator_1.default)({
6517
6518
  selector: 'text-area-element',
6518
6519
  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>",
6519
- 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: 2px;\n resize: none;\n }\n ",
6520
+ 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 ",
6520
6521
  useShadow: true,
6521
6522
  })
6522
6523
  ], TextAreaElement);
@@ -6589,8 +6590,8 @@ var TextFieldElement = /** @class */ (function (_super) {
6589
6590
  if (this.initialValue) {
6590
6591
  this.value = this.initialValue;
6591
6592
  }
6592
- if (this.labelId) {
6593
- this.text.setAttribute('aria-labelledby', this.labelId);
6593
+ if (this.label) {
6594
+ this.text.setAttribute('aria-label', this.label);
6594
6595
  }
6595
6596
  };
6596
6597
  // events
@@ -6606,7 +6607,7 @@ var TextFieldElement = /** @class */ (function (_super) {
6606
6607
  (0, custom_element_decorator_1.default)({
6607
6608
  selector: 'text-element',
6608
6609
  template: "\n\t\t\t<div class=\"wrapper\">\n\t\t\t\t<input type=\"text\" id='text-field' />\n\t\t\t</div>",
6609
- 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: 2px;\n\t\t\tresize: none;\n\t}\n\t\t",
6610
+ 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",
6610
6611
  useShadow: true,
6611
6612
  })
6612
6613
  ], TextFieldElement);
@@ -6709,8 +6710,8 @@ var TypeAheadElement = /** @class */ (function (_super) {
6709
6710
  if (this.initialValue) {
6710
6711
  this.value = this.initialValue;
6711
6712
  }
6712
- if (this.labelId) {
6713
- this.textInputElement.setAttribute('aria-labelledby', this.labelId);
6713
+ if (this.label) {
6714
+ this.textInputElement.setAttribute('aria-label', this.label);
6714
6715
  }
6715
6716
  this.textInputElement.addEventListener('change', this.change.bind(this));
6716
6717
  this.textInputElement.addEventListener('input', function () {
@@ -6826,7 +6827,7 @@ var TypeAheadElement = /** @class */ (function (_super) {
6826
6827
  (0, custom_element_decorator_1.default)({
6827
6828
  selector: 'type-ahead-element',
6828
6829
  template: "\n\t\t<div class=\"wrapper\">\n\t\t\t<input type=\"text\" id=\"text-input\">\n\t\t\t<div id=\"description\"></div>\n\t\t</div>",
6829
- 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: 2px;\n\t\t\tresize: none;\n\t\t}\n\t\t.wrapper #description {\n\t\t\twidth: 100%;\n\t\t\tpadding: 0 2px;\n\t\t\tbox-sizing: border-box;\n\t\t}\n\t\t.options-list {\n\t\t\tposition: absolute;\n\t\t\tborder: 1px 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: 200px;\n\t\t\toverflow-y: auto;\n\t\t}\n\t\t.options-list-item {\n\t\t\tpadding: 10px;\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: #FFFFFF;\n\t\t\tborder-bottom: 1px 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\t/*when navigating through the items using the arrow keys:*/\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: 16px;\n\t\t}\n\t\t.options-list-item-description {\n\t\t\tfont-size: 10px;\n\t\t}\n\t",
6830
+ 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\t/*when navigating through the items using the arrow keys:*/\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",
6830
6831
  useShadow: true,
6831
6832
  })
6832
6833
  ], TypeAheadElement);
@@ -6978,7 +6979,7 @@ var CustomInputElement = /** @class */ (function (_super) {
6978
6979
  this.customValue = data.value;
6979
6980
  this.dateFormat = data.dateFormat;
6980
6981
  this.initialValue = data.value;
6981
- this.labelId = data.labelId;
6982
+ this.label = data.label;
6982
6983
  }
6983
6984
  catch (ex) {
6984
6985
  console.error(ex);
@@ -7006,9 +7007,6 @@ var CustomInputElement = /** @class */ (function (_super) {
7006
7007
  _this.validate();
7007
7008
  }
7008
7009
  });
7009
- if (this.labelId) {
7010
- this.createLabelEventListener(this.labelId);
7011
- }
7012
7010
  };
7013
7011
  CustomInputElement.prototype.setAttributes = function () {
7014
7012
  this.setAttribute("custom-input", "");
@@ -7107,19 +7105,6 @@ var CustomInputElement = /** @class */ (function (_super) {
7107
7105
  this.closest('.custom-validation-target').removeAttribute("hidden");
7108
7106
  }
7109
7107
  };
7110
- CustomInputElement.prototype.createLabelEventListener = function (labelId) {
7111
- var _this = this;
7112
- var label = document.querySelector("[id=\"" + labelId + "\"]");
7113
- if (label) {
7114
- label.addEventListener("click", function () {
7115
- // the input is that have aria-labelledby attribute equal to the this.labelId
7116
- var input = _this.getChildElement("[aria-labelledby=\"" + labelId + "\"]");
7117
- if (input) {
7118
- input.focus();
7119
- }
7120
- });
7121
- }
7122
- };
7123
7108
  CustomInputElement.prototype.getChildInput = function (selector) {
7124
7109
  var element = this;
7125
7110
  if (this.shadowRoot) {