@public-ui/hydrate 2.2.6-4c6dc8594d43ee54834dd9b3395659849b7512d5.0 → 2.2.6-rc.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.
package/dist/index.js CHANGED
@@ -7100,6 +7100,7 @@ class KolForm {
7100
7100
  }, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: (el) => {
7101
7101
  if (index === 0) {
7102
7102
  this.errorListFirstLink = el;
7103
+ this.scrollToErrorList();
7103
7104
  }
7104
7105
  } }))))))));
7105
7106
  }
@@ -7108,7 +7109,7 @@ class KolForm {
7108
7109
  }
7109
7110
  render() {
7110
7111
  const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
7111
- return (hAsync(Host, { key: '26bf08caa8b0af7b950411d3a24fdaba7aa8099e', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
7112
+ return (hAsync(Host, { key: '69dbcbe8a46d038040ba381cdf6ec67c8e39f0dc', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
7112
7113
  }
7113
7114
  scrollToErrorList() {
7114
7115
  var _a;
package/dist/index.mjs CHANGED
@@ -7096,6 +7096,7 @@ class KolForm {
7096
7096
  }, type: "error", variant: "card", label: translate('kol-error-list-message') }, hAsync("nav", { "aria-label": translate('kol-error-list') }, hAsync("ul", null, errorList === null || errorList === void 0 ? void 0 : errorList.map((error, index) => (hAsync("li", { key: index }, hAsync(KolLinkWcTag, { _href: "", _label: error.message, _on: { onClick: typeof error.selector === 'string' ? () => this.handleLinkClick(String(error.selector)) : error.selector }, ref: (el) => {
7097
7097
  if (index === 0) {
7098
7098
  this.errorListFirstLink = el;
7099
+ this.scrollToErrorList();
7099
7100
  }
7100
7101
  } }))))))));
7101
7102
  }
@@ -7104,7 +7105,7 @@ class KolForm {
7104
7105
  }
7105
7106
  render() {
7106
7107
  const hasErrorList = Array.isArray(this._errorList) && this._errorList.length > 0;
7107
- return (hAsync(Host, { key: '26bf08caa8b0af7b950411d3a24fdaba7aa8099e', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
7108
+ return (hAsync(Host, { key: '69dbcbe8a46d038040ba381cdf6ec67c8e39f0dc', class: "kol-form" }, hasErrorList && this.renderErrorList(this._errorList), this.renderFormElement()));
7108
7109
  }
7109
7110
  scrollToErrorList() {
7110
7111
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/hydrate",
3
- "version": "2.2.6-4c6dc8594d43ee54834dd9b3395659849b7512d5.0",
3
+ "version": "2.2.6-rc.0",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": {
@@ -46,10 +46,10 @@
46
46
  ],
47
47
  "devDependencies": {
48
48
  "rimraf": "6.0.1",
49
- "@public-ui/components": "2.2.6-4c6dc8594d43ee54834dd9b3395659849b7512d5.0"
49
+ "@public-ui/components": "2.2.6-rc.0"
50
50
  },
51
51
  "peerDependencies": {
52
- "@public-ui/components": "2.2.6-4c6dc8594d43ee54834dd9b3395659849b7512d5.0"
52
+ "@public-ui/components": "2.2.6-rc.0"
53
53
  },
54
54
  "sideEffects": false,
55
55
  "type": "commonjs",