@luftborn/custom-elements 2.5.0 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/demo/index.min.js CHANGED
@@ -3005,7 +3005,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
3005
3005
  }
3006
3006
  Object.defineProperty(CustomFormatDateFieldElement.prototype, "value", {
3007
3007
  get: function () {
3008
- return this.date.value;
3008
+ return this.display.value;
3009
3009
  },
3010
3010
  set: function (value) {
3011
3011
  this.date.value = value;
@@ -3095,7 +3095,7 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
3095
3095
  CustomFormatDateFieldElement = __decorate([
3096
3096
  (0, custom_element_decorator_1.default)({
3097
3097
  selector: 'custom-format-date-element',
3098
- template: "\n\t\t<div class=\"wrapper\">\n\t\t\t<input type=\"text\" id=\"display-field\" readonly />\n\t\t\t<img src=\"assets/icons/datepicker-icon.png\" alt=\"datepicker-icon\" id=\"picker-trigger\"/>\n\t\t\t<input type=\"date\" id=\"date-field\" />\n\t\t</div>",
3098
+ template: "\n\t\t<div class=\"wrapper\">\n\t\t\t<input type=\"text\" id=\"display-field\" readonly />\n\t\t\t<svg id=\"picker-trigger\" 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<input type=\"date\" id=\"date-field\" />\n\t\t</div>",
3099
3099
  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\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 {\n\t\t\topacity: 0;\n\t\t\tposition: absolute;\n\t\t\tz-index: -1;\n\t\t\tpointer-events: none;\n\t\t}\n\t\t#display-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\t#datepicker-icon {\n\t\t}\n\t\t\t",
3100
3100
  useShadow: true,
3101
3101
  })
@@ -3415,10 +3415,10 @@ var SEPersonalNumberElement_1 = require("./SEPersonalNumberElement/SEPersonalNum
3415
3415
  Object.defineProperty(exports, "SEPersonalNumberElement", { enumerable: true, get: function () { return SEPersonalNumberElement_1.SEPersonalNumberElement; } });
3416
3416
  var SECompanyRegistrationElement_1 = require("./SECompanyRegistrationElement/SECompanyRegistrationElement");
3417
3417
  Object.defineProperty(exports, "SECompanyRegistrationElement", { enumerable: true, get: function () { return SECompanyRegistrationElement_1.SECompanyRegistrationElement; } });
3418
- var CustomFormatDateFieldElement_1 = require("./CustomDataFiledElement/CustomFormatDateFieldElement");
3418
+ var CustomFormatDateFieldElement_1 = require("./CustomFormatDateFieldElement/CustomFormatDateFieldElement");
3419
3419
  Object.defineProperty(exports, "CustomFormatDateFieldElement", { enumerable: true, get: function () { return CustomFormatDateFieldElement_1.CustomFormatDateFieldElement; } });
3420
3420
 
3421
- },{"./Address/AddressElement":10,"./BankField/BankFieldElement":11,"./CPRElement/CPRElement":12,"./CVRElement/CVRElement":13,"./CheckBoxElement/CheckBoxElement":14,"./CustomDataFiledElement/CustomFormatDateFieldElement":15,"./CustomRegularExpression/CustomRegularExpressionElement":16,"./DateField/DateFieldElement":17,"./DropDownList/DropDownListElement":18,"./EmailField/EmailFieldElement":20,"./FileField/FileFieldElement":21,"./IdentificationElement/IdentificationElement":22,"./InternationaPhoneNumber/InternationaPhoneNumberElement":25,"./NumericField/NumericFieldElement":26,"./RadioButtonGroup/RadioButtonGroupElement":27,"./SECompanyRegistrationElement/SECompanyRegistrationElement":28,"./SEPersonalNumberElement/SEPersonalNumberElement":29,"./TextAreaElement/TextAreaElement":30,"./TextField/TextFieldElement":31,"./TypeAhead/TypeAheadElement":32}],20:[function(require,module,exports){
3421
+ },{"./Address/AddressElement":10,"./BankField/BankFieldElement":11,"./CPRElement/CPRElement":12,"./CVRElement/CVRElement":13,"./CheckBoxElement/CheckBoxElement":14,"./CustomFormatDateFieldElement/CustomFormatDateFieldElement":15,"./CustomRegularExpression/CustomRegularExpressionElement":16,"./DateField/DateFieldElement":17,"./DropDownList/DropDownListElement":18,"./EmailField/EmailFieldElement":20,"./FileField/FileFieldElement":21,"./IdentificationElement/IdentificationElement":22,"./InternationaPhoneNumber/InternationaPhoneNumberElement":25,"./NumericField/NumericFieldElement":26,"./RadioButtonGroup/RadioButtonGroupElement":27,"./SECompanyRegistrationElement/SECompanyRegistrationElement":28,"./SEPersonalNumberElement/SEPersonalNumberElement":29,"./TextAreaElement/TextAreaElement":30,"./TextField/TextFieldElement":31,"./TypeAhead/TypeAheadElement":32}],20:[function(require,module,exports){
3422
3422
  "use strict";
3423
3423
  var __extends = (this && this.__extends) || (function () {
3424
3424
  var extendStatics = function (d, b) {