@public-ui/hydrate 1.4.0-rc.13 → 1.4.0-rc.14

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 (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -7508,6 +7508,7 @@ featureHint(`[KolAccordion] Tab-Sperre des Inhalts im geschlossenen Zustand.`);
7508
7508
  class KolAccordion {
7509
7509
  constructor(hostRef) {
7510
7510
  registerInstance(this, hostRef);
7511
+ this.nonce = nonce();
7511
7512
  this.catchAriaExpanded = (button) => {
7512
7513
  if (button instanceof HTMLButtonElement) {
7513
7514
  this.buttonRef = button;
@@ -7540,7 +7541,7 @@ class KolAccordion {
7540
7541
  };
7541
7542
  }
7542
7543
  render() {
7543
- return (hAsync(Host, null, hAsync("div", { part: `accordion ${this.state._open ? 'open' : 'close'}` }, hAsync("kol-heading-wc", { _label: "", _level: this.state._level }, hAsync("button", { ref: this.catchAriaExpanded, onClick: this.onClick }, hAsync("kol-icon", { _ariaLabel: "", _icon: this.state._open ? 'fa-solid fa-minus' : 'fa-solid fa-plus', _part: this.state._open ? 'close' : 'open' }), hAsync("span", null, this.state._heading))), hAsync("div", { part: "header" }, hAsync("slot", { name: "header" })), hAsync("div", { part: "content", style: this.state._open === false
7544
+ return (hAsync(Host, null, hAsync("div", { part: `accordion ${this.state._open ? 'open' : 'close'}` }, hAsync("kol-heading-wc", { _label: "", _level: this.state._level }, hAsync("button", { "aria-controls": this.nonce, ref: this.catchAriaExpanded, onClick: this.onClick }, hAsync("kol-icon", { _ariaLabel: "", _icon: this.state._open ? 'fa-solid fa-minus' : 'fa-solid fa-plus', _part: this.state._open ? 'close' : 'open' }), hAsync("span", null, this.state._heading))), hAsync("div", { part: "header" }, hAsync("slot", { name: "header" })), hAsync("div", { id: this.nonce, part: "content", style: this.state._open === false
7544
7545
  ? {
7545
7546
  display: 'none',
7546
7547
  height: '0',
@@ -11246,7 +11247,7 @@ class KolButtonLink {
11246
11247
  this._value = undefined;
11247
11248
  }
11248
11249
  render() {
11249
- return (hAsync(Host, null, hAsync("kol-button-wc", { ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaCurrent: this._ariaCurrent, _ariaExpanded: this._ariaExpanded, _ariaLabel: this._ariaLabel, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _icon: this._icon, _iconOnly: this._iconOnly, _id: this._id, _label: this._label, _on: this._on, _role: this._role, _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { name: "expert", slot: "expert" }))));
11250
+ return (hAsync(Host, null, hAsync("kol-button-wc", { ref: this.catchRef, _accessKey: this._accessKey, _ariaControls: this._ariaControls, _ariaCurrent: this._ariaCurrent, _ariaExpanded: this._ariaExpanded, _ariaLabel: this._ariaLabel, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _icon: this._icon, _iconOnly: this._iconOnly, _id: this._id, _label: this._label, _on: this._on, _role: "link", _tabIndex: this._tabIndex, _tooltipAlign: this._tooltipAlign, _type: this._type, _value: this._value }, hAsync("slot", { name: "expert", slot: "expert" }))));
11250
11251
  }
11251
11252
  get host() { return getElement(this); }
11252
11253
  static get style() { return {
@@ -11964,7 +11965,7 @@ class KolIcon {
11964
11965
  };
11965
11966
  }
11966
11967
  render() {
11967
- return (hAsync(Host, null, hAsync("i", { "aria-hidden": this.state._ariaLabel.length > 0 ? undefined : 'true', "aria-label": this.state._ariaLabel.length > 0 ? this.state._ariaLabel : undefined, class: this.state._icon, part: `icon${typeof this._part === 'string' ? ` ${this._part}` : ''}`, role: this.state._ariaLabel.length > 0 ? 'img' : undefined })));
11968
+ return (hAsync(Host, null, hAsync("i", { "aria-hidden": this.state._ariaLabel.length > 0 ? undefined : 'true', "aria-label": this.state._ariaLabel.length > 0 ? this.state._ariaLabel : undefined, class: this.state._icon, part: `icon${typeof this._part === 'string' ? ` ${this._part}` : ''}`, role: "img" })));
11968
11969
  }
11969
11970
  validateAriaLabel(value) {
11970
11971
  watchString(this, '_ariaLabel', value, {
@@ -14743,7 +14744,7 @@ class KolLinkButton {
14743
14744
  button: true,
14744
14745
  [this.state._variant]: this.state._variant !== 'custom',
14745
14746
  [this.state._customClass]: this.state._variant === 'custom' && typeof this.state._customClass === 'string' && this.state._customClass.length > 0,
14746
- }, _ariaControls: this._ariaControls, _ariaCurrent: this._ariaCurrent, _ariaExpanded: this._ariaExpanded, _ariaLabel: this._ariaLabel, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _href: this._href, _icon: this._icon, _iconOnly: this._iconOnly, _label: this._label, _on: this._on, _role: this._role, _tabIndex: this._tabIndex, _target: this._target, _targetDescription: this._targetDescription, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { name: "expert", slot: "expert" }))));
14747
+ }, _ariaControls: this._ariaControls, _ariaCurrent: this._ariaCurrent, _ariaExpanded: this._ariaExpanded, _ariaLabel: this._ariaLabel, _ariaSelected: this._ariaSelected, _disabled: this._disabled, _href: this._href, _icon: this._icon, _iconOnly: this._iconOnly, _label: this._label, _on: this._on, _role: "button", _tabIndex: this._tabIndex, _target: this._target, _targetDescription: this._targetDescription, _tooltipAlign: this._tooltipAlign }, hAsync("slot", { name: "expert", slot: "expert" }))));
14747
14748
  }
14748
14749
  validateCustomClass(value) {
14749
14750
  watchString(this, '_customClass', value, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/hydrate",
3
- "version": "1.4.0-rc.13",
3
+ "version": "1.4.0-rc.14",
4
4
  "license": "EUPL-1.2",
5
5
  "homepage": "https://public-ui.github.io",
6
6
  "repository": "https://github.com/public-ui/kolibri",
@@ -45,11 +45,11 @@
45
45
  "prepack": "rimraf dist/package.json"
46
46
  },
47
47
  "devDependencies": {
48
- "@public-ui/components": "1.4.0-rc.13",
48
+ "@public-ui/components": "1.4.0-rc.14",
49
49
  "rimraf": "4.1.2"
50
50
  },
51
51
  "peerDependencies": {
52
- "@public-ui/components": "1.4.0-rc.13"
52
+ "@public-ui/components": "1.4.0-rc.14"
53
53
  },
54
54
  "sideEffects": false,
55
55
  "type": "commonjs",